/* Clume. One stylesheet for the public site and the portal. Plain CSS, no framework, no web font.
   Dark only (owner brief 2026-11-02): near-black, champagne accent, the system font stack.
   The CSP is style-src 'self': no inline style anywhere, so every look lives here. */
:root {
  color-scheme: dark;
  --bg: #0a0c0f; --surface: #11151a; --raised: #171c23; --line: #232a33; --line-soft: #1a2028;
  /* --faint is the quietest text colour: at least 4.5:1 on every background here (4.69:1 on the .unit panel). */
  --fg: #eef1f5; --muted: #9aa3ae; --faint: #838c97;
  --line-strong: #2e3743;
  /* The edge of a form field: at least 3:1 against the field and the card around it (WCAG 1.4.11). */
  --field-line: #636d7a;
  --accent: #d6b37a; --accent-strong: #e8c995; --accent-ink: #1a1408;
  --accent-soft: rgba(214, 179, 122, .1); --accent-line: rgba(214, 179, 122, .35);
  --ok: #6fcf97; --error: #ff7b72; --warn: #e3b341;
  /* The portal's old token names, kept so admin.css and any page rule reading them still work. */
  --panel: var(--surface);
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
/* The hidden attribute always wins: app actions stay hidden outside the dealer app. */
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; }
h1 { font-size: 1.75rem; font-weight: 650; line-height: 1.15; margin: .75rem 0 1rem; }
h2 { font-size: 1.2rem; font-weight: 650; line-height: 1.25; margin: 1.75rem 0 .6rem; }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.error { color: var(--error); }
.ok { color: var(--ok); }
.message:empty { display: none; }

/* ================================================================
   The portal and the admin area (Pages/Shared/_Layout.cshtml, body.portal)
   It wears the public header and footer (.site-header, .site-footer below) with its own nav.
   A rule here that a public rule of the same name would beat is scoped to .portal.
   ================================================================ */
.portal main { padding-top: 2.75rem; padding-bottom: 4.5rem; min-height: 60vh; }
.portal main h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 650; line-height: 1.08;
                  letter-spacing: -.03em; margin: 0 0 1.1rem; }
.portal main h2 { font-size: 1.3rem; letter-spacing: -.015em; margin: 2.75rem 0 .9rem; }
.portal main h1 + p, .portal main h1 + .muted { color: var(--muted); max-width: 46rem; }
/* Links in running text: the accent with a soft underline. */
.portal main a:not(.button):not(.btn) { text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.portal main a:not(.button):not(.btn):hover { text-decoration-color: var(--accent-strong); }
.portal main li + li { margin-top: .3rem; }
.portal code { color: var(--fg); }

/* The header: the public bar, the portal nav beside the wordmark, the account on the right. */
.bar .portal-nav { margin-left: 1.5rem; margin-right: auto; gap: .5rem 1.4rem; }
.signout { display: flex; gap: .9rem; align-items: center; margin: 0; font-size: .9rem; }
.signout .who { color: var(--faint); }
.signout button { padding: .5rem 1rem; font-size: .88rem; }

/* The dealer app banner: shown by app-bridge.js inside the app only. A warm strip under the header. */
.app-banner { background: linear-gradient(90deg, var(--accent-soft), transparent 65%), var(--surface);
              border-bottom: 1px solid var(--accent-line); font-size: .92rem; }
.app-banner .app-banner-row { display: flex; gap: .5rem 1rem; align-items: center; flex-wrap: wrap;
                              min-height: 3rem; padding-top: .45rem; padding-bottom: .45rem; }
.app-banner-row::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; flex: none;
                          background: var(--accent); box-shadow: 0 0 8px rgba(214, 179, 122, .7); }
.app-banner button { padding: .3rem .9rem; font-size: .85rem; }

/* ---------- Cards and figures (portal and public) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0 0 .5rem; }
.card { background: linear-gradient(180deg, var(--raised), var(--surface)); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 1rem 1.25rem; }
.card h2 { margin-top: 0; font-size: 1rem; }
.portal .card { padding: 1.35rem 1.5rem; }
.portal main .card h2 { margin: 0 0 .7rem; font: 600 .75rem/1.4 var(--font); letter-spacing: .12em;
                        text-transform: uppercase; color: var(--faint); }
.portal .card p { margin: .3rem 0 0; }
/* .card .figure beats the public .card p, which would shrink and grey the number. */
.figure, .card .figure { font-family: var(--font-display); font-size: 2.4rem; font-weight: 650; line-height: 1.1;
                         letter-spacing: -.03em; margin: 0 0 .35rem; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- Tables: a rounded panel, quiet header, hairline rows ---------- */
table { border-collapse: collapse; width: 100%; margin: .5rem 0 1rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.portal table { border-collapse: separate; border-spacing: 0; margin: .75rem 0 1.75rem; font-size: .95rem;
                background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.portal th, .portal td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); }
.portal th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
             border-bottom-color: var(--line); white-space: nowrap; }
.portal tbody tr:last-child > * { border-bottom: 0; }
.portal td .muted { font-size: .9rem; }
.portal td form + form { margin-top: .4rem; }

/* ---------- Forms ---------- */
.stack { display: grid; gap: .9rem; max-width: 34rem; }
.stack label { display: grid; gap: .35rem; }
/* A form of fields is a panel, like the public request form. */
.portal form.stack { background: linear-gradient(180deg, var(--raised), var(--surface)); border: 1px solid var(--line);
                     border-radius: var(--radius); padding: 1.5rem; margin: .5rem 0 1.5rem; }
.portal .stack label { font-size: .9rem; font-weight: 600; color: var(--fg); }
.portal .stack label.check { font-weight: 400; color: var(--muted); }
.portal .stack p { margin: 0; }
.portal .stack h2 { margin: 0; }
/* The TOTP enrolment code: black on white, so a phone camera reads it on the dark page. */
.qr svg { display: block; width: 14rem; height: 14rem; background: #fff; padding: .5rem; border-radius: 8px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; display: grid; gap: .8rem; padding: .9rem 1rem 1rem; margin: 0; }
legend { color: var(--muted); padding: 0 .4rem; font-size: .9rem; }
input, select, textarea, button, .button {
  font: inherit; padding: .55rem .85rem; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--fg); }
input, select, textarea { font-size: 1rem; font-weight: 400; border-color: var(--field-line); }
input::placeholder, textarea::placeholder { color: var(--faint); }
/* A focused field keeps a solid accent outline, never a faint glow (WCAG 2.4.7). */
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent);
                                                                    outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
input[type="file"] { padding: .45rem; }

/* ---------- Buttons: pills. A form's submit is the champagne one; the rest are quiet. ---------- */
button, .button { cursor: pointer; background: var(--raised); text-decoration: none; display: inline-block;
                  border-radius: 999px; padding: .55rem 1.15rem; font-weight: 600; font-size: .95rem; line-height: 1.3;
                  white-space: nowrap; border-color: var(--line); transition: border-color .15s, background .15s, color .15s; }
button:hover, .button:hover { border-color: var(--faint); color: var(--fg); }
.portal form.stack button[type="submit"]:not(.danger) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.portal form.stack button[type="submit"]:not(.danger):hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.portal button.danger { background: transparent; border-color: rgba(255, 123, 114, .5); color: var(--error); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.portal button.danger:hover { background: rgba(255, 123, 114, .08); border-color: var(--error); }
button.link { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline;
              font-weight: 400; border-radius: 0; }
textarea { width: 100%; font-family: var(--mono); font-size: .85rem; }
details summary { cursor: pointer; color: var(--muted); }
details summary:hover { color: var(--fg); }
details[open] > summary { margin-bottom: .75rem; }

/* ---------- Licence tokens, results, facts, chips ---------- */
.token { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: .75rem 0;
         background: var(--surface); display: grid; gap: .6rem; }
.token textarea { background: var(--bg); color: var(--fg); }
.token p { margin: 0; }
.licence { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem; }
.portal .licence h2 { margin-top: 0; }
.result { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: .75rem 1.1rem; margin: 1rem 0;
          background: var(--surface); border-radius: 0 10px 10px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 0 0 1.5rem; padding: 1.1rem 1.25rem;
         border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 40rem; }
.facts dt { color: var(--faint); font-size: .9rem; }
.facts dd { margin: 0; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 .55rem;
        margin: 0 .25rem .25rem 0; font-size: .8rem; color: var(--muted); }
/* The development sign-in: a dashed warning panel that never ships outside Development. */
.dev { margin-top: 2rem; border: 1px dashed rgba(255, 123, 114, .55); border-radius: var(--radius); padding: 1.25rem 1.5rem;
       background: rgba(255, 123, 114, .04); max-width: 46rem; }
.portal .dev h2 { margin-top: 0; }
.dev ul { padding-left: 1.1rem; }
.dev li { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.dev li + li { margin-top: .6rem; }
pre.app-output { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem;
                 overflow: auto; max-height: 20rem; }
/* ================================================================
   The public site (Pages/Shared/_PublicLayout.cshtml, body.public)
   ================================================================ */
.public main { max-width: none; margin: 0; padding: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header: wordmark, nav, the sign-in pill. Sticky, translucent. */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(10, 12, 15, .86);
               backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.bar { display: flex; align-items: center; gap: 1rem 2rem; min-height: 4.25rem; flex-wrap: wrap; }
.bar .brand { line-height: 0; }
.bar .brand img { display: block; height: 28px; width: auto; }
.site-nav { display: flex; gap: .5rem 1.75rem; margin-left: auto; font-size: .95rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }
/* The current page: an accent underline as well as the colour (WCAG 1.4.1). The portal nav shares it. */
.site-nav a[aria-current="page"] { color: var(--fg); text-decoration: underline 2px var(--accent); text-underline-offset: .6rem; }

/* Pill buttons. */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: 999px;
       font-weight: 600; font-size: .95rem; border: 1px solid var(--line); color: var(--fg); text-decoration: none;
       background: transparent; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--faint); color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.cta { display: flex; gap: .85rem; flex-wrap: wrap; }

/* Hero: text on the left, a product visual on the right. */
.hero { position: relative; overflow: hidden; padding: 6.5rem 0 5.5rem; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60rem; height: 60rem;
                background: radial-gradient(closest-side, rgba(214, 179, 122, .16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
           color: var(--accent); border: 1px solid var(--accent-line); padding: .3rem .75rem; border-radius: 999px; }
.hero h1 { font-weight: 650; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.04;
           letter-spacing: -.035em; margin: 1.4rem 0 1.25rem; max-width: 15ch; }
.hero h1 em, .section h2 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0 0 2.25rem; }
/* Three proof points in one row on desktop, stacked on a phone (the 860px rule). */
.proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.25rem 2rem;
         margin: 3.25rem 0 0; padding: 0; list-style: none; color: var(--faint); font-size: .9rem; }
.proof b { display: block; color: var(--fg); font-size: 1.02rem; font-weight: 600; }

/* Sections. */
.section { padding: 5.5rem 0; border-top: 1px solid var(--line-soft); }
.kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 .75rem; }
/* A section heading that only structures the page (the h2 over the /drivers grid): it looks like a kicker. */
.section h2.kicker { font: 400 .78rem/1.6 var(--font); letter-spacing: .14em; margin: 0 0 1.25rem; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 1rem; }
.sub { color: var(--muted); max-width: 40rem; margin: 0 0 2.75rem; }
.section-foot { margin: 2rem 0 0; }

/* A grid of cards, each a link with a hover lift. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1rem; }
/* A short row of cards (the /help licences) stretches to the full width; the catalogue grids keep equal widths. */
.grid.fit { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }
.grid .card { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: rgba(214, 179, 122, .45); transform: translateY(-2px); color: inherit; }
.card .icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center;
              background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.card h3 { margin: .4rem 0 0; font-size: 1.1rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Status tags. Honest labels only: Pilot or Coming soon. */
.tag { align-self: flex-start; margin-top: auto; font-size: .75rem; padding: .2rem .65rem; border-radius: 999px;
       border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.pilot { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.tag.soon { color: var(--muted); }

/* Numbered steps. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem;
         counter-reset: step; margin: 0; padding: 0; list-style: none; }
.step { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display);
                font-size: 2.2rem; color: var(--accent); letter-spacing: -.02em; margin-bottom: .75rem; }
.step h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* A band: a wide rounded panel with a warm corner glow. */
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
        background: radial-gradient(120% 140% at 100% 0%, rgba(214, 179, 122, .14), transparent 55%), var(--surface);
        border: 1px solid var(--line); border-radius: 22px; padding: 3rem; }
.band h2 { margin-bottom: 1.25rem; }
.dash-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; color: var(--muted); }
.dash-list li { padding-left: 1.6rem; text-indent: -1.6rem; }
.dash-list li::before { content: "\2014"; color: var(--accent); margin-right: .6rem; }
.band .cta { margin-top: 1.75rem; align-items: center; }
.note { color: var(--faint); font-size: .85rem; margin: .9rem 0 0; }

/* The window illustration: a stylised app or controller status window. Decorative (aria-hidden). */
.window { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden;
          box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.window .tb { height: 2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .4rem;
              padding: 0 .75rem; font-size: .75rem; color: var(--faint); }
.window .tb i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); }
.window .tb span { margin-left: .5rem; }
.window .body { padding: 1.25rem; display: grid; gap: .6rem; font-size: .85rem; color: var(--muted); }
.window .row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .75rem;
               border: 1px solid var(--line-soft); border-radius: 8px; }
.window .row b { color: var(--fg); font-weight: 600; text-align: right; }
.window .row b.ok { color: var(--ok); }

/* The hero visual: a processor front panel, drivers wired to it, and a status window. CSS only. */
.hero-visual { position: relative; display: grid; gap: 1rem; }
.unit { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem;
        background: linear-gradient(180deg, #1c222b, #12161c); display: flex; align-items: center; gap: 1rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.unit .label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.unit .label b { display: block; color: var(--fg); letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.unit .leds { display: flex; gap: .45rem; margin-left: auto; }
.unit .leds i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line); }
.unit .leds i.on { background: var(--ok); box-shadow: 0 0 8px rgba(111, 207, 151, .7); }
.unit .leds i.amber { background: var(--accent); box-shadow: 0 0 8px rgba(214, 179, 122, .7); }
.unit .vents { display: grid; grid-template-columns: repeat(6, .3rem); gap: .3rem; }
.unit .vents i { height: 1.6rem; border-radius: 2px; background: var(--line-soft); }
.drivers-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.drivers-row span { font-size: .8rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line);
                    background: var(--surface); color: var(--muted); }
.drivers-row span::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%;
                            background: var(--accent); margin-right: .45rem; vertical-align: middle; }

/* The head of an inner public page (/drivers, /drivers/{slug}): a breadcrumb, a large title, a lede. */
.page-head { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; }
.page-head::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 48rem; height: 48rem;
                     background: radial-gradient(closest-side, rgba(214, 179, 122, .12), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-weight: 650; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05;
                letter-spacing: -.03em; margin: 1rem 0 1.1rem; max-width: 20ch; }
.page-head .lede { margin-bottom: 1.75rem; }
.crumbs { font-size: .9rem; color: var(--faint); margin: 0 0 1.25rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.status-key { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; padding: 0; list-style: none;
              color: var(--faint); font-size: .9rem; }
.status-key .tag { margin-right: .5rem; }

/* One driver: the facts on the left, the status card on the right. */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; align-items: start; }
.detail .detail-main h2 { font-size: 1.35rem; letter-spacing: -.015em; margin: 2.75rem 0 1.1rem; }
.detail .detail-main h2:first-child { margin-top: 0; }
.dash-list.limits li::before { color: var(--muted); }
.detail-aside { position: sticky; top: 5.5rem; padding: 1.5rem; display: grid; gap: .9rem; justify-items: start; }
.detail-aside .kicker { margin: 0; }
.detail-aside .cta { margin-top: .4rem; }

/* Become a dealer (/dealers): the pitch on the left, the request form in a card on the right. */
.page-head h1 em { font-style: normal; color: var(--accent); }
.apply-section { padding-top: 3.5rem; }
.apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: 3.5rem; align-items: start; }
.apply-pitch h2 { font-size: 1.35rem; letter-spacing: -.015em; margin: 0 0 1.1rem; }
.apply-pitch .dash-list + h2 { margin-top: 2.75rem; }
.next-steps { counter-reset: next; margin: 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; color: var(--muted); }
.next-steps li { position: relative; padding-left: 3rem; }
.next-steps li::before { counter-increment: next; content: "0" counter(next); position: absolute; left: 0; top: -.1rem;
                         font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); letter-spacing: -.02em; }
.next-steps b { display: block; color: var(--fg); font-weight: 600; }
.apply-form { padding: 2rem; }
.apply-form h2 { font-size: 1.35rem; margin: 0 0 1.25rem; }
.apply-fields { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; color: var(--fg); }
/* The border colour comes from the input rule above, so .field [aria-invalid] below can still turn it red. */
.field input:not([type="checkbox"]), .field textarea { width: 100%; padding: .65rem .85rem; background: var(--bg); }
.field textarea { font-family: var(--font); font-size: 1rem; resize: vertical; min-height: 6.5rem; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.optional { font-weight: 400; color: var(--faint); font-size: .8rem; margin-left: .35rem; }
.field-error { margin: 0; color: var(--error); font-size: .85rem; }
.form-alert { margin: 0 0 1.25rem; padding: .75rem 1rem; border: 1px solid rgba(255, 123, 114, .4);
              border-radius: 10px; background: rgba(255, 123, 114, .08); color: var(--fg); font-size: .9rem; }
.form-alert p { margin: 0; }
.form-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--muted); }
/* The honeypot: off screen for people, still in the form for bots. Not display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.privacy { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .85rem; color: var(--muted); }
.privacy h3 { margin: 0 0 .5rem; font-size: .95rem; color: var(--fg); }
.privacy p { margin: 0 0 .35rem; }
.privacy b { color: var(--fg); font-weight: 600; }
.field label.consent { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.consent input { margin: .3rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; }
.apply-submit { margin: .25rem 0 0; }
.apply-submit .btn { padding: .75rem 1.5rem; }

/* Help and downloads (/help): a jump nav, the app band with its download card, the activation steps
   beside two side cards. */
.jump { display: flex; flex-wrap: wrap; gap: .6rem; }
.jump a { padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
          text-decoration: none; font-size: .9rem; }
.jump a:hover { border-color: var(--accent-line); color: var(--fg); }
.public .section[id] { scroll-margin-top: 4.5rem; }
.band-top { align-items: start; }
.band .sub { margin-bottom: 1.75rem; }
.download { padding: 1.75rem; display: grid; gap: .6rem; min-width: 0; }
.download .kicker { margin: 0; }
.download h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.015em; }
.download .version { color: var(--accent); font-weight: 600; margin-left: .35rem; }
.download h4, .smartscreen h4 { margin: .9rem 0 0; font-size: .95rem; color: var(--fg); }
.download p { margin: 0; color: var(--muted); font-size: .92rem; }
.download .cta { margin: .4rem 0 .2rem; }
.download .soon { color: var(--fg); font-size: 1.05rem; font-weight: 600; }
.hash { display: block; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px;
        background: var(--bg); color: var(--fg); font-size: .8rem; overflow-wrap: anywhere; user-select: all; }
.smartscreen { margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.smartscreen h4 { margin: 0; }
.smartscreen ol { margin: 0; padding-left: 1.3rem; color: var(--muted); font-size: .92rem; }
.smartscreen b { color: var(--fg); font-weight: 600; }
.help-cols { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; align-items: start; }
.next-steps i { font-style: normal; color: var(--fg); }
.help-aside { display: grid; gap: 1rem; }
.help-aside .card { padding: 1.5rem; }
.help-aside h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.help-aside p { margin: 0; color: var(--muted); font-size: .95rem; }

/* The public footer. */
.site-footer { max-width: none; margin: 0; padding: 3rem 0; border-top: 1px solid var(--line-soft); color: var(--faint); }
.foot { display: flex; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot img { height: 22px; width: auto; display: block; opacity: .85; margin-bottom: .9rem; }
.foot p { margin: 0 0 .35rem; max-width: 34rem; }
.foot-nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--fg); }

/* The portal header: the email goes first when the nav needs the room. */
@media (max-width: 1180px) {
  .signout .who { display: none; }
}
@media (max-width: 860px) {
  .portal main { padding-top: 2rem; }
  .portal .wide, .portal main > table { display: block; overflow-x: auto; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .proof { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
  .section { padding: 4rem 0; }
  .page-head { padding: 3rem 0 2.5rem; }
  .detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-aside { position: static; }
  .apply { grid-template-columns: 1fr; gap: 2.5rem; }
  .help-cols { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 1rem; }
  /* Longhands: the shorthand would zero the .wrap side gutter and put the wordmark on the screen edge. */
  .bar { gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: .4rem 1.25rem; font-size: .9rem; }
  .bar .btn { margin-left: auto; padding: .5rem .9rem; font-size: .85rem; }
  .field-row { grid-template-columns: 1fr; }
  .apply-form { padding: 1.5rem 1.25rem; }
  .bar .portal-nav { margin-left: 0; }
  .signout { margin-left: auto; }
  .portal form.stack { padding: 1.1rem; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd + dt { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  a.card, .btn, button, .button { transition: none; }
  a.card:hover { transform: none; }
}
