/* Baltum - Main Styles */
/* Migrated from original PHP templates */

:root {
    --bg0: #050812;
    --bg1: #070b16;
    --bg2: #0b1220;
    --card: rgba(255,255,255,.07);
    --stroke: rgba(255,255,255,.14);
    --text: #eef3ff;
    --muted: rgba(238,243,255,.72);
    --accent: #7c5cff;
    --accent2: #22d3ee;
    --shadow: 0 18px 55px rgba(0,0,0,.46);
    --shadow2: 0 10px 22px rgba(0,0,0,.34);
    --r: 22px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--text);
    background:
        radial-gradient(1100px 650px at 15% 12%, rgba(124,92,255,.22), transparent 60%),
        radial-gradient(900px 600px at 88% 26%, rgba(34,211,238,.16), transparent 55%),
        linear-gradient(180deg, var(--bg0) 0%, var(--bg2) 55%, #0f1b35 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 18px 64px;
}

/* Header */
.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.brandLogo { height: 46px; width: auto; display: block; }

.topRight {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.05);
    color: rgba(238,243,255,.82);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.dot { opacity: .75; }

.lang a {
    color: rgba(238,243,255,.88);
    font-weight: 700;
}

.lang a.active {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Main card */
.main, .card {
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
    box-shadow: var(--shadow);
    padding: 26px;
    backdrop-filter: blur(12px);
}

.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    max-width: 18ch;
}

h2 {
    margin: 10px 0 12px;
    font-size: 18px;
}

.heroText { max-width: 820px; }

.lead {
    margin: 12px 0 0;
    color: rgba(238,243,255,.88);
    font-size: 16px;
    line-height: 1.55;
    max-width: 95ch;
}

.disclaimer, .small {
    margin: 10px 0 0;
    color: rgba(238,243,255,.62);
    font-size: 13px;
    line-height: 1.5;
    max-width: 110ch;
}

.muted { color: var(--muted); }

.heroBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(238,243,255,.9);
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 18px 0 20px;
}

/* Two column grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 780px) {
    .grid { grid-template-columns: 1fr; }
}

/* Inner cards */
.innerCard {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    padding: 18px;
    box-shadow: var(--shadow2);
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.cardHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cardTitle {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.cardSub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: 70ch;
}

.badge {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(238,243,255,.9);
    white-space: nowrap;
}

.badge.live { border-color: rgba(34,211,238,.32); }
.badge.tool { border-color: rgba(124,92,255,.32); }

/* Form elements */
.field { margin-top: 12px; }

.label, label {
    color: rgba(238,243,255,.78);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

select, input[type="text"], input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.04);
    color: var(--text);
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
    font-family: inherit;
    font-size: 15px;
}

select:focus, input:focus {
    border-color: rgba(34,211,238,.55);
    box-shadow: 0 0 0 4px rgba(34,211,238,.12);
    background: rgba(255,255,255,.06);
}

input::placeholder { color: rgba(232,238,252,.45); }
option { color: #0b1220; }

/* Buttons */
.btnRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.04);
    color: rgba(238,243,255,.92);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
    box-shadow: var(--shadow2);
    text-decoration: none;
}

.btn:active { transform: translateY(0); }

.btnPrimary {
    border: 0;
    color: #06101f;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 10px 22px rgba(34,211,238,.14);
}

.btnPrimary:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(124,92,255,.16), 0 10px 22px rgba(34,211,238,.14);
}

/* Steps / Progress */
.steps {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0;
    flex-wrap: wrap;
}

.bar {
    flex: 1;
    height: 10px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    min-width: 180px;
}

.fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.3s ease;
}

/* Questions */
.q {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.q:first-child { border-top: 0; }

.qtitle { font-weight: 900; }

.radioRow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 780px) {
    .radioRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.opt {
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    transition: transform .08s ease, background .12s ease, border-color .12s ease;
    min-width: 0;
}

.opt:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
}

.opt input[type="radio"] { width: auto; margin-top: 3px; }

.opt:has(input:checked) {
    border-color: rgba(34,211,238,.55);
    box-shadow: 0 0 0 3px rgba(34,211,238,.12);
    background: rgba(34,211,238,.06);
}

/* Results */
.scoreBox {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,.04);
    border-radius: 20px;
    margin: 20px 0;
}

.scoreNumber {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    margin-top: 10px;
}

.status.ready { background: rgba(34,197,94,.2); color: #22c55e; }
.status.partial { background: rgba(234,179,8,.2); color: #eab308; }
.status.not_ready { background: rgba(239,68,68,.2); color: #ef4444; }

.gapsList {
    background: rgba(234,179,8,.1);
    border: 1px solid rgba(234,179,8,.3);
    border-radius: 16px;
    padding: 16px;
    margin: 16px 0;
}

.gapsList h3 {
    margin: 0 0 12px;
    color: #eab308;
    font-size: 16px;
}

.gapsList ul {
    margin: 0;
    padding-left: 20px;
}

.gapsList li {
    margin: 8px 0;
    color: rgba(238,243,255,.9);
}

.aiSection {
    background: rgba(34,211,238,.1);
    border: 1px solid rgba(34,211,238,.3);
    border-radius: 16px;
    padding: 16px;
    margin: 16px 0;
}

.aiSection h3 {
    margin: 0 0 12px;
    color: var(--accent2);
    font-size: 16px;
}

.aiContent {
    color: rgba(238,243,255,.9);
    line-height: 1.6;
}

.aiContent ul { padding-left: 20px; }
.aiContent li { margin: 6px 0; }

/* Utilities */
.hide { display: none; }
.metaRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: rgba(238,243,255,.72);
    font-size: 13px;
    flex-wrap: wrap;
}

.sep { opacity: .55; }

/* Responsive */
@media (max-width: 980px) {
    h1 { font-size: 36px; max-width: 100%; }
    .hero { flex-direction: column; }
    .topbar { align-items: flex-start; }
    .brand { min-width: 0; }
}
