/* ============================================================
   OTOA — One Task + One Agent Product Detail Page
   Extends base design system from style.css
   ============================================================ */

/* --- Product Hero --- */
.hero--product .hero__inner {
    grid-template-columns: 1fr 0.45fr;
    gap: var(--space-3xl);
    align-items: start;
}

.hero--product .hero__text {
    max-width: none;
}

/* Italic Display Rule: hero headline is always Crimson Pro italic */
.hero--product .hero__headline {
    font-style: italic;
}

/* Hero body paragraphs */
.hero--product .hero__body p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-light-muted);
    margin-bottom: var(--space-md);
    max-width: 60ch;
}

.hero--product .hero__body p:last-of-type {
    margin-bottom: 0;
}

/* Hyfin checkout embed, positioned like the home page visual */
.hero__checkout {
    background-color: var(--color-dark-mid);
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
    padding: var(--space-lg);
    position: sticky;
    top: calc(var(--space-md) + 32px); /* below nav */
}

.hero__checkout-placeholder {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    line-height: var(--leading-normal);
    opacity: 0.7;
}

.hero__checkout iframe {
    width: 100%;
    min-width: 400px;
    min-height: 500px;
    border: 0;
}

/* --- OTOA Section System --- */
.otoa-section {
    padding: var(--space-5xl) 0;
}

.otoa-section--light {
    background-color: var(--color-light);
}

.otoa-section--dark {
    background-color: var(--color-dark);
}

.otoa-section--halved-top {
    padding-top: var(--space-3xl);
}

.otoa-section--halved-bottom {
    padding-bottom: var(--space-3xl);
}

/* Dark halved-bottom gets a border for the same-bg transition */
.otoa-section--dark.otoa-section--halved-bottom {
    border-bottom: 1px solid var(--color-border-dark);
}

.otoa-section__inner {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.otoa-section__inner--wide {
    max-width: 820px;
}

/* --- Crosshead --- */
.otoa-section__crosshead {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-lg);
    text-wrap: balance;
}

.otoa-section--dark .otoa-section__crosshead {
    color: var(--color-text-light);
}

.otoa-section--light .otoa-section__crosshead {
    color: var(--color-text-dark);
}

/* --- Body --- */
.otoa-section__body p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.otoa-section__body p:last-of-type {
    margin-bottom: 0;
}

.otoa-section__body p strong {
    font-weight: 600;
}

.otoa-section--dark .otoa-section__body p {
    color: var(--color-text-light-muted);
}

.otoa-section--dark .otoa-section__body p strong {
    color: var(--color-text-light);
}

.otoa-section--light .otoa-section__body p {
    color: var(--color-text-dark);
}

/* --- Testimonial --- */
.otoa-section__testimonial {
    margin-top: var(--space-xl);
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-accent);
}

.otoa-section__testimonial + .otoa-section__testimonial {
    margin-top: var(--space-lg);
}

.otoa-section__testimonial-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-sm);
}

.otoa-section__testimonial-text:last-of-type {
    margin-bottom: 0;
}

.otoa-section__testimonial-attr {
    display: block;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    margin-top: var(--space-sm);
}

.otoa-section__testimonial-aside {
    font-size: var(--text-sm);
    font-style: normal;
    line-height: var(--leading-normal);
    margin-top: var(--space-md);
}

.otoa-section--dark .otoa-section__testimonial-text {
    color: var(--color-text-light);
}

.otoa-section--dark .otoa-section__testimonial-attr {
    color: var(--color-text-light-muted);
}

.otoa-section--dark .otoa-section__testimonial-aside {
    color: var(--color-text-light-muted);
}

.otoa-section--light .otoa-section__testimonial-text {
    color: var(--color-text-dark);
}

.otoa-section--light .otoa-section__testimonial-attr {
    color: var(--color-text-muted);
}

.otoa-section--light .otoa-section__testimonial-aside {
    color: var(--color-text-muted);
}

/* --- Stat callout --- */
.otoa-section__stat {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: var(--leading-snug);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.otoa-section--dark .otoa-section__stat {
    color: var(--color-text-light);
}

.otoa-section--light .otoa-section__stat {
    color: var(--color-text-dark);
}

/* --- CTA within sections --- */
.otoa-section__cta {
    margin-top: var(--space-xl);
}

.otoa-section__cta-note {
    font-size: var(--text-sm);
    margin-top: var(--space-md);
}

.otoa-section--dark .otoa-section__cta-note {
    color: var(--color-text-light-muted);
}

.otoa-section--light .otoa-section__cta-note {
    color: var(--color-text-muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__leadin {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xl);
}

.faq__pairs {
    margin-bottom: var(--space-xl);
}

.faq__pair {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
}

.faq__pair:last-child {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--leading-snug);
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.faq__answer {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-dark);
    max-width: var(--max-width-text);
}

.faq__answer p {
    margin-bottom: var(--space-md);
}

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

.faq__closing {
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: var(--leading-snug);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xl);
}

/* ============================================================
   RESPONSIVE — OTOA additions
   ============================================================ */
@media (max-width: 960px) {
    .hero--product .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero__checkout {
        position: static;
        max-width: 480px;
    }

    .otoa-section__inner--wide {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .otoa-section__crosshead {
        font-size: var(--text-2xl);
    }

    .hero__checkout {
        max-width: 100%;
    }
}
