/* Human-facing pages. Loaded after landing.css, which supplies the tokens,
   header and buttons. Rules for these pages live in WEBSITE-RULES.md. */

.hp main { display: block; }
.hp .hp-wrap {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hp section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.hp section + section { border-top: 1px solid var(--rule); }

.hp .hp-kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.hp h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
  text-wrap: balance;
}
.hp h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 22ch;
  text-wrap: balance;
}
.hp h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.hp p { font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hp .hp-lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  max-width: 34ch;
  margin-top: 1.4rem;
}
.hp .hp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hp .hp-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  font-weight: 600;
  color: var(--accent-ink);
}
.hp .hp-text-link:hover { text-decoration: underline; }

/* Hero: words left, one picture right */
.hp .hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hp .hp-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.hp .hp-figure svg { display: block; width: 100%; height: auto; }
.hp .fig-box { fill: var(--surface-recessed); stroke: var(--rule-strong); }
.hp .fig-hub { fill: var(--accent); }
.hp .fig-gate { fill: var(--mint); }
.hp .fig-line { stroke: var(--rule-strong); stroke-width: 2; fill: none; }
.hp .fig-arrow { fill: var(--rule-strong); }
.hp .fig-text { fill: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 600; }
.hp .fig-text-on { fill: #ffffff; font-family: var(--sans); font-size: 15px; font-weight: 700; }
.hp .fig-note { fill: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 500; }

/* Timeline: what goes wrong today */
.hp .hp-head { margin-bottom: 2.5rem; }
.hp .hp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.hp .hp-timeline li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.hp .hp-time {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.hp .hp-timeline li.is-loss { border-color: var(--accent-border); background: var(--accent-soft); }
.hp .hp-timeline p { margin-top: 0.4rem; font-size: 1rem; }

/* Three things it does */
.hp .hp-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.hp .hp-three p { margin-top: 0.5rem; font-size: 1rem; }
.hp .hp-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-ink);
  margin-bottom: 0.9rem;
}

/* Path: laptop to fleet, left to right */
.hp .hp-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr);
  align-items: center;
}
.hp .hp-step {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.5rem;
  height: 100%;
}
.hp .hp-step p { margin-top: 0.4rem; font-size: 1rem; }
.hp .hp-arrow {
  justify-self: center;
  color: var(--rule-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.hp .hp-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; padding: 0; list-style: none; }
.hp .hp-chips li {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

/* Closing band */
.hp .hp-close {
  background: var(--closing-bg);
  border-top: 0;
  text-align: center;
}
.hp .hp-close h2 { color: var(--closing-ink); margin-inline: auto; }
.hp .hp-close p { color: var(--closing-ink); margin: 1rem auto 0; max-width: 36ch; text-wrap: balance; }
.hp .hp-close .hp-actions { justify-content: center; }
.hp .hp-close .hp-text-link { color: var(--closing-ink); text-decoration: underline; }
.hp .hp-cmd {
  margin: 2rem auto 0;
  max-width: 100%;
  width: fit-content;
  background: var(--closing-surface);
  border: 1px solid var(--closing-rule);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.2rem;
  overflow-x: auto;
  text-align: left;
}
.hp .hp-cmd code {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--closing-ink);
  white-space: pre;
}

.hp .hp-foot {
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--muted);
}
.hp .hp-foot a { color: var(--ink-2); font-weight: 600; }
.hp .hp-foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .hp .hp-hero-grid,
  .hp .hp-timeline,
  .hp .hp-three { grid-template-columns: minmax(0, 1fr); }
  .hp .hp-path { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .hp .hp-arrow { transform: rotate(90deg); padding-block: 0.25rem; }
  .hp h1, .hp h2 { max-width: none; }
  .hp .mh-nav a[href^="#"] { display: none; }
}
