/* Hallmark · genre: editorial · macrostructure: Marquee Hero (landing) / Long Document (content)
 * design-system: design.md · designed-as-app · tone: editorial product · anchor hue: leaf green 163 */
/* Self-hosted fonts (GDPR + LCP): downloaded from Google Fonts, served from /fonts/ */
/* vietnamese */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGHInHEVA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGGInHEVA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGIInE.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;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.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;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.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;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.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;
}


/* FloraCure — floracure.app
   Palette: ink #0E241B · leaf #059669 · sprout #5EEAB4 · paper #F5F9F4 · clay #D9633B · mist #D8E6DC
   Type: Bricolage Grotesque (variable display, kinetic) + DM Sans (body). */

:root {
  --ink: #0e241b;
  --ink-soft: #3c5248;
  --leaf: #059669;
  --leaf-deep: #047857;
  --leaf-dark: #065f46;
  --sprout: #5eeab4;
  --paper: #f5f9f4;
  --card: #ffffff;
  --white: #ffffff;
  --clay: #d9633b;
  --amber: #d97706;
  /* AA-safe text variants of the clay/amber tints (same hue, darkened for 4.5:1
     on paper and on their own 13–14% tint fills). Tints stay --clay/--amber. */
  --clay-deep: #a8431f;
  --amber-deep: #8a4a04;
  --mist: #d8e6dc;
  --cta-deep: #05392c;
  --shot-ph: #cfe0d6;
  --risk-high-t: #ffd9c9;
  --risk-med-t: #ffe9c2;
  --risk-low-t: #c8ffe6;
  --radius: 20px;
  --shadow: 0 24px 60px -24px rgba(14, 36, 27, 0.25);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.75);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* The site's one easing. Matches the hero entrance curve; replaces the
     browser default `ease`, which overshoots into a lazy, generic feel. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Guard against a wide child (the screenshot rail) leaking page-level
   horizontal scroll. `clip` not `hidden` — `hidden` breaks position: sticky. */
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf-deep); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
/* Dark bands: --leaf ring measures 2.0–4.3:1 on these fills, below WCAG 1.4.11's
   3:1 for focus indicators. --sprout clears it on every one (3.63–10.8:1). */
.cta-band :focus-visible,
.app-cta :focus-visible,
.install-bar :focus-visible,
.marquee :focus-visible { outline-color: var(--sprout); }
::selection { background: var(--sprout); color: var(--ink); }

/* Skip link — visually hidden until focused (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white);
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 12px 18px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top 0.15s var(--ease-out);
}
.skip-link:focus { top: 0; }
main:focus { outline: none; }

/* Film-grain overlay — whole page, non-interactive */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 650; }

/* Kinetic typography — section headings gain weight + width as they scroll in.
   Variable-font axes animated on the view() timeline. Progressive enhancement. */
@supports (animation-timeline: view()) and (font-variation-settings: "wght" 700) {
  @media (prefers-reduced-motion: no-preference) {
    .kinetic {
      font-variation-settings: "wght" 380, "opsz" 40;
      animation: type-flex both;
      animation-timeline: view();
      animation-range: entry 8% cover 42%;
    }
    @keyframes type-flex {
      from { font-variation-settings: "wght" 360, "opsz" 20; letter-spacing: 0.01em; opacity: 0.55; }
      to   { font-variation-settings: "wght" 780, "opsz" 72; letter-spacing: -0.035em; opacity: 1; }
    }
  }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--leaf-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sprout); }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(245, 249, 244, 0.82);
  border-bottom: 1px solid var(--mist);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
/* Links speak the site's mono eyebrow voice — the nav's distinguishing move */
.nav-links a:not(.btn) {
  text-decoration: none; color: var(--ink-soft);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-decoration-color: var(--sprout);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--white); }

/* Mobile disclosure menu — native <details>, no JS, keyboard-operable for free.
   Hidden at desktop, where .nav-links carries the same destinations. */
.nav-menu { display: none; }
.nav-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1.5px solid var(--mist); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::marker { content: ""; }
.nav-menu > summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-menu[open] > summary { border-color: var(--leaf-deep); color: var(--leaf-deep); }
.nav-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: 4px 24px 12px;
  background: var(--card); border-bottom: 1px solid var(--mist);
  box-shadow: 0 14px 28px rgba(14, 36, 27, 0.1);
}
.nav-menu-panel a {
  display: flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  border-bottom: 1px solid var(--mist);
}
.nav-menu-panel a:last-child { border-bottom: 0; }
.nav-menu-panel a:hover,
.nav-menu-panel a:focus-visible { color: var(--leaf-deep); }

@media (max-width: 720px) {
  .nav-inner { gap: 10px; padding: 12px 16px; }
  .nav-links { margin-left: 0; }
  .nav-links a:not(.btn) { display: none; }
  .nav-menu { display: block; margin-left: auto; }
  .nav-menu-panel { padding-inline: 16px; }
}
/* Very narrow phones: the wordmark folds to its mark so the row never overflows.
   The accessible name is preserved by .u-vis-hidden text. */
@media (max-width: 400px) {
  .nav-inner { gap: 8px; padding: 12px 12px; }
  .nav .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  .nav-menu > summary { padding: 0 12px; }
  .nav-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  .nav-menu-panel { padding-inline: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.btn-primary {
  /* leaf-deep, not leaf: white on --leaf is 3.77:1 and the label is 16px/650 (not
     WCAG-large). leaf-deep -> leaf-dark runs 5.48:1 -> 7.68:1. */
  background: linear-gradient(135deg, var(--leaf-deep), var(--leaf-dark));
  color: var(--white); box-shadow: 0 12px 28px -10px rgba(5, 150, 105, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(5, 150, 105, 0.6); }
.btn-ghost { border: 1.5px solid var(--mist); color: var(--ink); background: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 56px; overflow: clip; position: relative; isolation: isolate; }
/* Static two-stop brand wash behind the hero (grain overlay carries the texture) */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% 0; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 22%, rgba(94, 234, 180, 0.5), transparent 60%),
    radial-gradient(45% 55% at 82% 12%, rgba(5, 150, 105, 0.3), transparent 62%);
  filter: blur(8px);
}
/* One orchestrated page-load moment — the only entrance animation on the site */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero-ctas, .hero-note, .hero-visual {
    animation: hero-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero h1 { animation-delay: 60ms; }
  .hero .lede { animation-delay: 120ms; }
  .hero-visual { animation-delay: 160ms; }
  .hero-ctas { animation-delay: 200ms; }
  .hero-note { animation-delay: 260ms; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--leaf); position: relative; }
.hero .lede { margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* Status note beside the primary CTA — deliberately not a button: there is
   nothing to click yet, so it must not read as one. */
.cta-aside {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px;
}
.cta-aside::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sprout); flex-shrink: 0;
}
.hero-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 14px; }

/* Hand-built diagnosis composition (Tier-A CSS art) + floating cards — the signature */
.hero-visual { position: relative; min-height: 560px; }
.app-art {
  width: min(310px, 80vw); margin: 0 auto;
  border-radius: 26px; border: 1px solid var(--mist);
  background: var(--card); box-shadow: var(--shadow);
  transform: rotate(4deg); overflow: hidden;
}
.aa-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 18px;
  background: linear-gradient(135deg, var(--leaf-deep), var(--leaf-dark));
  color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.aa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sprout); }
/* full white, not 85% — at 0.6rem this needs the full 5.48:1 the deep fill allows */
.aa-sub { margin-left: auto; font-family: var(--font-mono); font-weight: 400; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; }
/* The sick leaf itself — shape, vein, and clay leaf-spot marks */
.aa-leaf { position: relative; height: 148px; background: var(--shot-ph); overflow: hidden; }
.aa-leaf::before {
  content: ""; position: absolute; inset: 20px 56px 14px;
  background: linear-gradient(145deg, var(--leaf) 0%, var(--leaf-dark) 90%);
  border-radius: 6px 76% 6px 76%; transform: rotate(10deg);
}
.aa-vein { position: absolute; left: 50%; top: 26px; bottom: 20px; width: 2px; background: var(--sprout); opacity: 0.55; transform: rotate(35deg); }
.aa-spot { position: absolute; border-radius: 50%; background: var(--clay); opacity: 0.9; }
.aa-spot.s1 { width: 13px; height: 13px; left: 52%; top: 46%; }
.aa-spot.s2 { width: 8px; height: 8px; left: 66%; top: 32%; }
.aa-spot.s3 { width: 10px; height: 10px; left: 60%; top: 64%; }
.aa-body { padding: 16px 18px 20px; }
.aa-name { font-family: var(--font-display); font-weight: 720; font-size: 1.3rem; margin: 2px 0 10px; }
.aa-body .meter { margin-bottom: 6px; }
.aa-steps { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 0.82rem; color: var(--ink-soft); }
.aa-steps li { display: flex; gap: 9px; align-items: baseline; }
.aa-steps li::before { content: ""; width: 12px; height: 2px; background: var(--sprout); flex-shrink: 0; transform: translateY(-3px); }
.float-card {
  position: absolute; background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--glass-brd);
  border-radius: 18px; padding: 15px 19px;
  box-shadow: 0 24px 50px -20px rgba(14, 36, 27, 0.45), inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: 0.85rem; min-width: 200px;
}
.float-card .fc-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.float-card .fc-title { font-family: var(--font-display); font-weight: 650; font-size: 1rem; margin: 3px 0 8px; }
.fc-1 { top: 6%; left: 0; animation: bob 6s ease-in-out infinite; }
.fc-2 { bottom: 1%; right: 0; animation: bob 7s ease-in-out 1.2s infinite; }
@media (max-width: 900px) { .fc-1 { left: -4px; } .fc-2 { right: -4px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.chip { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; }
/* tint fills unchanged; text darkened to the -deep variants for 4.5:1 */
.chip-severe { background: rgba(217, 99, 59, 0.14); color: var(--clay-deep); }
.chip-mild { background: rgba(5, 150, 105, 0.12); color: var(--leaf-deep); }
.chip-med { background: rgba(217, 119, 6, 0.13); color: var(--amber-deep); }

.meter { height: 6px; border-radius: 999px; background: var(--mist); overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sprout), var(--leaf)); width: var(--val, 80%); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- Interactive demo ---------- */
.demo-panel {
  margin-top: 44px; border-radius: 24px; padding: 28px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow);
  max-width: 860px;
}
.demo-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-display); font-weight: 630; font-size: 0.95rem;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--mist); background: var(--white); color: var(--ink-soft);
  transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.demo-chip:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.demo-chip svg { width: 15px; height: 15px; }
.demo-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.demo-result { margin-top: 24px; background: var(--white); border: 1px solid var(--mist); border-radius: 18px; padding: 24px; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.demo-name { font-family: var(--font-display); font-weight: 720; font-size: 1.5rem; margin-top: 2px; }
.demo-conf { min-width: 180px; }
.demo-conf .meter { margin-top: 6px; }
.demo-steps { margin: 18px 0 0 22px; color: var(--ink-soft); }
.demo-steps li { margin-bottom: 8px; }
.demo-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--mist); margin-top: 20px; padding-top: 18px;
  font-size: 0.88rem; color: var(--ink-soft);
}

/* proof bar — hairline-divided cells */
.trust { border-block: 1px solid var(--mist); padding: 22px 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 0.92rem; color: var(--ink-soft); }
.trust-row span { display: inline-flex; align-items: center; gap: 10px; padding: 4px 22px; }
.trust-row span + span { border-left: 1px solid var(--mist); }
@media (max-width: 900px) {
  .trust-row { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .trust-row span:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-row span + span { border-left: 0; }
  .trust-row span { padding: 4px 8px; }
}
.trust-row b { color: var(--ink); font-family: var(--font-display); }

/* ---------- Marquee ticker ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 1px solid var(--leaf-dark); }
.marquee-track {
  display: inline-flex; align-items: center; gap: 34px; white-space: nowrap;
  padding: 15px 0; will-change: transform; animation: scrollx 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 34px; }
.marquee-item::after { content: "✦"; color: var(--sprout); font-size: 0.8rem; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius);
  padding: 30px 26px; position: relative;
}
/* Anti-grid: stagger the step cards vertically */
.steps .step:nth-child(2) { transform: translateY(28px); }
.steps .step:nth-child(3) { transform: translateY(56px); }
@media (max-width: 820px) { .steps .step { transform: none !important; } }
.step .step-k { font-family: var(--font-mono); color: var(--leaf-deep); font-size: 0.8rem; letter-spacing: 0.12em; }
.step h3 { margin: 12px 0 10px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Screenshots ---------- */
.shot-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 64vw);
  gap: 24px; overflow-x: auto; padding: 44px 24px 8px;
  scroll-snap-type: x mandatory; max-width: 1120px; margin: 0 auto;
  overscroll-behavior-x: contain;
}
.shot-rail::-webkit-scrollbar { height: 8px; }
.shot-rail::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 999px; }
/* Fade the trailing edge so the rail reads as scrollable before it's touched.
   The leading edge stays hard — only the direction with more content softens. */
@supports (mask-image: linear-gradient(#000, #000)) {
  .shot-rail { mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); }
  .shot-rail:focus-visible { mask-image: none; }
}
.shot { scroll-snap-align: center; transition: transform 0.25s var(--ease-out); }
.shot:hover { transform: translateY(-6px); }
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 720 / 1448;
  border-radius: 26px; border: 1px solid var(--mist);
  box-shadow: var(--shadow); background: var(--card);
}
.shot figcaption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; }
  .shot:hover { transform: none; }
}

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.feature:hover { transform: translateY(-4px) scale(1.012); box-shadow: var(--shadow); }
/* light stop is leaf-deep, not leaf: white body copy on --leaf is only 3.77:1 */
.feature.feature-hero { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, var(--leaf-dark), var(--leaf-deep)); color: var(--white); }
@media (max-width: 620px) { .feature.feature-hero { grid-column: span 1; grid-row: span 1; } }
.risk-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; max-width: 420px; }
/* 8% not 12%: at 12% the white row label fell to 4.37:1 over the leaf-deep stop */
.risk-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px; padding: 10px 16px; font-size: 0.92rem;
}
/* Opaque pill fills + ink text. The old alpha-over-gradient tints measured
   2.20–3.57:1 depending on where the pill sat along the gradient; solid fills
   make contrast independent of the gradient position (12.4–14.7:1). */
.risk-pill { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 10px; border-radius: 999px; color: var(--ink); }
.risk-high { background: var(--risk-high-t); }
.risk-med { background: var(--risk-med-t); }
.risk-low { background: var(--risk-low-t); }
.feature.feature-hero h3, .feature.feature-hero p { color: var(--white); }
.feature .f-icon { display: inline-block; color: var(--leaf); }
.feature .f-icon svg { width: 28px; height: 28px; }
.feature.feature-hero .f-icon { color: var(--white); }
.trust-row svg { width: 16px; height: 16px; color: var(--leaf-deep); flex-shrink: 0; }
.feature h3 { margin: 12px 0 8px; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }
.feature.feature-cta {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--paper);
  border: 1.5px dashed var(--leaf);
}
.feature.feature-cta h3 { margin-top: 0; }
@media (max-width: 620px) { .feature.feature-cta { grid-column: span 1; } }

/* ---------- Guides ---------- */
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .guide-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .guide-cards { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink);
  transition: transform 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
  display: flex; flex-direction: column; gap: 8px;
}
.guide-card:hover { border-color: var(--leaf); }
.guide-card .gc-tag { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--leaf-deep); display: inline-flex; align-items: center; gap: 8px; }
.gc-tag::before { content: ""; width: 16px; height: 2px; background: currentColor; opacity: 0.7; }
/* taxonomy tints (design.md: Symptom=leaf · Disease=clay · Pest=amber · Care/Compare=ink-soft · Pet safety=ink) */
/* -deep variants: these tags are 10.5px, so they need the full 4.5:1 */
.gc-tag.t-disease { color: var(--clay-deep); }
.gc-tag.t-pest { color: var(--amber-deep); }
.gc-tag.t-care, .gc-tag.t-compare { color: var(--ink-soft); }
.gc-tag.t-pet { color: var(--ink); }
/* (removed) guide-card ::after index counter — guides/index.html has five
   .guide-cards containers, each resetting the counter, so "01" rendered five
   times. It was also only 2.20:1. */
.guide-card h3 { font-size: 1.08rem; }
.guide-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.guide-card .gc-more { font-weight: 600; color: var(--leaf-deep); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 44px auto 0; display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--mist); border-radius: 16px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 630; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* leaf-deep: the "+" is 22.4px normal weight, under the 24px large-text threshold,
   so it needs 4.5:1 as text (3.77 -> 5.48). Not in the original audit list. */
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--leaf-deep); transition: transform 0.2s var(--ease-out); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); }
/* "Learn more" links were 22px tall — inline-block padding brings them to 44px */
.faq-item .faq-a a { font-weight: 600; display: inline-block; padding: 11px 0; }

/* ---------- CTA band ---------- */
.cta-band {
  /* innermost stop is leaf-deep, not leaf — white copy on --leaf is 3.77:1 */
  background: radial-gradient(120% 160% at 20% 0%, var(--leaf-deep) 0%, var(--leaf-deep) 55%, var(--cta-deep) 100%);
  color: var(--white); border-radius: 28px; padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 52ch; margin: 16px auto 32px; }
.cta-band .btn-primary { background: var(--white); color: var(--leaf-dark); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--mist); padding: 56px 0 40px; font-size: 0.92rem; color: var(--ink-soft); }
.foot-statement {
  font-family: var(--font-display); font-weight: 680; color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 26ch; margin-bottom: 44px;
}
.foot-statement em { font-style: normal; color: var(--leaf); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
footer .foot-h { font-family: var(--font-display); color: var(--ink); font-size: 0.95rem; font-weight: 650; margin-bottom: 12px; }
/* 20px -> 44px hit areas. Padding does the lifting and the gap comes back down,
   so the row pitch (44+8=52) matches the intended 36+14 rhythm. */
footer ul { list-style: none; display: grid; gap: 8px; }
footer a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 12px 0; }
footer a:hover { color: var(--leaf-deep); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--mist); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Cross-document view transitions (MPA page fades) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Typography niceties — progressive enhancement */
/* break-word only engages when a single word genuinely cannot fit — at 320px
   the display sizes are large enough that words like "underwatering:" overflowed
   the line box and pushed the page sideways (WCAG 1.4.10). */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
article.guide p, .lede { text-wrap: pretty; }

/* ---------- Sticky mobile install bar ---------- */
.install-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: rgba(14, 36, 27, 0.94); color: var(--white);
  border-radius: 16px; padding: 10px 12px;
  box-shadow: 0 18px 40px -14px rgba(14, 36, 27, 0.5);
  transform: translateY(120%); opacity: 0; transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.install-bar.is-in { transform: none; opacity: 1; }
.install-bar img { width: 38px; height: 38px; border-radius: 9px; }
.install-bar .ib-text { flex: 1; font-size: 0.85rem; line-height: 1.35; }
.install-bar .ib-text b { font-family: var(--font-display); display: block; font-size: 0.95rem; }
.install-bar .btn { padding: 12px 16px; font-size: 0.88rem; flex-shrink: 0; min-height: 44px; }
/* 44x44: this is the only way to dismiss a bar that covers the bottom of the
   screen, and it sits next to Install — a mis-tap installed the app. */
.install-bar .ib-close {
  background: none; border: 0; color: var(--white); font-size: 1.3rem;
  cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .install-bar { display: none; } }

/* One scroll voice: the .kinetic heading flex is the signature move.
   (Per-section .reveal fade-ups removed — the classes in HTML are inert.) */
@media (prefers-reduced-motion: reduce) { .float-card { animation: none !important; } }

/* =================== Guide pages =================== */
.guide-hero { padding: 72px 0 40px; }
.guide-hero .lede { margin-top: 18px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; }
.byline { font-size: 0.88rem; color: var(--ink-soft); margin-top: 16px; }
.byline a { font-weight: 600; }
article.guide { max-width: 780px; margin: 0 auto; padding: 0 24px 80px; }
article.guide h2 { margin: 52px 0 18px; font-size: 1.6rem; }
article.guide h2::before { content: ""; display: block; width: 26px; height: 3px; background: var(--sprout); margin-bottom: 12px; }
article.guide h3 { margin: 32px 0 12px; }
article.guide p { margin-bottom: 18px; }
article.guide ul, article.guide ol { margin: 0 0 20px 24px; }
article.guide li { margin-bottom: 8px; }
/* Tables scroll inside their own container so the page body never scrolls
   sideways at 320px (WCAG 1.4.10 Reflow). Keeps full <table> semantics. */
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
article.guide table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.95rem; }
article.guide th, article.guide td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mist); }
article.guide th { font-family: var(--font-display); font-weight: 650; }

/* Full 1px border + leaf-tinted wash instead of a side stripe */
.callout {
  border: 1px solid rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.05);
  border-radius: 12px; padding: 18px 22px; margin: 28px 0;
}
.callout.warn { border-color: rgba(217, 99, 59, 0.5); background: rgba(217, 99, 59, 0.06); }

.app-cta {
  background: linear-gradient(135deg, var(--leaf-deep), var(--leaf-dark));
  color: var(--white); border-radius: var(--radius); padding: 34px 30px; margin: 44px 0;
}
.app-cta h2, .app-cta h3 { color: var(--white); margin: 0 0 10px !important; }
.app-cta .btn { background: var(--white); color: var(--leaf-dark); margin-top: 10px; }

.related { border-top: 1px solid var(--mist); padding-top: 32px; margin-top: 48px; }
.related h2 { font-size: 1.25rem !important; margin: 0 0 18px !important; }
.related ul { list-style: none; margin: 0; display: grid; gap: 10px; }
.related a { font-weight: 600; text-decoration: none; }
