/* ==========================================================
   BRR pre-login theme — shared tokens for marketing pages.
   Palette mirrors the BRR terminal dashboard:
     #0a1628 canvas · #0d1c30 panel · #162a46 elevated
     #1e3a5f border · #3b82f6 accent · #e1e5eb text
   ========================================================== */

.brr-page {
    background: #0a1628;
    color: #e1e5eb;
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    position: relative;
    overflow-x: hidden;
}
.brr-page--glow::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 620px;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,130,246,0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.brr-page > * { position: relative; z-index: 1; }

.brr-section {
    padding: 96px 0;
    position: relative;
}
@media (min-width: 1024px) {
    .brr-section { padding: 128px 0; }
}
.brr-section + .brr-section { border-top: 1px solid #162a46; }
.brr-section--hero { padding-top: 80px; padding-bottom: 64px; }
.brr-section--tight { padding: 64px 0; }

.brr-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.brr-wrap--narrow { max-width: 820px; }
.brr-wrap--wide { max-width: 1320px; }

.brr-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}

.brr-kicker {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 18px;
}

.brr-h1 {
    font-size: clamp(2.5rem, 4.5vw + 0.5rem, 4.25rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: #f8fafc;
    margin: 0 0 20px 0;
}
.brr-h1 .accent {
    background: linear-gradient(180deg, #93c5fd, #3b82f6);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.brr-h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: #f8fafc;
    margin: 0 0 16px 0;
}

.brr-h3 {
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.2;
    color: #f8fafc;
    margin: 0 0 10px 0;
}

.brr-h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 8px 0;
}

.brr-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto;
}
.brr-section-head .brr-lead { margin-left: auto; margin-right: auto; }

.brr-prose p {
    font-size: 16px;
    line-height: 1.72;
    color: #94a3b8;
    margin: 0 0 18px 0;
}
.brr-prose p:last-child { margin-bottom: 0; }
.brr-prose a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
.brr-prose a:hover { color: #93c5fd; }
.brr-prose ul, .brr-prose ol {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.72;
    padding-left: 20px;
    margin: 0 0 18px 0;
}
.brr-prose li { margin-bottom: 6px; }
.brr-prose h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin: 40px 0 16px 0;
}
.brr-prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 32px 0 12px 0;
}
.brr-prose strong { color: #e1e5eb; font-weight: 600; }
.brr-prose code {
    background: #0d1c30;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.9em;
    color: #cbd5e1;
}

.brr-card {
    background: linear-gradient(180deg, #0d1c30 0%, rgba(13,28,48,0.4) 100%);
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    padding: 32px;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.brr-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 24px 48px -24px rgba(59,130,246,0.35);
}
.brr-card--flat { padding: 24px; }
.brr-card--flat:hover { transform: none; box-shadow: none; border-color: #1e3a5f; }

.brr-card-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(59,130,246,0.12);
    border: 1px solid #1e3a5f;
    color: #60a5fa;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}

.brr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.brr-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.brr-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.brr-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.brr-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #0a1628;
    border-radius: 10px;
    border: 1px solid #fff;
    transition: transform .2s ease, background .2s ease;
}
.brr-btn-primary:hover { background: #e1e5eb; transform: translateY(-1px); color: #0a1628; }
.brr-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #e1e5eb;
    border-radius: 10px;
    border: 1px solid #1e3a5f;
    background: rgba(13,28,48,0.5);
    transition: all .2s ease;
}
.brr-btn-ghost:hover { border-color: #3b82f6; color: #fff; background: rgba(59,130,246,0.08); }
.brr-btn-accent {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    background: #3b82f6;
    color: #fff;
    border-radius: 10px;
    border: 1px solid #3b82f6;
    box-shadow: 0 8px 28px -10px rgba(59,130,246,0.7), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform .2s ease, background .2s ease;
}
.brr-btn-accent:hover { background: #2563eb; transform: translateY(-1px); color: #fff; }
.brr-btn-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    transition: color .2s ease, gap .2s ease;
}
.brr-btn-link:hover { color: #93c5fd; gap: 10px; }

.brr-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px;
    border: 1px solid #1e3a5f;
    background: rgba(13,28,48,0.5);
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}
.brr-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 12px #3b82f6;
}

/* Forms */
.brr-field { display: block; margin-bottom: 18px; }
.brr-field label, .brr-label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
.brr-input, .brr-field input, .brr-field textarea, .brr-field select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: #f8fafc;
    background: #0d1c30;
    border: 1px solid #1e3a5f;
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
    font-family: inherit;
}
.brr-input::placeholder,
.brr-field input::placeholder,
.brr-field textarea::placeholder { color: #64748b; }
.brr-input:focus, .brr-field input:focus, .brr-field textarea:focus, .brr-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.brr-field textarea { min-height: 120px; resize: vertical; }
.brr-help, .brr-field .help-block, .brr-field small { display: block; font-size: 12px; color: #64748b; margin-top: 6px; }
.brr-error, .brr-field .errorlist, .brr-field ul.errorlist {
    color: #ef4444;
    font-size: 12.5px;
    list-style: none;
    padding: 0;
    margin: 6px 0 0 0;
}
.brr-form {
    background: #0d1c30;
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    padding: 32px;
}

/* Stat bar */
.brr-stat-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(13,28,48,0.7), rgba(10,22,40,0.4));
    overflow: hidden;
}
.brr-stat {
    padding: 28px 24px;
    border-right: 1px solid #162a46;
    border-bottom: 1px solid #162a46;
}
.brr-stat:last-child { border-right: none; }
@media (max-width: 900px) { .brr-stat { border-right: none; } }
.brr-stat .label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}
.brr-stat .value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #f8fafc;
    line-height: 1;
}
.brr-stat .value .unit { color: #3b82f6; margin-left: 4px; }
.brr-stat .caption { margin-top: 8px; font-size: 13px; color: #94a3b8; }

/* Tick list */
.brr-tick-list { list-style: none; padding: 0; margin: 0; }
.brr-tick-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}
.brr-tick-list li::before {
    content: "✓";
    color: #22c55e;
    font-weight: 700;
    flex-shrink: 0;
}

/* Divider rule */
.brr-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e3a5f, transparent);
    margin: 72px 0;
    border: none;
}

/* Fade animations */
@keyframes brrFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.brr-fade { opacity: 0; animation: brrFade .7s ease-out forwards; }
.brr-d1 { animation-delay: .05s; }
.brr-d2 { animation-delay: .15s; }
.brr-d3 { animation-delay: .25s; }
.brr-d4 { animation-delay: .35s; }
.brr-d5 { animation-delay: .5s; }

/* Table */
.brr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.brr-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #1e3a5f;
    background: #0d1c30;
}
.brr-table td {
    padding: 14px 16px;
    color: #e1e5eb;
    border-bottom: 1px solid #162a46;
}
.brr-table tbody tr:hover { background: rgba(13,28,48,0.4); }

/* Pill / badge */
.brr-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
    border-radius: 999px;
}
.brr-badge--green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.brr-badge--amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fbbf24; }
