/* considered.software (#118): one stylesheet for every page. The look is the extension's own
   (browser-extension/src/panel.css): its slate, its foil, Sora and Space Mono. */

@font-face {
    font-family: 'Sora';
    src: url('/fonts/sora-latin.woff2') format('woff2');
    font-weight: 100 800;
    font-display: swap;
}
@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/space-mono-700-latin.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #1c2128;
    --surface: #242a33;
    --border: #363e4a;
    --text: #e7eaf0;
    --muted: #9aa3b1;
    --accent: #4fd8c4;
    --on-foil: #12151a;
    --foil-bg: linear-gradient(120deg, #8b7cf6, #4fd8c4 45%, #f6c6e0 80%, #8b7cf6);
    --foil-ink: linear-gradient(120deg, #a396ff, #4fd8c4 45%, #f6c6e0 80%, #a396ff);
    --mono: 'Space Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --bg: #f5f6fa;
        --surface: #ffffff;
        --border: #d6dbe4;
        --text: #1a1f27;
        --muted: #5b6474;
        --accent: #0e8f7e;
        --foil-bg: linear-gradient(120deg, #a99dfa, #6fe0cf 45%, #f8d2e6 80%, #a99dfa);
        --foil-ink: linear-gradient(120deg, #5b47e0, #0c8c7b 45%, #c04f92 80%, #5b47e0);
    }
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 'Sora', system-ui, sans-serif;
}
a {
    color: var(--accent);
}
img {
    max-width: 100%;
    height: auto;
}
.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
h1,
h2,
h3 {
    line-height: 1.2;
}
h2 {
    font-size: 1.6rem;
    margin: 0 0 16px;
}
.muted {
    color: var(--muted);
}
.foil {
    background: var(--foil-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Header and footer ---- */

.site-head {
    padding: 18px 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.brand img {
    width: 32px;
    height: 32px;
}
.site-foot {
    margin-top: 72px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--muted);
}
.site-foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 12px;
}

/* ---- Sections ---- */

section {
    margin-top: 72px;
}
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    margin-top: 24px;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0 0 16px;
}
.hero .lead {
    font-size: 1.125rem;
    margin: 0 0 24px;
}
.hero .facts {
    margin: 16px 0 0;
    font-size: 0.9rem;
}
.hero figure {
    margin: 0;
    justify-self: center;
}
.hero figure img {
    width: 360px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    background: var(--foil-bg);
    color: var(--on-foil);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}
.btn:hover,
.btn:focus-visible {
    filter: brightness(1.08);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: step;
}
.steps li,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    font-family: var(--mono);
    font-size: 1.6rem;
    margin-bottom: 6px;
    background: var(--foil-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* The video loads from YouTube only when played (video.js): until then it's our own poster. */
.video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}
.video img,
.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.video button {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.video button span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--foil-bg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.video button span::after {
    content: '';
    position: absolute;
    left: 34px;
    top: 26px;
    border-style: solid;
    border-width: 16px 0 16px 26px;
    border-color: transparent transparent transparent var(--on-foil);
}

.results {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.results th,
.results td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.results td.num,
.results th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.results td.num {
    white-space: nowrap;
}
.results .sub {
    display: block;
    max-width: 12em;
    margin-left: auto;
    white-space: normal;
    font-size: 0.85em;
    color: var(--muted);
}
.table-scroll {
    overflow-x: auto;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 18px;
    margin-bottom: 10px;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
}
.faq details p {
    margin: 0 0 14px;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero figure img {
        width: 300px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
}
