/* cuestudio.show — visual foundation
 *
 * "Console" (October 2026): a darker ground than the app's appBG, Archivo for
 * type (semi-condensed bold headlines, regular-width body, tabular figures
 * for readouts), and a wider page. Colours below
 * still come from AppTheme; the ground was taken a step darker so the real
 * window captures (which carry appBG) read as windows sitting on the page.
 *
 * Every value below is lifted from the app itself, not re-invented for the
 * web: colours from `AppTheme` (CueStudio/Theme.swift, dark mode) and the type
 * face from `DS`. A visitor who downloads CueStudio should recognise the site
 * they were just on. When Theme.swift changes, change this file to match — it
 * is a mirror, not a separate design.
 *
 *   AppTheme.appBG      0.10 0.10 0.13  →  #1a1a21
 *   AppTheme.panelBG    0.09 0.09 0.12  →  #17171f
 *   AppTheme.panelBG2   0.12 0.12 0.15  →  #1f1f26
 *   AppTheme.clockBG    0.06 0.06 0.08  →  #0f0f14
 *   AppTheme.accent     0.96 0.63 0.13  →  #f5a121   (amber, ONE per view)
 *
 * The app's rule holds here: amber is the single most important action on a
 * page, never decoration. Everything else is neutral or a semantic colour used
 * where its meaning applies.
 */

/* Archivo, self-hosted (SIL OFL 1.1, assets/fonts/OFL.txt). One variable
   file per subset carrying both weight (100-900) and width (62-125%), so the
   semi-condensed headlines and the regular-width body come from the same
   download. Served from here rather than Google Fonts so a page view hands no
   visitor's address to a third party for the sake of a typeface. Latin +
   Latin Extended only: that covers every language the site is written in.
   There is no web mono face: labels and readouts use Archivo with tabular
   figures, and actual code falls back to the visitor's system monospace. */
@font-face {
    font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
    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: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Surfaces — appBG / panelBG2 / panelBG / clockBG. Cool near-black, the
       same slightly blue-shifted greys the console renders in. */
    --bg:            #101015;
    --bg-raised:     #18181f;
    --bg-panel:      #141419;
    --bg-inset:      #0a0a0e;

    /* AppTheme.divider (white 12%) and .stroke (white 18%). Alpha rather than
       flat hex so borders sit correctly on every surface, exactly as in-app. */
    --line:          rgba(255, 255, 255, 0.12);
    --line-strong:   rgba(255, 255, 255, 0.18);

    /* AppTheme text ramp, lifted at the quiet end. Ratios against #1a1a21:
     *   --text-second  white 80%  ≈ 10.8:1
     *   --text-muted   white 68%  ≈  8.0:1   (was 58% / 6.5:1)
     *   --text-faint   white 46%  ≈  4.5:1   (was 38% / 3.4:1)
     *
     * This is a deliberate departure from Theme.swift rather than a drift. In
     * the app those greys sit 50cm from your face on a colour-managed display,
     * in a dark room, carrying labels you already know the meaning of. Here
     * they carry the actual sentences, on whatever monitor is in the office,
     * often in daylight. --text-muted does most of the real reading on this
     * site, so it has to clear a body-text bar the app's version never had to.
     */
    --text:          #ffffff;
    --text-second:   rgba(255, 255, 255, 0.80);
    --text-muted:    rgba(255, 255, 255, 0.68);
    --text-faint:    rgba(255, 255, 255, 0.50);   /* ≈5.3:1 on #101015 */

    /* AppTheme.buttonBG / buttonBGHov. */
    --button-bg:     rgba(255, 255, 255, 0.13);
    --button-bg-hov: rgba(255, 255, 255, 0.20);

    /* AppTheme.accent — amber, flat. The app deliberately avoids pure orange
       (it vibrates against near-black) and never gradients an accent. */
    --accent:        #f5a121;
    --accent-bright: #ffb84d;
    --accent-dim:    rgba(245, 161, 33, 0.55);   /* accentSoft */
    --accent-glow:   rgba(245, 161, 33, 0.16);

    /* Semantic palette — AppTheme.success / danger / warning / info / violet,
       plus the transport GO green. Same rule as the app: meaning, not decor. */
    --go:            #5ec26b;
    --go-transport:  #1ad138;
    --danger:        #e65c5c;
    --warning:       #e8c447;
    --info:          #4fa8e0;
    --violet:        #b085db;

    /* Archivo for everything a visitor reads. --font-label is the small
       tracked face for kickers, table heads and readouts — the same family,
       so the page doesn't switch voice mid-sentence. --font-code is only for
       literal code, where a real monospace matters. */
    --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, system-ui,
                 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-label: var(--font-sans);
    --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --stretch-display: 85%;

    /* One spacing scale, used everywhere. */
    --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
    --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
    --s9: 6rem;    --s10: 8rem;

    /* Tighter than the earlier web-only radii — the console's corners. */
    --radius:    8px;
    --radius-sm: 5px;
    --radius-lg: 12px;

    --measure: 68ch;
    --page:    1240px;
}

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

/* 106.25% of whatever the reader's browser is set to — 17px at the default,
   and still 20px for someone who has set their browser to 19px. A hard
   `font-size: 17px` here would silently override that preference, which is
   exactly the person who needed the increase most. Every rem below scales
   from this, so the whole page moves together. */
html {
    font-size: 106.25%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Reduced motion is a request to stop things moving on their own, not a request
 * to strip the interface of feedback. The blanket 0.01ms rule that used to live
 * here killed hover and focus transitions too, which made every control feel
 * broken for the people who asked for calm.
 *
 * So: looping and decorative animation stops and holds a sensible frame, while
 * short state transitions on things you are actually touching stay. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    /* Anything that loops or drifts by itself. */
    .rig-anim,
    .cue-progress,
    [class*="marquee"] {
        animation: none !important;
    }

    /* The selected washes hold at full rather than mid-breath. */
    .rig-anim { opacity: 1; }

    /* Autoplaying figure video is decoration; the poster frame says the same
       thing without the movement. */
    .media-frame video { display: none; }

    /* Long, sweeping transitions become instant; the sub-200ms ones that make
       buttons feel connected are left alone. */
    *, *::before, *::after {
        transition-duration: min(var(--motion-dur, 0.15s), 0.15s);
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    /* Was a hard 16px, which pinned body copy while every rem-based class
       around it scaled — the reason the page read small no matter what the
       root was set to. */
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Headlines are Archivo semi-condensed and bold: poster weight, the way show
   titles and console panel legends are set. Condensed letterforms already sit
   close, so tracking is only lightly tightened — any more and they collide. */
h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-weight: 650;
}

h1, h2 { font-stretch: var(--stretch-display); font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.3rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem);  letter-spacing: -0.012em; }
h3 { font-size: 1.25rem; }

p { margin: 0; }

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

/* A <button> that has to read as a link because it sits inside a sentence.
   Used by the pricing page's tax-region switch: it performs an action rather
   than navigating, so it must be a button for keyboard and screen-reader
   users, but styling it as a real button would put OS chrome mid-paragraph. */
.btn-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.btn-link:hover { color: var(--accent-bright); }

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

/* ── Layout ─────────────────────────────────────────────────────────────── */

.page {
    width: 100%;
    max-width: var(--page);
    margin-inline: auto;
    padding-inline: var(--s5);
}

.section     { padding-block: var(--s9); }
.section-tight { padding-block: var(--s7); }

/* Consecutive sections were adding their full padding to each other, which
   left 8-12rem voids between blocks that read as missing content rather than
   as breathing room. A section following another only needs the gap once. */
.section + .section,
.section + .section-tight,
.section-tight + .section { padding-top: var(--s7); }
.band + .section, .section + .band { padding-top: var(--s9); }

.rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    border: 0;
    margin: 0;
}

.stack        { display: flex; flex-direction: column; gap: var(--s4); }
.stack-lg     { display: flex; flex-direction: column; gap: var(--s6); }
.row          { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ── Type helpers ───────────────────────────────────────────────────────── */

/* The app's section caps: DS.fontSectionCap — 9pt rounded BOLD with kerning,
   uppercase. Same shape, scaled for a browser. */
.eyebrow {
    font-family: var(--font-label);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.lede {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.55;
    color: var(--text-second);
    max-width: var(--measure);
}

.body     { color: var(--text-second); max-width: var(--measure); }
.muted    { color: var(--text-muted); }

/* .small is misleadingly named: it carries most of the real prose on this site
   — card copy, FAQ answers, the point lists, the walkthrough steps. At 0.875rem
   it was 14px doing a body-text job. It is now a shade under body size rather
   than a caption size; anything genuinely caption-sized should use .caption. */
.small    { font-size: 0.95rem; line-height: 1.6; }
.caption  { font-size: 0.84rem; }
.mono     { font-family: var(--font-label); font-variant-numeric: tabular-nums; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.12s ease, border-color 0.12s ease,
                color 0.12s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* The app's primary affordance: a FLAT amber fill with near-black text — the
   GO button, the armed cue, the one thing on screen you are meant to hit. No
   gradient, no glow: the console doesn't gradient its accent and neither does
   this. #1a1a21 on #f5a121 measures ≈8.1:1. */
.btn-primary {
    background: var(--accent);
    color: #1a1a21;
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-bright);
    color: #1a1a21;
}

/* AppTheme.buttonBG — a white wash over the panel, lifting to buttonBGHov. */
.btn-secondary {
    background: var(--button-bg);
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--button-bg-hov);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost { background: transparent; color: var(--text-second); padding-inline: 0.6rem; }
.btn-ghost:hover:not(:disabled) { color: var(--text); }

.btn-danger { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(230, 92, 92, 0.18); }

.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ── Panels ─────────────────────────────────────────────────────────────── */

/* A console panel: flat raised surface, hairline divider border. The app's
   panels are flat — depth comes from the surface step, not from bevels. */
.panel {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s5);
}

/* The one surface per page that should read as selected — the same treatment
   an armed cue gets in the list: accent border over an accent-tinted fill. */
.panel-forged {
    border-color: var(--accent-dim);
    background:
        linear-gradient(180deg, var(--accent-glow), rgba(245, 161, 33, 0.04)),
        var(--bg-raised);
}

.panel-flush { padding: 0; overflow: hidden; }

.field-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-second);
    margin-bottom: var(--s2);
}

.input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: var(--bg-inset);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}
.input:focus { border-color: var(--accent); outline: none; }
.input::placeholder { color: var(--text-faint); }

/* Block, not flex. Every notice on the site is a paragraph of prose, and a
   flex container turns each <strong>, <a> and text run inside it into its own
   column: the pricing page's "not on sale" notice rendered as seven narrow
   stacks of words. If a notice ever needs an icon, wrap the prose in a span
   and lay that one variant out explicitly. */
.notice {
    display: block;
    padding: var(--s3) var(--s4);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.55;
    border: 1px solid;
}
/* dangerSoft / successSoft / accentSoft — the app's badge treatment: the
   semantic colour at ~18% behind the semantic colour at full strength. */
.notice-error   { background: rgba(230, 92, 92, 0.14);  border-color: rgba(230, 92, 92, 0.34);  color: #f0918f; }
.notice-success { background: rgba(94, 194, 107, 0.14); border-color: rgba(94, 194, 107, 0.34); color: #8ad494; }
.notice-info    { background: var(--accent-glow);       border-color: var(--accent-dim);        color: var(--accent-bright); }
.notice a { text-decoration: underline; text-underline-offset: 2px; }
.notice-error a { color: inherit; }
.notice-success a { color: inherit; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.16rem 0.5rem;
    border-radius: 100px;
    font-family: var(--font-label);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tag-accent { background: rgba(245,161,33,0.18);     color: var(--accent); }
.tag-forged { background: var(--accent);             color: #1a1a21; }
.tag-go     { background: rgba(94,194,107,0.18);     color: var(--go); }
.tag-muted  { background: rgba(255,255,255,0.10);    color: var(--text-muted); }
.tag-danger { background: rgba(230,92,92,0.18);      color: var(--danger); }

/* ── Grids ──────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: var(--s4); }

/* Wide enough that four cards land 2×2 rather than 3-then-1, which reads as a
   mistake. Below ~880px it collapses to one column. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ── Cue list figure ────────────────────────────────────────────────────── */

.cue-grid {
    display: grid;
    grid-template-columns: 3.4rem 1fr 4.2rem 3.4rem;
    gap: var(--s3);
    align-items: center;
    padding-inline: var(--s4);
}

.cue-head {
    padding-block: 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line);
}

.cue-row {
    position: relative;
    padding-block: 0.42rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.83rem;
}

.cue-type,
.cue-len { font-size: 0.7rem; }

/* On a phone the fixed columns ate 215px of a 327px panel, so EVERY cue name
   truncated — the product's signature view rendered broken on the device most
   first-time visitors arrive on. Drop TYPE (the colour bar already encodes it)
   and tighten the rest so names survive. */
@media (max-width: 560px) {
    .cue-grid { grid-template-columns: 2.9rem 1fr 3rem; gap: var(--s2); padding-inline: var(--s3); }
    .cue-type { display: none; }
}

/* ── Site nav ───────────────────────────────────────────────────────────── */

.nav-bar {
    display: flex;
    align-items: center;
    gap: var(--s5);
    height: 60px;
    flex-wrap: nowrap;
}

/* The brand is also the home link — give it a full-height hit area. */
.nav-bar > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }

.nav-links { display: flex; align-items: center; gap: var(--s5); }

.nav-links a,
.nav-actions a { white-space: nowrap; }

.nav-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: nowrap; }

/* The menu toggle only exists on narrow screens. */
.nav-toggle { display: none; }

@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-bar { gap: var(--s2); }

    /* Compact the always-visible actions so brand + Sign in + Menu all fit a
       375px phone without the bar scrolling sideways. */
    .nav-actions .btn { padding-inline: 0.75rem; font-size: 0.92rem; min-height: 42px; }

    /* A real menu, not a vanishing act. The earlier version hid the links AND
       the Sign in button below 420px with nothing to replace them, so a
       returning operator on a phone — the exact person who needs to free a
       seat on a dead Mac mid-load-in — had no way into their account. */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 44px;
        padding: 0 0.7rem;
        background: transparent;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        color: var(--text);
        font: inherit;
        font-size: 0.95rem;
        cursor: pointer;
        list-style: none;
    }
    .nav-toggle::-webkit-details-marker { display: none; }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg-raised);
        border-block: 1px solid var(--line);
        box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
        padding: var(--s3) var(--s5) var(--s5);
        display: flex;
        flex-direction: column;
        gap: var(--s1);
    }
    /* 44px minimum touch target — the previous footer-only nav was 22px. */
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        color: var(--text-second);
        border-bottom: 1px solid var(--line);
    }
    .nav-menu a:last-of-type { border-bottom: 0; }
    .nav-menu .btn { margin-top: var(--s3); min-height: 44px; }
}

/* Below 560px the bar is brand + Sign in + Menu. The buy CTA drops out rather
   than squeezing the account action off the edge — Get CueStudio is the first
   thing in the menu, and every page has a pricing link. */
@media (max-width: 560px) {
    .nav-cta { display: none; }
}

@media (min-width: 821px) {
    /* Actions live in .nav-actions at every width now, so the disclosure holds
       only the section links — which .nav-links already shows inline here. */
    .nav-disclosure { display: none; }
}

.nav-menu-cta { margin-top: var(--s3); }

/* Footer links were 22px tall and are the only nav on small screens. */
.footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
/* A link inside running text keeps the line's height. .footer-link's 44px
   box is for the column nav; used mid-sentence it inflated the line and
   split "(ndi.video)" across two of them. */
.legal-note a {
    display: inline;
    min-height: 0;
    color: var(--text-second);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* The recommended plan was the LAST card once the grid wrapped — the option
   we want chosen, buried below two cheaper ones. The grid holds three-up down
   to ~790px (see .plan-grid); below that it wraps, so that is where the
   featured card moves to the front. */
@media (max-width: 790px) {
    .plan-featured { order: -1; }
}

/* ── Utility ────────────────────────────────────────────────────────────── */

.center     { text-align: center; }
.center-col { margin-inline: auto; }
.spacer     { flex: 1; }

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

.skip-link {
    position: absolute; left: var(--s4); top: -100px;
    background: var(--accent); color: #17120a;
    padding: var(--s3) var(--s4); border-radius: var(--radius-sm);
    z-index: 100; font-weight: 600;
}
.skip-link:focus { top: var(--s4); }

/* ── PHP build: classes replacing what were inline styles in the React version.
      Everything above this line is the same design system, unchanged. ─────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 16, 21, 0.86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-bar { position: relative; }

.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap; color: var(--text); }
.wordmark img { border-radius: 22%; box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 2px 10px rgba(0,0,0,0.6); }
.wordmark span { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.005em; font-stretch: var(--stretch-display); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .page { padding-block: var(--s7); }
.footer-cols { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-heading {
    margin: 0; font-family: var(--font-label); font-size: 0.74rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 500;
}
.site-footer a { color: var(--text-second); }
/* Load Out's door: a forklift in the footer, quiet but findable. Its
   beacon blinks slowly in Load Out's safety yellow, like the real
   thing's; hovered, the whole truck lights up and noses forward. */
.site-footer .loadout-egg {
    display: inline-flex; vertical-align: -4px; margin-left: var(--s2);
    color: var(--text-second); opacity: 0.75;
    transition: opacity .2s ease, color .2s ease, transform .25s cubic-bezier(.23,1,.32,1);
}
.site-footer .loadout-egg .beacon { color: #f5b700; animation: loadout-beacon 2.4s ease-in-out infinite; }
.site-footer .loadout-egg:hover, .site-footer .loadout-egg:focus-visible {
    opacity: 1; color: #f5b700; transform: translateX(3px);
}
@keyframes loadout-beacon { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .site-footer .loadout-egg .beacon { animation: none; }
    .site-footer .loadout-egg:hover, .site-footer .loadout-egg:focus-visible { transform: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-heat {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(720px 400px at 10% -10%, rgba(245,161,33,0.10), transparent 68%),
        radial-gradient(420px 260px at 4% 8%, rgba(245,161,33,0.06), transparent 70%);
}
.hero-inner { position: relative; padding-block: var(--s9) var(--s8); }
.hero-grid {
    display: grid; gap: var(--s8); align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

/* The accent, applied to type. Flat — the app never gradients its accent, and
   clipped-gradient text also breaks selection highlighting and forced-colours
   mode. Kept as a class so pages can mark the one phrase that carries it. */
.poured { color: var(--accent); }

.page-title { font-size: clamp(2rem, 4vw, 2.9rem); }

.band { background: var(--bg-raised); border-block: 1px solid var(--line); }
.split { display: grid; gap: var(--s7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.point { gap: var(--s1); padding-left: var(--s4); border-left: 1px solid var(--line-strong); }
.surface { gap: var(--s1); padding-block: var(--s3); border-top: 1px solid var(--line); }
.closing { align-items: center; padding-block: var(--s7); }
.faq-header { position: sticky; top: 5rem; align-self: start; }

.shot img { width: 100%; height: auto; display: block; }
.shot { box-shadow: 0 24px 60px -28px rgba(0,0,0,0.9); }

/* Pricing */
.plan-grid {
    display: grid; gap: var(--s4); align-items: stretch;
    /* 236px keeps three cards abreast on an 820px tablet; at 260px the third
       card wrapped alone onto its own row, full width, looking like an
       afterthought — and it was the Year, the one we recommend. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr));
}
.plan-price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.01em; font-stretch: var(--stretch-display); font-variant-numeric: tabular-nums; color: var(--text); }

/* System requirements. Label left, value right on a wide screen; on a phone
   the long values wrapped under a right-aligned edge with the label orphaned
   on the line above, so there they stack, both left-aligned. */
.req-row { justify-content: space-between; gap: var(--s4); align-items: baseline; }
.req-row dd { text-align: right; }
@media (max-width: 560px) {
    .req-row { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
    .req-row dd { text-align: left; }
}

/* Download steps */
.steps { margin: 0; padding-left: 0; list-style: none; }
.step-num {
    flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line-strong);
    color: var(--accent); font-size: 0.75rem;
}

/* Account */
.stat-grid { margin: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.stat-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.seat-head { justify-content: space-between; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.seat-list { list-style: none; margin: 0; padding: 0; }
.seat-row { justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.seat-btn { padding: 0.5rem 0.9rem; min-height: 44px; white-space: nowrap; }
.seat-note { padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }

.anchored { scroll-margin-top: 5rem; }
.body-text { color: var(--text-second); }

/* Cue figure */
.cue-window { box-shadow: 0 30px 80px -30px rgba(0,0,0,0.75); background: var(--bg-panel); }
.cue-titlebar { gap: var(--s2); padding: 0.6rem var(--s4); border-bottom: 1px solid var(--line); background: var(--bg); flex-wrap: nowrap; }
.cue-dots { display: flex; gap: 6px; }
.cue-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); display: block; }
.cue-rows { list-style: none; margin: 0; padding: 0; }
.cue-num { font-size: 0.76rem; color: var(--text-muted); }
.cue-bar { width: 3px; height: 13px; border-radius: 2px; flex-shrink: 0; display: block; }
.cue-label { color: var(--text-second); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cue-len { text-align: right; color: var(--text-muted); }
.cue-type { color: var(--text-muted); }

.cue-row.is-next { background: rgba(245,161,33,0.09); box-shadow: inset 2px 0 0 var(--accent); }
.cue-row.is-playing { background: linear-gradient(90deg, rgba(94,194,107,0.18), rgba(94,194,107,0.04) 62%, transparent); }
.cue-row.is-playing .cue-num { color: var(--go); font-weight: 600; }
.cue-row.is-playing .cue-label { color: var(--text); }
.cue-row.is-playing .cue-len { color: var(--go); }

.cue-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--go); opacity: 0.8; }

.cue-transport { gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--bg); flex-wrap: nowrap; }
.cue-go { padding: 0.28rem 0.9rem; border-radius: 5px; background: var(--go-transport); color: #06180d; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; }
.cue-clock { font-size: 0.95rem; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.plan-price.poured { color: var(--accent); }

/* Shown only while the site is running on config.sample.php. */
.setup-banner {
    background: rgba(245, 161, 33, 0.14);
    border-bottom: 1px solid var(--accent-dim);
    color: var(--accent-bright);
    font-size: 0.92rem;
    line-height: 1.5;
    padding-block: var(--s3);
}
.setup-banner code {
    font-family: var(--font-code);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* ── Admin portal ───────────────────────────────────────────────────────── */

.admin-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.admin-stat { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th {
    text-align: left; font-family: var(--font-label); font-weight: 500;
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); padding: var(--s3) var(--s5);
    border-bottom: 1px solid var(--line);
}
.admin-table td { padding: var(--s3) var(--s5); border-top: 1px solid var(--line); }
.admin-table td:first-child { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Public coming-soon variant of the banner: centred, accented, deliberate. */
.setup-banner.coming-soon { text-align: center; padding-block: var(--s4); }
.setup-banner.coming-soon .page {
    display: flex; flex-direction: column; gap: 0.2rem; align-items: center;
}
.setup-banner.coming-soon .mono {
    font-size: 0.68rem; letter-spacing: 0.22em; color: var(--text-muted);
}
.setup-banner.coming-soon strong {
    font-size: 1rem; letter-spacing: 0.12em; font-weight: 650;
    color: var(--accent);
}

/* Honeypot: moved off-canvas rather than display:none, which lazier bots
   detect. Humans never see or tab into it. */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

/* ── Home page ──────────────────────────────────────────────────────────────
 *
 * The hero used the .eyebrow cap for "Show control for macOS". That class
 * uppercases, which turned the product's own platform name into MACOS — Apple
 * writes it lowercase-m, and an all-caps version of a proper noun reads as a
 * typo to the audience most likely to notice. This is its own class: same
 * amber, real sentence case, and sized as a line people are meant to read
 * rather than a label they skim past.
 */
.hero-kicker {
    font-weight: 700;
    font-size: clamp(1.05rem, 2.3vw, 1.5rem);
    line-height: 1.3;
    letter-spacing: -0.008em;
    color: var(--accent);
}

/* The free demo is the single strongest reason to click Download, and it was
   set in .small .muted — the quietest type on the page. */
.demo-note {
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.5;
    color: var(--text-second);
}
.demo-note strong { color: var(--text); font-weight: 650; }

/* Section headings that should run the width of the column rather than being
   pinned to a narrow measure. Body copy underneath keeps a measure — a 110ch
   paragraph is genuinely harder to read, a 110ch heading is not. */
.header-wide { max-width: none; }
.header-wide .body,
.header-wide .lede { max-width: 62ch; }

/* Autoplaying clip in place of the still. Muted + inline + loop so iOS plays
   it without a tap and nothing ever asks for audio. */
.media-frame { position: relative; }
.media-frame video,
.media-frame img { width: 100%; height: auto; display: block; }

/* Capability cards: optional illustration above the copy. The card renders
   perfectly well without one, so a missing file costs nothing. */
.cap-shot {
    margin: 0 0 var(--s2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-inset);
}
.cap-shot img { width: 100%; height: auto; display: block; }

/* Quotes. Rendered only when there are real ones to render. */
.quote-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote blockquote {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-second);
}
.quote figcaption { color: var(--text-muted); font-size: 0.92rem; }
.quote cite { font-style: normal; font-weight: 600; color: var(--text); }

/* ── What's included ────────────────────────────────────────────────────── */

/* One list per group, three abreast. Replaced a table whose three tick
   columns were identical by construction. */
.incl-groups { gap: var(--s6) var(--s5); }
.incl-group-col { gap: var(--s3); }

/* ── Start here ─────────────────────────────────────────────────────────── */

.video-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.video-card { padding: 0; overflow: hidden; }
.video-card video,
.video-card iframe,
.video-card img { width: 100%; display: block; border: 0; aspect-ratio: 16 / 9; }
.video-card .video-meta { padding: var(--s4) var(--s5); }

/* ── Features page ──────────────────────────────────────────────────────── */

.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.feature-list li {
    display: grid;
    grid-template-columns: 0.9rem 1fr;
    gap: var(--s3);
    align-items: start;
    font-size: 0.98rem;
    color: var(--text-second);
    line-height: 1.5;
}
.feature-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: 0.62em;
    border-radius: 50%;
    background: var(--accent-dim);
}
.feature-list b { color: var(--text); font-weight: 600; }

/* ── About ──────────────────────────────────────────────────────────────── */

.principle { gap: var(--s2); padding-left: var(--s4); border-left: 1px solid var(--line-strong); }

/* ── Manual ─────────────────────────────────────────────────────────────────
 *
 * A documentation layout rather than a marketing one: a persistent contents
 * column, a comfortable measure for long-form reading, and headings that can
 * be linked to. Content is generated from the app's own manual, so nothing
 * here may assume prose it can edit — it has to render whatever the app says.
 */

.manual-page {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: var(--s8);
    align-items: start;
    padding-block: var(--s7) var(--s8);
}

.manual-nav {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-right: var(--s3);
    /* The scrollbar is the only thing between the nav and the text column. */
    scrollbar-width: thin;
}
.manual-nav-body {
    display: flex;
    flex-direction: column;
    gap: var(--s5);
}

/* The disclosure control exists for narrow screens only. Beside the article
   there is room for the whole list, so the summary is hidden and the details
   element is left permanently open (the script that closes it never fires
   above 900px). */
.manual-nav-summary {
    display: none;
    list-style: none;
    cursor: pointer;
}
.manual-nav-summary::-webkit-details-marker { display: none; }

.manual-nav-home {
    font-weight: 600;
    color: var(--text-second);
}
.manual-nav-home.is-current { color: var(--accent); }

.manual-nav-group { display: flex; flex-direction: column; gap: 0.15rem; }

.manual-nav-head {
    font-family: var(--font-label);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--s2);
}

.manual-nav-link {
    display: block;
    padding: 0.3rem 0 0.3rem var(--s3);
    border-left: 2px solid var(--line);
    color: var(--text-second);
    font-size: 0.95rem;
    line-height: 1.4;
}
.manual-nav-link:hover { color: var(--text); border-left-color: var(--line-strong); }
.manual-nav-link.is-current {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.manual-main { min-width: 0; }

/* 72ch: long enough not to fragment a reference sentence, short enough to
   track back to the next line. The marketing pages use 68ch, but this is
   read in long stretches. */
.manual-body { max-width: 72ch; }
.manual-body .page-title { margin-bottom: var(--s2); }

.manual-crumb { font-size: 0.9rem; margin-bottom: var(--s3); }

.manual-body p { margin-block: var(--s4); color: var(--text-second); }

.manual-h {
    font-size: 1.3rem;
    margin-top: var(--s7);
    margin-bottom: var(--s3);
    scroll-margin-top: 5rem;
    position: relative;
}
.manual-h:first-of-type { margin-top: var(--s6); }

/* The anchor sits in the left margin and only appears on hover, so it is
   available to anyone linking a colleague to one paragraph without putting a
   hash in front of every heading. */
.manual-anchor {
    position: absolute;
    left: -1.1em;
    color: var(--text-faint);
    opacity: 0;
    font-weight: 400;
    transition: opacity 0.12s ease;
}
.manual-h:hover .manual-anchor,
.manual-anchor:focus-visible { opacity: 1; }

.manual-list { margin-block: var(--s4); padding-left: 1.25rem; }
.manual-list li {
    margin-block: 0.45rem;
    color: var(--text-second);
    line-height: 1.6;
}
.manual-list li::marker { color: var(--text-faint); }
.manual-list b { color: var(--text); font-weight: 600; }

.manual-toc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-panel);
    padding: var(--s4) var(--s5);
    margin-block: var(--s5);
}
.manual-toc ul {
    margin: var(--s2) 0 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: var(--s5);
}
.manual-toc li { margin-block: 0.2rem; break-inside: avoid; }
.manual-toc a { font-size: 0.95rem; color: var(--text-second); }
.manual-toc a:hover { color: var(--accent); }

.manual-group-title { font-size: 1.35rem; }

.manual-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.manual-card {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    color: var(--text);
    transition: border-color 0.12s ease, background-color 0.12s ease;
}
.manual-card:hover { border-color: var(--accent-dim); background: var(--bg-panel); color: var(--text); }
.manual-card h3 { font-size: 1.1rem; }

.manual-search { position: relative; max-width: 34rem; }
.manual-results {
    list-style: none;
    margin: var(--s2) 0 0;
    padding: var(--s2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-raised);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}
.manual-results li { display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline; }
.manual-results a {
    display: block;
    flex: 1;
    padding: 0.4rem var(--s3);
    color: var(--text-second);
    min-height: 40px;
    line-height: 1.5;
}
.manual-results a:hover { color: var(--accent); }
.manual-results span { padding-right: var(--s3); white-space: nowrap; }

.manual-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin-top: var(--s8);
    max-width: 72ch;
}
.manual-step { display: flex; flex-direction: column; gap: 0.15rem; color: var(--text); }
.manual-step:hover { border-color: var(--accent-dim); color: var(--text); }
.manual-step-next { text-align: right; }
.manual-step-title { font-weight: 600; }

/* Below the two-column threshold the contents becomes a normal block above the
   text. A sticky sidebar on a phone would leave a few centimetres to read in. */
@media (max-width: 900px) {
    .manual-page { grid-template-columns: 1fr; gap: var(--s6); }
    .manual-nav {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0 var(--s5);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--bg-panel);
    }
    /* One 44px line that reads as a control: "Contents" and a chevron that
       turns when it is open. The list sits below it, indented to the same
       edge as the text column. */
    .manual-nav-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        font-weight: 600;
        color: var(--text);
    }
    .manual-nav-summary svg { transition: transform 0.15s ease; color: var(--text-muted); }
    .manual-nav-details[open] > .manual-nav-summary svg { transform: rotate(180deg); }
    .manual-nav-details[open] > .manual-nav-summary { border-bottom: 1px solid var(--line); }
    .manual-nav-body { padding-block: var(--s4) var(--s5); }
    .manual-toc ul { columns: 1; }
    .manual-pager { grid-template-columns: 1fr; }
    .manual-step-next { text-align: left; }
    .manual-anchor { display: none; }
}

/* Search hits: heading trail above, the matching line beneath with the term
   marked. A bare list of page titles makes you open three of them to find out
   which one actually answers the question. */
.manual-results li { display: block; }
.manual-results a {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: var(--s3);
    border-radius: var(--radius-sm);
}
.manual-results a:hover { background: var(--button-bg); color: var(--text); }
.manual-hit-title {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.manual-hit-line { font-size: 0.95rem; color: var(--text-second); line-height: 1.45; }
.manual-results mark {
    background: var(--accent-glow);
    color: var(--accent-bright);
    border-radius: 2px;
    padding: 0 1px;
}

/* ── Support tickets ────────────────────────────────────────────────────── */

/* Amber, matching the app: caution, not failure. */
.tag-warning { background: rgba(246,149,9,0.14); color: var(--accent); }

textarea.input { resize: vertical; line-height: 1.55; min-height: 6rem; }

/* Native selects ignore inherited colour on some engines and render white on
   white. Drawing our own caret is the only reliable fix. */
select.input {
    appearance: none;
    padding-right: 2rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                      linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 1.05rem) 55%, calc(100% - 0.75rem) 55%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* A message. Ours is tinted so a thread scans as a conversation, not a list. */
.msg { border-left: 2px solid var(--line-strong); }
.msg-staff { border-left-color: var(--accent); background: var(--accent-glow); }
.msg-note  { border-left-color: var(--danger); background: rgba(227,93,82,0.06); }
.msg-body  { color: var(--text-second); overflow-wrap: anywhere; }

.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6rem auto;
    align-items: center;
    gap: var(--s3);
}
.upload-row > span:first-child { overflow-wrap: anywhere; }
.upload-bar {
    height: 4px;
    border-radius: 100px;
    background: var(--bg-inset);
    overflow: hidden;
}
.upload-fill {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--pour);
    /* scaleX, not width: an upload fires this many times a second and animating
       a layout property makes the browser re-lay-out the row on every tick. */
    transition: transform 0.2s ease;
}
/* A finished upload reads full, whichever fraction the last progress event
   happened to report. */
.upload-row.is-done   .upload-fill { background: var(--go); transform: scaleX(1); }
.upload-row.is-failed .upload-fill { background: var(--danger); transform: scaleX(1); }
.upload-error { color: var(--danger); }

@media (max-width: 560px) {
    .upload-row { grid-template-columns: minmax(0, 1fr) auto; }
    .upload-bar { grid-column: 1 / -1; }
}

/* Trademark / licence notice in the footer. Small, but it is a condition of
   using the NDI and Art-Net names — not decoration. Measure kept short so it
   reads as a notice rather than a paragraph of body copy. */
.legal-note {
    margin-top: var(--s3);
    font-size: 0.74rem;
    line-height: 1.6;
    max-width: 76ch;
}

/* ── Light Designer figure ──────────────────────────────────────────────────
 *
 * A stage plan, drawn. Fixtures glow in their patched colour at their patched
 * intensity, so the picture carries the actual idea of the feature — you look
 * at the rig, not at a list of channel numbers.
 *
 * Every glow is driven by two custom properties set inline per fixture:
 *   --hue  the fixture's colour
 *   --a    0 when dark, up to ~0.62 at full — so intensity reads as intensity
 *          rather than as an on/off state.
 */

.rig-window { box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); background: var(--bg-panel); }

.rig-titlebar {
    gap: var(--s2);
    padding: 0.6rem var(--s4);
    border-bottom: 1px solid var(--line);
    background: var(--bg-raised);
    flex-wrap: nowrap;
}

.rig-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    /* Downstage is lighter: the plan reads as a room, not a grid. */
    background:
        radial-gradient(120% 82% at 50% 116%, rgba(255,255,255,0.045), transparent 62%),
        var(--bg-inset);
    overflow: hidden;
}

/* Truss lines. Hairline, because they are reference, not content. */
.rig-truss {
    position: absolute;
    left: 6%; right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

.rig-fx {
    position: absolute;
    translate: -50% -50%;
    display: grid;
    place-items: center;
    color: var(--text-faint);
    line-height: 0;
    transition: color 0.4s ease;
}

/* The pool the fixture throws. Sits behind the glyph, sized off intensity. */
.rig-fx::after {
    content: "";
    position: absolute;
    width: 210px; height: 150px;
    background: radial-gradient(closest-side, var(--hue), transparent 72%);
    opacity: calc(var(--a) * 0.5);
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

.rig-fx.is-on {
    color: var(--hue);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--hue) 70%, transparent));
}

/* Selection ring — the programmer is editing these two. */
.rig-fx.is-sel::before {
    content: "";
    position: absolute;
    inset: -9px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.85;
}

.rig-par  { --pool-y: 0; }
.rig-stage .rig-fx svg { display: block; }

/* One authored moment: the selected washes breathe, because the whole point of
   the programmer is that you are changing a level and watching the rig answer. */
@keyframes rig-breathe {
    0%, 100% { opacity: 0.62; }
    50%      { opacity: 1; }
}
.rig-anim { animation: rig-breathe 4.2s ease-in-out infinite; }

.rig-programmer {
    gap: var(--s3);
    padding: var(--s3) var(--s4);
    border-top: 1px solid var(--line);
    background: var(--bg-raised);
    flex-wrap: nowrap;
}
.rig-cmd   { font-size: 0.8rem; color: var(--text-second); white-space: nowrap; }
.rig-op    { color: var(--text-muted); }
.rig-swatches { display: flex; gap: 5px; }
.rig-swatches i {
    display: block; width: 13px; height: 13px; border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.45);
}
.rig-rec {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .rig-cmd { font-size: 0.72rem; }
    .rig-fx::after { width: 130px; height: 96px; }
}

/* ── Spec strip ─────────────────────────────────────────────────────────────
 *
 * The breadth claim on the home page. Four same-size cards is the lazy way to
 * say "we do four things"; this reads as a datasheet instead, which is what an
 * operator is actually scanning — find my department, see something specific
 * under it. The rule above each column does the separating, so there is no box
 * to make them all look interchangeable.
 */
.spec-strip {
    display: grid;
    gap: var(--s6) var(--s5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.spec { border-top: 1px solid var(--line-strong); padding-top: var(--s4); }
.spec-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s3);
}
.spec-claim {
    font-size: 1.02rem;
    font-weight: 550;
    line-height: 1.32;
    letter-spacing: -0.012em;
    color: var(--text);
    margin-bottom: var(--s3);
}
.spec-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.spec-list li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-muted);
}
/* A struck tick, not a bullet glyph — it reads as "included". */
.spec-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.56em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-dim);
}

/* ── Feature lead ───────────────────────────────────────────────────────────
   Text and figure side by side, figure biased larger — it is the evidence, the
   prose is the caption. Collapses to a single column before either gets tight. */
.feature-lead {
    display: grid;
    gap: var(--s7);
    align-items: center;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
@media (max-width: 900px) {
    .feature-lead { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
}

/* ── Surfaces ───────────────────────────────────────────────────────────── */
.surface-head { display: flex; align-items: center; gap: 0.55rem; }
.surface-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.008em;
    color: var(--text);
}
.ico { color: var(--accent); flex-shrink: 0; }

.point-title { font-size: 1.06rem; letter-spacing: -0.014em; }

/* Give the icon row a little more air than the plain surface list. */
.surface-grid .surface { padding-block: var(--s4); }

/* Fixture glyphs were legible on a 27" display and mush on a laptop. Size is
   set here rather than on each <svg> so the whole rig scales together. */
.rig-fx svg { width: 26px; height: 26px; }
.rig-par svg { width: 23px; height: 23px; }
@media (max-width: 700px) {
    .rig-fx svg  { width: 21px; height: 21px; }
    .rig-par svg { width: 19px; height: 19px; }
}

/* The hero opened with 6rem of empty plate above the headline on a phone,
   after a header and a full-width banner had already used a third of the
   screen. */
@media (max-width: 700px) {
    .hero-inner { padding-block: var(--s6) var(--s7); }
    .setup-banner.coming-soon { padding-block: var(--s3); }
    .setup-banner.coming-soon strong { font-size: 0.86rem; letter-spacing: 0.08em; }
    .setup-banner.coming-soon .mono { font-size: 0.6rem; letter-spacing: 0.16em; }
}

/* A figure inside a feature-section header. The header is normally sticky so
   the heading stays beside a long list; a header carrying a figure is too tall
   for that to be anything but annoying, so it releases. */

/* The programmer strip is nowrap so it reads as one control bar, but its
   contents have no shrink point — on a phone that made the figure wider than
   the screen and took the whole page with it. Below the fold-point it wraps,
   and the command line truncates rather than setting the width. */
.rig-cmd { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
    .rig-programmer { flex-wrap: wrap; gap: var(--s2); }
    .rig-programmer .spacer { display: none; }
    .rig-cmd { flex: 1 1 100%; }
}

/* The plan's name is the card's title. It was a kicker above the price; the
   price is the thing you look at, but the name is what the card IS. */
.plan-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* A dropped-in product screenshot. The frame is the same panel the drawn
   figures use, so a real capture and an illustration sit at the same weight
   in a section rather than one looking pasted on. */
.shot-figure { margin: 0; gap: var(--s3); }
.shot-figure img { width: 100%; height: auto; display: block; }

/* A macOS window capture. It arrives with its own rounded corners and shadow
   baked into the alpha, so it needs no frame of its own; it just needs room to
   breathe and a little lift so it sits above the page rather than on it. */
.shot-window { line-height: 0; }
.shot-window.is-portrait { max-width: 34rem; margin-inline: auto; }
.shot-figure.is-portrait { align-items: center; }

/* Two captures for one section, side by side. Each gets half the measure,
   which for these windows is still readable; on a phone they stack. */
.shot-pair {
    display: grid;
    gap: var(--s5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    align-items: start;
}
.shot-pair .shot-figure { min-width: 0; }
.shot-pair .shot-window.is-portrait { max-width: none; }
.shot-window img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.55));
}

/* ── Invoices ──────────────────────────────────────────────────────────────
   The company issues its own invoices; Stripe is only the payment rail. These
   have to survive being printed, because an operator's finance department will
   ask for a PDF and the browser's own print-to-PDF is what produces it. */

.invoice-list { width: 100%; border-collapse: collapse; }
.invoice-list th,
.invoice-list td { padding: var(--s3) var(--s5); border-bottom: 1px solid var(--rule); text-align: left; }
.invoice-list thead th { color: var(--text-second); font-weight: 600; font-size: 0.82rem; }
.invoice-list tbody tr:last-child td { border-bottom: 0; }

.invoice-doc { padding: var(--s6); }
.invoice-meta { display: flex; flex-wrap: wrap; gap: var(--s6); margin: 0; }
.invoice-meta dt { margin-bottom: 2px; }
.invoice-meta dd { margin: 0; }

.invoice-table { width: 100%; border-collapse: collapse; margin-top: var(--s2); }
.invoice-table th,
.invoice-table td { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.invoice-table thead th { color: var(--text-second); font-weight: 600; font-size: 0.82rem; text-align: left; }
.invoice-table tfoot td { border-bottom: 0; padding: 4px 0; color: var(--text-second); }
.invoice-table tfoot tr.invoice-total td { padding-top: var(--s3); border-top: 1px solid var(--rule); color: var(--text); }

/* Printing. The page chrome is navigation, not part of the document, and a
   dark background would empty a toner cartridge for no reason. */
@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .panel, .invoice-doc {
        background: #fff !important; border: 0 !important;
        box-shadow: none !important; padding: 0 !important;
    }
    .section { padding: 0 !important; }
    .muted, .small.muted, .text-second { color: #444 !important; }
    .invoice-table th, .invoice-table td,
    .invoice-table tfoot tr.invoice-total td { border-color: #ccc !important; }
    a[href]::after { content: ""; }
}

/* ── Not found ──────────────────────────────────────────────────────────── */

.not-found-path {
    font-size: 0.9em;
    padding: 0.05rem 0.4rem;
    border-radius: 4px;
    background: var(--bg-inset);
    border: 1px solid var(--line);
    color: var(--text);
    overflow-wrap: anywhere;
}
.not-found-card {
    gap: var(--s1);
    color: var(--text);
    transition: border-color 0.12s ease, background-color 0.12s ease;
}
.not-found-card:hover { border-color: var(--accent-dim); background: var(--bg-panel); color: var(--text); }

/* ── Comparison page (/cuestudio-vs-qlab) ───────────────────────────────────
 *
 * Two-product table. The row header is the thing being compared; the two
 * cells are prose, not ticks — a tick table is what a reader expects a vendor
 * to rig. A row may lean one way (compare-lean-*): a 3px stripe on the cell
 * that wins, and nothing at all when it is even. QLab's wins are marked
 * exactly like ours, which is the point of the page.
 */
.compare-wrap  { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.5; }
.compare-table thead th {
    text-align: left; font-family: var(--font-label); font-weight: 500;
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); padding: var(--s3) var(--s4);
    border-bottom: 1px solid var(--line-strong);
}
.compare-table tbody th {
    text-align: left; font-weight: 600; color: var(--text);
    padding: var(--s4); vertical-align: top; width: 22%;
    border-top: 1px solid var(--line);
}
.compare-table td {
    padding: var(--s4); vertical-align: top; color: var(--text-second);
    border-top: 1px solid var(--line); width: 39%;
    box-shadow: inset 3px 0 0 transparent;
}
.compare-table td b { color: var(--text); font-weight: 600; }
.compare-lean-cuestudio td:nth-child(2),
.compare-lean-qlab      td:nth-child(3) { box-shadow: inset 3px 0 0 var(--accent-dim); }
@media (max-width: 720px) {
    .compare-table { min-width: 640px; }
}

/* Plain disclosure FAQ, used by the comparison page. */
details.faq { border-top: 1px solid var(--line); padding-block: var(--s3); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; gap: var(--s3); align-items: baseline; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; font-family: var(--font-label); color: var(--accent); width: 1ch; }
details.faq[open] summary::before { content: "\2013"; }
details.faq p { margin: var(--s3) 0 0 calc(1ch + var(--s3)); color: var(--text-second); }

/* ══ Console (October 2026) ═══════════════════════════════════════════════════
 *
 * The layer the home, features and pricing pages are built from. Everything
 * here is prefixed c- so it can never collide with the classes the account,
 * support and admin pages still use, and those pages pick up only the token
 * changes at the top of this file (ground, type, page width).
 *
 * The shape of it: big tight headings, mono labels carrying a section number,
 * hairline rules doing the separating, and real window captures as the
 * evidence. Amber stays the one primary action per view.
 */

.nav-links a { color: var(--text-muted); font-size: 0.94rem; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.c-kicker {
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* "01 — Audio". The number carries the accent; the name stays quiet so a page
   of nine sections does not turn into nine amber headlines. */
.c-label {
    font-family: var(--font-label);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.c-label b { color: var(--accent); font-weight: 500; }

.c-display {
    font-size: clamp(2.8rem, 6.6vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.015em;
    font-weight: 750;
    font-stretch: var(--stretch-display);
}
.c-h2 {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.012em;
    font-weight: 700;
    font-stretch: var(--stretch-display);
}
.c-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--text-second); }
.c-body { color: var(--text-second); line-height: 1.65; }
.c-note { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

.c-section { padding-block: var(--s9) 0; }
.c-section:last-of-type { padding-bottom: var(--s9); }

/* Heading on the left, its sentence on the right, both on one baseline. Wraps
   to a stack before either gets cramped. */
.c-head-row {
    display: flex; flex-wrap: wrap; gap: var(--s5) var(--s8);
    align-items: flex-end; justify-content: space-between;
    margin-bottom: var(--s7);
}
.c-head-row > :first-child { flex: 1 1 520px; max-width: 760px; }
.c-head-row > :last-child  { flex: 1 1 320px; max-width: 460px; }

.c-link { font-weight: 500; }
.c-link::after { content: " \2192"; }

/* ── Hero ── */
.c-hero { padding-top: var(--s9); }
.c-hero-row {
    display: flex; flex-wrap: wrap; gap: var(--s7);
    align-items: flex-end; justify-content: space-between;
}
.c-hero-copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: var(--s5); }
.c-hero-side { flex: 1 1 360px; max-width: 470px; display: flex; flex-direction: column; gap: var(--s5); }
.c-hero-side .demo-note { font-size: 0.95rem; color: var(--text-muted); }
.c-hero-side .demo-note strong { color: var(--text-second); }
.c-hero-shot { margin-top: var(--s8); }
.c-hero-shot .media-frame { border-radius: 14px; }

@media (max-width: 700px) {
    .c-hero { padding-top: var(--s7); }
    .c-hero-shot { margin-top: var(--s6); }
    .c-section { padding-top: var(--s8); }
}

/* ── Department datasheet ── */
.c-depts {
    display: grid;
    gap: 0 var(--s6);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.c-dept {
    display: flex; flex-direction: column; gap: var(--s3);
    padding-block: var(--s5) var(--s6);
    border-top: 1px solid var(--line-strong);
}
.c-dept h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.015em; }
.c-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.c-ticks li {
    position: relative; padding-left: 1.15rem;
    font-size: 0.92rem; line-height: 1.5; color: var(--text-muted);
}
.c-ticks li::before {
    content: ""; position: absolute; left: 0; top: 0.42em;
    width: 0.55rem; height: 0.3rem;
    border-left: 1.6px solid var(--go); border-bottom: 1.6px solid var(--go);
    transform: rotate(-45deg);
}

/* ── Feature row: copy and a capture side by side ── */
.c-feature {
    display: grid; gap: var(--s7); align-items: center;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.c-feature.is-flipped { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.c-feature.is-flipped > :first-child { order: 2; }
.c-feature-copy { display: flex; flex-direction: column; gap: var(--s4); }
@media (max-width: 900px) {
    .c-feature,
    .c-feature.is-flipped { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
    .c-feature.is-flipped > :first-child { order: 0; }
}

/* ── Panel ── */
.c-panel {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(var(--s5), 4vw, var(--s8));
}

/* Primary and backup, drawn as two machines and the link between them. Markup,
   not an image: it reads to a screen reader and stays sharp at any size. */
.c-machines { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.c-machine {
    flex: 1 1 150px;
    border: 1px solid var(--line-strong); border-radius: 10px;
    padding: var(--s4);
    display: flex; flex-direction: column; gap: 0.2rem;
}
.c-machine.is-primary { border-color: var(--accent-dim); }
.c-machine-role { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-muted); }
.c-machine.is-primary .c-machine-role { color: var(--accent); }
.c-machine-name { font-weight: 500; }
.c-machine-state { font-family: var(--font-label); font-size: 0.78rem; color: var(--text-muted); }
.c-link-line {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--go);
}

.c-points { display: grid; gap: var(--s5) var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.c-points h3 { font-size: 1rem; margin-bottom: var(--s2); }
.c-points p  { font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); }

.c-split { display: flex; flex-wrap: wrap; gap: var(--s7); align-items: flex-start; }
.c-split > * { flex: 1 1 360px; min-width: 0; }

/* ── Feature items (features page) ── */
.c-jump {
    display: flex; flex-wrap: wrap; gap: var(--s2);
    padding-block: var(--s4);
    border-block: 1px solid var(--line);
}
/* Same shape and fill as .btn-secondary (Start here, What it does), just
   smaller, so the section links read as the buttons they are. */
.c-jump a {
    font-family: var(--font-label); font-size: 0.88rem; font-weight: 600;
    color: var(--text);
    background: var(--button-bg);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 0.5rem 0.95rem; min-height: 40px;
    display: inline-flex; align-items: center;
    transition: background-color 0.12s ease;
}
.c-jump a:hover { color: var(--text); background: var(--button-bg-hov); }
.c-jump b { color: var(--accent); font-weight: 500; margin-right: 0.45em; }

.c-items {
    display: grid; column-gap: var(--s6);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    margin-top: var(--s6);
}
.c-item { padding-block: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.c-item h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.c-item p  { font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); }
.c-item code {
    font-family: var(--font-code); font-size: 0.85em;
    background: var(--bg-inset); border: 1px solid var(--line);
    border-radius: 4px; padding: 0.05rem 0.3rem; color: var(--text-second);
}

.c-reqs { margin: 0; display: grid; gap: 0; }
.c-reqs > div {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem var(--s4);
    padding-block: var(--s3); border-top: 1px solid var(--line);
}
.c-reqs dt { font-family: var(--font-label); font-size: 0.82rem; color: var(--text-muted); }
.c-reqs dd { margin: 0; font-size: 0.95rem; color: var(--text-second); }

/* ── Plans ── */
.c-plans {
    display: grid; gap: var(--s4); align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.c-plan {
    position: relative;
    display: flex; flex-direction: column; gap: var(--s4);
    border: 1px solid var(--line); border-radius: 16px;
    padding: var(--s6);
    background: var(--bg-panel);
}
.c-plan.is-featured { border-color: var(--accent-dim); background: #18150f; }
.c-plan-badge {
    position: absolute; top: -0.75rem; left: var(--s6);
    background: var(--accent); color: #15110a;
    font-family: var(--font-label); font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.6rem; border-radius: 999px;
}
.c-plan-name {
    font-family: var(--font-label); font-size: 0.76rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.c-plan.is-featured .c-plan-name { color: var(--accent); }
.c-plan-price {
    font-size: clamp(2.6rem, 4vw, 3.3rem); font-weight: 600;
    letter-spacing: -0.04em; line-height: 1; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.c-plan-per { font-size: 0.9rem; color: var(--text-muted); }
.c-plan-saving { font-size: 0.9rem; color: var(--go); }
.c-plan-foot { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); }
.c-plan form { display: flex; flex-direction: column; gap: var(--s2); }
.c-plan .btn { border-radius: 8px; min-height: 46px; }
@media (max-width: 860px) { .c-plan.is-featured { order: -1; } }
/* Line the buttons up across the cards. Each card takes four rows of the
   shared grid (details, action, ticks, footnote) as a subgrid, so the rows are
   as tall as the tallest card's and every button sits at the bottom of the
   same row; the week's date field just uses the space above its button. */
@supports (grid-template-rows: subgrid) {
    .c-plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--s4); }
    .c-plan-action { display: flex; flex-direction: column; justify-content: flex-end; }
    .c-plan-foot { margin-top: 0; align-self: start; }
}

.c-region {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-muted);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

/* Demo against a plan. A real table: it is genuinely two columns of facts. */
.c-table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.c-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.c-table th, .c-table td { padding: 0.85rem 1.1rem; text-align: left; border-top: 1px solid var(--line); }
.c-table thead th {
    border-top: 0;
    font-family: var(--font-label); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.c-table thead th.is-plan { color: var(--accent); }
.c-table tbody th { font-weight: 500; color: var(--text); }
.c-table .yes { color: var(--go); }
.c-table .no  { color: var(--text-faint); }

/* The FAQ, as disclosures rather than a wall of answers. */
.c-faq { border-top: 1px solid var(--line); }
.c-faq details { border-bottom: 1px solid var(--line); }
.c-faq summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; gap: var(--s4); align-items: center;
    padding-block: var(--s4); min-height: 56px;
    font-size: 1.05rem; font-weight: 500; color: var(--text);
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after {
    content: "+"; font-family: var(--font-label); font-size: 1.2rem;
    color: var(--accent); flex-shrink: 0;
}
.c-faq details[open] summary::after { content: "\2013"; }
.c-faq details p { padding-bottom: var(--s5); max-width: 68ch; color: var(--text-second); }

/* ── Closing call ── */
.c-closing {
    display: flex; flex-wrap: wrap; gap: var(--s5);
    align-items: center; justify-content: space-between;
    border-top: 1px solid var(--line-strong);
    padding-top: var(--s7);
}
.c-closing .btn { border-radius: 8px; }

.btn { border-radius: 8px; }
/* display:inline-flex above would otherwise beat the hidden attribute. */
.c-region[hidden] { display: none; }

/* ── Press kit (/press) ─────────────────────────────────────────────────── */
.press-files { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.press-file {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
    padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-raised);
}
.press-file .btn, .press-file .tag { flex: none; white-space: nowrap; }
.press-file-missing { border-style: dashed; }
@media (max-width: 560px) { .press-file { flex-direction: column; align-items: flex-start; } }

/* Admin: pick what goes in the press-kit zip */
.press-zip-dialog {
    width: min(560px, calc(100vw - 2 * var(--s4)));
    max-height: calc(100vh - 2 * var(--s6));
    padding: var(--s5);
    color: inherit;
    background: var(--bg-raised);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
}
.press-zip-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.press-zip-list { display: grid; gap: var(--s4); max-height: 55vh; overflow-y: auto; padding-right: var(--s2); }
.press-zip-list fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.press-zip-list legend { padding: 0; margin-bottom: var(--s1); text-transform: uppercase; letter-spacing: 0.06em; }
.press-zip-item {
    display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer;
    padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.press-zip-item input { margin-top: 3px; flex: none; }
.press-zip-item:has(input:checked) { border-color: var(--line-strong); background: var(--bg-inset); }
.press-zip-item.is-missing { cursor: default; opacity: 0.5; border-style: dashed; }

/* ── Sale (lib/promo.php) ────────────────────────────────────────────────
   The strip above the header and the sale prices on /pricing. Dark ink on
   the accent: ~10:1, and the one place the site spends its accent at full
   width, because it is the one thing it wants noticed. */
.promo-banner {
    position: relative; z-index: 51;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 12px, transparent 12px 24px),
        linear-gradient(90deg, #f5a121, #ffb84d 55%, #f5a121);
    color: #15110a;
    font-size: 0.9rem; line-height: 1.35;
}
.promo-banner-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.35rem 1.1rem;
    padding-block: 0.6rem; padding-inline-end: 2.4rem;
    text-align: center;
}
.promo-banner-name {
    font-family: var(--font-label); font-weight: 700; font-size: 0.72rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: #15110a; color: #ffb84d;
    padding: 0.22rem 0.6rem; border-radius: 999px;
}
.promo-banner-offer strong { font-weight: 750; }
.promo-banner-clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.promo-banner-code .mono {
    background: rgba(21,17,10,0.12); border: 1px dashed rgba(21,17,10,0.45);
    padding: 0.05rem 0.4rem; border-radius: 4px; font-weight: 600;
}
.promo-banner-cta { color: #15110a; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.promo-banner-cta:hover { color: #000; }
.promo-banner-close {
    position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 28px; height: 28px;
    border: 0; border-radius: 6px; background: transparent; color: #15110a; cursor: pointer;
}
.promo-banner-close:hover { background: rgba(21,17,10,0.12); }
.promo-banner-close:focus-visible { outline: 2px solid #15110a; outline-offset: 1px; }
@media (max-width: 640px) {
    .promo-banner { font-size: 0.85rem; }
    .promo-banner-code { display: none; }
}

.c-plan-sale-badge {
    position: absolute; top: -0.75rem; right: var(--s6);
    background: #15110a; color: var(--accent-bright);
    border: 1px solid var(--accent);
    font-family: var(--font-label); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.6rem; border-radius: 999px;
}
.c-plan.is-on-sale { border-color: var(--accent-dim); }
.c-plan-was {
    font-size: 1.15rem; color: var(--text-muted);
    text-decoration: line-through; text-decoration-thickness: 2px;
    font-variant-numeric: tabular-nums;
}
.c-plan-sale-note { font-size: 0.9rem; color: var(--accent-bright); }
.c-sale-callout {
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.4rem 0.75rem; max-width: 60ch;
    border: 1px solid var(--accent-dim); border-radius: 12px;
    background: var(--accent-glow); color: var(--text);
    padding: 0.7rem 1.1rem; font-size: 0.95rem;
}
.c-sale-callout strong { color: var(--accent-bright); }
