/*
 * Platform site (reseller-facing, root domain). Fixed dark navy and gold
 * look inspired by the panel the platform sells supply from. Mobile first.
 */

:root {
    --bg: #0f1624; --surface: #131c2e; --surface-2: #1a2438; --text: #f1f5f9; --muted: #c0cad8;
    --border: #253149; --gold: #f0b90b; --gold-2: #ffd45e; --gold-ink: #1a1300; --success: #22c55e;
    --radius: 14px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Not for a reader who asked for less motion. The transitions are answered at
   the end of the file, after the rules they cancel. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
/* No underline in any state; see the note in storefront.css. */
a { color: var(--gold-2); text-decoration: none; }
a:hover, a:focus, a:active, a:visited { text-decoration: none; }
/* Never a button: --gold-1 is not defined anywhere, so this falls back to
   --gold-2, which is exactly the accent button hover background. */
a:hover:not(.button), a:focus-visible:not(.button) { color: var(--gold-1, var(--gold-2)); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-2); letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { max-width: 100%; }
[x-cloak] { display: none !important; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
/* Three quarters of a wide screen, as the storefront has it: the platform
   admin is tables too, and was reading them down a column. */
.container { width: 100%; max-width: clamp(72rem, 75vw, 100rem); margin: 0 auto; padding: 0 var(--space-5); }
.container.narrow { max-width: 46rem; }
main { flex: 1; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4rem; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--gold); }
.brand-rest { color: var(--muted); font-weight: 600; }
.site-nav { display: none; width: 100%; order: 3; flex-direction: column; gap: var(--space-1); padding: var(--space-2) 0 var(--space-3); border-top: 1px solid var(--border); }
.site-nav.is-open { display: flex; }
.site-nav a, .bar-link { color: var(--text); padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; }
.site-nav a.is-active, .bar-link.is-active { color: var(--gold-2); }
.site-nav a:hover, .bar-link:hover { background: var(--surface-2); text-decoration: none; }
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-1) var(--space-2); margin: 0; }
.lang-switch button { font: inherit; font-size: .85rem; font-weight: 600; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.lang-switch button:hover { color: var(--text); background: var(--surface-2); }
.lang-switch button.is-active { border-color: var(--gold); color: var(--gold-2); }
.site-footer .lang-switch { padding: var(--space-2) 0 0; }
.bar-actions { display: flex; gap: var(--space-2); align-items: center; }
.header-cta { display: none; }
.bar-actions .bar-link, .bar-actions .bar-lang { display: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; cursor: pointer; }
.icon-button:hover { background: var(--surface-2); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (min-width: 840px) {
    .site-nav { display: flex; flex-flow: row wrap; align-items: center; padding: 0 0 var(--space-2); margin-top: -.5rem; border: 0; }
    .site-nav a, .bar-link { padding: var(--space-2) var(--space-3); }
    .site-nav a:first-child { margin-inline-start: -.75rem; }
    .site-nav .nav-account { display: none; }
    .bar { padding-top: var(--space-2); }
    .bar-actions .bar-link, .bar-actions .bar-lang { display: inline-flex; }
    /* Kept for screen readers. */
    .bar-lang [id$="-label"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .bar-lang .searchable-select { min-width: 0; }
    .menu-button { display: none; }
    .header-cta { display: inline-flex; }
}

/* buttons and cards */
.button { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: 999px; font-weight: 700; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; line-height: 1.1; }
.button:hover { text-decoration: none; background: var(--surface-2); }
.button-primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.button-primary:hover { background: var(--gold-2); }
.button-primary, .button-primary:hover, .button-primary:focus, .button-primary:focus-visible, .button-primary:active { color: var(--gold-ink); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad-card); box-shadow: var(--shadow); }
.feature-icon { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(240, 185, 11, .12); color: var(--gold); margin-bottom: var(--space-4); }
.step-number { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 800; margin-bottom: var(--space-3); }

/* sections */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: var(--space-3); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.cta-row { display: flex; gap: var(--gap-inline); flex-wrap: wrap; margin: var(--gap-stack) 0 0; }
.hero { padding: var(--space-8) 0; background: radial-gradient(60rem 30rem at 80% -10%, rgba(240, 185, 11, .16), transparent 60%); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad-card-tight); box-shadow: var(--shadow); max-width: 26rem; }
.mock-bar { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.mock-bar span { width: .6rem; height: .6rem; border-radius: 999px; background: var(--border); }
.mock-row { display: flex; justify-content: space-between; padding: var(--space-3) var(--space-2); border-top: 1px solid var(--border); font-size: .95rem; }
.mock-row.is-accent { background: rgba(240, 185, 11, .1); border-radius: var(--radius-sm); margin-top: var(--space-2); border-top: 0; }
.mock-price { color: var(--gold-2); font-weight: 700; }
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt .card { background: var(--surface-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.page-head { padding: var(--space-8) 0 var(--space-4); }
.prose { font-size: 1.05rem; color: var(--muted); }
.prose a { font-weight: 600; }
.feature-grid, .group-grid { display: grid; gap: var(--gap-cards); }
.steps-grid { display: grid; gap: var(--gap-cards); }
.steps-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad-card); }
/* The same shape under its other name. Get a domain used .steps, which no
   sheet had a rule for: the list reset took the numbers away and each step's
   heading sat on the paragraph of the step above it. */
.steps { display: grid; gap: var(--gap-cards); }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad-card); }
/* Releases are cards in a list, and a list here has no gap of its own: they
   stacked edge to edge and read as one long card with rules across it. */
.changelog { display: grid; gap: var(--gap-cards); }
/* The empty state exists on both admins and was missing here, so the "no
   entries yet" line on the changelog was a bare paragraph. */
.empty { padding: var(--space-6); text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-sm); }
/* It sits between two fields inside a .stack, so the grid gap already spaces
   it; its own bottom margin made it read as part of the field above. */
.currencies-offered { margin-bottom: 0; }
.split { display: grid; gap: var(--space-7); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2) 0; color: var(--text); }
.check-list .icon { color: var(--gold); margin-top: var(--space-2); }
.cta-band { background: linear-gradient(135deg, rgba(240, 185, 11, .18), transparent 60%); border-top: 1px solid var(--border); }
.cta-band .lead { margin-left: auto; margin-right: auto; }
@media (min-width: 840px) {
    .hero { padding: 5rem 0 4rem; }
    .hero-grid { grid-template-columns: 1.2fr 1fr; }
    .hero-panel { margin-left: auto; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .group-grid, .split { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* pricing */
.currency-form { display: flex; gap: var(--gap-inline); align-items: center; flex-wrap: wrap; margin-top: var(--gap-stack); }
.currency-form select { padding: var(--space-3) var(--space-4); border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; min-width: 14rem; }
.plan-grid { display: grid; gap: var(--gap-cards); }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad-card); display: flex; flex-direction: column; gap: var(--space-2); }
.plan.is-highlight { border-color: var(--gold); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -.75rem; left: 1.25rem; background: var(--gold); color: var(--gold-ink); font-size: .75rem; font-weight: 800; padding: var(--space-1) var(--space-3); border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.plan-price strong { font-size: 2rem; color: var(--gold-2); }
.plan-orders { font-weight: 600; }
.plan .button { margin-top: auto; justify-content: center; }
.notes p { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--muted); }
.notes .icon { color: var(--gold); margin-top: var(--space-2); }
@media (min-width: 840px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }

/* how it works */
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline h2 { font-size: 1.25rem; }

/* faq */
.faq-list.compact li { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.faq-list.compact h3 { font-size: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: var(--space-3); padding: 0 var(--pad-card); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 { font-size: 1.05rem; margin: 0; font-weight: 600; }
.faq-item summary .icon { color: var(--gold); transition: transform .15s ease; }
.faq-item[open] summary .icon { transform: rotate(90deg); }
.faq-item p { color: var(--muted); padding-bottom: var(--space-4); }

/* contact */
.contact-list { display: grid; gap: var(--gap-cards); margin-bottom: var(--space-6); }
@media (min-width: 840px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--space-7) 0 var(--space-5); margin-top: auto; }
.footer-grid { display: grid; gap: var(--space-6); padding-bottom: var(--space-5); }
.footer-brand { font-weight: 800; margin-bottom: var(--space-1); }
.footer-title { font-weight: 700; margin-bottom: var(--space-2); color: var(--text); }
.site-footer li { padding: var(--space-1) 0; }
.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--gold-2); }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* auth forms (signup, login, reset) */
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad-card); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card.center { text-align: center; }
.auth-card.center .feature-icon { margin: 0 auto var(--space-4); }
.stack { display: grid; gap: var(--gap-form); }
.form-grid { display: grid; gap: var(--gap-form); }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: var(--gap-field); font-weight: 600; font-size: .92rem; }
/* Ticks excluded by name. Given width 100% and a field's own padding a
   checkbox stretches across its row and shoves its own label off the end. */
.field input:not([type="checkbox"]):not([type="radio"]), .field select { font: inherit; font-weight: 400; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); width: 100%; }
.field input[type="checkbox"], .field input[type="radio"] { accent-color: var(--gold); margin: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field .hint.is-ok { color: var(--success); }
.field .hint.is-bad { color: #f87171; }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-width: 0; }
.input-suffix { display: inline-flex; align-items: center; padding: 0 var(--space-3); border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--muted); font-weight: 400; white-space: nowrap; }
.field-error { color: #f87171; font-weight: 600; margin: 0; font-size: .9rem; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: var(--space-1); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.button-block { width: 100%; justify-content: center; }
.flash { padding: var(--space-4); border-radius: var(--radius-sm); }
.flash-success { background: rgba(34, 197, 94, .14); color: var(--success); }
.auth-divider { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.button-google { width: 100%; justify-content: center; background: var(--surface-2); }
.choice-list { display: grid; gap: var(--space-3); }
.choice-list form { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.choice-list form > span { display: grid; }

/* searchable dropdowns: shared block appended at the end of this file */

/* right-to-left hooks (used when a locale declares dir: rtl) */
[dir="rtl"] .text-link .icon, [dir="rtl"] .button .icon, [dir="rtl"] .faq-item summary .icon { transform: scaleX(-1); }
[dir="rtl"] .faq-item[open] summary .icon { transform: scaleX(-1) rotate(-90deg); }
[dir="rtl"] .timeline li { grid-template-columns: 1fr auto; }
[dir="rtl"] .plan-flag { left: auto; right: 1.25rem; }

/* payments page and demo link */
.check-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: var(--space-3); }
.site-nav .nav-demo { font-weight: 600; }

/* breadcrumbs */
.breadcrumbs ol { display: flex; gap: var(--space-2); list-style: none; margin: 0 auto; padding: var(--space-3) var(--space-4) 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--text); }
/* The four legal documents. The head sits close to the body: the gap a
   marketing page leaves under its title read as the end of a short page. */
.legal-head { padding-bottom: 0; }
.legal-body { padding-top: var(--space-5); }
.legal h2 { margin-top: var(--space-6); font-size: 1.15rem; }
.legal-summary { margin-bottom: var(--space-6); border-left: 4px solid var(--gold); }
.legal-summary ul, .legal-section ul, .legal-contents ol { margin: 0; padding-left: 1.25rem; list-style: disc; }
.legal-contents ol { list-style: decimal; }
.legal-summary li::marker, .legal-section li::marker, .legal-contents li::marker { color: var(--gold); }
.legal-summary li + li, .legal-section li + li { margin-top: var(--space-2); }
.legal h2.legal-summary-title, .legal h2.legal-contents-title { margin: 0 0 var(--space-3); font-size: 1rem; }
.legal-contents { margin-bottom: var(--space-6); }
.legal-contents ol { columns: 2 14rem; column-gap: var(--space-6); }
.legal-contents li { break-inside: avoid; padding: var(--space-1) 0; }
.legal-section { padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); scroll-margin-top: var(--space-8); }
.legal-section .prose { margin: 0 0 var(--space-3); }
.legal-section ul { margin-bottom: var(--space-3); }
.legal-others { margin-top: var(--space-7); }
.legal-others ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; }
.inline-prose, .inline-prose p { display: inline; margin: 0; }
.prose p { margin: 0 0 var(--space-3); }
.prose p:last-child { margin-bottom: 0; }

/* Searchable select: replaces every native select (button + search + listbox). */
.searchable-select { position: relative; }
.select-button { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); width: 100%; min-height: 2.9rem; font: inherit; font-weight: 400; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.select-button .select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-button .is-placeholder { color: var(--muted); }
.select-button .select-caret { flex: none; transition: transform .15s ease; }
.select-button[aria-expanded=true] .select-caret { transform: rotate(90deg); }
.select-panel { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + .25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: var(--space-2); }
.select-panel input[type=search] { width: 100%; font: inherit; font-weight: 400; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); margin-bottom: var(--space-2); }
.select-note { margin: 0 var(--space-1) var(--space-2); font-weight: 400; }
.select-list { max-height: 16rem; overflow-y: auto; overscroll-behavior: contain; }
.select-group-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: var(--space-2) var(--space-2) var(--space-1); }
.select-list button { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline; justify-content: space-between; width: 100%; text-align: left; font: inherit; font-weight: 400; padding: var(--space-3); border: 0; border-bottom: 1px solid var(--row-divider); border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer; }
/* break-word, never anywhere: both break an overlong word, but anywhere
   also lets the min-content width fall to one character, which is how a
   squeezed row printed the name vertically. */
.select-list button .select-label { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.select-list button .select-hint { flex: none; white-space: nowrap; }
.select-list button:hover, .select-list button.is-focused { background: var(--surface-2); }
.select-list button.is-active { background: var(--surface-2); font-weight: 600; }
.select-empty { margin: var(--space-1) var(--space-2) var(--space-2); color: var(--muted); font-weight: 400; }
.searchable-select .hint { font-weight: 400; }
.service-facts { margin: -.25rem 0 0; font-weight: 400; }

/* Language menu: a globe and the language you are reading */
.locale-menu { display: inline-flex; align-items: center; gap: var(--space-2); }
.locale-menu .locale-globe { flex: none; color: var(--muted); }
.locale-menu .searchable-select { min-width: 9rem; }
.locale-menu .select-button { padding: var(--space-2) var(--space-3); font-size: .9rem; }
.locale-form { margin: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- liquid glass ----------
   Tokens and fallbacks in glass.css. A marketing page is mostly cards over a
   background, so the cards are glass here where the storefront's are not. */

.card,
.plan,
.hero-panel,
.select-panel,
.auth-card,
.flash {
    background-color: var(--glass-bg);
    background-image: var(--glass-image);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    border-radius: var(--glass-radius);
}

/* A box with a backdrop-filter is the backdrop root of everything inside
   it, and a list that opens out of it can then blur nothing but that box:
   the page under the list shows through sharp. The language pill holds such
   a list, so it takes the glass colour and edge without a filter of its
   own. */
.locale-menu {
    background-color: var(--glass-bg);
    background-image: var(--glass-image);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    border-radius: var(--glass-radius);
}

/* The bar is .site-header. It carried a hand-rolled translucency of its own,
   at its own alpha and its own blur, before there was a token set to take
   it from. The glass is painted on a layer behind its content, for the same
   reason as the pill above: the language list opens out of the bar. */
.site-header {
    background: none;
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--glass-bg);
    background-image: var(--glass-image);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
}

.button {
    background-image: var(--glass-image);
}

table {
    background-image: none;
}

/* A hairline between rows, none under the last, and the rate hard right
   on its own line once the row is too narrow to share one. */
.select-list button:last-child, .select-list .select-group:last-child button:last-child { border-bottom: 0; }
.select-rate { text-align: right; margin-left: auto; }

/* The nightly money check. A flagged line is the only thing on the page
   worth reading first, so it is the only thing coloured. */
.panel.is-flagged { border-color: var(--warning, #b45309); }
.drift-flagged td { background: color-mix(in srgb, var(--warning, #b45309) 8%, transparent); font-weight: 600; }
.drift-flagged td .muted { font-weight: 400; }
/* PASSKEYS. One switch, the devices under it, and the button beside the
   password form. Nothing here renders at all on a browser that cannot do
   the ceremony, so none of it needs a disabled state. */
.passkeys { display: grid; gap: var(--space-3); }
.passkeys h3 { margin: 0; }
.passkey-switch { display: grid; gap: var(--space-2); }
.passkey-add { display: flex; flex-wrap: wrap; gap: var(--gap-inline); align-items: center; margin-top: var(--space-2); }
.passkey-signin { display: grid; gap: var(--space-2); justify-items: center; margin: var(--space-3) 0; }
.passkey-button { display: inline-flex; align-items: center; gap: var(--space-2); }

/* The transitions on this site, cancelled for a reader who asked for less
   motion. Last in the file on purpose: a media query adds no weight, so the
   same selector written earlier loses to the rule it is meant to cancel. It
   did, for an afternoon, and only a browser showed it. */
@media (prefers-reduced-motion: reduce) {
    .faq-item summary .icon, .select-button .select-caret { transition: none; }
}
