/* Second Nature sites: the series home at / and Math Facts at /math.
   Tokens come from the product spec's color table. Dark only, like the app; the brand kit found
   the green grid and the glow lose contrast on a pale ground.
   Radius system: pill (999px) for buttons and chips, 28px for panels, the app's own radii inside phones.
   Glass surfaces approximate Apple's Liquid Glass with backdrop-filter and an edge highlight;
   they are 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: 72px; }
@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; }
.num, .tables, .demo, .price, .eq { font-variant-numeric: tabular-nums; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 31, 23, 0.74);
  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: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.brand .sub { color: var(--text-caption); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--edge); }
.brand:hover .sub { color: var(--text-body); }
.nav-links { display: flex; gap: 2px; margin: 0 0 0 auto; list-style: none; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; 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); }
.nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }
@media (max-width: 480px) { .brand .sub { 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; }
@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(34px, 4.6vw, 56px); line-height: 1.04; }
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: 52ch; margin: 18px 0 0; }
.section { padding: clamp(80px, 11vw, 136px) 0; }
.eyebrow { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sprout); }
.cite { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; 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; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; 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; }

/* ---------- Phone frame around a real app screen ---------- */
.phone {
  width: min(100%, 320px);
  aspect-ratio: 440 / 956;
  border-radius: 54px;
  padding: 9px;
  background: linear-gradient(160deg, #2b3a33, #0b1511 55%, #22322b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(47, 184, 110, 0.12);
  flex-shrink: 0;
}
.phone img { width: 100%; height: 100%; border-radius: 45px; object-fit: cover; background: var(--canopy); }

/* Entry motion: copy first, phone second, so the eye starts on the headline. */
@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; } }
  .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; }
}

/* ---------- Hero (both sites) ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
  background: radial-gradient(90% 70% at 72% 0%, var(--canopy-light) 0%, rgba(11, 31, 23, 0) 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; }
.hero .lede { max-width: 34ch; font-size: clamp(19px, 1.8vw, 22px); margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .phone { justify-self: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero .phone { width: min(78%, 300px); } }

/* ---------- Series home ---------- */
.series-hero { text-align: left; padding-bottom: clamp(48px, 6vw, 72px); }
.series-hero h1 { max-width: 15ch; font-size: clamp(48px, 7vw, 96px); }
.series-hero .lede { max-width: 40ch; }

.app-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.app-feature .stage { position: relative; display: flex; justify-content: center; padding: clamp(28px, 4vw, 56px) 0; border-radius: var(--radius-panel); background: radial-gradient(80% 70% at 50% 100%, rgba(47,184,110,0.26) 0%, rgba(47,184,110,0) 70%), linear-gradient(170deg, #12352a, #0c241b); border: 1px solid rgba(124,230,168,0.16); overflow: hidden; }
.app-feature .stage .phone { width: min(70%, 290px); }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id img { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 10px 30px rgba(47,184,110,0.25); }
.app-id .t { font-size: 15px; color: var(--text-caption); }
.app-id .n { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.app-feature h2 { margin-top: 28px; }
.app-feature .facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.app-feature .facts li { display: flex; gap: 12px; color: var(--text-body); font-size: 16px; line-height: 1.4; }
.app-feature .facts .ico { color: var(--fern); font-size: 20px; margin-top: 1px; }
.app-feature .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 900px) { .app-feature { grid-template-columns: minmax(0, 1fr); } .app-feature .stage { order: 2; } }

.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.method > div { padding: 30px 0 34px; border-top: 1px solid var(--hair); }
.method .k { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.method p { margin: 12px 0 0; color: var(--text-body); max-width: 44ch; }
@media (max-width: 760px) { .method { grid-template-columns: minmax(0, 1fr); } }

.statement { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); }
.statement h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; max-width: 16ch; }
.statement .lede { margin-top: 24px; }

/* ---------- Math: 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.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; color: var(--text-body); font-size: 16px; line-height: 1.4; }
.ticks 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; height: 40px; }
.dots { flex: 1; display: flex; gap: 6px; justify-content: center; }
.dots i { width: 12px; height: 12px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.2); transition: background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out); }
.dots i.cur { box-shadow: inset 0 0 0 1.5px var(--sprout); }
.dots i.ok { background: var(--fern); box-shadow: 0 0 8px rgba(47,184,110,0.6); transform: scale(1.08); }
.dots i.muted { background: rgba(255,255,255,0.24); box-shadow: none; }

.demo-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 18px; min-height: 240px; }
.demo-row { display: flex; align-items: center; gap: 12px; }
.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); }
@media (prefers-reduced-motion: no-preference) {
  .demo-row.morph { animation: morph 0.6s var(--ease-out); }
  @keyframes morph { 0% { opacity: 0.2; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
}
.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; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.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-time { min-height: 22px; font-size: 17px; font-weight: 600; color: var(--text-body); }
.demo-msg { font-size: 18px; font-weight: 600; color: var(--sprout); text-align: center; letter-spacing: -0.01em; }

.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.8);
  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-cover .big, .demo-end .score { font-size: 28px; 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; }
.kbd-hint { font-size: 13px; color: var(--text-caption); }
@media (hover: none) { .kbd-hint { display: none; } }

/* ---------- Math: it teaches when they struggle ---------- */
.teach { text-align: center; }
.teach h2, .teach .lede { margin-left: auto; margin-right: auto; }
.teach h2 { max-width: 14ch; }
.pair-phones { position: relative; display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: clamp(48px, 6vw, 72px); }
.pair-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pair-phones figure:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.pair-phones .phone { width: min(38vw, 290px); }
.pair-phones figcaption { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pair-phones figcaption span { display: block; font-weight: 400; font-size: 15px; color: var(--text-caption); margin-top: 2px; }
@media (max-width: 560px) { .pair-phones { gap: 14px; } .pair-phones .phone { width: 44vw; border-radius: 36px; padding: 6px; } .pair-phones .phone img { border-radius: 30px; } .pair-phones figcaption { font-size: 15px; } }

/* ---------- Math: partner facts band ---------- */
.partners { padding: clamp(72px, 9vw, 112px) 0; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(47,184,110,0.1)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.partners-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.eq-stage { position: relative; height: 150px; border-radius: var(--radius-panel); background: rgba(11,31,23,0.6); border: 1px solid var(--edge); overflow: hidden; }
.eq { position: absolute; inset: 0; font-size: clamp(44px, 6vw, 68px); font-weight: 700; letter-spacing: -0.02em; }
.eq .tok { position: absolute; top: 50%; left: 0; transform: translate(0, -50%); transition: transform 0.6s var(--ease-out), opacity 0.3s, color 0.3s; white-space: nowrap; }
.eq .tok.lead { color: var(--sprout); }
.eq .tok.ans { color: var(--fern); }
.eq .box { position: absolute; top: 50%; width: 1.5em; height: 1.3em; transform: translateY(-50%); border-radius: 14px; border: 2.5px solid var(--fern); background: rgba(47,184,110,0.12); opacity: 0; transition: opacity 0.3s; }
.eq .box.on { opacity: 1; }
.eq-static { display: none; font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.eq-static .lead { color: var(--sprout); }
@media (prefers-reduced-motion: reduce) { .eq-stage { display: none; } .eq-static { display: block; } }
@media (max-width: 860px) { .partners-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Math: proof ---------- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.proof-grid .phone { justify-self: center; }
.states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: clamp(32px, 4vw, 48px) 0 0; list-style: none; padding: 0; }
.state { display: flex; gap: 16px; align-items: flex-start; }
.state .sq { width: 56px; height: 56px; flex-shrink: 0; }
.state .sq.lit { filter: drop-shadow(0 0 12px 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; }
.state .fact { color: var(--sprout); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: minmax(0, 1fr); } .proof-grid .phone { order: 2; width: min(78%, 300px); } }
@media (max-width: 480px) { .states { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Math: research bento ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; 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: 230px; }
.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 .cite { margin-top: auto; padding-top: 12px; }
.tile-shot { grid-row: span 2; padding: 0; overflow: hidden; position: relative; background: radial-gradient(90% 60% at 50% 100%, rgba(47,184,110,0.3), rgba(47,184,110,0) 70%), linear-gradient(170deg, #15402f, #0f2d21); border-color: rgba(124,230,168,0.18); }
.tile-shot .crop { height: 360px; overflow: hidden; display: flex; justify-content: center; padding: 32px 20px 0; }
.tile-shot .crop img { width: min(100%, 300px); height: auto; align-self: flex-start; border-radius: 34px 34px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 30px 60px rgba(0,0,0,0.45); }
.tile-shot .copy { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 960px) { .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tile-shot { grid-row: auto; grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile-shot { grid-column: auto; } .tile { min-height: 0; } .tile .glyph + h3 { margin-top: 20px; } }

/* ---------- Math: 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; 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; }
.leftout { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.leftout p { margin: 0; color: var(--text-body); max-width: 62ch; }
.label-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(191,235,208,0.4); color: var(--sprout); font-size: 15px; font-weight: 600; white-space: nowrap; }
.label-chip .ico { font-size: 18px; }
@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); }
.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; border-radius: 22px; filter: drop-shadow(0 18px 40px rgba(47,184,110,0.3)); }
.closing h2 { font-size: clamp(38px, 5.6vw, 68px); max-width: 18ch; margin: 0 auto; }
.closing p { color: var(--text-body); margin: 18px auto 0; font-size: 18px; max-width: 46ch; }
.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; flex-wrap: wrap; gap: 8px 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); margin: 0; }

/* ---------- Document pages (research, 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; line-height: 1.2; }
.doc p, .doc li { color: var(--text-body); }
.doc .summary { margin-top: 32px; padding: 24px 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--hair); font-size: 18px; }
.doc .summary p { color: var(--text); margin: 0; }
.findings { margin-top: 48px; border-top: 1px solid var(--hair); }
.finding { padding: 36px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 10px; }
.finding h2 { margin-top: 0; }
.finding p { margin: 0; }
.finding .does { margin-top: 6px; 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 { font-size: 14px; color: var(--text-caption); }
.refs { margin-top: 48px; }
.refs ol { padding-left: 22px; }
.refs li { font-size: 15px; line-height: 1.5; margin: 12px 0; }
.refs a { word-break: break-word; }
