/* ColdCallingCrew components. Loaded after tokens.css. Every value comes from a token. */
html { hyphens: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 18px; line-height: 28px; background: var(--paper); color: var(--ink); font-stretch: 100%; }
.display, .h1, .h2 { font-stretch: 106%; hyphens: manual; text-wrap: balance; }
.h3 { font-stretch: 102%; }
.figure-xl, .figure, .figure-sm, .ccc-tnum { font-variant-numeric: tabular-nums lining-nums; }
.ccc-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-6); }
.ccc-stack { display: grid; gap: var(--space-4); padding: var(--space-6); }
.ccc-pad { padding: var(--space-6); }
.ccc-band { padding: var(--space-8) var(--space-6); background: var(--paper); color: var(--ink); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Button */
.ccc-btn { font: inherit; font-weight: 700; font-size: 18px; line-height: 22px; min-height: 52px; padding: 13px var(--space-6); border-radius: var(--radius-control); border: 2px solid var(--ink); background: transparent; color: var(--ink); display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; text-decoration: none; text-align: left; }
.ccc-btn-primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.ccc-btn-quiet { border-color: transparent; padding-left: 0; padding-right: 0; min-height: 44px; color: var(--signal-ink); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.ccc-btn[disabled] { border-style: dashed; border-color: var(--line-control); background: transparent; color: var(--ink-muted); cursor: not-allowed; }
.ccc-btn svg { flex: none; }
.ccc-btn-wrap { display: inline-grid; gap: var(--space-2); justify-items: start; }
.ccc-micro { font-size: 15px; line-height: 22px; color: var(--ink-muted); max-width: 40ch; }

/* Caller card */
.ccc-caller { background: var(--surface); border: 1px solid var(--rule); max-width: 380px; }
.ccc-photo { aspect-ratio: 4 / 3; display: block; width: 100%; object-fit: cover; background: var(--wash); }
.ccc-photo-empty { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: var(--space-4); color: var(--ink-muted); font-size: 14px; line-height: 20px; background: repeating-linear-gradient(135deg, var(--wash) 0 14px, var(--surface) 14px 28px); }
.ccc-caller-body { padding: var(--space-6); }
.ccc-caller-name { margin: 0; font-size: 24px; line-height: 30px; font-weight: 750; }
.ccc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-4); margin: var(--space-4) 0 0; font-size: 15px; line-height: 22px; }
.ccc-dl dt { color: var(--ink-muted); }
.ccc-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ccc-foot { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Transcript */
.ccc-transcript { display: grid; grid-template-columns: 64px 1fr; row-gap: var(--space-4); margin: 0; max-width: 820px; }
.ccc-t { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 650; color: var(--signal-ink); padding-top: 6px; }
.ccc-line { hyphens: manual; margin: 0; font-family: var(--font-speech); font-style: italic; font-size: 24px; line-height: 34px; color: var(--ink); }
.ccc-line.is-callee { color: var(--ink-muted); }
.ccc-who { display: block; font-family: var(--font-sans); font-style: normal; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ccc-source { grid-column: 1 / -1; font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: var(--space-2) 0 0; }

/* Call player */
.ccc-player { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 820px; }
.ccc-play { width: 52px; height: 52px; flex: none; border-radius: var(--radius-round); border: 0; background: var(--signal-ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.ccc-player-title { font-weight: 650; font-size: 16px; line-height: 22px; }
.ccc-player-meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ccc-player-track { flex: 1; height: 4px; background: var(--rule); position: relative; min-width: 80px; }
.ccc-player-track i { position: absolute; inset: 0 auto 0 0; background: var(--signal-ink); }
.ccc-player.is-error .ccc-play { background: transparent; border: 2px dashed var(--line-control); color: var(--ink-muted); cursor: not-allowed; }

/* Price block */
.ccc-price { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: var(--space-4) 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); align-items: baseline; max-width: 560px; }
.ccc-price-amount { font-size: 34px; line-height: 38px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ccc-price-terms { font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ccc-price-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }

/* Status tag */
.ccc-tag { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 650; padding: 4px 10px; border-radius: var(--radius-control); border: 1px solid currentColor; color: var(--ink); background: var(--surface); }
.ccc-tag-verified { color: var(--signal-ink); }
.ccc-tag-stop { color: var(--flag); background: var(--flag-wash); }
.ccc-tag-planned { color: var(--ink-muted); border-style: dashed; }

/* Held definition */
.ccc-def { border: 2px solid var(--ink); background: var(--surface); padding: var(--space-6) var(--space-8); max-width: 460px; }
.ccc-def h3 { margin: 0 0 var(--space-3); }
.ccc-def ol { margin: 0; padding-left: 22px; }
.ccc-def li { margin-bottom: var(--space-2); }
.ccc-def p { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin: var(--space-3) 0 0; }

/* KPI row */
.ccc-kpis { border-top: 2px solid var(--ink); }
.ccc-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.ccc-kpi { padding: var(--space-4) var(--space-3) var(--space-3) 0; }
.ccc-kpi b { display: block; font-size: 34px; line-height: 38px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ccc-kpi span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ccc-kpi.is-empty b { color: var(--ink-muted); font-weight: 400; }
.ccc-kpi .is-down { color: var(--flag); font-size: 14px; font-weight: 650; display: block; }
.ccc-kpi-src { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: var(--space-2) 0 0; }

/* Tally ledger */
.ccc-ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ccc-ledger th { font-size: 14px; font-weight: 600; color: var(--ink-muted); text-align: left; padding: 0 var(--space-2) var(--space-2) 0; border-bottom: 2px solid var(--ink); }
.ccc-ledger td { padding: var(--space-3) var(--space-2) var(--space-3) 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ccc-ledger .num { text-align: right; }
.ccc-ledger td.big { font-size: 28px; line-height: 32px; font-weight: 800; }
.ccc-ledger tr.is-stop td { border-bottom: 2px solid var(--flag); }
.ccc-ledger svg { display: block; }
.ccc-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: var(--space-4); }
.ccc-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Pilot timeline */
.ccc-pilot { max-width: 720px; }
.ccc-weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--space-1); margin: var(--space-3) 0; }
.ccc-week { height: 40px; border: 1px solid var(--line-control); display: grid; place-items: center; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.ccc-week.is-done { background: var(--signal-ink); border-color: var(--signal-ink); color: var(--paper); }
.ccc-week.is-now { border: 2px solid var(--ink); color: var(--ink); }
.ccc-week.is-stop { box-shadow: inset 0 -4px 0 var(--flag); }
.ccc-pilot-rule { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin: 0; }
.ccc-pilot-rule b { color: var(--ink); }

/* Compliance strip */
.ccc-compliance { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4) var(--space-8); padding: var(--space-6) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ccc-compliance h4 { margin: 0 0 var(--space-1); font-size: 15px; line-height: 20px; font-weight: 700; }
.ccc-compliance p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* Stepper */
.ccc-stepper { max-width: 560px; }
.ccc-stepper-top { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.ccc-stepper-top span { color: var(--ink-muted); }
.ccc-progress { height: 6px; background: var(--rule); margin: var(--space-2) 0 var(--space-6); }
.ccc-progress i { display: block; height: 100%; background: var(--signal-ink); }

/* Field */
.ccc-field { display: grid; gap: var(--space-2); max-width: 480px; }
.ccc-field label { font-size: 15px; line-height: 20px; font-weight: 650; }
.ccc-field input, .ccc-field textarea { font: inherit; min-height: 52px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-control); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
.ccc-field .ccc-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ccc-field.is-error input { border: 2px solid var(--flag); background: var(--flag-wash); }
.ccc-field .ccc-error { font-size: 14px; line-height: 20px; color: var(--flag); font-weight: 650; display: flex; gap: var(--space-2); align-items: center; }

/* Lesson card */
.ccc-lessons { display: grid; gap: 0; max-width: 640px; border-top: 1px solid var(--rule); }
.ccc-lesson { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.ccc-lesson-no { font-size: 15px; font-weight: 700; color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.ccc-lesson-title { font-weight: 650; line-height: 24px; }
.ccc-lesson-meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ccc-lesson.is-locked .ccc-lesson-title, .ccc-lesson.is-locked .ccc-lesson-no { color: var(--ink-muted); }

/* Earnings example */
.ccc-earn { max-width: 520px; border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.ccc-earn-eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); font-variant-numeric: tabular-nums; }
.ccc-earn-eq b { font-size: 34px; line-height: 38px; font-weight: 800; }
.ccc-earn-eq span { color: var(--ink-muted); }
.ccc-earn p { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin: var(--space-3) 0 0; }

/* Language switch */
.ccc-lang { display: inline-flex; border: 1px solid var(--line-control); border-radius: var(--radius-control); }
.ccc-lang a { min-width: 44px; min-height: 44px; display: grid; place-items: center; font-size: 15px; font-weight: 650; color: var(--ink); text-decoration: none; }
.ccc-lang a[aria-current="true"] { background: var(--action); color: var(--on-action); }

/* Header */
.ccc-header { display: flex; align-items: center; gap: var(--space-6); min-height: 76px; padding: 0 var(--space-6); border-bottom: 1px solid var(--rule); background: var(--paper); flex-wrap: wrap; }
.ccc-brand { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 750; font-stretch: 112%; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.ccc-nav { display: flex; gap: var(--space-6); margin-left: auto; font-size: 16px; flex-wrap: wrap; }
.ccc-nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ccc-phone { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.ccc-phone.is-missing { border: 1px dashed var(--line-control); padding: 6px 10px; color: var(--ink-muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 600px) {
  .display { font-size: 40px; line-height: 42px; }
  .h1 { font-size: 34px; line-height: 38px; }
  .h2 { font-size: 28px; line-height: 32px; }
  body { font-size: 17px; line-height: 26px; }
  .ccc-transcript { grid-template-columns: 48px 1fr; }
  .ccc-line { font-size: 20px; line-height: 29px; }
}
