/* Jerry — jerryapp.io
   Hand-written, no build step. Brand tokens mirror the app (Savvy/Config/Theme.swift). */

@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #1B1C1E;
  --ink-2: #4A4A4A;
  --muted: #5D5D5D;
  --faint: #8E8780;
  --bg: #F8F6F4;
  --card: #F1EEEA;
  --line: #E9E6E0;
  --line-2: #DDD8D2;
  --white: #FFFFFF;
  --blush: #F8C7C8;
  --peach: #FFD0B8;
  --butter: #F9DF8C;
  --sage: #A7C8AE;
  --peri: #AAB9FF;
  --travel: #7AB8E8;
  --recipes: #D98B6B;
  --watch: #8B7AB8;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 28px;
  --wrap: 1240px;
  --mx: 0; --my: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Jakarta", -apple-system, system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--peri); color: var(--ink); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ticker (top strip) ---------- */
.ticker {
  position: relative; z-index: 60;
  height: 34px; overflow: hidden;
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center;
}
.ticker__track { display: flex; gap: 40px; white-space: nowrap; animation: marquee var(--dur, 90s) linear infinite; padding-left: 40px; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; }
.ticker__item b { color: #fff; font-weight: 600; }
.ticker__src { flex: none; width: 17px; height: 17px; margin-left: 2px; color: rgba(255,255,255,.8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(248, 246, 244, .72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 rgba(27, 28, 30, .06);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(72, 84, 240, .28), 0 0 0 1px rgba(27, 28, 30, .06); }
.nav__links { display: flex; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav__links a { padding: 8px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.nav__links a:hover { background: var(--card); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  will-change: transform;
}
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(27,28,30,.18), inset 0 1px 0 rgba(255,255,255,.12); }
.btn--dark:hover { box-shadow: 0 14px 34px rgba(27,28,30,.26), inset 0 1px 0 rgba(255,255,255,.12); }
.btn--ghost { background: var(--white); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--card); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--light { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.appstore { --h: 56px; padding: 0 24px 0 20px; }
.appstore__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore__txt small { font-size: 10.5px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.appstore__txt span { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.appstore svg { width: 24px; height: 24px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: 0 2px 10px rgba(27,28,30,.04);
}
.eyebrow img { width: 22px; height: 22px; border-radius: 6px; }
.display {
  font-weight: 800;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: .95;
  letter-spacing: -.055em;
}
.h2 {
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -.045em;
}
.h3 { font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.025em; line-height: 1.1; }
.lede { font-size: clamp(17px, 1.45vw, 21px); color: var(--muted); line-height: 1.45; max-width: 34em; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.grad-text {
  background: linear-gradient(100deg, #6E7CF0 0%, #A98BEA 35%, #F09A86 70%, #F2C66B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Split-word reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
.split.in .w > span { transform: none; }

/* Generic reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(.94) translateY(20px); }

/* ---------- Iso pattern (background) ---------- */
.iso {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='42' viewBox='0 0 72 42'%3E%3Cpath d='M36 0 72 21 36 42 0 21Z' fill='%231B1C1E' fill-opacity='.035'/%3E%3C/svg%3E");
  background-size: 72px 42px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 60%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 60%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 0; text-align: center; }
.hero__copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero__copy .lede { margin-inline: auto; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__note { font-size: 13px; color: var(--faint); }

.stage {
  position: relative; z-index: 2;
  height: clamp(560px, 64vw, 860px);
  margin-top: clamp(24px, 4vw, 56px);
  perspective: 1400px;
}
.stage__glow {
  position: absolute; left: 50%; top: 46%; width: 70vw; max-width: 980px; aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side at 35% 45%, rgba(170, 185, 255, .55), transparent),
    radial-gradient(closest-side at 65% 55%, rgba(255, 208, 184, .55), transparent),
    radial-gradient(closest-side at 50% 30%, rgba(249, 223, 140, .35), transparent);
  filter: blur(30px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08) rotate(6deg); } }

.stage .phone { position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 4; }

/* Floating save cards around the hero phone */
.floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.floater {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--w, 210px);
  transform:
    translate3d(calc(var(--mx) * var(--depth) * 1px), calc(var(--my) * var(--depth) * 1px + var(--sy, 0px)), 0)
    rotate(var(--r));
  transition: transform .9s var(--ease);
  pointer-events: auto;
}
.floater__inner {
  background: var(--white); border-radius: 22px; padding: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 60px -12px rgba(40, 30, 80, .22), 0 6px 18px rgba(27,28,30,.06);
  border: 1px solid rgba(221, 216, 210, .7);
  opacity: 0; transform: translateY(40px) scale(.9);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-spring), box-shadow .4s;
  transition-delay: var(--d, 0ms);
  animation: bob 7s ease-in-out infinite; animation-delay: var(--bob, 0s);
}
.hero.in .floater__inner { opacity: 1; transform: none; }
.floater:hover .floater__inner { box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 34px 80px -12px rgba(40, 30, 80, .32); }
.floater__img { aspect-ratio: 1.25; border-radius: 15px; overflow: hidden; background: var(--card); }
.floater__img img { width: 100%; height: 100%; object-fit: cover; }
.floater__meta { display: flex; align-items: center; gap: 8px; padding: 10px 6px 4px; text-align: left; }
.floater__meta b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.floater__meta small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; }
.chip-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--c, var(--card)); }
.chip-ic svg { width: 16px; height: 16px; }
@keyframes bob { 50% { translate: 0 -10px; } }

.saved-toast {
  position: absolute; z-index: 6; left: 50%; bottom: 9%;
  translate: -50% 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: rgba(27, 28, 30, .9); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -10px rgba(27,28,30,.4);
  opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .7s var(--ease), transform .8s var(--ease-spring);
  transition-delay: 1.4s;
}
.hero.in .saved-toast { opacity: 1; transform: none; }
.saved-toast i { width: 26px; height: 26px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-style: normal; }
.saved-toast span { opacity: .6; font-weight: 500; }

/* ---------- Phone ---------- */
.phone {
  --pw: clamp(240px, 22vw, 320px);
  width: var(--pw);
  aspect-ratio: 1080 / 2340;
  border-radius: calc(var(--pw) * .16);
  padding: calc(var(--pw) * .032);
  background: linear-gradient(145deg, #2c2d31, #0e0e10 55%, #2a2b2f);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 0 calc(var(--pw) * .006) #45464b,
    0 50px 100px -20px rgba(30, 25, 70, .45),
    0 30px 60px -30px rgba(0,0,0,.5);
  position: relative;
}
.phone::after { /* side buttons */
  content: ""; position: absolute; right: calc(var(--pw) * -.012); top: 26%; width: calc(var(--pw) * .012); height: 11%;
  background: #2a2b2f; border-radius: 0 3px 3px 0;
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--pw) * .13);
  overflow: hidden; background: var(--bg);
  isolation: isolate;
}
.phone__screen > video, .phone__screen > img, .phone__screen > picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.phone__screen > .is-off { opacity: 0; transform: scale(1.04); }
.phone__screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 28%);
}

/* ---------- Sources marquee ---------- */
.sources { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 7vw, 100px); text-align: center; }
.sources p { font-size: 14px; color: var(--faint); font-weight: 600; margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.src {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink-2);
}
.src svg { width: 22px; height: 22px; }

/* ---------- Section shell ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.section__head { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.section__head.center { margin-inline: auto; text-align: center; align-items: center; }

/* ---------- How it works (pinned) ---------- */
.how { position: relative; height: 340vh; }
.how__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.how__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
.how__steps { position: relative; display: grid; }
.how__step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.how__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.how__num { font-size: 15px; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.how__step h3 { font-size: clamp(36px, 4vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.how__step p { font-size: 18px; color: var(--muted); line-height: 1.45; max-width: 22em; }
.how__rail { display: flex; flex-direction: column; gap: 14px; justify-self: end; }
.how__dot { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 15px; color: var(--faint); transition: color .4s; }
.how__dot i { position: relative; width: 44px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.how__dot i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.how__dot.is-on { color: var(--ink); }
.how .phone { --pw: min(clamp(250px, 24vw, 340px), calc((100vh - 120px) * .4615)); }
.how__bg { position: absolute; inset: 0; z-index: -1; transition: background 1s var(--ease); }

/* ---------- Item-type gallery (horizontal on scroll) ---------- */
.types { position: relative; height: 300vh; }
.types__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); }
.types__rail { display: flex; gap: clamp(18px, 2vw, 28px); padding-left: max(24px, calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.tcard {
  flex: none; width: min(clamp(220px, 19vw, 280px), calc((100vh - 230px) * .4615));
  display: flex; flex-direction: column; gap: 16px;
}
.tcard .phone { --pw: 100%; width: 100%; border-radius: 38px; }
.tcard .phone__screen { border-radius: 30px; }
.tcard__label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.015em; }
.tcard__label small { color: var(--faint); font-weight: 500; font-size: 14px; }
.tcard--intro { width: clamp(300px, 30vw, 440px); justify-content: center; gap: 22px; padding-right: 28px; }
.tcard--intro .h2 { font-size: clamp(36px, 3.6vw, 56px); }
.types__progress { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.types__progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.feature--flip .feature__media { order: -1; }
.feature__copy { display: flex; flex-direction: column; gap: 22px; }
.feature__media { position: relative; display: grid; place-items: center; min-height: 640px; }
.feature__media .phone { position: relative; z-index: 2; }
.blob {
  position: absolute; inset: 6% 4%; border-radius: 48px; z-index: 0;
  background: var(--tint, var(--card));
  overflow: hidden;
}
.blob::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.65), transparent 55%); }
.blob .iso { -webkit-mask-image: none; mask-image: none; opacity: .9; }
.ticks { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--ink-2); line-height: 1.4; }
.ticks li::before { content: ""; flex: none; margin-top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Little floating chips beside feature phones */
.pin {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 9px; border-radius: 999px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(221,216,210,.8);
  box-shadow: 0 16px 40px -12px rgba(40,30,80,.25);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  animation: bob 6s ease-in-out infinite; animation-delay: var(--bob, 0s);
}
.pin small { font-weight: 500; color: var(--faint); }

/* ---------- Ask Jerry (dark) ---------- */
.dark { background: var(--ink); color: #fff; border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.2vw, 18px); overflow: hidden; }
.dark .lede { color: rgba(255,255,255,.62); }
.dark .kicker { color: rgba(255,255,255,.45); }
.dark .iso { filter: invert(1); opacity: .6; }
.chat { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin-top: 8px; }
.bubble {
  max-width: 88%; padding: 14px 18px; border-radius: 22px; font-size: 16px; line-height: 1.45;
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .6s var(--ease), transform .7s var(--ease-spring);
}
.bubble.in { opacity: 1; transform: none; }
.bubble--me { align-self: flex-end; background: #fff; color: var(--ink); border-bottom-right-radius: 8px; font-weight: 600; }
.bubble--jerry { align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-bottom-left-radius: 8px; color: rgba(255,255,255,.88); }
.typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.dark .feature__media .blob { background: radial-gradient(circle at 50% 45%, rgba(170,185,255,.22), transparent 62%); }
.dark .feature__media .blob::before { display: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 70px); }
.tile {
  position: relative; overflow: hidden;
  grid-column: span var(--span, 4);
  min-height: 300px; padding: 28px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(40,30,80,.3); }
.tile h3 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.tile p { color: var(--muted); font-size: 15.5px; line-height: 1.45; max-width: 26em; }
.tile__art { position: relative; flex: 1; margin-top: 14px; min-height: 150px; }
.tile--tint { background: var(--tint); border-color: transparent; }

.reminder {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -14px rgba(27,28,30,.3);
}
.reminder img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.reminder b { display: block; font-size: 14px; }
.reminder small { color: var(--faint); font-size: 12.5px; font-weight: 500; }
.reminder + .reminder { bottom: 84px; transform: scale(.94); opacity: .7; }

.topic-fan { position: absolute; inset: 0; display: grid; place-items: center; }
.topic-fan img { position: absolute; width: 42%; aspect-ratio: .8; object-fit: cover; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 18px 30px -14px rgba(27,28,30,.4); transition: transform .7s var(--ease-spring); }
.topic-fan img:nth-child(1) { transform: rotate(-12deg) translateX(-38%); }
.topic-fan img:nth-child(2) { transform: rotate(10deg) translateX(38%); }
.topic-fan img:nth-child(3) { transform: translateY(-4%); z-index: 2; }
.tile:hover .topic-fan img:nth-child(1) { transform: rotate(-18deg) translateX(-52%); }
.tile:hover .topic-fan img:nth-child(2) { transform: rotate(16deg) translateX(52%); }

.note-card { position: absolute; inset: auto 0 0 0; padding: 16px 18px; border-radius: 20px; background: var(--butter); font-size: 15px; line-height: 1.45; font-weight: 500; box-shadow: 0 14px 30px -18px rgba(27,28,30,.35); transform: rotate(-2deg); }
.note-card b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .55; margin-bottom: 6px; }

.tile--phone { padding-bottom: 0; }
.tile--phone .phone { --pw: min(260px, 70%); margin: 10px auto -28%; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.plan { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.plan p { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.plan--hi { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan--hi p { color: rgba(255,255,255,.65); }
.plan__tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--card); color: var(--ink-2); }
.plan--hi .plan__tag { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: clamp(36px, 4vw, 56px) auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 22px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: background .3s; }
.faq details[open] { background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; font-size: 18px; letter-spacing: -.015em; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--card); position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.faq details[open] summary i { background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq .ans { padding: 0 26px 24px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 44em; }

/* ---------- Final CTA + footer ---------- */
.final { position: relative; padding: clamp(90px, 11vw, 160px) 0 0; overflow: hidden; }
.final__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.final__copy { display: flex; flex-direction: column; gap: 26px; padding-bottom: clamp(60px, 8vw, 120px); }
.final .display { font-size: clamp(42px, 4.4vw, 70px); }
.fan { position: relative; height: clamp(420px, 40vw, 560px); }
.fan .phone { position: absolute; left: 50%; bottom: -18%; --pw: clamp(200px, 17vw, 250px); transform-origin: 50% 100%; transition: transform 1.2s var(--ease-spring); }
.fan .phone:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.fan .phone:nth-child(2) { transform: translateX(-50%) rotate(0deg); }
.fan .phone:nth-child(3) { transform: translateX(-50%) rotate(0deg); }
.fan.in .phone:nth-child(1) { transform: translateX(-98%) rotate(-12deg); }
.fan.in .phone:nth-child(2) { transform: translateX(-2%) rotate(12deg); }
.fan.in .phone:nth-child(3) { transform: translateX(-50%) translateY(-6%) rotate(0deg); }

.footer { position: relative; z-index: 2; background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 40px; font-size: 14.5px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; }
.footer__tag { margin-top: 12px; max-width: 26em; line-height: 1.5; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 100px); }
.footer__cols h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer__cols a { display: block; padding: 4px 0; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; }

/* ---------- Cursor glow on dark ---------- */
.spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 50%), rgba(170,185,255,.12), transparent 40%); }


/* ---------- Document pages (privacy, terms, support) ---------- */
.doc { position: relative; padding: clamp(48px, 7vw, 100px) 0 clamp(80px, 9vw, 140px); }
.doc > .iso { height: 520px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%); }
.doc__wrap { position: relative; max-width: 760px; }
.doc__body { animation: docIn .9s var(--ease) both; }
@keyframes docIn { from { opacity: 0; transform: translateY(24px); } }
.doc__body h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px; }
.doc__body .doc__meta { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 28px; }
.doc__body h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc__body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin: 28px 0 10px; }
.doc__body p, .doc__body li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.doc__body p + p { margin-top: 14px; }
.doc__body ul, .doc__body ol { margin: 12px 0 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.doc__body li { position: relative; padding-left: 26px; }
.doc__body li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--peri); }
.doc__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--peri); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.doc__body a:hover { text-decoration-color: var(--ink); }
.doc__body strong { color: var(--ink); }
.doc__body table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc__body th, .doc__body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .how { height: auto; }
  .how__sticky { position: relative; height: auto; padding: 90px 0; }
  .how__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .how__steps { display: flex; flex-direction: column; gap: 36px; }
  .how__step { opacity: 1; transform: none; align-items: center; }
  .how__step:not(:first-child) { display: none; }
  .how__rail { display: none; }
  .feature, .final__inner { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { min-height: 560px; }
  .bento .tile { grid-column: span 12; }
  .plans { grid-template-columns: 1fr; }
  .fan { height: 440px; }
}
@media (max-width: 640px) {
  .stage { height: 600px; }
  .floater { --w: 150px !important; }
  .floater:not(:nth-child(1)):not(:nth-child(5)) { display: none; }
  .floater { --y: 4% !important; }
  .saved-toast span { display: none; }
  .hero__ctas .btn--ghost { display: none; }
  .pin { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  [data-reveal], .split .w > span, .floater__inner, .saved-toast, .bubble { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
