body { background: var(--paper); }

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 56px;
    border-bottom: 1px solid var(--rule-soft);
}
.top-bar nav { display: flex; align-items: center; gap: 28px; }
.top-bar nav a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-3);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.12s ease;
}
.top-bar nav a:hover { color: var(--ink); }

.hero {
    padding: 84px 56px 64px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
/* The one big marketing hero stays Instrument Serif (the deliberate
   editorial exception to the Bricolage heading rule). */
.hero-headline {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 104px;
    line-height: 0.98;
    letter-spacing: -0.01em;
    margin: 24px 0 28px;
}
.hero-headline .accent { color: var(--amber-2); }
.hero-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 520px;
    margin: 0;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-sources {
    display: flex;
    gap: 24px;
    margin-top: 56px;
    align-items: center;
    flex-wrap: wrap;
}
.hero-sources .label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-sources .divider {
    width: 20px;
    height: 1px;
    background: var(--rule-soft);
}
.hero-sources .types {
    display: flex;
    gap: 18px;
    align-items: center;
    color: var(--ink-2);
    font-size: 13px;
    flex-wrap: wrap;
}
.hero-sources .types span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-art { position: relative; }
.hero-art img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: 0 30px 80px oklch(0.3 0.08 290 / 0.35);
}
.now-playing-card {
    position: absolute;
    bottom: -20px;
    left: 24px;
    right: 24px;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
}
.now-playing-play {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: var(--ink); color: var(--paper);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    flex-shrink: 0;
}
.now-playing-info { flex: 1; min-width: 0; }
.now-playing-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.section-band {
    padding: 72px 56px;
    border-top: 1px solid var(--rule-soft);
    background: var(--paper-2);
}
.section-plain { padding: 72px 56px; }

.how-headline { font-size: 44px; margin: 14px 0 48px; max-width: 700px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.how-step .num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--amber-2);
    margin-bottom: 14px;
    letter-spacing: 0.06em;
}
.how-step .title { font-size: 26px; margin-bottom: 12px; font-family: var(--serif); font-style: italic; line-height: 1; }
.how-step .desc { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 320px; }

.voices { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.voices-headline { font-size: 44px; margin: 14px 0 18px; }
.voices-lead { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.voice-card {
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.voice-card:hover { background: var(--paper-2); }
.voice-card.is-amber { background: var(--amber-bg); }
.voice-card.is-playing { border-color: var(--amber); background: var(--amber-bg); }
.voice-play {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--rule); background: var(--paper);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    flex-shrink: 0; color: var(--ink);
}
.voice-info { flex: 1; min-width: 0; }
.voice-name { font-size: 14px; font-weight: 500; }
.voice-desc { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.voices-more { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; }

.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.pricing-headline { font-size: 36px; margin: 14px 0 14px; }
.pricing-lead { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 540px; }
.pricing-card {
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-lg);
    background: var(--paper);
    padding: 24px 28px;
}
.pricing-figure {
    font-family: var(--serif);
    font-style: italic;
    font-size: 64px;
    line-height: 1;
    margin-top: 8px;
    color: var(--ok);
    font-variant-numeric: tabular-nums;
}
.pricing-card .row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--ink-3);
    font-family: var(--mono);
}

.hero-tryline {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-3);
    margin: 14px 0 0;
}

/* ---- Try-it widget ---- */
.try-headline { font-size: 44px; margin: 14px 0 16px; max-width: 760px; }
.try-headline .accent { color: var(--amber-2); }
.try-lead { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 32px; max-width: 640px; }
.try-card {
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: var(--paper);
    padding: 24px;
    max-width: 720px;
    box-shadow: var(--shadow);
}
.try-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.try-tab {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--rule-soft);
    background: var(--paper);
    color: var(--ink-3);
    cursor: pointer;
    transition: all 0.12s ease;
}
.try-tab:hover { color: var(--ink); }
.try-tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.try-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.try-hint { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.try-state-msg { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.try-loading { display: flex; align-items: center; gap: 14px; }
.try-result-title-label {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--amber-2); margin-bottom: 6px;
}
.try-result-title { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.1; margin: 0 0 16px; }
.try-player { width: 100%; margin: 4px 0 18px; }
.try-callout {
    border-left: 2px solid var(--amber);
    background: var(--amber-bg);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 18px;
}
.try-gate {
    border-top: 1px solid var(--rule-soft);
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.try-gate-copy { font-size: 14px; color: var(--ink-2); line-height: 1.5; flex: 1; min-width: 220px; }
.try-error { color: var(--err); font-size: 14px; }

.try-voice-row { margin-bottom: 16px; }
.try-voice-btn { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.try-voice-btn-name { font-weight: 500; }
.try-voice-btn-desc {
    font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.try-result-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin: -8px 0 16px; }

/* Voice-picker modal (mirrors the in-app override modal) */
.sv-modal-card { max-width: 660px; width: 92vw; }
.sv-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    max-height: 52vh; overflow-y: auto; margin: 8px 0 4px; padding-right: 4px;
}
.sv-group {
    grid-column: 1 / -1; font-size: 11px; font-weight: 600; color: var(--ink-3);
    text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 2px 2px;
}
.sv-card {
    border: 1px solid var(--rule-soft); border-radius: var(--radius);
    padding: 12px 14px; display: flex; align-items: center; gap: 12px;
    background: var(--paper); cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.sv-card:hover { background: var(--paper-2); }
.sv-card.is-selected { border-color: var(--amber); background: var(--amber-bg); }
.sv-card.is-playing { border-color: var(--amber); }
.sv-play {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--rule); background: var(--paper);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; color: var(--ink);
}
/* The card body is a real <button> (keyboard-selectable, mirroring the in-app
   picker) — reset it back to looking like the plain text block it was. */
.sv-info {
    flex: 1; min-width: 0;
    display: block; text-align: left; cursor: pointer;
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; color: inherit;
}
.sv-info:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sv-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
/* display:block — .sv-name/.sv-desc are spans now they live inside the button
   (phrasing content), and ellipsis needs a block box. */
.sv-desc { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Animated "we're spending money, please wait" state */
.try-loading { display: flex; align-items: center; gap: 18px; }
.try-eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 40px; flex-shrink: 0; }
.try-eq i {
    width: 5px;
    height: 30%;
    background: var(--amber);
    border-radius: 2px;
    animation: try-eq-bounce 0.9s ease-in-out infinite;
}
@keyframes try-eq-bounce {
    0%, 100% { height: 18%; opacity: 0.55; }
    50% { height: 100%; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .try-eq i { animation: none; height: 60%; }
}
.try-loading-text { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.try-loading-text small {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 5px;
}

@media (max-width: 880px) {
    .try-headline { font-size: 32px; }
    .sv-grid { grid-template-columns: 1fr; }
    .top-bar { padding: 16px 24px; flex-wrap: wrap; gap: 16px; }
    .top-bar nav { gap: 16px; flex-wrap: wrap; }
    .hero { padding: 48px 24px; grid-template-columns: 1fr; gap: 40px; }
    .hero-headline { font-size: 56px; }
    .section-band, .section-plain { padding: 48px 24px; }
    .how-grid { grid-template-columns: 1fr; gap: 24px; }
    .voices, .pricing { grid-template-columns: 1fr; gap: 32px; }
    .voice-grid { grid-template-columns: 1fr; }
}

/* ---- Classes for former inline styles (CSP style-src 'self') ---- */

/* Top-bar Sign in / Sign up buttons: undo the uppercase/tracking that
   .top-bar nav a (0,1,1) imposes — the full path keeps this at (0,2,1). */
.top-bar nav a.em-btn { text-transform: none; letter-spacing: 0; }

/* Voice-picker modal heading + intro line. Two-class selectors (0,2,0) so
   they out-rank em.css's .em-modal h3 / .em-modal p (0,1,1) defaults. */
.sv-modal-card .sv-modal-title { font-size: 26px; margin: 0 0 4px; }
.sv-modal-card .sv-modal-sub { margin: 0 0 8px; }

/* Second pricing paragraph — spaced off the first. Same specificity as
   .pricing-lead's margin: 0; wins by source order (this section is last). */
.pricing-lead--followup { margin-top: 14px; }

/* "top up or subscribe" value in the pricing-card row (row text is ink-3). */
.pricing-row-value { color: var(--ink-2); }

/* Page footer (was one long inline style attribute). */
.landing-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 48px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: var(--ink-3);
}

/* Placeholder slot the per-card voice waveform renders into (replaced by
   EM.buildWaveform() output on load; keeps the card height stable). */
.voice-waveform-slot { height: 20px; }

/* Loading-equaliser bar stagger — was animation-delay:(i*0.09)s inline on
   each of the 8 bars renderLoading() emits. :nth-child (0,2,0) out-ranks
   the animation shorthand's implicit delay in .try-eq i (0,1,1). */
.try-eq-bar:nth-child(1) { animation-delay: 0s; }
.try-eq-bar:nth-child(2) { animation-delay: 0.09s; }
.try-eq-bar:nth-child(3) { animation-delay: 0.18s; }
.try-eq-bar:nth-child(4) { animation-delay: 0.27s; }
.try-eq-bar:nth-child(5) { animation-delay: 0.36s; }
.try-eq-bar:nth-child(6) { animation-delay: 0.45s; }
.try-eq-bar:nth-child(7) { animation-delay: 0.54s; }
.try-eq-bar:nth-child(8) { animation-delay: 0.63s; }
