:root {
  color-scheme: dark;
  --ink: #131919;
  --ink-card: #1b2424;
  --paper: #f3eadb;
  --paper-card: #ebe0ce;
  --type: #f6f1e7;
  --dim: #bdc4ba;
  --amber: #f7b37d;
  --rust: #a8401c;
  --line: #3e4540;
  --line-light: #c2b4a1;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--type); font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.feature { overflow-wrap: break-word; }
.feature a { color: inherit; text-underline-offset: .22em; }
.feature a:hover { text-decoration-thickness: 2px; }
.feature :focus-visible { outline: 3px solid #cf7647; outline-offset: 4px; }
.spread, .inside { width: min(91%, 1200px); margin-inline: auto; }
.spread { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr); column-gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(30px, 4.2vw, 64px); }
.eyebrow { font: 600 .77rem/1.45 ui-monospace, monospace; letter-spacing: .095em; text-transform: uppercase; }
.hero-copy .eyebrow { margin: 0 0 .9rem; color: var(--amber); }
h1, h2, h3, p, figure { margin: 0; }
.feature h1, .feature h2, .feature h3 { text-wrap: balance; }
.feature h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.06em; font-weight: 650; }
.deck { font-size: clamp(1.04rem, 1.5vw, 1.28rem); line-height: 1.48; margin: .9rem 0 1.25rem; max-width: 46ch; color: #e8e2d6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.35rem; }
.cta, .cta-ghost { display: inline-block; padding: .65rem 1.08rem; font-weight: 650; border-radius: 5px; text-decoration: none; font-size: .95rem; }
.cta { background: var(--amber); color: #251908 !important; }
.cta-ghost { border: 1px solid var(--line); color: var(--type); background: transparent; }
.cta-ghost:hover { border-color: var(--amber); }
.cover img { display: block; width: 100%; height: auto; border-radius: 6px; }
.cover figcaption { margin-top: .6rem; color: var(--dim); font-size: .82rem; line-height: 1.4; }
.takes { border-top: 1px solid var(--line); }
.take { display: grid; grid-template-columns: minmax(0, 1fr) minmax(165px, 1.2fr); align-items: center; gap: 10px; padding-block: .62rem; border-bottom: 1px solid var(--line); }
.take figcaption { font-size: .96rem; line-height: 1.24; font-weight: 600; }
.take figcaption small { display: block; font-size: .77rem; color: var(--dim); font-weight: 400; margin-top: .22rem; }
.feature audio { display: block; width: 100%; height: 38px; min-width: 0; }
.hero-copy .scene { font-family: var(--serif); font-size: clamp(1.08rem, 1.75vw, 1.34rem); font-style: italic; line-height: 1.35; margin: 0 0 .95rem; max-width: 46ch; color: #f8e5d0; }
.creative-band { background: var(--paper); color: #302a23; color-scheme: light; }
.chapter { padding-block: clamp(36px, 5vw, 72px); }
.duo { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.22fr); gap: clamp(24px, 5.5vw, 90px); align-items: start; }
.feature h2 { font: 400 clamp(2rem, 4.2vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.045em; margin: 0 0 .38em; }
.feature h3 { font-size: 1.12rem; line-height: 1.28; letter-spacing: -.015em; margin: 1rem 0 .28rem; }
.chapter p { font-size: clamp(1rem,1.45vw,1.12rem); line-height: 1.58; max-width: 66ch; }
.chapter p + p { margin-top: .78rem; }
.wave-figure { margin: 0; }
.wave-figure figcaption { font-size: .86rem; margin-top: .65rem; line-height: 1.4; color: #5c5145; }
.wave-row { padding-block: .6rem .45rem; border-top: 1px solid var(--line-light); }
.wave-row strong { display: inline-block; margin-bottom: .24rem; font-size: .95rem; }
.wave-row img { display: block; width: 100%; height: 42px; }
.wave-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wave-label button { font-family: inherit; font-size: .82rem; font-weight: 600; color: #793017; background: transparent; border: 1px solid #aa9580; border-radius: 3px; padding: .35rem .8rem; cursor: pointer; }
.trace { position: relative; }
.trace i { position: absolute; inset-block: 0; border-left: 2px solid #37261a; visibility: hidden; pointer-events: none; }
.wave-axis { display: flex; justify-content: space-between; border-top: 1px solid #a79a8a; padding-top: .25rem; font: .72rem/1.3 ui-monospace, monospace; }
.note { border-top: 1px solid var(--line); }
.creative-band .note { border-color: var(--line-light); }
.note summary { cursor: pointer; padding: .82rem .1rem; font-weight: 650; line-height: 1.4; }
.note[open] { padding-bottom: 1rem; }
.note > p { margin-bottom: .55rem; }
.note a { text-decoration-color: currentColor; }
.listener-notes { margin-top: 1.25rem; }
.feature code { font: .86em ui-monospace, monospace; overflow-wrap: anywhere; }
.cue { display: inline-block; font: 600 .8em ui-monospace, monospace; padding: 1px 5px; border-radius: 3px; background: rgba(168, 64, 28, .14); color: #8c3112; }
.feature:not(.light) .dark-cue { background: rgba(247, 179, 125, .16); color: var(--amber); }

/* Cast Audition Board */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.cast-card { background: var(--ink-card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.cast-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cast-head strong { font-size: 1.05rem; }
.cast-tag { font: 600 .74rem/1.2 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); }
.cast-script { font-family: var(--serif); font-size: .98rem; line-height: 1.44; color: #ece5d8; }
.cast-meta { font-size: .8rem; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* Live Captions & SSML */
.controls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 1.4rem; }
.control-card { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: 8px; padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.control-card h3 { margin: 0; font-size: 1.15rem; color: #241d17; }
.karaoke-box { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; color: #2b241d; background: #faf5ec; border: 1px solid #d5c7b4; border-radius: 6px; padding: 12px 14px; }
.karaoke-box span { padding: 1px 3px; border-radius: 3px; transition: background 80ms; }
.karaoke-box span.is-active { background: #f2b77d; color: #1d140c; }
.ssml-code { font: .86rem/1.5 ui-monospace, monospace; background: #faf5ec; border: 1px solid #d5c7b4; border-radius: 6px; padding: 10px 12px; color: #36291e; overflow-x: auto; }
.control-links { font-size: .86rem; color: #5c5145; display: flex; gap: 14px; flex-wrap: wrap; }

/* Language, Dialect & Control Explorer */
.explorer { margin-top: 1.4rem; background: var(--ink-card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; display: grid; gap: 16px; }
.explorer-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.explorer-tab { font: 600 .88rem/1.2 inherit; padding: .48rem .92rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--type); cursor: pointer; }
.explorer-tab[aria-selected="true"] { background: var(--amber); color: #221608; border-color: var(--amber); }
.pill-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-btn { font: 500 .8rem/1.25 ui-monospace, monospace; padding: 5px 10px; border-radius: 5px; border: 1px solid #414d4a; background: #151e1e; color: #d8dfd9; cursor: pointer; }
.pill-btn:hover { border-color: var(--amber); color: #fff; }
.pill-btn[aria-pressed="true"] { background: #c5e6ce; color: #13211b; border-color: #c5e6ce; font-weight: 700; }
.explorer-stage { background: #101616; border: 1px solid #35403d; border-radius: 8px; padding: 16px 18px; display: grid; gap: 10px; }
.explorer-stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.explorer-stage-head strong { font-size: 1.08rem; }
.explorer-stage-head span { font: .8rem ui-monospace, monospace; color: var(--amber); }
.explorer-script { font-family: var(--serif); font-size: 1.06rem; line-height: 1.45; color: #f6efe3; }
.explorer-note { font-size: .88rem; color: var(--dim); }

/* Live Sogni Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 1.4rem; }
.cap-card { background: var(--ink-card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.cap-card small { font: 600 .74rem/1.2 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); }
.cap-card h3 { margin: 0; font-size: 1.08rem; color: var(--type); }
.cap-card p { font-size: .95rem; line-height: 1.52; color: #dcd6cb; }

/* Script Fidelity Comparison */
.fidelity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 1.3rem; }
.fidelity-card { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: 8px; padding: 15px 16px; display: grid; gap: 9px; align-content: start; }
.fidelity-card small { font: 600 .74rem ui-monospace, monospace; text-transform: uppercase; color: var(--rust); letter-spacing: .05em; }
.fidelity-card strong { font-size: 1rem; color: #241d17; }
.fidelity-card p { font-size: .88rem; line-height: 1.45; color: #4d4237; }
.fidelity-table-wrap { overflow-x: auto; margin-top: 1.4rem; }
.fidelity-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fidelity-table th, .fidelity-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-light); }
.fidelity-table th { font-weight: 650; color: #2c241c; }
.fidelity-table .ok { color: #1d5e37; font-weight: 650; }
.fidelity-table .blocked { color: #9c2b1c; font-weight: 650; }

.pricing { border-block: 1px solid var(--line); }
.related { padding: 2.7rem 0 4rem; }
.feature .related h2 { font-size: 2rem; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.feature .related-card { display: grid; align-content: start; text-decoration: none; }
.related-card img { display: block; width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 4px; }
.related-copy { display: grid; gap: .35rem; padding-block: .65rem; }
.related-copy small { color: var(--dim); }

@media (max-width: 900px) {
  .spread, .duo, .controls-grid, .fidelity-grid, .cap-grid { grid-template-columns: minmax(0,1fr); }
  .spread { gap: 1.4rem; }
  .spread, .inside { width: min(92%, 680px); }
  .chapter { padding-block: 2.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .feature .related-card { grid-template-columns: minmax(90px, .45fr) 1fr; align-items:center; gap: 1rem; }
}
@media(max-width: 560px) {
  .bn-header { position: static; }
  .take { grid-template-columns: 1fr; gap: .35rem; }
  .take figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem; }
  .take figcaption small { margin: 0; }
}
