/* =========================================================================
   Equory single-page website — all custom styles
   Layout grid + utilities are provided by Bootstrap 5 (loaded from CDN).
   This file holds the project-specific theme, sections, and components.
   ========================================================================= */

:root {
    --eq-primary: #0f564b;
    --eq-primary-hover: #0a3f37;
    --eq-text: #1c1f1c;
    --eq-text-muted: #6b7565;
    --eq-bg: #ffffff;
    --eq-surface: rgba(0, 0, 0, .03);
    --eq-surface-strong: rgba(0, 0, 0, .05);
    --eq-border: rgba(0, 0, 0, .08);
    --eq-shadow: 0 6px 24px rgba(0, 0, 0, .08);

    --eq-hero-from: rgb(200, 220, 195);
    --eq-hero-to: rgb(220, 210, 190);
}

[data-bs-theme=dark] {
    --eq-text: #e7eae6;
    --eq-text-muted: #98a194;
    --eq-bg: #0a0c0a;
    --eq-surface: rgba(255, 255, 255, .04);
    --eq-surface-strong: rgba(255, 255, 255, .06);
    --eq-border: rgba(255, 255, 255, .1);
    --eq-shadow: 0 6px 24px rgba(0, 0, 0, .4);

    --eq-hero-from: rgb(12, 15, 12);
    --eq-hero-to: rgb(28, 25, 20);
}

/* ----- Base ----- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* keep anchored sections clear of the sticky navbar */
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
html, body {
    background: var(--eq-bg);
    color: var(--eq-text);
}
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
}
.text-muted {
    color: var(--eq-text-muted) !important;
}

/* Reusable accent helpers (replace inline style attributes) */
.eq-accent {
    color: var(--eq-primary);
}
.eq-accent-bg {
    background: var(--eq-primary);
    color: #fff;
}

/* ----- Site header ----- */
.eq-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: .75rem 0;
    border-bottom: 1px solid var(--eq-border);
    background: color-mix(in srgb, var(--eq-bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    transition: box-shadow .2s ease, background-color .2s ease;
}
.eq-navbar.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
[data-bs-theme=dark] .eq-navbar.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
@supports not (backdrop-filter: blur(1px)) {
    .eq-navbar { background: var(--eq-bg); }
}
.eq-navbar .logo {
    height: 40px;
    width: auto;
}

/* Brand wordmark next to the horse icon */
.eq-brand {
    text-decoration: none;
    color: var(--eq-text);
}
.eq-brand:hover {
    color: var(--eq-text);
}
.eq-brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1;
}

/* Inline section navigation (md+ screens only) */
.eq-nav-links a {
    color: var(--eq-text);
    font-weight: 500;
    text-decoration: none;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.eq-nav-links a:hover {
    color: var(--eq-primary);
    border-bottom-color: var(--eq-primary);
}

/* Mobile hamburger toggle — hidden on lg+ */
.eq-nav-toggle { display: inline-flex; }
@media (min-width: 992px) {
    .eq-nav-toggle { display: none; }
}

/* Mobile nav dropdown panel (only when toggled open, below lg) */
@media (max-width: 991.98px) {
    .eq-nav-links.is-open {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0 !important;
        padding: .5rem 1.25rem 1rem;
        background: var(--eq-bg);
        border-bottom: 1px solid var(--eq-border);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    }
    .eq-nav-links.is-open a {
        padding: .75rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--eq-border);
        white-space: normal;
    }
    .eq-nav-links.is-open a:last-child {
        border-bottom: none;
    }
}

/* ----- Back-to-top floating button ----- */
.eq-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--eq-primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.eq-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.eq-back-to-top:hover {
    background: var(--eq-primary-hover);
    color: #fff;
}
.eq-back-to-top:focus-visible {
    outline: 2px solid var(--eq-primary);
    outline-offset: 3px;
}
.eq-navbar .logo.dark { display: none; }
.eq-navbar .logo.light { display: inline; }
[data-bs-theme=dark] .eq-navbar .logo.dark { display: inline; }
[data-bs-theme=dark] .eq-navbar .logo.light { display: none; }

.eq-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--eq-surface);
    color: var(--eq-text);
    border: 0;
    cursor: pointer;
    transition: background .15s ease;
}
.eq-icon-btn:hover {
    background: var(--eq-surface-strong);
    color: var(--eq-text);
}

.eq-lang-menu {
    background: var(--eq-bg);
    border: 1px solid var(--eq-border);
    border-radius: 12px;
    box-shadow: var(--eq-shadow);
    padding: .35rem;
    min-width: 11rem;
}
.eq-lang-menu .dropdown-item {
    border-radius: 8px;
    color: var(--eq-text);
}
.eq-lang-menu .dropdown-item.active {
    background: var(--eq-primary);
    color: #fff;
}

/* ----- Sections ----- */
.section {
    padding: 4.5rem 0;
}
.first-section {
    padding-top: 2.5rem;
}
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

/* ----- Hero ----- */
.equory-hero {
    background:
        linear-gradient(130deg,
            color-mix(in srgb, var(--eq-hero-from) 80%, transparent) 0%,
            color-mix(in srgb, var(--eq-hero-to)   60%, transparent) 100%),
        url('/assets/sunset.png') center/cover no-repeat;
}

/* FAQ hero — taller so the montana photo has room to breathe */
.equory-hero-faq {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(130deg,
            color-mix(in srgb, var(--eq-hero-from) 80%, transparent) 0%,
            color-mix(in srgb, var(--eq-hero-to)   60%, transparent) 100%),
        url('/assets/montana.png') center/cover no-repeat;
}

.equory-hero-faq > .container {
    width: 100%;
}
.equory-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
    object-fit: cover;
}

/* ----- Screenshots ----- */
.equory-screenshot {
    max-width: 260px;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

/* =========================================================================
   Scrollytelling — "See Equory in Action"
   GSAP + ScrollTrigger drives the pin and the scrub-based crossfades.
   Inspired by Apple's product pages: oversized numerals, generous space,
   soft glow halo behind the pinned device.
   ========================================================================= */

.ss-section {
    position: relative;
    padding: 7rem 0;
    /* NOTE: do NOT set overflow:hidden here — it breaks ScrollTrigger.pin */
    background:
        radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--eq-primary) 8%, transparent) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--eq-primary) 10%, transparent) 0%, transparent 55%),
        var(--eq-bg);
}
@media (max-width: 768px) {
    .ss-section { padding: 4rem 0; }
}

/* ---- Section header ---- */
.ss-header {
    max-width: 760px;
    margin: 0 auto 4.5rem auto;
}
.ss-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--eq-primary);
    margin-bottom: 1rem;
}
.ss-heading {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 1rem 0;
    color: var(--eq-text);
}
.ss-subheading {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    color: var(--eq-text-muted);
    margin: 0;
}

/* ---- Layout ---- */
.ss-scrolly {
    position: relative;
}
.ss-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ss-step {
    color: var(--eq-text);
}
.ss-step-inner {
    max-width: 480px;
}

.ss-step-num {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--eq-primary) 0%, color-mix(in srgb, var(--eq-primary) 35%, transparent) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: .75rem;
}
.ss-step-title {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
    color: var(--eq-text);
}
.ss-step-text {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: var(--eq-text-muted);
    margin: 0;
}

.ss-step-img {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.5rem auto;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
}
[data-bs-theme=dark] .ss-step-img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

/* ===== Mobile (<992px): simple stacked steps, no pinning ===== */
@media (max-width: 991.98px) {
    .ss-visual-wrap {
        display: none; /* desktop-only pinned stack; mobile uses inline .ss-step-img */
    }
    .ss-step {
        text-align: center;
        padding: 1.5rem 0 3rem 0;
        max-width: 560px;
        margin: 0 auto;
    }
    .ss-step-inner {
        max-width: none;
    }
    .ss-step-num {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Desktop (>= 992px): two-column scrollytelling ===== */
@media (min-width: 992px) {
    .ss-scrolly {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 5rem;
        align-items: stretch;
    }
    .ss-step {
        min-height: 80vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 0;
    }

    /* Visual column — ScrollTrigger.pin handles staying in viewport */
    .ss-visual-wrap {
        position: relative;
        align-self: start;
    }
    .ss-visual {
        position: relative;
        width: 100%;
        height: 80vh;
        min-height: 540px;
        max-height: 760px;
    }

    /* Soft glow halo behind the active screenshot */
    .ss-glow {
        position: absolute;
        inset: 12% 18%;
        border-radius: 50%;
        background: radial-gradient(closest-side,
            color-mix(in srgb, var(--eq-primary) 35%, transparent) 0%,
            transparent 75%);
        filter: blur(48px);
        opacity: .6;
        pointer-events: none;
        z-index: 0;
    }
    [data-bs-theme=dark] .ss-glow {
        background: radial-gradient(closest-side,
            color-mix(in srgb, var(--eq-primary) 55%, transparent) 0%,
            transparent 75%);
        opacity: .5;
    }

    /* Stage uses a 1×1 CSS grid so all screenshots stack in the same cell */
    .ss-visual-stage {
        position: relative;
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        z-index: 1;
    }
    .ss-visual-img {
        grid-column: 1;
        grid-row: 1;
        max-width: 320px;
        max-height: 90%;
        width: auto;
        height: auto;
        border-radius: 36px;
        box-shadow:
            0 30px 60px -20px rgba(0, 0, 0, .25),
            0 18px 36px -18px rgba(0, 0, 0, .15);
        opacity: 0;
        transform: scale(.94);
        will-change: opacity, transform;
    }
    .ss-visual-img.is-active {
        opacity: 1;
        transform: scale(1);
    }
    [data-bs-theme=dark] .ss-visual-img {
        box-shadow:
            0 30px 60px -20px rgba(0, 0, 0, .65),
            0 18px 36px -18px rgba(0, 0, 0, .45);
    }

    /* Vertical progress: thin track + filled bar + counter */
    .ss-progress {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        z-index: 2;
    }
    .ss-progress-track {
        position: relative;
        width: 2px;
        height: 180px;
        border-radius: 2px;
        background: color-mix(in srgb, var(--eq-text-muted) 25%, transparent);
        overflow: hidden;
    }
    .ss-progress-fill {
        position: absolute;
        inset: 0;
        background: var(--eq-primary);
        border-radius: inherit;
        transform: scaleY(0);
        transform-origin: top;
    }
    .ss-progress-count {
        font-size: .8rem;
        font-weight: 600;
        letter-spacing: .12em;
        color: var(--eq-text-muted);
        font-variant-numeric: tabular-nums;
    }
    .ss-progress-current {
        color: var(--eq-primary);
    }
    .ss-progress-divider {
        margin: 0 .15rem;
        opacity: .5;
    }
}

/* When users prefer reduced motion, stop animating images / glow */
@media (prefers-reduced-motion: reduce) {
    .ss-visual-img {
        opacity: 1;
        transform: none;
    }
    .ss-glow { animation: none; opacity: .4; }
}
.equory-screenshot.hero-screenshot {
    max-width: 420px;
    max-height: 520px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}
[data-bs-theme=dark] .equory-screenshot {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
[data-bs-theme=dark] .equory-screenshot.hero-screenshot {
    box-shadow: none;
}

/* ----- Feature card ----- */
.feature-card {
    border-radius: 22px;
    padding: 1.75rem;
    height: 100%;
    background: var(--eq-surface);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eq-shadow);
}

/* ----- Premium badge ----- */
.premium-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .25em .65em;
    border-radius: 6px;
    background: var(--eq-primary);
    color: #fff;
}

/* ----- Pricing card ----- */
.pricing-card {
    border-radius: 22px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--eq-border);
    background: var(--eq-bg);
    transition: transform .2s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card.featured {
    border-color: var(--eq-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}
[data-bs-theme=dark] .pricing-card.featured {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}
.pricing-card .price {
    color: var(--eq-primary);
}

/* ----- Privacy section ----- */
.privacy-section {
    background: var(--eq-surface);
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}
.privacy-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .5rem;
}
.privacy-list .bi-check-circle-fill {
    color: var(--eq-primary);
    margin-top: .25rem;
}

/* ----- How-it-works steps ----- */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--eq-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ----- Why-Equory icon tile ----- */
.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--eq-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ----- CTA section ----- */
.cta-section {
    background: var(--eq-primary);
    color: #fff;
}
.cta-section h2,
.cta-section p {
    color: #fff;
}
.cta-section .btn {
    background: #fff;
    color: var(--eq-primary);
    font-weight: 600;
    border: 0;
}
.cta-section .btn:hover {
    background: #f1f3ee;
    color: var(--eq-primary-hover);
}

/* ----- Buttons ----- */
.btn-dark {
    background: #111;
    border-color: #111;
}
.btn-dark:hover {
    background: #000;
    border-color: #000;
}
.btn-white-outline {
    background: transparent;
    color: var(--eq-text);
    border: 1px solid var(--eq-border);
}
.btn-white-outline:hover {
    background: var(--eq-surface-strong);
    color: var(--eq-text);
}
[data-bs-theme=dark] .btn-dark {
    background: #f5f5f5;
    border-color: #f5f5f5;
    color: #111;
}
[data-bs-theme=dark] .btn-dark:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* ----- Footer ----- */
.eq-footer {
    border-top: 1px solid var(--eq-border);
    padding: 2rem 0;
    background: var(--eq-bg);
    color: var(--eq-text-muted);
    font-size: .9rem;
}
.eq-footer a {
    color: var(--eq-text-muted);
    text-decoration: none;
}
.eq-footer a:hover {
    color: var(--eq-text);
}

/* ----- Feedback page ----- */
.feedback-section {
    padding-top: 5rem;
}
@media (max-width: 768px) {
    .feedback-section { padding-top: 3rem; }
}

/* Bordered card that wraps the form */
.feedback-card {
    border: 1px solid var(--eq-border);
    border-radius: 22px;
    background: var(--eq-bg);
    padding: 2.5rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
@media (max-width: 768px) {
    .feedback-card { padding: 1.5rem; }
}
[data-bs-theme=dark] .feedback-card {
    background: var(--eq-surface);
}

.feedback-form .form-label {
    font-weight: 600;
    color: var(--eq-text);
}
.feedback-form .form-control {
    background: var(--eq-bg);
    color: var(--eq-text);
    border: 1px solid var(--eq-border);
    border-radius: 12px;
    padding: .75rem 1rem;
}
.feedback-form .form-control:focus {
    border-color: var(--eq-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--eq-primary) 20%, transparent);
}
.feedback-form .form-control.is-invalid {
    border-color: #d2425a;
}
.feedback-form textarea.form-control {
    resize: vertical;
    min-height: 9rem;
}
.feedback-form .req {
    color: var(--eq-primary);
    margin-left: .15rem;
}

/* Type radio cards */
.fb-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
@media (min-width: 576px) {
    .fb-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fb-type-option {
    display: block;
    cursor: pointer;
    margin: 0;
}
.fb-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fb-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    padding: 1rem .75rem;
    border-radius: 14px;
    border: 1px solid var(--eq-border);
    background: var(--eq-bg);
    color: var(--eq-text);
    font-weight: 500;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
    min-height: 5.5rem;
}
.fb-type-card i {
    font-size: 1.5rem;
    color: var(--eq-primary);
}
.fb-type-option:hover .fb-type-card {
    border-color: var(--eq-primary);
    transform: translateY(-2px);
}
.fb-type-option input[type="radio"]:checked + .fb-type-card {
    border-color: var(--eq-primary);
    background: color-mix(in srgb, var(--eq-primary) 10%, var(--eq-bg));
    box-shadow: 0 0 0 1px var(--eq-primary) inset;
}
.fb-type-option input[type="radio"]:focus-visible + .fb-type-card {
    outline: 2px solid var(--eq-primary);
    outline-offset: 2px;
}

/* Honeypot — visually hidden but still accessible to bots filling all fields */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alerts */
.feedback-alert {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--eq-border);
    background: var(--eq-surface);
    color: var(--eq-text);
    line-height: 1.5;
}
.feedback-alert--success {
    border-color: var(--eq-primary);
    background: color-mix(in srgb, var(--eq-primary) 12%, var(--eq-bg));
}
.feedback-alert--success i { color: var(--eq-primary); }
.feedback-alert--error {
    border-color: #d2425a;
    background: color-mix(in srgb, #d2425a 10%, var(--eq-bg));
}
.feedback-alert--error i { color: #d2425a; }

/* ----- Legal pages (privacy / terms / gdpr) ----- */
.legal-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.legal-content {
    color: var(--eq-text);
}
.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    color: var(--eq-text);
}
.legal-content p,
.legal-content li {
    color: var(--eq-text);
    line-height: 1.7;
}
.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.legal-content a {
    color: var(--eq-primary);
    text-decoration: underline;
}
.legal-content a:hover {
    color: var(--eq-primary-hover);
}

/* ----- FAQ page (accordion) ----- */
.faq-section {
    padding-top: 2rem;
}
.eq-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: var(--eq-border);
    --bs-accordion-border-radius: 14px;
    --bs-accordion-inner-border-radius: 14px;
    --bs-accordion-color: var(--eq-text);
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--eq-text);
    --bs-accordion-btn-color: var(--eq-text);
    --bs-accordion-btn-bg: var(--eq-surface);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--eq-primary) 25%, transparent);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.eq-accordion .accordion-item {
    border: 1px solid var(--eq-border);
    border-radius: 14px;
    background: var(--eq-surface);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.eq-accordion .accordion-item:hover {
    border-color: color-mix(in srgb, var(--eq-primary) 40%, var(--eq-border));
}
.eq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--eq-primary);
    box-shadow: var(--eq-shadow);
}
.eq-accordion .accordion-header {
    margin: 0;
}
.eq-accordion .accordion-button {
    background: transparent;
    color: var(--eq-text);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.1rem 1.25rem;
    border: 0;
    box-shadow: none;
    line-height: 1.4;
}
.eq-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--eq-primary);
    box-shadow: none;
}
.eq-accordion .accordion-button:focus {
    border: 0;
    box-shadow: var(--bs-accordion-btn-focus-box-shadow);
}
.eq-accordion .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f564b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8 3v10'/%3E%3C/svg%3E");
    background-size: 1.25rem;
    transition: transform .25s ease;
}
.eq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f564b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 8h10'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}
[data-bs-theme="dark"] .eq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e7eae6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8 3v10'/%3E%3C/svg%3E");
}
[data-bs-theme="dark"] .eq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e7eae6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 8h10'/%3E%3C/svg%3E");
}
.eq-accordion .accordion-body {
    color: var(--eq-text);
    padding: 1.1rem 1.25rem 1.5rem;
    line-height: 1.65;
}
.eq-accordion .accordion-body a {
    color: var(--eq-primary);
    text-decoration: underline;
}
.eq-accordion .accordion-body a:hover {
    color: var(--eq-primary-hover);
}
.eq-accordion .accordion-body em {
    font-style: normal;
    background: var(--eq-surface-strong);
    padding: .1rem .4rem;
    border-radius: 6px;
    font-size: .92em;
    color: var(--eq-text);
}

.faq-more {
    border-top: 1px solid var(--eq-border);
    padding-top: 2.5rem;
}

/* ----- How To page ----- */
.eq-howto-card {
    background: var(--eq-surface);
    border: 1px solid var(--eq-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.eq-howto-card h2 {
    color: var(--eq-text);
}

.eq-howto-card p {
    color: var(--eq-text-muted);
}

.eq-howto-video-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    max-width: 280px;
    margin-inline: auto;
}

.eq-howto-video {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    color-scheme: light;
}

/* Best-effort: light media-controls panel on supporting browsers (Chromium/Safari) */
.eq-howto-video::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.92);
}

/* ----- No-JS fallback: reveal data-aos elements when JavaScript is disabled,
       so the page is still readable for crawlers and JS-off users. AOS itself
       handles the animation states when JS is on. ----- */
.no-js [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}
