/* FCCAlgo customer portal — tokens and components follow fccalgo.com (FCC-website/snippets/fcc.css). */
:root {
    --bg: #07090D;
    --bg-2: #0B0F15;
    --surface: #0F141B;
    --surface-2: #141B24;
    --text: #E6EDF3;
    --muted: #9AA4AF;
    --dim: #6E7681;
    --line: rgba(230, 237, 243, 0.08);
    --line-2: rgba(230, 237, 243, 0.14);
    --teal: #2DD4A7;
    --teal-2: #5EEAD4;
    --teal-ink: #04261D;
    --amber: #FBBF24;
    --red: #F7768E;
    --radius: 20px;
    --radius-sm: 12px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora", "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(45, 212, 167, .35); color: #fff; }

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-2); }

/* Ambient background: grid + glow (static version of the site's hero) */
.ambient { position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 70%);
    opacity: .5;
}
.ambient::after {
    content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 520px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(45, 212, 167, .16), rgba(124, 58, 237, .08) 60%, transparent);
    filter: blur(20px);
}

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0; }
h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 48px 0 28px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 600; margin: 28px 0 12px; }
code, .mono { font-family: var(--font-mono); font-size: 13.5px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 10; height: 72px;
    background: rgba(7, 9, 13, .72); border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand img { display: block; height: 26px; width: auto; }
.brand span {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
    padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 26px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(230, 237, 243, .05); }
.nav form { margin: 0 0 0 8px; }

/* ---------- Cards ---------- */
.card {
    position: relative; padding: 28px; margin-bottom: 20px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 27, 36, .75), rgba(13, 17, 23, .75));
    border: 1px solid var(--line);
}
.card.narrow { max-width: 460px; margin: 72px auto 40px; padding: 36px; box-shadow: 0 30px 80px -40px rgba(45, 212, 167, .35); }
.card.narrow h1 { margin: 14px 0 12px; font-size: 30px; }
.downloads-lead { color: var(--text); margin: 0 0 24px; }
.notice.trial-note { margin: 20px 0 0; }
.help-card { margin-top: 64px; background: transparent; border: 1px dashed var(--line-2); }
.help-card::before { content: ""; position: absolute; left: 0; right: 0; top: -33px; border-top: 1px solid var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-head h2 { margin-bottom: 4px; }

.muted { color: var(--muted); margin: 0 0 16px; }
.hint { color: var(--dim); font-size: 13.5px; margin: 12px 0 0; }
.hint code { color: var(--muted); }
.error { color: var(--red); margin: 0; font-size: 14px; }
.notice {
    margin: 28px 0 0; padding: 14px 18px; border-radius: var(--radius-sm);
    background: rgba(45, 212, 167, .08); border: 1px solid rgba(45, 212, 167, .25); color: var(--text); font-size: 14.5px;
}

/* ---------- Forms & buttons ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
label { font-size: 13.5px; font-weight: 600; color: var(--text); }
input[type=email] {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
    background: rgba(7, 9, 13, .7); color: var(--text); font: 15.5px var(--font); transition: border-color .2s, box-shadow .2s;
}
input[type=email]::placeholder { color: var(--dim); }
input[type=email]:focus { outline: none; border-color: rgba(45, 212, 167, .6); box-shadow: 0 0 0 4px rgba(45, 212, 167, .12); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    font: 600 15px/1 var(--font); letter-spacing: -0.005em;
    background: var(--teal); color: var(--teal-ink);
    box-shadow: 0 0 0 1px rgba(45, 212, 167, .4), 0 10px 40px -10px rgba(45, 212, 167, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .25s, border-color .25s, color .25s;
}
.btn:hover {
    background: #4BE3BA; color: var(--teal-ink); transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(45, 212, 167, .6), 0 18px 50px -12px rgba(45, 212, 167, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.stack .btn { margin-top: 10px; }
.btn-small { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-ghost {
    background: rgba(230, 237, 243, .04); color: var(--text); border-color: var(--line-2); box-shadow: none;
}
.btn-ghost:hover { background: rgba(230, 237, 243, .08); border-color: rgba(230, 237, 243, .28); color: var(--text); box-shadow: none; }
.btn-danger { background: rgba(247, 118, 142, .1); color: var(--red); border-color: rgba(247, 118, 142, .4); box-shadow: none; }
.btn-danger:hover { background: rgba(247, 118, 142, .18); color: #FF9CAE; border-color: rgba(247, 118, 142, .6); box-shadow: none; }

/* ---------- Licenses ---------- */
.badge {
    font: 700 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
    padding: 6px 11px; border-radius: 999px; border: 1px solid transparent;
}
.badge-active { background: rgba(45, 212, 167, .1); color: var(--teal); border-color: rgba(45, 212, 167, .3); }
.badge-expired { background: rgba(251, 191, 36, .1); color: var(--amber); border-color: rgba(251, 191, 36, .3); }
.badge-suspended, .badge-revoked { background: rgba(247, 118, 142, .1); color: var(--red); border-color: rgba(247, 118, 142, .3); }

.key-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.key-row .label { color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.key { background: rgba(7, 9, 13, .7); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; color: var(--text); letter-spacing: .02em; }
.counter { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--teal); margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(45, 212, 167, .08); }

.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(11, 15, 21, .7); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
th { font-family: var(--font-display); color: var(--text); font-weight: 600; font-size: 13.5px; }
td:first-child { color: var(--text); }
tr:last-child td { border-bottom: 0; }
td.right { text-align: right; }
td form { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-online { color: var(--teal); }
.status-online::before { box-shadow: 0 0 0 3px rgba(45, 212, 167, .15); }
.status-offline { color: var(--amber); }
.status-detail { display: block; margin-top: 3px; font-size: 12.5px; color: var(--dim); }

.danger-zone { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.danger-zone summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.danger-zone summary:hover { color: var(--text); }
.danger-zone p { margin-top: 10px; }

/* ---------- Downloads ---------- */
.files { list-style: none; margin: 14px 0 0; padding: 0; }
.files li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; padding-bottom: 0; }
.files a { font-weight: 600; }
.files .file-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.files .muted { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.files .btn { font-weight: 600; }

/* ---------- Onboarding & help ---------- */
.card.onboarding {
    border-color: rgba(45, 212, 167, .3);
    background: linear-gradient(180deg, rgba(45, 212, 167, .05), transparent 160px), var(--surface);
}
.steps { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 40px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
    content: counter(s); position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-mono); font-size: 12.5px; color: var(--teal);
    background: rgba(45, 212, 167, .1); border: 1px solid rgba(45, 212, 167, .3);
}
.steps strong { color: var(--text); font-weight: 600; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.steps code { color: var(--teal); font-family: var(--font-mono); font-size: 13.5px; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.help-grid a {
    display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: rgba(7, 9, 13, .5); color: var(--text); font-weight: 600; font-size: 14.5px;
    transition: border-color .2s, background-color .2s;
}
.help-grid a:hover { border-color: rgba(45, 212, 167, .4); background: rgba(45, 212, 167, .05); color: var(--text); }
.help-grid a span { display: block; margin-top: 3px; color: var(--dim); font-weight: 400; font-size: 13px; }

/* ---------- Footer ---------- */
.footer {
    margin-top: auto; position: relative; z-index: 1;
    background: #05070A; border-top: 1px solid var(--line);
}
.footer .wrap { color: var(--dim); font-size: 13.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px 32px; padding-top: 36px; padding-bottom: 28px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 9px; }
.footer h4 { margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 28px; font-size: 12.5px; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
main { padding-bottom: 64px; }

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .brand span { display: none; }
    .brand img { height: 22px; }
    .topbar { height: auto; }
    .topbar-inner { flex-wrap: wrap; row-gap: 8px; padding-top: 14px; padding-bottom: 10px; }
    .nav { width: 100%; margin-left: -12px; }
    .nav a { padding: 6px 12px; font-size: 14px; }
    .nav form { margin-left: auto; }
    .card { padding: 20px; }
    .card.narrow { padding: 28px 22px; margin-top: 40px; }
    h1 { margin-top: 32px; }
    .footer-cols { grid-template-columns: 1fr 1fr; justify-content: stretch; padding-top: 28px; }
    .footer-bottom::before { left: 16px; right: 16px; }
}

/* ---------- FCC_EA trial ---------- */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); line-height: 1.55; cursor: pointer; }
.check input { margin: 4px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--teal); }
.small { font-size: 13px; color: var(--dim); margin: 0; }
.trial-compare { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.trial-col { padding: 12px 12px 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(230, 237, 243, .025); }
.trial-col-free { border-color: rgba(45, 212, 167, .35); background: rgba(45, 212, 167, .06); }
.trial-col-head { margin: 0 0 8px; font-weight: 600; color: var(--text); font-size: 14px; }
.trial-col-head span { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.trial-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; color: var(--text); }
.trial-col li { position: relative; padding-left: 18px; }
.trial-col-free li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.trial-col-license li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--muted); }
.trial-col > a { display: inline-block; margin-top: 8px; font-weight: 500; }
@media (max-width: 400px) {
    .trial-compare { gap: 8px; font-size: 13px; }
    .trial-col { padding: 10px; }
    .trial-col-head span { font-size: 12px; }
}
.card.narrow.trial-card { max-width: 500px; margin-top: 28px; padding: 28px; }
.card.narrow.trial-card h1 { margin: 10px 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.trial-card .muted { margin-bottom: 0; }
.trial-card .stack { margin-top: 16px; gap: 8px; }
.trial-card .stack label[for=email] { margin-bottom: -2px; }
.trial-card input[type=email] { padding: 11px 14px; }
.trial-card .check { font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.trial-card .stack .btn { margin-top: 6px; }
.trial-card .small { color: var(--muted); line-height: 1.5; }
.trial-fine { margin-top: 12px; }
.trial-card p > .btn { margin-top: 16px; }
@media (max-width: 640px) {
    .card.narrow.trial-card { margin-top: 16px; padding: 20px; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Cookie consent (shared with fccalgo.com) ---------- */
.consent {
    position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px;
    display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font-size: 13.5px; color: var(--muted);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent-btns { display: flex; gap: 8px; }
.linklike {
    padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-align: left; cursor: pointer;
}
.linklike:hover { color: var(--teal-2); }

/* Login: the trial link under the form (was an inline style; the CSP allows no inline styles). */
.login-alt { margin-top: 16px; }
