/* The static landing pages (seo/build.ts → dist/<page>/index.html): the app's colours and header, without its bundle.
   System fonts, no JavaScript apart from GoatCounter's count.js. Served as /assets/landing-<hash>.css (long cache). */
:root {
  --bg: #f6f7f9; --surface: #fff; --surface-2: #eef2f6; --text: #1b2430; --muted: #5f6b7a; --line: #d9dfe6;
  --accent: #1f5f8b; --accent-ink: #fff; --accent-soft: #e3eef7; --practice: #157a6e; --m: #3949ab; --c: #b0306e;
  --m-soft: #e8eaf6; --c-soft: #fbe7f1; --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 45, .06), 0 2px 8px rgba(20, 30, 45, .05);
  --subj: var(--accent); --subj-soft: var(--accent-soft);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c; --surface: #1a2029; --surface-2: #232b36; --text: #e6eaef; --muted: #9aa6b4; --line: #333d4a;
    --accent: #5aa6dc; --accent-ink: #0d1620; --accent-soft: #1d3346; --practice: #4cc2b0; --m: #8c9eff; --c: #f08ab8;
    --m-soft: #242b54; --c-soft: #3d2131; --shadow: none; color-scheme: dark;
  }
}
.subj-m { --subj: var(--m); --subj-soft: var(--m-soft); }
.subj-c { --subj: var(--c); --subj-soft: var(--c-soft); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin: .35em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.08rem; margin: 1.2em 0 .3em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.site-header { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; padding: .7rem max(16px, calc((100vw - 1100px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); font-size: 1.15rem; }
.brand b { color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-by { margin-top: 3px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.site-header nav { display: flex; gap: .2rem; flex-wrap: wrap; margin-left: auto; }
.site-header nav a { padding: .35rem .7rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; }
.site-header nav a:hover { background: var(--surface-2); }
.site-header nav a[aria-current] { background: var(--accent-soft); color: var(--accent); }
main { display: block; width: 100%; max-width: 860px; margin: 0 auto; padding: .8rem 16px 3rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: '›'; margin: 0 .45rem; }
.crumbs a { color: var(--muted); }
.kicker { margin: 1rem 0 0; font-weight: 600; color: var(--subj); font-size: .95rem; }
.lead { font-size: 1.12rem; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1.4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: 10px; border: 1px solid var(--subj); background: var(--subj); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--subj); }
.btn.ghost:hover { background: var(--subj-soft); }
@media (prefers-color-scheme: dark) { .btn:not(.ghost) { color: #10151c; } }
.facts { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; font-weight: 600; background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.tasks { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
.tasks th, .tasks td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.tasks thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.tasks td:first-child { font-weight: 700; white-space: nowrap; }
.tasks td.pts { white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; padding: 0; margin: 1rem 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--subj); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
a.card:hover { transform: translateY(-2px); }
.card b { font-size: 1.12rem; }
.card span { color: var(--muted); font-size: .94rem; }
.card .more { margin-top: auto; padding-top: .3rem; color: var(--subj); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .6rem 0 1rem; list-style: none; }
.chips li { padding: .2rem .7rem; border-radius: 999px; background: var(--subj-soft); color: var(--text); font-size: .92rem; }
.chips a { color: inherit; }
.note { margin: 1.8rem 0; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--accent-soft); }
.note h2 { margin-top: .2rem; }
.faq dt { font-weight: 700; margin-top: 1.2rem; }
.faq dd { margin: .3rem 0 0; }
.related { padding-left: 1.2rem; }
.related li { margin: .25rem 0; }
.site-footer { padding: 1.5rem max(16px, calc((100vw - 1100px) / 2)); border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.site-footer p { margin: .35rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.studio { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); }
.studio a { color: var(--muted); }
@media (max-width: 560px) {
  .site-header nav { margin-left: 0; width: 100%; }
  .facts th { width: 40%; }
  .tasks th:nth-child(3), .tasks td:nth-child(3) { display: none; }
}
@media print { .site-header nav, .cta, .site-footer { display: none; } }
