/* Alurix Flash Tool — matches the alurix.io landing page (docs/DESIGN.md tokens,
   dark "obsidian glass" rendering from marketing/landing-page/page.landing.liquid). */

:root {
    --obsidian: #09090b;
    --sunset-orange: #FF7E5F;
    --soft-teal: #72C1B9;
    --warm-amber: #FFB4A2;
    --glass-bg: rgba(22, 22, 28, 0.55);
    --glass-border: rgba(255, 126, 95, 0.12);
    --text: #e5e7eb;
    --text-dim: #9ca3af;
    --font-display: "Chakra Petch", sans-serif;
    --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--obsidian);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

.shell { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── Ambient glows ─────────────────────────────────────────── */
.glow-blob {
    position: absolute;
    width: 600px; height: 600px;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}
.glow-blob--orange { background: radial-gradient(circle, rgba(255,126,95,.12) 0%, rgba(255,126,95,0) 70%); }
.glow-blob--teal   { width: 500px; height: 500px; filter: blur(80px);
                     background: radial-gradient(circle, rgba(114,193,185,.08) 0%, rgba(114,193,185,0) 70%); }

/* ── Header / footer ───────────────────────────────────────── */
.site-header {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: rgba(9,9,11,.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky; top: 0; z-index: 50;
}
.header-row { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; padding-bottom: 1.25rem; }

.wordmark {
    display: flex; flex-direction: column;
    font-family: var(--font-display);
    font-weight: 700; text-transform: uppercase; letter-spacing: -0.025em;
    line-height: 1; color: #fff;
    font-size: 1.5rem; text-decoration: none; user-select: none;
}
.wordmark-main { margin-bottom: -0.15em; }
.wordmark-sub { color: var(--sunset-orange); font-size: 0.4315em; margin-top: 0.15em; }

.site-nav { display: flex; gap: 1.5rem; align-items: center;
    font-family: var(--font-display); font-weight: 600; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .05em; }
.nav-link { color: var(--text); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: #fff; }
.beta-chip {
    background: rgba(114,193,185,.15); color: var(--soft-teal);
    padding: .3rem .8rem; border-radius: 9999px; font-size: .7rem;
}

.site-footer { width: 100%; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,.05); margin-top: 5rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
.footer-copy { font-family: var(--font-display); font-weight: 700; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.footer-note { font-size: .75rem; color: #6b7280; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { padding: 4rem 0 2.5rem; }
.hero-title {
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    letter-spacing: -0.02em; line-height: 1.05; color: #fff;
    font-size: clamp(2.5rem, 7vw, 4.5rem); margin: 0 0 1.25rem;
}
.text-gradient {
    background: linear-gradient(135deg, #FF7E5F 0%, #FFB4A2 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-copy { max-width: 42rem; font-size: 1.125rem; color: var(--text-dim); margin: 0; }
.hero-copy em { color: var(--warm-amber); font-style: normal; }

/* ── Panels ────────────────────────────────────────────────── */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.05), 0 10px 30px -10px rgba(0,0,0,.5);
    padding: 2rem;
}

.section-title {
    font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
    text-transform: uppercase; letter-spacing: .04em; color: #fff;
    margin: 3rem 0 1.25rem;
}
.section-title::after {
    content: ""; display: block; width: 3rem; height: 2px;
    background: var(--sunset-orange); margin-top: .5rem;
}

.panel-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
    text-transform: uppercase; color: #fff; margin: 0 0 .75rem; }

.notice { margin-top: 2rem; border-color: rgba(255,126,95,.3); }
.notice-copy { color: var(--text-dim); margin: .5rem 0; }
.notice-copy strong { color: var(--warm-amber); }

/* ── Option cards ──────────────────────────────────────────── */
.option-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 860px) { .option-grid { grid-template-columns: repeat(3, 1fr); } }

.option-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 1.75rem;
    text-align: left; color: inherit; font: inherit;
    cursor: pointer;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.05), 0 10px 30px -10px rgba(0,0,0,.5);
    display: flex; flex-direction: column; gap: .6rem;
}
.option-card:hover {
    border-color: rgba(255,126,95,.3);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 0 30px rgba(255,126,95,.1);
    transform: translateY(-2px);
}
.option-card[aria-checked="true"] {
    border-color: var(--sunset-orange);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 0 35px rgba(255,126,95,.2);
}
.option-card:focus-visible { outline: 2px solid var(--soft-teal); outline-offset: 3px; }

.option-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.option-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
    text-transform: uppercase; color: #fff; }
.option-tag {
    background: rgba(114,193,185,.15); color: var(--soft-teal);
    border-radius: 9999px; padding: .2rem .7rem;
    font-size: .68rem; font-family: var(--font-display); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.option-desc { color: var(--text-dim); font-size: .9rem; margin: 0; flex: 1; }
.option-contents { font-size: .75rem; color: #6b7280; }
.option-contents strong { color: var(--warm-amber); font-weight: 500; }

.gpl-note { margin-top: 1.25rem; padding: 1.25rem 1.75rem; font-size: .85rem; color: var(--text-dim); }
.gpl-note p { margin: 0; }
.gpl-note a { color: var(--soft-teal); }

/* ── Flash panel ───────────────────────────────────────────── */
.flash-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.steps { margin: 0; padding-left: 1.25rem; color: var(--text-dim); display: flex;
    flex-direction: column; gap: .6rem; font-size: .95rem; }
.steps strong { color: #fff; font-weight: 500; }
.steps em { color: var(--warm-amber); font-style: normal; }

.flash-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.flash-meta { display: flex; flex-direction: column; gap: .15rem; }
.flash-selected { font-family: var(--font-display); font-weight: 600; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.flash-version { font-size: .75rem; color: #6b7280; }

/* Primary pill button (slotted into esp-web-install-button) */
.btn-primary {
    background: var(--sunset-orange); color: var(--obsidian);
    font-family: var(--font-display); font-weight: 700; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 1rem 2rem; border: none; border-radius: 9999px; cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(255,126,95,.25);
    transition: transform .3s, box-shadow .3s;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-primary:active { transform: scale(.97); }
esp-web-install-button[install-unsupported] { display: none; }

.fine-print { font-size: .78rem; color: #6b7280; margin: 0; }

/* ── Troubleshooting ───────────────────────────────────────── */
.trouble { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 2rem; }
.trouble details { border-bottom: 1px solid rgba(255,255,255,.06); padding: .75rem 0; }
.trouble details:last-child { border-bottom: none; }
.trouble summary { cursor: pointer; font-weight: 500; color: var(--text); font-size: .95rem; }
.trouble summary:hover { color: var(--warm-amber); }
.trouble p { color: var(--text-dim); font-size: .88rem; margin: .6rem 0 0; }
.trouble code { background: rgba(255,255,255,.07); border-radius: .35rem; padding: .1rem .4rem; font-size: .8rem; }
.trouble em { color: var(--warm-amber); font-style: normal; }

/* ════════════════════════════════════════════════════════════════
   flash-beta additions (BUG-256) — everything above this line is a
   copy of web/flash-tool/src/styles.css; keep it in sync when the
   public site's look changes. Below: the beta banner and the
   catalog build cards this site renders instead of option cards.
   ════════════════════════════════════════════════════════════════ */

/* ── Beta channel banner ───────────────────────────────────────── */
.beta-banner {
    background: linear-gradient(90deg, rgba(114,193,185,.18) 0%, rgba(255,126,95,.14) 100%);
    border-bottom: 1px solid rgba(114,193,185,.3);
    color: var(--text);
    text-align: center;
    padding: .7rem 1.5rem;
    font-size: .85rem;
}
.beta-banner strong {
    font-family: var(--font-display); font-weight: 700;
    letter-spacing: .06em; color: var(--soft-teal);
}
.beta-chip--channel { background: rgba(255,126,95,.15); color: var(--sunset-orange); }

/* ── Build cards ───────────────────────────────────────────────── */
.build-list { display: flex; flex-direction: column; gap: 1.25rem; }

.build-card { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; }

.build-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; }
.build-id {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 1.05rem; font-weight: 600; color: #fff; margin: 0;
}
.build-chip {
    background: rgba(114,193,185,.15); color: var(--soft-teal);
    border-radius: 9999px; padding: .15rem .65rem;
    font-size: .65rem; font-family: var(--font-display); font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
}
.build-staged { margin-left: auto; font-size: .78rem; color: var(--text-dim); }

.bundle-none { margin: 0; font-size: .85rem; color: #6b7280; }

/* ── Bundle rows ───────────────────────────────────────────────── */
.bundle-list { display: flex; flex-direction: column; }
.bundle-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    padding: .7rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.bundle-info { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 12rem; }
.bundle-name {
    font-family: var(--font-display); font-weight: 600; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .04em; color: var(--warm-amber);
}
.bundle-detail {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .72rem; color: #6b7280;
}

/* Smaller sibling of .btn-primary — one per bundle row */
.btn-flash {
    background: var(--sunset-orange); color: var(--obsidian);
    font-family: var(--font-display); font-weight: 700; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .05em;
    padding: .6rem 1.4rem; border: none; border-radius: 9999px; cursor: pointer;
    box-shadow: 0 6px 12px -3px rgba(255,126,95,.25);
    transition: transform .3s, box-shadow .3s;
}
.btn-flash:hover { transform: scale(1.05); }
.btn-flash:active { transform: scale(.97); }
