/* ─────────────────────────────────────────────────────────
   FAQ page
   Long-form reading page, so the priorities here are measure
   (~68ch), generous line-height, and question headings that
   are scannable without being shouty. Tokens come from
   landing.css; only the page-specific pieces live here.
   ───────────────────────────────────────────────────────── */

.faq-body {
    background: var(--ocean-deep);
    color: var(--text-light);
    font-family: var(--font-body);
}

[data-theme="light"] .faq-body {
    background: #f7fbfc;
    color: #14232b;
}

/* landing.css pins .navbar to the viewport; on a scrolling article that
   just eats vertical space, so let it sit in the flow instead. */
.faq-navbar {
    position: relative;
}

.faq-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

/* ── Hero ───────────────────────────────────────────────── */

.faq-hero {
    text-align: center;
    padding: 24px 0 48px;
}

.faq-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin: 16px 0 18px;
    background: var(--gradient-coral);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-lede {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto;
}

[data-theme="light"] .faq-lede {
    color: #4a6a78;
}

/* ── Sections ───────────────────────────────────────────── */

.faq-section {
    margin-bottom: 56px;
}

.faq-section > h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--ocean-foam);
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(125, 211, 232, 0.22);
}

[data-theme="light"] .faq-section > h2 {
    color: var(--ocean-medium);
    border-bottom-color: rgba(19, 78, 111, 0.18);
}

/* ── One question ───────────────────────────────────────── */

.faq-item {
    padding: 26px 0;
    border-bottom: 1px solid rgba(140, 180, 197, 0.13);
}

.faq-item:last-child {
    border-bottom: none;
}

[data-theme="light"] .faq-item {
    border-bottom-color: rgba(20, 35, 43, 0.09);
}

.faq-item h3 {
    font-size: 1.19rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--text-white);
}

[data-theme="light"] .faq-item h3 {
    color: #0d1b22;
}

.faq-item p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-light);
    max-width: 68ch;
    margin: 0 0 12px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

[data-theme="light"] .faq-item p {
    color: #29414d;
}

/* The lead sentence of every answer is wrapped in <strong> so the direct
   answer is legible before the explanation — bump it just enough to read as
   the answer without turning the page into a wall of bold. */
.faq-item p > strong:first-child {
    color: var(--text-white);
    font-weight: 600;
}

[data-theme="light"] .faq-item p > strong:first-child {
    color: #0d1b22;
}

.faq-item ul {
    margin: 0 0 14px;
    padding-left: 22px;
    max-width: 68ch;
}

.faq-item li {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 9px;
    color: var(--text-light);
}

[data-theme="light"] .faq-item li {
    color: #29414d;
}

.faq-item li strong {
    color: var(--ocean-foam);
}

[data-theme="light"] .faq-item li strong {
    color: var(--ocean-medium);
}

.faq-item a,
.faq-lede a {
    color: var(--coral-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 163, 196, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-item a:hover {
    color: var(--coral-pink);
    border-bottom-color: var(--coral-pink);
}

[data-theme="light"] .faq-item a {
    color: #c2185b;
    border-bottom-color: rgba(194, 24, 91, 0.35);
}

/* ── Closing call to action ─────────────────────────────── */

.faq-cta {
    text-align: center;
    padding: 40px 28px;
    border-radius: 20px;
    background: rgba(19, 78, 111, 0.34);
    border: 1px solid rgba(125, 211, 232, 0.2);
}

[data-theme="light"] .faq-cta {
    background: rgba(125, 211, 232, 0.14);
    border-color: rgba(19, 78, 111, 0.14);
}

.faq-cta h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 0 10px;
    color: var(--text-white);
}

[data-theme="light"] .faq-cta h2 {
    color: #0d1b22;
}

.faq-cta > p {
    color: var(--text-muted);
    margin: 0 0 24px;
}

.faq-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.faq-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    color: var(--text-white);
    background: rgba(125, 211, 232, 0.14);
    border: 1px solid rgba(125, 211, 232, 0.34);
    transition: transform 0.2s ease, background 0.2s ease;
}

.faq-btn:hover {
    transform: translateY(-2px);
    background: rgba(125, 211, 232, 0.24);
}

.faq-btn-primary {
    background: var(--gradient-coral);
    border-color: transparent;
}

.faq-btn-primary:hover {
    background: var(--gradient-coral);
    filter: brightness(1.08);
}

[data-theme="light"] .faq-btn {
    color: #0d1b22;
    background: rgba(19, 78, 111, 0.08);
    border-color: rgba(19, 78, 111, 0.2);
}

[data-theme="light"] .faq-btn-primary {
    color: #fff;
    background: var(--gradient-coral);
    border-color: transparent;
}

/* ── Footer ─────────────────────────────────────────────── */

.faq-footer {
    text-align: center;
    padding: 32px 24px 48px;
    color: var(--text-subtle);
    font-size: 0.9rem;
}

.faq-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.faq-footer a:hover {
    color: var(--ocean-foam);
}

[data-theme="light"] .faq-footer {
    color: #6b8794;
}

[data-theme="light"] .faq-footer a {
    color: #4a6a78;
}

@media (max-width: 600px) {
    .faq-page {
        padding: 32px 18px 72px;
    }

    .faq-section {
        margin-bottom: 42px;
    }

    .faq-cta {
        padding: 32px 20px;
    }
}
