/* ==========================================================================
   GANN Dialog Pro – installation page
   Design tokens first, then layout. No external stylesheet or font CDN so the
   published bundle works unchanged from an S3 bucket behind CloudFront.
   ========================================================================== */

:root {
    --gann-blue-600: #0b4f8a;
    --gann-blue-500: #0f6bb8;
    --gann-blue-400: #2f8ed6;
    --gann-accent: #e8761a;

    --bg: #f5f7fa;
    --bg-elevated: #ffffff;
    --bg-subtle: #eef2f7;
    --surface-border: #dde5ee;
    --text: #17222e;
    --text-muted: #5b6b7c;
    --text-inverse: #ffffff;
    --focus: #2f8ed6;
    --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 2px 8px rgba(16, 32, 48, .05);
    --shadow-md: 0 6px 24px rgba(16, 32, 48, .10);
    --shadow-lg: 0 18px 48px rgba(16, 32, 48, .16);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;

    --header-h: 68px;
    --section-nav-h: 52px;
    --maxw: 1140px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
    --bg: #0d1520;
    --bg-elevated: #14202e;
    --bg-subtle: #1a2836;
    --surface-border: #26384a;
    --text: #e8eef5;
    --text-muted: #9fb0c2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
    --gann-blue-600: #1b6fb4;
    --gann-blue-500: #2f8ed6;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-3); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--space-4); }

a { color: var(--gann-blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: var(--space-2);
    z-index: 100;
    background: var(--bg-elevated);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}
.skip-link:focus { left: var(--space-4); }

/* ---------- boot screen (before Blazor is running) ---------- */
.boot {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--space-4);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
}
/* The boot screen runs before Blazor starts, so it loads the logo file; the
   dark mark is inverted for the dark theme. */
.boot__logo { width: 200px; max-width: 60vw; height: auto; display: block; }
:root[data-theme="dark"] .boot__logo { filter: invert(1) brightness(1.55); }
.boot__text { margin: 0; font-weight: 600; letter-spacing: .02em; }
.boot__bar { width: 180px; height: 4px; border-radius: 4px; background: #d7e2ee; overflow: hidden; }
.boot__percent {
    margin: 0; min-height: 1.2em;
    font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--text-muted);
}
/* Set by the Blazor runtime while it downloads; empty before that. */
.boot__percent::after { content: var(--blazor-load-percentage-text, ""); }

.boot__bar span {
    display: block; height: 100%; width: 40%; border-radius: 4px;
    background: linear-gradient(90deg, #0f6bb8, #2f8ed6);
    animation: boot-slide 1.1s ease-in-out infinite;
}
@keyframes boot-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}
.site-header__inner {
    display: flex; align-items: center; gap: var(--space-4);
    min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
/* The header logo is inline SVG filled with currentColor – no second file and
   no filter needed for the dark theme. */
.gann-logo { display: block; width: auto; height: 100%; color: inherit; }
.brand__logo { height: 30px; flex: none; color: var(--text); }
.brand__divider {
    width: 1px; height: 26px; flex: none;
    background: var(--surface-border);
}
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name small { font-size: .72rem; font-weight: 500; color: var(--text-muted); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.site-nav a, .site-nav summary, .icon-button {
    color: var(--text-muted); font-size: .92rem; font-weight: 550;
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--text); background: var(--bg-subtle); text-decoration: none; }

.menu { position: relative; }
.menu > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { color: var(--text); background: var(--bg-subtle); }
.menu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
    background: var(--bg-elevated); border: 1px solid var(--surface-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: var(--space-2); display: grid; gap: 2px; z-index: 50;
}
.menu__panel a, .menu__panel button {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
    font-size: .92rem; color: var(--text); background: none; border: 0;
    width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.menu__panel a:hover, .menu__panel button:hover { background: var(--bg-subtle); text-decoration: none; }
.menu__panel button[aria-current="true"] { background: var(--bg-subtle); font-weight: 650; }
.menu__check { margin-left: auto; color: var(--gann-blue-500); }

.icon-button {
    border: 1px solid var(--surface-border); background: var(--bg-elevated);
    cursor: pointer; font-size: 1rem; line-height: 1; padding: var(--space-2);
    width: 38px; height: 38px; display: grid; place-content: center; color: var(--text-muted);
}
.icon-button:hover { color: var(--text); }

/* ---------- floating section bar ---------- */
/* Slides in below the header once the hero is scrolled past, and marks the
   section the visitor is currently reading. */
.section-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 35;
    background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility 0s linear .28s;
}
.section-nav--visible {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform .28s ease, opacity .28s ease;
}

.section-nav__inner {
    display: flex; align-items: center; gap: var(--space-4);
    min-height: var(--section-nav-h);
}

.section-nav__list {
    display: flex; align-items: center; gap: var(--space-1);
    margin: 0; padding: 0; list-style: none;
    overflow-x: auto; scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.section-nav__list::-webkit-scrollbar { display: none; }

.section-nav__link {
    position: relative;
    display: inline-block;
    padding: calc(var(--space-3) + 2px) var(--space-3) var(--space-3);
    white-space: nowrap;
    scroll-snap-align: start;
    font-size: .93rem; font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}
.section-nav__link:hover { color: var(--text); text-decoration: none; }
.section-nav__link--current {
    color: var(--gann-blue-500);
    border-bottom-color: var(--gann-blue-500);
}

.section-nav__cta { margin-left: auto; flex: none; }

/* The two sticky bars must not cover a heading that was jumped to. */
#requirements, #install, #devices, #guides {
    scroll-margin-top: calc(var(--header-h) + var(--section-nav-h) + var(--space-3));
}

@media (max-width: 720px) {
    .section-nav__cta { display: none; }
    .section-nav__inner { gap: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
    .section-nav { transition: opacity .01ms, visibility 0s; transform: none; }
}

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: var(--space-8) 0 var(--space-7);
    background:
        radial-gradient(1200px 400px at 12% -10%, color-mix(in srgb, var(--gann-blue-400) 26%, transparent), transparent 60%),
        radial-gradient(900px 380px at 92% 0%, color-mix(in srgb, var(--gann-accent) 16%, transparent), transparent 62%);
}
.hero__grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--gann-blue-500); margin-bottom: var(--space-3);
}
.hero__lead { font-size: 1.08rem; color: var(--text-muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: .78rem 1.35rem; border-radius: var(--radius-pill);
    font-weight: 620; font-size: .97rem; font-family: inherit;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button--primary {
    background: linear-gradient(135deg, var(--gann-blue-600), var(--gann-blue-400));
    color: var(--text-inverse); box-shadow: var(--shadow-md);
}
.button--ghost { background: var(--bg-elevated); color: var(--text); border-color: var(--surface-border); }
.button--block { width: 100%; }
.button--sm { padding: .5rem 1rem; font-size: .88rem; }

/* ---------- fact card ---------- */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
}
.facts { display: grid; gap: 0; }
.facts__row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-3);
    padding: var(--space-3) 0; border-bottom: 1px solid var(--surface-border);
}
.facts__row:last-child { border-bottom: 0; }
.facts__key { color: var(--text-muted); font-size: .9rem; }
.facts__value { font-weight: 600; }

.badge {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: .22rem .7rem; border-radius: var(--radius-pill);
    font-size: .76rem; font-weight: 700; letter-spacing: .02em;
}
.badge--accent { background: color-mix(in srgb, var(--gann-accent) 18%, transparent); color: var(--gann-accent); }
.badge--blue { background: color-mix(in srgb, var(--gann-blue-400) 18%, transparent); color: var(--gann-blue-500); }
.badge--muted { background: var(--bg-subtle); color: var(--text-muted); }

/* ---------- sections ---------- */
.section { padding: var(--space-7) 0; }
.section--tinted { background: var(--bg-elevated); border-block: 1px solid var(--surface-border); }
.section__head { max-width: 62ch; margin-bottom: var(--space-6); }
.section__head p { color: var(--text-muted); margin-bottom: 0; }

.requirements { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist li::before {
    content: "✓"; flex: none; width: 22px; height: 22px; margin-top: 2px;
    border-radius: 50%; display: grid; place-content: center; font-size: .75rem; font-weight: 700;
    background: color-mix(in srgb, var(--gann-blue-400) 20%, transparent); color: var(--gann-blue-500);
}
.os-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.note {
    margin-top: var(--space-5); padding: var(--space-4);
    border-left: 3px solid var(--gann-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--bg-subtle); color: var(--text-muted); font-size: .94rem;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- platform tabs ---------- */
.platform-tabs { --tab-accent: linear-gradient(135deg, var(--gann-blue-600), var(--gann-blue-400)); }

.tablist {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;          /* every tab takes the same share of the full width */
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-2);
    margin-bottom: var(--space-5);
    background: var(--bg-subtle);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 2px rgba(16, 32, 48, .06);
}

.tab {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
    width: 100%;
    padding: .95rem 1.25rem;
    border: 1px solid transparent; border-radius: var(--radius-md);
    background: none; cursor: pointer; font-family: inherit;
    font-size: 1.02rem; font-weight: 650; color: var(--text-muted);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tab:hover { color: var(--text); background: color-mix(in srgb, var(--bg-elevated) 70%, transparent); }
.tab:active { transform: translateY(1px); }

.tab--active,
.tab--active:hover {
    background: var(--tab-accent);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--gann-blue-500) 42%, transparent);
}
.tab--active .platform-icon { color: var(--text-inverse); }

.platform-icon { width: 22px; height: 22px; flex: none; }
.platform-icon--image { object-fit: contain; }
/* A monochrome logo file stays readable on the coloured active tab. */
.tab--active .platform-icon--image { filter: brightness(0) invert(1); }

/* The panel reads as one body with the selected tab. */
.tabpanel {
    position: relative;
    padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 4px);
    background: var(--bg-elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    outline-offset: 4px;
}
.tabpanel::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 4px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: var(--tab-accent);
}
.tabpanel[tabindex]:focus-visible { outline: 3px solid var(--focus); }

.platform-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.platform-grid h3 { margin-bottom: var(--space-3); }
.platform-grid > .card { background: var(--bg-subtle); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--space-4); }
.steps li { position: relative; padding-left: 2.6rem; counter-increment: step; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -1px;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-content: center;
    font-size: .8rem; font-weight: 700;
    color: var(--text-inverse);
    background: var(--tab-accent);
}

@media (max-width: 620px) {
    .tablist { grid-auto-flow: row; grid-auto-columns: auto; }
    .tab { justify-content: flex-start; }
    .tabpanel { padding-inline: var(--space-4); padding-left: calc(var(--space-4) + 4px); }
}

/* ---------- install options ---------- */
.options { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); align-items: stretch; }
.option { display: flex; flex-direction: column; gap: var(--space-4); position: relative; }
.option--featured { border-color: color-mix(in srgb, var(--gann-blue-400) 55%, var(--surface-border)); box-shadow: var(--shadow-md); }
.option__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.option__title { margin: 0; }
.option__benefits { flex: 1; }
.option__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--text-muted); font-size: .86rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--surface-border); border-radius: var(--radius-md); background: var(--bg-elevated); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
thead th {
    text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted); padding: var(--space-3) var(--space-4);
    background: var(--bg-subtle); border-bottom: 1px solid var(--surface-border); white-space: nowrap;
}
tbody td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--surface-border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
/* ---------- flags ---------- */
.flag-icon {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 22px; height: 15px; border-radius: 2px; overflow: hidden;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 16%, transparent);
    vertical-align: -2px;
}
.flag-icon svg { width: 100%; height: 100%; display: block; }
.flag-icon--lg { width: 28px; height: 19px; border-radius: 3px; }
td .flag-icon, th .flag-icon { margin-right: var(--space-2); }

.language-menu__trigger { display: inline-flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-3); }

/* ---------- product carousel ---------- */
.carousel { display: grid; gap: var(--space-4); outline-offset: 6px; }

/* One fixed stage for pictures of very different shapes: upright device photos
   and wide application screenshots. Nothing is cropped – the picture is fitted
   inside and a blurred copy of itself fills the rest of the frame. */
.carousel__stage {
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: min(70vh, 560px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-subtle);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-md);
}

.carousel__slide {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease, visibility 0s linear .6s;
}
.carousel__slide--current { opacity: 1; visibility: visible; transition: opacity .6s ease; }

.carousel__backdrop {
    position: absolute; inset: -6%;
    background-size: cover; background-position: center;
    filter: blur(26px) saturate(.75) brightness(.85);
    transform: scale(1.06);
}
:root[data-theme="dark"] .carousel__backdrop { filter: blur(26px) saturate(.6) brightness(.45); }

.carousel__frame {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    padding: var(--space-4) var(--space-4) calc(var(--space-6) + var(--space-3));
}
.carousel__frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(6, 18, 30, .28);
}

.carousel__caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: var(--space-6) var(--space-5) var(--space-4);
    color: #fff; font-size: .98rem; font-weight: 600; text-align: center;
    background: linear-gradient(to top, rgba(6, 18, 30, .85), rgba(6, 18, 30, 0));
}

.carousel__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; display: grid; place-content: center;
    border-radius: 50%; border: 1px solid var(--surface-border);
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.carousel__arrow--prev { left: var(--space-4); }
.carousel__arrow--next { right: var(--space-4); }
.carousel:hover .carousel__arrow,
.carousel:focus-within .carousel__arrow { opacity: 1; }
.carousel__arrow:focus-visible { opacity: 1; }
.carousel__arrow:hover { background: var(--bg-elevated); }

.carousel__controls { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.carousel__play {
    width: 34px; height: 34px; flex: none; display: grid; place-content: center;
    border-radius: 50%; border: 1px solid var(--surface-border);
    background: var(--bg-elevated); color: var(--text-muted);
    font-size: .72rem; cursor: pointer;
}
.carousel__play:hover { color: var(--text); }

.carousel__dots { display: flex; gap: var(--space-2); }
.carousel__dot {
    width: 34px; height: 6px; padding: 0; border: 0; border-radius: var(--radius-pill);
    background: var(--surface-border); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.carousel__dot:hover { background: var(--text-muted); }
.carousel__dot--current {
    background: linear-gradient(135deg, var(--gann-blue-600), var(--gann-blue-400));
    transform: scaleY(1.34);
}

.carousel__position { margin: 0; margin-left: auto; color: var(--text-muted); font-size: .86rem; }

@media (max-width: 620px) {
    .carousel__stage { aspect-ratio: 4 / 5; max-height: 70vh; }
    .carousel__arrow { opacity: 1; width: 36px; height: 36px; }
    .carousel__position { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel__slide { transition: none; }
}

/* ---------- guides ---------- */
.guides { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

/* ---------- FAQ article ---------- */
.hero--compact { padding: var(--space-6) 0 var(--space-5); }

.breadcrumb {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    font-size: .86rem; color: var(--text-muted); margin-bottom: var(--space-4);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

.faq { max-width: 860px; }

.faq__toc {
    background: var(--bg-elevated); border: 1px solid var(--surface-border);
    border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
}
.faq__toc h2 {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-muted); margin-bottom: var(--space-3);
}
.faq__toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--space-2); }

.faq__entry {
    padding-top: var(--space-6);
    scroll-margin-top: 90px;   /* the sticky header must not cover the heading */
}
.faq__entry + .faq__entry { border-top: 1px solid var(--surface-border); }
.faq__question { font-size: 1.35rem; }
.faq__entry p { color: var(--text-muted); }
.faq__entry .steps { margin: var(--space-5) 0; }
.faq__entry .steps li { color: var(--text); }

.faq__figure {
    margin: var(--space-5) 0 0;
    border: 1px solid var(--surface-border); border-radius: var(--radius-md);
    background: var(--bg-elevated); overflow: hidden;
}
.faq__figure img { display: block; width: 100%; height: auto; }
.faq__figure figcaption {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--surface-border);
    color: var(--text-muted); font-size: .88rem;
}

.faq__back { margin-top: var(--space-7); }

/* ---------- states ---------- */
.state { display: grid; gap: var(--space-4); justify-items: center; text-align: center; padding: var(--space-8) 0; color: var(--text-muted); }
.spinner {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid var(--surface-border); border-top-color: var(--gann-blue-500);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: var(--bg-subtle); border-radius: var(--radius-sm); height: 1rem; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- footer ---------- */
.site-footer {
    background: var(--bg-elevated); border-top: 1px solid var(--surface-border);
    padding: var(--space-6) 0; color: var(--text-muted); font-size: .92rem;
}
.site-footer__grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__bar { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--surface-border); font-size: .85rem; }

/* ---------- blazor error ---------- */
#blazor-error-ui {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: #fff3cd; color: #664d03; padding: var(--space-3) var(--space-5); box-shadow: var(--shadow-lg);
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

@media (max-width: 860px) {
    .hero { padding-top: var(--space-6); }
    .hero__grid { grid-template-columns: 1fr; }
    .site-nav .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
