/* ==========================================================================
   Trader Insight — shared stylesheet

   One file for every page, so a change to the look lands everywhere at once.

   The tokens below are lifted from the app itself rather than invented for
   the web: the colours are `HomeColors.resolve()` in
   lib/features/dashboard/ui/home/home_theme.dart, the radii are `AppRadius`,
   and the type is the same three families the app bundles — Space Grotesk
   for words, Inter for long-form reading, JetBrains Mono for anything the
   eye compares down a column. Someone who installs the app after reading
   this site should recognise the screen they land on.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
    /* Accent — AppColors.primary (Indigo) and its dark variant. The app lets
       a trader repaint this; the site ships the default. */
    --accent: #6366F1;
    --accent-strong: #4F46E5;
    --accent-soft: rgba(99, 102, 241, 0.10);
    --accent-ring: rgba(99, 102, 241, 0.38);

    /* Surfaces — HomeColors light */
    --bg: #EFF3F8;
    --surface: #FFFFFF;
    --surface-2: #F6F8FC;
    --line: #DCE3ED;
    --hairline: rgba(11, 18, 32, 0.05);

    /* Ink */
    --ink: #0B1220;
    --ink-2: #4A5769;
    --muted: #78859A;

    /* Direction of money — AppColors.profitDark / lossDark */
    --profit: #059669;
    --loss: #DC2626;
    --warn: #B26B00;
    --warn-soft: rgba(178, 107, 0, 0.10);
    --warn-line: rgba(178, 107, 0, 0.28);

    /* Radii — AppRadius */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-xxl: 28px;
    --r-pill: 999px;

    /* Depth — HomeColors.shadow. A card carries a border as well, so the
       lift only has to separate it from the ground. */
    --lift: 0 1px 2px rgba(11, 18, 32, 0.05), 0 12px 30px -14px rgba(11, 18, 32, 0.10);
    --lift-lg: 0 2px 4px rgba(11, 18, 32, 0.06), 0 24px 48px -20px rgba(11, 18, 32, 0.16);

    /* Type */
    --font-ui: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

    --nav-h: 64px;
    --maxw: 1120px;
    --maxw-prose: 780px;
}

/* Dark for anyone whose system asks for it, with the toggle able to override
   in either direction. Both selectors are needed: the media query alone
   cannot be turned off, and the attribute alone ignores the system setting. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --accent: #818CF8;
        --accent-strong: #A5B0FF;
        --accent-soft: rgba(129, 140, 248, 0.14);
        --accent-ring: rgba(129, 140, 248, 0.45);

        --bg: #080A0E;
        --surface: #11151C;
        --surface-2: #171D26;
        --line: #212936;
        --hairline: rgba(255, 255, 255, 0.05);

        --ink: #E7ECF5;
        --ink-2: #9AA6B8;
        --muted: #66738A;

        --profit: #34D399;
        --loss: #F87171;
        --warn: #F5A524;
        --warn-soft: rgba(245, 165, 36, 0.14);
        --warn-line: rgba(245, 165, 36, 0.30);

        --lift: 0 12px 32px -14px rgba(0, 0, 0, 0.80);
        --lift-lg: 0 20px 48px -18px rgba(0, 0, 0, 0.85);
    }
}

:root[data-theme="dark"] {
    --accent: #818CF8;
    --accent-strong: #A5B0FF;
    --accent-soft: rgba(129, 140, 248, 0.14);
    --accent-ring: rgba(129, 140, 248, 0.45);

    --bg: #080A0E;
    --surface: #11151C;
    --surface-2: #171D26;
    --line: #212936;
    --hairline: rgba(255, 255, 255, 0.05);

    --ink: #E7ECF5;
    --ink-2: #9AA6B8;
    --muted: #66738A;

    --profit: #34D399;
    --loss: #F87171;
    --warn: #F5A524;
    --warn-soft: rgba(245, 165, 36, 0.14);
    --warn-line: rgba(245, 165, 36, 0.30);

    --lift: 0 12px 32px -14px rgba(0, 0, 0, 0.80);
    --lift-lg: 0 20px 48px -18px rgba(0, 0, 0, 0.85);
}

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

html {
    scroll-behavior: smooth;
    /* So an anchor jump does not park the heading underneath the sticky nav. */
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* The app's micro-caps section label — 9px, wide tracking, upper case
   (HomeText.label). It is the single most recognisable piece of the app's
   type, so every section on the site is introduced by one. */
.eyebrow {
    display: block;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

/* Anything the eye compares down a column is set in the mono face with
   tabular figures, exactly as HomeText.mono does it. */
.num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--r-md) 0;
    font-family: var(--font-ui);
    font-weight: 600;
    z-index: 200;
}

.skip-link:focus {
    left: 0;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.prose-wrap {
    max-width: var(--maxw-prose);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation ---------------------------------------------------------
   A floating dock rather than a full-width bar, because that is what the app
   does: `CollapsibleNavWrapper` rides above the content at AppRadius.xxl. */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    height: calc(var(--nav-h) - 16px);
    padding: 0 8px 0 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xxl);
    box-shadow: var(--lift);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-right: auto;
    white-space: nowrap;
}

.nav-brand:hover {
    text-decoration: none;
}

.nav-mark {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    border: 1px solid var(--hairline);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: var(--ink-2);
    padding: 8px 12px;
    border-radius: var(--r-pill);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
    background: var(--surface-2);
    color: var(--ink);
    text-decoration: none;
}

.nav-links a.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    order: 3;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.nav-toggle {
    display: none;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 10px 10px 14px;
        border-radius: var(--r-xl);
    }

    .nav-links {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--line);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 12px;
        border-radius: var(--r-md);
        font-size: 15px;
    }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.1px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px -10px var(--accent-ring);
}

.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--lift);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.btn-sm {
    font-size: 13.5px;
    padding: 10px 16px;
}

/* Google Play button, in Play's own proportions. */
.btn-play {
    background: var(--ink);
    color: var(--bg);
    padding: 10px 22px 10px 18px;
}

:root[data-theme="dark"] .btn-play,
.btn-play {
    box-shadow: var(--lift);
}

.btn-play:hover {
    transform: translateY(-1px);
    box-shadow: var(--lift-lg);
}

.btn-play svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.play-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
}

.play-small {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.75;
}

.play-big {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 72px 20px 56px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 7px 16px;
    box-shadow: var(--lift);
    margin-bottom: 26px;
}

.hero-badge .num {
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-ui);
    font-size: clamp(2.15rem, 5.6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -1.6px;
    margin-bottom: 22px;
}

/* The break in the headline is a desktop decision. On a phone it strands the
   last word on a line of its own; let the text find its own breaks there. */
@media (max-width: 620px) {
    .hero h1 br {
        display: none;
    }
}

.hero .lede {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 22px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--muted);
}

/* --- Sections ------------------------------------------------------------ */
.section {
    padding: 72px 0;
}

.section-tight {
    padding: 8px 0 24px;
}

/* A banded section, kept between the ground and the card fill rather than
   equal to either. Setting it to --surface made the cards on it vanish into
   their own background: same colour, lift doing nothing. */
.section-alt {
    background: color-mix(in srgb, var(--surface) 55%, var(--bg));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    font-family: var(--font-ui);
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.9px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16.5px;
    color: var(--ink-2);
    max-width: 640px;
    margin-bottom: 36px;
}

/* --- Stat tiles ----------------------------------------------------------
   The app's metric tile: a micro-caps label under a mono figure. */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 20px;
    box-shadow: var(--lift);
}

.stat-number {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--accent-strong);
    margin-bottom: 10px;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
}

/* --- Filter chips -------------------------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.chip {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.chip[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* --- Feature cards ------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    box-shadow: var(--lift);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.feature-card[hidden] {
    display: none;
}

/* The recessed icon well the app uses inside its cards (HomeColors.surf2). */
.feature-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-ui);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-card p {
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--ink-2);
}

.tag-new {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border-radius: var(--r-xs);
    padding: 3px 7px;
    line-height: 1.2;
}

.tag-updated {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--warn);
    background: var(--warn-soft);
    border-radius: var(--r-xs);
    padding: 3px 7px;
    line-height: 1.2;
}

/* --- Link cards ---------------------------------------------------------- */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.link-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    box-shadow: var(--lift);
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    text-decoration: none;
}

.link-card h3 {
    font-family: var(--font-ui);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    color: var(--ink);
}

.link-card p {
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.6;
}

/* --- Document pages ------------------------------------------------------ */
.page-head {
    padding: 64px 0 34px;
}

.page-head h1 {
    font-family: var(--font-ui);
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.page-head .subtitle {
    font-size: 17px;
    color: var(--ink-2);
}

.last-updated {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: -0.2px;
}

.doc {
    padding-bottom: 72px;
}

.doc .section-block {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.doc h2 {
    font-family: var(--font-ui);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.doc h3 {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin: 22px 0 10px;
}

.doc p {
    color: var(--ink-2);
    margin-bottom: 14px;
    font-size: 15.5px;
}

.doc ul,
.doc ol {
    color: var(--ink-2);
    margin: 0 0 14px 22px;
    font-size: 15.5px;
}

.doc li {
    margin-bottom: 8px;
}

.doc li>ul {
    margin-top: 8px;
}

.doc strong {
    color: var(--ink);
    font-weight: 600;
}

/* --- Table of contents --------------------------------------------------- */
.toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    margin-bottom: 12px;
    box-shadow: var(--lift);
}

.toc h2 {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 28px;
}

.toc li {
    margin-bottom: 7px;
    font-size: 14.5px;
    color: var(--muted);
    break-inside: avoid;
}

.toc a {
    color: var(--ink-2);
}

.toc a:hover {
    color: var(--accent-strong);
}

@media (max-width: 620px) {
    .toc ol {
        columns: 1;
    }
}

/* --- Callouts ------------------------------------------------------------ */
.callout {
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    border-left: 3px solid var(--warn);
    border-radius: var(--r-md);
    padding: 18px 20px;
    margin: 20px 0;
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.6;
}

.callout strong {
    color: var(--ink);
    font-weight: 600;
}

.callout-info {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    border-left-color: var(--accent);
}

.email-link {
    font-family: var(--font-mono);
    font-size: 0.94em;
    letter-spacing: -0.3px;
    word-break: break-all;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.search-field {
    position: relative;
    flex: 1 1 260px;
    display: flex;
    align-items: center;
}

.search-field svg {
    position: absolute;
    left: 15px;
    width: 17px;
    height: 17px;
    color: var(--muted);
    pointer-events: none;
}

.search-field input {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 14.5px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 12px 16px 12px 42px;
    box-shadow: var(--lift);
}

.search-field input::placeholder {
    color: var(--muted);
}

.search-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.faq-count {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 26px;
}

.faq-category {
    margin-bottom: 34px;
}

.faq-category[hidden] {
    display: none;
}

.faq-category-title {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

details.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    box-shadow: var(--lift);
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

details.faq-item[hidden] {
    display: none;
}

details.faq-item[open] {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

details.faq-item>summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--font-ui);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.45;
    color: var(--ink);
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}

details.faq-item>summary::-webkit-details-marker {
    display: none;
}

details.faq-item>summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--muted);
    flex: 0 0 auto;
    transition: transform 0.18s ease, color 0.18s ease;
}

details.faq-item[open]>summary::after {
    content: "−";
    color: var(--accent-strong);
}

details.faq-item>summary:hover {
    color: var(--accent-strong);
}

.faq-answer {
    padding: 0 20px 18px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin: 0 0 0;
}

.faq-answer p {
    font-size: 15px;
    color: var(--ink-2);
    margin-bottom: 12px;
    line-height: 1.62;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0 0 12px 20px;
    color: var(--ink-2);
    font-size: 15px;
}

.faq-answer li {
    margin-bottom: 7px;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--ink);
    font-weight: 600;
}

.no-results {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 34px 24px;
    text-align: center;
    box-shadow: var(--lift);
}

.no-results strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 17px;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--ink-2);
    font-size: 15px;
}

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
    max-width: var(--maxw);
    margin: 0 auto 72px;
    padding: 56px 32px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xxl);
    box-shadow: var(--lift-lg);
}

.cta-band h2 {
    font-family: var(--font-ui);
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.9px;
    margin-bottom: 12px;
}

.cta-band p {
    color: var(--ink-2);
    font-size: 16.5px;
    max-width: 520px;
    margin: 0 auto 28px;
}

@media (max-width: 620px) {
    .cta-band {
        margin: 0 16px 56px;
        padding: 44px 22px;
        border-radius: var(--r-xl);
    }
}

/* --- Footer -------------------------------------------------------------- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 56px 20px 28px;
}

.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer h4 {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 9px;
}

.footer a {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: var(--ink-2);
}

.footer a:hover {
    color: var(--accent-strong);
}

.footer-brand p {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 14px 0 20px;
    max-width: 380px;
}

.footer-brand .btn {
    margin-top: 0;
}

.footer-bottom {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--muted);
}

/* --- Back to top --------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow: var(--lift);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 90;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
}

/* --- Utilities ----------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

mark {
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-radius: var(--r-xs);
    padding: 0 3px;
}
