:root {
  --blue: #073bb4;
  --blue2: #071f5c;
  --green: #10d52d;
  --ink: #13203d;
  --muted: #667089;
  --bg: #f4f7fc;
  --card: #fff;
  --line: #dce4f2;
  --soft: #edf3ff;
  --red: #d92d20;
  --gold: #996100;
  --purple: #6840c6;
  --shadow: 0 10px 34px rgba(9, 38, 99, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shell { width: min(100%, 1080px); margin: auto; min-height: 100vh; padding: 18px 16px 104px; }
.hidden { display: none !important; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.logoPlate { width: 158px; flex: 0 0 158px; background: #061a3a; border-radius: 13px; padding: 8px 10px; box-shadow: var(--shadow); }
.logoPlate img { display: block; width: 100%; height: auto; }
.brandCopy strong { display: block; font-size: 15px; line-height: 1.2; }
.brandCopy small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; margin-top: 3px; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 950; }
.eyebrow.light { color: #aef5b7; }
.hero { background: linear-gradient(145deg, var(--blue), var(--blue2)); color: white; border-radius: 25px; padding: 24px; margin: 12px 0 16px; box-shadow: 0 16px 40px rgba(7, 59, 180, .2); }
h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.05; letter-spacing: -.035em; margin: 7px 0 10px; }
.hero p { color: #e8efff; margin: 0; line-height: 1.5; max-width: 760px; }
.layout { display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 17px; margin: 12px 0; box-shadow: var(--shadow); }
.title { font-size: 20px; font-weight: 950; margin: 5px 0 7px; }
.sub { color: var(--muted); line-height: 1.5; margin: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: grid; gap: 10px; }
.choice { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 17px; padding: 14px; text-align: left; cursor: pointer; transition: .16s ease; }
.choice:hover, .choice:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 59, 180, .09); outline: none; }
.choice.active { border-color: var(--blue); background: var(--soft); box-shadow: 0 0 0 2px rgba(7, 59, 180, .08); }
.choice strong { display: block; font-size: 15px; }
.choice small { display: block; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.choice .count { float: right; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; font-size: 10px; color: var(--blue); font-weight: 900; }
.leadGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.leadChoice { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 8px; color: var(--ink); font-weight: 900; font-size: 12px; cursor: pointer; }
.leadChoice.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn { width: 100%; border: 0; border-radius: 15px; padding: 14px 16px; font: inherit; font-size: 14px; font-weight: 950; cursor: pointer; margin-top: 9px; }
.primary { background: var(--blue); color: white; }
.green { background: var(--green); color: #052b0c; }
.secondary { background: var(--soft); color: var(--blue); }
.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metricBox { background: #f8faff; border: 1px solid var(--line); border-radius: 15px; padding: 12px; }
.metric { font-size: 11px; color: var(--muted); line-height: 1.3; }
.score { font-size: 28px; font-weight: 950; margin-top: 3px; }
.pill { display: inline-block; background: var(--soft); color: var(--blue); font-size: 10px; font-weight: 950; padding: 6px 8px; border-radius: 999px; }
.pill.green { background: #eafbea; color: #117d20; }
.sectionTabs { display: flex; gap: 7px; overflow: auto; padding: 2px 0 10px; scrollbar-width: none; }
.sectionTab { white-space: nowrap; border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 10px 12px; border-radius: 999px; font-weight: 900; font-size: 12px; cursor: pointer; }
.sectionTab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.toolbar { position: sticky; top: 0; background: rgba(244, 247, 252, .95); backdrop-filter: blur(10px); z-index: 5; padding-top: 8px; }
.search { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 13px; font: inherit; color: var(--ink); margin: 4px 0 10px; }
.scriptGroup { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin: 10px 0; overflow: hidden; box-shadow: 0 5px 18px rgba(9, 38, 99, .04); }
.scriptGroup summary { list-style: none; cursor: pointer; padding: 15px 16px; }
.scriptGroup summary::-webkit-details-marker { display: none; }
.scriptGroup summary .chev { color: var(--blue); font-weight: 950; }
.scriptBody { border-top: 1px solid var(--line); padding: 4px 14px 14px; }
.scriptItem { padding: 12px 0; border-bottom: 1px solid #edf1f7; }
.scriptItem:last-child { border-bottom: 0; }
.scriptText { font-size: 15px; line-height: 1.48; margin-top: 7px; }
.type { display: inline-block; font-size: 9px; letter-spacing: .08em; font-weight: 950; border-radius: 6px; padding: 4px 6px; background: var(--soft); color: var(--blue); }
.type.consequence { background: #fff0ef; color: var(--red); }
.type.core-frame, .type.standard, .type.stronger, .type.agent-language { background: #eafbea; color: #117d20; }
.type.response { background: #fff7df; color: var(--gold); }
.type.coaching-note { background: #fff7df; color: var(--gold); }
.type.close { background: #f2edff; color: var(--purple); }
.type.question-path { background: #eef1f7; color: #47536c; }
.meaning { font-size: 12px; color: var(--muted); font-style: italic; line-height: 1.4; margin-top: 5px; }
.listenCue { margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: #f5f7fb; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tinyBtn { border: 0; background: var(--soft); color: var(--blue); font-weight: 950; border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.context { border: 1px solid var(--line); background: #f8faff; border-radius: 14px; padding: 12px; font-size: 12px; line-height: 1.45; margin: 10px 0; }
.prospect { border-left: 5px solid var(--green); background: #effcf1; border-radius: 13px; padding: 14px; line-height: 1.48; margin: 12px 0; }
.intent { font-size: 13px; color: var(--muted); line-height: 1.5; }
.learn { background: #fffaf0; border: 1px solid #efd49f; border-radius: 16px; padding: 14px; margin: 12px 0; }
.learnTitle { font-weight: 950; margin-top: 5px; }
.exampleList { list-style: none; padding: 0; margin: 10px 0; }
.exampleList li { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px; margin: 8px 0; line-height: 1.45; }
.exampleNum { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 950; margin-right: 8px; }
.practiceLocked { opacity: .45; pointer-events: none; }
.mic { width: 76px; height: 76px; border: 0; border-radius: 50%; display: block; margin: 14px auto 6px; background: var(--blue); color: #fff; font-size: 26px; box-shadow: 0 10px 25px rgba(7, 59, 180, .23); }
.center { text-align: center; }
.small { font-size: 12px; color: var(--muted); line-height: 1.45; }
label { display: block; font-size: 12px; font-weight: 950; margin: 11px 0 6px; }
select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 12px; font: inherit; color: var(--ink); }
textarea { min-height: 94px; resize: vertical; }
.coachBox { border-left: 5px solid var(--blue); background: var(--soft); border-radius: 13px; padding: 14px; line-height: 1.48; margin: 12px 0; }
.speaker { font-size: 9px; color: var(--muted); letter-spacing: .1em; font-weight: 950; text-transform: uppercase; }
.transcript { max-height: 240px; overflow: auto; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.step { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.stepnum { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 12px; font-weight: 950; }
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(1080px, 100%); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 7px calc(9px + env(safe-area-inset-bottom)); z-index: 20; }
.nav button { border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 950; padding: 6px; }
.nav button.active { color: var(--blue); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

@media (min-width: 760px) {
  .shell { padding: 24px 28px 110px; }
  .layout.two { grid-template-columns: 1.05fr .95fr; }
  .playbookChoices { grid-template-columns: 1fr 1fr; }
  .libraryHead { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .brandCopy strong { font-size: 17px; }
  .hero { padding: 30px; }
  .scriptBody { padding: 5px 18px 18px; }
  .drillCard { max-width: 760px; }
  #feedbackCard { max-width: 760px; }
  .metrics { gap: 12px; }
}

@media (max-width: 480px) {
  .brandCopy strong { font-size: 13px; }
  .brandCopy small { font-size: 10px; }
  .logoPlate { width: 140px; flex-basis: 140px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metricBox:first-child { grid-column: 1 / -1; }
}
