/* Memo marketing — tokens aligned with iOS Theme.swift */
:root {
  /* memoCanvas / memoSurface / memoInk / memoMuted / memoBrand / memoAccent */
  --bg: #faf5f0;
  --ink: #292422;
  --muted: #6b635e;
  --card: #ffffff;
  --brand: #387a75;
  --brand-soft: rgba(56, 122, 117, 0.12);
  --brand-deep: #2a5e5a;
  --clay: #db8561;
  --clay-soft: rgba(219, 133, 97, 0.14);
  /* legacy aliases (legal pages / older markup) */
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --accent-deep: var(--brand-deep);
  --line: rgba(0, 0, 0, 0.06);
  --success: #478e6b;
  --danger: #b85247;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(41, 36, 34, 0.08);
  --shadow-soft: 0 8px 24px rgba(41, 36, 34, 0.05);
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  font-family: "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Ambient breathing field ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
}

.orb-a {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(56, 122, 117, 0.45) 0%, transparent 70%);
  animation: breatheA 9s ease-in-out infinite;
}

.orb-b {
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  bottom: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(219, 133, 97, 0.38) 0%, transparent 70%); /* memoAccent clay */
  animation: breatheB 11s ease-in-out infinite;
}

.orb-c {
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(56, 122, 117, 0.22) 0%, transparent 68%);
  animation: breatheC 13s ease-in-out infinite;
}

.pointer-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 122, 117, 0.16) 0%, transparent 68%);
  transform: translate3d(-50vw, -50vh, 0);
  transition: opacity 0.4s ease;
  opacity: 0;
  filter: blur(8px);
}

body.has-pointer .pointer-glow { opacity: 1; }

@keyframes breatheA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate3d(4%, 6%, 0) scale(1.12); opacity: 0.72; }
}
@keyframes breatheB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.42; }
  50% { transform: translate3d(-5%, -4%, 0) scale(1.18); opacity: 0.62; }
}
@keyframes breatheC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.35; }
  50% { transform: translate3d(6%, -5%, 0) scale(1.15); opacity: 0.55; }
}

#app {
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(250, 245, 240, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 245, 240, 0.88);
  box-shadow: 0 8px 24px rgba(41, 36, 34, 0.04);
}

.brand {
  font-weight: 750;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(56, 122, 117, 0.28);
  animation: brandPulse 4.5s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(56, 122, 117, 0.28); transform: scale(1); }
  50% { box-shadow: 0 8px 22px rgba(56, 122, 117, 0.42); transform: scale(1.04); }
}

.nav nav {
  display: flex;
  gap: 0.35rem 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}

.nav nav a {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav nav a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-cta {
  color: var(--brand-deep) !important;
  font-weight: 650;
  background: var(--brand-soft);
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  position: relative;
}

.nav-cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(56, 122, 117, 0.25);
  animation: ctaRing 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaRing {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 4rem;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Hero ── */
.hero {
  padding: 2.75rem 0 2.25rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.25rem;
  align-items: center;
  position: relative;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 0.85rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(71, 142, 107, 0.55);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(71, 142, 107, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(71, 142, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 142, 107, 0); }
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  font-weight: 750;
}

h1 .line-soft {
  background: linear-gradient(120deg, var(--ink) 0%, var(--brand) 50%, var(--clay) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmerText 8s ease-in-out infinite;
}

@keyframes shimmerText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.4rem;
}

.lede-sm {
  color: var(--muted);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 650;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, opacity 0.15s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(56, 122, 117, 0.32);
}

.btn.primary:hover {
  box-shadow: 0 16px 36px rgba(56, 122, 117, 0.4);
}

.btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btnSheen 4.5s ease-in-out infinite;
}

@keyframes btnSheen {
  0%, 60%, 100% { transform: translateX(-120%); }
  75% { transform: translateX(120%); }
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: #fff;
  border-color: rgba(56, 122, 117, 0.25);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-stats strong {
  color: var(--ink);
  font-weight: 700;
}

/* ── Interactive phone / timeline card ── */
.hero-stage {
  position: relative;
  perspective: 1000px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
  animation: floatCard 6.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(56, 122, 117, 0.12), transparent 70%);
  pointer-events: none;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card.is-tilting {
  animation: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.timeline-mock {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  position: relative;
  z-index: 1;
  min-height: 168px;
}

.timeline-mock .node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: 1rem;
  box-shadow: 0 0 0 6px var(--brand-soft);
  animation: nodeBreathe 3s ease-in-out infinite;
  position: relative;
}

.timeline-mock .node.small {
  width: 10px;
  height: 10px;
  margin-left: 1.15rem;
  animation-delay: 0.6s;
}

@keyframes nodeBreathe {
  0%, 100% { box-shadow: 0 0 0 5px var(--brand-soft); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(56, 122, 117, 0.08); transform: scale(1.08); }
}

.card-mock {
  background: linear-gradient(135deg, #fff, #f4faf8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  width: min(100%, 250px);
  margin-left: 0.25rem;
  box-shadow: 0 6px 16px rgba(41, 36, 34, 0.04);
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease, border-color 0.25s ease;
  cursor: default;
}

.card-mock.alt {
  margin-left: 2.5rem;
  width: min(100%, 230px);
}

.card-mock.active {
  border-color: rgba(56, 122, 117, 0.35);
  transform: translateX(4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(56, 122, 117, 0.12);
}

.card-mock .meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--muted);
  margin-top: 0.25rem;
}

.hero-glow-ring {
  position: absolute;
  inset: -12% -8%;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 40%, rgba(56, 122, 117, 0.14), transparent 60%);
  z-index: -1;
  animation: ringBreathe 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ringBreathe {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ── Sections ── */
.section {
  padding: 2.75rem 0;
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Maze palette (mirrors iOS MazePalette) */
:root {
  --maze-0: #f2736b;
  --maze-1: #fa9e47;
  --maze-2: #73c76b;
  --maze-3: #47adb8;
  --maze-4: #6b85f2;
  --maze-5: #b86be0;
}

/* ── Promise bento (creative) ── */
.promise-section { padding-top: 2rem; }

.promise-head { max-width: 36rem; margin-bottom: 1.5rem; }

.promise-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.promise-tile {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.promise-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(41, 36, 34, 0.09);
}

.promise-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.promise-tile h3 {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.promise-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.promise-hero {
  grid-row: 1 / span 2;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(56, 122, 117, 0.1) 0%, transparent 45%),
    rgba(255, 255, 255, 0.9);
}

.promise-hero h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }

.promise-hero-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 133, 97, 0.22), transparent 70%);
  animation: breatheB 10s ease-in-out infinite;
  pointer-events: none;
}

.promise-stack {
  position: relative;
  height: 120px;
  margin: 1.4rem 0 1rem;
  flex: 1;
}

.stack-card {
  position: absolute;
  left: 8%;
  width: min(78%, 240px);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(41, 36, 34, 0.08);
  transition: transform 0.35s var(--ease-out);
}

.stack-card.s1 {
  top: 8px;
  transform: rotate(-4deg);
  border-color: rgba(56, 122, 117, 0.2);
  z-index: 1;
  animation: softFloat 4.2s ease-in-out infinite;
}

.stack-card.s2 {
  top: 36px;
  left: 18%;
  transform: rotate(2.5deg);
  z-index: 2;
  animation: softFloat 4.8s ease-in-out infinite 0.3s;
  background: linear-gradient(135deg, #fff, #f4faf8);
}

.stack-card.s3 {
  top: 68px;
  left: 10%;
  transform: rotate(-1deg);
  z-index: 3;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border: none;
  animation: softFloat 5.2s ease-in-out infinite 0.55s;
}

.promise-hero:hover .stack-card.s1 { transform: rotate(-6deg) translateY(-4px); }
.promise-hero:hover .stack-card.s2 { transform: rotate(4deg) translateY(-2px); }
.promise-hero:hover .stack-card.s3 { transform: rotate(0deg) translateY(-6px) scale(1.02); }

.promise-chips {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.promise-chips li {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.promise-path {
  background:
    linear-gradient(180deg, rgba(114, 199, 107, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.88);
}

.path-mini {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0.4rem 0 1rem;
}

.pm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--maze-2);
  box-shadow: 0 0 0 5px rgba(115, 199, 107, 0.18);
  animation: nodeBreathe 3s ease-in-out infinite;
}

.pm-dot:nth-child(3) { background: var(--maze-3); animation-delay: 0.4s; }
.pm-dot:nth-child(5) { background: var(--maze-4); animation-delay: 0.8s; }

.pm-line {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--maze-2), var(--maze-3), var(--maze-4));
  opacity: 0.7;
  min-width: 28px;
}

.promise-lock {
  background:
    linear-gradient(200deg, rgba(56, 122, 117, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.88);
}

.lock-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0.35rem 0 0.9rem;
  background: var(--brand-soft);
  box-shadow: 0 0 0 8px rgba(56, 122, 117, 0.06);
  animation: sealBreathe 5s ease-in-out infinite;
}

.lock-core {
  font-size: 1.4rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.promise-quote {
  grid-column: 2 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(115deg, rgba(219, 133, 97, 0.14), rgba(56, 122, 117, 0.08)),
    rgba(255, 255, 255, 0.9);
  min-height: 120px;
}

.promise-quote blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.quote-meta {
  margin-top: 0.65rem !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  color: var(--clay) !important;
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-5px) rotate(var(--r, 0deg)); }
}

.stack-card.s1 { --r: -4deg; }
.stack-card.s2 { --r: 2.5deg; }
.stack-card.s3 { --r: -1deg; }

/* ── How Memo works — maze path (app timeline logic) ── */
.how-section { padding-top: 1.5rem; }
.how-head { max-width: 38rem; margin-bottom: 0.5rem; }

.maze {
  position: relative;
  margin-top: 0.5rem;
  min-height: 200px;
}

.maze-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.maze-path-glow {
  stroke-width: 14;
  opacity: 0.22;
  filter: blur(6px);
}

.maze-path {
  stroke-width: 4.5;
  opacity: 0.95;
  stroke-dasharray: 12 10;
  animation: pathDash 18s linear infinite;
}

@keyframes pathDash {
  to { stroke-dashoffset: -220; }
}

.maze-start {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: default;
  display: grid;
  place-items: center;
}

.maze-start-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 115, 107, 0.28), transparent 70%);
  animation: ringBreathe 4s ease-in-out infinite;
}

.maze-start-core {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--maze-0), var(--maze-1));
  box-shadow:
    0 10px 28px rgba(242, 115, 107, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.9);
  animation: brandPulse 4.5s ease-in-out infinite;
}

.maze-items {
  list-style: none;
  margin: 0;
  padding: 88px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
}

.maze-row {
  display: flex;
  width: 100%;
  margin-bottom: clamp(72px, 12vw, 120px);
}

.maze-row:last-child { margin-bottom: 12px; }

.maze-row.is-left { justify-content: flex-start; }
.maze-row.is-right { justify-content: flex-end; }

.maze-card {
  position: relative;
  width: min(72%, 300px);
  --card-accent: var(--maze-0);
}

.maze-card[data-accent="0"] { --card-accent: var(--maze-0); }
.maze-card[data-accent="1"] { --card-accent: var(--maze-1); }
.maze-card[data-accent="2"] { --card-accent: var(--maze-2); }
.maze-card[data-accent="3"] { --card-accent: var(--maze-3); }

.maze-card-inner {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.25s ease;
  animation: mazeFloat 3.2s ease-in-out infinite;
}

.maze-row:nth-child(2) .maze-card-inner { animation-delay: 0.25s; }
.maze-row:nth-child(3) .maze-card-inner { animation-delay: 0.5s; }
.maze-row:nth-child(4) .maze-card-inner { animation-delay: 0.75s; }

@keyframes mazeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.maze-card:hover .maze-card-inner {
  border-color: color-mix(in srgb, var(--card-accent) 45%, transparent);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--card-accent) 18%, transparent);
  animation: none;
  transform: translateY(-3px) scale(1.01);
}

.maze-step {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--card-accent);
  margin-bottom: 0.35rem;
}

.maze-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.maze-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Path anchors — same role as iOS MazeCardRow dots */
.maze-anchor {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 70%, #000));
  border: 2px solid #fff;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--card-accent) 22%, transparent),
    0 2px 8px color-mix(in srgb, var(--card-accent) 35%, transparent);
  z-index: 4;
  pointer-events: none;
}

.maze-anchor-top { top: -8px; }
.maze-anchor-bot { bottom: -8px; }

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(41, 36, 34, 0.08);
  border-color: rgba(56, 122, 117, 0.18);
}

.card h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
  animation: iconBreathe 5s ease-in-out infinite;
}

@keyframes iconBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.55rem 1.55rem 1.85rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 122, 117, 0.12), transparent 70%);
  animation: breatheC 10s ease-in-out infinite;
  pointer-events: none;
}

/* ── Trust is the product (redesigned) ── */
.trust-product-section { padding-top: 1.5rem; }

.trust-product-head {
  max-width: 36rem;
  margin-bottom: 1.35rem;
}

.trust-product-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.tp-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  padding: 1.3rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(41, 36, 34, 0.09);
}

.tp-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.tp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.tp-feature {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background:
    linear-gradient(165deg, rgba(56, 122, 117, 0.12) 0%, transparent 48%),
    rgba(255, 255, 255, 0.9);
}

.tp-feature h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  line-height: 1.15;
}

.tp-feature-bg {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -50px;
  bottom: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 133, 97, 0.18), transparent 70%);
  pointer-events: none;
  animation: breatheB 11s ease-in-out infinite;
}

.tp-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.tp-badge-soft {
  background: rgba(219, 133, 97, 0.14);
  color: #b86a48;
}

.tp-visual {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.tp-avatar-row {
  display: flex;
  align-items: center;
}

.tp-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(56, 122, 117, 0.25);
  margin-right: -10px;
}

.tp-av-2 {
  background: linear-gradient(145deg, var(--clay), #c46a45);
  animation: softFloat 4s ease-in-out infinite 0.2s;
}

.tp-av-3 {
  background: #fff;
  color: var(--brand-deep);
  border-color: var(--brand-soft);
  margin-right: 0;
}

.tp-code-chip {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.tp-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 0.75rem;
  animation: iconBreathe 5s ease-in-out infinite;
}

.tp-icon-clay {
  background: var(--clay-soft);
  color: #b86a48;
  animation-delay: 0.4s;
}

.tp-wide {
  grid-column: 2 / span 2;
  padding: 1.35rem 1.4rem 1.2rem;
}

.tp-wide-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.tp-wide-inner > div:first-child {
  flex: 1 1 220px;
  max-width: 34rem;
}

.tp-wide .trust-mini {
  margin-top: 0.35rem;
}

.tp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.tp-links a {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.tp-links a:hover { opacity: 0.75; }

/* ── TestFlight signup ── */
.testflight-section {
  padding-top: 1rem;
}

.testflight-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(125deg, rgba(56, 122, 117, 0.1) 0%, transparent 42%),
    linear-gradient(320deg, rgba(219, 133, 97, 0.1) 0%, transparent 40%),
    rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

.testflight-shell::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 122, 117, 0.16), transparent 70%);
  pointer-events: none;
  animation: breatheA 12s ease-in-out infinite;
}

.testflight-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0.5rem 0.35rem 0.25rem;
}

.tf-bullets {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.tf-bullets li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1.35rem;
  position: relative;
}

.tf-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.testflight-form-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 14px 36px rgba(41, 36, 34, 0.08);
}

.tf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.tf-icon {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.28);
  animation: brandPulse 4.5s ease-in-out infinite;
}

.tf-fine {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.tf-fine a {
  color: var(--brand-deep);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.waitlist .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Trust badges */
.trust-section { padding-top: 1rem; }
.trust-eyebrow { margin-bottom: 0.35rem; }
.trust-lede { margin: -0.35rem 0 1.5rem; max-width: 40rem; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.25s ease;
  backdrop-filter: blur(10px);
}

.trust-badge:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 40px rgba(41, 36, 34, 0.09);
  border-color: rgba(56, 122, 117, 0.2);
}

.trust-seal {
  width: 88px;
  height: 88px;
  margin-bottom: 0.25rem;
  animation: sealBreathe 5.5s ease-in-out infinite;
}

.trust-badge:nth-child(2) .trust-seal { animation-delay: 0.5s; }
.trust-badge:nth-child(3) .trust-seal { animation-delay: 1s; }

@keyframes sealBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.trust-seal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trust-badge h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.trust-badge p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.trust-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.trust-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42rem;
}

.trust-footnote a {
  color: var(--brand-deep);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  position: relative;
  z-index: 1;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #e7f3f1;
  color: #2a5e5a;
  border: 1px solid #c5e0db;
  transition: transform 0.25s var(--ease-spring);
}

.trust-pill:hover { transform: scale(1.05); }

.trust-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  animation: livePulse 2.4s ease-out infinite;
}

.trust-pill-gdpr {
  background: #e8eef8;
  color: #2b4c7e;
  border-color: #c5d2ea;
}

.trust-pill-hipaa {
  background: #e8f2f8;
  color: #1a5f8a;
  border-color: #bdd6e8;
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.waitlist input {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.form-note {
  margin: 0.85rem 0 0;
  font-weight: 600;
  color: var(--brand-deep);
  position: relative;
  z-index: 1;
}

.form-note.error { color: var(--danger); }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  background: rgba(250, 245, 240, 0.55);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner .brand {
  color: var(--ink);
  display: inline-flex;
  margin-bottom: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--brand-deep);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-links a:hover { opacity: 0.75; }

/* Legal / FAQ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.legal-kicker {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
}

.legal h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.legal-toc {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.legal-toc strong {
  display: block;
  margin-bottom: 0.45rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-toc a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.65rem;
  scroll-margin-top: 5rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 1.02rem;
}

.legal p { margin: 0 0 0.9rem; }

.legal ul,
.legal ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li { margin: 0.35rem 0; }

.legal strong { color: var(--ink); }

.legal a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .callout {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  color: var(--ink);
}

.legal .callout p { color: var(--ink); margin: 0; }

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(56, 122, 117, 0.22);
  box-shadow: 0 12px 28px rgba(41, 36, 34, 0.06);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.faq-item .faq-body p:last-child { margin-bottom: 0; }

.legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0 0;
}

.legal-nav-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.legal-nav-links a:hover {
  background: var(--brand-soft);
  border-color: transparent;
  transform: translateY(-1px);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orb, .pointer-glow { display: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .promise-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .promise-hero {
    grid-row: auto;
    min-height: 0;
  }
  .promise-quote { grid-column: auto; }
  .trust-product-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .tp-feature {
    grid-row: auto;
    min-height: 0;
  }
  .tp-wide { grid-column: auto; }
  .testflight-shell {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }
  .maze-card { width: min(86%, 320px); }
  .maze-row {
    justify-content: center !important;
    margin-bottom: 88px;
  }
  .nav-toggle { display: block; }
  .nav nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 0.7rem 0.8rem; border-radius: 10px; }
  .nav nav a:hover { background: var(--brand-soft); }
  .hero-card { animation: none; }
}
