/* synapseboardreview.com — one stylesheet for every page.
   Colours come from the apps' theme (BoardReviewKit Palette): brand green, lilac
   accent, iOS grouped surfaces. System fonts only; no scripts; no third-party origins.
   Light and dark follow the device (prefers-color-scheme); there is no toggle. */

:root {
  color-scheme: light dark;
  --brand: #0B6E5C;          /* brand green, 6.2:1 on --ground */
  --brand-fill: #0B6E5C;     /* button fill under white text (app's brandFill) */
  --brand-ink: #0B6E5C;      /* brand used as text */
  --brand-soft: #D8EFE7;
  --accent: #7558AD;         /* lilac, 5.6:1 on white */
  --accent-soft: #E6DEF5;
  --spark: #D8C8F6;
  --ground: #ECF1EF;         /* iOS grouped ground warmed with brand (groundTint) */
  --card: #FFFFFF;
  --card-tint: #F3F7F5;
  --text: #111113;
  --muted: #5E5E66;          /* 5.9:1 on --ground */
  --faint: #6E6E73;
  --rule: #D8D8DC;
  --link: #0B6E5C;
  --focus: #7558AD;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(11,110,92,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4DB396;
    --brand-fill: #177A64;     /* 5.4:1 under white text; #4DB396 would be 2.6:1 */
    --brand-ink: #4DB396;
    --brand-soft: #143E35;
    --accent: #B39DE3;
    --accent-soft: #2E2547;
    --spark: #D8C8F6;
    --ground: #1F2624;
    --card: #2C2C2E;
    --card-tint: #2E3432;
    --text: #FFFFFF;
    --muted: #A9A9B3;
    --faint: #8E8E93;
    --rule: #3A3A3C;
    --link: #4DB396;
    --focus: #B39DE3;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.wrap { max-width: 60rem; margin-inline: auto; padding-inline: 1rem; }
.narrow { max-width: 42rem; }

.sr-only { position: absolute; left: -999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--card); color: var(--link); padding: .4rem .7rem; border: 1px solid var(--brand); border-radius: 6px; }
.skip:focus { left: 1rem; z-index: 10; }

a { color: var(--link); text-decoration: underline; text-underline-offset: .14em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 2em; }
h3 { font-size: 1.12rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
img { max-width: 100%; height: auto; display: block; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--brand-ink); margin: 0 0 .5rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* Header */
.site-header { padding: .9rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark:hover { color: var(--brand-ink); }
nav.site ul { list-style: none; padding: 0; margin: 0; display: flex; gap: .2rem 1.1rem; flex-wrap: wrap; font-size: .95rem; }
nav.site li { margin: 0; }
nav.site a { text-decoration: none; color: var(--muted); padding: .35rem 0; display: inline-block; }
nav.site a:hover { color: var(--brand-ink); text-decoration: underline; }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Footer */
.site-footer { margin-top: 4rem; padding: 1.6rem 0 2.5rem; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }
.site-footer p { margin: 0 0 .5em; }
.site-footer nav a { margin-right: 1rem; }

/* Hero */
.hero { padding: 2.5rem 0 1.5rem; }
.hero.app { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 46rem) { .hero.app { grid-template-columns: 1.3fr 1fr; } }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.hero .screenshot { width: min(100%, 300px); margin-inline: auto; border-radius: 28px; box-shadow: var(--shadow); }
.hero .tagline { font-size: clamp(1.2rem, 1rem + 1vw, 1.45rem); color: var(--muted); max-width: 36rem; }
.badge { display: inline-block; margin: 1rem 0 .4rem; line-height: 0; }
.badge img { width: 160px; height: 54px; }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* Cards and grids */
.card { background: var(--card); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.app-card { display: grid; gap: 1.2rem; grid-template-columns: 72px 1fr; align-items: start; }
.app-card img.icon { width: 72px; height: 72px; border-radius: 16px; }
.app-card .name { font-size: 1.3rem; margin: 0 0 .2em; }
.app-card .badge { margin: .6rem 0 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin: 1rem 0 0; padding: 0; list-style: none; }
.grid li { margin: 0; }
.tile { background: var(--card-tint); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.1rem; height: 100%; }
.tile h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.tile p { margin: .4rem 0 0; font-size: .95rem; color: var(--muted); }

/* Facts strip */
.facts { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); list-style: none; padding: 0; margin: 1rem 0 .5rem; }
.facts li { background: var(--card); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow); margin: 0; }
.facts .n { display: block; font-size: 1.7rem; font-weight: 700; color: var(--brand-ink); line-height: 1.1; }
.facts .l { font-size: .9rem; color: var(--muted); }
.asof { font-size: .88rem; color: var(--faint); }

/* How it works panels */
.panels { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.panels li { margin: 0; background: var(--card); border-radius: 18px; padding: 1.1rem; box-shadow: var(--shadow); }
.panels img { border-radius: 18px; margin-bottom: .8rem; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; background: var(--card-tint); }
.panels h3 { margin: 0 0 .3em; }
.panels p { margin: 0; font-size: .97rem; color: var(--muted); }
.ipad-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1rem; }
.ipad-row img { border-radius: 18px; box-shadow: var(--shadow); }

/* Mailing-list form (home) */
form.join .row { display: flex; gap: .6rem; flex-wrap: wrap; }
form.join input[type="email"] { flex: 1 1 14rem; font: inherit; padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--text); min-width: 0; }
form.join input[type="email"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
form.join button { font: inherit; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.retry { display: none; color: var(--accent); margin-top: .6rem; }
#join:target .retry { display: block; }

/* Quiet panel (disclaimer) */
.quiet { background: var(--card-tint); border-left: 4px solid var(--brand); border-radius: 10px; padding: 1rem 1.2rem; font-size: .95rem; color: var(--muted); }

/* Definition-style FAQ */
.faq h3 { margin-top: 1.6em; }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 1rem 0; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; }

.btn { display: inline-block; background: var(--brand-fill); color: #fff; text-decoration: none; font-weight: 600; padding: .65rem 1.1rem; border-radius: 999px; }
.btn:hover { color: #fff; filter: brightness(1.08); }

@media (prefers-reduced-motion: no-preference) { a, .btn { transition: color .15s, filter .15s; } }
@media print { .site-header nav, .site-footer nav, .badge { display: none; } }
