/* Store website + customer account + admin. Bootstrap 5 underneath; tokens below drive both themes. */
:root {
    --st-accent: #ea6a1d;
    --st-accent-hover: #d35d14;
    --st-accent-ink: #b34a0b;
    --st-accent-wash: rgba(234, 106, 29, .10);
    --st-page: #f6f7f9;
    --st-surface: #ffffff;
    --st-inset: #f1f3f6;
    --st-border: #e3e6eb;
    --st-text: #111827;
    --st-muted: #5f6b7a;
    --st-hero: #10141b;
    --st-hero-text: #f3f4f6;
    --st-hero-muted: #a6afbd;
    --st-ok: #12805c;
    --st-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
    --st-radius: 14px;
    --st-font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --st-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    --st-mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --st-accent-ink: #ff9a5a;
        --st-accent-wash: rgba(255, 138, 61, .14);
        --st-page: #0d1117;
        --st-surface: #151a22;
        --st-inset: #1b212b;
        --st-border: #262d38;
        --st-text: #e8eaee;
        --st-muted: #9aa4b2;
        --st-hero: #080b10;
        --st-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    }
}
:root[data-theme="dark"] {
    --st-accent-ink: #ff9a5a;
    --st-accent-wash: rgba(255, 138, 61, .14);
    --st-page: #0d1117;
    --st-surface: #151a22;
    --st-inset: #1b212b;
    --st-border: #262d38;
    --st-text: #e8eaee;
    --st-muted: #9aa4b2;
    --st-hero: #080b10;
    --st-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
}

html, body { background: var(--st-page); color: var(--st-text); font-family: var(--st-font); }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--st-accent-ink); }
h1, h2, h3, .display-font { font-family: var(--st-display); letter-spacing: -.01em; }
code, .mono { font-family: var(--st-mono); }
.text-muted, .st-muted { color: var(--st-muted) !important; }

/* Bootstrap overrides that follow the tokens */
.card { background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow); color: var(--st-text); }
.form-control, .form-select { background-color: var(--st-surface); color: var(--st-text); border-color: var(--st-border); }
.form-control:focus, .form-select:focus { border-color: var(--st-accent); box-shadow: 0 0 0 .2rem var(--st-accent-wash); background-color: var(--st-surface); color: var(--st-text); }
.btn-primary { --bs-btn-bg: var(--st-accent); --bs-btn-border-color: var(--st-accent); --bs-btn-hover-bg: var(--st-accent-hover); --bs-btn-hover-border-color: var(--st-accent-hover); --bs-btn-active-bg: var(--st-accent-hover); --bs-btn-active-border-color: var(--st-accent-hover); --bs-btn-disabled-bg: var(--st-accent); --bs-btn-disabled-border-color: var(--st-accent); }
.btn-outline-primary { --bs-btn-color: var(--st-accent-ink); --bs-btn-border-color: var(--st-accent); --bs-btn-hover-bg: var(--st-accent); --bs-btn-hover-border-color: var(--st-accent); --bs-btn-active-bg: var(--st-accent-hover); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--st-text); --bs-table-border-color: var(--st-border); }
.dropdown-menu { background: var(--st-surface); border-color: var(--st-border); }
.dropdown-item { color: var(--st-text); }
.dropdown-item:hover { background: var(--st-inset); color: var(--st-text); }

/* Top navigation */
.st-nav { background: var(--st-hero); border-bottom: 1px solid rgba(255,255,255,.06); }
.st-nav .navbar-brand { color: #fff; font-weight: 600; display: flex; align-items: center; gap: .55rem; }
.st-nav .navbar-brand img { width: 30px; height: 30px; }
.st-nav .nav-link { color: var(--st-hero-muted); font-weight: 500; }
.st-nav .nav-link:hover, .st-nav .nav-link.active { color: #fff; }
.st-nav .navbar-toggler { border-color: rgba(255,255,255,.2); }
.st-nav .navbar-toggler-icon { filter: invert(1); }
.st-theme-btn { background: none; border: 1px solid rgba(255,255,255,.15); color: var(--st-hero-muted); border-radius: 8px; padding: .3rem .55rem; }
.st-theme-btn:hover { color: #fff; }

/* Hero */
.st-hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(234,106,29,.22), transparent 60%), var(--st-hero); color: var(--st-hero-text); padding: 5.5rem 0 4.5rem; }
.st-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.08; }
.st-hero .lead { color: var(--st-hero-muted); font-size: 1.2rem; max-width: 40rem; }
.st-hero .st-eyebrow { color: #ff9a5a; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.st-hero .btn-outline-light { border-color: rgba(255,255,255,.3); }
.st-hero-panel { background: #0b0f15; border: 1px solid rgba(255,255,255,.08); border-radius: var(--st-radius); padding: 1.25rem; font-family: var(--st-mono); font-size: .85rem; color: #c9d1d9; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.st-hero-panel .ok { color: #3fb950; }
.st-hero-panel .dim { color: #6e7681; }
.st-hero-panel .acc { color: #ff9a5a; }

.st-section { padding: 4.5rem 0; }
.st-section-alt { background: var(--st-surface); border-top: 1px solid var(--st-border); border-bottom: 1px solid var(--st-border); }
.st-section h2 { font-weight: 700; }
.st-kicker { color: var(--st-accent-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

.st-feature { height: 100%; padding: 1.5rem; }
.st-feature .st-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--st-accent-wash); color: var(--st-accent-ink); font-size: 1.3rem; margin-bottom: 1rem; }
.st-feature h3 { font-size: 1.08rem; font-weight: 600; }
.st-feature p { color: var(--st-muted); margin-bottom: 0; }

.st-logos { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--st-inset); border: 1px solid var(--st-border); font-size: .88rem; color: var(--st-text); }

/* Pricing */
.st-interval { display: inline-flex; background: var(--st-inset); border: 1px solid var(--st-border); border-radius: 999px; padding: 4px; }
.st-interval button { border: 0; background: none; padding: .4rem 1.1rem; border-radius: 999px; color: var(--st-muted); font-weight: 600; }
.st-interval button.active { background: var(--st-surface); color: var(--st-text); box-shadow: var(--st-shadow); }
.st-price-card { position: relative; height: 100%; display: flex; flex-direction: column; padding: 1.75rem; }
.st-price-card.highlight { border: 2px solid var(--st-accent); }
.st-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--st-accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .8rem; border-radius: 999px; white-space: nowrap; }
.st-price { font-family: var(--st-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.st-price small { font-size: .95rem; font-weight: 500; color: var(--st-muted); }
.st-price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; flex: 1; }
.st-price-card li { padding: .3rem 0; display: flex; gap: .5rem; }
.st-price-card li i { color: var(--st-ok); }

/* Steps */
.st-step { counter-increment: step; position: relative; padding-left: 3.2rem; }
.st-step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--st-accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.st-steps { counter-reset: step; }

/* Footer */
.st-footer { background: var(--st-hero); color: var(--st-hero-muted); padding: 2.5rem 0; font-size: .92rem; }
.st-footer a { color: var(--st-hero-muted); text-decoration: none; }
.st-footer a:hover { color: #fff; }

/* Account + admin */
.st-narrow { max-width: 460px; }
.st-key { font-family: var(--st-mono); font-size: .78rem; word-break: break-all; background: var(--st-inset); border: 1px solid var(--st-border); border-radius: 10px; padding: .75rem; user-select: all; }
.st-badge { font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.st-badge.ok { background: #e7f6ef; color: #0b6b4c; }
.st-badge.warn { background: #fef4e6; color: #8a4d06; }
.st-badge.bad { background: #fdeceb; color: #a8231e; }
.st-badge.info { background: #ebf1fd; color: #1d4aa8; }
.st-badge.muted { background: var(--st-inset); color: var(--st-muted); }
.st-admin-nav { background: var(--st-surface); border-bottom: 1px solid var(--st-border); }
.st-admin-nav .nav-link { color: var(--st-muted); font-weight: 500; }
.st-admin-nav .nav-link.active { color: var(--st-accent-ink); }
.st-stat { padding: 1.1rem 1.25rem; }
.st-stat .num { font-family: var(--st-display); font-size: 1.9rem; font-weight: 700; }
.st-stat .lbl { color: var(--st-muted); font-size: .85rem; }
.st-doc h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.st-doc h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.st-doc pre { background: var(--st-inset); border: 1px solid var(--st-border); border-radius: 10px; padding: .9rem; font-size: .85rem; }
.st-legal { max-width: 820px; }
.st-legal h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.st-draft { border: 1px dashed var(--st-accent); background: var(--st-accent-wash); border-radius: 10px; padding: .75rem 1rem; }
.st-byline { font-size: .72em; font-weight: 500; color: var(--st-hero-muted); margin-left: .15rem; }
