:root {
    color-scheme: light;
    --sp-navy: #0b1220;
    --sp-navy-soft: #121a2b;
    --sp-navy-line: rgba(255, 255, 255, .08);
    --sp-blue: #2f6bff;
    --sp-blue-hover: #1f55e0;
    --sp-blue-tint: #eef3ff;
    --sp-blue-ring: rgba(47, 107, 255, .28);
    --sp-gold: #b0892e;
    --sp-gold-tint: #fbf3df;
    --sp-page: #f5f7fb;
    --sp-card: #ffffff;
    --sp-soft: #f8fafc;
    --sp-line: #e4e8f0;
    --sp-line-strong: #d5dbe6;
    --sp-text: #0f172a;
    --sp-text-soft: #334155;
    --sp-muted: #5c6b80;
    --sp-ok: #16a34a;
    --sp-ok-ink: #146c3c;
    --sp-ok-tint: #e9f8ef;
    --sp-warn: #d97706;
    --sp-warn-ink: #8a5a00;
    --sp-warn-tint: #fff6e0;
    --sp-bad: #dc2626;
    --sp-bad-ink: #b42318;
    --sp-bad-tint: #fdecec;
    --sp-radius: 16px;
    --sp-radius-sm: 10px;
    --sp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .06);
    --sp-shadow-lift: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px rgba(15, 23, 42, .10);
    --sp-hero: linear-gradient(125deg, #0b1220 0%, #12245a 55%, #2f6bff 130%);
}
* { box-sizing: border-box; }
.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; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 15px/1.5 Barlow, "Segoe UI", sans-serif;
    color: var(--sp-text);
    background:
        radial-gradient(900px 280px at 8% -60px, rgba(47, 107, 255, .10), transparent 60%),
        radial-gradient(640px 220px at 100% 0, rgba(142, 182, 255, .16), transparent 55%),
        var(--sp-page);
}
a { color: var(--sp-blue); }
a:hover { color: var(--sp-blue-hover); }
:focus-visible { outline: 3px solid var(--sp-blue-ring); outline-offset: 2px; }

/* Top bar */
.bar {
    height: 64px;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 16px;
    padding: 0 16px 0 14px;
    background: var(--sp-navy);
    color: #fff;
    border-bottom: 1px solid var(--sp-navy-line);
}
.brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.brand:hover { color: #fff; }
.bar .brand > span { box-shadow: 0 0 0 4px rgba(47, 107, 255, .16); }
.brand > span {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--sp-blue);
    display: grid;
    place-items: center;
    flex: 0 0 34px;
}
.brand strong,
.wordmark {
    display: block;
    color: #fff;
    font-family: "Barlow Condensed", Barlow, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}
.wordmark { white-space: nowrap; }
.wordmark span {
    display: inline;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    color: #8eb6ff;
    font: inherit;
}
.brand em { display: block; font-style: normal; color: #8ea0bb; font-size: 11px; }
.bar nav {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-self: center;
    margin: 0;
    padding: 4px;
    background: var(--sp-navy-soft);
    border: 1px solid var(--sp-navy-line);
    border-radius: 999px;
}
.bar nav a, .bar button, .nav-cta {
    color: #c5d0e2;
    background: transparent;
    border: 0;
    font: 600 13px/1 Barlow, sans-serif;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: none;
    transform: none;
}
.bar nav a:hover, .bar button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bar nav a.is-on { background: var(--sp-blue); color: #fff; }
.nav-cta { background: var(--sp-blue); color: #fff; box-shadow: 0 6px 16px rgba(47, 107, 255, .32); }
.nav-cta:hover { background: var(--sp-blue-hover); color: #fff; }
.bar form button {
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #e8eef8;
}

/* Main frame */
main { width: min(1080px, calc(100% - 40px)); margin: 28px auto 0; flex: 1; }
main:has(.card.wide) {
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
}
main:has(.page) { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 48px; }
main:has(.page-fill) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 48px 40px;
    background: var(--sp-card);
    align-items: center;
    justify-content: flex-start;
}
.page-fill.card {
    width: min(1040px, 100%);
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.page-fill h1 { font-size: 40px; max-width: 720px; }
.page-fill .lede { max-width: 640px; font-size: 17px; }
.page-fill.card.wide {
    width: min(1040px, 100%);
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Sign-in split card */
main:has(.auth-stage) { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0; display: flex; align-items: center; }
.auth-stage {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 440px);
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow-lift);
}
.auth-side {
    background: var(--sp-hero);
    color: #e8eef8;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.auth-side .eyebrow { color: #9ec0ff; }
.auth-side h2 { margin: 0; color: #fff; font-size: 28px; line-height: 1.2; }
.auth-side ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #c5d0e2; }
.auth-stage .card { width: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 36px 32px; align-content: start; }
.auth-stage button[type="submit"] { width: 100%; }
.field-note { margin: -6px 0 0; color: var(--sp-muted); font-size: 12px; font-weight: 500; }

/* Cards and type */
.card {
    width: min(440px, 100%);
    margin-inline: auto;
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 28px;
    display: grid;
    gap: 14px;
    box-shadow: var(--sp-shadow);
}
.card.wide { width: 100%; padding: 36px 36px 28px; }
.stack { display: grid; gap: 14px; }
.eyebrow {
    margin: 0;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: var(--sp-blue);
}
h1, h2, h3 { color: var(--sp-text); }
h1 { margin: 0; font: 700 34px/1.1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: -.005em; }
h2 { margin: 8px 0 0; font-size: 18px; font-weight: 700; }
h3 { margin: 0; font-size: 15px; font-weight: 700; }
.lede { margin: 0; font-size: 16px; color: var(--sp-text-soft); }
.hint, .next { color: var(--sp-muted); font-size: 14px; margin: 0; }

/* Forms */
label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sp-muted); }
input, textarea, select {
    border-radius: var(--sp-radius-sm);
    border: 1px solid var(--sp-line-strong);
    background: var(--sp-card);
    color: var(--sp-text);
    padding: 8px 12px;
    font: inherit;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
input, select { height: 42px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sp-blue); box-shadow: 0 0 0 3px var(--sp-blue-ring); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--sp-text); line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--sp-blue); box-shadow: none; }
.check small { display: block; color: var(--sp-muted); font-size: 12px; margin-top: 2px; }
input[type="range"] { height: 28px; padding: 0; border: 0; box-shadow: none; accent-color: var(--sp-blue); background: transparent; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--sp-blue); }

/* Buttons: primary (default), .quiet secondary, .ghost, .danger */
button, .go {
    height: 42px;
    border: 1px solid transparent;
    border-radius: var(--sp-radius-sm);
    background: linear-gradient(180deg, var(--sp-blue), var(--sp-blue-hover));
    color: #fff;
    font: 700 14px/1 Barlow, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    width: fit-content;
    box-shadow: 0 6px 16px rgba(47, 107, 255, .24);
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}
button:hover, .go:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47, 107, 255, .32); }
button:active, .go:active { transform: none; }
button:disabled { background: #e5e9f0; color: #8a96a8; box-shadow: none; cursor: not-allowed; transform: none; }
button svg, .go svg { flex: none; }
button.quiet, a.quiet, .btn-secondary {
    background: var(--sp-card);
    color: var(--sp-text);
    border-color: var(--sp-line-strong);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
button.quiet:hover, a.quiet:hover, .btn-secondary:hover { color: var(--sp-text); background: var(--sp-soft); border-color: #c3cbd8; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
button.ghost, a.ghost {
    background: transparent;
    color: var(--sp-text-soft);
    border-color: transparent;
    box-shadow: none;
}
button.ghost:hover, a.ghost:hover { background: var(--sp-blue-tint); color: var(--sp-blue); box-shadow: none; transform: none; }
button.danger, a.danger { background: var(--sp-card); color: var(--sp-bad-ink); border-color: #f2c4c0; box-shadow: none; }
button.danger:hover, a.danger:hover { background: var(--sp-bad); color: #fff; border-color: var(--sp-bad); box-shadow: 0 6px 16px rgba(220, 38, 38, .24); }
.btn-light { background: #fff; color: var(--sp-navy); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.btn-light:hover { color: var(--sp-navy); background: #f1f5ff; }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-block { width: 100%; height: 48px; font-size: 15px; }

/* Text links inside copy: no default underline, a sliding underline on hover */
.text-link,
.hint a, .next a, .lede a, .legal-body a, .check a, .notice-item a, .field-note a {
    color: var(--sp-blue);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
    transition: background-size 180ms ease, color 140ms ease;
    padding-bottom: 1px;
}
.text-link:hover,
.hint a:hover, .next a:hover, .lede a:hover, .legal-body a:hover, .check a:hover, .notice-item a:hover, .field-note a:hover {
    color: var(--sp-blue-hover);
    background-size: 100% 1.5px;
}
.text-link { font-size: 12px; }
.field { display: grid; gap: 6px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-head label { font-size: 12px; font-weight: 600; color: var(--sp-muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--sp-muted); font-size: 12px; font-weight: 600; margin: 2px 0 -4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--sp-line); }
.card .btn-block + .btn-block { margin-top: -4px; }
.card:not(.wide) button[type="submit"] { width: 100%; }

/* Notices */
.error { margin: 0; color: var(--sp-bad-ink); background: var(--sp-bad-tint); border-radius: var(--sp-radius-sm); padding: 10px 12px; }
.notice-success { margin: 0; color: var(--sp-ok-ink); background: var(--sp-ok-tint); border-radius: var(--sp-radius-sm); padding: 10px 12px; font-weight: 600; }
.notice-warn { margin: 0; color: var(--sp-warn-ink); background: var(--sp-warn-tint); border: 1px solid #f3dca2; border-radius: var(--sp-radius-sm); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice-warn svg { flex: none; color: var(--sp-warn); margin-top: 1px; }
.verify-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #f3dca2;
    border-radius: var(--sp-radius);
    background: var(--sp-warn-tint);
    box-shadow: var(--sp-shadow);
}
.verify-banner h2 { margin: 0 0 2px; color: var(--sp-warn-ink); }
.verify-banner form { margin: 0; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: #eef1f6;
    color: var(--sp-text-soft);
}
.badge svg { width: 12px; height: 12px; }
.badge.ok { background: var(--sp-ok-tint); color: var(--sp-ok-ink); }
.badge.warn { background: var(--sp-warn-tint); color: var(--sp-warn-ink); }
.badge.bad { background: var(--sp-bad-tint); color: var(--sp-bad-ink); }
.badge.blue { background: var(--sp-blue-tint); color: var(--sp-blue-hover); }
.badge.gold { background: var(--sp-gold-tint); color: #7a5c17; }
.badge.solid { background: var(--sp-blue); color: #fff; }

/* Page scaffolding */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.page-head > div { display: grid; gap: 4px; }
.page-head > .inline { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.panel {
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 22px;
    box-shadow: var(--sp-shadow);
    display: grid;
    gap: 14px;
    align-content: start;
}
.panel > h2:first-child, .panel-title { margin: 0; font-size: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.split > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.sticky { position: sticky; top: 20px; }
.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--sp-radius);
    padding: 26px 28px;
    background: var(--sp-hero);
    color: #fff;
    box-shadow: var(--sp-shadow-lift);
    display: grid;
    gap: 10px;
}
.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 182, 255, .28), transparent 65%);
    pointer-events: none;
}
.hero-card h1, .hero-card h2 { color: #fff; }
.hero-card .eyebrow { color: #a9c4ff; }
.hero-card .hint { color: #c5d0e2; }
.hero-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; position: relative; z-index: 1; }
.hero-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-copy { display: grid; gap: 8px; position: relative; z-index: 1; }
.price-line { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price-line strong { font-size: 26px; }
.hint.fine { text-align: center; font-size: 12px; }
.inline { display: inline-flex; gap: 10px; align-items: center; }
.kv.invoice { align-items: center; flex-wrap: wrap; font-size: 14px; }
.list { display: grid; }
.list > * { padding: 12px 0; border-top: 1px solid var(--sp-line); }
.list > *:first-child { border-top: 0; padding-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; color: var(--sp-text-soft); }
.kv strong { color: var(--sp-text); }
a.kv { text-decoration: none; font-weight: 600; }
a.kv:hover { color: var(--sp-blue); }
.divider { height: 1px; background: var(--sp-line); border: 0; margin: 2px 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 16px 18px;
    box-shadow: var(--sp-shadow);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
}
.stat .ico { grid-row: span 2; }
.stat strong { font-size: 20px; line-height: 1.2; color: var(--sp-text); overflow-wrap: anywhere; }
.stat span { color: var(--sp-muted); font-size: 13px; }
.stat .meter { grid-column: 2; }
.ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--sp-blue-tint);
    color: var(--sp-blue);
}
.ico svg { width: 20px; height: 20px; }
.ico.solid { background: var(--sp-blue); color: #fff; }
.ico.gold { background: #f6ead0; color: #8c6a1f; }
.ico.green { background: var(--sp-ok-tint); color: var(--sp-ok); }
.ico.violet { background: #f0ebff; color: #6d4aff; }
.meter { height: 6px; border-radius: 999px; background: #e7ecf4; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sp-blue), #6f9bff); }

/* Credits ring */
.ring {
    --pct: 0;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: conic-gradient(#8eb6ff calc(var(--pct) * 1%), rgba(255, 255, 255, .14) 0);
    display: grid;
    place-items: center;
    flex: none;
    position: relative;
    z-index: 1;
}
.ring > div {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--sp-navy);
    display: grid;
    place-content: center;
    text-align: center;
}
.ring strong { font: 700 32px/1 "Barlow Condensed", Barlow, sans-serif; color: #fff; }
.ring span { font-size: 12px; color: #c5d0e2; }

/* Plan tiles */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan {
    position: relative;
    height: auto;
    width: 100%;
    display: grid;
    gap: 2px;
    justify-items: start;
    justify-content: stretch;
    align-content: start;
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--sp-line);
    background: var(--sp-card);
    color: var(--sp-text);
    font: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    cursor: pointer;
}
.plan:hover { color: var(--sp-text); border-color: #b8c9f5; background: var(--sp-soft); transform: translateY(-1px); box-shadow: var(--sp-shadow); }
.plan strong { font: 700 26px/1.1 "Barlow Condensed", Barlow, sans-serif; color: var(--sp-text); }
.plan span { color: var(--sp-muted); font-size: 13px; }
.plan small { color: var(--sp-muted); font-size: 12px; }
.plan .tags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.plan.is-on { border-color: var(--sp-blue); background: var(--sp-blue-tint); box-shadow: inset 0 0 0 1px var(--sp-blue); }
.plan.is-on strong { color: var(--sp-blue-hover); }
.plan .check-dot { display: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sp-blue); color: #fff; place-items: center; }
.plan.is-on .check-dot { display: grid; }
.range-ticks { display: flex; justify-content: space-between; color: var(--sp-muted); font-size: 12px; margin-top: -4px; }

/* Chips (radio) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 12px; font-weight: 600; color: var(--sp-muted); margin-bottom: 6px; padding: 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, a.chip, button.chip {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--sp-radius-sm);
    border: 1px solid var(--sp-line-strong);
    background: var(--sp-card);
    color: var(--sp-text-soft);
    font: 600 13px/1 Barlow, sans-serif;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    width: auto;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.chip span:hover, a.chip:hover, button.chip:hover { border-color: #b8c9f5; color: var(--sp-blue); background: var(--sp-card); transform: none; box-shadow: none; }
.chip input:checked + span, a.chip.is-on, button.chip.is-on { border-color: var(--sp-blue); background: var(--sp-blue-tint); color: var(--sp-blue-hover); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--sp-blue-ring); }
a.chip.is-on.solid, button.chip.is-on.solid { background: var(--sp-blue); color: #fff; }

/* Search field */
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sp-muted); pointer-events: none; }
.search input { width: 100%; padding-left: 42px; }
.search.lg input { height: 52px; font-size: 16px; border-radius: 12px; }

/* Dropdown menu */
.menu { position: relative; }
.menu > summary {
    list-style: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--sp-radius-sm);
    border: 1px solid var(--sp-line-strong);
    background: var(--sp-card);
    color: var(--sp-text-soft);
    cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--sp-soft); }
.menu[open] > summary { border-color: var(--sp-blue); color: var(--sp-blue); }
.menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 200px;
    padding: 6px;
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    box-shadow: var(--sp-shadow-lift);
    display: grid;
    gap: 2px;
}
.menu-list form { display: block; margin: 0; }
.menu-list button, .menu-list a {
    width: 100%;
    height: 36px;
    justify-content: flex-start;
    padding: 0 10px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--sp-text);
    font: 600 13px/1 Barlow, sans-serif;
    box-shadow: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-list button:hover, .menu-list a:hover { background: var(--sp-blue-tint); color: var(--sp-blue-hover); transform: none; box-shadow: none; }
.menu-list button.danger { color: var(--sp-bad-ink); }
.menu-list button.danger:hover { background: var(--sp-bad-tint); color: var(--sp-bad-ink); }
.menu-list small { color: var(--sp-muted); font-weight: 500; margin-left: auto; }

/* Legacy pieces still used by account pages */
.status-overall { margin: 0; padding: 10px 12px; border-radius: var(--sp-radius-sm); font-weight: 600; background: var(--sp-ok-tint); color: var(--sp-ok-ink); }
.status-overall.is-degraded { background: var(--sp-warn-tint); color: var(--sp-warn-ink); }
.status-overall.is-down { background: var(--sp-bad-tint); color: var(--sp-bad-ink); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9aa6b8; flex: none; }
.status-dot.is-ok { background: var(--sp-ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.status-dot.is-degraded { background: var(--sp-warn); box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); }
.status-dot.is-down { background: var(--sp-bad); box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }
.legal-draft { margin: 0; color: var(--sp-warn-ink); background: var(--sp-warn-tint); border: 1px solid #f3dca2; border-radius: var(--sp-radius-sm); padding: 10px 12px; font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a:not(.go) {
    text-decoration: none;
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    color: var(--sp-text);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
}
.links a:not(.go):hover { background: var(--sp-blue-tint); border-color: #c9d8ff; color: var(--sp-blue-hover); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--sp-line); border-radius: 12px; padding: 14px; background: var(--sp-card); }
.tile strong { display: block; font-size: 22px; }
.tile span { color: var(--sp-muted); font-size: 13px; }
.tile:has(.tile-ico) { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.tile-ico { grid-row: 1 / span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--sp-blue-tint); color: var(--sp-blue); }
.tile:has(.tile-ico) strong, .tile:has(.tile-ico) span { grid-column: 2; }
.stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-row.two { grid-template-columns: repeat(2, minmax(0, 180px)); }
.quote { display: inline-flex; width: fit-content; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--sp-blue-tint); color: var(--sp-navy); font-size: 22px; font-weight: 700; }
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--sp-card);
}
.row p { margin: 0; }
.row form, .row .actions { display: flex; gap: 8px; }
.onboard { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 20px; align-items: start; }
.onboard-steps { display: grid; gap: 6px; }
.onboard-step { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--sp-text-soft); text-decoration: none; border: 1px solid transparent; }
.onboard-step:hover { background: var(--sp-card); border-color: var(--sp-line); }
.onboard-step.is-current { background: var(--sp-card); border-color: var(--sp-blue); color: var(--sp-text); }
.onboard-step span:last-child { display: grid; }
.onboard-step small { color: var(--sp-muted); font-size: 12px; }
.onboard-num { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sp-line); color: var(--sp-text-soft); font-size: 13px; font-weight: 700; }
.onboard-step.is-current .onboard-num { background: var(--sp-blue); color: #fff; }
.onboard-step.is-done .onboard-num { background: var(--sp-ok-tint); color: var(--sp-ok-ink); }
.onboard-body { gap: 18px; }
.onboard-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.onboard-plans { display: grid; gap: 8px; max-width: 420px; }
.onboard-explainer { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--sp-text-soft); }
.onboard-explainer strong { color: var(--sp-text); }
.setup-card { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.setup-card .meter { width: 220px; }
@media (max-width: 760px) { .onboard { grid-template-columns: 1fr; } }
.admin-search { display: flex; gap: 8px; align-items: center; }
.admin-search input { min-width: 260px; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-tabs a { padding: 4px 10px; border-radius: 999px; font-size: 13px; color: var(--sp-text-soft); text-decoration: none; }
.admin-tabs a.is-active { background: var(--sp-blue-tint); color: var(--sp-navy); font-weight: 600; }
.admin-sub { margin: 8px 0 0; font-size: 14px; }
.ticket-msg { display: grid; gap: 6px; border: 1px solid var(--sp-line); border-radius: 12px; padding: 12px 14px; background: var(--sp-card); }
.ticket-msg.is-staff { background: var(--sp-blue-tint); border-color: transparent; }
.ticket-msg.is-note { background: var(--sp-warn-tint); border-color: #f3dca2; }
.ticket-body { margin: 0; white-space: pre-wrap; }
.avatar-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.avatar-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--sp-line); flex: none; }
.avatar-initial { display: inline-grid; place-items: center; background: var(--sp-blue-tint); color: var(--sp-navy); font-size: 24px; font-weight: 700; }
.row button, .row .go { height: 34px; font-size: 13px; padding: 0 12px; }
.steps, .apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step, .app {
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 18px;
    background: var(--sp-card);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.app:hover { border-color: #bfd0f5; box-shadow: var(--sp-shadow); transform: translateY(-1px); color: inherit; }
.step strong, .app strong { display: block; color: var(--sp-blue); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.step h2, .app h2 { margin: 6px 0; font-size: 18px; }
.step p, .app p { margin: 0; color: var(--sp-muted); font-size: 14px; }
.step { position: relative; padding-right: 56px; }
.step-ico { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--sp-blue-tint); color: var(--sp-blue); }
.app-mark { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.app-mark svg { width: 18px; height: 18px; color: var(--sp-blue); flex: 0 0 18px; }
.app-mark strong { display: inline; }
.legal-body p, .legal-body ul { margin: 0; color: var(--sp-text-soft); line-height: 1.6; }
.legal-body ul { padding-left: 20px; display: grid; gap: 6px; }
.lib-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; align-items: end; }
.lib-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.lib-title { font-weight: 700; color: var(--sp-text); margin: 0; }
.lib-meta { color: var(--sp-muted); font-size: 13px; line-height: 1.4; margin: 0; }

/* Workspace quick actions */
.actions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: var(--sp-card);
    color: var(--sp-text);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.action:hover { color: var(--sp-text); border-color: #bfd0f5; box-shadow: var(--sp-shadow); transform: translateY(-1px); }
.action .ico { grid-row: span 2; }
.action strong { font-size: 15px; }
.action span { color: var(--sp-muted); font-size: 12px; line-height: 1.3; }
.notice-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 10px; }
.notice-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-blue); margin-top: 7px; }
.notice-item.is-read .dot { background: transparent; }
.notice-item p { margin: 0; grid-column: 2; }
.notice-item .hint { font-size: 13px; }

/* Library */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .search { flex: 1 1 280px; }
.toolbar select { width: auto; min-width: 170px; }
.segmented { display: inline-flex; padding: 3px; background: #eef1f6; border-radius: 12px; gap: 2px; }
.segmented a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--sp-text-soft); text-decoration: none; font-weight: 700; font-size: 13px; }
.segmented a.is-on { background: var(--sp-card); color: var(--sp-blue-hover); box-shadow: 0 1px 3px rgba(15, 23, 42, .10); }
.segmented a .badge { height: 20px; padding: 0 7px; font-size: 11px; }
.filters-more > summary { list-style: none; }
.filters-more > summary::-webkit-details-marker { display: none; }
.filters-more[open] > summary { border-color: var(--sp-blue); color: var(--sp-blue); }
.filters-more .lib-filters { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sp-line); }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.proj {
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    display: grid;
    grid-template-rows: auto 1fr;
    transition: box-shadow 160ms ease, transform 160ms ease;
}
.proj:hover { box-shadow: var(--sp-shadow-lift); transform: translateY(-2px); }
.proj-cover {
    position: relative;
    height: 128px;
    border-radius: var(--sp-radius) var(--sp-radius) 0 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 55%, rgba(47, 107, 255, .0) 0 26px, rgba(142, 182, 255, .55) 27px 28px, transparent 29px),
        linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, .10) 47% 49%, transparent 49%),
        linear-gradient(35deg, transparent 60%, rgba(255, 255, 255, .08) 60% 61.5%, transparent 61.5%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 22px),
        var(--sp-hero);
    color: #fff;
}
.proj-cover .pin { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -100%); color: #ff5a4f; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.proj-cover .proj-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-cover:has(.proj-thumb) .pin { display: none; }
.proj-cover .badge { position: absolute; top: 12px; left: 12px; background: rgba(11, 18, 32, .55); color: #fff; backdrop-filter: blur(4px); }
.proj-cover .radius { left: auto; right: 12px; }
.proj-body { padding: 16px; display: grid; gap: 10px; align-content: start; }
.proj-body .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.proj-foot .go, .proj-foot .quiet { height: 36px; font-size: 13px; padding: 0 14px; }
.proj-foot .menu { margin-left: auto; }
.empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--sp-line-strong);
    border-radius: var(--sp-radius);
    background: var(--sp-card);
}

/* Pricing */
.pricing-head { text-align: center; display: grid; gap: 10px; justify-items: center; }
.pricing-head h1 { font-size: 48px; }
.quote-panel {
    border-radius: var(--sp-radius);
    padding: 24px;
    background: var(--sp-hero);
    color: #fff;
    display: grid;
    gap: 6px;
    align-content: center;
}
.quote-panel strong { font: 700 44px/1 "Barlow Condensed", Barlow, sans-serif; color: #fff; }
.quote-panel strong small { font-size: 20px; font-weight: 600; color: #c5d0e2; }
.quote-panel .per { font-size: 18px; font-weight: 700; }
.quote-panel .hint { color: #a9b8d0; font-size: 12px; }
.quote-panel .go { margin-top: 10px; width: 100%; }
.qty-pill { justify-self: start; display: inline-grid; place-items: center; min-width: 64px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--sp-line); font: 700 26px/1 "Barlow Condensed", Barlow, sans-serif; color: var(--sp-text); background: var(--sp-card); }
.feature-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--sp-text-soft); font-weight: 600; font-size: 14px; }
.feature-row span { display: inline-flex; align-items: center; gap: 8px; }
.feature-row svg { color: var(--sp-ok); }

/* Help */
.help-hero { padding: 32px; }
.help-hero h1 { font-size: 40px; }
.help-hero .search { max-width: 620px; position: relative; z-index: 1; }
.help-hero .search input { border: 0; }
.num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sp-blue-tint); color: var(--sp-blue); font: 700 18px/1 "Barlow Condensed", Barlow, sans-serif; flex: none; }
.num-card { display: flex; gap: 14px; align-items: flex-start; }
.num-card h3 { margin-bottom: 4px; }
.num-card p { margin: 0; color: var(--sp-muted); font-size: 14px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.article-link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    color: var(--sp-text);
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.article-link[hidden] { display: none; }
.article-link:hover { color: var(--sp-text); border-color: #bfd0f5; box-shadow: var(--sp-shadow); }
.article-link .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--sp-soft); color: var(--sp-text-soft); }
.article-link .ico svg { width: 18px; height: 18px; }
.article-link strong { display: block; font-size: 15px; }
.article-link span { color: var(--sp-muted); font-size: 13px; }
.article-link > svg { color: var(--sp-muted); }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.cta-strip h2 { margin: 0; font-size: 24px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-card); color: var(--sp-text-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.status-pill:hover { color: var(--sp-text); border-color: #c3cbd8; }

/* Product */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.product-hero h1 { font-size: 54px; line-height: 1.02; }
.product-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-shot {
    border-radius: 18px;
    padding: 10px;
    background: var(--sp-navy);
    box-shadow: 0 30px 60px rgba(15, 23, 42, .22);
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.product-shot .frame {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background:
        radial-gradient(circle at 52% 52%, transparent 0 82px, rgba(142, 182, 255, .8) 83px 85px, transparent 86px),
        linear-gradient(118deg, transparent 30%, rgba(255, 214, 102, .7) 30% 31.2%, transparent 31.2%),
        linear-gradient(12deg, transparent 72%, rgba(255, 255, 255, .35) 72% 73.5%, transparent 73.5%),
        linear-gradient(160deg, transparent 58%, rgba(255, 255, 255, .25) 58% 59%, transparent 59%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 26px),
        linear-gradient(160deg, #2b3b2f, #1d2a24 45%, #2a3530);
}
.product-shot .parcel { position: absolute; left: 44%; top: 40%; width: 15%; height: 20%; border: 2px solid #ffd666; background: rgba(255, 214, 102, .22); transform: rotate(-8deg); }
.product-shot .pin { position: absolute; left: 51%; top: 49%; transform: translate(-50%, -100%); color: #ff4d42; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.product-shot .callout { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--sp-text); font-size: 12px; font-weight: 700; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.product-shot .callout i { width: 10px; height: 10px; border-radius: 3px; background: var(--sp-blue); }
.product-shot .vpd { position: absolute; padding: 3px 8px; border-radius: 6px; background: rgba(11, 18, 32, .78); color: #ffd666; font-size: 11px; font-weight: 700; }
.product-shot .title-band { position: absolute; inset: 0 0 auto 0; padding: 8px 12px; background: rgba(11, 18, 32, .85); color: #fff; font: 700 13px/1.2 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .04em; }
.story-band { display: grid; gap: 12px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.story-grid article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.story-grid article:hover { border-color: #bfd0f5; box-shadow: var(--sp-shadow); transform: translateY(-1px); }
.story-grid article .ico { grid-row: span 2; width: 40px; height: 40px; }
.story-grid h2 { margin: 0; font-size: 16px; }
.story-grid p { margin: 0; color: var(--sp-muted); font-size: 13px; line-height: 1.4; }

/* Legal */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.doc-nav { position: sticky; top: 20px; padding: 18px; gap: 4px; }
.doc-nav p { margin: 6px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-muted); }
.doc-nav a { display: block; padding: 6px 10px; border-radius: 8px; border-left: 3px solid transparent; color: var(--sp-text-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.doc-nav a:hover { background: var(--sp-soft); color: var(--sp-text); }
.doc-nav a.is-on { border-left-color: var(--sp-blue); background: var(--sp-blue-tint); color: var(--sp-blue-hover); font-weight: 700; }
.doc-nav .toc a { font-size: 13px; padding: 4px 10px; }
.doc-nav hr { border: 0; height: 1px; background: var(--sp-line); margin: 10px 0 4px; }
.doc-body { padding: 32px 36px; gap: 14px; }
.doc-body h2 { margin: 18px 0 0; font-size: 19px; scroll-margin-top: 20px; }
.doc-body p, .doc-body ul { max-width: 72ch; }
.crumbs { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13px; color: var(--sp-muted); }
.crumbs a { color: var(--sp-muted); text-decoration: none; }
.crumbs a:hover { color: var(--sp-blue); }
.doc-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-title h1 { font-size: 38px; }

/* Status */
.status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--sp-radius);
    border: 1px solid #bfe5cc;
    border-left: 5px solid var(--sp-ok);
    background: var(--sp-ok-tint);
    color: var(--sp-ok-ink);
}
.status-banner .mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sp-ok); color: #fff; flex: none; }
.status-banner strong { font-size: 19px; color: inherit; }
.status-banner .hint { margin-left: auto; color: inherit; opacity: .8; }
.status-banner.is-degraded { border-color: #f3dca2; border-left-color: var(--sp-warn); background: var(--sp-warn-tint); color: var(--sp-warn-ink); }
.status-banner.is-degraded .mark { background: var(--sp-warn); }
.status-banner.is-down { border-color: #f2c4c0; border-left-color: var(--sp-bad); background: var(--sp-bad-tint); color: var(--sp-bad-ink); }
.status-banner.is-down .mark { background: var(--sp-bad); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc { padding: 18px 20px; gap: 8px; }
.svc-head { display: flex; align-items: center; gap: 10px; }
.svc-head h3 { font-size: 17px; }
.svc-head .badge { margin-left: auto; }
.svc .hint { font-size: 13px; }

/* Support */
.support-form { gap: 16px; }
.support-form label { font-size: 13px; color: var(--sp-text-soft); }

/* Footer */
.site-foot { width: 100%; margin: 0; background: var(--sp-navy); color: #c5d0e2; border-top: 1px solid var(--sp-navy-line); }
.foot-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-about { display: grid; gap: 12px; align-content: start; }
.foot-about p { margin: 0; max-width: 300px; color: #a9b8d0; font-size: 14px; }
.foot-about .go { height: 38px; font-size: 13px; }
.site-foot .brand strong, .site-foot .wordmark { font-size: 18px; }
.site-foot .brand > span { width: 30px; height: 30px; flex-basis: 30px; box-shadow: none; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h2 { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.foot-col a { color: #a9b8d0; text-decoration: none; font-size: 14px; width: fit-content; }
.foot-col a:hover, .foot-col a.is-on { color: #fff; }
.foot-base { width: min(1120px, calc(100% - 40px)); margin: 32px auto 0; padding: 16px 0 20px; border-top: 1px solid var(--sp-navy-line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 13px; color: #8ea0bb; }
.foot-base .foot-status { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: #c5d0e2; text-decoration: none; }
.foot-base .foot-status:hover { color: #fff; }
.foot-base .foot-status em { font-style: normal; color: #8eb6ff; }

/* Account menu in the top bar */
.account-menu > summary {
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: var(--sp-navy-soft);
    color: #e8eef8;
    font: 600 13px/1 Barlow, sans-serif;
}
.account-menu > summary:hover { background: rgba(255, 255, 255, .08); }
.account-menu[open] > summary { border-color: var(--sp-blue); color: #fff; }
.bar-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sp-blue); color: #fff; font-size: 13px; font-weight: 700; object-fit: cover; flex: none; }
.account-menu .menu-list { min-width: 240px; z-index: 50; }
.menu-who { margin: 0 0 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--sp-line); display: grid; gap: 2px; }
.menu-who strong { color: var(--sp-text); font-size: 14px; }
.menu-who small { margin-left: 0; color: var(--sp-muted); font-size: 12px; overflow-wrap: anywhere; }
.bar .menu-list a, .bar .menu-list form button { height: 36px; border: 0; border-radius: 8px; padding: 0 10px; color: var(--sp-text); background: transparent; font: 600 13px/1 Barlow, sans-serif; }
.bar .menu-list a:hover { background: var(--sp-blue-tint); color: var(--sp-blue-hover); }
.bar .menu-list form button { color: var(--sp-bad-ink); }
.bar .menu-list form button:hover { background: var(--sp-bad-tint); color: var(--sp-bad-ink); }

/* Section scaffolding shared by account pages */
.section-head { display: grid; gap: 4px; }
.section-head h2 { margin: 0; }
.section-head .hint { font-size: 13px; }
.sub-head { margin: 6px 0 -2px; padding-top: 14px; border-top: 1px solid var(--sp-line); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sp-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select { width: 100%; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.inline-form label { flex: 1 1 180px; }
.inline-form button { flex: none; }
button.sm, .go.sm { height: 32px; padding: 0 12px; font-size: 12px; }
code { font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--sp-text-soft); background: var(--sp-soft); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
.code-box { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--sp-soft); border: 1px solid var(--sp-line); }
.code-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.code-grid code { text-align: center; padding: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; }
.list-row p { margin: 0; flex: 1; display: grid; gap: 2px; color: var(--sp-text); font-weight: 600; font-size: 14px; min-width: 0; }
.list-row small { color: var(--sp-muted); font-weight: 500; font-size: 12px; }
.list-row form { margin: 0; }
.notice-success code.copyable { background: rgba(255, 255, 255, .6); user-select: all; }

/* Settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { padding: 10px; gap: 2px; }
.settings-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--sp-text-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.settings-nav a:hover { background: var(--sp-blue-tint); color: var(--sp-blue-hover); }
.settings-body, .settings-form { display: grid; gap: 20px; }
.settings-body .panel { scroll-margin-top: 20px; }
.save-bar {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 12px 18px;
    border-radius: 14px;
    background: rgba(11, 18, 32, .92);
    backdrop-filter: blur(6px);
    box-shadow: var(--sp-shadow-lift);
}
.save-bar .hint { color: #c5d0e2; font-size: 13px; }
.save-bar button { min-width: 120px; }

/* Team */
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-list { display: grid; gap: 10px; }
.member { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--sp-line); border-radius: 14px; background: var(--sp-card); }
.member-who { display: flex; align-items: center; gap: 12px; }
.member-who p { margin: 0; flex: 1; display: grid; gap: 1px; min-width: 0; }
.member-who small { color: var(--sp-muted); font-size: 12px; overflow-wrap: anywhere; }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sp-blue-tint); color: var(--sp-navy); font-weight: 700; flex: none; }
.member-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding-top: 12px; border-top: 1px dashed var(--sp-line); }
.member-controls .inline-form { flex: 1 1 260px; }
.member-controls button { height: 42px; }

/* Clients */
.client { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--sp-line); border-radius: 14px; background: var(--sp-card); }
.client-head { display: flex; align-items: center; gap: 12px; }
.client-head p { margin: 0; flex: 1; display: grid; gap: 1px; min-width: 0; }
.client-head small { color: var(--sp-muted); font-size: 12px; }
.client-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: var(--sp-soft); border: 1px solid var(--sp-line); flex: none; }
.client-swatch { display: inline-grid; place-items: center; background: var(--swatch); color: #fff; font-weight: 700; font-size: 18px; border: 0; }
.client-edit > summary { cursor: pointer; width: fit-content; color: var(--sp-blue); font-size: 13px; font-weight: 700; list-style: none; }
.client-edit > summary::-webkit-details-marker { display: none; }
.client-edit > summary::after { content: " ▾"; }
.client-edit[open] > summary { margin-bottom: 12px; }
.client-edit[open] > summary::after { content: " ▴"; }
.member-picks { border: 1px solid var(--sp-line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.member-picks legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--sp-muted); }

/* Exports */
.export-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sp-line); }
.export-row:first-of-type { border-top: 0; }
.export-row .actions { display: flex; gap: 8px; }
.format-tag { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--sp-blue-tint); color: var(--sp-blue-hover); font: 700 15px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .06em; }
.format-tag.is-pdf { background: var(--sp-bad-tint); color: var(--sp-bad-ink); }
.lib-meta.is-error { color: var(--sp-bad-ink); }

/* Data tables (operator console) */
.table-wrap { margin: 0 -4px; padding: 0 4px; }
.table-wrap.scroll { max-height: 360px; overflow: auto; }
.table-wrap.tall { max-height: 480px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { position: sticky; top: 0; z-index: 1; background: var(--sp-card); text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); padding: 0 10px 8px; border-bottom: 1px solid var(--sp-line); }
.data-table td { padding: 10px; border-top: 1px solid var(--sp-line); vertical-align: middle; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table tbody tr:hover td { background: var(--sp-soft); }
.data-table.compact td { padding: 7px 10px; font-size: 13px; }
.data-table td small { display: block; color: var(--sp-muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.data-table .num-cell { width: 1%; white-space: nowrap; color: var(--sp-muted); font-weight: 700; font-size: 13px; }
.data-table .cell-title { color: var(--sp-text); font-weight: 600; text-decoration: none; }
.data-table a.cell-title:hover { color: var(--sp-blue); }
.data-table .end { text-align: right; white-space: nowrap; }
.data-table .end form { display: inline-block; margin: 0; }
.muted { color: var(--sp-muted); font-weight: 500; }
.admin-search.search { display: flex; position: relative; }
.admin-search.search svg { left: 12px; }
.admin-search.search input { padding-left: 36px; }
.price-table { display: grid; gap: 6px; }
.price-table .kv { padding: 6px 0; border-bottom: 1px dashed var(--sp-line); font-size: 14px; }
.delta.is-up { color: var(--sp-ok-ink); }
.delta.is-down { color: var(--sp-bad-ink); }
.table-wrap > .kv { padding: 8px 0; border-top: 1px solid var(--sp-line); font-size: 14px; }
.table-wrap > .kv:first-child { border-top: 0; }

@media (max-width: 1000px) {
    .settings { grid-template-columns: 1fr; }
    .settings-nav { display: none; }
}
@media (max-width: 720px) {
    .form-grid, .form-grid.three, .stats.three { grid-template-columns: 1fr; }
    .export-row { grid-template-columns: 44px minmax(0, 1fr); }
    .export-row .badge, .export-row .actions { grid-column: 2; justify-self: start; }
    .bar-name { display: none; }
    .save-bar { flex-direction: column; align-items: stretch; }
}

/* Responsive */
@media (max-width: 1000px) {
    .split, .product-hero, .doc { grid-template-columns: minmax(0, 1fr); }
    .sticky, .doc-nav { position: static; }
    .proj-grid, .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-inner { grid-template-columns: 1fr 1fr; }
    .product-shot { transform: none; }
}
@media (max-width: 900px) {
    .bar { height: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; padding: 10px 12px; gap: 8px; }
    .bar nav { grid-column: 1 / -1; width: 100%; justify-self: stretch; overflow: auto; }
    .bar > .account-menu, .bar > .nav-cta { grid-row: 1; grid-column: 2; justify-self: end; }
    .story-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    h1 { font-size: 28px; }
    .pricing-head h1, .product-hero h1, .help-hero h1 { font-size: 34px; }
    .steps, .apps, .auth-stage, .article-grid, .proj-grid, .svc-grid, .story-grid, .plan-grid { grid-template-columns: 1fr; }
    .auth-side { padding: 24px; }
    .auth-side h2 { font-size: 22px; }
    .lib-filters { grid-template-columns: 1fr 1fr; }
    .hero-card { padding: 22px; }
    .ring { width: 108px; height: 108px; }
    .ring > div { width: 84px; height: 84px; }
    .doc-body { padding: 22px; }
    .foot-inner { grid-template-columns: 1fr; }
    .foot-base .foot-status { margin-left: 0; }
    .verify-banner { grid-template-columns: auto 1fr; }
    .verify-banner form { grid-column: 1 / -1; }
    .verify-banner button { width: 100%; }
    main:has(.page-fill) { padding: 24px 16px; }
}
@media (max-width: 520px) {
    .brand em { display: none; }
    .wordmark { font-size: 18px; }
    .bar nav a, .nav-cta { padding: 8px 10px; }
    .stats, .actions-grid { grid-template-columns: 1fr; }
}
.plan-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips.center { justify-content: center; align-items: center; }
@media (max-width: 900px) { .plan-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .plan-grid.cols-4 { grid-template-columns: 1fr; } }

.product-shot .callout { color: #0f172a; }

/* Control sizes: 40px matches inputs, 32px inside cards and rows, 44px only for full-width primary actions */
input, select { height: 40px; }
button, .go { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { height: 44px; font-size: 15px; }
button.sm, .go.sm,
.row button, .row .go,
.proj-foot .go, .proj-foot .quiet, .proj-foot button, .proj-foot summary,
.data-table button, .data-table .go,
.list-row button, .list-row .go,
.export-row button, .export-row .go { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.member-controls button { height: 40px; }
.segmented a { height: 32px; }
.foot-about .go { height: 36px; font-size: 13px; }

/* Workspace: recent aerials fill the column under quick actions */
.recent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.recent { display: grid; gap: 4px; min-width: 0; padding: 0 0 10px; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); background: var(--sp-soft); color: var(--sp-text); text-decoration: none; overflow: hidden; transition: border-color 160ms ease, transform 160ms ease; }
.recent:hover { border-color: rgba(111, 155, 255, .5); transform: translateY(-2px); }
.recent .proj-cover { display: block; height: 104px; border-radius: 0; margin-bottom: 6px; }
.recent strong, .recent small { padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent strong { font-size: 13px; }
.recent small { color: var(--sp-muted); font-size: 12px; }
@media (max-width: 1100px) { .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.recent .proj-cover { height: 132px; }
.dash-split { align-items: stretch; }
.dash-split > div { align-content: start; }
.dash-notices { display: flex; flex-direction: column; min-height: 0; position: relative; }
.dash-notices .list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
@media (min-width: 1101px) {
    .dash-notices { height: 0; min-height: 100%; }
}
