/* Drive-Time Radio — trade-professional skin, shared with the Midnight
   Closer: white + deep navy + steel blue, orange accent. External CSS
   only — no inline style attributes anywhere in the demo. */
:root {
  --navy: #0f2c4c;
  --navy-deep: #0a1f38;
  --steel: #1d5c8f;
  --steel-light: #e7eef7;
  --bg: #eef2f5;
  --surface: #ffffff;
  --line: #d5dde4;
  --text: #1c2b38;
  --muted: #5d7182;
  --cta: #d97a1f;
  --cta-hover: #c26c16;
  --danger: #c04536;
  --ok: #1e7d46;
  --ok-bg: #e6f4ec;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(15, 44, 76, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.brand { color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: 0.03em; font-size: 1.08rem; }
.brand span { color: var(--steel); font-weight: 600; font-size: 0.82em; }
.header-phone { margin: 0 0 0 auto; color: var(--muted); font-size: 0.95rem; }
.header-phone strong { color: var(--navy); font-size: 1.05rem; }
.header-status { margin: 0; color: var(--muted); font-size: 0.92rem; }
.onair-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok); margin-right: 6px;
}
.trust-strip { background: var(--navy); }
.trust-inner {
  max-width: 1100px; margin: 0 auto; padding: 9px 20px;
  display: flex; gap: 26px; flex-wrap: wrap;
  color: #dbe7f2; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
}

.hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #16406e);
  color: #fff; padding: 46px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.eyebrow { color: #f2b25c; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; font-weight: 700; margin: 0; }
.hero h1 { font-size: 2.2rem; margin: 10px 0 12px; line-height: 1.18; }
.hero-lede { color: #c9d9e8; max-width: 600px; }
.hero-instruction { max-width: 600px; color: #eef4fa; }
.hero-note {
  max-width: 600px; color: #f2d7ae; background: rgba(217, 122, 31, 0.16);
  border: 1px solid rgba(242, 178, 92, 0.55); border-radius: 9px; padding: 10px 13px;
}

.math-card {
  background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card-kicker { color: var(--steel); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 700; margin: 0 0 12px; }
.math-facts { margin: 0; display: grid; gap: 12px; }
.math-facts div { display: flex; gap: 14px; align-items: baseline; }
.math-facts dt { font-size: 1.45rem; font-weight: 800; color: var(--navy); min-width: 92px; }
.math-facts dd { margin: 0; color: var(--muted); }
.tally { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.tally p { margin: 4px 0; color: var(--muted); }
.tally strong { color: var(--navy); }

.lab-section { padding: 30px 0 12px; }
.lab-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }

.player {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.player h2 { margin: 6px 0 4px; font-size: 1.3rem; color: var(--navy); }
.demo-label { color: var(--steel); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.11em; margin: 0; }
.demo-label-dark { color: var(--steel); }
.player-meta { margin: 0 0 16px; color: var(--muted); font-size: 0.94rem; }
.player-meta strong { color: var(--navy); }

.player-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.button {
  border: 0; cursor: pointer; border-radius: 9px; padding: 12px 20px;
  font-size: 1rem; font-weight: 700;
}
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button-primary { background: var(--cta); color: #fff; box-shadow: 0 8px 18px rgba(217, 122, 31, 0.3); }
.button-primary:hover:not(:disabled) { background: var(--cta-hover); }
.button-secondary { background: var(--surface); color: var(--navy); border: 1.5px solid var(--navy); }

.sound-toggle { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 0.93rem; margin-top: 14px; cursor: pointer; }

.player-status {
  margin: 16px 0 10px; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--steel); border: 1px solid var(--steel); border-radius: 999px; padding: 6px 13px;
  display: inline-block;
}

.progress-bar {
  width: 100%; height: 14px; display: block;
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: 999px; background: #f4f7fa; overflow: hidden;
}
.progress-bar::-webkit-progress-bar { background: #f4f7fa; }
.progress-bar::-webkit-progress-value { background: var(--steel); }
.progress-bar::-moz-progress-bar { background: var(--steel); }

.time-row {
  display: flex; justify-content: space-between; margin: 6px 0 0;
  color: var(--muted); font-size: 0.9rem; font-weight: 700;
}

.segments-heading { margin: 18px 0 10px; font-size: 0.95rem; color: var(--navy); }
.segment-list { display: grid; gap: 9px; }
.segment-row {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 11px;
  padding: 11px 14px; cursor: pointer; font: inherit; color: var(--text);
}
.segment-row:hover { border-color: var(--steel); }
.segment-number {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--steel-light); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.segment-main { flex: 1; display: flex; flex-direction: column; }
.segment-title { font-weight: 700; color: var(--navy); }
.segment-hint { color: var(--muted); font-size: 0.82rem; }
.segment-duration { color: var(--muted); font-weight: 700; font-size: 0.92rem; }

.demo-speed-note {
  margin: 16px 0 0; background: #f4f7fa; border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 13px; color: var(--muted); font-size: 0.9rem;
}
.demo-speed-note strong { color: var(--text); }

.transcript-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.transcript-card h2 { margin: 6px 0 4px; font-size: 1.3rem; color: var(--navy); }
.transcript-intro { margin: 0 0 14px; color: var(--muted); }
.transcript-list { display: grid; gap: 12px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.transcript-segment {
  border: 1.5px solid var(--line); border-radius: 11px; padding: 14px 16px;
  background: #fbfcfd;
}
.transcript-segment h3 { margin: 0 0 2px; font-size: 1.02rem; color: var(--navy); }
.transcript-meta { margin: 0 0 7px; color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.transcript-text { margin: 0; color: var(--text); }

/* The one treatment shared by the segment list and the transcript:
   the segment that is playing lights up the same way in both places. */
.segment-row.active,
.transcript-segment.active {
  background: var(--steel-light);
  border-color: var(--steel);
  box-shadow: inset 5px 0 0 var(--cta), 0 6px 16px rgba(15, 44, 76, 0.12);
}
.segment-row.active .segment-number { background: var(--cta); color: #fff; }
.transcript-segment.active h3 { color: var(--navy); }

.notes-section { padding: 36px 0 48px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.notes-grid h2 { font-size: 1.3rem; color: var(--navy); }
.notes-grid li { margin-bottom: 8px; color: var(--muted); }
.notes-grid li strong, .notes-grid p strong { color: var(--text); }
.notes-grid p { color: var(--muted); }
.price-line { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }

.site-footer { background: var(--navy-deep); padding: 22px 0 30px; color: #b9cbdd; font-size: 0.9rem; }

/* ---- View flip: Customer view | Owner Admin ---------------------------- */
.view-bar { background: var(--navy-deep); padding: 14px 0; }
.view-bar-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.view-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
.view-btn {
  border: 0; background: transparent; color: #dbe7f2; cursor: pointer;
  font-size: 0.95rem; font-weight: 700; padding: 9px 18px; border-radius: 999px;
}
.view-btn.is-active { background: var(--surface); color: var(--navy); }
.view-note { margin: 0; color: #b9cbdd; font-size: 0.93rem; }
.view-note strong { color: #fff; }

.audit-line {
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; margin-top: 10px; color: var(--text); font-weight: 600;
}

/* ---- Owner Admin panel -------------------------------------------------- */
.admin-section { padding: 30px 0 12px; }
.admin-panel {
  background: var(--surface); border: 1.5px solid var(--navy);
  border-radius: 18px; box-shadow: var(--shadow); padding: 26px;
}
.admin-label { color: var(--steel); }
.admin-panel h2 { margin: 6px 0 8px; color: var(--navy); font-size: 1.45rem; }
.admin-sub { margin: 0; color: var(--muted); max-width: 700px; }
.admin-h { margin: 24px 0 10px; font-size: 1.02rem; color: var(--navy); }

.admin-headline {
  margin-top: 20px; background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #16406e);
  color: #fff; border-radius: var(--radius); padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.admin-headline-num { margin: 0; font-size: 2.6rem; font-weight: 800; line-height: 1; color: #f2b25c; }
.admin-headline-label { margin: 0; font-weight: 700; font-size: 1.05rem; }
.admin-headline-sub { margin: 4px 0 0; color: #c9d9e8; max-width: 640px; }

.archive-list { display: grid; gap: 12px; }
.archive-row {
  border: 1.5px solid var(--line); border-radius: 11px; padding: 14px 16px;
  background: #fbfcfd;
}
.archive-row.current {
  border-color: var(--steel); background: var(--steel-light);
  box-shadow: inset 5px 0 0 var(--cta);
}
.archive-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.archive-date { margin: 0; font-weight: 800; color: var(--navy); }
.archive-pill {
  background: var(--cta); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.archive-status { margin: 0 0 0 auto; color: var(--steel); font-weight: 700; font-size: 0.9rem; }
.archive-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.archive-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.archive-row.current .archive-chip { border-color: var(--steel); }
.archive-fix { margin: 10px 0 0; color: var(--muted); }
.archive-fix::first-letter { color: var(--text); }

.admin-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-stats div {
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #fbfcfd;
}
.admin-stats dt { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.admin-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.admin-delivery { margin: 12px 0 0; color: var(--muted); }
.admin-delivery strong { color: var(--navy); }

.action-list { display: grid; gap: 10px; }
.action-item {
  border: 1px solid var(--line); border-left: 5px solid var(--cta);
  border-radius: 9px; padding: 12px 14px; background: #fbfcfd;
}
.action-tag {
  margin: 0; color: var(--steel); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.action-title { margin: 3px 0 0; font-weight: 700; color: var(--navy); }
.action-detail { margin: 3px 0 0; color: var(--muted); }

.admin-insight {
  margin: 22px 0 0; background: var(--steel-light); border: 1px solid var(--steel);
  border-radius: 9px; padding: 13px 15px; color: var(--text);
}
.admin-honesty {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .hero-grid, .lab-grid, .notes-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .header-phone { margin-left: 0; }
  .transcript-list { max-height: none; overflow-y: visible; }
  .player-controls .button { flex: 1; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-panel { padding: 20px 16px; }
  .archive-status { margin-left: 0; }
  .view-note { flex-basis: 100%; }
}
