/* ================================================================
   sections.css — Premium embedded section styles
   DESIGN RULES:
   - No dark backgrounds (feels "vibe-coded"). Stay warm and light.
   - No pill/badge micro-copies. Plain text hierarchy only.
   - Editorial feel: generous whitespace, clean typography.
   ================================================================ */

/* ── Shared base ─────────────────────────────────────────────────── */
.embedded-section {
    width: 100%;
    padding: 52px 44px;
    border-radius: 20px;
    margin: 4px 0;
    box-sizing: border-box;
}

.sec-eyebrow {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 18px;
}

.sec-headline {
    font-family: var(--ff-head);
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.04em;
    color: var(--t1);
    margin: 0 0 18px;
}

.sec-lead {
    font-family: var(--ff-body);
    font-size: 14px;
    line-height: 1.75;
    color: var(--t2);
    max-width: 540px;
    margin: 0 0 32px;
}

.sec-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sec-body p {
    font-family: var(--ff-body);
    font-size: 14px;
    line-height: 1.75;
    color: var(--t2);
    margin: 0;
}

.sec-body p strong {
    color: var(--t1);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   PAIN SECTION
   ═══════════════════════════════════════════════════════════════════ */
.sec-pain {
    background: var(--card);
    border: 1px solid var(--border);
}

.sec-pain-inner {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 8px;
}

.sec-pain-right {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.sec-pain-point {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}

.sec-pain-point:last-child {
    border-bottom: none;
}

.sec-pain-point:hover {
    background: var(--surface);
}

.sec-pain-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--t2);
    transition: background .2s, color .2s, border-color .2s;
}

.sec-pain-point:hover .sec-pain-icon {
    background: var(--t1);
    color: #fff;
    border-color: var(--t1);
}

.sec-pain-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    line-height: 1.3;
}

.sec-pain-sub {
    font-size: 11.5px;
    color: var(--t3);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   PROCESS SECTION — 2×2 grid, no pills
   ═══════════════════════════════════════════════════════════════════ */
.sec-process {
    background: var(--bg);
    border: 1px solid var(--border);
}

/* ─── Timeline layout ──────────────────────────────────────────── */
.sec-timeline-wrap {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0 20px;
    position: relative;
}

.sec-timeline-rail {
    position: relative;
}

.sec-timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* top is set dynamically by JS to align with first step head */
    top: 0;
    bottom: -10px;
    width: 1px;
    background: repeating-linear-gradient(to bottom,
            var(--border-md) 0px,
            var(--border-md) 4px,
            transparent 4px,
            transparent 9px);
}

.sec-timeline-ball {
    position: absolute;
    left: 50%;
    /* top is set dynamically by JS */
    top: 0;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--t1);
    z-index: 2;
    transition: top 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    /* crisp ring: white gap + faint outer shadow */
    box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4px rgba(0, 0, 0, 0.1);
    will-change: top;
}

.sec-steps {
    display: flex;
    flex-direction: column;
}

.sec-step {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sec-step:first-child {
    padding-top: 6px;
}

.sec-step:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}

/* ─── Result block — replaces tiny end label ──────────────────── */
.sec-timeline-result {
    padding: 28px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.sec-result-headline {
    font-family: var(--ff-head);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.sec-result-outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.sec-result-outcomes span {
    font-family: var(--ff-body);
    font-size: 12px;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sec-result-outcomes span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--t3);
    flex-shrink: 0;
}

.sec-step-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.sec-step-num {
    font-family: var(--ff-head);
    font-size: 11px;
    font-weight: 700;
    color: var(--t3);
    letter-spacing: .04em;
}

/* Timeline as plain text — NO pill/badge styling */
.sec-step-time {
    font-family: var(--ff-body);
    font-size: 11px;
    color: var(--t3);
    font-weight: 400;
}

.sec-step-title {
    font-family: var(--ff-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 8px;
    letter-spacing: -.01em;
}

.sec-step-desc {
    font-family: var(--ff-body);
    font-size: 13px;
    line-height: 1.7;
    color: var(--t2);
    margin: 0;
    max-width: 520px;
}


/* ═══════════════════════════════════════════════════════════════════
   WHY US SECTION — light, proper testimonial
   ═══════════════════════════════════════════════════════════════════ */
.sec-whyus {
    background: var(--card);
    border: 1px solid var(--border);
}

.sec-whyus-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
    margin-bottom: 28px;
}

.sec-whyus-left {
    padding-right: 4px;
}

.sec-whyus .sec-lead {
    margin-bottom: 0;
}

.sec-features {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.sec-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--ff-body);
    font-size: 13.5px;
    line-height: 1.5;
}

.sec-feature:first-child {
    padding-top: 0;
}

.sec-feature:last-child {
    border-bottom: none;
}

.sec-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--t2);
}

.sec-feature-label {
    color: var(--t1);
    font-weight: 600;
}

.sec-feature-desc {
    color: var(--t3);
    font-size: 12.5px;
}

/* Testimonial quote — proper card with avatar */
.sec-quote {
    margin: 0;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.sec-quote p {
    font-family: var(--ff-body);
    font-size: 14px;
    line-height: 1.72;
    color: var(--t1);
    font-style: italic;
    margin: 0 0 16px;
}

.sec-quote-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-quote-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg);
}

.sec-quote cite {
    font-family: var(--ff-body);
    font-size: 11.5px;
    color: var(--t3);
    font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════════
   NUMBERS — editorial, no container box
   ═══════════════════════════════════════════════════════════════════ */
.sec-numbers {
    background: var(--surface);
    border: 1px solid var(--border);
}

.sec-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.sec-stat {
    padding: 28px 0 12px;
    padding-right: 28px;
    border-right: 1px solid var(--border);
}

.sec-stat:last-child {
    border-right: none;
    padding-left: 28px;
    padding-right: 0;
}

.sec-stat:nth-child(2) {
    padding-left: 28px;
}

.sec-stat-value {
    font-family: var(--ff-head);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: var(--t1);
    line-height: 1;
    letter-spacing: -.05em;
    margin-bottom: 10px;
}

.sec-stat-label {
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 3px;
}

.sec-stat-sub {
    font-family: var(--ff-body);
    font-size: 11.5px;
    color: var(--t3);
}

/* ═══════════════════════════════════════════════════════════════════
   CTA SECTION — light, with avatar in button
   ═══════════════════════════════════════════════════════════════════ */
.sec-cta {
    background: var(--card);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sec-cta .sec-eyebrow {
    margin-bottom: 14px;
}

.sec-cta-headline {
    font-family: var(--ff-head);
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 700;
    color: var(--t1);
    margin: 0 0 10px;
    line-height: 1.18;
    letter-spacing: -.04em;
}

.sec-cta-sub {
    font-family: var(--ff-body);
    font-size: 12.5px;
    color: var(--t3);
    margin: 0 0 20px;
}

.sec-cta-lead {
    text-align: center;
    color: var(--t2);
    margin-bottom: 28px;
    max-width: 420px;
}

.sec-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--t1);
    color: #fff;
    font-family: var(--ff-body);
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
    margin-bottom: 16px;
    box-shadow: var(--shadow-btn);
}

.sec-cta-btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.sec-cta-btn:active {
    transform: none;
    box-shadow: var(--shadow-btn);
}

.sec-cta-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, .3);
    flex-shrink: 0;
}

.sec-cta-note {
    font-family: var(--ff-body);
    font-size: 11.5px;
    color: var(--t3);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO TESTIMONIAL SECTION
   ═══════════════════════════════════════════════════════════════════ */
.sec-video {
    background: #111;
    border: none;
    padding: 36px 40px;
}

.sec-video .sec-eyebrow {
    color: rgba(255, 255, 255, .35);
}

.sec-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.sec-video-header .sec-eyebrow {
    margin-bottom: 0;
}

.sec-video-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
    /* allow shrink */
}

.sec-video-name {
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.sec-video-role {
    font-family: var(--ff-body);
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.sec-video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.sec-video-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity .5s ease;
}

.sec-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sec-video-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

.sec-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.sec-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, transparent 50%);
    transition: background .3s;
    gap: 8px;
    /* ensures they don't crash into each other */
}

.sec-video-mute-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .75);
    font-family: var(--ff-body);
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .15);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.sec-video-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #111;
    font-family: var(--ff-body);
    font-size: 11.5px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .2s var(--ease), box-shadow .2s;
}

.sec-video-wrapper:hover .sec-video-watch-btn {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.sec-video-caption {
    font-family: var(--ff-body);
    font-size: 12.5px;
    font-style: italic;
    color: rgba(255, 255, 255, .4);
    margin: 12px 0 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════════ */
.sec-faq {
    background: var(--card);
    border: 1px solid var(--border);
}

.sec-faq .sec-headline {
    margin-bottom: 28px;
}

.sec-faq-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.sec-faq-item {
    border-bottom: 1px solid var(--border);
}

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

.sec-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--ff-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t1);
    transition: background .2s;
    line-height: 1.4;
}

.sec-faq-q:hover {
    background: var(--surface);
}

.sec-faq-q[aria-expanded="true"] {
    background: var(--surface);
}

.sec-faq-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--t2);
    transition: transform .3s var(--ease), background .2s, border-color .2s;
}

.sec-faq-q[aria-expanded="true"] .sec-faq-icon {
    transform: rotate(45deg);
    background: var(--t1);
    border-color: var(--t1);
    color: #fff;
}

.sec-faq-a {
    overflow: hidden;
    height: 0;
    transition: height .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sec-faq-a-inner {
    padding: 2px 22px 22px;
}

.sec-faq-a p {
    font-family: var(--ff-body);
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--t2);
    margin: 0;
}

.sec-faq-footer {
    margin: 24px 0 0;
    font-family: var(--ff-body);
    font-size: 12.5px;
    color: var(--t3);
    text-align: center;
}

.sec-faq-footer a {
    color: var(--t1);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--border-md);
    padding-bottom: 1px;
    transition: border-color .2s;
}

.sec-faq-footer a:hover {
    border-color: var(--t1);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE ≤ 768px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .embedded-section {
        padding: 36px 22px;
        border-radius: 16px;
    }

    /* Pain: single column */
    .sec-pain-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Process: single column on mobile */
    .sec-steps {
        grid-template-columns: 1fr;
    }

    /* ensure timeline rail stays positioned correctly on mobile */
    .sec-timeline-rail {
        position: relative;
        flex-shrink: 0;
    }

    .sec-timeline-ball {
        box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(0, 0, 0, 0.1);
    }

    .sec-result-outcomes {
        gap: 6px 14px;
    }

    /* Why Us: single column */
    .sec-whyus-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Numbers: 1 column on very narrow */
    .sec-stats-grid {
        grid-template-columns: 1fr;
    }

    .sec-stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 20px 0;
        padding-left: 0;
    }

    .sec-stat:last-child {
        border-bottom: none;
    }

    .sec-stat:nth-child(2) {
        padding-left: 0;
    }

    /* Video: fix overlay overflow at ~355px */
    .sec-video {
        padding: 28px 22px;
    }

    .sec-video-overlay {
        padding: 10px 12px;
        align-items: flex-end;
    }

    /* At very narrow widths, hide the muted badge to prevent crash */
    @media (max-width: 400px) {
        .sec-video-mute-badge {
            display: none;
        }

        .sec-video-overlay {
            justify-content: flex-end;
        }
    }

    .sec-video-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sec-video-meta {
        align-items: flex-start;
    }

    .sec-video-name,
    .sec-video-role {
        white-space: normal;
    }
}