/* Styles for the public content pages built by build-seo.mjs. Same colours as the app. */
:root {
  --bg: #F2F3EE; --surface: #FFFFFF; --surface2: #E9EBE3; --line: #DCDFD4;
  --fg: #0F1410; --muted: #5B645C; --accent: #C8F135; --accent-fg: #0F1410; --accent-ink: #3A6300;
  --flame: #D9481F; --good: #1F7A45;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0A0C0B; --surface: #141815; --surface2: #1D221E; --line: #2A302B; --fg: #EEF2EC; --muted: #95A097; --accent-ink: #C8F135; --flame: #FF7A4D; --good: #5AD08A; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .in { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--fg); text-decoration: none; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.logo svg { width: 18px; height: 18px; stroke: var(--accent-fg); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; align-items: center; }
header.site nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
header.site nav a:hover { text-decoration: underline; }
header.site nav a.app { background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 12px; font-weight: 800; }
main { max-width: 760px; margin: 0 auto; padding: 22px 16px 56px; }
main.wide { max-width: 960px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.2; margin: 34px 0 10px; }
h3 { font-size: 18px; margin: 20px 0 4px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--muted); }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 52px; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 800; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; }
.note { background: var(--surface2); border-left: 4px solid var(--accent-ink); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 20px 0; font-size: 15px; }
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 16px 0; }
.facts th, .facts td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.facts th { width: 38%; color: var(--muted); font-weight: 700; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
table.t { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15.5px; background: var(--surface); border: 1px solid var(--line); }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.t thead th { background: var(--surface2); }
.scroll { overflow-x: auto; }
figure.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
figure.pair figure { margin: 0; }
figure.pair img { width: 100%; height: auto; border-radius: 14px; background: var(--surface2); display: block; aspect-ratio: 850 / 567; object-fit: cover; }
figure.pair figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.video { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--fg); margin: 18px 0; }
.video img { width: 120px; height: 68px; object-fit: cover; border-radius: 10px; flex: none; }
.video small { color: var(--muted); display: block; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 16px 0 28px; }
.cards li { margin: 0; }
.cards a.card { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--fg); }
.cards a.card:hover { border-color: var(--accent-ink); }
.cards img { width: 100%; height: auto; aspect-ratio: 850 / 567; object-fit: cover; display: block; background: var(--surface2); }
.cards .tx { padding: 12px 14px 14px; }
.cards strong { display: block; font-size: 17px; line-height: 1.25; }
.cards span { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.cards.plain a.card { padding: 16px; }
.cta { background: var(--fg); color: var(--bg); border-radius: 20px; padding: 22px; margin: 36px 0 8px; }
.cta h2 { margin: 0 0 6px; font-size: 22px; color: var(--bg); }
.cta p { color: inherit; opacity: .85; }
.cta a.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); font-weight: 800; padding: 12px 20px; border-radius: 14px; text-decoration: none; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; margin: 18px 0; }
.calc label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.calc input, .calc select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; }
.calc button { font: inherit; font-weight: 800; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-fg); cursor: pointer; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 0 0 18px; min-height: 24px; }
.result .big { font-family: var(--mono); font-size: 32px; font-weight: 700; line-height: 1.1; }
.result .tag { display: inline-block; font-weight: 800; padding: 3px 12px; border-radius: 999px; font-size: 14px; background: var(--surface2); }
.result .tag.go { color: var(--good); } .result .tag.ok { color: #8A5A00; } .result .tag.easy { color: var(--flame); }
footer.site { border-top: 1px solid var(--line); background: var(--surface); }
footer.site .in { max-width: 960px; margin: 0 auto; padding: 26px 16px 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; font-size: 14.5px; }
footer.site h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 0 0 5px; }
footer.site a { color: var(--fg); }
footer.site p.small { grid-column: 1 / -1; color: var(--muted); margin: 0; font-size: 13px; }
@media (max-width: 560px) { figure.pair { grid-template-columns: 1fr; } .video img { width: 96px; height: 54px; } }
