/* ============================================================================
   Audio Showcase + Vertical Landing Pages
   Loaded ONLY on pages that use the audio-picker or per-vertical hero.
   Zero dependencies. Extends main.css tokens (--ember, --ink, --text, etc.)
   ========================================================================== */

/* ── The showcase grid on the homepage ──────────────────────────────────── */
.showcase {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: var(--space-6, 2rem);
    align-items: start;
    margin-top: 1.5rem;
}
@media (max-width: 860px) {
    .showcase { grid-template-columns: 1fr; }
}

.showcase__picker {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.showcase__tile {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .16s, transform .16s, box-shadow .16s;
    text-align: left;
    color: inherit;
    font: inherit;
    width: 100%;
}
.showcase__tile:hover {
    border-color: rgba(234, 88, 12, .35);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.showcase__tile.is-active {
    border-color: var(--ember);
    background: rgba(234, 88, 12, .04);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .10);
}
.showcase__tile-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.showcase__tile-body { flex: 1; min-width: 0; }
.showcase__tile-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 2px;
}
.showcase__tile-subtitle {
    font-size: .78rem;
    color: var(--text-dim);
    line-height: 1.35;
}
.showcase__tile-duration {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--text-faint);
    padding: 2px 7px;
    background: var(--panel-2);
    border-radius: 999px;
    flex-shrink: 0;
}

/* ── The player pane ────────────────────────────────────────────────────── */
.showcase__player {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.player__kicker {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--warm);
    margin-bottom: .5rem;
}
.player__headline {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 1rem;
    text-wrap: balance;
}

/* Play bar */
.player__bar {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    background: var(--panel-2);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.player__play {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ember);
    color: #fff;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background .16s, transform .1s;
}
.player__play:hover { background: var(--ember-600); transform: scale(1.04); }
.player__play:focus-visible { outline: 3px solid rgba(234, 88, 12, .35); outline-offset: 2px; }
.player__play svg { width: 20px; height: 20px; fill: currentColor; }

.player__progress {
    flex: 1;
    height: 6px;
    background: rgba(28, 25, 23, .09);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.player__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ember), var(--flame));
    transition: width .12s linear;
}
.player__time {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--text-dim);
    white-space: nowrap;
    min-width: 74px;
    text-align: right;
}

/* Outcome chips */
.player__outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}
.player__outcome {
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(21, 128, 61, .08);
    color: var(--go);
    border: 1px solid rgba(21, 128, 61, .25);
    border-radius: 999px;
}

/* Transcript */
.player__transcript {
    background: var(--panel-2);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    max-height: 240px;
    overflow-y: auto;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    position: relative;
    transition: filter .35s ease;
}
/* Pre-play: the transcript sits in the DOM (SEO wins) but is blurred so the
   "hear-it-first" magic isn't given away as prose. The play button is the
   reveal. Once the visitor has pressed play on this player, the class is
   removed and the transcript reads normally forever after. */
.player__transcript.is-pre-play {
    filter: blur(3.5px);
    pointer-events: none;
    user-select: none;
}
.player__transcript.is-pre-play::after {
    content: "▶ Press play to hear the call";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 60%);
    color: var(--ember-600);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
    filter: none;
}
.transcript__turn {
    margin-bottom: .55rem;
    opacity: .55;
    transition: opacity .2s;
}
.transcript__turn.is-active { opacity: 1; }
.transcript__turn:last-child { margin-bottom: 0; }
.transcript__speaker {
    font-weight: 700;
    color: var(--warm);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-right: .35rem;
}
.transcript__text { }

/* CTA row */
.player__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: auto;
}
.player__cta .btn { flex: 1; min-width: 200px; text-align: center; justify-content: center; }

/* ── Per-vertical hero (on /for/{slug}/ pages) ──────────────────────────── */
.v-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}
.v-hero__kicker {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--warm);
    margin-bottom: .75rem;
}
.v-hero__title {
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: .85rem;
    text-wrap: balance;
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
}
.v-hero__sub {
    font-size: 1.08rem;
    color: var(--text-dim);
    max-width: 60ch;
    margin: 0 auto 1.75rem;
    line-height: 1.55;
}
.v-hero__cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}
.v-hero__player {
    max-width: 720px;
    margin: 0 auto;
    background: var(--panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

/* ── The "pain / revenue-loss" strip ───────────────────────────────────── */
.v-pain {
    background: linear-gradient(180deg, rgba(234, 88, 12, .05), rgba(225, 29, 72, .04));
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.v-pain__stat {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--ember-600);
    line-height: 1;
    margin-bottom: .5rem;
}
.v-pain__label { font-size: 1.05rem; color: var(--text-soft); max-width: 40ch; margin: 0 auto; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.v-faq { display: flex; flex-direction: column; gap: .5rem; }
.v-faq__item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
}
.v-faq__item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.v-faq__item summary::-webkit-details-marker { display: none; }
.v-faq__item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--ember);
    transition: transform .16s;
    line-height: 1;
}
.v-faq__item[open] summary::after { transform: rotate(45deg); }
.v-faq__body { padding: 0 1.25rem 1.15rem; color: var(--text-dim); line-height: 1.6; }

/* ── Utility ─────────────────────────────────────────────────────────── */
.v-cross {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.v-cross__card {
    padding: 1.15rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .16s, transform .16s;
}
.v-cross__card:hover { border-color: rgba(234, 88, 12, .4); transform: translateY(-1px); }
.v-cross__card-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.v-cross__card-name { font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.v-cross__card-note { font-size: .82rem; color: var(--text-dim); }
