:root {
  --paper: #f6f8f7;
  --ink: #10241d;
  --ink-soft: #4a5c55;
  --emerald: #10b981;
  --emerald-deep: #047857;
  --line: #d5e0db;
  --night: #0e2a22;
  --night-line: #1d4537;
  --night-text: #d9ece4;
  --night-soft: #8fb3a5;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

a { color: var(--emerald-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, .call:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* Header */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.mark {
  font-weight: 700;
  font-stretch: 118%;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.site-head nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-head nav a:hover { color: var(--ink); text-decoration: underline; }
.mark { white-space: nowrap; }
@media (max-width: 479px) { .site-head nav { display: none; } }

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 72px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 64px; padding-bottom: 96px; }
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 14ch;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 36px;
}
.demo-label {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.call {
  display: inline-block;
  font-size: clamp(2.7rem, 14vw, 5.4rem);
  white-space: nowrap;
  line-height: 1;
  font-weight: 800;
  font-stretch: 68%;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 6px solid var(--emerald);
  padding-bottom: 6px;
}
.call:hover { color: var(--emerald-deep); }
.demo-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 16px 0 0;
  max-width: 32rem;
}

/* Overnight log: the one bold element */
.log {
  background: var(--night);
  color: var(--night-text);
  border-radius: 14px;
  padding: 24px 20px 20px;
}
@media (min-width: 640px) { .log { padding: 28px 28px 24px; } }
.log-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
}
.log-head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}
.log-head span { font-size: 0.85rem; color: var(--night-soft); }
.log ol { list-style: none; margin: 0; padding: 0; }
.log li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 4px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--night-line);
}
.log time {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--night-soft);
  padding-top: 2px;
  grid-row: span 2;
}
.log .what { font-weight: 600; color: #fff; line-height: 1.4; }
.log .outcome {
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--night-text);
  display: flex;
  gap: 8px;
}
.log .outcome::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--emerald);
}
.log li.urgent .outcome::before { background: #f5b342; }
.log-foot {
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--night-line);
  font-size: 0.9rem;
  color: var(--night-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .log li { opacity: 0; animation: arrive 0.5s ease-out forwards; }
  .log li:nth-child(1) { animation-delay: 0.3s; }
  .log li:nth-child(2) { animation-delay: 0.9s; }
  .log li:nth-child(3) { animation-delay: 1.5s; }
  .log li:nth-child(4) { animation-delay: 2.1s; }
  @keyframes arrive { to { opacity: 1; } }
}

/* Sections */
.section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 32px;
  max-width: 22ch;
}
.features {
  display: grid;
  gap: 32px 48px;
  margin: 0;
}
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.features div { border-left: 3px solid var(--emerald); padding-left: 18px; }
.features dt { font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.features dd { margin: 0; color: var(--ink-soft); max-width: 30rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1;
  color: var(--emerald-deep);
  margin-bottom: 10px;
}
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); }

.about p { max-width: 38rem; margin: 0 0 16px; }
.about .contact { font-size: 1.15rem; font-weight: 600; margin-top: 24px; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-foot nav { display: flex; gap: 20px; }

/* Policy pages */
.doc {
  max-width: 44rem;
  padding-top: 32px;
  padding-bottom: 72px;
}
.doc h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.doc .effective { color: var(--ink-soft); margin: 0 0 40px; }
.doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 10px;
}
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 6px; }
.doc .callout {
  border-left: 3px solid var(--emerald);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
}
