/* =====================================================================
   SPVOX — VO Player + Landing styles
   Reproduces the look & feel of the home-page demo player so every
   per-type landing page shares one consistent audio experience.
   Loads AFTER site-chrome.css (uses its design tokens).
   ===================================================================== */

/* ---------- Landing hero ---------- */
.vo-hero { position: relative; overflow: hidden; padding-top: clamp(34px, 5vw, 60px); padding-bottom: clamp(18px, 2.5vw, 28px); }
.vo-hero .eyebrow { margin-bottom: var(--s-4); }
.vo-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.03; max-width: 18ch; }
.vo-hero h1 .hl { color: var(--accent, var(--pink)); }
.vo-hero .lead { margin-top: var(--s-5); max-width: 56ch; }
.vo-hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.vo-blob { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .35; z-index: -1; }
.vo-blob.b1 { width: 320px; height: 320px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent, var(--pink)) 55%, transparent), transparent 70%); top: -120px; right: -40px; }
.vo-blob.b2 { width: 220px; height: 220px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent, var(--green)) 40%, transparent), transparent 70%); top: 20px; left: -110px; }

/* ---------- Body layout: copy + player ---------- */
.vo-body { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 56px); align-items: start; padding-top: var(--s-6); padding-bottom: var(--s-9); }
.vo-copy h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.08; letter-spacing: -.01em; }
.vo-copy .vo-blurb { margin-top: var(--s-4); color: var(--ink-60); font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.65; max-width: 56ch; text-wrap: pretty; }
.vo-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-40); margin: var(--s-7) 0 var(--s-4); }
.vo-bestfor { display: flex; flex-wrap: wrap; gap: 8px; }
.vo-bestfor span { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--charcoal); background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; }
.vo-points { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vo-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-60); line-height: 1.5; }
.vo-points li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent, var(--pink)); }
.vo-points li strong { color: var(--charcoal); font-weight: 600; }
@media (max-width: 920px) { .vo-body { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ============================================================
   PLAYER — mirrors the home-page demo player
   ============================================================ */
.vo-player.agent-card { --accent: var(--pink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: var(--s-5); position: sticky; top: calc(var(--header-h, 64px) + 18px); }
.vo-player .agent-meta h4 { font-size: 16px; }

/* folder tabs (sub-categories, e.g. Narration / Medical Narration) */
.player-tabs { display: flex; gap: 2px; align-items: stretch; margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.player-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 11px; position: relative; padding: 12px 14px 13px; border: 1px solid transparent; border-bottom: none; border-radius: 12px 12px 0 0; background: transparent; color: var(--ink-40); cursor: pointer; text-align: left; transition: background .2s var(--ease), color .2s var(--ease); }
.player-tab + .player-tab::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); transition: opacity .3s; }
.player-tab:not(.active):hover { background: var(--canvas); color: var(--charcoal); }
.player-tab.active { background: var(--white); color: var(--charcoal); border-color: var(--line); z-index: 1; }
.player-tab.active::before, .player-tab.active + .player-tab::before { opacity: 0; }
.player-tab.active::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2.5px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--zapote))); }
.player-tab .pava { width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--zapote))); box-shadow: 0 0 0 1.5px var(--line); filter: saturate(.55) opacity(.78); transition: filter .2s var(--ease), box-shadow .2s var(--ease); }
.player-tab .pava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-tab .pava .ini { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.player-tab .pava svg { width: 19px; height: 19px; }
.player-tab.active .pava { box-shadow: 0 0 0 1.5px var(--white), 0 0 0 3px color-mix(in srgb, var(--accent) 38%, transparent); filter: none; }
.player-tab .pn { min-width: 0; line-height: 1.15; }
.player-tab .pn b { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.player-tab.active .pn b { font-weight: 700; }
.player-tab .pn .pd { display: block; margin-top: 3px; font-family: var(--font-display); font-weight: 600; font-size: 10.5px; letter-spacing: .01em; color: var(--ink-40); }
.player-tab.active .pn .pd { color: var(--ink-60); }

/* now-playing header */
.demo-now { display: flex; align-items: center; gap: 12px; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.demo-now .agent-avatar { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--zapote))); display: grid; place-items: center; color: #fff; flex: none; }
.demo-now .agent-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-now .agent-avatar .ini { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.demo-now .agent-avatar svg { width: 22px; height: 22px; }
.demo-now .agent-meta { min-width: 0; }
.demo-now .agent-meta h4 { line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-now .agent-meta span { font-size: 13px; color: var(--ink-40); display: inline-flex; align-items: center; gap: 6px; }
.demo-now .agent-meta .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.badge-demo { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: #fff; background: var(--zapote); padding: 4px 10px; border-radius: var(--r-pill); }

/* waveform */
.wave { display: flex; align-items: center; gap: 2.5px; height: 76px; margin: var(--s-5) 0; }
.wave .lead { flex: 1 1 auto; min-width: 12px; height: 2px; border-radius: 2px; }
.wave .lead.l { background: linear-gradient(90deg, transparent, var(--accent)); }
.wave .lead.r { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--zapote)), transparent); }
.wave i { flex: none; display: block; width: 3.5px; height: var(--h, 30px); border-radius: var(--r-pill); transform-origin: center; animation: vobounce 1.1s var(--ease) infinite; animation-play-state: paused; }
.vo-player.playing .wave i { animation-play-state: running; }
@keyframes vobounce { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.46); opacity: .85; } }

/* transport */
.demo-progress { display: flex; align-items: center; gap: 12px; margin-top: var(--s-2); font-family: var(--font-display); font-size: 13px; color: var(--ink-40); }
.play-btn { flex: none; width: 50px; height: 50px; border-radius: 50%; background-color: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .15s var(--ease); }
.play-btn:hover { transform: scale(1.06); background-color: color-mix(in srgb, var(--accent), #000 16%); }
.play-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.play-btn svg { width: 20px; height: 20px; }
.demo-progress .bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; cursor: pointer; }
.demo-progress .bar i { display: block; height: 100%; width: 0%; background-color: var(--accent); border-radius: 99px; transition: width .12s linear; }
.dl-btn { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-40); border: 1px solid var(--line); transition: color .18s var(--ease), border-color .18s var(--ease); }
.dl-btn:hover { color: var(--green); border-color: var(--green); }
.dl-btn svg { width: 17px; height: 17px; }

/* demo list */
.demo-list { display: grid; gap: 8px; margin-top: var(--s-5); }
.demo-chip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.demo-chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--white)); }
.demo-chip.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--white)); }
.demo-chip .ico { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, var(--white)); color: var(--accent); display: grid; place-items: center; flex: none; }
.demo-chip.active .ico { background: var(--accent); color: #fff; }
.demo-chip .ico svg { width: 15px; height: 15px; }
.demo-chip .meta { min-width: 0; flex: 1; }
.demo-chip .t { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--charcoal); display: block; }
.demo-chip .s { font-size: 12.5px; color: var(--ink-40); display: block; }
.demo-chip .len { margin-left: auto; font-family: var(--font-display); font-size: 12.5px; color: var(--ink-40); flex: none; }
.demo-chip.is-playing .ico { background: var(--accent); color: #fff; }

/* favorite heart on each chip — red, matching the home demo player */
.demo-chip .fav { flex: none; width: 30px; height: 30px; margin: -4px -6px -4px 2px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-40); cursor: pointer; transition: color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease); }
.demo-chip .fav svg { width: 17px; height: 17px; fill: none; transition: fill .15s var(--ease); }
.demo-chip .fav:hover { color: #D6455B; background: rgba(214,69,91,.09); }
.demo-chip .fav:active { transform: scale(.86); }
.demo-chip.faved .fav { color: #D6455B; }
.demo-chip.faved .fav svg { fill: #D6455B; }

/* player toolbar: favorites filter · autoplay · download all */
.player-toolbar { display: flex; align-items: center; gap: 8px; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.player-toolbar .pt-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pt-toggle { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--ink-60); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 7px 13px; cursor: pointer; transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease); }
.pt-toggle svg { width: 15px; height: 15px; flex: none; }
.pt-toggle .lbl { white-space: nowrap; }
.pt-toggle:hover { border-color: #CFCBC2; color: var(--charcoal); }
.pt-toggle .ct { font-size: 11px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill); display: none; align-items: center; justify-content: center; background: #D6455B; color: #fff; }
.fav-filter svg { fill: none; }
.fav-filter:hover { border-color: color-mix(in srgb, #D6455B 45%, var(--line)); }
.fav-filter.has .ct { display: inline-flex; }
.fav-filter.on { color: #fff; background: #D6455B; border-color: #D6455B; }
.fav-filter.on svg { fill: #fff; }
.fav-filter.on .ct { background: rgba(255,255,255,.28); }
/* autoplay: sliding switch — matches the home-page main player */
.auto-switch { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--ink-60); background: none; border: 0; padding: 7px 2px; cursor: pointer; }
.auto-switch .dt-sw { flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .22s var(--ease); }
.auto-switch .dt-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: left .22s var(--ease); }
.auto-switch[aria-checked="true"] .dt-sw { background: var(--accent); }
.auto-switch[aria-checked="true"] .dt-knob { left: 18px; }
.auto-switch[aria-checked="true"] .dt-label { color: var(--charcoal); }
.dl-all:hover { color: var(--green-600); border-color: var(--green); background: rgba(21,178,124,.06); }
.dl-all.busy { opacity: .55; pointer-events: none; }
@media (max-width: 420px) { .player-toolbar .pt-toggle .lbl { display: none; } }
/* empty / no-audio states */
.demo-chip.no-audio { opacity: .72; }
.demo-chip.no-audio .len { color: var(--ink-40); font-size: 11px; font-style: italic; }
.demo-empty { text-align: center; padding: 22px 16px; margin-top: var(--s-4); color: var(--ink-40); font-size: 13.5px; border: 1.5px dashed var(--line); border-radius: var(--r-md); }
.demo-empty b { color: var(--ink-60); font-family: var(--font-display); }
.vo-player .player-hint { margin-top: var(--s-4); font-size: 12px; color: var(--ink-40); text-align: center; }
.vo-player .player-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- closing CTA (shared) ---------- */
.vo-cta-wrap { padding-bottom: clamp(48px, 7vw, 96px); }
.vo-cta { margin-top: var(--s-8); background: var(--charcoal); color: #fff; border-radius: var(--r-xl); padding: clamp(30px, 5vw, 58px); text-align: center; }
.vo-cta .script { font-family: var(--font-script); font-weight: 700; color: var(--limon); font-size: clamp(22px, 2.6vw, 30px); }
.vo-cta h2 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.05; margin: 6px auto var(--s-4); max-width: 18ch; color: #fff; }
.vo-cta p { color: rgba(255,255,255,.72); max-width: 52ch; margin: 0 auto var(--s-6); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.vo-cta .btns { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.vo-cta .btn-outline { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.vo-cta .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- "other types" nav strip ---------- */
.vo-types { padding-bottom: var(--s-9); }
.vo-types h3 { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-40); margin-bottom: var(--s-4); }
.vo-types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.vo-type-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.vo-type-link:hover { border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vo-type-link .ti { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; }
.vo-type-link .ti svg { width: 19px; height: 19px; }
.vo-type-link.cur { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--white)); }
.vo-type-link b { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--charcoal); display: block; }
.vo-type-link span { font-size: 12px; color: var(--ink-40); }
