/* ==========================================================================
   THINLINE RADIO — "Signal" design system
   Obsidian base · ember signal accent · glass panels
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keep the hidden attribute authoritative over any layout display value. */
[hidden] {
    display: none !important;
}

:root {
    /* Surfaces */
    --obsidian: #06080c;
    --obsidian-2: #090c12;
    --panel: #0d1118;
    --panel-2: #11161f;
    --panel-3: #161c27;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);

    /* Signal accents */
    --ember: #ff5b2e;
    --ember-bright: #ff7c4d;
    --ember-deep: #d93b13;
    --amber: #ffa63d;
    --ice: #5fd0ff;
    --ice-deep: #1f9ed6;
    --mint: #38e0a4;
    --rose: #ff4d6d;

    /* Text */
    --text: #e9edf4;
    --text-soft: #b9c2d0;
    --muted: #8590a3;
    --muted-dim: #61697a;

    /* Effects */
    --glow-ember: 0 0 0 1px rgba(255, 91, 46, 0.35), 0 12px 40px -12px rgba(255, 91, 46, 0.55);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.9);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 32px 70px -28px rgba(0, 0, 0, 0.95);

    /* Type */
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Metrics */
    --nav-h: 68px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-sm: 10px;
    --container: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.tlr-site {
    font-family: var(--font-body);
    background-color: var(--obsidian);
    color: var(--text);
    line-height: 1.65;
    font-size: 16.5px;
    letter-spacing: -0.005em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background: signal mesh */
body.tlr-site::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(58% 44% at 12% -6%, rgba(255, 91, 46, 0.20), transparent 62%),
        radial-gradient(46% 40% at 96% 4%, rgba(95, 208, 255, 0.14), transparent 66%),
        radial-gradient(70% 55% at 50% 108%, rgba(255, 166, 61, 0.10), transparent 70%),
        linear-gradient(180deg, #070a0f 0%, #06080c 40%, #05070a 100%);
}

/* Fine grid overlay */
body.tlr-site::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
}

main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}

a {
    color: var(--ice);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: #9ee4ff;
}

p {
    color: var(--text-soft);
}

img {
    max-width: 100%;
    display: block;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    height: var(--nav-h);
    background: rgba(7, 9, 13, 0.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.navbar.is-scrolled {
    background: rgba(6, 8, 12, 0.92);
    border-bottom-color: var(--line-strong);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 1);
}

.nav-container {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(255, 91, 46, 0.35));
}

.logo-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
}

.logo-wordmark span {
    color: var(--ember);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-soft);
    white-space: nowrap;
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-menu > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-menu > li > a.active {
    color: #fff;
    background: rgba(255, 91, 46, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 91, 46, 0.3);
}

.link-icon {
    width: 15px;
    height: 15px;
    opacity: 0.85;
}

.nav-signin {
    margin-left: 8px;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 24px -10px rgba(255, 91, 46, 0.8);
}

.nav-signin:hover {
    background: linear-gradient(135deg, var(--ember-bright) 0%, var(--ember) 100%) !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
    padding: 9px 13px;
    border-radius: 10px;
    cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
        background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 34px -14px rgba(255, 91, 46, 0.9);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 20px 44px -14px rgba(255, 91, 46, 1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--line-strong);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text-soft);
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
    background: transparent;
    border-color: rgba(95, 208, 255, 0.35);
    color: var(--ice);
}

.btn-outline:hover {
    background: rgba(95, 208, 255, 0.1);
    border-color: rgba(95, 208, 255, 0.6);
    color: #bfeaff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    padding: clamp(72px, 12vh, 128px) 0 clamp(64px, 10vh, 104px);
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.on-air {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 30px;
    border-radius: 999px;
    background: rgba(255, 91, 46, 0.1);
    border: 1px solid rgba(255, 91, 46, 0.28);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffc4ae;
}

.on-air-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(255, 91, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); }
}

.hero-logo-img {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    object-fit: contain;
    filter: drop-shadow(0 10px 34px rgba(255, 91, 46, 0.45));
}

.hero h1,
.hero-title {
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}

.hero-title .grad {
    background: linear-gradient(100deg, var(--ember) 0%, var(--amber) 46%, var(--ice) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5.6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 16px;
}

.brand-mark span {
    color: var(--ember);
}

.intro-text,
.hero-sub {
    font-size: clamp(1.03rem, 1.6vw, 1.22rem);
    color: var(--text-soft);
    max-width: 660px;
    margin: 0 auto 36px;
    line-height: 1.62;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 48px;
}

/* Animated spectrum bars */
.spectrum {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 76px;
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.9;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.spectrum span {
    flex: 1 1 auto;
    max-width: 8px;
    min-height: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 55%, rgba(255, 91, 46, 0.18) 100%);
    animation: eq 1.5s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes eq {
    0%, 100% { height: 14%; opacity: 0.55; }
    50% { height: 92%; opacity: 1; }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
}

.hero-stat {
    flex: 1 1 150px;
    max-width: 210px;
    padding: 18px 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 5px;
}

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */

.page-hero {
    padding: clamp(52px, 8vh, 88px) 0 clamp(30px, 5vh, 52px);
    text-align: center;
    position: relative;
}

.page-hero .container {
    max-width: 820px;
}

.page-title {
    font-size: clamp(2.1rem, 4.6vw, 3.2rem);
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.06rem;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto;
}

.page-hero .page-hero-note {
    margin-top: 18px;
    max-width: 660px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    border-left: 2px solid rgba(95, 208, 255, 0.5);
    background: rgba(95, 208, 255, 0.05);
    font-size: 0.9rem;
    color: var(--muted);
    text-align: left;
}

.section-label {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(95, 208, 255, 0.1);
    border: 1px solid rgba(95, 208, 255, 0.28);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a5e3ff;
}

.section-label-alertpage {
    background: rgba(255, 166, 61, 0.1);
    border-color: rgba(255, 166, 61, 0.3);
    color: #ffd4a1;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.content-section {
    padding: clamp(48px, 7vh, 84px) 0;
}

.content-section > .container > h2,
.quick-links h2,
.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.content-section > .container > h2 + p,
.quick-links > .container > p,
.section-head p {
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 34px;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-head p {
    margin: 0 auto;
}

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */

.quick-links {
    padding: clamp(40px, 6vh, 72px) 0 clamp(60px, 9vh, 100px);
}

.quick-links-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 18px;
}

.quick-link-card,
.feature-card,
.panel {
    position: relative;
    display: block;
    padding: 26px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.018) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.quick-link-card::after,
.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(255, 91, 46, 0.55), rgba(95, 208, 255, 0.35) 55%, transparent 80%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.quick-link-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--shadow-lift);
}

.quick-link-card:hover::after,
.feature-card:hover::after {
    opacity: 1;
}

.quick-link-card h3,
.feature-card h3 {
    font-size: 1.14rem;
    margin-bottom: 9px;
    letter-spacing: -0.02em;
}

.quick-link-card p,
.feature-card p {
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.6;
}

.quick-link-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ember-bright);
    transition: transform 0.25s var(--ease);
}

.quick-link-card:hover .quick-link-cta {
    transform: translateX(4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(255, 91, 46, 0.2), rgba(255, 91, 46, 0.05));
    border: 1px solid rgba(255, 91, 46, 0.24);
    font-size: 1.15rem;
}

.feature-card:nth-child(3n + 2) .feature-icon {
    background: linear-gradient(140deg, rgba(95, 208, 255, 0.2), rgba(95, 208, 255, 0.05));
    border-color: rgba(95, 208, 255, 0.24);
}

.feature-card:nth-child(3n + 3) .feature-icon {
    background: linear-gradient(140deg, rgba(56, 224, 164, 0.18), rgba(56, 224, 164, 0.05));
    border-color: rgba(56, 224, 164, 0.24);
}

/* Bento highlight cards */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.bento > * {
    grid-column: span 2;
}

.bento .bento-wide {
    grid-column: span 4;
}

.bento .bento-full {
    grid-column: span 6;
}

.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 210px;
    padding: 26px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.bento-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.bento-card p {
    font-size: 0.93rem;
    color: var(--muted);
}

.bento-card a {
    color: var(--ember-bright);
    font-weight: 600;
}

.bento-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    top: -90px;
    right: -70px;
    background: var(--ember);
    pointer-events: none;
}

.bento-card:nth-child(2) .bento-glow { background: var(--ice); }
.bento-card:nth-child(3) .bento-glow { background: var(--amber); }
.bento-card:nth-child(4) .bento-glow { background: var(--mint); }

/* Incident map card */
.bento-map {
    justify-content: center;
}

.bento-map .bento-glow {
    background: var(--ice);
}

.bento-map-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.bento-map-body p {
    max-width: 54ch;
}

.bento-pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.bento-pipeline-arrow {
    color: var(--muted-dim);
    font-size: 0.8rem;
}

.bento-map-visual {
    position: relative;
    min-height: 176px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(95, 208, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(90deg, rgba(95, 208, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 100%,
        radial-gradient(120% 120% at 18% 8%, rgba(95, 208, 255, 0.12), transparent 62%),
        var(--panel-2);
    overflow: hidden;
}

/* Two faint arterials so the grid reads as a street map rather than graph paper. */
.bento-map-visual::before,
.bento-map-visual::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}

.bento-map-visual::before {
    left: -10%;
    right: -10%;
    top: 58%;
    height: 2px;
    transform: rotate(-7deg);
}

.bento-map-visual::after {
    top: -10%;
    bottom: -10%;
    left: 34%;
    width: 2px;
    transform: rotate(11deg);
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.22), 0 0 18px rgba(255, 91, 46, 0.7);
    animation: pin-pulse 2.4s var(--ease) infinite;
}

.map-pin-1 {
    top: 26%;
    left: 21%;
}

.map-pin-2 {
    top: 63%;
    left: 51%;
    background: var(--amber);
    box-shadow: 0 0 0 3px rgba(255, 166, 61, 0.2), 0 0 18px rgba(255, 166, 61, 0.65);
    animation-delay: 0.8s;
}

.map-pin-3 {
    top: 39%;
    left: 76%;
    background: var(--ice);
    box-shadow: 0 0 0 3px rgba(95, 208, 255, 0.2), 0 0 18px rgba(95, 208, 255, 0.65);
    animation-delay: 1.6s;
}

@keyframes pin-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.82;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

/* ==========================================================================
   ABOUT / PROSE
   ========================================================================== */

.about-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 34px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.about-content p {
    margin-bottom: 18px;
    line-height: 1.75;
}

.about-content h3 {
    font-size: 1.25rem;
    margin: 30px 0 12px;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content a {
    color: var(--ember-bright);
    font-weight: 600;
}

.about-content strong {
    color: var(--text);
    font-weight: 650;
}

/* ==========================================================================
   SDR / HOW AUDIO IS MADE
   ========================================================================== */

.sdr-section {
    padding-top: 8px;
}

.sdr-panel[hidden] {
    display: none !important;
}

.sdr-flow {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 8px 6px;
    margin: 0 0 32px;
}

.sdr-flow-step {
    flex: 1 1 140px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
}

.sdr-flow-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--amber);
}

.sdr-flow-step strong {
    font-size: 0.95rem;
}

.sdr-flow-step span:last-child {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.sdr-flow-arrow {
    display: flex;
    align-items: center;
    color: var(--muted-dim);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.sdr-shot {
    margin: 0 0 22px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel-2);
    box-shadow: var(--shadow-card);
}

.sdr-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sdr-shot figcaption {
    padding: 12px 16px 14px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.sdr-illust-credit {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--muted-dim);
}

.sdr-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.sdr-split .sdr-shot {
    margin-bottom: 0;
}

.sdr-prose {
    margin-bottom: 28px;
}

.sdr-program-grid,
.sdr-cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.sdr-program-card,
.sdr-cost-card {
    padding: 20px 18px 18px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
}

.sdr-program-card h3,
.sdr-cost-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.sdr-program-credit {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber);
    margin-bottom: 10px;
}

.sdr-program-card p,
.sdr-cost-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.sdr-program-card a {
    font-size: 0.82rem;
    word-break: break-all;
}

.sdr-cost-total {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 14px !important;
}

.sdr-cost-card.is-featured {
    border-color: rgba(255, 166, 61, 0.35);
}

.sdr-cost-card ul {
    list-style: none;
    margin-bottom: 12px;
}

.sdr-cost-card li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
}

.sdr-cost-card li strong {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.sdr-note {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 8px 0 0;
}

.sdr-note a {
    font-weight: 600;
}

.sdr-own {
    max-width: 780px;
    margin: 0 auto 22px;
    padding: 28px 28px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 91, 46, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 91, 46, 0.34);
    box-shadow: var(--shadow-card);
}

.sdr-own-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ember-bright);
    margin-bottom: 10px;
}

.sdr-own h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.sdr-own p {
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.sdr-own p:last-child {
    margin-bottom: 0;
}

.sdr-own-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.sdr-own-card {
    padding: 20px 18px 18px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
}

.sdr-own-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.sdr-own-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.sdr-credit-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.sdr-credit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sdr-credit-table th,
.sdr-credit-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.sdr-credit-table th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.sdr-credit-table tr:last-child td {
    border-bottom: 0;
}

.sdr-credit-table td:first-child {
    font-weight: 600;
}

.recorder-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 20px 0 28px;
}

.recorder-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--text-soft);
    font-weight: 500;
}

.recorder-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 8px rgba(56, 224, 164, 0.8);
    flex: none;
}

.cta-box {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ember), var(--ember-deep));
    color: #fff;
    font-weight: 600;
    font-size: 0.94rem;
    border: 1px solid transparent;
    box-shadow: 0 14px 34px -14px rgba(255, 91, 46, 0.9);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cta-button:hover {
    color: #fff;
    transform: translateY(-2px);
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--line-strong);
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Marquee strip */
.marquee {
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: marquee 26s linear infinite;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-dim);
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   MOBILE APP PAGE
   ========================================================================== */

.mobile-section .container {
    max-width: 900px;
}

.video-section {
    margin-bottom: 40px;
}

.video-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-bottom: 22px;
}

.video-embed-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 91, 46, 0.1);
    background: #000;
}

.video-embed-wrap iframe,
.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-facade {
    padding: 0;
    background: #000;
    cursor: pointer;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.72);
    transition: background 0.2s ease;
}

.video-facade-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
    background: var(--ember-bright);
}

.video-section-caption {
    text-align: center;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--muted);
}

.mobile-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 34px;
}

.app-badge {
    transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.app-badge img {
    height: 54px;
    width: auto;
}

.app-badge:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
}

/* ==========================================================================
   APP STORE / PLAY REVIEWS
   ========================================================================== */

.reviews-section {
    padding-top: 8px;
}

.reviews-honesty {
    max-width: 760px;
    margin: 0 auto 36px;
    padding: 26px 28px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 91, 46, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 91, 46, 0.32);
    box-shadow: var(--shadow-card);
}

.reviews-honesty-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ember-bright);
    margin-bottom: 10px;
}

.reviews-honesty h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.reviews-honesty p {
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.reviews-honesty p:last-of-type {
    margin-bottom: 0;
}

.reviews-honesty a {
    color: var(--ember-bright);
    font-weight: 600;
}

.reviews-honesty sup {
    font-size: 0.72em;
    font-weight: 600;
    margin-left: 1px;
}

.reviews-honesty sup a {
    text-decoration: none;
}

.reviews-sources {
    margin: 18px 0 0;
    padding: 14px 0 0 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.reviews-sources li {
    margin-bottom: 8px;
}

.reviews-sources li:last-child {
    margin-bottom: 0;
}

.reviews-sources cite {
    font-style: italic;
}

.reviews-sources a {
    font-weight: 500;
    word-break: break-word;
}

.reviews-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.reviews-score {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 22px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.018) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.reviews-score:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 91, 46, 0.35);
}

.reviews-score-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.reviews-score-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.reviews-score-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.reviews-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.reviews-count {
    color: var(--muted);
    font-size: 0.92rem;
}

.reviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reviews-filter {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text-soft);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.reviews-filter:hover,
.reviews-filter.is-active {
    border-color: rgba(255, 91, 46, 0.45);
    background: rgba(255, 91, 46, 0.12);
    color: var(--text);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.review-card {
    padding: 22px 22px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.018) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

.review-stars {
    color: var(--amber);
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    line-height: 1;
}

.review-stars .is-empty {
    color: var(--muted-dim);
}

.review-origin {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.review-origin-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.review-origin-tag:first-child {
    border-color: rgba(95, 208, 255, 0.28);
    color: var(--text-soft);
}

.review-title {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.review-body {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0;
}

.review-reply {
    margin-top: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(95, 208, 255, 0.08);
    border: 1px solid rgba(95, 208, 255, 0.22);
}

.review-reply-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ice);
    margin-bottom: 6px;
}

.review-reply p {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.review-reply-date {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--muted);
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.review-store {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.reviews-empty,
.reviews-error {
    color: var(--muted);
    text-align: center;
    padding: 28px 16px;
}

.reviews-note {
    margin-top: 18px;
    text-align: center;
    color: var(--muted-dim);
    font-size: 0.82rem;
}

.reviews-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 28px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.reviews-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.reviews-tab:hover {
    color: #fff;
}

.reviews-tab.is-active {
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 20px -12px rgba(255, 91, 46, 0.85);
}

.sdr-tabs {
    border-radius: 18px;
}

.reviews-panel[hidden] {
    display: none !important;
}

.reviews-honesty-operators {
    background: linear-gradient(180deg, rgba(95, 208, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(95, 208, 255, 0.32);
}

.reviews-honesty-operators .reviews-honesty-kicker {
    color: #a5e3ff;
}

.review-verified {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mint);
}

.operator-review-form {
    margin-top: 36px;
    padding: 26px 28px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.018) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.operator-review-form h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.operator-review-lead {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.operator-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.operator-review-form label span,
.operator-stars legend,
.operator-migrate legend,
.operator-move-reasons legend,
.operator-move-other span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.operator-review-form label span em {
    font-style: normal;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted-dim);
}

.operator-stars {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
}

.operator-star-picks {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    width: fit-content;
}

.operator-star-picks input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.operator-star-picks label {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-dim);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.12s ease, transform 0.12s ease;
}

.operator-star-picks input:checked + label,
.operator-star-picks input:checked ~ label {
    color: var(--amber);
}

.operator-star-picks:hover label {
    color: var(--muted-dim);
}

.operator-star-picks label:hover,
.operator-star-picks label:hover ~ label {
    color: var(--amber);
}

.operator-star-picks input:focus-visible + label {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .operator-star-picks label {
        transition: none;
    }
}

.operator-migrate,
.operator-move-reasons {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
}

.operator-migrate-note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 10px;
}

.operator-choice-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.operator-chip {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 550;
    cursor: pointer;
    user-select: none;
}

.operator-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.operator-chip:has(input:checked) {
    border-color: rgba(255, 166, 61, 0.65);
    background: rgba(255, 166, 61, 0.14);
    color: var(--amber);
}

.operator-chip:has(input:focus-visible) {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.operator-move-other {
    display: block;
    margin-top: 12px;
}

.operator-body-label {
    display: block;
    margin-bottom: 16px;
}

.operator-body-label textarea {
    min-height: 140px;
    resize: vertical;
}

.operator-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.operator-captcha {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin: 8px 0 18px;
}

.operator-captcha img {
    width: 220px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--obsidian-2);
}

.operator-captcha-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.operator-form-status {
    margin: 0 0 14px;
    font-size: 0.9rem;
}

.operator-form-status.is-error {
    color: #ff9db1;
}

.operator-form-status.is-ok {
    color: #8ff0cd;
}

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

/* ==========================================================================
   DIRECTORY (public scanners + alertpage)
   ========================================================================== */

.directory-section .container {
    max-width: 1020px;
}

.directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
}

.search-wrap {
    flex: 1 1 260px;
}

.directory-input,
.directory-select {
    width: 100%;
    padding: 11px 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.directory-input::placeholder {
    color: var(--muted-dim);
}

.directory-input:focus,
.directory-select:focus {
    outline: none;
    border-color: rgba(255, 91, 46, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.14);
}

.directory-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238590a3' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 9px;
    padding-right: 32px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row .directory-select {
    width: auto;
    min-width: 150px;
}

.directory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.stat-pill {
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--text-soft);
}

.stat-pill strong {
    color: #fff;
    font-weight: 700;
}

.stat-online {
    background: rgba(56, 224, 164, 0.1);
    border-color: rgba(56, 224, 164, 0.3);
    color: #8ff0cd;
}

.stat-online strong {
    color: var(--mint);
}

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

.directory-list,
.alertpage-directory {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alertpage-group {
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    overflow: hidden;
}

.alertpage-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 0;
    border-bottom: 1px solid var(--line);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s var(--ease);
}

.alertpage-group-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.alertpage-group-title {
    flex: 1;
}

.alertpage-group-count {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 91, 46, 0.16);
    border: 1px solid rgba(255, 91, 46, 0.3);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #ffc0a8;
}

.alertpage-chevron {
    font-size: 0.65rem;
    color: var(--muted);
    transition: transform 0.25s var(--ease);
}

.alertpage-group-header[aria-expanded="false"] .alertpage-chevron {
    transform: rotate(-90deg);
}

.alertpage-group-header[aria-expanded="false"] + .alertpage-group-list {
    display: none;
}

.alertpage-group-list {
    list-style: none;
}

.alertpage-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s var(--ease);
}

.alertpage-item:last-child {
    border-bottom: 0;
}

.alertpage-item:hover {
    background: rgba(255, 255, 255, 0.035);
}

.alertpage-item-main {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.alertpage-item-main strong {
    font-size: 0.98rem;
    color: #fff;
    font-weight: 600;
}

.alertpage-item-loc {
    font-size: 0.84rem;
    color: var(--muted);
}

.public-scanner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.public-scanner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 0.74rem;
    color: var(--text-soft);
}

.tag-sm {
    font-size: 0.7rem;
    padding: 2px 8px;
}

a.tag {
    text-decoration: none;
    color: inherit;
}

a.tag:hover {
    border-color: rgba(255, 166, 61, 0.55);
    color: var(--ember-bright);
}

.tag-accent {
    background: rgba(255, 166, 61, 0.13);
    border-color: rgba(255, 166, 61, 0.32);
    color: #ffd6a5;
}

.tag-price {
    background: rgba(95, 208, 255, 0.12);
    border-color: rgba(95, 208, 255, 0.3);
    color: #a9e5ff;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-online {
    background: rgba(56, 224, 164, 0.13);
    border: 1px solid rgba(56, 224, 164, 0.34);
    color: #6fe9be;
}

.status-offline {
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.32);
    color: #ff8da3;
}

.directory-loading,
.directory-empty,
.directory-error {
    padding: 34px 24px;
    text-align: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    font-size: 0.94rem;
}

.directory-error p {
    margin-bottom: 14px;
    color: #ffa9b9;
}

.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--ember);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AlertPage subscribe banner */
.alertpage-subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 24px 26px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 166, 61, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 166, 61, 0.26);
}

.alertpage-subscribe-copy {
    flex: 1 1 320px;
}

.alertpage-subscribe-title {
    font-size: 1.3rem;
    margin-bottom: 7px;
}

.alertpage-subscribe p {
    font-size: 0.94rem;
    color: var(--text-soft);
    margin: 0;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 5, 8, 0.78);
    backdrop-filter: blur(8px);
    animation: fade-in 0.2s var(--ease);
}

.modal-overlay[hidden] {
    display: none;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 30px 28px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-strong);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 1);
    animation: pop-in 0.25s var(--ease);
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 18px;
    padding-right: 40px;
}

.modal-body {
    font-size: 0.94rem;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.detail-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    margin-bottom: 18px;
}

.detail-list dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-dim);
    font-weight: 600;
}

.detail-list dd {
    font-size: 0.92rem;
    color: var(--text-soft);
    word-break: break-word;
}

.detail-coverage {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coverage-state-block strong {
    display: block;
    color: #fff;
    font-size: 0.88rem;
}

.coverage-state-block p {
    font-size: 0.85rem;
    color: var(--muted);
}

.detail-pricing-block {
    padding: 16px 18px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: rgba(95, 208, 255, 0.06);
    border: 1px solid rgba(95, 208, 255, 0.2);
}

.detail-pricing-title {
    font-size: 1rem;
    margin-bottom: 12px;
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

.pricing-option-label {
    color: var(--text-soft);
}

.pricing-option-amount {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #fff;
}

.pricing-trial {
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(56, 224, 164, 0.15);
    font-size: 0.72rem;
    color: #7fecc2;
}

.detail-pricing {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.detail-pricing-free {
    color: #7fecc2;
}

.detail-note {
    font-size: 0.85rem;
    color: var(--muted-dim);
    line-height: 1.6;
}

/* ==========================================================================
   STATUS PAGE
   ========================================================================== */

.status-section .container {
    max-width: 940px;
}

.status-root {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.status-loading {
    padding: 44px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    border: 1px dashed var(--line-strong);
}

/* legacy lcd-bezel hooks reused as glass panels */
.lcd-bezel {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.lcd-face {
    padding: 22px 24px;
}

.status-overall .lcd-face {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
}

.status-overall-label {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    color: #fff;
}

.status-overall-up {
    border-color: rgba(56, 224, 164, 0.34);
    background:
        radial-gradient(120% 160% at 50% 0%, rgba(56, 224, 164, 0.16), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.status-overall-up .status-overall-label {
    color: #8ff0cd;
}

.status-overall-degraded {
    border-color: rgba(255, 166, 61, 0.34);
    background:
        radial-gradient(120% 160% at 50% 0%, rgba(255, 166, 61, 0.16), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.status-overall-degraded .status-overall-label {
    color: #ffd6a5;
}

.status-overall-down {
    border-color: rgba(255, 77, 109, 0.34);
    background:
        radial-gradient(120% 160% at 50% 0%, rgba(255, 77, 109, 0.16), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.status-overall-down .status-overall-label {
    color: #ff9db1;
}

.status-description {
    font-size: 0.93rem;
    color: var(--muted);
    text-align: center;
}

.status-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-group-title {
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.status-monitor {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-monitor:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.status-monitor-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted-dim);
    flex: none;
}

.status-dot.up {
    background: var(--mint);
    box-shadow: 0 0 9px rgba(56, 224, 164, 0.85);
}

.status-dot.down {
    background: var(--rose);
    box-shadow: 0 0 9px rgba(255, 77, 109, 0.85);
}

.status-dot.pending,
.status-dot.maintenance {
    background: var(--amber);
    box-shadow: 0 0 9px rgba(255, 166, 61, 0.85);
}

.status-monitor-name {
    flex: 1;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text);
}

.status-uptime {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--muted);
}

.status-monitor-meta {
    margin-top: 4px;
    padding-left: 19px;
    font-size: 0.8rem;
    color: var(--muted-dim);
}

.status-beats-wrap {
    margin-top: 9px;
    padding-left: 19px;
}

.status-beats {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 22px;
}

.status-beats.empty {
    opacity: 0.25;
}

.beat {
    flex: 1 1 auto;
    min-width: 2px;
    max-width: 7px;
    height: 100%;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.09);
}

.beat.up {
    background: var(--mint);
}

.beat.down {
    background: var(--rose);
}

.beat.pending,
.beat.maintenance {
    background: var(--amber);
}

.status-beats-axis {
    display: flex;
    justify-content: space-between;
    padding-left: 19px;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--muted-dim);
    font-family: var(--font-mono);
}

.status-empty,
.status-refresh-meta {
    font-size: 0.82rem;
    color: var(--muted-dim);
    text-align: center;
}

.status-refresh-meta {
    font-family: var(--font-mono);
    margin-top: 6px;
}

.status-error {
    border-color: rgba(255, 77, 109, 0.3);
}

.status-error .lcd-face {
    text-align: center;
    color: #ff9db1;
}

.status-footnote {
    margin-top: 22px;
    text-align: center;
    font-size: 0.86rem;
    color: var(--muted);
}

/* ==========================================================================
   TUTORIALS
   ========================================================================== */

.tutorial-breadcrumb {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.tutorial-content {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tutorial-step,
.tutorial-summary {
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.tutorial-step h2 {
    font-size: 1.22rem;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tutorial-step h2 .step-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ember-bright);
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 91, 46, 0.13);
    border: 1px solid rgba(255, 91, 46, 0.3);
    flex: none;
}

.tutorial-step p {
    margin-bottom: 14px;
    line-height: 1.7;
}

.tutorial-list {
    margin: 0 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tutorial-list li {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 4px;
}

.tutorial-list li::marker {
    color: var(--ember);
    font-weight: 600;
}

.tutorial-figure {
    margin: 18px 0 4px;
}

.tutorial-figure img {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 1);
}

.tutorial-figure figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted-dim);
}

.tutorial-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.tutorial-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tutorial-table th,
.tutorial-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tutorial-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tutorial-table td {
    color: var(--text-soft);
}

.tutorial-table tr:last-child td {
    border-bottom: 0;
}

.tutorial-nav-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    margin-top: auto;
    padding: 44px 0 34px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-credit {
    align-self: center;
    line-height: 0;
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
}

.footer-credit img {
    width: 10.5rem;
    height: auto;
}

.footer-credit:hover {
    opacity: 0.82;
}

.footer-content p {
    font-size: 0.87rem;
    color: var(--muted);
}

.footer-content p:last-child {
    font-size: 0.8rem;
    color: var(--muted-dim);
    margin-top: 8px;
}

.footer-content .footer-note {
    max-width: 640px;
    margin: 10px auto 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--muted-dim);
}

.footer-content a {
    color: var(--text-soft);
}

.footer-content a:hover {
    color: var(--ember-bright);
}

/* ==========================================================================
   COVERAGE MAP
   ========================================================================== */

.page-hero-map {
    padding-bottom: 18px;
}

#directory {
    scroll-margin-top: calc(var(--nav-h) + 18px);
}

.map-stats-section {
    padding: 6px 0 0;
}

.map-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.map-stat {
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    text-align: center;
}

.map-stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}

.map-stat-label {
    margin-top: 3px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-dim);
}

.map-section {
    padding: 26px 0 clamp(40px, 7vh, 80px);
}

.map-container {
    max-width: 1320px;
}

/* Toolbar */
.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.map-search-wrap {
    position: relative;
    flex: 1 1 300px;
    max-width: 420px;
}

.map-search {
    width: 100%;
}

.map-search-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--panel-2);
    box-shadow: var(--shadow-lift);
    max-height: 300px;
    overflow-y: auto;
}

.map-search-hit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.map-search-hit:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.map-search-hit-kind {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted-dim);
}

.map-layer-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
    color: var(--text-soft);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.map-toggle:hover {
    border-color: var(--line-strong);
}

.map-toggle input {
    accent-color: var(--ember);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.map-toggle:has(input:checked) {
    border-color: rgba(255, 91, 46, 0.4);
    background: rgba(255, 91, 46, 0.09);
    color: var(--text);
}

/* Shell */
.map-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.map-shell.is-detail {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.map-canvas-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(95, 208, 255, 0.06), transparent 60%),
        var(--obsidian-2);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.map-canvas {
    position: relative;
    aspect-ratio: 975 / 610;
    min-height: 320px;
}

#coverage-map {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 975 / 610;
    cursor: grab;
    touch-action: none;
}

#coverage-map:active {
    cursor: grabbing;
}

.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.map-loading-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--ember);
    animation: map-spin 0.9s linear infinite;
}

@keyframes map-spin {
    to { transform: rotate(360deg); }
}

.map-error {
    text-align: center;
    color: var(--rose);
    font-size: 0.95rem;
}

.map-error span {
    color: var(--muted-dim);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Geography */
.map-root {
    will-change: transform;
}

.map-nation {
    fill: rgba(255, 255, 255, 0.022);
    stroke: none;
}

.map-counties {
    shape-rendering: optimizeSpeed;
}

.map-county {
    fill: rgba(255, 255, 255, 0.028);
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 0.4;
    cursor: pointer;
}

.map-county.is-public.level-1 { fill: rgba(255, 91, 46, 0.32); }
.map-county.is-public.level-2 { fill: rgba(255, 91, 46, 0.5); }
.map-county.is-public.level-3 { fill: rgba(255, 124, 77, 0.68); }
.map-county.is-public.level-4 { fill: rgba(255, 166, 61, 0.85); }

.map-county:hover {
    fill: rgba(255, 255, 255, 0.14);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 0.9;
}

.map-county.is-public:hover {
    fill: var(--ember-bright);
}

.map-county.is-selected {
    stroke: #fff;
    stroke-width: 1.6;
}

.map-state-mesh {
    fill: none;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 0.7;
    pointer-events: none;
}

.map-state-outline {
    fill: none;
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 1.1;
    pointer-events: none;
}

.map-city {
    pointer-events: none;
}

.map-city-dot {
    fill: #e9edf4;
    stroke: rgba(6, 8, 12, 0.75);
}

.map-city-label {
    fill: rgba(233, 237, 244, 0.92);
    font-family: var(--font-display);
    font-weight: 600;
    paint-order: stroke;
    stroke: rgba(6, 8, 12, 0.82);
    stroke-linejoin: round;
    letter-spacing: 0.01em;
}

#coverage-map.is-zoomed .map-county {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 0.12;
}

#coverage-map.is-zoomed .map-county:hover {
    stroke-width: 0.28;
}

#coverage-map.is-zoomed .map-county.is-selected {
    stroke-width: 0.4;
}

#coverage-map.is-zoomed .map-state-mesh {
    stroke-width: 0.22;
}

#coverage-map.is-zoomed .map-state-outline {
    stroke-width: 0.35;
}

#coverage-map.is-moving .map-counties,
#coverage-map.is-moving .map-markers,
#coverage-map.is-moving .map-cities {
    pointer-events: none;
}

#coverage-map.is-scaling .map-markers,
#coverage-map.is-scaling .map-cities {
    visibility: hidden;
}

/* Markers */
.map-cluster,
.map-marker {
    cursor: pointer;
}

.map-marker-plate {
    fill: rgba(8, 11, 16, 0.92);
    stroke: rgba(255, 255, 255, 0.35);
}

.map-marker.kind-alertpage .map-marker-plate {
    stroke: rgba(95, 208, 255, 0.6);
}

.map-marker.is-offline {
    opacity: 0.45;
}

.map-marker:hover .map-marker-plate {
    stroke: var(--ember-bright);
    stroke-width: 2;
}

.map-marker-mono {
    fill: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    pointer-events: none;
}

/* Tooltip */
.map-tooltip {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    transform: translate(14px, -120%);
    padding: 8px 11px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: rgba(6, 8, 12, 0.95);
    box-shadow: var(--shadow-lift);
    font-size: 0.82rem;
    color: var(--text);
    max-width: 260px;
    line-height: 1.35;
}

.map-tooltip.is-interactive {
    pointer-events: auto;
    transform: translate(-50%, calc(-100% - 4px));
    padding: 0 0 28px;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 280px;
}

.map-tooltip-inner {
    padding: 8px 11px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: rgba(6, 8, 12, 0.95);
    box-shadow: var(--shadow-lift);
}

.map-tooltip.is-locked .map-tooltip-inner {
    border-color: rgba(255, 166, 61, 0.5);
}

.map-tooltip-actions {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.76rem;
}

.map-tooltip-actions .map-tip-link {
    color: var(--ember-bright);
    font-weight: 600;
    text-decoration: none;
}

.map-tooltip-actions .map-tip-link:hover {
    text-decoration: underline;
}

.map-tooltip.flip-x {
    transform: translate(calc(-100% - 14px), -120%);
}

.map-tooltip.flip-y {
    transform: translate(14px, 14px);
}

.map-tooltip.flip-x.flip-y {
    transform: translate(calc(-100% - 14px), 14px);
}

.map-tooltip.is-interactive.flip-x {
    transform: translate(-100%, calc(-100% - 4px));
}

.map-tooltip.is-interactive.flip-y {
    transform: translate(-50%, 4px);
    padding: 28px 0 0;
}

.map-tooltip.is-interactive.flip-x.flip-y {
    transform: translate(-100%, 4px);
    padding: 28px 0 0;
}

.map-tooltip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.86rem;
}

.map-tooltip span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

/* Zoom + legend chrome */
.map-zoom-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 15;
}

.map-zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: rgba(9, 12, 18, 0.9);
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.map-zoom-btn:hover {
    color: var(--ember-bright);
    border-color: rgba(255, 91, 46, 0.5);
}

/* Sits below the canvas: the map's own corners are occupied by Alaska,
   Hawaii, and Florida. */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    background: rgba(6, 8, 12, 0.55);
    font-size: 0.78rem;
    color: var(--muted);
}

.map-legend-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.map-legend-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-dim);
}

.map-legend-scale {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.map-legend-tick {
    font-style: normal;
    font-size: 0.68rem;
    color: var(--muted-dim);
}

.map-legend-swatch {
    width: 22px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}

.map-legend-empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.map-legend-swatch[data-level="1"] { background: rgba(255, 91, 46, 0.32); }
.map-legend-swatch[data-level="2"] { background: rgba(255, 91, 46, 0.5); }
.map-legend-swatch[data-level="3"] { background: rgba(255, 124, 77, 0.68); }
.map-legend-swatch[data-level="4"] { background: rgba(255, 166, 61, 0.85); }

/* Side panel */
.map-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
    box-shadow: var(--shadow-card);
    padding: 20px;
    overflow-y: auto;
    max-height: 660px;
}

.map-panel-back {
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
}

.map-panel-back:hover {
    color: var(--ember-bright);
}

.map-panel-head h2 {
    font-size: 1.12rem;
    margin-bottom: 4px;
}

.map-panel-sub {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.map-panel-note {
    font-size: 0.86rem;
    color: var(--muted);
}

.map-operator-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.map-operator {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.map-operator-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.map-operator-mono {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.map-operator-meta {
    min-width: 0;
    flex: 1;
}

.map-operator-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-operator-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.map-operator-counties {
    font-size: 0.74rem;
    color: var(--muted-dim);
}

.map-coverage-list {
    margin-top: 18px;
}

.map-coverage-list h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted-dim);
    margin-bottom: 9px;
}

.map-coverage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

@media (max-width: 1080px) {
    .map-shell,
    .map-shell.is-detail {
        grid-template-columns: 1fr;
    }

    .map-panel {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .map-canvas-wrap {
        min-height: 340px;
    }

    .map-legend {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-loading-spinner {
        animation: none;
    }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .spectrum span,
    .marquee-track,
    .on-air-dot,
    .map-pin {
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
    .sdr-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .sdr-flow-step {
        max-width: none;
        flex: 1 1 auto;
    }

    .sdr-flow-arrow {
        align-self: center;
        transform: rotate(90deg);
        font-size: 1rem;
        padding: 2px 0;
    }

    .sdr-split {
        grid-template-columns: 1fr;
    }

    .bento {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento .bento-wide,
    .bento .bento-full {
        grid-column: span 4;
    }

    .bento-map-body {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .bento-map-visual {
        min-height: 150px;
        order: -1;
    }
}

/* Wordmark competes with the nav links before the drawer kicks in. */
@media (max-width: 1280px) {
    .logo-wordmark {
        display: none;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .logo-wordmark {
        display: inline;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 14px 18px 22px;
        background: rgba(7, 9, 13, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line-strong);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }

    .nav-menu.active {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu > li > a {
        padding: 13px 14px;
        font-size: 0.98rem;
    }

    .nav-signin {
        margin: 8px 0 0;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    body.tlr-site {
        font-size: 16px;
    }

    .container,
    .nav-container,
    .footer-content,
    .hero-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .bento > *,
    .bento .bento-wide,
    .bento .bento-full {
        grid-column: span 1;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stat {
        flex: 1 1 calc(50% - 5px);
        max-width: none;
    }

    .about-content,
    .tutorial-step,
    .tutorial-summary {
        padding: 22px 20px;
    }

    .directory-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row .directory-select {
        flex: 1 1 130px;
        min-width: 0;
    }

    .alertpage-item {
        align-items: flex-start;
    }

    .public-scanner-actions {
        width: 100%;
    }

    .public-scanner-actions .btn {
        flex: 1;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .detail-list dd {
        margin-bottom: 10px;
    }

    .modal-panel {
        padding: 26px 20px 20px;
    }

    .app-badge img {
        height: 46px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .sdr-shot figcaption {
        padding: 10px 14px 12px;
        font-size: 0.8rem;
    }

    .sdr-cost-card li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
