/* wikiaio.eu — public site. Design v1 (docs/DESIGN-BRIEF.md, boards in
   docs/design/mockups). Tokens copied from apps/web/src/styles.css so the
   site and the app match. Strict CSP: no inline styles anywhere.
   WCAG 2.1 AA: text pairs ≥ 4.5:1, 44 px targets, visible focus. */

@font-face { font-family: 'Schibsted Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 400 900; src: url('/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 400 900; src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #F3F5F7; --surface: #FFFFFF; --inset: #F8F9FA; --row: #F0F2F4;
  --line-soft: #E8ECEF; --line: #DCE1E6; --control: #C9D0D8; --outline: #7D8794;
  --ink3: #5F6874; --ink2: #3E4652; --ink: #14181E;
  --ink-fill: #14181E; --on-ink: #FFFFFF;
  --accent: #8A3C78; --accent-tx: #7A2F69; --accent-tint: #F6EAF2; --accent-line: #E3C6DA; --accent-ink: #4A1F40;
  --ok-bg: #E3F3E8; --ok: #1D6B3A; --ok-line: #B9DEC6;
  --warn-bg: #FBEBD5; --warn: #8A4B00; --warn-ink: #4A3714; --warn-line: #EBD6AE;
  --bad-bg: #FBE3E0; --bad: #A3271D; --bad-ink: #4A1214; --bad-line: #EBC1C2;
  --mark: #FFE58A;
  --shadow: 0 8px 24px rgba(20, 24, 30, 0.12);
  --radius-card: 10px; --radius-control: 8px; --radius-chip: 6px;
  --font: 'Schibsted Grotesk Variable', 'Schibsted Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0D1015; --surface: #151920; --inset: #1A1F27; --row: #1E242C;
    --line-soft: #232A33; --line: #2B323C; --control: #3A424E; --outline: #6B7480;
    --ink3: #939CA8; --ink2: #B7BFC9; --ink: #E9EDF2;
    --ink-fill: #E9EDF2; --on-ink: #0D1015;
    --accent: #C77DB6; --accent-tx: #E3A6D3; --accent-tint: #2E1A2A; --accent-line: #5A3452; --accent-ink: #F2D5EA;
    --ok-bg: #12301F; --ok: #72D69C; --ok-line: #1F4D33;
    --warn-bg: #36260F; --warn: #F3BA6A; --warn-ink: #F7DDB5; --warn-line: #5C4419;
    --bad-bg: #3A1916; --bad: #FF8F84; --bad-ink: #FFD3CE; --bad-line: #5E2925;
    --mark: #5C4A12;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-control); }
.skip-link:focus { left: 16px; }

.wordmark { display: inline-flex; align-items: flex-end; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark::after { content: ''; width: 0.24em; height: 0.24em; border-radius: 2px; background: var(--accent); margin: 0 0 0.12em 0.1em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 40rem) { .wrap { padding: 0 16px; } }

/* -------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 68px; display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; }
.site-header .wordmark { font-size: 23px; min-height: 44px; align-items: center; }
.site-header .wordmark::after { align-self: flex-end; margin-bottom: 14px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 20px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink2); min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.site-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 62rem) {
  .site-nav { order: 3; width: 100%; padding-bottom: 6px; }
  .site-nav ul { gap: 0 16px; }
}
@media (max-width: 30rem) { .site-actions .btn-quiet { display: none; } }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--ink3); color: var(--ink); }
.btn-primary { background: var(--ink-fill); border-color: transparent; color: var(--on-ink); }
.btn-primary:hover { opacity: 0.88; color: var(--on-ink); border-color: transparent; }
.btn-quiet { border-color: transparent; background: transparent; font-weight: 500; }
.btn-large { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------------------------------------------------------------- type */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink3); letter-spacing: 0.01em; }
.display { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink2); max-width: 44rem; }
.muted { color: var(--ink3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* ------------------------------------------------------------ sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--ink2); }
.marker { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); display: inline-block; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li { padding-left: 26px; position: relative; color: var(--ink2); }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--row); color: var(--ink2); }
.badge-accent { background: var(--accent-tint); color: var(--accent-tx); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.soon { font-size: 12px; font-weight: 600; color: var(--warn); white-space: nowrap; }

/* ----------------------------------------------------------------- hero */
.hero { padding: 72px 0 64px; }
.hero-note { font-size: 14px; color: var(--ink3); }

/* Answer mockup (reference-note layout, design decision 4) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.mock-ask { display: flex; gap: 8px; }
.mock-input { flex: 1; min-height: 44px; border: 1px solid var(--control); border-radius: var(--radius-control); display: flex; align-items: center; padding: 0 12px; font-size: 15px; }
.mock-btn { min-height: 44px; padding: 0 16px; border-radius: var(--radius-control); background: var(--ink-fill); color: var(--on-ink); display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; }
.note { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.note-label { font-size: 13px; font-weight: 600; color: var(--ink3); }
.note sup { color: var(--accent-tx); font-weight: 700; }
.note-sources { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.note-sources b { color: var(--accent-tx); }

/* -------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan-featured { border: 2px solid var(--ink); }
.plan-price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-per { font-size: 14px; color: var(--ink3); }
.plan .btn { margin-top: auto; }
.addon { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.faq dt { font-weight: 700; margin-top: 20px; }
.faq dd { margin: 6px 0 0; color: var(--ink2); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; }
caption { text-align: left; padding: 14px 16px; font-weight: 700; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 15px; }
th { font-size: 13px; color: var(--ink3); font-weight: 600; background: var(--inset); }
tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------------- flow */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 16px; }
.honest { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: 12px; padding: 18px 20px; }
.honest strong { color: var(--warn); }

/* ---------------------------------------------------------- Teams mock */
.tmock { display: flex; border: 1px solid var(--control); border-radius: 12px; overflow: hidden; min-height: 320px; background: #F5F5F5; color: #242424; box-shadow: var(--shadow); }
.tmock-rail { width: 56px; flex: none; background: #EBEBEB; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; }
.tmock-rail span { width: 24px; height: 24px; border-radius: 6px; background: #C8C8C8; }
.tmock-rail .tmock-app { background: transparent; border: 2px solid #5B5FC7; color: #5B5FC7; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.tmock-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tmock-head { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; padding: 0 16px; border-bottom: 1px solid #E0E0E0; font-size: 13px; }
.tmock-head .on { font-weight: 600; border-bottom: 2px solid #242424; padding: 11px 0; }
.tmock-body { flex: 1; background: var(--ground); color: var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tmock-q { align-self: flex-end; background: var(--ink-fill); color: var(--on-ink); border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 14px; max-width: 80%; }
.tmock-a { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; max-width: 88%; }
.tmock-chip { align-self: flex-start; font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--accent-line); background: var(--accent-tint); color: var(--accent-ink); }

/* ----------------------------------------------------------------- forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-size: 13px; font-weight: 600; color: var(--ink2); }
.input { min-height: 44px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control); font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); width: 100%; }
textarea.input { padding: 10px 12px; min-height: 6rem; }
.addr { display: flex; align-items: stretch; border: 1px solid var(--control); border-radius: var(--radius-control); overflow: hidden; background: var(--surface); }
.addr .input { border: 0; border-radius: 0; }
.addr-suffix { display: inline-flex; align-items: center; padding: 0 12px; color: var(--ink3); background: var(--inset); border-left: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.hint { font-size: 13px; color: var(--ink3); }
.choices { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: 6px; padding: 0; }
.choice { flex: 1 1 8rem; min-height: 44px; border: 1px solid var(--control); border-radius: var(--radius-control); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 15px; font-weight: 400; color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ink2); line-height: 1.5; }
.consent input, .choice input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.consent input { margin-top: 2px; }
.form-msg { border-radius: 10px; padding: 14px 16px; font-size: 15px; border: 1px solid; }
.form-msg[hidden] { display: none; }
.form-msg-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.form-msg-bad { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
.signup-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 36px; max-width: 34rem; width: 100%; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 40rem) { .signup-card { padding: 24px 18px; } }
.noscript-note { font-size: 14px; color: var(--ink2); }

/* ----------------------------------------------------------------- legal */
.legal { display: flex; flex-wrap: wrap; gap: 40px; padding: 48px 0 80px; }
.legal-nav { flex: 1 1 13rem; max-width: 16rem; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.legal-nav a { min-height: 40px; padding: 0 10px; border-radius: var(--radius-chip); display: flex; align-items: center; text-decoration: none; }
.legal-nav a:hover { background: var(--row); }
.legal-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-tx); font-weight: 600; }
.legal-doc { flex: 999 1 32rem; min-width: 0; max-width: 52rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 44px 52px; }
@media (max-width: 48rem) { .legal-doc { padding: 28px 20px; } }
.draft-banner { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 24px; }
.draft-banner strong { color: var(--warn); }
.prose { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.prose h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; margin: 2em 0 0.5em; }
.prose h3 { font-size: 18px; margin: 1.5em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: 0.25em 0; }
.prose .meta { font-size: 14px; color: var(--ink3); margin-bottom: 18px; }
.prose .table-wrap { margin: 0 0 1em; }
.ph { background: var(--mark); color: var(--ink); padding: 0 0.2em; border-radius: 3px; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 14px; }
.footer-links a { color: var(--ink2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { text-decoration: underline; color: var(--ink); }
.footer-meta { font-size: 13px; color: var(--ink3); }

/* ------------------------------------------------------------ cta band */
.cta { background: var(--ink-fill); color: var(--on-ink); border-radius: 16px; padding: 44px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta h2, .cta p { color: var(--on-ink); }
.cta .btn { background: var(--surface); color: var(--ink); border-color: transparent; }
@media (max-width: 40rem) { .cta { padding: 28px 22px; } }
