/* =============================================
   QTO Help — Section Styles
   Scoped to .help-* and .qto-* prefixes
   Consumes tokens from css/style.css :root
   ============================================= */

/* --- Header --- */

.help-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background-color: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.help-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.help-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.help-brand img {
    height: 28px;
    width: auto;
}

.help-brand-divider {
    color: var(--text-muted);
    font-weight: 400;
}

.help-brand-product {
    color: var(--accent);
}

.help-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.help-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    text-decoration: none;
}

.help-nav a:hover,
.help-nav a.active {
    color: var(--text);
}

/* --- Sidebar --- */

.help-sidebar {
    position: fixed;
    top: calc(var(--header-h) + 24px);
    left: max(24px, calc((100vw - var(--max-width)) / 2));
    width: 240px;
    bottom: 0;
    overflow-y: auto;
    padding-bottom: 32px;
    background: rgba(26, 31, 46, 0.5);
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.help-sidebar nav {
    padding: 16px 20px 16px 16px;
}

.help-sidebar-group {
    margin-bottom: 20px;
}

.help-sidebar-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 0;
}

.help-sidebar-group ul {
    list-style: none;
}

.help-sidebar-group li {
    margin-bottom: 2px;
}

.help-sidebar-group a {
    display: block;
    padding: 4px 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.help-sidebar-group a:hover {
    color: var(--text);
    background: rgba(88, 166, 255, 0.06);
}

.help-sidebar-group a.active {
    color: var(--accent);
    background: rgba(88, 166, 255, 0.08);
}

.help-sidebar-pending {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* --- Main content layout --- */

.help-main {
    margin-left: 264px; /* sidebar 240px + 24px gap */
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 80px;
    min-height: 100vh;
}

.help-main-landing {
    margin-left: 0;
}

.help-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Breadcrumb --- */

.help-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.help-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.help-breadcrumb a:hover {
    color: var(--accent);
}

.help-breadcrumb-sep {
    padding: 0 0.5rem;
    color: var(--border);
    user-select: none;
}

.help-breadcrumb-current {
    color: var(--text);
}

.help-breadcrumb-current-cat {
    color: var(--text-muted);
}

/* --- Content typography --- */

.help-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.help-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    color: var(--text);
}

.help-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.help-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: var(--text);
}

.help-content code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 2px 6px;
    background: rgba(88, 166, 255, 0.08);
    border-radius: 4px;
    color: var(--accent);
}

/* --- Tier badges --- */

.help-tier-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 8px;
    line-height: 1.4;
}

.help-tier-badge--freemium {
    background: rgba(63, 185, 80, 0.12);
    color: var(--accent-2);
    border: 1px solid rgba(63, 185, 80, 0.25);
}

.help-tier-badge--pay {
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(88, 166, 255, 0.25);
}

/* --- Callouts --- */

.help-callout {
    border-radius: var(--radius-sm);
    border-left: 3px solid;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(15, 20, 25, 0.5);
}

.help-callout p {
    margin-bottom: 0.5rem;
}

.help-callout p:last-child {
    margin-bottom: 0;
}

.help-callout--info {
    border-color: var(--accent);
}

.help-callout--warning {
    border-color: #d29922;
}

.help-callout--success {
    border-color: var(--accent-2);
}

/* --- See-also chips --- */

.help-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 20px;
}

.help-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.help-chip:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Related list (coming-soon stub) --- */

.help-related-list {
    list-style: disc;
    padding-left: 24px;
    margin: 8px 0 24px;
}

.help-related-list li {
    margin-bottom: 4px;
}

/* --- Changelog releases --- */

.help-release {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 20px;
    margin: 24px 0 32px;
}

.help-release h2 {
    border-bottom: none;
    margin-top: 0;
}

.help-release-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.help-release h3 {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: none;
}

/* --- Per-page footer meta --- */

.help-page-meta {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Page lede paragraph --- */

.help-lede {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.65;
    margin: 0 0 24px;
}

/* --- Figures with screenshots --- */

.help-figure {
    margin: 24px 0;
    padding: 0;
}

.help-figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    display: block;
}

.help-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* --- Troubleshooting collapsible items --- */

.help-troubleshoot {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 8px 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.02);
}

.help-troubleshoot summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 500;
    list-style: none;
    user-select: none;
}

.help-troubleshoot summary::-webkit-details-marker {
    display: none;
}

.help-troubleshoot summary::before {
    content: '+ ';
    color: var(--accent);
    font-weight: 700;
    margin-right: 4px;
}

.help-troubleshoot[open] summary::before {
    content: '− ';
}

.help-troubleshoot > *:not(summary) {
    padding: 0 16px 12px;
    margin-top: 0;
}

/* --- Download card (standalone page) --- */

.help-download-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.help-download-version {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.help-download-hint {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.help-chip--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

/* --- Standalone-page wrapper (no sidebar) --- */

.help-standalone {
    max-width: 760px;
    margin: 0 auto;
}

/* --- Field tables (parameters reference) --- */

.help-field-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.help-field-table th,
.help-field-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.help-field-table th {
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.help-field-table code {
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

/* --- Coming Soon --- */

.help-coming-soon {
    text-align: center;
    padding: 48px 24px;
}

.help-coming-soon::before {
    content: '⏳';
    display: block;
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1;
}

.help-coming-soon h2 {
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.help-coming-soon p {
    color: var(--text-muted);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.help-coming-soon a {
    font-weight: 500;
}

/* --- Landing --- */

.qto-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h) - 160px);
    text-align: center;
}

.qto-landing-inner {
    max-width: 640px;
}

.qto-landing h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.qto-landing-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.qto-landing .btn {
    margin-bottom: 24px;
}

.qto-landing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================
   QTO Help — Footer (3-column layout)
   ============================================ */
.help-footer {
    margin-top: 64px;
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.help-footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
}

/* .help-footer-brand — Column 1 wrapper (no styles; inherits grid placement) */

.help-footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.help-footer-cols {
    /* Column 2 — 3 nav sub-columns */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.help-footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.help-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-footer-col li {
    margin-bottom: 6px;
}

.help-footer-col a {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}

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

.help-footer-meta {
    /* Column 3 — copyright + version */
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.help-footer-meta p {
    margin: 0 0 4px 0;
}

.help-footer-version {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Responsive: collapse to stack on tablet */
@media (max-width: 900px) {
    .help-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .help-footer-meta {
        text-align: left;
    }
}

/* --- Responsive: max-width 640px --- */

@media (max-width: 640px) {

    /* Header nav → hamburger */

    .help-nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        z-index: 999;
    }

    .help-nav.open {
        display: block;
    }

    .help-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .help-nav a {
        font-size: 1rem;
        padding: 8px 0;
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    /* Sidebar → top accordion */

    .help-sidebar {
        position: static;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        background: transparent;
        padding: 0;
        margin-bottom: 24px;
        max-height: none;
        overflow: visible;
    }

    .help-sidebar nav {
        padding: 0;
    }

    .help-sidebar-group {
        margin-bottom: 0;
    }

    .help-sidebar-group-title {
        cursor: pointer;
        padding: 12px 0;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border);
        position: relative;
    }

    .help-sidebar-group-title::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--text-muted);
    }

    .help-sidebar-group.open .help-sidebar-group-title::after {
        content: '−';
    }

    .help-sidebar-group ul {
        display: none;
        padding: 8px 0 12px 0;
    }

    .help-sidebar-group.open ul {
        display: block;
    }

    /* Main content */

    .help-main {
        margin-left: 0;
    }

    .help-content {
        max-width: 100%;
        padding: 0 24px;
    }

    /* Breadcrumb */

    .help-breadcrumb {
        font-size: 0.78rem;
    }

    /* Typography adjustments */

    .help-content h1 {
        font-size: 1.6rem;
    }

    .help-content h2 {
        font-size: 1.2rem;
    }

    /* Landing */

    .qto-landing h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    /* Footer: nav cols become single column */

    .help-footer-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* === QTO Landing Page (2026-05-12) === */

/* --- Beta strip --- */

.qto-beta-strip {
    position: relative;
    width: 100%;
    background-color: rgba(88, 166, 255, 0.1);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text);
    z-index: 1001;
}

.qto-beta-strip a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.qto-beta-strip a:hover {
    color: var(--accent-hover);
}

/* --- Section blocks --- */

.qto-landing-section {
    padding: 80px 0;
}

.qto-landing-section--alt {
    background-color: var(--bg-card);
}

/* --- Hero --- */

.qto-landing-hero {
    padding-top: calc(var(--header-h) + 100px);
    padding-bottom: 100px;
    overflow: hidden;
    position: relative;
}

.qto-landing-hero-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.qto-landing-hero-content {
    flex: 1;
    max-width: 640px;
}

.qto-landing-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.qto-landing-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text);
}

.qto-landing-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

.qto-landing-hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.qto-landing-hero-cta-secondary {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.qto-landing-hero-cta-secondary:hover {
    color: var(--accent-hover);
}

.qto-landing-hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qto-geo-pattern {
    width: 320px;
    height: 320px;
    border: 1px solid var(--border);
    border-radius: 50%;
    position: relative;
    opacity: 0.6;
}

.qto-geo-pattern::before,
.qto-geo-pattern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
}

.qto-geo-pattern::before {
    width: 70%;
    height: 70%;
}

.qto-geo-pattern::after {
    width: 40%;
    height: 40%;
    border-color: var(--accent-2);
}

/* --- Why — 3 cards --- */

.qto-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qto-why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color var(--transition);
}

.qto-why-card:hover {
    border-color: var(--accent);
}

.qto-why-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.qto-why-card-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- How — workflow --- */

.qto-how-flow {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.qto-how-step {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition);
    text-decoration: none;
    color: var(--text);
    position: relative;
    display: block;
}

.qto-how-step:hover {
    border-color: var(--accent);
    color: var(--text);
}

.qto-how-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translate(50%, -50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 1;
}

.qto-how-step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.qto-how-step-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.qto-how-step-body {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* --- Tiers — table --- */

.qto-tiers-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--text-muted);
}

.qto-tiers-table {
    max-width: 760px;
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
}

.qto-tiers-table th,
.qto-tiers-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.qto-tiers-table th {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.qto-tiers-table th.qto-tiers-col-status,
.qto-tiers-table td.qto-tiers-col-status {
    text-align: center;
    width: 100px;
}

.qto-tier-yes {
    color: var(--accent-2);
    font-weight: 600;
}

.qto-tier-no {
    color: var(--text-muted);
}

.qto-tiers-footnote {
    max-width: 720px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* --- Tech tags row --- */

.qto-tech-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.qto-tech-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    font-weight: 600;
}

.qto-tech-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Final CTA --- */

.qto-final-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.qto-final-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.qto-final-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.qto-final-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* --- Responsive: 900px breakpoint --- */

@media (max-width: 900px) {
    .qto-landing-hero-inner {
        flex-direction: column;
        gap: 40px;
    }

    .qto-landing-hero-visual {
        display: none;
    }

    .qto-why-grid {
        grid-template-columns: 1fr;
    }

    .qto-how-flow {
        flex-direction: column;
    }

    .qto-how-step:not(:last-child)::after {
        content: '↓';
        top: auto;
        right: 50%;
        bottom: -16px;
        transform: translate(50%, 50%);
    }
}

/* --- Responsive: 640px breakpoint --- */

@media (max-width: 640px) {
    .qto-landing-section {
        padding: 64px 0;
    }

    .qto-landing-hero {
        padding-top: calc(var(--header-h) + 64px);
        padding-bottom: 64px;
    }

    .qto-landing-hero-visual {
        display: none;
    }

    .qto-aobf-form {
        max-width: 100%;
    }

    .qto-aobf-form button {
        align-self: stretch;
    }
}

/* === QTO Landing Page (2026-05-12 c) === */

/* --- AOBF section (Open BoQ Standard, [F]) --- */

.qto-aobf-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.qto-aobf-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.qto-aobf-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.qto-aobf-body {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
    max-width: 720px;
}

.qto-aobf-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    text-align: left;
}

.qto-aobf-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.qto-aobf-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.qto-aobf-card-body {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.qto-aobf-cta-label {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 500;
}

.qto-aobf-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.qto-aobf-form input,
.qto-aobf-form textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.qto-aobf-form input:focus,
.qto-aobf-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.qto-aobf-form textarea {
    min-height: 80px;
    resize: vertical;
}

.qto-aobf-form button {
    align-self: flex-end;
}

.qto-aobf-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

.qto-aobf-confirmation {
    font-size: 0.9rem;
    color: var(--accent-2);
    margin-top: 12px;
    text-align: center;
}

.qto-aobf-confirmation[hidden] {
    display: none;
}

/* AOBF: 3-card row collapses to single column on tablet/mobile. */
@media (max-width: 900px) {
    .qto-aobf-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Placeholder notice (pre-legal-review pages)
   ============================================ */
.placeholder-notice {
    background-color: rgba(255, 193, 7, 0.08);
    border-left: 4px solid #FFC107;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 24px 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}
.placeholder-notice strong {
    color: #FFC107;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}
.placeholder-notice p {
    margin: 0;
}

/* ============================================
   Forms — feedback / contact / legal requests (qto/)
   Visual aligned with .contact-form in style.css
   ============================================ */
.help-feedback-form {
    max-width: 540px;
    margin: 32px auto 0;
    padding: 28px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: left;
}

.help-feedback-form .form-row {
    margin-bottom: 18px;
}

.help-feedback-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.help-feedback-form .form-optional {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.help-feedback-form .form-required {
    font-weight: normal;
    color: #FFC107;
    font-size: 0.85rem;
}

.help-feedback-form input[type="email"],
.help-feedback-form input[type="text"],
.help-feedback-form textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.15s, background-color 0.15s;
}

.help-feedback-form textarea {
    resize: vertical;
    min-height: 140px;
}

.help-feedback-form input::placeholder,
.help-feedback-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.help-feedback-form input:focus,
.help-feedback-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.04);
}

.help-feedback-form .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.help-feedback-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile responsive — match contact-form breakpoint */
@media (max-width: 600px) {
    .help-feedback-form {
        padding: 20px;
        margin-top: 24px;
    }
    .help-feedback-form button[type="submit"] {
        padding: 12px 20px;
    }
}
