/* Landing page. Tokens mirror the app's design system (packages/mobile/lib/ui/theme). */
:root {
  --bg: #FDFBFF;
  --lav: #F4EEFD;
  --lav-2: #EAE1FC;
  --ink: #192434;
  --ink-2: #2E2636;
  --muted: #53495B;
  --faint: #817A8D;
  --line: #E9E4EC;
  --brand: #A37AE8;
  --brand-600: #8966C3;
  --brand-deep: #6F45C9;
  --brand-900: #3B2C54;

  /* Accents from the XO pet logo */
  --pink: #E8679A;
  --orange: #EE9A3A;
  --teal: #35A9C9;
  --green: #45B381;
  --amber: #A8761B;

  --glass: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
  --lift: 0 2px 6px rgba(46, 38, 54, 0.06), 0 24px 48px -16px rgba(91, 62, 138, 0.28);
  --lift-lg: 0 4px 10px rgba(46, 38, 54, 0.06), 0 40px 80px -24px rgba(91, 62, 138, 0.38);
  --ring: inset 0 0 0 1.5px rgba(255, 255, 255, 0.95);

  --r-card: 24px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
section, .strip { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Type ───────── */
h1, h2, h3 { font-family: 'Inter Tight', 'Inter', sans-serif; color: var(--ink); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.4vw, 5.1rem); font-weight: 800; line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; line-height: 1.05; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 34em; }

/* The wavy gradient accent used on the store screenshots */
.accent {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--brand-deep) 0%, #9B6BEA 55%, var(--tint, var(--pink)) 120%);
  text-decoration: underline wavy var(--tint, var(--brand)); text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em; text-decoration-skip-ink: none; padding-bottom: 0.08em;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.76rem/1 'Inter'; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tint-ink, var(--brand-deep));
  padding: 9px 16px 9px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--ring), 0 8px 24px -10px rgba(91, 62, 138, 0.3);
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint, var(--brand)); box-shadow: 0 0 0 4px var(--tint-soft, var(--lav-2)); }

/* Per-section tints, as on the store slides */
.t-purple { --tint: #A37AE8; --tint-soft: #E9DEFC; --tint-ink: #6F45C9; --tint-blob: #C9B2F5; }
.t-pink { --tint: #E8679A; --tint-soft: #FBDDE8; --tint-ink: #B23E6C; --tint-blob: #F6B9CF; }
.t-orange { --tint: #EE9A3A; --tint-soft: #FCE7CE; --tint-ink: #A9601A; --tint-blob: #F8CFA0; }
.t-teal { --tint: #35A9C9; --tint-soft: #D6EFF6; --tint-ink: #1F7C97; --tint-blob: #A9DCEA; }
.t-green { --tint: #45B381; --tint-soft: #D9F1E3; --tint-ink: #2B7F59; --tint-blob: #B5E3C9; }

/* ───────── Buttons & badges ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(111, 69, 201, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: block; height: 54px; border-radius: 12px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(25, 36, 52, 0.55);
}
.store img { height: 100%; width: auto; }
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(25, 36, 52, 0.6); }

.promises { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.promises span { display: inline-flex; align-items: center; gap: 7px; }
.promises svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled { background: rgba(253, 251, 255, 0.78); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 rgba(46, 38, 54, 0.06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.15rem 'Inter Tight'; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 99px; font-size: 0.93rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(163, 122, 232, 0.1); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 0.92rem; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); place-items: center; }
.menu-btn svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }

/* ───────── Background ───────── */
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.75; }
.grain {
  position: absolute; inset: 0; opacity: 0.45; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0 0.5  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───────── Phone ───────── */
.phone {
  position: relative; width: var(--pw, 300px); flex: none; align-self: flex-start;
  padding: calc(var(--pw, 300px) * 0.028); border-radius: calc(var(--pw, 300px) * 0.165);
  background: #0E0C12;
  box-shadow: 0 0 0 calc(var(--pw, 300px) * 0.011) #CFC7DC, 0 0 0 calc(var(--pw, 300px) * 0.02) rgba(255, 255, 255, 0.6), var(--lift-lg);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; border-radius: calc(var(--pw, 300px) * 0.14); background: #F7F3FE; }

/* A crop of a real app card, floating */
.shot { border-radius: var(--shot-r, 22px); box-shadow: var(--ring), var(--lift); overflow: hidden; background: #fff; }
.shot img { width: 100%; height: auto; }
.note { display: flex; align-items: flex-end; gap: 12px; }
.note .av { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, var(--lift); }
.note .shot { flex: 1; border-radius: 26px 26px 26px 8px; box-shadow: inset 0 0 0 1px #E3D6FA, var(--lift); background: #F6F0FE; }
.note .shot img { margin: 1px; width: calc(100% - 2px); border-radius: inherit; }

/* Glass card, as on the store slides */
.glass {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; width: max-content; max-width: 100%;
  background: var(--glass); border-radius: 20px; box-shadow: var(--ring), var(--lift);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
}
.glass .ic {
  flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c, var(--brand)); box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), 0 6px 12px -6px var(--c, var(--brand));
}
.glass .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glass b { display: block; font: 700 0.98rem/1.2 'Inter Tight'; letter-spacing: -0.01em; }
.glass small { display: block; font-size: 0.8rem; line-height: 1.3; color: var(--muted); margin-top: 2px; }

.petpic { position: relative; width: var(--d, 120px); }
.petpic .pic { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 20px 40px -12px rgba(60, 35, 110, 0.45); }
.petpic .pic img { width: 100%; height: 100%; object-fit: cover; }
.petpic .tag {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 13px; border-radius: 99px; background: var(--glass); box-shadow: var(--ring), var(--lift); font-size: 0.78rem; color: var(--muted);
}
.petpic .tag b { color: var(--ink); font: 700 0.88rem 'Inter Tight'; margin-right: 4px; }

.float { position: absolute; z-index: 3; }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 132px 0 72px; background: linear-gradient(180deg, #EFE6FD 0%, #F7F2FE 55%, var(--bg) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { margin: 22px 0 34px; }
.hero .lede { margin-bottom: 32px; }
.hero-visual { position: relative; height: 680px; }
.hero-visual .phone { --pw: 300px; position: absolute; left: calc(50% - var(--pw) / 2); top: 10px; rotate: 2deg; }
.hero .f-miso { left: 0; top: 70px; --d: 128px; rotate: -6deg; }
.hero .f-pixel { right: -44px; top: 150px; --d: 104px; rotate: 7deg; }
.hero .f-card { left: -30px; bottom: 30px; width: 360px; rotate: -3deg; }
.hero .f-watch { right: -56px; top: 330px; rotate: 3deg; }

.pulse { position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--c, var(--brand)); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(69, 179, 129, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(69, 179, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(69, 179, 129, 0); } }

/* ───────── Signal strip ───────── */
.strip { padding: 26px 0; border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.strip-label { text-align: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 6px; padding: 9px 16px; border-radius: 99px;
  background: var(--lav); color: var(--brand-900); font-size: 0.92rem; font-weight: 600; white-space: nowrap;
}
.marquee span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--d, var(--brand)); }

/* ───────── Sections ───────── */
.section { position: relative; padding: 120px 0; }
.section-head { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto 64px; }
.section-head h2 { margin: 18px 0 18px; }
.section-head .lede { margin: 0 auto; }

.split { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { margin: 18px 0 20px; }

.points { list-style: none; display: grid; gap: 16px; margin-top: 30px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points .dot { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--tint-soft, var(--lav-2)); }
.points .dot svg { width: 20px; height: 20px; stroke: var(--tint-ink, var(--brand-deep)); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.points b { display: block; font-weight: 600; color: var(--ink); }
.points span { color: var(--muted); font-size: 0.97rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; background: var(--brand-900); color: #fff; vertical-align: middle; }
.pill svg { width: 12px; height: 12px; fill: #FFD66B; }

.stage { position: relative; min-height: 600px; display: grid; place-items: center; }
.stage-bg { position: absolute; inset: 4% 2%; border-radius: 40px; background: radial-gradient(120% 90% at 50% 40%, var(--tint-soft, var(--lav)) 0%, rgba(255, 255, 255, 0) 70%); }
.halo { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.6); left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ───────── How it thinks ───────── */
.brain { background: radial-gradient(80% 60% at 50% 0%, #F1E9FE 0%, var(--bg) 70%); }
.flow { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 260px 1fr; gap: 40px; align-items: center; }
.flow-col { display: grid; gap: 14px; position: relative; z-index: 2; }
.flow-col h4 { font: 700 0.76rem 'Inter'; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.flow-in .glass { width: 100%; justify-content: flex-end; text-align: right; }
.flow-out .glass { width: 100%; }
.flow-out .glass small b { display: inline; font: inherit; color: var(--ink); font-weight: 600; }
.flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.wires path { fill: none; stroke: url(#wire); stroke-width: 1.6; stroke-dasharray: 4 7; animation: flowdash 1.4s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -22; } }
.core { position: relative; z-index: 2; aspect-ratio: 1; display: grid; place-items: center; }
.core .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(163, 122, 232, 0.35); animation: ring 3.6s var(--ease) infinite; }
.core .ring:nth-child(2) { animation-delay: 1.2s; }
.core .ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(0.55); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.core-disc {
  position: relative; width: 74%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 22px;
  background: radial-gradient(circle at 35% 25%, #fff 0%, #F3ECFE 45%, #E3D3FB 100%);
  box-shadow: inset 0 0 0 1.5px #fff, 0 30px 60px -20px rgba(111, 69, 201, 0.55), 0 0 0 10px rgba(255, 255, 255, 0.5);
}
.core-disc img { width: 64px; margin: 0 auto 6px; }
.core-disc .think { font-size: 0.78rem; line-height: 1.35; color: var(--brand-deep); font-weight: 600; min-height: 3.2em; transition: opacity 0.4s; }

.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 88px; }
.step { padding: 28px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lav-2); color: var(--brand-deep); font: 800 0.95rem 'Inter Tight'; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }
.step { display: flex; flex-direction: column; }
.step .shot, .step .profile { margin-top: auto; }
.step p { margin-bottom: 22px; }
.step .shot { --shot-r: 16px; }
.profile { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(140deg, #8F66D5, #A37AE8); color: #fff; box-shadow: var(--lift); }
.profile img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7); grid-row: span 2; }
.profile b { display: block; font: 700 1.1rem 'Inter Tight'; }
.profile small { display: block; font-size: 0.78rem; opacity: 0.85; }
.profile .ok { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 10px 3px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); font-size: 0.74rem; font-weight: 600; }
.profile .ok svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Health watch ───────── */
.watch-stack { position: relative; width: 100%; max-width: 440px; margin: 0 auto; display: grid; gap: 20px; }
.watch-stack .shot { position: relative; overflow: visible; }
.watch-stack .shot img { border-radius: var(--shot-r, 22px); }
.watch-stack .shot:nth-child(1) { rotate: -2deg; translate: -14px 0; }
.watch-stack .shot:nth-child(2) { rotate: 1.5deg; translate: 18px 0; }
.watch-stack .shot:nth-child(3) { rotate: -1.2deg; translate: -6px 0; }
.watch-stack .av { position: absolute; right: -14px; top: -16px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 10px 20px -6px rgba(46, 38, 54, 0.4); }
.watch-stack .av img { width: 100%; height: 100%; object-fit: cover; }

.timeline-mini { margin-top: 34px; padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.timeline-mini h4 { font: 700 0.76rem 'Inter'; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 92px; }
.days div { border-radius: 8px 8px 4px 4px; background: var(--lav-2); position: relative; }
.days div.alert { background: linear-gradient(180deg, #F6C66B, #E8A23A); }
.days-x { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; font-size: 0.72rem; color: var(--faint); text-align: center; }
.days-note { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.days-note i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: #E8A23A; }

/* ───────── Journal ───────── */
.duo { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 28px; padding: 20px 0; }
.duo .phone { --pw: 268px; }
.duo .phone:nth-child(2) { margin-top: 70px; }

/* ───────── Records ───────── */
.records-stage .phone { --pw: 290px; rotate: -2deg; }
.records-stage .f-look { width: 340px; left: -10px; top: 34%; rotate: -3deg; }
.records-stage .f-snap { right: -10px; bottom: 14%; rotate: 3deg; }
.records-stage .f-remind { right: 0; top: 10%; rotate: 4deg; }

/* ───────── Daily ───────── */
.daily { background: linear-gradient(180deg, var(--bg) 0%, #F5FAFD 50%, var(--bg) 100%); }
.bento { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; padding: 32px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -30px rgba(91, 62, 138, 0.35); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.97rem; max-width: 30em; }
.tile .art { margin-top: 26px; }
.tile.span-7 { grid-column: span 7; }
.tile.span-5 { grid-column: span 5; }
.tile.span-4 { grid-column: span 4; }
.tile.span-8 { grid-column: span 8; }
.tile.lav { background: linear-gradient(160deg, #F6F0FE, #FFFFFF); }
.tile.sky { background: linear-gradient(160deg, #EEF5FD, #FFFFFF); }
.tile.mint { background: linear-gradient(160deg, #EEF8F2, #FFFFFF); }
.tile.peach { background: linear-gradient(160deg, #FDF3E7, #FFFFFF); }
.tile .shot { --shot-r: 18px; }

.reminders { display: grid; gap: 10px; }
.rem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rem .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bgc); }
.rem .ic svg { width: 19px; height: 19px; stroke: var(--fc); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rem b { display: block; font-size: 0.93rem; font-weight: 600; }
.rem small { display: block; font-size: 0.8rem; color: var(--faint); }
.rem .when { margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--brand-deep); background: var(--lav); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.rem .src { font-size: 0.72rem; color: var(--green); font-weight: 600; }

.mini-phone { display: flex; justify-content: center; margin: 26px 0 -140px; }
.mini-phone .phone { --pw: 250px; }

.recap { display: grid; gap: 8px; }
.recap div { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.recap .bar { flex: 1; height: 10px; border-radius: 99px; background: var(--lav); overflow: hidden; }
.recap .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #C9A9F5); }
.recap span { width: 74px; color: var(--muted); }
.recap em { width: 48px; text-align: right; font-style: normal; font-weight: 600; font-size: 0.85rem; }

.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { padding: 6px 12px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.85rem; font-weight: 500; }

/* ───────── Studio ───────── */
.studio { background: linear-gradient(180deg, var(--bg) 0%, #FFF4EC 40%, #FDEFF6 75%, var(--bg) 100%); overflow: hidden; }
.studio-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.studio-art { position: relative; height: 640px; }
.studio-art .portrait {
  position: absolute; left: 12%; top: 56px; width: 62%; border-radius: 32px; overflow: hidden; rotate: -3deg;
  box-shadow: 0 0 0 10px #fff, var(--lift-lg);
}
.studio-art .from { position: absolute; left: 0; top: 0; --d: 112px; rotate: -8deg; z-index: 2; }
.studio-art .stk { position: absolute; width: 180px; filter: drop-shadow(0 18px 24px rgba(60, 35, 110, 0.28)); transition: scale 0.4s var(--ease), rotate 0.4s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease); z-index: 2; }
.studio-art .stk:hover { scale: 1.06; rotate: 0deg; }
.studio-art .s1 { right: -2%; top: 20px; rotate: 9deg; }
.studio-art .s2 { right: -4%; top: 300px; rotate: -7deg; width: 190px; }
.studio-art .s3 { left: 0; bottom: -10px; rotate: -6deg; width: 170px; }
.studio-art .s4 { left: 40%; bottom: -24px; rotate: 6deg; width: 150px; }
.styles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.styles span { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); box-shadow: var(--ring), 0 6px 16px -10px rgba(169, 96, 26, 0.5); font-size: 0.88rem; font-weight: 600; color: #7A4A17; }

/* ───────── Share ───────── */
.share-stage .phone { --pw: 290px; rotate: 2deg; }
.share-stage .f-people { width: 320px; right: -16px; top: 12%; rotate: 3deg; }
.share-stage .f-sitter { left: -6px; bottom: 16%; rotate: -3deg; }

/* ───────── Trust ───────── */
.trust { background: var(--brand-900); color: #fff; overflow: hidden; }
.trust h2, .trust h3 { color: #fff; }
.trust .lede { color: rgba(255, 255, 255, 0.72); }
.trust .kicker { background: rgba(255, 255, 255, 0.1); color: #E9DEFC; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.trust .kicker i { background: var(--green); box-shadow: 0 0 0 4px rgba(69, 179, 129, 0.25); }
.trust .accent { background-image: linear-gradient(100deg, #E9DEFC 0%, #C9A9F5 50%, #9FE0C0 120%); text-decoration-color: var(--green); }
.trust-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card { padding: 28px; border-radius: var(--r-card); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); }
.trust-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); margin-bottom: 18px; }
.trust-card .ic svg { width: 22px; height: 22px; stroke: #D9C7F8; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.trust-card p { color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; }
.founder { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(140deg, rgba(163, 122, 232, 0.35), rgba(163, 122, 232, 0.08)); }
.founder blockquote { font: 600 1.25rem/1.5 'Inter Tight'; letter-spacing: -0.01em; color: #fff; }
.founder cite { display: block; margin-top: 16px; font-style: normal; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }

/* ───────── Pricing ───────── */
.plans { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.plan { position: relative; padding: 40px; border-radius: 32px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -30px rgba(91, 62, 138, 0.35); }
.plan h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.plan .for { color: var(--muted); margin: 6px 0 26px; font-size: 0.97rem; }
.plan ul { list-style: none; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.97rem; }
.plan li svg { width: 20px; height: 20px; margin-top: 2px; stroke: var(--brand); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan li.sub { color: var(--muted); }
.plan.premium { background: linear-gradient(160deg, #3B2C54 0%, #553F79 60%, #6F539E 100%); color: #fff; box-shadow: var(--lift-lg); }
.plan.premium h3 { color: #fff; }
.plan.premium .for { color: rgba(255, 255, 255, 0.72); }
.plan.premium li svg { stroke: #FFD66B; }
.plan.premium .badge { position: absolute; top: 28px; right: 28px; }
.plan { display: flex; flex-direction: column; }
.plan .cta { margin-top: auto; padding-top: 32px; }
.plan.premium .btn { background: #fff; color: var(--brand-900); }
.plans-note { text-align: center; margin-top: 26px; font-size: 0.9rem; color: var(--faint); }

/* ───────── FAQ ───────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; position: relative; z-index: 1; }
.faq details { border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--lav-2), 0 20px 40px -30px rgba(91, 62, 138, 0.4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font: 600 1.06rem 'Inter Tight'; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lav) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F45C9' stroke-width='2.4' stroke-linecap='round'><path d='M12 6v12M6 12h12'/></svg>") center/14px no-repeat; transition: rotate 0.3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 26px 24px; color: var(--muted); font-size: 0.98rem; }

/* ───────── Final CTA ───────── */
.final { padding: 40px 0 120px; }
.final-card {
  position: relative; overflow: hidden; border-radius: 40px; padding: 80px 64px; text-align: center;
  background: linear-gradient(140deg, #EADFFD 0%, #F6EEFF 45%, #FDE9F1 100%); box-shadow: inset 0 0 0 1.5px #fff, var(--lift);
}
.final-card h2 { max-width: 13em; margin: 18px auto 18px; }
.final-card .lede { margin: 0 auto 34px; }
.final-card .stores { justify-content: center; }
.final-card .wave { position: absolute; width: 180px; left: 40px; bottom: -20px; rotate: -8deg; filter: drop-shadow(0 18px 24px rgba(60, 35, 110, 0.25)); }
.final-card .love { position: absolute; width: 170px; right: 40px; top: 30px; rotate: 10deg; filter: drop-shadow(0 18px 24px rgba(60, 35, 110, 0.25)); }

/* ───────── Footer ───────── */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot p { color: var(--faint); font-size: 0.88rem; max-width: 34em; margin-top: 12px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot ul a { color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.foot ul a:hover { color: var(--brand-deep); }
.copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }


/* ───────── Utility pages (delete account, …) ───────── */
.narrow { max-width: 820px; }
.page-hero { position: relative; padding: 148px 0 56px; background: linear-gradient(180deg, #EFE6FD 0%, #F7F2FE 60%, var(--bg) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); margin: 20px 0 18px; }
.page-body { padding: 8px 0 100px; }
.page-body .wrap > * + * { margin-top: 20px; }
.panel { padding: 32px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -32px rgba(91, 62, 138, 0.35); }
.panel h2 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2; }
.panel h3 { font-size: 1.15rem; margin-bottom: 14px; }
.panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.panel-head p { color: var(--muted); font-size: 0.97rem; margin-top: 4px; }
.badge-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--lav-2); }
.badge-ic svg { width: 24px; height: 24px; stroke: var(--brand-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-ic.warn { background: #FFF3CD; }
.badge-ic.warn svg { stroke: #8A5A00; }
.howto { list-style: none; display: grid; gap: 4px; }
.howto li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.howto li:first-child { border-top: 0; padding-top: 0; }
.howto .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 0.9rem 'Inter Tight'; }
.howto b { display: block; font-weight: 600; }
.howto span { color: var(--muted); font-size: 0.95rem; }
.howto em { font-style: normal; font-weight: 600; color: var(--ink); }
.howto a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.howto code { font: 700 0.85rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 7px; border-radius: 6px; background: var(--lav); color: var(--brand-deep); }
.howto + .btn { margin-top: 20px; }
svg.inline { width: 16px; height: 16px; vertical-align: -3px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }
.callout { display: flex; gap: 16px; padding: 24px 28px; border-radius: 24px; background: #FFF9E8; box-shadow: inset 0 0 0 1px #F6E3A8; }
.callout p { color: #5E4A1A; font-size: 0.97rem; }
.callout h3 { margin-bottom: 4px; font-size: 1.1rem; }
.callout .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.callout .links a { font-weight: 600; color: #8A5A00; text-decoration: underline; text-underline-offset: 3px; font-size: 0.95rem; }
.fates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fate { padding: 18px; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.fate .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--bgc); margin-bottom: 12px; }
.fate .ic svg { width: 20px; height: 20px; stroke: var(--fc); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fate b { display: block; font: 700 1rem 'Inter Tight'; margin-bottom: 4px; }
.fate span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; display: block; }
.fine { color: var(--faint); font-size: 0.9rem; margin-top: 16px; }
.fine.center { text-align: center; margin-top: 32px; }
.fine a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.96rem; color: var(--ink-2); }
.ticks svg { width: 20px; height: 20px; margin-top: 2px; stroke: var(--brand); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ticks.plain span { color: var(--muted); }
.ticks.plain b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .page-hero { padding: 120px 0 40px; }
  .panel { padding: 24px; border-radius: 24px; }
  .panel-head { flex-direction: column; gap: 12px; }
  .callout { flex-direction: column; padding: 22px; }
  .fates, .grid-2 { grid-template-columns: 1fr; }
}


/* Long documents (privacy, terms) */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 0.88rem; }
.toc b { font: 700 0.72rem 'Inter'; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.toc a { padding: 6px 12px; border-radius: 10px; color: var(--muted); }
.toc a:hover { background: var(--lav); color: var(--brand-deep); }
.doc { padding: 40px 44px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -32px rgba(91, 62, 138, 0.35); color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 40px 0 12px; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 28px; }
.doc h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.doc p, .doc ul, .doc ol { margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--brand); }
.doc a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .summary { padding: 20px 22px; border-radius: 20px; background: var(--lav); margin-bottom: 8px; }
.doc .summary h3 { margin-top: 0; }
.doc .summary ul { margin-bottom: 0; }
.updated { display: inline-block; margin-top: 4px; color: var(--faint); font-size: 0.92rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, transform 0.25s var(--ease); }
.contact-card:hover { box-shadow: inset 0 0 0 1px var(--brand), var(--lift); transform: translateY(-2px); }
.contact-card .badge-ic { margin-bottom: 8px; }
.contact-card b { font: 700 1.05rem 'Inter Tight'; }
.contact-card span { color: var(--muted); font-size: 0.93rem; }
.contact-card em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 600; font-size: 0.92rem; color: var(--brand-deep); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .doc { padding: 26px 22px; border-radius: 24px; }
}

/* ───────── Motion ───────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.bob { animation: bob 6s ease-in-out infinite; }
.bob.slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero-grid, .split, .studio-grid { grid-template-columns: 1fr; gap: 48px; }
  .split.flip > :first-child { order: 0; }
  .hero { padding-top: 116px; }
  .hero-copy { text-align: center; }
  .hero .lede, .hero h1 { margin-left: auto; margin-right: auto; }
  .hero .stores, .hero .promises { justify-content: center; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .split > div:first-child:not(.stage) { text-align: left; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-in .glass { justify-self: stretch; width: 100%; }
  .core { width: 220px; margin: 0 auto; }
  .flow svg.wires { display: none; }
  .steps { grid-template-columns: 1fr; }
  .bento > .tile { grid-column: 1 / -1 !important; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .founder { grid-column: 1 / -1; }
  .studio-art { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .menu-btn { display: grid; }
  .nav .btn-primary { display: none; }
  .nav.open .nav-links { display: grid; position: absolute; top: 72px; left: 16px; right: 16px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: var(--lift-lg); }
  .nav.open .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .hero-visual { height: 560px; }
  .hero-visual .phone { --pw: 240px; }
  .hero .f-miso { --d: 92px; top: 60px; }
  .hero .f-pixel { --d: 80px; right: 0; top: 120px; }
  .hero .f-card { width: 280px; left: 0; bottom: 20px; }
  .hero .f-watch { right: 0; top: 270px; }
  .stage { min-height: 520px; }
  .watch-stack .shot { translate: none !important; }
  .watch-stack .av { right: -6px; width: 48px; height: 48px; }
  .records-stage .phone, .share-stage .phone { --pw: 240px; }
  .records-stage .f-look { width: 270px; }
  .share-stage .f-people { width: 250px; right: 0; }
  .halo { width: 380px; height: 380px; }
  .duo { gap: 14px; }
  .duo .phone { --pw: 44vw; }
  .duo .phone:nth-child(2) { margin-top: 40px; }
  .tile { padding: 24px; }
  .trust-grid, .plans { grid-template-columns: 1fr; }
  .plan { padding: 30px; }
  .studio-art { height: 480px; }
  .studio-art .stk { width: 130px; }
  .studio-art .s3 { width: 120px; }
  .studio-art .s4 { width: 110px; }
  .studio-art .from { --d: 84px; }
  .final-card { padding: 56px 24px 150px; border-radius: 32px; }
  .final-card .wave { width: 120px; left: 12px; }
  .final-card .love { width: 110px; right: 12px; top: auto; bottom: -6px; }
  .store { height: 48px; }
}
