/* SiteSummon design system.
   Hand-written, no build step. Shared by the marketing site and, later, the
   application, so the two never drift into looking like different products. */

:root {
    --ink-900: #05070c;
    --ink-850: #0a0e17;
    --ink-800: #0f1420;
    --ink-750: #151c2b;
    --ink-700: #1d2536;
    --ink-600: #2a3447;
    --line:    #222c3f;

    --text:      #e8ecf4;
    --text-soft: #a3aec4;
    --text-dim:  #6f7b93;

    --accent:      #5eb3ff;
    --accent-warm: #ffb86b;
    --accent-deep: #1b6fc4;
    --good:        #4ecb8f;
    --warn:        #ffc857;
    --bad:         #ff7a7a;

    --bg:      var(--ink-900);
    --surface: var(--ink-850);
    --raised:  var(--ink-800);

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --measure: 68ch;
    --radius: 12px;
    --radius-sm: 7px;
    --gutter: 24px;
    --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.16rem; margin-top: 2em; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8ecbff; }
strong { color: #fff; font-weight: 620; }
code, kbd { font-family: var(--font-mono); font-size: .88em; }
:is(p, li) > code {
    background: var(--ink-750); border: 1px solid var(--line);
    padding: .08em .38em; border-radius: 5px; color: #cfe4ff;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
    position: absolute; left: -9999px; top: 0; background: var(--accent); color: #041022;
    padding: .7em 1.1em; z-index: 100; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.masthead {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--ink-900) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 1.6rem; min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand .mark {
    width: 22px; height: 22px; border-radius: 6px; flex: none;
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 65%, #123a63 100%);
    box-shadow: 0 0 0 1px rgba(94,179,255,.35), 0 2px 10px rgba(27,111,196,.4);
}
.nav { margin-left: auto; display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
    padding: .72rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent;
    font: inherit; font-size: .96rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.btn-primary { background: var(--accent); color: #041022; }
.btn-primary:hover { background: #8ecbff; color: #041022; }
.btn-ghost { border-color: var(--ink-600); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
    display: inline-block; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    padding: .3rem .7rem; border-radius: 100px;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.lede { font-size: clamp(1.06rem, 2.1vw, 1.25rem); color: var(--text-soft); max-width: 60ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- panels ---------- */

.panel {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem;
}
.panel h3 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--ink-850); border-block: 1px solid var(--line); }

/* ---------- the evidence panel: the product's core idea, made visible ---------- */

.evidence {
    background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; font-size: .92rem;
}
.evidence-head {
    display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
    background: var(--ink-800); border-bottom: 1px solid var(--line);
    font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim);
    letter-spacing: .04em; text-transform: uppercase;
}
.evidence-body { padding: .4rem 0; }
.finding {
    display: grid; gap: .25rem; padding: .85rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.finding:last-child { border-bottom: 0; }
.finding-claim { color: var(--text); }
.finding-source {
    font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim);
    word-break: break-word;
}
.finding-source b { color: var(--accent); font-weight: 500; }

.tag {
    display: inline-block; font-family: var(--font-mono); font-size: .69rem; letter-spacing: .07em;
    text-transform: uppercase; padding: .16rem .5rem; border-radius: 4px; vertical-align: .08em;
    border: 1px solid; font-weight: 600;
}
.tag-high { color: var(--good);  border-color: color-mix(in srgb, var(--good) 45%, transparent);  background: color-mix(in srgb, var(--good) 11%, transparent); }
.tag-med  { color: var(--warn);  border-color: color-mix(in srgb, var(--warn) 45%, transparent);  background: color-mix(in srgb, var(--warn) 11%, transparent); }
.tag-ask  { color: var(--accent);border-color: color-mix(in srgb, var(--accent) 45%, transparent);background: color-mix(in srgb, var(--accent) 11%, transparent); }
.tag-bad  { color: var(--bad);   border-color: color-mix(in srgb, var(--bad) 45%, transparent);   background: color-mix(in srgb, var(--bad) 11%, transparent); }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 520px; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 620; background: var(--ink-800); white-space: nowrap; }
td { color: var(--text-soft); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- lists ---------- */

.checks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; max-width: var(--measure); }
.checks li { position: relative; padding-left: 1.7rem; color: var(--text-soft); }
.checks li::before {
    content: ""; position: absolute; left: .25rem; top: .62em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.checks li.no::before { background: var(--text-dim); }

/* ---------- forms ---------- */

.form { display: grid; gap: 1rem; max-width: 520px; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .82rem; color: var(--text-dim); }
.field input, .field textarea {
    font: inherit; font-size: .96rem; color: var(--text);
    background: var(--ink-800); border: 1px solid var(--ink-600);
    border-radius: var(--radius-sm); padding: .68rem .8rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .93rem; border: 1px solid; }
.notice-error { color: #ffd7d7; border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.notice-ok    { color: #cdf5e2; border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0 3rem; color: var(--text-dim); font-size: .9rem; }
.foot .wrap { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.foot a { color: var(--text-soft); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 42ch; }

/* ---------- light mode ---------- */

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #fbfcfe; --surface: #fff; --raised: #f4f7fb;
        --ink-900: #fbfcfe; --ink-850: #fff; --ink-800: #f3f6fa;
        --ink-750: #eef2f8; --ink-700: #e4eaf3; --ink-600: #cfd8e6;
        --line: #e0e7f0;
        --text: #10192a; --text-soft: #47546b; --text-dim: #6b7789;
        --accent: #1668c4; --accent-deep: #0d4d96;
        --good: #1c8a58; --warn: #a3690a; --bad: #c33a3a;
    }
    :root:not([data-theme="dark"]) strong { color: #000; }
    :root:not([data-theme="dark"]) .btn-primary { color: #fff; }
    :root:not([data-theme="dark"]) .btn-primary:hover { background: var(--accent-deep); color: #fff; }
    :root:not([data-theme="dark"]) .skip { color: #fff; }
    :root:not([data-theme="dark"]) :is(p, li) > code { color: #14456f; }
    :root:not([data-theme="dark"]) .brand .mark { box-shadow: 0 0 0 1px rgba(22,104,196,.3); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .masthead .wrap { min-height: 56px; gap: 1rem; }
    .nav { gap: .95rem; }
    .nav a { font-size: .88rem; }
    .foot .wrap { flex-direction: column; gap: 1.2rem; }
}
