:root {
  color-scheme: light;
  --ink: #14211d;
  --muted: #5e6b66;
  --line: #d9e1dc;
  --surface: #f6f7f3;
  --white: #ffffff;
  --health: #167d77;
  --health-dark: #0f4f4c;
  --bank: #244c9a;
  --bank-dark: #152d63;
  --gold: #b68b2f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero {
  align-items: center;
  display: grid;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  padding: clamp(52px, 8vw, 112px) 32px;
  position: relative;
}

.hero::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-home::before {
  background:
    linear-gradient(90deg, rgba(20, 33, 29, 0.88), rgba(20, 33, 29, 0.36), rgba(20, 33, 29, 0.12)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.healthcare-hero::before {
  background:
    linear-gradient(90deg, rgba(8, 49, 47, 0.88), rgba(8, 49, 47, 0.4), rgba(8, 49, 47, 0.06)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.bank-hero::before {
  background:
    linear-gradient(90deg, rgba(12, 30, 69, 0.9), rgba(12, 30, 69, 0.46), rgba(12, 30, 69, 0.08)),
    url("https://images.unsplash.com/photo-1541354329998-f4d9a9f9297f?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero .eyebrow,
.hero h1,
.hero .lede,
.webrtc-hero .eyebrow,
.webrtc-hero h1,
.webrtc-hero .lede {
  color: var(--white);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  max-width: 9.5em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 640px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  align-items: center;
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 180ms ease, filter 180ms ease;
}

.button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.3);
  opacity: 0.48;
  transform: none;
}

.healthcare-button {
  background: var(--health);
}

.bank-button {
  background: var(--bank);
}

.secondary-button {
  background: var(--ink);
}

.danger-button {
  background: #a53737;
}

.link-section,
.feature-band,
.form-page {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(56px, 8vw, 104px) 32px;
}

.link-list,
.feature-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
}

.link-list a,
.feature-list li {
  background: var(--white);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 24px 0;
}

.link-list span,
.feature-list strong {
  font-size: 1.25rem;
}

.link-list small,
.feature-list span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.form-page {
  align-items: start;
  min-height: calc(100svh - 68px);
}

.form-intro {
  padding-top: 12px;
}

.form-intro h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.contact-form {
  background: var(--white);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.webrtc-page {
  background: var(--white);
}

.webrtc-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 49, 47, 0.86), rgba(8, 49, 47, 0.32), rgba(8, 49, 47, 0.04)),
    url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=1800&q=80") center / cover;
  display: grid;
  min-height: 58svh;
  padding: clamp(64px, 9vw, 128px) 32px 48px;
}

.bank-webrtc-hero {
  background:
    linear-gradient(90deg, rgba(12, 30, 69, 0.88), rgba(12, 30, 69, 0.34), rgba(12, 30, 69, 0.05)),
    url("https://images.unsplash.com/photo-1565373677928-90e963765eac?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.webrtc-workspace {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(56px, 8vw, 104px) 32px;
}

.webrtc-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 22px 0 0;
}

.webrtc-panel {
  border: 1px solid var(--line);
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.webrtc-form {
  display: grid;
  gap: 18px;
}

.status-strip {
  border-left: 4px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 10px 0 10px 14px;
}

.status-strip[data-state="success"] {
  border-left-color: var(--health);
}

.bank .status-strip[data-state="success"] {
  border-left-color: var(--bank);
}

.status-strip[data-state="pending"] {
  border-left-color: var(--gold);
}

.status-strip[data-state="error"] {
  border-left-color: #a53737;
}

.status-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.browser-audio {
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.browser-audio strong {
  font-size: 1rem;
}

.browser-audio span {
  color: var(--muted);
  line-height: 1.45;
}

.browser-audio audio {
  min-height: 36px;
  width: 100%;
}

.webrtc-ivr-controls {
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.webrtc-ivr-controls strong {
  font-size: 1rem;
}

.webrtc-ivr-controls p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.ivr-control-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ivr-control-grid .button,
.webrtc-ivr-controls > .button {
  min-height: 46px;
}

.call-facts {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.call-facts div {
  border-top: 1px solid var(--line);
  min-width: 0;
  padding: 16px 0;
}

.call-facts div:nth-child(-n + 2) {
  border-top: 0;
}

.call-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.call-facts dd {
  font-weight: 800;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  gap: 4px;
  list-style: none;
}

.timeline strong {
  font-size: 1rem;
}

.timeline span,
.timeline li {
  color: var(--muted);
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(22, 125, 119, 0.18);
  outline-offset: 0;
}

.bank input:focus,
.bank select:focus,
.bank textarea:focus {
  outline-color: rgba(36, 76, 154, 0.18);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
  }

  .hero {
    min-height: calc(100svh - 114px);
    padding: 48px 20px;
  }

  .hero::before {
    background-position: center;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  .link-section,
  .feature-band,
  .form-page,
  .webrtc-workspace {
    grid-template-columns: 1fr;
    padding: 52px 20px;
  }

  .webrtc-hero {
    min-height: 52svh;
    padding: 52px 20px 40px;
  }

  .webrtc-panel {
    padding: 20px;
  }

  .call-facts {
    grid-template-columns: 1fr;
  }

  .call-facts div:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }

  .call-facts div:first-child {
    border-top: 0;
  }

  .ivr-control-grid {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }
}
