/* Counsel Desk — Main Stylesheet */
/* B2B, attorney-facing. Clean, serif headlines, no startup fluff. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a2540;
  --navy-dk: #111827;
  --accent:  #2a5bd7;
  --accent-h:#1e45a8;
  --gold:    #c8a84b;
  --bg:      #ffffff;
  --bg-soft: #f7f7f5;
  --bg-dark: #1a2540;
  --border:  #e2e2dd;
  --text:    #1a2540;
  --text-muted: #5a6070;
  --serif: 'Lora', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(26,37,64,0.10);
  --shadow-lg: 0 8px 32px rgba(26,37,64,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.7; }

em { font-style: italic; color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  line-height: 1;
  border: 2px solid transparent;
}
.btn-sm  { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg  { padding: 15px 32px; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--accent); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ── Hero ── */
.hero {
  background: var(--bg);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-headline {
  color: var(--navy-dk);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Proof Band ── */
.proof-band {
  background: var(--navy);
  padding: 20px 0;
}
.proof-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.proof-stat {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 8px 28px;
  white-space: nowrap;
}
.proof-stat strong { color: #fff; font-weight: 600; }
.proof-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
}

/* ── Sections ── */
.section { padding: 88px 0; }
.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-headline {
  color: var(--navy-dk);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
}

/* Pain Section */
.section-pain { background: var(--bg-soft); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.pain-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.pain-card h3 { color: var(--navy-dk); margin-bottom: 10px; }
.pain-card p { font-size: 0.95rem; }

/* How It Works */
.section-how { background: var(--bg); }
.steps { display: flex; flex-direction: column; gap: 0; max-width: 680px; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.step-content h3 { color: var(--navy-dk); margin-bottom: 8px; }
.step-content p { font-size: 0.95rem; }
.step-connector {
  width: 2px;
  height: 40px;
  background: var(--border);
  margin-left: 21px;
}

/* Cost Section */
.section-cost { background: var(--bg-soft); }
.cost-box {
  background: var(--navy);
  border-radius: 10px;
  padding: 56px 64px;
  max-width: 780px;
}
.cost-box .section-label { color: var(--gold); }
.cost-headline {
  color: #fff;
  margin-bottom: 36px;
}
.cost-calc { border-top: 1px solid rgba(255,255,255,0.15); }
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 32px;
}
.cost-row-total { border-bottom: none; padding-top: 24px; }
.cost-label { color: rgba(255,255,255,0.75); font-family: var(--sans); font-size: 0.95rem; }
.cost-value { color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.cost-total { color: var(--gold); font-size: 1.6rem; }
.cost-note {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-top: 28px;
  max-width: 560px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}

/* Pricing */
.section-pricing { background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin-bottom: 32px;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-tier {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy-dk);
  margin-bottom: 16px;
}
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 28px; }
.price-amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy-dk);
}
.price-period { color: var(--text-muted); font-size: 1rem; }
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--bg-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* Demo Section */
.section-demo { background: var(--bg-soft); }
.demo-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 56px 64px;
  max-width: 760px;
}
.demo-headline {
  color: var(--navy-dk);
  margin-bottom: 12px;
}
.demo-sub {
  margin-bottom: 36px;
  font-size: 1rem;
}
.demo-form { }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); }
.demo-form .btn { margin-top: 8px; }
.demo-success {
  text-align: center;
  padding: 40px 0;
}
.success-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.demo-success h3 { font-family: var(--serif); color: var(--navy-dk); margin-bottom: 8px; }
.demo-success p { font-size: 0.95rem; }
.demo-alt {
  margin-top: 20px;
  font-size: 0.85rem;
  text-align: center;
}
.demo-alt a { color: var(--accent); text-decoration: none; }
.demo-alt a:hover { text-decoration: underline; }

/* Footer */
.footer {
  background: var(--navy-dk);
  padding: 52px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Responsive ── */
/* ── Hear It In Action ── */
.section-hear { background: var(--bg); }

/* Tabs */
.hear-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.hear-tab {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.hear-tab:hover { border-color: var(--accent); color: var(--accent); }
.hear-tab-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Panel visibility */
.hear-panel-hidden { display: none; }

/* Layout: player left, transcript right */
.hear-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* Player card */
.hear-player-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 28px;
}
.hear-call-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hear-call-icon { font-size: 1.8rem; }
.hear-call-title { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.hear-call-sub { color: rgba(255,255,255,0.55); font-size: 0.8rem; }

/* Audio element hidden — we use custom controls */
.hear-audio-el { display: none; }

.hear-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hear-play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.hear-play-btn:hover { background: var(--accent-h); transform: scale(1.06); }
.hear-play-btn .play-icon { color: #fff; font-size: 1rem; line-height: 1; }

.hear-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hear-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.hear-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
  transition: width 0.25s linear;
}
.hear-time { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

.hear-cta-note {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Transcript */
.hear-transcript-col { }
.hear-transcript {
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hear-transcript::-webkit-scrollbar { width: 4px; }
.hear-transcript::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.transcript-line {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background 0.2s;
  align-items: flex-start;
}
.transcript-line.tl-active {
  background: rgba(42,91,215,0.08);
}
.tl-speaker {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 2px;
  white-space: nowrap;
}
.tl-ai     { background: rgba(42,91,215,0.12); color: var(--accent); }
.tl-caller { background: rgba(200,168,75,0.12); color: var(--gold); }
.tl-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}
.transcript-line.tl-active .tl-text { color: var(--navy-dk); font-weight: 500; }

/* ── ROI Calculator ── */
.section-roi { background: var(--bg-soft); }

.roi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 56px;
  max-width: 780px;
  box-shadow: var(--shadow-lg);
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 40px;
}

.roi-input-group { display: flex; flex-direction: column; gap: 10px; }

.roi-input-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.roi-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.roi-value-display {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Slider track */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 30%, var(--border) 30%, var(--border) 100%);
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(42,91,215,0.35);
  cursor: pointer;
  transition: transform 0.1s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(42,91,215,0.35);
  cursor: pointer;
}

.roi-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 2px;
}

/* Outputs */
.roi-outputs {
  border-top: 1px solid var(--border);
  margin-bottom: 32px;
}

.roi-output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-soft);
  gap: 24px;
}

.roi-output-row-total {
  border-bottom: none;
  padding-top: 20px;
}

.roi-output-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--sans);
}

.roi-output-value {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dk);
  white-space: nowrap;
}

.roi-output-big {
  font-size: 1.6rem;
  color: #c0392b;
}

/* Footnote tooltip trigger */
.roi-footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: help;
  border-bottom: 1px dotted var(--text-muted);
  margin-left: 4px;
}

/* Payback compare block */
.roi-compare {
  background: var(--navy);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.roi-compare-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.roi-compare-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

.roi-compare-big {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #e74c3c;
}

.roi-compare-price {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #2ecc71;
}

.roi-compare-divider {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  padding: 0 8px;
  flex-shrink: 0;
}

/* CTA */
.roi-cta-wrap { text-align: center; }
.roi-cta-btn { min-width: 300px; }
.roi-cta-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 52px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cost-box { padding: 36px 28px; }
  .demo-box { padding: 36px 24px; }
  .proof-inner { gap: 0; }
  .proof-divider { display: none; }
  .proof-stat { padding: 6px 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cost-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hear-layout { grid-template-columns: 1fr; }
  .hear-transcript { max-height: 320px; }
  .hear-player-card { padding: 24px 20px; }
  .roi-card { padding: 32px 24px; }
  .roi-compare { flex-direction: column; gap: 16px; align-items: flex-start; }
  .roi-compare-divider { display: none; }
  .roi-output-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .roi-cta-btn { min-width: unset; width: 100%; }
}
