/* Equacross site. Brand tokens match play/index.html. */
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url(fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-display: swap; src: url(fonts/nunito-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 900; font-display: swap; src: url(fonts/nunito-sans-latin-900-normal.woff2) format("woff2"); }

:root {
  /* palette (brand guide) */
  --forest: #193B2C; --coral: #C83C30; --sage: #E2EBD6; --cream: #FFF8E8; --blue: #91B9D8;
  /* derived */
  --forest-ink: #193B2C; --coral-press: #A93127; --coral-soft: #F6D2CE; --sage-deep: #C9D9B8; --sage-line: #D3E0C4;
  --bg: #FBF9F3; --card: #FFFFFF; --line: #E3E8DA; --ink: #193B2C; --muted: #52665A;
  --tile: #FFF8E8; --tile-edge: #E2D3AE; --tile-ink: #193B2C; --tile-new: #FFF1C7;
  --ok: #2E7D4F;
  --f-head: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px;
  --sh-card: 0 1px 0 rgba(25, 59, 44, .04), 0 10px 30px -18px rgba(25, 59, 44, .28);
  --sh-tile: 0 .1em 0 var(--tile-edge), 0 .18em .32em rgba(25, 59, 44, .22);
  --max: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --forest-ink: #E6EFDC; --coral: #E8584B; --coral-press: #C83C30; --coral-soft: #4A2620; --sage: #16251C; --sage-deep: #24382B; --sage-line: #24382B;
    --bg: #0E1C15; --card: #142219; --line: #26392D; --ink: #E6EFDC; --muted: #9DB09F;
    --tile: #FFF8E8; --tile-edge: #C9B88B; --tile-ink: #193B2C; --tile-new: #FFE9A6;
    --ok: #6CC690;
    --sh-card: 0 10px 30px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--coral) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* logo light / dark */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand .brand-mark { height: 34px; }
.site-foot .brand img { height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sage); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .brand img { height: 28px; } .brand .brand-mark { height: 28px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 1rem var(--f-body); text-decoration: none; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s, filter .12s; box-shadow: 0 2px 0 var(--line); }
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 var(--line); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 3px 0 var(--coral-press); }
.btn.primary:hover { filter: brightness(1.05); color: #fff; }
.btn.primary:active { box-shadow: 0 0 0 var(--coral-press); transform: translateY(3px); }
.btn.big { font-size: 1.08rem; padding: 15px 26px; border-radius: 14px; }
.nav .btn { padding: 8px 16px; font-size: .95rem; color: #fff; margin-left: 6px; }
.nav .btn:hover { background: var(--coral); color: #fff; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* type */
/* type scale: hero 40-68px, section 30-42px, card 18-20px, body 17px */
h1, h2, h3 { font-family: var(--f-head); color: var(--forest-ink); text-wrap: balance; margin: 0; line-height: 1.08; }
h1 { font-weight: 900; font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-weight: 900; font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 34ch; }
.eyebrow { font: 800 .78rem var(--f-body); text-transform: uppercase; letter-spacing: .14em; color: var(--coral); }
.num { font-family: var(--f-body); font-weight: 900; font-variant-numeric: tabular-nums; }
.op { color: var(--coral); }

/* tiles */
.tiles { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: .2em; }
.t { width: 2.3em; height: 2.4em; border-radius: .34em; background: linear-gradient(180deg, #FFFCF3, var(--tile)); color: var(--tile-ink); box-shadow: var(--sh-tile), inset 0 0 0 1px rgba(25, 59, 44, .06); display: grid; place-items: center; font: 900 1em var(--f-body); position: relative; }
.t small { position: absolute; right: .3em; bottom: .2em; font-size: .36em; opacity: .6; font-weight: 800; }
.t.gap { background: transparent; box-shadow: inset 0 0 0 2px var(--sage-deep); }
.t.new { background: linear-gradient(180deg, #FFF8DA, var(--tile-new)); box-shadow: var(--sh-tile), 0 0 0 2px var(--coral); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background-color: var(--sage); background-image: linear-gradient(var(--sage-line) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--sage-line) 1.5px, transparent 1.5px); background-size: 34px 34px; background-position: -1px -1px; }
@media (prefers-color-scheme: light) { .hero { background-color: #E6EEDB; background-image: linear-gradient(rgba(25,59,44,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(25,59,44,.055) 1px, transparent 1px); background-size: 30px 30px; } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(44px, 8vw, 96px); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero-art { justify-self: center; width: min(88%, 340px); } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero .lede { max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 4px; }

/* hero illustration: a flat sage board with three big raised tiles stepping down it */
.hero-art { margin: 0; position: relative; justify-self: end; width: min(100%, 480px); aspect-ratio: 1.08 / 1; }
.hero-board { position: absolute; left: 13%; right: 0; top: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 2px; padding: 0; background: #D3E2C6; border-radius: 26px; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -36px rgba(25, 59, 44, .5); }
.hero-board i { background: #E9F0E0; }
.hero-board i.cm { background: #C7DCB8; }
.hero-board i.cb { background: #9FC3E0; }
.hero-board i.cc { background: #EB8E80; }
@media (prefers-color-scheme: dark) { .hero-board { background: #1E3227; } .hero-board i { background: #284034; } .hero-board i.cm { background: #2F4A3B; } .hero-board i.cb { background: #4E7593; } .hero-board i.cc { background: #9A4A40; } }
.ht { position: absolute; width: 33%; aspect-ratio: 1; border-radius: 17%; display: grid; place-items: center; font: 900 clamp(4rem, 11vw, 6.6rem)/1 var(--f-body); color: var(--forest); letter-spacing: 0;
  background: linear-gradient(160deg, #FFFEF8 0%, #FFF8E8 55%, #F6ECD3 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 -3px 0 rgba(201, 182, 135, .35), 0 9px 0 #D9C79A, 0 10px 0 #C9B587, 0 24px 30px -10px rgba(25, 59, 44, .45);
  animation: settle .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.ht1 { left: 3.5%; top: 18.5%; rotate: -11deg; }
.ht2 { left: 33.5%; top: 39%; rotate: 7deg; animation-delay: .07s; }
.ht3 { left: 63%; top: 52%; rotate: -5deg; animation-delay: .14s; }
@keyframes settle { from { opacity: 0; translate: 0 -24px; } to { opacity: 1; translate: 0 0; } }
.hero-art .spark { position: absolute; width: 21%; left: 45%; top: 11%; rotate: 2deg; z-index: 1; }
@media (max-width: 520px) { .ht { font-size: clamp(3.4rem, 17vw, 5.2rem); } }

/* feature cards */
.features { background: var(--bg); }
.feature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: clamp(32px, 5vw, 48px); }
@media (max-width: 900px) { .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .feature-row { gap: 10px; } .feature { padding: 16px; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh-card); min-width: 0; }
.feature svg { width: 44px; height: 44px; margin-bottom: 6px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* demo */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.demo .tiles { font-size: clamp(18px, 4.6vw, 28px); min-height: 2.7em; }
.demo .t { transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), background .3s; }
.demo .t.drop { animation: drop .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes drop { from { transform: translateY(-1.2em) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-eq { font: 900 clamp(1.4rem, 4vw, 2rem) var(--f-body); min-height: 1.4em; display: flex; flex-wrap: wrap; gap: .3em; align-items: baseline; }
.demo-eq .v { color: var(--ok); font-size: .62em; font-weight: 800; }
.demo-note { color: var(--muted); font-size: .98rem; min-height: 3.2em; }
.demo-steps { display: flex; gap: 6px; }
.demo-steps button { width: 28px; height: 6px; border-radius: 3px; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.demo-steps button[aria-current="true"] { background: var(--coral); }

/* sections */
.section { padding-block: clamp(52px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 5vw, 44px); max-width: 680px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .modes { grid-template-columns: minmax(0, 1fr); } }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; box-shadow: var(--sh-card); }
.mode-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mode-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sage); }
.mode-icon svg { width: 34px; height: 34px; }
.mi-trophy, .mi-calendar { background: #FBE3DF; }
.mi-people { background: #E4EEF7; }
@media (prefers-color-scheme: dark) { .mode-icon, .mi-trophy, .mi-calendar, .mi-people { background: #1D3026; } }
.mode p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.mode .tag { align-self: flex-start; font: 800 .7rem var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: #A93127; }
@media (prefers-color-scheme: dark) { .mode .tag { color: #FF9C90; } }
@media (max-width: 420px) { .mode { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; gap: 12px; } .mode-icon { width: 44px; height: 44px; } .mode-icon svg { width: 28px; height: 28px; } }
@media (prefers-color-scheme: dark) { .mode .tag { color: #FFB3A9; } }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pill { font: 700 .82rem var(--f-body); padding: 4px 10px; border-radius: 999px; background: var(--sage); color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .copy { display: flex; flex-direction: column; gap: 16px; }
.split .copy p { color: var(--muted); font-size: 1.08rem; }
.result { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; font-weight: 800; display: flex; flex-direction: column; gap: 8px; max-width: 360px; box-shadow: var(--sh-card); }
.result .sq { font-size: 1.6rem; letter-spacing: .1em; }
.result .meta { color: var(--muted); font-size: .92rem; font-weight: 600; }

.bench { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh-card); }
.bench .screen { border-radius: 12px; padding: 12px 10px 14px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 18px; background: var(--sage); }
.bench .t.dark { background: var(--forest); color: var(--cream); box-shadow: 0 .1em 0 #0B1F16, 0 .18em .32em rgba(0,0,0,.25); }
.bench .t.mine { background: linear-gradient(180deg, #FFF8DA, var(--tile-new)); box-shadow: var(--sh-tile), 0 0 0 2px var(--coral); }
.bench .sym { font: 900 1.2rem var(--f-body); color: var(--coral); padding: 0 2px; }
.bench .check { color: var(--ok); font-weight: 700; }

.scoring { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .scoring { grid-template-columns: minmax(0, 1fr); } }
.score-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sh-card); border-top: 4px solid var(--coral); }
.score-card p { color: var(--muted); }

.cta-band { background: var(--forest); color: var(--cream); }
.cta-band .wrap { padding-block: clamp(48px, 8vw, 80px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { max-width: 18ch; color: var(--cream); }
.cta-band .btn { background: var(--coral); color: #fff; border-color: var(--coral); box-shadow: 0 3px 0 #7E241C; font-size: 1.08rem; padding: 15px 26px; }
.cta-band .btn:hover { color: #fff; filter: brightness(1.06); }
@media (prefers-color-scheme: dark) { .cta-band { background: #122A1F; border-block: 1px solid var(--line); } }

/* docs pages */
.doc-hero { border-bottom: 1px solid var(--line); background-color: var(--sage); background-image: linear-gradient(rgba(255,255,255,.6) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(255,255,255,.6) 1.5px, transparent 1.5px); background-size: 34px 34px; }
@media (prefers-color-scheme: dark) { .doc-hero { background-image: none; } }
.doc-hero .wrap { padding-block: clamp(40px, 7vw, 72px); display: flex; flex-direction: column; gap: 12px; }
.doc-hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: clamp(36px, 6vw, 64px); }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; } .toc { position: static !important; } }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .94rem; }
.toc a { text-decoration: none; color: var(--muted); padding: 5px 0; font-weight: 600; }
.toc a:hover { color: var(--coral); }
.toc strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 28px; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 10px; scroll-margin-top: 88px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose .note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 12px; padding: 14px 16px; }
.prose .example { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 20px; box-shadow: var(--sh-card); }
.prose .example .eqline { font: 900 1rem var(--f-body); }
.prose .example p { font-size: 1rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--card); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.sw { display: inline-grid; place-items: center; width: 34px; height: 24px; border-radius: 5px; font: 800 .72rem var(--f-body); color: #193B2C; }
.updated { color: var(--muted); font-size: .95rem; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 1.2rem var(--f-body); color: var(--coral); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 16px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-card); }
.mail { font: 900 clamp(1.1rem, 3vw, 1.4rem) var(--f-body); overflow-wrap: anywhere; }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--sage); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-foot .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--muted); font-weight: 700; }
.foot-links a:hover { color: var(--coral); }
.fine { color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
