/* ============================================================
   A La Carte — homepage (and 404) sections. Issue 1274, design 1
   "Welcome": the app's welcome screen as the homepage; below the hero,
   issue 1420's "Centre spine". Loaded after styles.css, which holds the
   tokens and the shared chrome.
   Phone < 900 px (reference 393×852); desktop ≥ 900 (reference 1440×900).
   The steps and extras sections switch at 1100 px (phone layout below, spine above);
   the extras are the steps' layout without the path (issue 1443).
   ============================================================ */

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

body { line-height: 1.5; overflow-x: hidden; }

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

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

/* ============================================================
   HERO: the app's sticker seed head (design M9) turns behind the phone
   ============================================================ */
/* 1430 (design 4 "Tighter stack"): the phone takes the height the rest of the first screen leaves.
   294 = 72 inset + 20 + 64 (two-line headline) + 6 + 22 + 18 + 52 (button) + 10 + 18 (note) + 12 spare. */
.hero {
  --phone-h: clamp(200px, calc(100vh - 294px), 480px);
  position: relative;
  overflow: hidden;
}
@supports (height: 100svh) {
  .hero {
    --phone-h: clamp(200px, calc(100svh - 294px), 480px);
  }
}

.hero-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* A square centred on the phone mockup, big enough to turn without uncovering a corner. */
.hero-art-turn {
  position: absolute;
  left: 50%;
  top: calc(72px + var(--phone-h) / 2);
  width: 1300px;
  height: 1300px;
  margin: -650px 0 0 -650px;
}
.hero-art-turn picture { display: block; width: 100%; height: 100%; }
.hero-art-img { display: block; width: 100%; height: 100%; transition: opacity 0.4s var(--ease); }
/* main.js adds .art-fade to <html> and .is-loaded to the image. Without JS the art simply
   paints; on a slow connection the words and CTA come first and the art fades in (R14). */
.art-fade .hero-art-img:not(.is-loaded) { opacity: 0; }
/* The hero's last 150 px fade into the page (P7). */
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--background-clear) calc(100% - 150px), var(--background) 100%);
}
/* A soft cream patch behind the words, so they read over the art. */
.hero-glow {
  position: absolute;
  left: 50%;
  top: calc(72px + var(--phone-h) + 14px);
  width: 473px;
  height: 260px;
  margin-left: -236.5px;
  background: radial-gradient(closest-side, var(--background) 62%, var(--background-clear));
}

/* M9: one clockwise turn every 2 minutes while it breathes 4% in and out, 5 s each way.
   Only once main.js has read the visitor's choice (.is-moving); paused by the button or
   off screen (1379). */
@keyframes hero-turn { to { transform: rotate(360deg); } }
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.04); } }
.hero.is-moving .hero-art-turn { animation: hero-turn 120s linear infinite; will-change: transform; }
.hero.is-moving .hero-art-img { animation: hero-breathe 5s ease-in-out infinite alternate; will-change: transform; }
.hero.is-paused .hero-art-turn,
.hero.is-paused .hero-art-img,
.hero.is-offscreen .hero-art-turn,
.hero.is-offscreen .hero-art-img { animation-play-state: paused; }

.hero-pause {
  position: absolute;
  z-index: 1;
  right: 12px;
  top: calc(72px + var(--phone-h) - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-pause[hidden] { display: none; }
.hero-pause-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--header-pill);
  box-shadow: var(--close-shadow);
  color: var(--text);
}
.hero-pause .icon-play,
.hero.is-paused .hero-pause .icon-pause { display: none; }
.hero.is-paused .hero-pause .icon-play { display: block; }
.hero-pause:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 72px;
  text-align: center;
}

/* Every phone mock sets --phone-w, its width; the corners follow it (1430). */
.phone-frame {
  padding: var(--phone-bezel);
  border-radius: calc(var(--phone-w) * var(--phone-corner));
  background: var(--phone-frame);
  box-shadow: var(--phone-ring), var(--phone-shadow);
}
.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * var(--phone-corner) - var(--phone-bezel));
  background: var(--sage-tint);
}
.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-phone {
  --phone-w: calc(var(--phone-h) * 191 / 414);
  height: var(--phone-h);
  aspect-ratio: 191 / 414;
  flex-shrink: 0;
}

.hero-copy { margin-top: 20px; padding: 0 24px; }
.hero-title {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-sub {
  margin-top: 6px;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 18px;
  padding: 0 16px 40px;
  scroll-margin-top: 90px;
}
.hero-cta-row { display: flex; align-items: center; justify-content: center; width: 100%; }
.cta-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}
.cta-note.when-beta { margin-top: 12px; }
.hero-cta .btn-xl { height: 52px; }
.hero-cta .cta-note { margin-top: 10px; font-size: 13px; line-height: 18px; }

.qr-divider, .qr-block { display: none; }

@media (min-width: 900px) {
  .hero {
    --phone-h: clamp(226px, calc(100vh - 414px), 586px);
  }
  @supports (height: 100svh) {
    .hero {
      --phone-h: clamp(226px, calc(100svh - 414px), 586px);
    }
  }
  .hero-art-turn { top: calc(96px + var(--phone-h) / 2); width: 1800px; height: 1800px; margin: -900px 0 0 -900px; }
  /* R7: the art fades out at the 1200 px page column; wide monitors keep plain cream margins. */
  .hero-veil {
    background:
      linear-gradient(var(--background-clear) calc(100% - 150px), var(--background) 100%),
      linear-gradient(to right,
        var(--background) max(0px, 50% - 600px),
        var(--background-clear) calc(50% - 360px),
        var(--background-clear) calc(50% + 360px),
        var(--background) min(100%, 50% + 600px));
  }
  .hero-glow {
    top: calc(96px + var(--phone-h) + 10px);
    width: 1000px;
    height: 320px;
    margin-left: -500px;
    background: radial-gradient(closest-side, var(--background) 66%, var(--background-clear));
  }
  .hero-pause { right: var(--page-inset); top: calc(96px + var(--phone-h) - 44px); }
  .hero-content { padding-top: 96px; }
  .hero-phone { --phone-w: calc(var(--phone-h) * 224 / 486); aspect-ratio: 224 / 486; }
  .hero-copy { margin-top: 28px; }
  .hero-title { font-size: 56px; line-height: 62px; letter-spacing: -0.03em; }
  .hero-sub { margin-top: 10px; font-size: 22px; line-height: 30px; }
  .hero-cta { margin-top: 24px; padding-bottom: 40px; }
  .hero-cta-row { height: 92px; gap: 16px; }
  .hero-cta .store-badges { --badge-h: 54px; gap: 16px; }
  .hero-cta .btn-xl { width: 240px; height: 56px; }
  .cta-note, .cta-note.when-beta,
  .hero-cta .cta-note { margin-top: 12px; font-size: 15px; line-height: 20px; }

  .qr-divider { display: block; width: 1px; height: 72px; margin: 0 16px; background: var(--border); }
  .qr-block { display: flex; align-items: center; gap: 14px; text-align: left; }
  .qr-tile {
    width: 88px;
    height: 88px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #FFFFFF;            /* white in both themes so it scans */
  }
  .qr-tile img { width: 76px; height: 76px; image-rendering: pixelated; }
  .qr-text { display: flex; flex-direction: column; gap: 4px; }
  .qr-title { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); }
  .qr-url { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
}

/* ============================================================
   STEPS (issue 1420): Save, Shop, Cook on a numbered path
   Canvas https://claude.ai/artifact/3pw9HHMEMBHdg5qe5pJCUL, boards Z1/Z5
   (phone layout, below 1100 px) and Z2/Z3 (the centre spine, 1100 and up).
   The blooms are still, always (R13): no animation or transition on them.
   ============================================================ */
/* overflow-x: clip keeps the blooms from widening the page and, unlike hidden,
   lets them run into the next section's padding; isolate keeps their
   z-index: -1 inside this section (P7). */
.steps {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 56px 24px 24px;
  scroll-margin-top: 60px;
}
.steps-head,
.steps-list { max-width: 560px; margin-inline: auto; }
.steps-head h2 { font-size: 38px; line-height: 42px; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.steps-sub { margin-top: 12px; font-size: 17px; line-height: 25px; color: var(--text-secondary); }

.steps-list { position: relative; margin-top: 36px; padding-left: 34px; list-style: none; }
.steps-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 40px;
  border-left: 2px dashed var(--path-line);
}
.step { position: relative; padding-bottom: 56px; }
/* Centred on the path line, which runs 27 px left of the step's edge. */
.step-num {
  position: absolute;
  left: -41px;
  top: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--background);
  font-size: 15px;
  line-height: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}
.step-kicker {
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.step-text h3 {
  margin-top: 8px;
  font-size: 29px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.step-text p:not(.step-kicker) { margin-top: 10px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }

/* Below 1100 every phone, and the bloom centred on it, sits centred under its
   step's words; the flipped row only changes sides on the spine (issue 1434). */
.step-phones { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-top: 24px; }
.step-main { position: relative; flex-shrink: 0; width: 140px; height: 290px; }
.step-phone { cursor: pointer; }
.step-phone.phone-frame {
  --phone-w: 140px;
  width: 100%;
  height: 100%;
  box-shadow: 0 16px 34px rgba(51, 48, 43, 0.22);
}
.step-bloom {
  position: absolute;
  left: -120px;
  top: -30px;
  z-index: -1;
  width: 380px;
  height: 380px;
  max-width: none;
  pointer-events: none;
}
.step-save .step-bloom { transform: rotate(0deg); }
.step-shop .step-bloom { transform: rotate(70deg); }
.step-cook .step-bloom { transform: rotate(140deg); }

/* Small phones (board Z5). */
@media (max-width: 359px) {
  .steps-head h2 { font-size: 32px; line-height: 36px; }
  .steps-sub { font-size: 16px; line-height: 24px; }
  .steps-list { margin-top: 30px; padding-left: 30px; }
  .steps-list::before { left: 5px; }
  .step-num { left: -37px; width: 26px; height: 26px; font-size: 14px; line-height: 26px; }
  .step-text h3 { font-size: 24px; line-height: 29px; }
  .step-text p:not(.step-kicker) { font-size: 15px; line-height: 22px; }
  .step-phones { gap: 12px; }
  .step-main { width: 128px; height: 266px; }
  .step-phone.phone-frame { --phone-w: 128px; }
  .step-bloom { left: -106px; top: -37px; width: 340px; height: 340px; }
}

/* The centre spine (boards Z2, Z3). Every size is N × --u: 0.85 px at 1100 px,
   1 px from 1440 px, so the layout is board Z2 at 1440 and shrinks as one
   piece below it (P3). Each step is placed around the centre line (P4). */
@media (min-width: 1100px) {
  .steps {
    --u: clamp(0.85px, calc(0.85px + (100vw - 1100px) * 0.000441), 1px);
    padding: 110px var(--page-inset) 0;
    scroll-margin-top: 72px;
  }
  .steps-head,
  .steps-list { max-width: none; }
  .steps-head h2 { max-width: 820px; font-size: 64px; line-height: 68px; letter-spacing: -0.04em; }
  .steps-sub { margin-top: 16px; font-size: 22px; line-height: 32px; }

  .steps-list { margin-top: 90px; padding: 0; }
  .steps-list::before { left: calc(50% - 1px); top: calc(300 * var(--u)); bottom: calc(300 * var(--u)); }
  .step { height: calc(600 * var(--u)); margin-bottom: calc(120 * var(--u)); padding: 0; }
  .step:last-child { margin-bottom: 0; }
  .step-num {
    left: 50%;
    top: calc(300 * var(--u));
    width: calc(64 * var(--u));
    height: calc(64 * var(--u));
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 10px var(--background);
    font-size: calc(28 * var(--u));
    line-height: calc(64 * var(--u));
  }

  .step-text {
    position: absolute;
    top: 50%;
    right: calc(50% + 120 * var(--u));
    width: calc(460 * var(--u));
    transform: translateY(-50%);
  }
  .step.is-flipped .step-text { right: auto; left: calc(50% + 120 * var(--u)); }
  .step-kicker { font-size: 15px; line-height: 20px; }
  .step-text h3 { margin-top: 14px; font-size: calc(50 * var(--u)); line-height: calc(56 * var(--u)); letter-spacing: -0.035em; }
  .step-text p:not(.step-kicker) { margin-top: 18px; font-size: 20px; line-height: 31px; }

  .step-phones {
    position: absolute;
    top: 0;
    left: calc(50% + 100 * var(--u));
    display: block;
    width: calc(444 * var(--u));
    height: calc(600 * var(--u));
    margin: 0;
  }
  .step.is-flipped .step-phones { left: auto; right: calc(50% + 100 * var(--u)); }
  .step-main { position: absolute; top: calc(50 * var(--u)); left: calc(162 * var(--u)); width: calc(236 * var(--u)); height: calc(500 * var(--u)); }
  .step-shop .step-main { left: calc(46 * var(--u)); }
  .step-phone.phone-frame {
    --phone-w: calc(236 * var(--u));
    box-shadow: 0 24px 50px rgba(51, 48, 43, 0.22);
  }
  /* Centred on its phone (issue 1429, board S2: every phone 262u from the spine). */
  .step-bloom { top: calc(-200 * var(--u)); left: calc(-332 * var(--u)); width: calc(900 * var(--u)); height: calc(900 * var(--u)); }

}

/* ============================================================
   EXTRAS (issue 1443, design 3 "Icon spine"): "Built around how you eat"
   Canvas https://claude.ai/artifact/LGejuKnjCwiHaqhFcDthEX, boards F1 (393),
   F2 (320), F3 (1024), F4 (1100) and F5 (1440). The steps' layout without
   the path: an icon in each gold disc instead of a number. Below 1100 px the
   steps' column; from 1100 the steps' centre spine, the zig-zag carrying on
   from Cook. Every rule marked "= steps" keeps the named steps rule's
   declarations (test_homepage_extras_1443.py X3–X5); change both or neither.
   ============================================================ */
/* = .steps, except the padding (48 on top, nothing below). */
.extras {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 48px 24px 0;
  scroll-margin-top: 60px;
}
.extras-head,
.extras-list { max-width: 560px; margin-inline: auto; }
.extras-head h2 { font-size: 38px; line-height: 42px; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.extras-sub { margin-top: 12px; font-size: 17px; line-height: 25px; color: var(--text-secondary); }

.extras-list { position: relative; margin-top: 36px; padding-left: 34px; list-style: none; }
.extra { position: relative; padding-bottom: 56px; }
/* The gold disc sits where the steps' numbers do, holding an icon (R7). */
.extra-icon {
  position: absolute;
  left: -41px;
  top: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--background);
  color: var(--sage-ink);
}
.extra-icon .icon { width: 15px; height: 15px; }
.extra-kicker {
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.extra-text h3 {
  margin-top: 8px;
  font-size: 29px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.extra-text p:not(.extra-kicker) { margin-top: 10px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }

.extra-phones { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-top: 24px; }
.extra-main { position: relative; flex-shrink: 0; width: 140px; height: 290px; }
.extra-phone { cursor: pointer; }
.extra-phone.phone-frame {
  --phone-w: 140px;
  width: 100%;
  height: 100%;
  box-shadow: 0 16px 34px rgba(51, 48, 43, 0.22);
}
.extra-bloom {
  position: absolute;
  left: -120px;
  top: -30px;
  z-index: -1;
  width: 380px;
  height: 380px;
  max-width: none;
  pointer-events: none;
}
/* Carrying on from the steps' 0 / 70 / 140 degrees (P3). */
.extra-diet .extra-bloom { transform: rotate(210deg); }
.extra-pantry .extra-bloom { transform: rotate(280deg); }

/* Small phones (board F2): the steps' small sizes. */
@media (max-width: 359px) {
  .extras-head h2 { font-size: 32px; line-height: 36px; }
  .extras-sub { font-size: 16px; line-height: 24px; }
  .extras-list { margin-top: 30px; padding-left: 30px; }
  .extra-icon { left: -37px; width: 26px; height: 26px; }
  .extra-icon .icon { width: 14px; height: 14px; }
  .extra-text h3 { font-size: 24px; line-height: 29px; }
  .extra-text p:not(.extra-kicker) { font-size: 15px; line-height: 22px; }
  .extra-phones { gap: 12px; }
  .extra-main { width: 128px; height: 266px; }
  .extra-phone.phone-frame { --phone-w: 128px; }
  .extra-bloom { left: -106px; top: -37px; width: 340px; height: 340px; }
}

/* The centre spine (boards F4, F5), on the steps' --u scale. The heading
   stays left like the steps' (R3); the discs sit on the centre line. */
@media (min-width: 1100px) {
  .extras {
    --u: clamp(0.85px, calc(0.85px + (100vw - 1100px) * 0.000441), 1px);
    padding: 110px var(--page-inset) 0;
    scroll-margin-top: 72px;
  }
  .extras-head,
  .extras-list { max-width: none; }
  .extras-head h2 { max-width: 820px; font-size: 64px; line-height: 68px; letter-spacing: -0.04em; }
  .extras-sub { margin-top: 16px; font-size: 22px; line-height: 32px; }

  .extras-list { margin-top: 90px; padding: 0; }
  .extra { height: calc(600 * var(--u)); margin-bottom: calc(120 * var(--u)); padding: 0; }
  .extra:last-child { margin-bottom: 0; }
  .extra-icon {
    left: 50%;
    top: calc(300 * var(--u));
    width: calc(64 * var(--u));
    height: calc(64 * var(--u));
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 10px var(--background);
  }
  .extra-icon .icon { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }

  .extra-text {
    position: absolute;
    top: 50%;
    right: calc(50% + 120 * var(--u));
    width: calc(460 * var(--u));
    transform: translateY(-50%);
  }
  .extra.is-flipped .extra-text { right: auto; left: calc(50% + 120 * var(--u)); }
  .extra-kicker { font-size: 15px; line-height: 20px; }
  .extra-text h3 { margin-top: 14px; font-size: calc(50 * var(--u)); line-height: calc(56 * var(--u)); letter-spacing: -0.035em; }
  .extra-text p:not(.extra-kicker) { margin-top: 18px; font-size: 20px; line-height: 31px; }

  .extra-phones {
    position: absolute;
    top: 0;
    left: calc(50% + 100 * var(--u));
    display: block;
    width: calc(444 * var(--u));
    height: calc(600 * var(--u));
    margin: 0;
  }
  .extra.is-flipped .extra-phones { left: auto; right: calc(50% + 100 * var(--u)); }
  .extra-main { position: absolute; top: calc(50 * var(--u)); left: calc(162 * var(--u)); width: calc(236 * var(--u)); height: calc(500 * var(--u)); }
  /* The flipped row's phone sits like Shop's: 262u from the centre. */
  .extra.is-flipped .extra-main { left: calc(46 * var(--u)); }
  .extra-phone.phone-frame {
    --phone-w: calc(236 * var(--u));
    box-shadow: 0 24px 50px rgba(51, 48, 43, 0.22);
  }
  .extra-bloom { top: calc(-200 * var(--u)); left: calc(-332 * var(--u)); width: calc(900 * var(--u)); height: calc(900 * var(--u)); }
}

/* ============================================================
   LISTS: Guides and Questions, answered (issue 1420)
   Hairline rows; from 900 px the heading sits left of the list.
   ============================================================ */
.guides { padding: 56px 24px 44px; scroll-margin-top: 60px; }
.faq { padding: 8px 24px 52px; scroll-margin-top: 60px; }
.list-head,
.guides-list,
.faq-list { max-width: 560px; margin-inline: auto; }
.list-head h2 { font-size: 38px; line-height: 42px; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.list-head .section-sub { margin-top: 12px; font-size: 17px; line-height: 25px; color: var(--text-secondary); }
.row-icon, .faq-icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary); }

.guides-list { margin-top: 22px; }
.guide-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.guide-card h3 { font-size: 17px; line-height: 23px; font-weight: 600; }
.guide-card h3 a { color: var(--text); }
/* The whole row is the link. */
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.guide-card:hover h3 a { color: var(--link); }
.guides-more { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guides-more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
  color: var(--link);
}
.guides-more a:hover { text-decoration: underline; }
.guides-more a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.faq-list { margin-top: 22px; border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.faq-item summary h3 { font-size: 17px; line-height: 23px; font-weight: 600; color: var(--text); }
.faq-item[open] summary h3 { color: var(--sage-ink); }
.faq-item[open] .faq-icon-v { display: none; }
.faq-item p { padding: 0 34px 20px 0; font-size: 16px; line-height: 24px; color: var(--text-secondary); }

@media (min-width: 900px) {
  .guides,
  .faq {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
    padding: 140px var(--page-inset) 0;
    scroll-margin-top: 72px;
  }
  .list-head,
  .guides-list,
  .faq-list { max-width: none; margin-inline: 0; }
  .list-head { grid-column: 1 / span 5; }
  .guides-list,
  .faq-list { grid-column: 6 / span 7; margin-top: 0; }
  .list-head h2 { font-size: 56px; line-height: 60px; }
  .list-head .section-sub { max-width: 400px; font-size: 22px; line-height: 32px; }
  .row-icon, .faq-icon { width: 24px; height: 24px; }
  .row-icon path { stroke-width: 40; }
  .faq-icon path { stroke-width: 36; }
  .guide-card, .guides-more a { padding: 22px 0; }
  .guide-card h3, .guides-more a { font-size: 21px; line-height: 28px; }
  .faq-item summary { padding: 22px 0; }
  .faq-item summary h3 { font-size: 21px; line-height: 28px; }
  .faq-item p { max-width: 64ch; padding: 0 48px 26px 0; font-size: 17px; line-height: 26px; }
}

/* ============================================================
   CLOSING (issue 1420): large and left-aligned, no capybara
   ============================================================ */
.join { padding: 12px 24px 56px; scroll-margin-top: 60px; }
.join-title,
.join-row { max-width: 560px; margin-inline: auto; }
.join-title { font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.join-row { margin-top: 26px; }
.join .store-badges { --badge-h: 48px; gap: 12px; justify-content: flex-start; }
.join .cta-note { margin-top: 12px; }

@media (min-width: 900px) {
  .join { padding: 160px var(--page-inset) 120px; scroll-margin-top: 72px; }
  .join-title,
  .join-row { margin-inline: 0; }
  .join-title { max-width: 900px; font-size: 88px; line-height: 92px; letter-spacing: -0.045em; }
  .join-row { display: flex; align-items: center; gap: 20px; max-width: none; margin-top: 40px; }
  .join .btn-xl { width: 240px; }
  .join .cta-note { margin: 0; font-size: 15px; line-height: 20px; }
  .join .store-badges { --badge-h: 54px; gap: 16px; }
}

/* Launch day on small phones: the badge pair fits the column (issue 1429). */
@media (max-width: 359px) {
  .join .store-badges { --badge-h: 40px; }
}

/* ============================================================
   SCROLL REVEAL (below the fold only; never in the hero, 1295)
   main.js adds .reveal-ready to <html> first, so without JS nothing hides.
   ============================================================ */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-ready .reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   404 (board R2F; issue 1294)
   ============================================================ */
.nf { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.nf-main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 150px auto 0;
  padding: 0 24px 48px;
  text-align: center;
}
.nf-main .capy-badge { --capy: 104px; }
.nf-title { margin-top: 22px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.nf-text { margin-top: 10px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.nf-main .btn-xl { margin-top: 24px; }
.nf-links { display: flex; gap: 24px; margin-top: 16px; }
.nf-links a, .nf-join { font-size: 15px; font-weight: 600; color: var(--link); }
.nf-links a:hover, .nf-join:hover { text-decoration: underline; }
.nf-get { margin-top: 36px; }
.nf-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 20px 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
}
.nf-footer a { color: var(--text-secondary); }
.nf-footer a:hover { color: var(--link); }
/* No art behind the 404's floating header, so its pills get an edge (1379, board 404c). */
.page-404 .site-header.is-floating .brand,
.page-404 .site-header.is-floating .menu-button,
.page-404 .site-header.is-floating .nav-links { box-shadow: var(--close-shadow); }
@media (min-width: 900px) {
  .nf-main { margin-top: 120px; }
}

/* ---------- Reduced motion (P10) ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art-img { transition: none; }
  .art-fade .hero-art-img:not(.is-loaded) { opacity: 1; }
  .hero-art-turn, .hero-art-img { animation: none !important; }
  .hero-pause { display: none !important; }
}
