/* Notchex site — plain CSS, no build step. */

:root {
    color-scheme: light dark;

    /* surfaces */
    --bg: #f5f5f7;
    --bg-elev: #ffffff;
    --bg-sunken: #ebebef;
    --border: rgba(0, 0, 0, 0.09);

    /* content: --text 16.0:1, --text-dim 4.66:1 on --bg */
    --text: #1d1d1f;
    --text-dim: #6e6e73;

    /* accent: links 5.11:1 on --bg; white on --accent-fill 4.70:1 */
    --accent: #0066cc;
    --accent-fill: #0071e3;
    --accent-fill-hover: #0077ed;
    --focus: #0071e3;

    /* the notch is always black, in both appearances */
    --notch: #000000;
    --notch-text: #ffffff;
    --notch-dim: #8e8e93;   /* 6.44:1 on black */
    --notch-sub: #aeaeb2;   /* 9.50:1 on black */

    --code-bg: #1d1d1f;
    --code-text: #f5f5f7;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --radius: 18px;
    --max: 1120px;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --font: -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI", "Cantarell", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", "Fira Code", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0b0d;
        --bg-elev: #161618;
        --bg-sunken: #1f1f22;
        --border: rgba(255, 255, 255, 0.1);
        --text: #f5f5f7;
        --text-dim: #a1a1a6;    /* 7.6:1 on --bg */
        --accent: #2997ff;      /* 6.52:1 on --bg */
        --focus: #2997ff;
        --code-bg: #1f1f22;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    }
}

@media (prefers-contrast: more) {
    :root { --text-dim: var(--text); --border: rgba(127, 127, 127, 0.6); }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 16px; top: -100px; z-index: 20;
    background: var(--bg-elev); color: var(--text); padding: 8px 14px; border-radius: 10px;
    box-shadow: var(--shadow);
}
.skip:focus { top: 10px; }

@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-transparency: reduce) {
    .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    gap: 16px;
}

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

/* the brand mark is the notch: flat top, round bottom */
.brand-mark {
    width: 24px;
    height: 11px;
    border-radius: 2px 2px 8px 8px;
    background: var(--text);
}

.nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav a { color: var(--text-dim); padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .nav-cta {
    color: #fff;
    background: var(--accent-fill);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    margin-left: 8px;
}
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { color: #fff; }
.nav .nav-cta:hover { background: var(--accent-fill-hover); }

@media (max-width: 600px) {
    .nav .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { background: var(--accent-fill-hover); }
.btn-secondary { background: transparent; color: var(--accent); border-color: currentColor; }
.btn-secondary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 24px; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.eyebrow:hover { text-decoration: none; border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.eyebrow b { color: var(--accent); font-weight: 600; }
.eyebrow .chev { color: var(--text-dim); }

.hero h1, .section-head h2, .final h2, .hero .lede, .section-head p { text-wrap: balance; }

.hero h1 {
    font-size: clamp(44px, 7.4vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin: 0 0 20px;
}

.hero .lede {
    font-size: clamp(19px, 2.1vw, 22px);
    line-height: 1.45;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
    list-style: none; padding: 0;
    margin: 20px 0 0; font-size: 14px; color: var(--text-dim);
}

/* ---------- Notch or pill: drag-to-compare in the hero ---------- */

.compare-wrap { margin: 56px auto 0; max-width: 1080px; }
.compare {
    --pos: 50%;
    position: relative;
    aspect-ratio: 1200 / 340;
    border-radius: 22px;
    overflow: hidden;
    background: #14162e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.35);
    touch-action: pan-y;
    isolation: isolate;
}
.compare-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 0; display: block;
    user-select: none; -webkit-user-drag: none;
}
.compare-top {
    position: absolute; inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos);
    width: 2px; margin-left: -1px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.compare-handle span {
    position: absolute; top: 72%; left: 50%;
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
/* ‹ › arrows */
.compare-handle span::before, .compare-handle span::after {
    content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px;
    border: solid #1d1d1f; border-width: 0 0 2px 2px;
}
.compare-handle span::before { left: 10px; transform: rotate(45deg); }
.compare-handle span::after { right: 10px; transform: rotate(-135deg); }
.compare-range {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
    opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 600px; }
.compare-range::-moz-range-thumb { width: 48px; height: 600px; border: 0; }
.compare:has(.compare-range:focus-visible) .compare-handle span {
    outline: 3px solid var(--focus); outline-offset: 3px;
}
.compare-tag {
    position: absolute; bottom: 16px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #fff;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    pointer-events: none; transition: opacity 0.2s;
}
.compare-tag.left { left: 16px; }
.compare-tag.right { right: 16px; }
.compare-wrap figcaption {
    margin-top: 14px; text-align: center; font-size: 15px; color: var(--text-dim);
}
@media (max-width: 600px) {
    /* zoom in on the middle so the shapes stay readable */
    .compare { aspect-ratio: 16 / 9; border-radius: 16px; }
    .compare-wrap { margin-top: 40px; }
    .compare-tag { bottom: 10px; font-size: 12px; }
    .compare-tag.left { left: 10px; }
    .compare-tag.right { right: 10px; }
}

.try-head { margin: 64px 0 0; text-align: center; font-size: 24px; letter-spacing: -0.01em; }
.try-head + .stage-wrap { margin-top: 24px; }

/* ---------- The stage: a desktop with the live notch on it ---------- */

.stage-wrap { margin: 56px auto 0; max-width: 1040px; }

.stage {
    position: relative;
    aspect-ratio: 16 / 8;
    border-radius: 22px;
    overflow: hidden;
    background: #c9c7bd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.35);
    isolation: isolate;
}

@media (max-width: 600px) { .stage { aspect-ratio: 4 / 3.4; border-radius: 16px; } .stage-wrap { margin-top: 40px; } }

.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* the GNOME top bar the notch replaces the clock in */
.topbar {
    position: absolute;
    inset: 0 0 auto 0;
    height: 34px;
    background: rgba(40, 40, 40, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
}
.topbar svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .topbar .opt { display: none; } }

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: var(--notch);
    color: var(--notch-text);
    border-radius: 0 0 18px 18px;
    height: 34px;
    width: 236px;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition:
        width 0.55s var(--ease),
        height 0.55s var(--ease),
        border-radius 0.55s var(--ease),
        top 0.45s var(--ease);
}

.notch .state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.notch[data-state="idle"]   .s-idle,
.notch[data-state="music"]  .s-music,
.notch[data-state="volume"] .s-volume,
.notch[data-state="notify"] .s-notify,
.notch[data-state="hub"]    .s-hub { opacity: 1; transition-delay: 0.2s; }

.notch[data-state="music"]  { width: 330px; }
.notch[data-state="volume"] { width: 300px; }
.notch[data-state="notify"] { width: 410px; height: 58px; border-radius: 0 0 26px 26px; }
.notch[data-state="hub"]    { width: min(620px, 94%); height: 262px; border-radius: 0 0 28px 28px;
    /* the open notch is frosted glass, like the extension */
    background: rgba(18, 18, 20, 0.72); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }

@media (max-width: 600px) {
    .notch { width: 196px; font-size: 12px; }
    .notch[data-state="music"]  { width: 280px; }
    .notch[data-state="volume"] { width: 250px; }
    .notch[data-state="notify"] { width: 94%; }
    .notch[data-state="hub"]    { height: 196px; }
}

.dim { color: var(--notch-dim); font-weight: 500; }

.art {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(160deg, #ff9f0a, #ff375f 55%, #5e5ce6);
    flex: none;
}

.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i {
    width: 3px;
    height: 8px;
    border-radius: 2px;
    background: #30d158;
    animation: eq 0.9s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-delay: -0.1s; }
.eq i:nth-child(2) { animation-delay: -0.5s; }
.eq i:nth-child(3) { animation-delay: -0.3s; }
.eq i:nth-child(4) { animation-delay: -0.7s; }
.stage.paused .eq i { animation-play-state: paused; }

@keyframes eq {
    0%, 100% { height: 3px; }
    50% { height: 14px; }
}

.level {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}
@media (max-width: 600px) { .level { width: 110px; } }
.level span {
    display: block;
    height: 100%;
    width: 30%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.6s var(--ease) 0.2s;
}
.notch[data-state="volume"] .level span { width: 68%; }

.s-notify { justify-content: flex-start !important; padding: 0 12px 0 20px !important; }
.cal-icon { color: #ff7a6e; flex: none; }
.notify-text { display: flex; flex-direction: column; line-height: 1.3; text-align: left; min-width: 0; flex: 1; }
.notify-text b { font-size: 13px; }
.notify-text .soon { font-size: 11px; color: #ff7a6e; font-weight: 600; }
/* Join: white on #1e7e34 is 5.1:1 */
.join {
    background: #1e7e34; color: #fff; font-weight: 700; font-size: 13px;
    padding: 6px 16px; border-radius: 999px; flex: none;
}

/* the hub mirrors the real Now view */
.s-hub { flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; padding: 14px 20px !important; gap: 10px !important; }
.hub-head { display: flex; justify-content: space-between; align-items: flex-start; }
.hub-time { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hub-date { text-align: right; font-size: 12px; line-height: 1.3; }
.hub-date span { display: block; color: var(--notch-dim); font-weight: 500; font-size: 11px; }
.hub-tabs { display: flex; gap: 2px; font-size: 12px; background: rgba(255, 255, 255, 0.07); padding: 3px; border-radius: 10px; }
.hub-tabs span { flex: 1; text-align: center; padding: 4px 6px; border-radius: 8px; color: var(--notch-sub); }
.hub-tabs span.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hub-sub { display: flex; gap: 4px; font-size: 11px; }
.hub-sub span { padding: 2px 10px; border-radius: 999px; color: var(--notch-sub); }
.hub-sub span.on { background: rgba(255, 255, 255, 0.92); color: #000; }
.hub-media { display: flex; align-items: center; gap: 14px; text-align: left; }
.art.big { width: 52px; height: 52px; border-radius: 10px; }
.hm-text { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; line-height: 1.25; }
.hm-text b { font-size: 14px; }
.hm-text > span:not(.bar) { font-size: 12px; color: var(--notch-sub); font-weight: 500; }
.hm-text .bar { margin-top: 6px; }
.hm-ctrls { display: flex; align-items: center; gap: 10px; }
.hm-ctrls svg { width: 16px; height: 16px; }
.hm-ctrls svg.play { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.hub-cards { display: flex; align-items: center; gap: 8px; text-align: left; }
.hc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px 12px; line-height: 1.25; }
.hc small { font-size: 11px; font-weight: 700; color: var(--notch-sub); }
.hc small.red { color: #ff7a6e; }
.hc small.orange { color: #ff9678; }
.hc b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.hub-cards .join { font-size: 12px; padding: 5px 12px; }
.bar { display: block; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: #fff; }
@media (max-width: 600px) {
    .s-hub { padding: 12px 14px !important; gap: 8px !important; }
    .hub-head, .hub-cards .opt, .hub-sub, .hm-ctrls svg:not(.play) { display: none; }
    .hub-tabs { font-size: 11px; }
}

/* the second live activity: a bubble beside the island */
.bubble {
    position: absolute; top: 0; left: calc(50% + 165px + 8px); z-index: 2;
    height: 34px; padding: 0 12px; border-radius: 0 0 16px 16px;
    display: flex; align-items: center; gap: 6px;
    background: var(--notch); color: #ff9678;
    font: 700 13px/1 var(--font); font-variant-numeric: tabular-nums;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0; transform: scale(0.6); transform-origin: left center;
    transition: opacity 0.25s ease, transform 0.45s var(--ease);
    pointer-events: none;
}
.bubble i { width: 7px; height: 7px; border-radius: 50%; background: #ff6347; }
.stage[data-state="both"] .bubble { opacity: 1; transform: none; transition-delay: 0.25s; }
@media (max-width: 600px) { .bubble { left: calc(50% + 140px + 6px); padding: 0 8px; font-size: 12px; } }

/* pill shape: floats below the edge, fully rounded */
.stage[data-shape="pill"] .notch { top: 6px; border-radius: 17px; }
.stage[data-shape="pill"] .notch[data-state="notify"] { border-radius: 26px; }
.stage[data-shape="pill"] .notch[data-state="hub"] { border-radius: 28px; }
.stage[data-shape="pill"] .bubble { top: 6px; border-radius: 17px; }

/* controls under the stage */
.stage-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.segmented {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--bg-sunken);
    border-radius: 999px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.segmented button, .icon-btn {
    font: 500 14px var(--font);
    color: var(--text-dim);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    min-height: 34px;
    cursor: pointer;
    white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] {
    background: var(--bg-elev);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    background: var(--bg-sunken);
    color: var(--text);
}
.icon-btn:hover { background: color-mix(in srgb, var(--bg-sunken) 80%, var(--text)); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }

.stage-caption {
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
    margin: 12px 0 0;
    min-height: 1.5em;
}

@media (max-width: 600px) {
    .segmented button { padding: 7px 11px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .notch, .notch .state, .level span, .bubble { transition: none; }
    .eq i { animation: none; }
}

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

section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }

.band { background: var(--bg-elev); }
@media (prefers-color-scheme: dark) { .band { background: #000; } }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 {
    font-size: clamp(32px, 4.4vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); margin: 0; font-size: 19px; line-height: 1.5; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.band .card { background: var(--bg); }
.card h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.card h3:first-child { margin-top: 0; }
.card p { margin: 0; color: var(--text-dim); font-size: 16px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 15px; }
.card li { margin: 4px 0; }

/* icons sit in a small black notch tile, the one shape the whole brand is built on */
.icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--notch);
    color: #fff;
}
.icon svg { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .icon { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); } }

/* ---------- Screenshots ---------- */

.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.shot { margin: 0; }
.shot.featured { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.shot.featured .frame { flex: 1; aspect-ratio: auto; }
@media (max-width: 900px) {
    .shots { grid-template-columns: repeat(2, 1fr); }
    .shot.featured { grid-row: auto; }
    .shot.featured .frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
    .shots { grid-template-columns: 1fr; }
    .shot.featured { grid-column: auto; }
}
.shot .frame {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: var(--bg-sunken);
    display: block;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    width: 100%;
    padding: 0;
    border: 0;
}
.shot .frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--border);
    pointer-events: none;
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter 0.2s ease; }
.shot .frame:hover img { filter: brightness(1.06); }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--text-dim); }
.shot figcaption b { color: var(--text); font-weight: 600; }

/* lightbox */
.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(1400px, 94vw);
    max-height: 92vh;
    overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 12px; margin: 0 auto; }
.lightbox p { color: #f5f5f7; text-align: center; margin: 12px 0 0; font-size: 15px; }
.lightbox .close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #f5f5f7;
    color: #1d1d1f;
    font: 600 20px/1 var(--font);
    cursor: pointer;
    display: grid;
    place-items: center;
}
@media (max-width: 600px) { .lightbox .close { top: auto; bottom: -56px; right: 50%; transform: translateX(50%); } }

/* ---------- Pick your parts: a preferences panel ---------- */

.parts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) { .parts { grid-template-columns: 1fr; gap: 32px; } }
.parts .section-head { margin-bottom: 0; }
.parts .section-head p + p { margin-top: 14px; font-size: 16px; }

.prefs {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
}
.prefs-label { font-size: 13px; font-weight: 600; color: var(--text-dim); margin: 0 4px 10px; }
.prefs .segmented { display: flex; width: 100%; margin-bottom: 20px; }
.prefs .segmented button { flex: 1; padding: 7px 8px; }
.prefs-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.prefs-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    transition: opacity 0.2s ease;
}
.prefs-list li:first-child { border-top: 0; }
.prefs-list li.sub { padding-left: 34px; }
.prefs-list li.unavailable { opacity: 0.45; }
.prefs-list .txt { flex: 1; min-width: 0; }
.prefs-list b { display: block; font-size: 15px; font-weight: 600; }
.prefs-list span { display: block; font-size: 13px; color: var(--text-dim); line-height: 1.4; }

.switch {
    flex: none;
    width: 42px;
    height: 26px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 18%, transparent);
    position: relative;
    transition: background-color 0.2s ease;
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--ease);
}
.on .switch { background: var(--accent-fill); }
.on .switch::after { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after, .prefs-list li { transition: none; } }

/* ---------- Hub tabs ---------- */

.activities { display: grid; grid-template-columns: 1fr minmax(0, 450px); gap: 48px; align-items: center; }
@media (max-width: 860px) { .activities { grid-template-columns: 1fr; gap: 28px; } }
.activities .section-head { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-dim); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-fill); }
.checks b { color: var(--text); }
.activity-shot { margin: 0; justify-self: center; }
.activity-shot img { display: block; width: min(450px, 100%); height: auto; border-radius: 18px; box-shadow: var(--shadow); }

.shapes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .shapes { grid-template-columns: 1fr; } }
.shape { margin: 0; }
.shape img {
    display: block; width: 100%; height: auto; border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
}
.shape figcaption { margin-top: 14px; }
.shape figcaption b { display: block; font-size: 19px; margin-bottom: 4px; }
.shape figcaption span { color: var(--text-dim); font-size: 15px; }

.tabs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tabs-list li { padding: 16px 0; border-top: 1px solid var(--border); }
.tabs-list b { display: block; font-size: 17px; margin-bottom: 2px; }
.tabs-list span { color: var(--text-dim); font-size: 15px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elev); }
.band .table-wrap { background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; color: var(--text-dim); font-weight: 600; }

kbd {
    font-family: var(--font);
    font-size: 0.85em;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    white-space: nowrap;
}

code { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
    background: var(--bg-sunken);
    padding: 2px 6px;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

/* Code blocks with copy button */
.code {
    display: flex;
    align-items: flex-start;
    background: var(--code-bg);
    color: var(--code-text);
    border-radius: 14px;
    margin: 14px 0;
    border: 1px solid var(--border);
}
.code pre {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}
.code .comment { color: #98989d; }
.copy {
    flex: none;
    margin: 9px 9px 0 0;
    font: 600 13px var(--font);
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 6px 12px;
    min-height: 32px;
    cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.18); }

/* Callouts */
.note {
    border-radius: 14px;
    padding: 14px 18px;
    background: color-mix(in srgb, var(--accent) 9%, var(--bg-elev));
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    font-size: 15px;
    margin: 16px 0;
}
.note.warn {
    background: color-mix(in srgb, #ff9f0a 12%, var(--bg-elev));
    border-color: color-mix(in srgb, #ff9f0a 35%, transparent);
}
.note > b:first-child { display: block; margin-bottom: 2px; }

/* Final CTA */
.final { text-align: center; }
.final .mark {
    width: 72px;
    height: 26px;
    border-radius: 3px 3px 18px 18px;
    background: var(--notch);
    margin: 0 auto 28px;
}
@media (prefers-color-scheme: dark) { .final .mark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); } }
.final h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.final p { color: var(--text-dim); margin: 0 0 28px; font-size: 19px; }
.final .code { max-width: 780px; margin: 0 auto 28px; text-align: left; }

/* ---------- Install page ---------- */

.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 12px; }
.page-hero p { color: var(--text-dim); font-size: 20px; margin: 0; max-width: 640px; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 32px 0 80px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.toc { position: sticky; top: 80px; align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; font-weight: 600; }
.toc a { display: block; color: var(--text-dim); padding: 5px 0 5px 12px; border-left: 2px solid var(--border); }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--accent); text-decoration: none; }

.doc { max-width: 760px; }
.doc h2 {
    font-size: 28px;
    letter-spacing: -0.02em;
    margin: 56px 0 12px;
    scroll-margin-top: 80px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--text-dim); }

/* Linux / Windows split */
.page-hero p.os-jump { font-size: 17px; margin-top: 10px; }
.toc b.toc-group { margin: 22px 0 10px; }
.os-label { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim) !important; }
.os-label + h2 { margin-top: 0; }
.os-label-break { margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--border); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0; }
.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 46px;
    margin-bottom: 22px;
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
    font-size: 14px;
    display: grid;
    place-items: center;
}
.steps > li > b { display: block; margin-bottom: 2px; }

.method-tabs { display: flex; gap: 2px; padding: 3px; background: var(--bg-sunken); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; margin: 16px 0 8px; }
.method-tabs button {
    font: 500 14px var(--font);
    border: 0;
    background: transparent;
    color: var(--text-dim);
    padding: 8px 14px;
    min-height: 36px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
}
.method-tabs button:hover { color: var(--text); }
.method-tabs button[aria-selected="true"] { background: var(--bg-elev); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.method-panel[hidden] { display: none; }

details {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 10px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 6px 0; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: 14px; color: var(--text-dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.next-up { margin: 28px 0 0; font-size: 15px; color: var(--text-dim); }

/* full-width header, matching the home page */
.site-header .wrap { max-width: none; padding: 0 clamp(20px, 4vw, 64px); }
