/* ============================================================
   Wellnote — marketing site
   Register: brand. Scene: light, warm olive-cream notebook.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..800,0..100&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Caveat:wght@500;600&display=swap');

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ---------- tokens ---------- */
:root {
  /* paper layer (warm olive cream, tinted toward brand hue) */
  --paper:        oklch(94.5% 0.018 95);
  --paper-deep:   oklch(92.2% 0.020 95);
  --bone:         oklch(97.8% 0.010 90);
  --shadow-paper: oklch(80% 0.020 95 / 0.22);

  /* ink (warm near-black, never #000) */
  --ink:    oklch(22% 0.012 85);
  --ink-2:  oklch(40% 0.014 85);
  --ink-3:  oklch(56% 0.013 85);
  --ink-4:  oklch(72% 0.011 90);

  /* lemon-green identity accent */
  --lime:        oklch(88% 0.19 122);
  --lime-deep:   oklch(74% 0.20 122);
  --lime-soft:   oklch(93% 0.10 122);

  /* clay (secondary, food-coded warmth) */
  --clay:        oklch(70% 0.13 48);
  --clay-deep:   oklch(48% 0.13 40);
  --clay-soft:   oklch(91% 0.04 50);

  /* lines */
  --rule:        oklch(85% 0.015 95);
  --rule-soft:   oklch(90% 0.013 95);

  /* type */
  --display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans:    'Inter', 'Söhne', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --hand:    'Caveat', 'Bradley Hand', cursive;

  /* layout */
  --shell-max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--ink); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 360;
  font-style: normal;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
.serif-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 70;
}
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }

h1, h2, h3 { margin: 0; font-weight: 360; }
p { margin: 0; max-width: 62ch; }

/* highlighter-pen emphasis — the lime accent as a notebook marker */
.hl {
  background-image: linear-gradient(
    180deg,
    transparent 0%,
    transparent 58%,
    var(--lime) 58%,
    var(--lime) 92%,
    transparent 92%
  );
  padding-inline: 0.12em;
  margin-inline: -0.04em;
}

/* hand-written annotation in the margins */
.annot {
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.005em;
  transform: rotate(-3deg);
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}
.annot--right { transform: rotate(2deg); }
.annot svg { flex-shrink: 0; margin-top: 4px; }

/* ---------- layout primitives ---------- */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 200ms ease,
              box-shadow 220ms ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow:
    0 1px 0 0 var(--lime-deep) inset,
    0 1px 2px 0 oklch(40% 0.10 122 / 0.18),
    0 6px 18px -6px oklch(50% 0.20 122 / 0.30);
}
.btn--lime:hover { background: oklch(89% 0.21 122); }

.btn--ghost {
  color: var(--ink-2);
  padding: 14px 12px;
}
.btn--ghost:hover { color: var(--ink); }
.btn--ghost .arrow { transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.btn--ghost:hover .arrow { transform: translateX(4px); }

.btn--ink {
  background: var(--ink);
  color: var(--bone);
}
.btn--ink:hover { background: oklch(28% 0.012 85); }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(94.5% 0.018 95 / 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 360;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
}
.brand__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-deep);
  transform: translateY(-2px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: inline-flex; align-items: center; gap: 18px; }
@media (max-width: 760px) {
  .nav__links a:not(.nav__signin) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(48px, 9vw, 110px);
  padding-bottom: clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero__headline {
  font-size: clamp(2.5rem, 5.6vw + 0.5rem, 5.5rem);
}
.hero__headline em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-weight: 350;
}

.hero__sub {
  margin-top: 28px;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.18rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 50ch;
}

.hero__ctas {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero__platforms {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-3);
  font-size: 13px;
}
.hero__platforms svg { color: var(--ink-3); }

/* polaroid stack — the visual anchor */
.polaroids {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1.05;
  justify-self: end;
}
@media (max-width: 920px) { .polaroids { justify-self: center; } }

.polaroid {
  position: absolute;
  background: var(--bone);
  padding: 16px 16px 22px 16px;
  border-radius: 4px;
  box-shadow:
    0 1px 0 0 oklch(98% 0.005 90) inset,
    0 12px 28px -8px var(--shadow-paper),
    0 2px 6px -2px oklch(75% 0.015 95 / 0.28);
  width: 64%;
  display: flex;
  flex-direction: column;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.polaroid__photo {
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.polaroid__cap {
  margin-top: 14px;
  font-family: var(--hand);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.polaroid__cap b { font-weight: 600; }
.polaroid__cap .kcal {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
}

.polaroid--a {
  top: 4%;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}
.polaroid--b {
  top: 18%;
  right: 0;
  transform: rotate(5deg);
  z-index: 3;
}
.polaroid--c {
  bottom: 0;
  left: 18%;
  transform: rotate(-2deg);
  z-index: 2;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); z-index: 4; }

/* food "photo" — stylized warm gradients standing in for real images */
.food-a {
  background:
    radial-gradient(circle at 30% 35%, oklch(74% 0.14 55) 0%, transparent 38%),
    radial-gradient(circle at 65% 60%, oklch(58% 0.16 35) 0%, transparent 42%),
    radial-gradient(circle at 50% 80%, oklch(82% 0.10 95) 0%, transparent 36%),
    linear-gradient(135deg, oklch(78% 0.10 60), oklch(64% 0.13 45));
}
.food-b {
  background:
    radial-gradient(circle at 40% 50%, oklch(70% 0.13 45) 0%, transparent 38%),
    radial-gradient(circle at 70% 70%, oklch(60% 0.16 30) 0%, transparent 44%),
    linear-gradient(160deg, oklch(85% 0.08 95), oklch(72% 0.11 55));
}
.food-c {
  background:
    radial-gradient(circle at 55% 45%, oklch(78% 0.13 95) 0%, transparent 40%),
    radial-gradient(circle at 30% 70%, oklch(70% 0.10 130) 0%, transparent 40%),
    linear-gradient(180deg, oklch(80% 0.10 90), oklch(68% 0.12 75));
}

.hero__annot {
  position: absolute;
  bottom: 6%;
  right: -8%;
  width: 200px;
}
@media (max-width: 920px) { .hero__annot { display: none; } }

/* ============================================================
   DISH TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--rule);
  background: var(--paper-deep);
  overflow: hidden;
  padding-block: 20px;
}
.ticker__track {
  display: flex;
  gap: 56px;
  animation: ticker 48s linear infinite;
  width: max-content;
}
.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 1.5rem;
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ticker__item em {
  font-style: italic;
  color: var(--ink-3);
  font-variation-settings: 'opsz' 96, 'SOFT' 90;
}
.ticker__item .kcal {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--clay-deep);
  text-transform: uppercase;
  font-weight: 500;
  transform: translateY(-3px);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   DEMO — three frames, one promise
   ============================================================ */
.demo {
  padding-block: clamp(80px, 10vw, 140px);
}
.demo__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
@media (max-width: 820px) { .demo__head { grid-template-columns: 1fr; } }

.demo__title {
  font-size: clamp(2rem, 3.4vw + 0.5rem, 3.4rem);
}
.demo__lede { color: var(--ink-2); font-size: 1.05rem; max-width: 48ch; }

.frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 820px) { .frames { grid-template-columns: 1fr; gap: 20px; } }

.frame {
  position: relative;
  background: var(--bone);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 1px 0 0 var(--bone) inset,
    0 1px 0 0 var(--rule),
    0 18px 36px -20px var(--shadow-paper);
  overflow: hidden;
}
.frame__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.frame__step .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); }
.frame__title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.15;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.015em;
}
.frame__body {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.frame__visual {
  margin-top: 22px;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

/* frame 1 — the photo */
.fv-photo {
  background:
    radial-gradient(circle at 35% 40%, oklch(74% 0.14 55) 0%, transparent 38%),
    radial-gradient(circle at 70% 65%, oklch(58% 0.16 35) 0%, transparent 42%),
    linear-gradient(135deg, oklch(78% 0.10 60), oklch(64% 0.13 45));
}
.fv-photo::before {
  content: '';
  position: absolute;
  inset: 22% 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, oklch(80% 0.10 90) 0%, oklch(64% 0.13 50) 60%, oklch(55% 0.14 35) 100%);
  box-shadow: 0 4px 14px -4px oklch(30% 0.10 40 / 0.4);
}
.fv-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(30% 0.08 50 / 0.18) 100%);
}

/* frame 2 — scanning */
.fv-scan {
  background:
    radial-gradient(circle at 35% 40%, oklch(74% 0.14 55) 0%, transparent 38%),
    radial-gradient(circle at 70% 65%, oklch(58% 0.16 35) 0%, transparent 42%),
    linear-gradient(135deg, oklch(78% 0.10 60), oklch(64% 0.13 45));
}
.fv-scan::before {
  content: '';
  position: absolute;
  inset: 22% 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, oklch(80% 0.10 90) 0%, oklch(64% 0.13 50) 60%, oklch(55% 0.14 35) 100%);
}
.scan-frame {
  position: absolute;
  inset: 14% 12%;
  border: 1.5px solid var(--lime);
  border-radius: 8px;
  box-shadow: 0 0 0 1px oklch(95% 0 0 / 0.5), 0 0 24px -4px oklch(85% 0.18 122 / 0.7);
  animation: scan-pulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.scan-frame::before, .scan-frame::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--lime);
  border-radius: 1px;
}
.scan-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.scan-frame::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
@keyframes scan-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.scan-line {
  position: absolute;
  inset: 14% 12%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 8px;
}
.scan-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 16px 2px oklch(85% 0.18 122 / 0.6);
  animation: scan-sweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scan-sweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* frame 3 — the result card */
.fv-result {
  background: var(--paper);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.result__dish {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.15;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
}
.result__dish em { font-style: italic; color: var(--ink-3); }
.result__macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.result__macro {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.result__macro b {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 360;
  color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.result__logged {
  align-self: flex-start;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lime);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   PROBLEM — comparison panel
   ============================================================ */
.problem {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--paper-deep);
  border-block: 1px solid var(--rule);
}
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 920px) { .problem__grid { grid-template-columns: 1fr; } }

.problem__title { font-size: clamp(1.9rem, 3vw + 0.5rem, 3rem); }
.problem__body { margin-top: 24px; font-size: 1.05rem; color: var(--ink-2); }
.problem__body + .problem__body { margin-top: 16px; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bone);
  border-radius: 16px;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.compare__col {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare__col + .compare__col { border-left: 1px solid var(--rule); }
.compare__head {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.compare__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule);
}
.compare__row:last-child { border-bottom: 0; padding-bottom: 0; }
.compare__row .label {
  font-family: var(--display);
  font-size: 1rem;
  font-variation-settings: 'opsz' 96, 'SOFT' 60;
  color: var(--ink);
}
.compare__row .label em { font-style: italic; color: var(--ink-3); }
.compare__row .value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  text-align: right;
}
.compare__row .value.miss { color: var(--clay-deep); }
.compare__row .value.hit { color: oklch(50% 0.14 130); font-weight: 500; }

/* ============================================================
   HOW IT WORKS — typographic flow, not card grid
   ============================================================ */
.how {
  padding-block: clamp(80px, 10vw, 140px);
}
.how__title { font-size: clamp(2rem, 3.4vw + 0.5rem, 3.4rem); margin-bottom: clamp(48px, 6vw, 72px); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step__num {
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  color: var(--ink-4);
  letter-spacing: -0.03em;
}
.step__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem);
  line-height: 1.1;
  font-variation-settings: 'opsz' 144, 'SOFT' 70;
  letter-spacing: -0.015em;
}
.step__title em { font-style: italic; color: var(--ink-3); }
.step__body { color: var(--ink-2); font-size: 1.02rem; }
@media (max-width: 760px) {
  .step { grid-template-columns: 60px 1fr; }
  .step__body { grid-column: 2; }
}

/* ============================================================
   DIFFERENTIATORS — three things, asymmetric
   ============================================================ */
.diff {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--bone);
  border-block: 1px solid var(--rule);
}
.diff__head { margin-bottom: clamp(40px, 5vw, 64px); }
.diff__head h2 { font-size: clamp(2rem, 3.4vw + 0.5rem, 3.4rem); }
.diff__head p { margin-top: 18px; color: var(--ink-2); max-width: 56ch; }

.diff__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(20px, 2.5vw, 36px);
}
@media (max-width: 920px) { .diff__grid { grid-template-columns: 1fr; } }

.diff__item {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diff__item h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.85rem);
  line-height: 1.15;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  letter-spacing: -0.015em;
}
.diff__item p { color: var(--ink-2); font-size: 0.98rem; }
.diff__item .meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding-block: clamp(80px, 10vw, 140px);
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 820px) { .faq__grid { grid-template-columns: 1fr; } }
.faq__title { font-size: clamp(2rem, 3.4vw + 0.5rem, 3.4rem); }
.faq__list { display: flex; flex-direction: column; }
.faq details {
  border-top: 1px solid var(--rule);
  padding-block: 22px;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.25;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .toggle {
  flex-shrink: 0;
  width: 18px; height: 18px;
  position: relative;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq summary .toggle::before, .faq summary .toggle::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--ink-2);
}
.faq summary .toggle::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq summary .toggle::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.faq details[open] summary .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details > p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 60ch;
}

/* ============================================================
   CTA — beta signup band
   ============================================================ */
.cta {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; position: relative; z-index: 1; }
@media (max-width: 820px) { .cta__inner { grid-template-columns: 1fr; align-items: start; } }
.cta__title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.5vw + 0.5rem, 4.2rem);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--bone);
}
.cta__title em { font-style: italic; color: var(--lime); }
.cta__body {
  margin-top: 22px;
  color: oklch(82% 0.010 90);
  font-size: 1.05rem;
  max-width: 50ch;
}
.cta__form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: oklch(28% 0.012 85);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid oklch(36% 0.014 85);
}
.cta__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 18px;
  color: var(--bone);
  font-size: 15px;
  min-width: 0;
}
.cta__input::placeholder { color: oklch(60% 0.012 85); }
.cta__form .btn--lime { flex-shrink: 0; }

.cta__decor {
  position: absolute;
  right: -8%;
  top: -10%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at 30% 30%, oklch(40% 0.10 122 / 0.4), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding-block: 48px 32px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-3);
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__links a:hover { color: var(--ink); }
.foot__mark {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink-2);
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
}

/* ============================================================
   SIGN-UP PAGE
   ============================================================ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
@media (max-width: 920px) { .auth { grid-template-columns: 1fr; } }

.auth__panel {
  background: var(--paper-deep);
  border-right: 1px solid var(--rule);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
@media (max-width: 920px) { .auth__panel { min-height: auto; border-right: 0; border-bottom: 1px solid var(--rule); } }

.auth__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.auth__pitch {
  margin-block: clamp(40px, 6vw, 80px);
  max-width: 36ch;
}
.auth__pitch h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 2vw + 1.4rem, 3rem);
  line-height: 1.05;
  font-variation-settings: 'opsz' 144, 'SOFT' 70;
  font-weight: 340;
  letter-spacing: -0.02em;
}
.auth__pitch h1 em { font-style: italic; color: var(--ink-3); }
.auth__pitch p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.02rem;
}

.auth__detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  z-index: 1;
}
.auth__detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 8px;
  border-top: 1px solid var(--rule);
}
.auth__detail-row:last-child { border-bottom: 1px solid var(--rule); }
.auth__detail-row .key {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 14ch;
  flex-shrink: 0;
  padding-top: 2px;
}
.auth__detail-row .val { color: var(--ink); }
.auth__detail-row .val em { font-style: italic; font-family: var(--display); color: var(--ink-2); }

.auth__paint {
  position: absolute;
  bottom: -60px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, oklch(86% 0.19 122 / 0.5), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}

.auth__form {
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.auth__form-inner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth__top {
  display: flex;
  justify-content: flex-end;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.auth__top a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.auth__top a:hover { border-bottom-color: var(--ink); }

.auth__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.6vw + 1.2rem, 2.4rem);
  line-height: 1.05;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  font-weight: 340;
  letter-spacing: -0.02em;
}
.auth__title em { font-style: italic; color: var(--ink-3); }
.auth__sub {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1rem;
}

.auth__providers {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bone);
  border: 1px solid var(--rule);
  font-weight: 500;
  font-size: 15px;
  transition: background-color 180ms ease, border-color 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.provider:hover { background: oklch(99% 0.008 90); border-color: var(--ink-4); transform: translateY(-1px); }
.provider svg { flex-shrink: 0; }
.provider--apple { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.provider--apple:hover { background: oklch(28% 0.012 85); border-color: oklch(28% 0.012 85); }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: var(--ink-4); }
.field input:hover { border-color: var(--ink-4); }
.field input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bone);
  box-shadow: 0 0 0 4px oklch(85% 0.05 95 / 0.5);
}

.auth__submit {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 15px;
}

.auth__fine {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 42ch;
}
.auth__fine a { color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.auth__fine a:hover { color: var(--ink); border-bottom-color: var(--ink-3); }

/* tiny note polaroid in the side panel */
.auth__polaroid {
  position: relative;
  width: 240px;
  background: var(--bone);
  padding: 14px 14px 18px 14px;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 14px 28px -10px var(--shadow-paper);
  margin-top: 32px;
}
.auth__polaroid .polaroid__photo { aspect-ratio: 5/3; }

/* ============================================================
   misc + reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
