/* Mathe LMS sales site. No framework, no build step. */

/* ── Fonts (self-hosted, SIL Open Font License) ───────────────────────── */
@font-face {
    font-family: "Bebas Neue";
    src: url("assets/fonts/bebas-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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;
}
@font-face {
    font-family: "Bebas Neue";
    src: url("assets/fonts/bebas-latin-ext.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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: "Manrope";
    src: url("assets/fonts/manrope-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    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;
}
@font-face {
    font-family: "Manrope";
    src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    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;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
    --bg: #09090b;
    --bg-2: #0d0d10;
    --panel: #111114;
    --panel-2: #16161a;
    --line: rgba(252, 235, 217, 0.1);
    --line-strong: rgba(252, 235, 217, 0.18);
    --text: #fcebd9;
    --muted: #bcae9f;       /* 8.9:1 on --bg */
    --dim: #948779;         /* 5.6:1 on --bg */
    --gold: #f6ad65;
    --gold-2: #f2c46d;
    --gold-deep: #d08a2e;
    --gold-soft: rgba(246, 173, 101, 0.12);
    --good: #7fd6a4;
    --bad: #f08a7a;

    --font-head: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --radius: 20px;
    --radius-sm: 12px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(80px, 11vw, 140px);
    color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
strong { color: var(--text); font-weight: 700; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; color: var(--text); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #1a1208; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold); color: #140d05; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── Type ─────────────────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.h-display {
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.01em;
    font-size: clamp(3.1rem, 9vw, 7.4rem); line-height: 0.9;
}
.h-section { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 0.95; letter-spacing: 0.01em; }
.h-card { font-family: var(--font-head); text-transform: uppercase; font-size: 1.9rem; line-height: 1; letter-spacing: 0.02em; }
.accent { color: var(--gold); }
.h-display-sub { display: block; font-size: 0.56em; line-height: 1; margin-top: 0.22em; letter-spacing: 0.02em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 44rem; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 52rem; }
.section-head .lead { margin-top: 20px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    --btn-bg: var(--gold);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px; border-radius: 14px;
    font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    background: var(--btn-bg); color: #140d05;
    box-shadow: 0 10px 30px -12px rgba(246, 173, 101, 0.55);
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: #140d05; background: var(--gold-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: rgba(252, 235, 217, 0.06); color: var(--text); border-color: rgba(252, 235, 217, 0.35); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 1.1rem; border-radius: 12px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: 0.08em; line-height: 1; padding-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:not(.btn):hover { color: var(--text); background: rgba(252, 235, 217, 0.06); }
.nav .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 380px) { .brand span { font-size: 1.35rem; } .nav .btn { padding: 0 14px; font-size: 1rem; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(72px, 10vw, 120px); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -30% -10% auto; height: 900px; pointer-events: none;
    background:
        radial-gradient(closest-side at 50% 45%, rgba(246, 173, 101, 0.18), transparent 70%),
        radial-gradient(closest-side at 80% 20%, rgba(242, 196, 109, 0.08), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { text-align: center; max-width: 60rem; margin: 0 auto; }
.hero-copy .lead { margin: 28px auto 0; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.hero-note { margin-top: 22px; font-size: 0.92rem; color: var(--dim); }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 0; list-style: none; }
.hero-facts li {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: rgba(252, 235, 217, 0.03);
}
.hero-shot { position: relative; margin: clamp(56px, 8vw, 88px) auto 0; max-width: 1080px; }
.browser {
    border-radius: 16px; overflow: hidden; background: var(--panel);
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 120px -40px rgba(246, 173, 101, 0.35), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.browser-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0c0c0f; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a30; }
.browser-bar span {
    margin-left: 12px; flex: 1; max-width: 480px; height: 22px; border-radius: 7px; background: #17171b;
    font-family: var(--font-mono); font-size: 11px; color: var(--dim); display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap;
}
.phone {
    position: absolute; right: -2%; bottom: -8%; width: clamp(130px, 21%, 230px);
    border-radius: 28px; padding: 7px; background: #050506; border: 1px solid var(--line-strong);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 22px; }
@media (max-width: 640px) { .phone { right: 4px; bottom: -14%; width: 34%; border-radius: 20px; padding: 5px; } .phone img { border-radius: 16px; } }

/* ── Compare (problem / solution) ─────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
.compare-card { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); background: var(--panel); }
.compare-card--own { background: linear-gradient(160deg, rgba(246, 173, 101, 0.1), rgba(246, 173, 101, 0.02) 55%), var(--panel); border-color: rgba(246, 173, 101, 0.35); }
.compare-card h3 { margin-bottom: 8px; }
.compare-card > p { color: var(--muted); margin-bottom: 26px; }
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; }
.ticks--good svg { color: var(--gold); }
.ticks--bad svg { color: var(--dim); }

/* ── Features ─────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .features { grid-template-columns: 1fr; } }
.feature {
    position: relative; border-radius: var(--radius); padding: 32px 28px 30px; background: var(--panel); border: 1px solid var(--line);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: rgba(246, 173, 101, 0.3); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
    background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(246, 173, 101, 0.25);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 10px; }
.feature > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 18px; }
.bullets { list-style: none; display: grid; gap: 9px; font-size: 0.95rem; }
.bullets li { position: relative; padding-left: 20px; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); opacity: 0.85; }
.bullets strong { font-weight: 600; }

.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.counts div { background: var(--bg-2); padding: 28px 24px; }
.counts b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 3.2rem; line-height: 1; color: var(--gold); }
.counts span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .counts { grid-template-columns: repeat(2, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; }
.chips li { font-size: 0.8rem; font-family: var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* ── Gallery ──────────────────────────────────────────────────────────── */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -24px 0 40px; }
.gallery-tabs[hidden] { display: none; }
.gallery-tabs button {
    font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer;
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.gallery-tabs button[aria-pressed="true"] { color: #140d05; background: var(--gold); border-color: var(--gold); }
.gallery-tabs button:hover:not([aria-pressed="true"]) { color: var(--text); border-color: var(--line-strong); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.gallery--mobile { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; margin-top: 44px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery--mobile { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.shot { margin: 0; }
.shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); transition: border-color 0.2s ease, transform 0.2s ease; }
.shot a:hover { border-color: rgba(246, 173, 101, 0.5); transform: translateY(-2px); }
.shot--mobile a { border-radius: 22px; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot--mobile img { aspect-ratio: 390 / 844; }
.shot figcaption { margin-top: 12px; font-size: 0.93rem; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.shot figcaption .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(246, 173, 101, 0.3); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.gallery-note { text-align: center; margin-top: 36px; color: var(--dim); font-size: 0.93rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1440px, 96vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 5, 6, 0.9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; border-radius: 12px; border: 1px solid var(--line-strong); margin: 0 auto; }
.lightbox p { text-align: center; color: var(--text); margin: 14px 0 0; }
.lightbox button { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 18px; height: 18px; }

/* ── What you get ─────────────────────────────────────────────────────── */
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
@media (max-width: 900px) { .included { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; } }
.included li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); }
.included .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.included .ic svg { width: 22px; height: 22px; }
.included h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; letter-spacing: 0; text-transform: none; }
.included p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ── Stack ────────────────────────────────────────────────────────────── */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
@media (max-width: 900px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stack { grid-template-columns: 1fr; } }
.stack li { padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(252, 235, 217, 0.02); }
.stack b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.stack span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; display: block; }
.stack-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); padding: 36px 30px 30px; background: var(--panel); border: 1px solid var(--line); }
.plan--featured { border-color: rgba(246, 173, 101, 0.55); background: linear-gradient(170deg, rgba(246, 173, 101, 0.12), rgba(246, 173, 101, 0.02) 50%), var(--panel); box-shadow: 0 30px 90px -40px rgba(246, 173, 101, 0.45); }
.plan-badge { position: absolute; top: -13px; left: 30px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: #140d05; font-weight: 700; }
.plan-badge--muted { background: var(--panel-2); color: var(--gold); border: 1px solid rgba(246, 173, 101, 0.35); }
.plan h3 { margin-bottom: 6px; }
.plan-tagline { color: var(--muted); margin-bottom: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-price b { font-family: var(--font-head); font-weight: 400; font-size: 4.2rem; line-height: 0.9; color: var(--text); }
.plan--featured .plan-price b { color: var(--gold); }
.plan-price span { color: var(--dim); font-size: 0.92rem; }
.plan .ticks { flex: 1; margin-bottom: 28px; gap: 11px; }
.plan .ticks li { font-size: 0.97rem; color: var(--text); }
.plan .ticks svg { color: var(--gold); width: 18px; height: 18px; }
.pricing-note { margin: 36px auto 0; max-width: 48rem; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.faq details[open] { border-color: rgba(246, 173, 101, 0.3); }
.faq summary {
    list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
    border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-sm); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { padding-left: 20px; margin-bottom: 1em; }
.placeholder { color: var(--gold); font-family: var(--font-mono); font-size: 0.9em; }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(246, 173, 101, 0.16), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; }
.final .lead { margin: 22px auto 0; }
.final .hero-ctas { margin-top: 36px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--dim); font-size: 0.88rem; }

/* ── Simple content pages (license, privacy) ──────────────────────────── */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.doc h1 { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 0.95; margin-bottom: 18px; }
.doc h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.9rem; margin: 40px 0 12px; }
.doc h3 { font-weight: 700; font-size: 1.1rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc .notice { border: 1px dashed rgba(246, 173, 101, 0.5); background: var(--gold-soft); border-radius: var(--radius-sm); padding: 18px 20px; color: var(--text); margin: 24px 0; }
.doc .notice p { color: var(--text); margin: 0; }

/* An odd number of desktop screenshots: centre the last one. */
@media (min-width: 761px) {
    .gallery:not(.gallery--mobile) .shot:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 14px); justify-self: center; }
}
@media (max-width: 480px) {
    .eyebrow { letter-spacing: 0.16em; font-size: 11px; }
    .hero-ctas .btn { width: 100%; max-width: 340px; }
}

/* Legal pages rendered from Markdown */
.doc--legal h2 { font-size: 1.7rem; margin-top: 44px; }
.doc--legal h3 { font-family: var(--font-body); text-transform: none; }
.doc--legal strong { color: var(--text); }
.doc--legal ol { padding-left: 22px; }
.doc--legal li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 300px; }
.doc th, .doc td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc th { color: var(--text); font-weight: 700; background: var(--panel); }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) { .doc th, .doc td { padding: 9px 10px; font-size: 0.88rem; } }
