/* Pofu landing page — mobile-first. Legacy pages keep using styles.css. */

:root {
  --bg1: #FCE9F1;
  --bg2: #F5D3E3;
  --ink: #3D1F38;
  --ink2: #6A4863;
  --pink: #DE5187;
  --pink-deep: #B93A6C;
  --pink-text: #A32F5E;
  --soft-pink: rgba(222, 81, 135, .12);
  --line: rgba(61, 31, 56, .12);
  --plum1: #4C2145;
  --plum2: #2E1229;
  --backdrop: linear-gradient(160deg, #F7BDD6, #EE9CC1 62%, #E58AB4);

  /* Cards stay light in light mode, turn plum in dark mode. */
  --card: #FFFFFF;
  --card-ink: #3D1F38;
  --card-ink2: #6A4863;
  --card-accent: #A32F5E;
  --card-soft: #FBE0EC;
  --card-muted: #B8A2B2;
  --pofu-col: #FDF0F6;

  --shadow: 0 30px 60px -28px rgba(76, 33, 69, .42), 0 10px 22px -12px rgba(76, 33, 69, .2);
  --shadow-sm: 0 1px 0 rgba(61, 31, 56, .06), 0 14px 34px -20px rgba(76, 33, 69, .35);
  --bar-h: 0px;
  --head: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #2E1229;
    --bg2: #3A1834;
    --ink: #FCE9F1;
    --ink2: #E2BFD6;
    --pink-text: #F59BC0;
    --soft-pink: rgba(245, 155, 192, .16);
    --line: rgba(252, 233, 241, .14);
    --plum1: #22091F;
    --plum2: #160513;
    --backdrop: linear-gradient(160deg, #6A2D5E, #4E1F47 62%, #43193D);
    --card: #45203F;
    --card-ink: #FCE9F1;
    --card-ink2: #D8B6CD;
    --card-accent: #F59BC0;
    --card-soft: rgba(245, 155, 192, .16);
    --card-muted: #9D7C94;
    --pofu-col: rgba(245, 155, 192, .09);
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), 0 10px 22px -12px rgba(0, 0, 0, .45);
    --shadow-sm: 0 1px 0 rgba(252, 233, 241, .05), 0 14px 34px -20px rgba(0, 0, 0, .6);
  }
}

html.is-ios { --bar-h: 60px; }

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 1rem/1.5 var(--body);
  color: var(--ink);
  background: var(--bg1);
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }

[id] { scroll-margin-top: calc(var(--bar-h) + 12px); }

img, video { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; text-wrap: balance; margin: 0; }

p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

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

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: #fff; color: #3D1F38; padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Shared bits ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(222, 81, 135, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #B93A6C;
  font: 700 .72rem/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pill svg { width: 13px; height: 13px; color: #DE5187; }

.pill--dark { background: rgba(255, 255, 255, .08); border-color: rgba(245, 155, 192, .45); color: #F59BC0; }
.pill--dark svg { color: #F59BC0; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .76rem/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-text);
}
.kicker svg { width: 17px; height: 17px; }

.section-head { max-width: 42rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1.02; letter-spacing: -.032em; margin: 12px 0 14px; }
.section-lede { font-size: 1.125rem; line-height: 1.5; color: var(--ink2); max-width: 65ch; }
.section-lede a { color: var(--pink-text); font-weight: 600; }

.store-badge { display: inline-block; border-radius: 12px; transition: transform .25s var(--ease); }
.store-badge img { height: 56px; width: auto; }
.store-badge--lg img { height: 60px; }
.store-badge:hover { transform: translateY(-2px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: #B93A6C; color: #fff;
  font: 700 1rem var(--body); text-decoration: none;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: #A32F5E; transform: translateY(-1px); }
.btn--ghost { background: var(--card-soft); color: var(--card-ink); }
.btn--ghost:hover { background: #F8CFE1; color: #3D1F38; }

.dot { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; }
.dot svg { width: 18px; height: 18px; }
.dot--pink { background: #FBD3E4; color: #A32F5E; }
.dot--plum { background: #EAD3E5; color: #4C2145; }
.dot--peach { background: #FCE1C8; color: #9A4B17; }

.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; }
.facts li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.facts svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--soft-pink); color: var(--pink-text); }

.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 12px; border-radius: 999px;
  background: var(--card); color: var(--card-ink); box-shadow: var(--shadow-sm); font-weight: 600;
}
.chips svg { width: 18px; height: 18px; color: var(--card-accent); }

/* Scroll reveal (only when JS runs) */
html.js .rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity .75s var(--ease) calc(var(--d, 0) * 120ms), transform .75s var(--ease) calc(var(--d, 0) * 120ms);
}
html.js .rv.in { opacity: 1; transform: none; }

/* ---------- iOS bar + redirect countdown ---------- */

.ios-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  height: var(--bar-h); padding: 0 12px;
  background: rgba(252, 233, 241, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(61, 31, 56, .1);
  color: #3D1F38;
}
.ios-bar img { border-radius: 9px; }
.ios-bar p { flex: 1; line-height: 1.15; min-width: 0; }
.ios-bar strong { display: block; font: 700 .98rem var(--head); }
.ios-bar span { font-size: .78rem; color: #6A4863; }
.ios-bar__btn {
  background: #B93A6C; color: #fff; text-decoration: none; white-space: nowrap;
  border-radius: 999px; padding: 10px 15px; font: 700 .86rem var(--body);
}

.redirect {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
  max-width: 480px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
  padding: 12px 12px 14px 18px; border-radius: 22px; overflow: hidden;
  background: #2E1229; color: #FCE9F1;
  box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .55);
}
.redirect p { font-weight: 600; white-space: nowrap; }
.redirect b { font-variant-numeric: tabular-nums; color: #F59BC0; }
.redirect__actions { display: flex; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
.redirect__cancel, .redirect__go { white-space: nowrap; }
.redirect__cancel, .redirect__go {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font: 700 .9rem var(--body); text-decoration: none; cursor: pointer;
}
.redirect__cancel { background: transparent; color: #FCE9F1; border: 1px solid rgba(252, 233, 241, .4); }
.redirect__go { background: #B93A6C; color: #fff; border: 0; }
.redirect::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: #DE5187; transform-origin: left;
}
.redirect.is-running::after { animation: drain var(--countdown, 5s) linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Header ---------- */

.top {
  position: absolute; top: var(--bar-h); left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.3rem var(--head); letter-spacing: -.02em; text-decoration: none; color: inherit; }
.brand img { border-radius: 10px; }
.top__nav { display: flex; gap: 4px; }
.top__nav a {
  padding: 8px 10px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: inherit;
}
.top__nav a:hover { background: rgba(255, 255, 255, .16); }
.top__nav a[href="#features"], .top__nav a[href="#faq"] { display: none; }
.top__cta { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100svh - var(--bar-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 96px 20px calc(30px + env(safe-area-inset-bottom));
  color: #fff; background: #2E1229;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(46, 18, 41, .55) 0%, rgba(46, 18, 41, 0) 20%,
    rgba(46, 18, 41, 0) 36%, rgba(46, 18, 41, .72) 60%, rgba(46, 18, 41, .95) 100%);
}
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
}
.hero__video, .phone__screen video { opacity: 0; transition: opacity .6s var(--ease); }
.hero__video.is-playing, .phone__screen video.is-playing { opacity: 1; }

.hero__copy { position: relative; max-width: 36rem; }
.hero h1 {
  font-size: clamp(2.6rem, 11.6vw, 5.2rem); line-height: .98; letter-spacing: -.038em;
  margin: 16px 0 14px;
}
.hero h1 em { font-style: normal; color: #F59BC0; }
.hero__lede { font-size: clamp(1.1rem, 4.4vw, 1.3rem); line-height: 1.42; color: rgba(255, 255, 255, .92); max-width: 30ch; }
.hero__cta { margin-top: 24px; }
.hero__fine { margin-top: 10px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero__chip { display: none; }

.vid-toggle {
  position: absolute; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(46, 18, 41, .55); color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.vid-toggle svg { width: 16px; height: 16px; }
.vid-toggle .ic-play, .vid-toggle[aria-pressed="true"] .ic-pause { display: none; }
.vid-toggle[aria-pressed="true"] .ic-play { display: block; }
.hero .vid-toggle { top: 72px; right: 16px; }

/* ---------- Snap → Counted → Balanced ---------- */

.flow { padding: 76px 0 72px; background: linear-gradient(180deg, var(--bg1), var(--bg2)); }
.flow__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; position: relative; }
.flow__steps::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--pink) 0 8px, transparent 8px 16px);
  opacity: .55;
}
.step {
  position: relative; z-index: 1;
  background: var(--card); color: var(--card-ink);
  border-radius: 28px; padding: 14px 14px 24px;
  box-shadow: var(--shadow-sm);
}
.step__visual {
  position: relative; height: 220px; border-radius: 20px; overflow: hidden;
  background: var(--card-soft); display: grid; place-items: center; margin-bottom: 18px;
}
.step__num { font: 700 .74rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--card-accent); padding-inline: 8px; }
.step h3 { font-size: 1.32rem; line-height: 1.15; letter-spacing: -.015em; margin: 8px 0 6px; padding-inline: 8px; }
.step > p:last-child { color: var(--card-ink2); padding-inline: 8px; }

.step__visual--snap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder {
  position: absolute; inset: 16% 18% 26%; border-radius: 16px;
  --c: rgba(255, 255, 255, .95);
  background:
    linear-gradient(var(--c), var(--c)) top left / 28px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 3px 28px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 28px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 3px 28px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 28px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 3px 28px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 28px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 3px 28px no-repeat;
  overflow: hidden;
}
.viewfinder::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 2px;
  background: #F59BC0; box-shadow: 0 0 14px 3px rgba(245, 155, 192, .8);
  opacity: 0;
}
.step.in .viewfinder::after { animation: scan 2.4s var(--ease) .5s 2; }
@keyframes scan { 0% { top: 4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 94%; opacity: 0; } }
.shutter {
  position: absolute; left: 50%; bottom: 12px; width: 46px; height: 46px; margin-left: -23px;
  border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, .35);
}

.result {
  width: min(88%, 280px); background: var(--card); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); text-align: left;
}
.result__label { display: flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--card-accent); letter-spacing: .06em; text-transform: uppercase; }
.result__label svg { width: 13px; height: 13px; }
.result__meal { margin-top: 6px; font-weight: 600; font-size: .92rem; }
.result__kcal { font: 700 2.1rem/1.05 var(--head); letter-spacing: -.03em; }
.result__kcal span { font: 600 .9rem var(--body); color: var(--card-ink2); letter-spacing: 0; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.macro { display: flex; flex-direction: column-reverse; gap: 5px; font-size: .7rem; font-weight: 600; color: var(--card-ink2); }
.macro i { display: block; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.macro i::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  transform-origin: left; transform: scaleX(var(--v));
  transition: transform 1s var(--ease) .5s;
}
html.js .step:not(.in) .macro i::before { transform: scaleX(0); }
.macro--p i::before { background: #9B7BD8; }
.macro--c i::before { background: #DE5187; }
.macro--f i::before { background: #E6A15A; }
.result__edit { margin-top: 10px; font-size: .74rem; font-weight: 700; color: var(--card-accent); }

.step__visual--balance { align-content: center; justify-items: center; gap: 10px; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring__track { stroke: var(--line); }
.ring__bar {
  stroke: var(--pink); stroke-linecap: round;
  stroke-dasharray: 301.6; stroke-dashoffset: 187;
  transition: stroke-dashoffset 1.4s var(--ease) .5s;
}
html.js .step:not(.in) .ring__bar { stroke-dashoffset: 301.6; }
.ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font: 700 2rem/1 var(--head); letter-spacing: -.03em; }
.ring span { font-size: .78rem; color: var(--card-ink2); font-weight: 600; }
.balance__note { font-size: .82rem; font-weight: 600; color: var(--card-ink2); }

/* ---------- Features ---------- */

.feature { padding: 72px 0; background: linear-gradient(180deg, var(--bg2), var(--bg1)); }
.feature--flip { background: var(--bg1); }
.feature__grid { display: grid; gap: 36px; align-items: center; }
.feature__copy h2 { font-size: clamp(2rem, 7.4vw, 3.3rem); line-height: 1.03; letter-spacing: -.03em; margin: 14px 0 16px; }
.feature__copy > p { font-size: 1.1rem; line-height: 1.55; color: var(--ink2); max-width: 38rem; }

.feature--dark {
  --ink: #FCE9F1; --ink2: #E2BFD6; --pink-text: #F59BC0; --soft-pink: rgba(245, 155, 192, .18);
  --backdrop: linear-gradient(160deg, #7A3569, #5A2450 60%, #4C2145);
  color: var(--ink);
  background: radial-gradient(70% 60% at 80% 50%, rgba(222, 81, 135, .22), rgba(222, 81, 135, 0) 70%), linear-gradient(180deg, #4C2145, #2E1229);
}
@media (prefers-color-scheme: dark) {
  .feature--dark { background: radial-gradient(70% 60% at 80% 50%, rgba(222, 81, 135, .16), rgba(222, 81, 135, 0) 70%), linear-gradient(180deg, #22091F, #160513); }
}

.stage {
  --pw: min(262px, 66vw);
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 4px 8px;
}
.stage::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--pw) * .18);
  width: calc(var(--pw) * 1.25); height: calc(var(--pw) * 1.72);
  margin-left: calc(var(--pw) * -.625);
  border-radius: 48px; background: var(--backdrop); transform: rotate(-7deg);
}
.stage--tilt-r::before { transform: rotate(7deg); }

.phone {
  position: relative; z-index: 1; margin: 0;
  width: var(--pw); aspect-ratio: 9 / 18.4;
  padding: 9px; border-radius: 46px;
  background: linear-gradient(150deg, #3B2537, #140A13 62%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .13), 0 44px 70px -30px rgba(46, 18, 41, .65), 0 12px 26px -14px rgba(46, 18, 41, .4);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: #F5D3E3; transform: translateZ(0);
}
.phone__screen::before {
  content: ""; position: absolute; z-index: 2; top: 9px; left: 50%;
  width: 30%; height: 22px; margin-left: -15%; border-radius: 12px; background: #0B060A;
}
.phone__screen img, .phone__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .vid-toggle { right: 18px; bottom: 18px; width: 36px; height: 36px; }

.ui-card {
  --card-soft: #FBE0EC;
  position: relative; z-index: 2;
  width: min(250px, 72vw); margin-top: -70px;
  background: var(--card); color: var(--card-ink);
  border-radius: 22px; padding: 14px;
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .ui-card { --card-soft: rgba(245, 155, 192, .16); } }
.ui-card--br { align-self: flex-end; }
.ui-card--bl { align-self: flex-start; }
.ui-card__row { display: flex; gap: 10px; align-items: center; }
.ui-card__row b { display: block; font: 700 1.02rem/1.15 var(--head); }
.ui-card__row small { display: block; font-size: .74rem; color: var(--card-ink2); font-weight: 600; }
.ui-card__title { font: 700 1.02rem var(--head); }
.ui-card__text { margin: 10px 0 12px; font-size: .8rem; line-height: 1.45; color: var(--card-ink2); }
.ui-card__tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  padding: 6px 10px; border-radius: 999px; background: var(--card-soft);
  color: var(--card-accent); font-size: .72rem; font-weight: 700;
}
.ui-card__tag svg { width: 13px; height: 13px; flex: none; }

.swap { display: grid; gap: 2px; margin: 10px 0 12px; font-size: .84rem; }
.swap s { color: var(--card-muted); }
.swap span { font-weight: 700; }

.week { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.week li {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-soft); color: var(--card-accent); font-size: .64rem; font-weight: 700;
}
.week li.is-grace { background: #4C2145; color: #fff; }
.week li.is-today { box-shadow: 0 0 0 2px var(--pink); }
.week svg { width: 12px; height: 12px; }

.plans-mini { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.plans-mini li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line);
  font-size: .74rem; color: var(--card-ink2);
}
.plans-mini b { min-width: 40px; font: 700 .95rem var(--head); color: var(--card-ink); }
.plans-mini li.is-on { background: var(--card-soft); border-color: #E48BB2; }

.watch { position: relative; z-index: 2; width: 108px; margin-top: -84px; align-self: flex-end; margin-right: 2px; }
.watch__case {
  position: relative; padding: 9px; border-radius: 38px; background: #0C0A0C;
  box-shadow: inset 0 0 0 2px #2B2429, var(--shadow);
}
.watch__case::after { content: ""; position: absolute; right: -5px; top: 26%; width: 6px; height: 24px; border-radius: 3px; background: #2B2429; }
.watch__case img { width: 100%; height: auto; border-radius: 29px; }

/* ---------- Compare ---------- */

.compare { padding: 76px 0; background: var(--bg1); }
.compare__table {
  max-width: 880px; border-radius: 28px; overflow: hidden;
  background: var(--card); color: var(--card-ink); box-shadow: var(--shadow);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare thead th {
  width: 50%; padding: 18px 18px; text-align: left;
  font: 700 1.02rem/1.2 var(--head); color: var(--card-ink2);
}
.compare thead th.is-pofu { background: #B93A6C; color: #fff; }
.compare__label th {
  padding: 18px 18px 6px; text-align: left; border-top: 1px solid var(--line);
  font: 700 .72rem var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--card-accent);
  background: linear-gradient(90deg, transparent 50%, var(--pofu-col) 50%);
}
.compare td { width: 50%; padding: 4px 18px 20px; vertical-align: top; line-height: 1.4; color: var(--card-ink2); }
.compare td svg { display: inline-block; width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; color: var(--card-muted); }
.compare td.is-pofu { background: var(--pofu-col); color: var(--card-ink); font-weight: 600; }
.compare td.is-pofu svg { color: #DE5187; }

/* ---------- Trust ---------- */

.trust { padding: 76px 0; background: linear-gradient(180deg, var(--bg1), var(--bg2)); }
.trust__grid { display: grid; gap: 18px; }
.founder {
  position: relative; overflow: hidden; margin: 0;
  background: var(--card); color: var(--card-ink);
  border-radius: 28px; padding: 28px 24px 24px; box-shadow: var(--shadow);
}
.founder::before {
  content: "\201C"; position: absolute; right: 18px; top: -26px;
  font: 700 11rem/1 var(--head); color: #DE5187; opacity: .16;
}
.founder .kicker { color: var(--card-accent); }
.founder blockquote { margin: 14px 0 22px; }
.founder blockquote p { font: 700 clamp(1.3rem, 5vw, 1.8rem)/1.28 var(--head); letter-spacing: -.015em; text-wrap: pretty; }
.founder figcaption { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--card-ink2); }
.founder figcaption img { border-radius: 12px; }
.founder figcaption b { display: block; color: var(--card-ink); font-size: 1rem; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promises li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); color: var(--card-ink2);
  border-radius: 22px; padding: 18px; box-shadow: var(--shadow-sm);
}
.promises b { display: block; font: 700 1.06rem/1.25 var(--head); color: var(--card-ink); margin-bottom: 2px; }

/* ---------- Pricing ---------- */

.pricing {
  --ink: #FCE9F1; --ink2: #E2BFD6; --pink-text: #F59BC0; --soft-pink: rgba(245, 155, 192, .18);
  color: var(--ink); padding: 84px 0;
  background: radial-gradient(80% 50% at 50% 0%, rgba(222, 81, 135, .28), rgba(222, 81, 135, 0) 70%), linear-gradient(180deg, var(--plum1), var(--plum2));
}
.free {
  display: grid; gap: 16px; margin-bottom: 18px; padding: 22px;
  border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(252, 233, 241, .16);
}
.free__price { color: var(--ink2); }
.free__price b { font: 700 2.2rem/1 var(--head); color: var(--ink); letter-spacing: -.03em; margin-right: 4px; }
.free__sub { margin-top: 4px; color: var(--ink2); font-size: .92rem; }
.facts--inline { margin: 0; }

.plans { display: grid; gap: 16px; margin-top: 30px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 26px 24px 24px; border-radius: 26px;
  background: var(--card); color: var(--card-ink);
}
.plan h3 { font-size: 1.1rem; color: var(--card-ink2); }
.plan__price b { font: 700 2.7rem/1 var(--head); letter-spacing: -.035em; }
.plan__price span { margin-left: 6px; font-weight: 600; color: var(--card-ink2); }
.plan__note { flex: 1; margin: 2px 0 16px; color: var(--card-ink2); }
.plan--best { order: -1; box-shadow: 0 0 0 3px #DE5187, 0 34px 60px -24px rgba(0, 0, 0, .55); }
.plan__badge {
  position: absolute; top: -13px; left: 22px; padding: 5px 12px; border-radius: 999px;
  background: #B93A6C; color: #fff; font: 700 .72rem var(--body); letter-spacing: .1em; text-transform: uppercase;
}
.pro-list { margin-top: 28px; }
.pro-list p { font-weight: 700; margin-bottom: 10px; }
.pro-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pro-list li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(252, 233, 241, .24); font-size: .92rem; font-weight: 600; }
.pricing__legal { margin-top: 22px; max-width: 65ch; font-size: .82rem; line-height: 1.55; color: #D8B6CD; }

/* ---------- FAQ ---------- */

.faq { padding: 80px 0; background: var(--bg1); }
.faq__grid { display: grid; gap: 8px; }
.faq__list details {
  margin-bottom: 10px; border-radius: 20px;
  background: var(--card); color: var(--card-ink); box-shadow: var(--shadow-sm);
}
.faq__list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 19px 60px 19px 20px; border-radius: 20px;
  font: 700 1.06rem/1.3 var(--head);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; color: var(--card-accent);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--card-soft);
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 20px 20px; max-width: 65ch; line-height: 1.58; color: var(--card-ink2); }

/* ---------- Final CTA + footer ---------- */

.final {
  padding: 88px 0; color: #FCE9F1;
  background: radial-gradient(70% 70% at 85% 60%, rgba(222, 81, 135, .3), rgba(222, 81, 135, 0) 70%), linear-gradient(180deg, var(--plum1), var(--plum2));
}
.final__inner { display: grid; justify-items: start; }
.final__icon { width: 92px; height: 92px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 22px 50px -12px rgba(222, 81, 135, .6); }
.final h2 { font-size: clamp(2.8rem, 12vw, 5.6rem); line-height: .98; letter-spacing: -.04em; margin: 16px 0 14px; }
.final h2 em { font-style: normal; color: #F59BC0; }
.final .section-lede { color: #E2BFD6; margin-bottom: 26px; }
.final .hero__fine { color: #E2BFD6; }

.foot { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); background: var(--plum2); color: #E2BFD6; border-top: 1px solid rgba(252, 233, 241, .08); }
.foot__inner { display: grid; gap: 18px; }
.foot .brand { color: #FCE9F1; font-size: 1.15rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: #FCE9F1; text-decoration: none; padding: 6px 0; font-weight: 600; }
.foot nav a:hover { text-decoration: underline; }
.foot__fine { font-size: .82rem; line-height: 1.6; color: #D8B6CD; }

/* ---------- Breakpoints ---------- */

@media (min-width: 560px) {
  .top__nav a[href="#features"], .top__nav a[href="#faq"] { display: inline-block; }
  .facts--inline { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 820px) {
  .flow__steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .flow__steps::before {
    left: 8%; right: 8%; top: 124px; bottom: auto; width: auto; height: 2px; margin: 0;
    background: repeating-linear-gradient(90deg, var(--pink) 0 8px, transparent 8px 16px);
  }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan--best { order: 0; transform: translateY(-10px); }
}

@media (min-width: 960px) {
  .wrap { width: min(1160px, 100% - 64px); }

  .top { color: var(--ink); padding: 20px max(32px, calc((100vw - 1160px) / 2)); }
  .top__nav a:hover { background: var(--soft-pink); }
  .top__cta {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
    background: #B93A6C; color: #fff; font-weight: 700; text-decoration: none; margin-left: auto;
  }
  .top__nav { margin-left: auto; }
  .top__cta { margin-left: 8px; }

  .hero {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
    gap: clamp(32px, 5vw, 80px);
    min-height: max(640px, calc(100svh - var(--bar-h)));
    padding: 108px max(32px, calc((100vw - 1160px) / 2)) 56px;
    color: var(--ink);
    background:
      radial-gradient(55% 70% at 76% 46%, rgba(222, 81, 135, .22), rgba(222, 81, 135, 0) 70%),
      linear-gradient(180deg, var(--bg1), var(--bg2));
  }
  .hero__media {
    position: relative; inset: auto; z-index: 0; order: 2; justify-self: center;
    width: min(100%, 440px); aspect-ratio: 9 / 14.2;
  }
  .hero__media::after { display: none; }
  .hero__media::before {
    content: ""; position: absolute; inset: 0; border-radius: 240px 240px 36px 36px;
    box-shadow: 0 60px 90px -40px rgba(76, 33, 69, .55), 0 18px 36px -18px rgba(76, 33, 69, .35);
  }
  .hero__poster, .hero__video { border-radius: 240px 240px 36px 36px; object-position: 50% 30%; }
  .hero__copy { order: 1; }
  .hero h1 { font-size: clamp(3.6rem, 6.4vw, 6rem); }
  .hero h1 em { color: #DE5187; }
  .hero__lede { color: var(--ink2); font-size: 1.35rem; }
  .hero__fine { color: var(--ink2); }
  .hero .vid-toggle { top: auto; bottom: 18px; right: 18px; }

  .hero__chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 10px; border-radius: 18px;
    background: var(--card); color: var(--card-ink); box-shadow: var(--shadow);
    animation: bob 7s ease-in-out infinite;
  }
  .hero__chip small { display: block; font-size: .72rem; font-weight: 600; color: var(--card-ink2); }
  .hero__chip b { display: block; font: 700 .95rem var(--head); white-space: nowrap; }
  .hero__chip--a { left: -72px; top: 20%; }
  .hero__chip--b { right: -20px; bottom: 22%; animation-delay: -3.5s; }

  .section-head { margin-bottom: 48px; }
  .flow, .compare, .trust { padding: 110px 0; }
  .feature { padding: 110px 0; }
  .feature__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature__copy h2 { font-size: clamp(2.4rem, 3.7vw, 3.2rem); }
  .compare .wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
  .compare .section-head { margin-bottom: 0; }
  .feature--flip .feature__copy { order: 2; }

  .stage { --pw: 292px; display: grid; place-items: center; min-height: 660px; padding: 0; }
  .stage::before { top: 50%; margin-top: calc(var(--pw) * -.86); }
  /* Phone shifts aside so the floating UI never covers the clip's captions. */
  .stage--tilt-l .phone { translate: -92px 0; }
  .stage--tilt-r .phone { translate: 92px 0; }
  .ui-card, .watch { position: absolute; margin: 0; }
  .ui-card { width: 262px; bottom: 16%; }
  .ui-card--br { right: 0; }
  .ui-card--bl { left: 0; }
  .watch { width: 150px; right: 14px; bottom: 14%; }

  .trust__grid { grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
  .founder { padding: 40px 36px 32px; }

  .free { grid-template-columns: 240px 1fr; align-items: center; padding: 26px 30px; }
  .pricing, .faq { padding: 120px 0; }

  .faq__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: 32px; }

  .final { padding: 130px 0; }
  .final__inner { grid-template-columns: 1fr auto; column-gap: 64px; }
  .final__inner > * { grid-column: 1; }
  .final__icon {
    grid-column: 2; grid-row: 1 / span 6; align-self: center;
    width: 240px; height: 240px; border-radius: 54px; transform: rotate(-6deg); margin: 0;
  }
  .foot__inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; }
  .foot nav { justify-content: flex-end; }
  .foot__fine { grid-column: 1 / -1; }
}

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

@media (hover: none) {
  .store-badge:hover, .btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero__video { display: none; }
}
