:root {
  --bg: oklch(0.16 0.025 255);
  --bg-raised: oklch(0.2 0.03 255);
  --bg-sunken: oklch(0.13 0.02 255);
  --bg-strip: oklch(0.12 0.02 255);
  --bg-input: oklch(0.16 0.02 255);
  --bg-bubble: oklch(0.24 0.02 255);

  --border: oklch(0.28 0.02 255);
  --border-soft: oklch(0.26 0.02 255);
  --border-input: oklch(0.34 0.02 255);
  --border-divider: oklch(0.3 0.02 255);

  --text: oklch(0.96 0.006 255);
  --text-body: oklch(0.82 0.015 255);
  --text-body-2: oklch(0.8 0.015 255);
  --text-body-3: oklch(0.78 0.015 255);
  --text-body-4: oklch(0.75 0.015 255);
  --text-muted: oklch(0.7 0.02 255);
  --text-muted-2: oklch(0.65 0.02 255);
  --text-muted-3: oklch(0.6 0.02 255);
  --text-muted-4: oklch(0.55 0.02 255);
  --text-strong: oklch(0.85 0.01 255);
  --text-white-strong: oklch(0.9 0.005 255);

  --amber: oklch(0.75 0.15 55);
  --amber-hover: oklch(0.8 0.15 55);
  --amber-text: oklch(0.16 0.03 55);
  --cyan: oklch(0.75 0.12 220);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Public Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  width: 100%;
  overflow-x: hidden;
}

::selection {
  background: oklch(0.75 0.15 55 / 0.35);
}

a {
  color: inherit;
}

ul {
  margin: 0;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

/* ---------- HERO ---------- */

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-topbar__tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 24px;
  width: auto;
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 12px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-copy p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--text-body);
  margin: 0;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--amber-text);
}

.btn-primary:hover {
  background: var(--amber-hover);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  border: 1.5px solid oklch(0.4 0.02 255);
}

.btn-secondary:hover {
  border-color: oklch(0.6 0.02 255);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.cta-call-button {
  width: fit-content;
}

.hero-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-2);
  font-weight: 600;
}

.hero-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.hero-card__row-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-card__row-label--amber { color: var(--amber); }
.hero-card__row-label--cyan { color: var(--cyan); }
.hero-card__row-label--neutral { color: var(--text-white-strong); }

.hero-card__row-detail {
  font-size: 13px;
  color: var(--text-muted-3);
  text-align: right;
}

/* ---------- DEMO ---------- */

.demo-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-kicker {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-kicker__eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 600;
}

.section-kicker__eyebrow--muted {
  color: var(--text-muted);
}

.section-kicker h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0;
  font-weight: 600;
}

@keyframes lw-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lw-reveal {
  animation: lw-reveal 0.5s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .lw-reveal {
    animation: none !important;
  }
}

.call-log {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.call-log__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  gap: 12px;
  flex-wrap: wrap;
}

.call-log__header-meta {
  font-size: 13px;
  color: var(--text-muted-3);
}

.call-log__header-time {
  font-size: 13px;
  color: var(--text-muted-3);
  font-family: var(--font-display);
}

.call-log__note {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.call-log__note-label {
  font-size: 12px;
  color: var(--text-muted-4);
}

.call-log__note-body {
  font-size: 15px;
  color: var(--text-body-2);
}

.bubble {
  max-width: 80%;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bubble--caller {
  align-self: flex-start;
  background: var(--bg-bubble);
}

.bubble--caller .bubble__label {
  color: var(--text-muted-3);
}

.bubble--agent {
  align-self: flex-end;
  background: oklch(0.75 0.12 220 / 0.16);
  border: 1px solid oklch(0.75 0.12 220 / 0.4);
}

.bubble--agent .bubble__label {
  color: var(--cyan);
}

.bubble__label {
  font-size: 12px;
}

.bubble__text {
  font-size: 15px;
  line-height: 1.4;
}

.call-log__flag {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.call-log__flag--emergency {
  background: oklch(0.75 0.15 55 / 0.14);
  border: 1px solid oklch(0.75 0.15 55 / 0.45);
}

.call-log__flag--confirmed {
  background: var(--bg-raised);
  border: 1px solid var(--border-divider);
}

.call-log__flag-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.call-log__flag--emergency .call-log__flag-tag {
  color: var(--amber);
}

.call-log__flag--confirmed .call-log__flag-tag {
  color: var(--text-strong);
}

.call-log__flag-detail {
  font-size: 14px;
  color: var(--text-strong);
}

.call-log__flag--confirmed .call-log__flag-detail {
  color: var(--text-body-2);
}

.demo-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted-4);
  margin: 0;
}

/* ---------- STAT STRIP ---------- */

.stat-strip {
  background: var(--bg-strip);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stat-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
}

.stat__value--amber { color: var(--amber); }
.stat__value--cyan { color: var(--cyan); }
.stat__value--white { color: var(--text-white-strong); }

.stat__label {
  font-size: 14px;
  color: var(--text-body-4);
}

/* ---------- TRIAGE ---------- */

.triage-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.triage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.triage-card {
  background: var(--bg-raised);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1.5px solid transparent;
}

.triage-card--emergency {
  border-color: oklch(0.75 0.15 55 / 0.5);
}

.triage-card--routine {
  border-color: oklch(0.75 0.12 220 / 0.5);
}

.triage-card__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  width: fit-content;
}

.triage-card--emergency .triage-card__badge {
  color: var(--amber);
  background: oklch(0.75 0.15 55 / 0.15);
}

.triage-card--routine .triage-card__badge {
  color: var(--cyan);
  background: oklch(0.75 0.12 220 / 0.15);
}

.triage-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
  font-weight: 600;
}

.triage-card ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.4;
}

/* ---------- TIMELINE ---------- */

.timeline-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.timeline-section .section-kicker {
  margin-bottom: 36px;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-step {
  display: grid;
  grid-template-columns: 70px 24px 1fr;
  column-gap: 4px;
}

.timeline-step__time {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted-2);
  text-align: right;
  padding-top: 2px;
  white-space: nowrap;
}

.timeline-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-step__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.timeline-step__dot--neutral { background: var(--text-muted-3); }
.timeline-step__dot--cyan { background: var(--cyan); }
.timeline-step__dot--amber { background: var(--amber); }

.timeline-step__line {
  width: 2px;
  flex: 1;
  background: var(--border);
}

.timeline-step:last-child .timeline-step__line {
  background: transparent;
}

.timeline-step__body {
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-step__body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.timeline-step__body p {
  margin: 0;
  font-size: 15px;
  color: var(--text-body-3);
  line-height: 1.4;
}

/* ---------- LEAD CAPTURE ---------- */

.lead-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.lead-section__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.lead-section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0;
  font-weight: 600;
}

.lead-section p {
  margin: 0;
  font-size: 16px;
  color: var(--text-body-3);
  max-width: 480px;
  line-height: 1.5;
}

.lead-success {
  background: oklch(0.75 0.12 220 / 0.15);
  border: 1px solid oklch(0.75 0.12 220 / 0.5);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 15px;
  margin-top: 8px;
}

.lead-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.lead-form input {
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-body);
  width: 100%;
}

.lead-form input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.lead-form button {
  margin-top: 4px;
}

.hidden {
  display: none;
}

/* ---------- FOOTER ---------- */

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
}

.footer-email {
  color: var(--cyan);
  text-decoration: none;
  font-size: 14px;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-email:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .triage-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline-step {
    grid-template-columns: 56px 20px 1fr;
  }
}

@media (max-width: 420px) {
  .btn,
  .cta-call-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
  }
}
