/* Typefaces are served from this site (latin subsets, SIL Open Font License;
   license texts are in assets/fonts). */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/space-grotesk-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
}

/* Brand values live here. Change them in one place. */
:root {
  --accent: #FF4B1F;
  --on-accent: #101114;
  --bg: #F4F3EF;
  --ink: #101114;
  --muted: #55575E;
  --soft: #EAE8E1;
  --panel: #101114;
  --panel-ink: #F4F3EF;
  --panel-muted: #A6A8AE;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --ink: #F4F3EF;
    --muted: #A6A8AE;
    --soft: #1B1C21;
    --panel: #F4F3EF;
    --panel-ink: #101114;
    --panel-muted: #55575E;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 1000px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.button {
  display: inline-block;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 4px;
}

.button.is-soon,
.site-nav .nav-button.is-soon {
  cursor: default;
}

.soon-note {
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.actions-large .button { font-size: 18px; padding: 18px 28px; }
.actions-large .text-link { font-size: 18px; }

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-symbol {
  position: absolute;
  right: -6%;
  top: -30px;
  width: 52%;
  max-width: 720px;
  height: auto;
  color: var(--accent);
}

.site-header {
  position: relative;
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.site-header .wordmark { font-size: 28px; padding: 6px 0; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

/* Links get a solid ground so they stay readable over the symbol. */
.site-nav a {
  text-decoration: none;
  background: var(--bg);
  padding: 12px 10px;
  border-radius: 4px;
}

.site-nav .nav-button {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 4px;
}

.hero-main {
  position: relative;
  flex-grow: 1;
  padding-top: 40px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 48px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 10.4vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 1100px;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 48px;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}

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

.hero-copy p {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  max-width: 520px;
}

/* Decision card (an illustration, not a control) */

.card {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-row .card { flex: 0 1 400px; min-width: 0; }

.card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--panel-muted);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.card-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--panel-muted);
}

.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  padding: 0 20px;
  border: 1.5px solid var(--panel-ink);
}

.chip-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.strip {
  position: relative;
  background: var(--accent);
  color: var(--on-accent);
  padding: 18px 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
}

/* Sections */

.section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.problem { padding-top: 112px; padding-bottom: 96px; }
.how { padding-top: 64px; padding-bottom: 112px; }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-start;
}

.split > * { flex: 1 1 320px; min-width: 0; }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
}

.loop {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.loop li { padding: 16px 0; border-top: 2px solid var(--ink); }
.loop li:last-child { border-bottom: 2px solid var(--ink); }
.loop .quiet { color: var(--muted); }
.loop mark { background: var(--accent); color: var(--on-accent); padding: 2px 10px; }

.steps { display: flex; flex-wrap: wrap; gap: 40px 32px; }

.steps li {
  flex: 1 1 280px;
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.steps h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.steps p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Example */

.example { background: var(--panel); color: var(--panel-ink); }
.example .section { padding-top: 104px; padding-bottom: 104px; }
.example .label { color: var(--panel-muted); }
.example .display { max-width: none; }

.timeline { display: flex; flex-wrap: wrap; gap: 32px 24px; }

.timeline li {
  flex: 1 1 170px;
  min-width: 0;
  border-top: 2px solid var(--panel-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.45;
}

.timeline .who {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  color: var(--panel-muted);
}

.timeline .you { border-top-color: var(--accent); }

.timeline .you .who {
  font-weight: 500;
  background: var(--accent);
  color: var(--on-accent);
  padding: 2px 8px;
  align-self: flex-start;
}

/* Agents and team */

.pair {
  padding-top: 112px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 72px 64px;
}

.pair > div {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pair h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.pair p:not(.label) {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
}

.facts { font-family: var(--font-mono); font-size: 14px; }
.facts li { padding: 14px 0; border-top: 1px solid var(--ink); }
.facts li:last-child { border-bottom: 1px solid var(--ink); }

/* Mobile */

.mobile { background: var(--soft); }

.mobile-inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
}

.mobile-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-copy .lead { max-width: 460px; }

.phone-holder {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.phone {
  width: 280px;
  max-width: 100%;
  height: 520px;
  border: 3px solid var(--ink);
  border-radius: 40px;
  background: var(--bg);
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.phone .card { padding: 16px; gap: 10px; }
.phone .card-meta { font-size: 11px; }
.phone .card-title { font-size: 18px; }
.phone .card-body { font-size: 13px; line-height: 1.45; }

.phone-question {
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.phone-question .card-meta { color: var(--muted); font-weight: 400; }

.phone-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  border-top: 1.5px solid var(--ink);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.phone-tabs .on { color: var(--ink); font-weight: 500; }

/* Open source */

.open { background: var(--accent); color: var(--on-accent); }

.open-inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 64px;
}

.open-inner > div {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.open .label { color: var(--on-accent); }
.open .lead { color: var(--on-accent); max-width: 480px; }
.open .button { background: #101114; color: #F4F3EF; }
.open a:focus-visible { outline-color: #101114; }

/* Closing */

.closing {
  padding-top: 128px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 176px);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.site-footer { border-top: 2px solid var(--ink); }

.footer-inner {
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.footer-inner .wordmark { font-size: 24px; }
.footer-inner .note { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { padding: 12px 0; }

@media (max-width: 600px) {
  .hero-symbol { width: 56%; right: -12%; top: 44px; }
  .site-nav .nav-optional { display: none; }
  .problem { padding-top: 80px; padding-bottom: 64px; }
  .how { padding-top: 48px; padding-bottom: 80px; }
  .example .section, .mobile-inner, .open-inner { padding-top: 72px; padding-bottom: 72px; }
  .pair { padding-top: 80px; padding-bottom: 72px; }
  .closing { padding-top: 88px; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
