/* Second Nature marketing site.
   Tokens come from the product spec's color table. Dark only, like the app.
   Radius system: pill (999px) for buttons and pills, 28px for panels, app radii inside grids.
   Glass surfaces are a web approximation of Apple's Liquid Glass (backdrop-filter + edge highlight),
   not Apple's native material. */

:root {
  --canopy: #0B1F17;
  --canopy-light: #163F2E;
  --understory: #12392A;
  --fern: #2FB86E;
  --fern-light: #5CD891;
  --fern-deep: #26A160;
  --glow: #7CE6A8;
  --sprout: #BFEBD0;
  --text: #FFFFFF;
  --text-body: rgba(255, 255, 255, 0.74);
  --text-caption: rgba(255, 255, 255, 0.64);
  --edge: rgba(255, 255, 255, 0.16);
  --hair: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --radius-panel: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canopy);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
.ico { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
a { color: var(--sprout); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 31, 23, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--text-body); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  color: var(--canopy);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, var(--fern-light) 0%, var(--fern) 55%, var(--fern-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 28px rgba(47, 184, 110, 0.3);
}
.btn-primary:hover { color: var(--canopy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 34px rgba(47, 184, 110, 0.42); }
.btn-glass {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.btn-glass:hover { color: var(--text); background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)); }
.btn-glass[aria-disabled="true"] { cursor: default; color: var(--sprout); }
.btn-glass[aria-disabled="true"]:active { transform: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (prefers-reduced-transparency: reduce) {
  .nav, .btn-glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--understory); }
}

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; color: var(--text-body); max-width: 56ch; margin: 18px 0 0; }
.section { padding: clamp(80px, 11vw, 140px) 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
  background: radial-gradient(90% 70% at 70% 0%, var(--canopy-light) 0%, rgba(11, 31, 23, 0) 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 span { color: var(--sprout); }
.hero .lede { max-width: 30ch; font-size: clamp(19px, 1.8vw, 22px); margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: left; }
}

/* Entry motion: tells the eye where to start, copy first, phone second. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Phone (live Grids screen) ---------- */
.phone {
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 390 / 690;
  border-radius: 52px;
  padding: 10px;
  background: linear-gradient(160deg, #2b3a33, #0d1813 60%, #22322b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(47, 184, 110, 0.12);
}
/* Even-width figures only where numbers line up, as in the app. */
.phone-screen, .demo, .plan .price, .tables, .num, .pill { font-variant-numeric: tabular-nums; }
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 43px; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, var(--canopy-light) 0%, var(--canopy) 60%);
  padding: 46px 14px 20px;
  display: flex; flex-direction: column; align-items: stretch;
  container-type: inline-size;
}
.seg { align-self: center; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)); border: 1px solid rgba(255,255,255,0.2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.seg span { padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); }
.seg span.on { background: var(--fern); color: var(--canopy); }
.phone-grid { margin-top: 22px; align-self: center; display: grid; gap: 2px; }
.phone-grid .ax { font-size: 9px; color: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; }
.phone-grid .ax.row { justify-content: flex-end; padding-right: 3px; }
.phone-stat { margin-top: 22px; padding: 0 6px; }
.phone-stat .big { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.phone-stat .sub { font-size: 13px; color: var(--sprout); margin-top: 3px; }
.phone-key { margin-top: 14px; padding: 0 6px; display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: rgba(255,255,255,0.72); line-height: 1.25; }
.phone-key svg { width: 16px; height: 16px; flex-shrink: 0; }

.cell { border-radius: 4px; overflow: hidden; }
.cell svg { width: 100%; height: 100%; }
.cell .a, .cell .b { transition: fill 0.25s ease; }
.cell.flash { box-shadow: 0 0 8px rgba(124, 230, 168, 0.7); }
.cell.lit { box-shadow: 0 0 7px rgba(124, 230, 168, 0.6); }

/* ---------- Square states ---------- */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(48px, 6vw, 72px); list-style: none; padding: 0; }
.state { display: flex; flex-direction: column; gap: 18px; }
.state .sq { width: min(100%, 168px); aspect-ratio: 1; }
.state .sq.lit { filter: drop-shadow(0 0 22px rgba(124, 230, 168, 0.55)); }
.state h3 { font-size: 17px; }
.state p { margin: 4px 0 0; color: var(--text-caption); font-size: 15px; line-height: 1.4; max-width: 24ch; }
.state .fact { color: var(--sprout); font-weight: 600; }
.states-arrow { color: rgba(255,255,255,0.3); }
@media (max-width: 860px) { .states { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 420px) { .state .sq { width: 120px; } }

/* ---------- Try a round ---------- */
.try { background: linear-gradient(180deg, var(--canopy) 0%, #0d2419 50%, var(--canopy) 100%); }
.try-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.try-copy ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.try-copy li { display: flex; gap: 12px; color: var(--text-body); font-size: 16px; line-height: 1.4; }
.try-copy li .ico { color: var(--fern); font-size: 20px; margin-top: 1px; }
@media (max-width: 900px) { .try-grid { grid-template-columns: minmax(0, 1fr); } }

.demo {
  position: relative;
  border-radius: 36px;
  padding: 22px clamp(16px, 3vw, 28px) 24px;
  background: radial-gradient(120% 70% at 50% 0%, var(--canopy-light) 0%, var(--canopy) 70%);
  border: 1px solid var(--edge);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  max-width: 460px; width: 100%; justify-self: center;
  min-height: 560px;
  display: flex; flex-direction: column;
}
.demo-top { display: flex; align-items: center; gap: 14px; height: 40px; }
.demo-prog { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); overflow: hidden; }
.demo-prog i { display: block; height: 100%; width: 100%; background: var(--sprout); transform-origin: left; transform: scaleX(0); transition: transform 0.4s var(--ease-out); }
.pill { height: 34px; min-width: 58px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 15px; font-weight: 600; background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)); border: 1px solid rgba(255,255,255,0.2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); transition: transform 0.2s var(--ease-out); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--fern); }
.pill.pop { transform: scale(1.08); }

.demo-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 18px; min-height: 240px; }
.demo-helper { min-height: 28px; font-size: 22px; font-weight: 600; color: var(--sprout); opacity: 0.85; letter-spacing: -0.01em; }
.demo-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.demo-fact { font-size: clamp(44px, 9vw, 54px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; white-space: pre; }
.demo-fact .lead { color: var(--sprout); }
.demo-fact.quiet { color: rgba(255,255,255,0.72); }
.slot {
  position: relative;
  min-width: 70px; height: 74px; padding: 0 12px; border-radius: 16px;
  border: 2.5px solid var(--fern); background: rgba(47,184,110,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 700; letter-spacing: -0.02em;
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.slot.ok { background: rgba(47,184,110,0.2); box-shadow: 0 0 0 6px rgba(47,184,110,0.16), 0 0 30px rgba(47,184,110,0.45); color: var(--fern); }
.slot.quiet { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.slot .ghost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.24); }
.slot .caret { width: 3px; height: 38px; border-radius: 2px; background: var(--fern); }
.slot.quiet .caret { background: rgba(255,255,255,0.7); }
@media (prefers-reduced-motion: no-preference) {
  .slot .caret { animation: blink 1.1s steps(2, start) infinite; }
  @keyframes blink { to { visibility: hidden; } }
  .slot.shake { animation: shake 0.3s ease; }
  @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
}
.demo-under { margin-top: 26px; width: min(100%, 300px); min-height: 30px; display: flex; align-items: center; justify-content: center; }
.bar { width: 100%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--sprout); transform-origin: left; }
.bar.done i { background: var(--fern-light); }
.demo-msg { font-size: 18px; font-weight: 600; color: var(--sprout); text-align: center; letter-spacing: -0.01em; }
.demo-time { height: 28px; margin-top: 4px; font-size: 22px; font-weight: 700; color: var(--sprout); }

.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; transition: opacity 0.2s; }
.keypad.dim { opacity: 0.35; }
.key {
  height: 56px; border-radius: 18px; padding: 0;
  font: inherit; font-size: 26px; font-weight: 500; color: var(--text); cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.key:active { background: rgba(255,255,255,0.22); }
.key.del { background: transparent; border-color: transparent; box-shadow: none; display: flex; align-items: center; justify-content: center; }
.key.del .ico { font-size: 26px; color: rgba(255,255,255,0.8); }
.key-blank { visibility: hidden; }

.demo-cover, .demo-end {
  position: absolute; inset: 0; border-radius: 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px; gap: 14px;
  background: rgba(8, 22, 16, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.demo-cover[hidden], .demo-end[hidden] { display: none; }
.demo-cover p, .demo-end p { margin: 0; color: var(--text-body); font-size: 16px; max-width: 30ch; }
.demo-end .score { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); max-width: 16ch; }
.demo-end .row-cells { display: flex; gap: 8px; margin: 6px 0 4px; }
.demo-end .row-cells .cell { width: 34px; height: 34px; border-radius: 8px; }
.kbd-hint { font-size: 13px; color: var(--text-caption); }
@media (hover: none) { .kbd-hint { display: none; } }

/* ---------- Method bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.tile { border-radius: var(--radius-panel); padding: 28px; background: var(--panel); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.tile p { margin: 0; color: var(--text-body); font-size: 16px; line-height: 1.45; }
.tile .glyph { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); margin-bottom: auto; color: var(--fern); font-size: 22px; }
.tile .glyph + h3 { margin-top: 28px; }
.tile-big { grid-column: span 2; grid-row: span 2; background: radial-gradient(110% 90% at 0% 100%, rgba(47,184,110,0.28) 0%, rgba(47,184,110,0) 60%), linear-gradient(160deg, #15402f, #0f2d21); border-color: rgba(124,230,168,0.18); justify-content: flex-end; padding: clamp(28px, 3.4vw, 44px); }
.tile-big .num { font-size: clamp(96px, 14vw, 168px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; color: var(--text); }
.tile-big .num small { font-size: 0.42em; letter-spacing: -0.02em; color: var(--sprout); margin-left: 6px; }
.tile-big h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 28px; }
.tile-big .bigbar { position: relative; margin-top: 22px; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.12); overflow: hidden; max-width: 420px; }
.tile-big .bigbar i { position: absolute; inset: 0; background: var(--sprout); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .tile-big.run .bigbar i { animation: drain 4.2s linear infinite; }
  @keyframes drain {
    0% { transform: scaleX(1); background: var(--sprout); }
    28% { transform: scaleX(0.6); background: var(--sprout); }
    29%, 70% { transform: scaleX(0.6); background: var(--fern-light); }
    71%, 100% { transform: scaleX(1); background: var(--sprout); }
  }
}
@media (prefers-reduced-motion: reduce) { .tile-big .bigbar i { transform: scaleX(0.6); background: var(--fern-light); } }
.tile-wide { grid-column: span 4; flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 56px); min-height: 0; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(47,184,110,0.1)); }
.tile-wide .pair { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 4px; }
.tile-wide .pair .helper { font-size: 22px; font-weight: 600; color: var(--sprout); opacity: 0.85; }
.tile-wide .pair .q { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.tile-wide .pair .q span { color: var(--sprout); }
.tile-wide h3 { font-size: 22px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-big { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-big, .tile-wide { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: flex-start; }
  .tile { min-height: 0; }
  .tile .glyph + h3 { margin-top: 20px; }
}

/* ---------- Left out ---------- */
.leftout { text-align: center; }
.leftout h2 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; max-width: 17ch; margin: 0 auto; }
.leftout h2 s { text-decoration-thickness: 3px; text-decoration-color: rgba(255,255,255,0.45); color: rgba(255,255,255,0.5); }
.leftout .lede { margin: 26px auto 0; }
.label-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(191,235,208,0.4); color: var(--sprout); font-size: 15px; font-weight: 600; }
.label-chip .ico { font-size: 18px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); align-items: stretch; }
.plan { border-radius: var(--radius-panel); padding: clamp(28px, 3.4vw, 44px); background: var(--panel); border: 1px solid var(--hair); display: flex; flex-direction: column; }
.plan-paid { background: linear-gradient(170deg, var(--understory), #0e2a1f); border-color: rgba(124,230,168,0.24); box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.plan .name { font-size: 17px; font-weight: 600; color: var(--sprout); }
.plan .price { font-size: clamp(48px, 6vw, 68px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin-top: 14px; }
.plan .price small { font-size: 0.32em; font-weight: 600; letter-spacing: -0.01em; color: var(--text-body); margin-left: 8px; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; color: var(--text-body); font-size: 16px; line-height: 1.4; }
.plan li .ico { color: var(--fern); font-size: 20px; margin-top: 1px; flex-shrink: 0; }
.plan .tables { display: grid; grid-template-columns: repeat(6, minmax(0, 44px)); gap: 6px; margin-top: 24px; }
.plan .tables span { height: 40px; padding: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.plan .tables .free { background: var(--fern); color: var(--canopy); }
.plan .tables .locked { border: 1.5px dashed rgba(255,255,255,0.3); color: var(--text-body); }
.plan .tables .opened { background: rgba(47,184,110,0.18); border: 1px solid rgba(124,230,168,0.45); color: var(--text); }
.plan .cta { margin-top: auto; padding-top: 32px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { font-size: 20px; color: var(--sprout); transition: transform 0.3s var(--ease-out); flex-shrink: 0; }
.faq-list details[open] summary .ico { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: var(--text-body); max-width: 60ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing ---------- */
.closing { padding: clamp(80px, 10vw, 128px) 0; background: radial-gradient(70% 90% at 50% 100%, rgba(47,184,110,0.22) 0%, rgba(11,31,23,0) 70%); text-align: center; }
.closing .icon-lg { width: 96px; height: 96px; margin: 0 auto 32px; filter: drop-shadow(0 18px 40px rgba(47,184,110,0.3)); }
.closing h2 { font-size: clamp(38px, 5.6vw, 68px); max-width: 15ch; margin: 0 auto; }
.closing p { color: var(--text-body); margin: 18px auto 0; font-size: 18px; }
.closing .btn { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); padding: 36px 0 48px; color: var(--text-caption); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer a { color: var(--text-body); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .legal { flex-basis: 100%; font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ---------- Scroll reveal (IntersectionObserver adds .in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
.doc .updated { margin-top: 14px; color: var(--text-caption); font-size: 15px; }
.doc h2 { font-size: 24px; letter-spacing: -0.015em; margin-top: 48px; }
.doc p, .doc li { color: var(--text-body); }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc .summary { margin-top: 32px; padding: 24px 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--hair); color: var(--text); font-size: 18px; }
.doc .summary p { color: var(--text); margin: 0; }

/* ---------- Research touches ---------- */
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sprout); }
.cite { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--sprout); text-decoration: none; letter-spacing: 0.01em; }
.cite::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.6; }
.cite:hover { color: var(--text); text-decoration: underline; }
.cite-center { justify-content: center; margin-top: 18px; }
.leftout .cite-center { display: flex; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 600; color: var(--sprout); text-decoration: underline; text-decoration-color: rgba(191,235,208,0.4); text-underline-offset: 4px; }
.text-link:hover { color: var(--text); text-decoration-color: currentColor; }
.text-link::after { content: " \2192"; white-space: pre; }

/* ---------- Research page ---------- */
.findings { margin-top: 48px; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.finding { padding: 36px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.finding h2 { margin-top: 0; }
.finding .does { margin: 6px 0 0; padding: 16px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--hair); color: var(--text); font-size: 16px; }
.finding .does strong { color: var(--sprout); font-weight: 600; }
.finding .source { margin: 4px 0 0; font-size: 14px; color: var(--text-caption); }
.finding .source a { color: var(--sprout); }
.refs { margin-top: 48px; }
.refs ol { padding-left: 22px; }
.refs li { font-size: 15px; line-height: 1.5; margin: 12px 0; }
.refs li em { font-style: italic; }
.refs a { word-break: break-word; }
