:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #64748b;
  --line: #d9e2ec;
  --accent: #0f766e;
  --accent-2: #b45309;
  --good: #15803d;
  --bad: #b91c1c;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 340px),
    var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.status-card {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.pulse {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 7px rgba(180, 83, 9, 0.12);
}

.pulse.ok {
  background: var(--good);
  box-shadow: 0 0 0 7px rgba(21, 128, 61, 0.12);
}

.label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.endpoints {
  margin: 0;
}

.endpoints dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.endpoints dd {
  margin: 4px 0 14px;
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eef6f5;
  color: #0f766e;
  font-size: 0.9em;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.browser-demo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.call-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#start-browser-call {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

#browser-call-status {
  min-width: 92px;
  color: var(--muted);
}

.events {
  display: grid;
  gap: 10px;
  min-height: 220px;
}

.event {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.event strong {
  overflow-wrap: anywhere;
}

.event time {
  color: var(--muted);
  font-size: 0.84rem;
}

.event p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

  .status-card {
    min-width: 0;
  }

  .shell {
    width: min(100% - 20px, 1120px);
    padding: 18px 0;
  }

  .call-controls {
    justify-content: flex-start;
  }
}
