/* ============================================================
   PlantAI — design system
   Scientific botanical archive × modern AI lab
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--leaf); color: var(--bg); }

/* Intentional tap-highlight and touch optimisation */
* { -webkit-tap-highlight-color: rgba(63, 217, 117, 0.18); }
a, button, summary, [role="button"], details > summary { touch-action: manipulation; }

/* Skip link — keyboard-only access to main content */
.skip {
  position: absolute;
  top: 0; left: 0;
  background: var(--leaf);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
  transform: translateY(-110%);
  transition: transform var(--dur) var(--ease-out);
  z-index: 999;
}
.skip:focus { transform: translateY(0); }

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  /* Surface ramp — drenched dark forest */
  --void:    #050B07;
  --bg:      #0B1C12;
  --bg-1:    #102619;
  --bg-2:    #15301F;
  --bg-3:    #1B3D28;

  /* Ink ramp — verified contrast on --bg */
  --ink-100: #F0FAF3;   /* highest contrast, large display */
  --ink-200: #DCEEDF;   /* body — 13:1 */
  --ink-300: #A8C8B0;   /* muted body — 7:1, still AA */
  --ink-400: #7FA98A;   /* secondary, kickers */
  --ink-500: #4D7659;   /* hairline labels only */

  /* Accent — brand green */
  --leaf:        #3FD975;
  --leaf-bright: #67F39A;
  --leaf-dim:    #2BA855;
  --leaf-glow:   rgba(63, 217, 117, 0.20);
  --leaf-dim-bg: rgba(63, 217, 117, 0.10);
  --leaf-line:   rgba(63, 217, 117, 0.18);

  /* Semantic */
  --amber:    #F5B84A;
  --amber-bg: rgba(245, 184, 74, 0.10);

  /* Type — Bricolage Grotesque (display + body) + JetBrains Mono (utility) */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale (clamp for fluid) */
  --fs-mega:    clamp(3.4rem, 11vw, 7.5rem);
  --fs-h1:      clamp(2.4rem, 6.5vw, 4.5rem);
  --fs-h2:      clamp(1.9rem, 4vw, 2.8rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.5rem);
  --fs-h4:      1.05rem;
  --fs-body:    1.0625rem;     /* 17px */
  --fs-small:   0.9375rem;     /* 15px */
  --fs-meta:    0.75rem;       /* 12px mono labels */
  --fs-kicker:  0.7rem;

  /* Layout */
  --container:  72rem;
  --container-narrow: 44rem;
  --gutter:     clamp(1.25rem, 4vw, 2.75rem);

  /* Radii */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur:      280ms;
  --dur-slow: 600ms;

  /* z-index scale */
  --z-base:    1;
  --z-nav:     50;
  --z-overlay: 80;
  --z-menu:    90;
  --z-banner:  100;
}

/* ── BASE ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--ink-200);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 420;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Atmospheric background — radial gradients */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(63, 217, 117, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 12% 90%, rgba(63, 217, 117, 0.05), transparent 60%),
    radial-gradient(ellipse 50% 30% at 88% 95%, rgba(63, 217, 117, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Noise grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

main, footer, nav { position: relative; z-index: var(--z-base); }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-100);
  text-wrap: balance;
}
.mono, .meta, .kicker { font-family: var(--font-mono); }

.mega {
  font-size: var(--fs-mega);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-variation-settings: 'wdth' 88;
}
.mega em {
  font-style: italic;
  font-weight: 500;
  color: var(--leaf);
  font-variation-settings: 'wdth' 92;
}

h1.headline {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 90;
}
h1.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--leaf);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-variation-settings: 'wdth' 92;
}
h2 em {
  font-style: italic;
  color: var(--leaf);
  font-weight: 500;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

/* Mono utility labels */
.kicker {
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.meta {
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}
.meta-link {
  color: var(--leaf);
  border-bottom: 1px solid var(--leaf-line);
  transition: border-color var(--dur) var(--ease);
}
.meta-link:hover { border-bottom-color: var(--leaf); }

/* ── LAYOUT PRIMITIVES ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* Hairline divider with subtle gradient */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--leaf-line) 20%, var(--leaf-line) 80%, transparent);
  margin: 0;
  border: 0;
}

/* Section heading block */
.s-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.s-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.s-head .kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--leaf);
  display: inline-block;
}
.s-head .lead {
  color: var(--ink-300);
  max-width: 38ch;
  font-size: 1.05rem;
}

@media (min-width: 800px) {
  .s-head--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 3rem;
  }
}

/* ── NAV ───────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  z-index: var(--z-nav);
  padding: 0 var(--gutter);
  pointer-events: none;
}
nav.nav {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  background: rgba(11, 28, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--leaf-line);
  border-radius: 100px;
  padding: 0.55rem 0.55rem 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 16px 48px -16px rgba(0, 0, 0, 0.5);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-100);
}
.nav-brand .mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  /* Subtle glow so the PNG sits well on the dark surface */
  filter: drop-shadow(0 0 4px rgba(63, 217, 117, 0.25));
}
.footer-brand .nav-brand .mark {
  width: 28px;
  height: 28px;
}
.nav-brand em {
  color: var(--leaf);
  font-style: italic;
}
.nav-links {
  display: none;
  list-style: none;
  gap: 1.75rem;
  margin: 0 auto 0 1.5rem;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-300);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--leaf); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--leaf);
}
/* Nav CTA — text-only "Get the app →" pill (cleaner than icon+text combo) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--ink-100);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.5rem 1.05rem 0.5rem 1.15rem;
  border-radius: 100px;
  border: 1px solid var(--leaf-line);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-cta .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}
.nav-cta:hover {
  background: var(--leaf);
  color: var(--bg);
  border-color: var(--leaf);
  gap: 0.65rem;
}
.nav-cta:hover .arrow { transform: translateX(2px); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 100px;
  color: var(--ink-200);
  margin-right: -0.25rem;
}
.nav-toggle:hover { color: var(--leaf); background: var(--leaf-dim-bg); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 7, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: var(--z-menu);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(4rem + env(safe-area-inset-top, 0px)) var(--gutter) calc(4rem + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.nav-overlay a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--ink-100);
  transition: color var(--dur) var(--ease);
  font-variation-settings: 'wdth' 92;
}
.nav-overlay a:hover, .nav-overlay a[aria-current="page"] {
  color: var(--leaf);
  font-style: italic;
}
.nav-overlay .meta { margin-top: 2.5rem; }

@media (min-width: 880px) {
  .nav-links { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--leaf);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--leaf-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px var(--leaf-glow);
}
.btn-ghost {
  color: var(--ink-200);
  border-color: var(--leaf-line);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  color: var(--leaf);
  border-color: var(--leaf);
  background: var(--leaf-dim-bg);
}
.btn-lg {
  padding: 1.05rem 1.85rem;
  font-size: 0.9rem;
}
.btn svg { width: 1em; height: 1em; flex-shrink: 0; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 4rem;
    align-items: end;
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-300);
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 var(--leaf-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 217, 117, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(63, 217, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 217, 117, 0); }
}
.hero-eyebrow a {
  color: var(--ink-200);
  border-bottom: 1px solid var(--leaf-line);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero-eyebrow a:hover { color: var(--leaf); border-color: var(--leaf); }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-300);
  margin-top: 1.5rem;
  max-width: 36ch;
  line-height: 1.5;
  font-weight: 430;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Hero promo line — Free + Android note under CTAs */
.hero-promo {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-300);
}
.hero-promo .free {
  color: var(--leaf);
  background: var(--leaf-dim-bg);
  border: 1px solid var(--leaf-line);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-promo .free::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 6px var(--leaf-glow);
}
.hero-promo .android {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-promo .android svg {
  width: 14px; height: 14px;
  color: var(--ink-400);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}
@media (min-width: 960px) {
  .hero-meta { border-left: 1px solid var(--leaf-line); padding-left: 2.5rem; }
}
.hero-meta dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.4rem 1.5rem;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  text-transform: uppercase;
}
.hero-meta dd {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--ink-200);
}
.hero-mark {
  position: relative;
  width: clamp(72px, 10vw, 104px);
  aspect-ratio: 1 / 1;
}
.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(63, 217, 117, 0.28));
}

/* Topographic SVG accent — corner decoration */
.topo-corner {
  position: absolute;
  top: 0; right: 0;
  width: clamp(180px, 28vw, 320px);
  opacity: 0.22;
  pointer-events: none;
  color: var(--leaf);
  z-index: 0;
}

/* ── WHAT'S NEW STRIP ──────────────────────────────────────── */
.now-strip {
  border-top: 1px solid var(--leaf-line);
  border-bottom: 1px solid var(--leaf-line);
  background:
    linear-gradient(90deg, rgba(63, 217, 117, 0.04), transparent 40%, transparent 60%, rgba(63, 217, 117, 0.04));
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.now-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 760px) {
  .now-inner { grid-template-columns: auto 1fr auto; gap: 2.5rem; }
}
.now-tag {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
}
.now-tag .label {
  font-size: var(--fs-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.now-tag .ver {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--leaf);
  line-height: 1;
  letter-spacing: -0.02em;
}
.now-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink-100);
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
  font-variation-settings: 'wdth' 95;
}
.now-headline em { font-style: italic; color: var(--leaf); }
.now-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-200);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.now-link:hover { color: var(--leaf); gap: 0.8rem; }
.now-link svg { width: 14px; height: 14px; }

/* ── STEPS GRID ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--leaf-line);
  list-style: none;
  counter-reset: stp;
}
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--leaf-line);
  position: relative;
}
@media (min-width: 760px) {
  .step {
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 2.5rem;
    align-items: baseline;
  }
}
.step-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--leaf);
  letter-spacing: 0.04em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.018em;
  color: var(--ink-100);
}
.step p {
  color: var(--ink-300);
  font-size: 1.0rem;
  max-width: 56ch;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-group { display: flex; flex-direction: column; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group-label {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.faq-group-label::before {
  content: '';
  width: 14px; height: 1px; background: var(--leaf);
}

.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--leaf-line); }
.faq-item {
  border-bottom: 1px solid var(--leaf-line);
  transition: background var(--dur) var(--ease);
}
.faq-item[open] { background: rgba(63, 217, 117, 0.03); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.075rem;
  letter-spacing: -0.012em;
  color: var(--ink-100);
  transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--leaf); }
.faq-item summary .chev {
  width: 28px; height: 28px;
  border: 1px solid var(--leaf-line);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-300);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq-item summary .chev svg { width: 12px; height: 12px; }
.faq-item summary:hover .chev { border-color: var(--leaf); color: var(--leaf); }
.faq-item[open] summary .chev { transform: rotate(45deg); border-color: var(--leaf); color: var(--leaf); }
.faq-body {
  padding: 0 0 1.6rem;
  color: var(--ink-300);
  font-size: 1.0rem;
  max-width: 64ch;
  line-height: 1.7;
  counter-reset: substep;
}
.faq-body strong { color: var(--ink-200); font-weight: 600; }
.faq-body em { color: var(--ink-200); font-style: italic; }
.faq-body a {
  color: var(--leaf);
  border-bottom: 1px solid var(--leaf-line);
  transition: border-color var(--dur) var(--ease);
}
.faq-body a:hover { border-bottom-color: var(--leaf); }
.faq-body ul { padding-left: 1.4rem; margin-top: 0.75rem; }
.faq-body li { margin-bottom: 0.25rem; }
.faq-body p + p { margin-top: 0.85rem; }
.faq-body .substep {
  margin-top: 0.5rem;
  padding-left: 1.6rem;
  position: relative;
}
.faq-body .substep::before {
  content: counter(substep);
  counter-increment: substep;
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--leaf);
}

/* ── CONTACT CARD ──────────────────────────────────────────── */
.contact-card {
  border: 1px solid var(--leaf-line);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(63, 217, 117, 0.05), rgba(63, 217, 117, 0.01));
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 720px) {
  .contact-card { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; }
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.025em;
  color: var(--ink-100);
  margin-bottom: 0.5rem;
  font-variation-settings: 'wdth' 92;
}
.contact-card h3 em { font-style: italic; color: var(--leaf); }
.contact-card p { color: var(--ink-300); max-width: 50ch; }
.contact-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  color: var(--leaf);
  margin-top: 1rem;
}
.contact-meta::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--leaf-glow);
}
.contact-card .email-display {
  font-family: var(--font-mono);
  color: var(--leaf);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.4rem;
  word-break: break-all;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--leaf-line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand .nav-brand { font-size: 1.35rem; }
.footer-brand p {
  color: var(--ink-400);
  font-size: 0.95rem;
  max-width: 32ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-family: var(--font-display);
  font-size: 0.975rem;
  color: var(--ink-200);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--leaf); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--leaf-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom span, .footer-bottom a {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-400);
}
.footer-bottom a:hover { color: var(--leaf); }
.footer-deco {
  width: 100%;
  margin-top: 2rem;
  color: var(--leaf);
  opacity: 0.4;
}

/* ── CONFIRMATION BANNER ───────────────────────────────────── */
#confirm-banner {
  display: none;
  position: relative;
  z-index: var(--z-banner);
  background: var(--leaf);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.875rem 1.5rem;
}
#confirm-banner.visible {
  display: block;
  animation: bannerIn 0.55s var(--ease-out) both;
}
#confirm-banner .b-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
#confirm-banner .check {
  width: 18px; height: 18px;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── UPDATES INDEX TILES ───────────────────────────────────── */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--leaf-line);
}
.update-tile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--leaf-line);
  text-decoration: none;
  position: relative;
}
.update-tile > * {
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}
.update-tile::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2.75rem; height: 1px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
}
.update-tile:hover > * { transform: translateX(2.5rem); }
.update-tile:hover::before { transform: scaleX(1); }

@media (min-width: 760px) {
  .update-tile {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 3rem;
  }
}
.update-tile .ver {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink-100);
  transition: color var(--dur) var(--ease);
  font-variation-settings: 'wdth' 88;
}
.update-tile:hover .ver { color: var(--leaf); }
.update-tile .pill {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
}
.pill--live {
  background: var(--leaf-dim-bg);
  color: var(--leaf);
  border: 1px solid var(--leaf-line);
}
.pill--live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--leaf-glow);
}
.pill--next {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(245, 184, 74, 0.25);
}
.pill--next::before {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent currentColor;
}
.update-tile .date {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-400);
  letter-spacing: 0.05em;
  justify-self: start;
}

/* ── UPDATE DETAIL PAGE ────────────────────────────────────── */
.detail-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.detail-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-400);
  margin-bottom: 2rem;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.detail-hero .back:hover { color: var(--leaf); gap: 0.8rem; }
.detail-hero .back svg { width: 12px; height: 12px; }
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 880px) {
  .detail-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4rem; }
}
.detail-hero .ver-mega {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--ink-100);
  display: inline-block;
  position: relative;
  font-variation-settings: 'wdth' 86;
}
.detail-hero .ver-mega em {
  font-style: italic;
  color: var(--leaf);
}
.detail-hero .ver-prefix {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}
.detail-hero .ver-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.detail-hero h1.subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: -0.025em;
  color: var(--ink-100);
  line-height: 1.12;
  max-width: 22ch;
  font-variation-settings: 'wdth' 92;
}
.detail-hero h1.subtitle em {
  font-style: italic;
  color: var(--leaf);
}
.detail-hero .lead {
  margin-top: 1.5rem;
  color: var(--ink-300);
  font-size: 1.05rem;
  max-width: 42ch;
  line-height: 1.65;
}

/* Detail page group sections */
.feature-group {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--leaf-line);
}
.feature-group .g-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 880px) {
  .feature-group .g-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: end;
  }
}
.feature-group .g-num {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-400);
  letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.feature-group .g-num::before { content: ''; width: 16px; height: 1px; background: var(--leaf); }
.feature-group h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink-100);
  font-variation-settings: 'wdth' 92;
}
.feature-group h2 em { font-style: italic; color: var(--leaf); }
.feature-group .g-lead {
  color: var(--ink-300);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 50ch;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--leaf-line);
}
.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--leaf-line);
}
@media (min-width: 720px) {
  .feature-item {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }
}
.feature-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  color: var(--ink-100);
}
.feature-item p {
  color: var(--ink-300);
  font-size: 1.0rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* Coming soon notice for v1.2 */
.preview-notice {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(245, 184, 74, 0.25);
  background: var(--amber-bg);
  border-radius: var(--r);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--ink-200);
  font-size: 0.95rem;
  max-width: 56ch;
}
.preview-notice svg {
  width: 18px; height: 18px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}
.preview-notice strong { color: var(--amber); }

/* ── PROSE (Privacy / Terms) ───────────────────────────────── */
.prose {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-200);
  max-width: 65ch;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -0.022em;
  color: var(--ink-100);
  margin-top: 3rem;
  font-variation-settings: 'wdth' 96;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h2 .n {
  font-family: var(--font-mono);
  font-size: 0.65em;
  color: var(--leaf);
  margin-right: 0.65em;
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
}
.prose p { color: var(--ink-200); }
.prose ul { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink-100); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink-100); }
.prose a {
  color: var(--leaf);
  border-bottom: 1px solid var(--leaf-line);
  transition: border-color var(--dur) var(--ease);
}
.prose a:hover { border-bottom-color: var(--leaf); }

.policy-tldr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--leaf-line);
  border-bottom: 1px solid var(--leaf-line);
  padding: 1.75rem 0;
}
@media (min-width: 720px) { .policy-tldr { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.policy-tldr .item .meta { display: block; margin-bottom: 0.4rem; color: var(--leaf); }
.policy-tldr .item h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-100);
  margin-bottom: 0.25rem;
}
.policy-tldr .item p { font-size: 0.95rem; color: var(--ink-300); line-height: 1.55; }

/* ── REVEAL ANIMATIONS ─────────────────────────────────────── */
/* default state: visible. js-enhanced adds animation. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero entrance: pure CSS staggered */
html.js .hero-stage > * {
  opacity: 0;
  transform: translateY(14px);
  animation: stageIn 1s var(--ease-out) forwards;
}
html.js .hero-stage > *:nth-child(1) { animation-delay: 0.05s; }
html.js .hero-stage > *:nth-child(2) { animation-delay: 0.18s; }
html.js .hero-stage > *:nth-child(3) { animation-delay: 0.32s; }
html.js .hero-stage > *:nth-child(4) { animation-delay: 0.46s; }
html.js .hero-stage > *:nth-child(5) { animation-delay: 0.60s; }

html.js .hero-meta-stage > * {
  opacity: 0;
  transform: translateY(14px);
  animation: stageIn 1s var(--ease-out) forwards;
  animation-delay: 0.55s;
}
html.js .hero-meta-stage > *:nth-child(2) { animation-delay: 0.7s; }
html.js .hero-meta-stage > *:nth-child(3) { animation-delay: 0.85s; }

@keyframes stageIn {
  to { opacity: 1; transform: none; }
}

/* ── FOCUS ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal, html.js .hero-stage > *, html.js .hero-meta-stage > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-eyebrow .dot { animation: none !important; }
}

/* ── POLISH PASS ───────────────────────────────────────────── */

/* Brand mark — gentle breath on hover (the leaf "feels alive") */
.nav-brand .mark { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .nav-brand:hover .mark { transform: rotate(-4deg) scale(1.06); }
}

/* Nav link hover — left-to-right underline grow */
@media (hover: hover) {
  .nav-links a::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--leaf);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur) var(--ease-out);
  }
  .nav-links a:hover::before { transform: scaleX(1); }
  .nav-links a[aria-current="page"]::before { transform: scaleX(1); }
}

/* Primary button — soft shine on hover (one-shot, not loop) */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-15deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
@media (hover: hover) {
  .btn-primary:hover::after { left: 120%; }
}

/* Detail-page back link — subtle arrow nudge on hover (already had gap shift; this layers a transform) */
.detail-hero .back svg { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .detail-hero .back:hover svg { transform: translateX(-3px); }
}

/* Feature item — soft inset highlight on hover */
@media (hover: hover) {
  .feature-item {
    transition: background var(--dur) var(--ease);
    margin: 0 calc(var(--gutter) * -0.5);
    padding-left: calc(var(--gutter) * 0.5);
    padding-right: calc(var(--gutter) * 0.5);
    border-radius: var(--r-sm);
  }
  .feature-item:hover {
    background: rgba(63, 217, 117, 0.025);
  }
}

/* Step rows — accent the number on row hover */
@media (hover: hover) {
  .step { transition: background var(--dur) var(--ease); }
  .step .step-num { transition: color var(--dur) var(--ease), letter-spacing var(--dur) var(--ease-out); }
  .step:hover .step-num { color: var(--leaf-bright); letter-spacing: 0.08em; }
}

/* ── ADAPT PASS — pointer/hover/viewport tuning ───────────── */

/* Coarse pointers (touch) — bigger hit areas, remove hover-only flourishes */
@media (pointer: coarse) {
  .nav-links a { padding: 0.5rem 0; }
  .nav-cta { padding: 0.65rem 1.1rem 0.65rem 1.2rem; }
  .btn { padding: 1rem 1.65rem; }      /* 44px+ tap target */
  .btn-lg { padding: 1.1rem 1.85rem; }
  .faq-item summary { padding: 1.55rem 0; }
  .now-link, .meta-link { padding: 0.25rem 0; }
}

/* Very narrow viewports — tighten gutters and stack hero meta column above */
@media (max-width: 480px) {
  :root { --gutter: 1.1rem; }
  .nav-cta {
    /* Shrink to icon-equivalent on tiny phones: text "App ↗" — keep readable */
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
  .hero-promo { gap: 0.45rem; }
  .hero-promo .free, .hero-promo .android { font-size: 0.7rem; }
  .contact-card .email-display { font-size: 0.82rem; }
}

/* Landscape mobile — recover vertical room */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 4rem; padding-bottom: 3rem; }
  .nav-overlay { padding-top: 2rem; padding-bottom: 2rem; }
  .nav-overlay ul { gap: 1rem; }
  .nav-overlay a { font-size: 1.4rem; }
}

/* Wide screens — keep optical reading length on prose */
@media (min-width: 1400px) {
  .prose { max-width: 68ch; }
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  nav.nav, .nav-wrap, footer .footer-deco, .topo-corner { display: none; }
  body { background: white; color: black; }
  body::before, body::after { display: none; }
}
