/* Fancy Planties — marketing site stylesheet.
 *
 * Aesthetic: Warm Botanical — a garden journal page. High-quality paper,
 * forest ink, hand-pressed botanical details. Magazine editorial structure.
 * Display: Fraunces (variable, opsz 9..144, wght 300..900).
 * Body: Inter Tight (variable, wght 100..900 + italic).
 * Palette: Warm Botanical design system tokens from DESIGN.md.
 *
 * No third-party requests at runtime — fonts self-hosted in /fonts/.
 */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens — Warm Botanical palette ----------
 *
 * Mapped from DESIGN.md. Token names follow the design system vocabulary so
 * any future designer can cross-reference without translation.
 *
 * Contrast audit (WCAG AA, 4.5:1 for normal text, 3:1 for large):
 *   --forest (#1b6b4f) on --parchment (#faf9f6)  → 7.2:1  ✓ AAA
 *   --ink (#1a1c1a) on --parchment               → 19.1:1 ✓ AAA
 *   --forest-ink (#145638) on --parchment         → 9.1:1  ✓ AAA
 *   --salmon-ink (#6e2830) on --parchment         → 8.4:1  ✓ AAA
 *   --lavender-ink (#3d3268) on --parchment       → 9.7:1  ✓ AAA
 *   --label-secondary on --parchment              → 4.8:1  ✓ AA
 */

:root {
  /* Brand primaries */
  --forest:           #1b6b4f;   /* primary */
  --mint:             #a7f3d0;   /* primary-container */
  --salmon:           #8f4953;   /* secondary */
  --salmon-light:     #ffa6b1;   /* secondary-container */
  --lavender:         #625595;   /* tertiary */
  --lavender-light:   #e8dfff;   /* tertiary-container */

  /* Ink variants — darkened for AA contrast on light surfaces.
   * On dark surfaces these revert to the full brand values (see dark block). */
  --forest-ink:       #145638;   /* forest darkened for small text on parchment */
  --salmon-ink:       #6e2830;   /* salmon darkened for small text on parchment */
  --lavender-ink:     #3d3268;   /* lavender darkened for small text on parchment */

  /* Surfaces */
  --parchment:        #faf9f6;   /* surface / background */
  --parchment-low:    #f4f3f1;   /* surface-container-low */
  --parchment-mid:    #efeeeb;   /* surface-container */
  --parchment-high:   #e9e8e5;   /* surface-container-high */
  --white:            #ffffff;   /* surface-container-lowest */

  /* Labels */
  --ink:              #1a1c1a;   /* on-surface */
  --ink-variant:      #3f4943;   /* on-surface-variant */
  --label:            #1a1c1a;
  --label-secondary:  #3f4943;
  --label-tertiary:   #6f7973;   /* outline */

  /* Rules */
  --rule:             rgba(27, 107, 79, 0.20);
  --rule-soft:        rgba(27, 107, 79, 0.10);
  --outline-variant:  #bec9c2;

  /* Phone screen — locked to light palette in both themes (it's a mockup
   * of an iPhone display, not a web surface). */
  --phone-bg:         #ffffff;
  --phone-ink:        #1b6b4f;
  --phone-ink-soft:   rgba(27, 107, 79, 0.65);
  --phone-rule:       rgba(27, 107, 79, 0.12);
  --phone-mint-tint:  rgba(167, 243, 208, 0.35);
  --phone-salmon-tint: rgba(255, 166, 177, 0.25);

  /* Type stacks */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width:  1200px;
  --gutter:     clamp(20px, 4vw, 56px);
  --rail:       clamp(160px, 16vw, 220px);

  /* Surfaces for theming */
  --bg:          var(--parchment);
  --bg-elevated: var(--white);

  /* Custom cursor for primary actions */
  --cursor-pointer: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M5 14h17M16 8l6 6-6 6' stroke='%231b6b4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") 4 14, pointer;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Surfaces invert to deep forest-toned darks */
    --parchment:        #0f1510;
    --parchment-low:    #141a15;
    --parchment-mid:    #1a2219;
    --parchment-high:   #1f271e;
    --white:            #faf9f6;   /* repurposed as inverse-on-surface text */

    /* Labels lighten */
    --ink:              #e6ede8;
    --ink-variant:      #bec9c2;
    --label:            #e6ede8;
    --label-secondary:  #bec9c2;
    --label-tertiary:   #8fa99a;

    /* Rules */
    --rule:             rgba(167, 243, 208, 0.18);
    --rule-soft:        rgba(167, 243, 208, 0.09);
    --outline-variant:  rgba(167, 243, 208, 0.20);

    /* Ink tokens revert to full brand values — they pass AA on dark surfaces */
    --forest-ink:       #8bd6b4;   /* inverse-primary */
    --salmon-ink:       #ffb2bb;   /* secondary-fixed-dim */
    --lavender-ink:     #ccbeff;   /* tertiary-fixed-dim */

    /* Phone screen stays light — it's a device mockup */
    --phone-bg:         #ffffff;
    --phone-ink:        #1b6b4f;
    --phone-ink-soft:   rgba(27, 107, 79, 0.65);
    --phone-rule:       rgba(27, 107, 79, 0.12);
    --phone-mint-tint:  rgba(167, 243, 208, 0.35);
    --phone-salmon-tint: rgba(255, 166, 177, 0.25);

    --bg:          var(--parchment);
    --bg-elevated: var(--parchment-mid);
  }
}

/* ---------- Reset & base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.20 0 0 0 0 0.12 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.08;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  body::before {
    opacity: 0.18;
    mix-blend-mode: screen;
  }
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--label);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

a:hover, a:focus-visible { text-decoration-color: var(--forest-ink); color: var(--forest-ink); }

a:focus-visible {
  outline: 2px solid var(--forest-ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Type scale ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--label);
  margin: 0 0 0.4em;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 1;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--label-secondary); }

em, i { font-style: italic; }

::selection { background: var(--mint); color: var(--forest); }

/* ---------- Eyebrow ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Modifier for centred eyebrows (e.g. App Store CTA section). */
.eyebrow--center { justify-content: center; }

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Container ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

main { position: relative; z-index: 2; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.4375rem;
  font-weight: 400;
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--label);
  line-height: 1;
}

.wordmark .wordmark-fancy {
  color: var(--forest-ink);
  font-style: italic;
  font-weight: 400;
  font-size: 0.82em;
  margin-right: 5px;
  font-variation-settings: "opsz" 36, "SOFT" 60, "WONK" 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9375rem;
  align-items: baseline;
}

.nav-links a {
  text-decoration: none;
  color: var(--label-secondary);
  font-weight: 500;
}

.nav-links a:hover { color: var(--label); }

.nav-links a.nav-cta {
  color: var(--label);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.875rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-links a.nav-cta:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

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

.hero {
  padding: clamp(56px, 9vw, 124px) 0 clamp(52px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(40px, 6vw, 88px);
  align-items: end;
}

.hero-ornament {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  margin-left: -6px;
  color: var(--forest-ink);
  opacity: 0.5;
  pointer-events: none;
  transform: rotate(-6deg);
  display: block;
}

.hero-ornament svg { width: 100%; height: 100%; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: "— ";
  letter-spacing: 0;
  color: var(--forest-ink);
}

.hero h1 {
  margin-left: calc(var(--rail) * -0.2);
  margin-bottom: 32px;
}

.hero h1 .word {
  display: inline-block;
  white-space: pre;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--forest-ink);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--label-secondary);
  max-width: 40ch;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-lede em {
  color: var(--label);
  font-style: italic;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--label-tertiary);
  font-style: italic;
}

.hero-meta-divider {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

/* ---------- Phone mockup ---------- */

.phone-stage {
  position: relative;
  margin-right: calc(var(--gutter) * -0.5);
  justify-self: end;
  width: 100%;
  max-width: 340px;
  will-change: transform;
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #1a2218;
  border-radius: 44px;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.10),
    0 48px 80px -28px rgba(15, 21, 16, 0.5),
    0 12px 22px -8px rgba(15, 21, 16, 0.22);
  transform: rotate(2deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-frame:hover { transform: rotate(0deg) translateY(-4px); }

/* Dynamic island notch */
.phone-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 20px;
  background: #1a2218;
  border-radius: 999px;
  z-index: 4;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: var(--phone-bg);
  overflow: hidden;
  position: relative;
}

.phone-screen-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  font-family: var(--sans);
  color: var(--phone-ink);
  position: relative;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--phone-ink);
  opacity: 0.7;
  /* leave space for dynamic island notch */
  padding-top: 52px;
}

.phone-status-icons { letter-spacing: 2px; font-size: 0.5rem; }

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--phone-rule);
}

.phone-wordmark {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 40, "WONK" 1;
  letter-spacing: -0.015em;
  color: var(--phone-ink);
}

.phone-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.phone-card {
  margin: 12px 14px 0;
  background: var(--phone-mint-tint);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 107, 79, 0.08);
}

.phone-card--plants { margin-top: 8px; background: var(--phone-salmon-tint); }

.phone-card-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phone-ink-soft);
  margin-bottom: 8px;
}

.phone-care-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--phone-ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.phone-care-item:last-child { margin-bottom: 0; }

.phone-care-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-care-dot--water { background: #1b6b4f; }
.phone-care-dot--feed  { background: #8f4953; }

.phone-plant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.phone-plant-row:last-child { margin-bottom: 0; }

.phone-plant-chip {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #6e2830;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.phone-plant-chip--more {
  background: rgba(143, 73, 83, 0.15);
  color: #6e2830;
}

.phone-tab-bar {
  margin-top: auto;
  display: flex;
  border-top: 1px solid var(--phone-rule);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 8px 4px 12px;
}

.phone-tab {
  flex: 1;
  text-align: center;
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--phone-ink-soft);
  padding: 4px 0;
  letter-spacing: 0.01em;
}

.phone-tab--active {
  color: var(--phone-ink);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 48px;
  cursor: var(--cursor-pointer);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--forest-ink);
  outline-offset: 4px;
}

.btn-primary {
  background: var(--forest);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 6px 18px -6px rgba(27, 107, 79, 0.45);
}

.btn-primary:hover {
  background: var(--forest-ink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 12px 26px -8px rgba(27, 107, 79, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--label);
  border-color: var(--rule);
}

.btn-secondary:hover {
  border-color: var(--forest);
  background: var(--rule-soft);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  min-height: 56px;
}

/* App Store-style badge */
.btn-app-store {
  background: var(--forest);
  color: #ffffff;
  padding: 12px 24px;
  text-align: left;
  line-height: 1.15;
  font-family: var(--sans);
  box-shadow: 0 6px 18px -6px rgba(27, 107, 79, 0.4);
}

.btn-app-store:hover {
  background: var(--forest-ink);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-app-store .small {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.82;
  display: block;
  letter-spacing: 0.05em;
}

.btn-app-store .big {
  font-size: 1.125rem;
  font-weight: 500;
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.02em;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--forest-ink);   /* #8bd6b4 on dark — 7.1:1 vs dark surface */
    color: #0f1510;
  }
  .btn-primary:hover { background: #a7f3d0; color: #0f1510; }
  .btn-app-store { background: var(--forest-ink); color: #0f1510; }
  .btn-app-store:hover { background: #a7f3d0; color: #0f1510; }
}

/* ---------- Section structure ---------- */

section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }

/* Botanical typographic divider */
.ornament {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--forest-ink);
  letter-spacing: 0.3em;
  font-style: italic;
  margin: 0;
  padding: clamp(18px, 3.5vw, 36px) 0;
  font-variation-settings: "opsz" 36, "SOFT" 80, "WONK" 1;
  user-select: none;
  opacity: 0.6;
}

/* ❧ fleuron — botanical feel */
.ornament::before { content: "\2767"; }

/* ---------- Why section — editorial spread with marginalia ---------- */

.why-spread {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.why-marginalia {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--label-tertiary);
  line-height: 1.6;
  font-variation-settings: "opsz" 14, "SOFT" 80, "WONK" 0;
  position: sticky;
  top: 100px;
  text-align: right;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.why-marginalia p { color: var(--label-tertiary); margin-bottom: 0.55em; }

.marginalia-tag {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin-bottom: 14px;
  font-weight: 600;
}

.why-body h2 { max-width: 18ch; }

.why-body .lede {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.7vw, 1.5625rem);
  line-height: 1.42;
  color: var(--label);
  margin: 28px 0 24px;
  font-variation-settings: "opsz" 32, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  max-width: 38ch;
}

.why-body p { max-width: 62ch; }

.why-body .has-dropcap::first-letter {
  font-family: var(--serif);
  font-size: 5.25em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  float: left;
  line-height: 0.84;
  padding: 0.05em 0.14em 0 0;
  color: var(--forest-ink);
  letter-spacing: -0.04em;
}

/* ---------- Features — vertical numbered list ---------- */

.features-spread {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.features-intro h2 {
  max-width: 14ch;
  position: sticky;
  top: 100px;
}

.features-intro .intro-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--label-tertiary);
  margin-top: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  position: sticky;
  top: calc(100px + 6em);
  font-variation-settings: "opsz" 14, "SOFT" 80, "WONK" 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 14ch);
  gap: clamp(16px, 2.5vw, 36px);
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.feature-item:last-child { border-bottom: 1px solid var(--rule); }

.feature-num {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
  color: var(--forest-ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-style: italic;
  opacity: 0.7;
}

.feature-body h3 { margin-bottom: 8px; }
.feature-body p { font-size: 1rem; max-width: 50ch; margin-bottom: 0; }

.feature-aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--label-tertiary);
  line-height: 1.6;
  border-left: 1px solid var(--rule);
  padding-left: 16px;
  font-variation-settings: "opsz" 14, "SOFT" 80, "WONK" 0;
}

/* ---------- FAQ sections (curators + questions) ---------- */

.faq-section .faq-intro {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
  max-width: 36ch;
}

.faq-section .faq-intro h2 { margin: 0; }

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.faq-item {
  padding: clamp(22px, 3.5vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  max-width: 66ch;
}

.faq-item h3 {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.5vw + 0.4rem, 1.4375rem);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 0;
  color: var(--label);
  margin: 0 0 10px;
  line-height: 1.28;
}

.faq-item p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--label-secondary);
  max-width: 62ch;
  margin: 0;
}

.faq-item p + p { margin-top: 0.75em; }

/* ---------- Notify CTA band ---------- */

.notify-band {
  background: var(--forest);
  color: #ffffff;
  padding: clamp(52px, 8vw, 104px) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle radial mint accent in the corner */
.notify-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(167, 243, 208, 0.18), transparent 50%),
    radial-gradient(ellipse at 6% 92%, rgba(255, 166, 177, 0.12), transparent 52%);
  pointer-events: none;
}

.notify-band .container { z-index: 2; position: relative; }

.notify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
}

.notify-band h2 { color: #ffffff; max-width: 22ch; }
.notify-band p { color: rgba(255, 255, 255, 0.72); max-width: 50ch; }
.notify-band .eyebrow { color: var(--mint); }
.notify-band .eyebrow::before { background: var(--mint); }

.notify-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.notify-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.52);
  margin: 0;
  font-variation-settings: "opsz" 14, "SOFT" 80, "WONK" 0;
}

.notify-band .btn-primary {
  background: var(--mint);
  color: var(--forest);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.28);
}

.notify-band .btn-primary:hover {
  background: #c6f7de;
  color: var(--forest);
  transform: translateY(-2px);
}

/* ---------- App Store CTA ---------- */

.appstore-band {
  text-align: center;
  padding: clamp(68px, 10vw, 132px) 0 clamp(52px, 8vw, 104px);
}

.appstore-band h2 {
  max-width: 22ch;
  margin: 0 auto 18px;
}

.appstore-band p {
  max-width: 44ch;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
}

.appstore-band .availability {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--label-tertiary);
  font-variation-settings: "opsz" 14, "SOFT" 60, "WONK" 0;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 44px 0 60px;
  font-size: 0.875rem;
  color: var(--label-tertiary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
}

.footer-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--label-secondary);
  font-variation-settings: "opsz" 24, "SOFT" 60, "WONK" 0;
  line-height: 1.55;
}

.footer-mark strong {
  font-style: normal;
  font-weight: 500;
  color: var(--label);
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--label-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover { color: var(--label); }

/* ---------- Legal pages (.legal-page) ----------
 * The writer's privacy, terms, and support pages drop their prose into
 * a <main class="legal-page"> element. This class provides all the
 * typographic scaffolding so the copy looks right without the writer
 * needing to touch styles.css.
 */

.legal-page {
  padding: clamp(60px, 8vw, 112px) 0 clamp(68px, 10vw, 132px);
}

.legal-page .container { max-width: 760px; }

.legal-page h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  margin-bottom: 10px;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
}

.legal-page .doc-updated {
  color: var(--label-tertiary);
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 60, "WONK" 0;
}

.legal-page h2 {
  font-size: clamp(1.4375rem, 2.4vw, 1.9375rem);
  margin-top: 52px;
  margin-bottom: 14px;
}

.legal-page h3 {
  font-size: 1.1875rem;
  margin-top: 32px;
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
}

.legal-page p {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--label-secondary);
  max-width: 68ch;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.legal-page li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--label-secondary);
  margin-bottom: 6px;
}

.legal-page a { color: var(--forest-ink); }
.legal-page a:hover { color: var(--forest); }

.legal-page .callout {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--forest-ink);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 22px 0 28px;
  font-size: 0.9375rem;
  color: var(--label-secondary);
}

.legal-page .callout strong { color: var(--label); font-weight: 600; }

/* ---------- Page-load motion ---------- */

@keyframes bg-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up-soft {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes phone-in {
  from { opacity: 0; transform: rotate(7deg) translateY(36px) scale(0.96); }
  to   { opacity: 1; transform: rotate(2deg) translateY(0) scale(1); }
}

.hero .hero-eyebrow {
  opacity: 0;
  animation: slide-up-soft 0.55s 0.08s ease-out forwards;
}

.hero h1 .word {
  opacity: 0;
  animation: slide-up 0.65s ease-out forwards;
  animation-delay: calc(0.25s + var(--word-i, 0) * 55ms);
}

.hero-lede {
  opacity: 0;
  animation: slide-up 0.6s ease-out forwards;
  animation-delay: 1.0s;
}

.hero-cta-row {
  opacity: 0;
  animation: slide-up 0.6s ease-out forwards;
  animation-delay: 1.2s;
}

.hero-meta {
  opacity: 0;
  animation: slide-up-soft 0.55s ease-out forwards;
  animation-delay: 1.4s;
}

.phone-stage {
  opacity: 0;
  animation: phone-in 0.85s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-ornament {
  opacity: 0;
  animation: bg-fade-in 1.1s 0.9s ease-out forwards;
}

/* ---------- Reduced motion — disable all animation ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .hero .hero-eyebrow,
  .hero h1 .word,
  .hero-lede,
  .hero-cta-row,
  .hero-meta,
  .phone-stage,
  .hero-ornament { opacity: 1; transform: none; }
  .phone-frame { transform: rotate(0deg); }
}

/* ---------- Forced colors ---------- */

@media (forced-colors: active) {
  .btn-primary, .notify-band .btn-primary { border: 1px solid CanvasText; }
  body::before { display: none; }
  .phone-frame { border: 2px solid CanvasText; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
    gap: clamp(22px, 3.5vw, 52px);
  }
  .phone-stage {
    margin-right: 0;
    max-width: 280px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-left: calc(var(--rail) * -0.08);
    max-width: 18ch;
  }
  .hero-lede { max-width: 36ch; }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
    gap: clamp(18px, 2.8vw, 36px);
  }
  .phone-stage { max-width: 260px; }
  .hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    max-width: 16ch;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
  }
  .hero h1 { margin-left: 0; }
  .phone-stage {
    margin-right: 0;
    max-width: 300px;
    justify-self: start;
  }
  .phone-frame { transform: rotate(0deg); }

  .why-spread, .features-spread { grid-template-columns: 1fr; }

  .why-marginalia, .features-intro .intro-note, .features-intro h2 {
    position: static;
    border-top: 0;
    padding-top: 0;
    text-align: left;
  }
  .why-marginalia {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 16px;
    margin-bottom: 6px;
  }

  .feature-item {
    grid-template-columns: 52px 1fr;
    gap: 18px;
  }
  .feature-aside {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    border-top: 1px dashed var(--rule);
    padding-top: 12px;
    margin-top: 2px;
  }

  .notify-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.25rem); }
  .why-body .has-dropcap::first-letter { font-size: 4em; }
  .notify-action { align-items: stretch; }
  .notify-action .btn { justify-content: center; }
}
