:root {
    color-scheme: dark;
    --bg: #111111;
    --surface: #1a1a1a;
    --line: #2e2e2e;
    --text: #f4f1ea;
    --muted: #b0aca2;
    --amber: #ffb300;
    --on-amber: #111111;
    --page: 1160px;
    --gutter: 16px;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 var(--sans);
    -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--amber); }
a:focus-visible, .button:focus-visible, pre:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px max(var(--gutter), calc((100% - var(--page)) / 2));
    background: rgb(17 17 17 / 0.92);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    font-size: 1.1rem;
    text-decoration: none;
}

.bar nav { display: flex; gap: 20px; }
.bar nav a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.bar nav a:hover { color: var(--text); }

.hero, .section, .foot {
    width: min(var(--page), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    padding-block: 72px 56px;
}

.eyebrow { color: var(--amber); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.15rem; margin-top: 20px; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.button.primary:hover { background: #ffc233; border-color: #ffc233; }

figure img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.hero-shot { position: relative; padding-bottom: 8%; }
.hero-shot .phone {
    position: absolute;
    right: 4%;
    bottom: 0;
    width: 23%;
    border: 3px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 0 0 4px var(--bg);
}

.section { padding-block: 56px; border-top: 1px solid var(--line); }
.intro { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin-top: 12px; }

.table-wrap { margin-top: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { padding: 13px 16px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }

.tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 7px;
    border: 1px solid var(--amber);
    border-radius: 999px;
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: 1px;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    margin-top: 56px;
}
.feature h3 { font-size: 1.5rem; margin-bottom: 12px; }
.feature p { color: var(--muted); }
.feature p + p { margin-top: 12px; }
.feature.flip > div { order: 2; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}
.cards li {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.cards h3 { margin-bottom: 8px; }
.cards p { color: var(--muted); font-size: 0.97rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }

.plain { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.plain li + li { margin-top: 12px; }
.plain strong { color: var(--text); font-weight: 600; }
.plain.two { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.plain.two li + li { margin-top: 0; }

code { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }

pre {
    margin: 24px 0 0;
    padding: 18px 20px;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    line-height: 1.7;
}
pre code { font-size: 0.92rem; overflow-wrap: normal; }
pre span { color: var(--muted); }

.foot {
    padding-block: 28px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}
.foot p + p { margin-top: 4px; }

@media (max-width: 900px) {
    .hero, .feature, .feature.flip, .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero { padding-block: 44px 40px; }
    .feature.flip > div { order: 0; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .bar nav { gap: 14px; }
    .bar nav a { font-size: 0.9rem; white-space: nowrap; }
    /* Four links don't fit beside the name on a phone. */
    .bar nav a:first-child { display: none; }
    .section { padding-block: 44px; }
    .feature { margin-top: 40px; }
    .cards { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
    .plain.two { grid-template-columns: minmax(0, 1fr); }

    /* The table turns into one stacked block per platform. */
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    table, tbody, tr, th, td { display: block; }
    tbody tr { padding-block: 14px; border-bottom: 1px solid var(--line); }
    tbody tr:last-child { border-bottom: 0; }
    th, td, tbody tr:last-child > * { padding: 0; border: 0; }
    tbody th { font-size: 1.05rem; margin-bottom: 6px; }
    td { display: flex; justify-content: space-between; gap: 16px; text-align: right; padding-block: 2px; }
    td::before { content: attr(data-label); color: var(--muted); text-align: left; flex: none; max-width: 45%; }
}
