:root {
  --field: #2236dd;
  --field-deep: #151f9c;
  --field-text: #cbd2ff;
  --ink: #0a0f2e;
  --muted: #4a5272;
  --paper: #f2f4fa;
  --white: #ffffff;
  --line: #d5daea;
  --signal: #ff5a36;
  --signal-light: #ff8a6b;
  --signal-bar: #e8421d;
  --signal-ink: #c42e0e;
  --signal-wash: #fff1ed;
  --radius: 6px;

  /* Type ramp: every font-size in this file comes from here. */
  --text-xs: 12px;
  --text-data: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-body: 17px;
  --text-lead: clamp(1.1rem, 1.5vw, 1.3rem);
  --text-md: 20px;
  --text-lg: 24px;
  --text-title: clamp(1.5rem, 2.4vw, 2rem);
  --text-subhead: clamp(2rem, 3.6vw, 3rem);
  --text-headline: clamp(2.2rem, 4.6vw, 4rem);
  --text-display: clamp(2.5rem, 5vw, 4.5rem);
  --text-figure: clamp(2.6rem, 5.6vw, 4.75rem);
  --text-giant: clamp(5rem, 16vw, 11rem);
  --gain: #ffc62b;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --brand: 'Manrope', var(--sans);
  --shell: min(1240px, calc(100% - 40px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(72px, 10vw, 128px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  word-spacing: 0.06em;
  text-wrap: balance;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gain);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

/* Header */

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  padding: 22px 0;
  color: var(--white);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--brand);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.brand span { margin-left: 0.02em; color: var(--gain); }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.main-nav a {
  color: var(--field-text);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover { color: var(--white); }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}

.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding-inline: 20px; font-size: var(--text-base); }
.button-gain { color: var(--ink); background: var(--gain); }
.button-gain:hover { background: #ffd45e; }

a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gain);
  outline-offset: 3px;
}

.case a:focus-visible,
.calc a:focus-visible,
.process a:focus-visible,
.faq-section summary:focus-visible,
.calc input:focus-visible { outline-color: var(--field); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 5px;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(96px, 12vh, 124px) 0 clamp(36px, 4vw, 56px);
  color: var(--white);
  background: var(--field);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero h1 {
  max-width: 20ch;
  font-size: var(--text-display);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-intro {
  max-width: 44ch;
  margin-top: 28px;
  color: var(--field-text);
  font-size: var(--text-lead);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 36px;
}

/* Invoice sign */

.invoice {
  color: var(--ink);
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--ink);
}

.invoice-head strong { display: block; font-size: var(--text-base); }
.invoice-head span { color: var(--field-text); font-size: var(--text-sm); }
.invoice-head .badge { color: var(--ink); }

.badge {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--signal-light);
  border-radius: 50%;
  font-size: var(--text-md);
  font-weight: 850;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.invoice table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.invoice th,
.invoice td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.invoice th:first-child, .invoice td:first-child { padding-left: 18px; }
.invoice th:last-child, .invoice td:last-child { padding-right: 18px; }
.invoice .arrow-col { width: 1%; padding-inline: 0; text-align: center; color: var(--signal-ink); }
.invoice .arrow-col svg { display: block; margin-inline: auto; }
.meta { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-xs); }
.invoice .owed { font-weight: 500; }
.invoice del { text-decoration-color: var(--signal-ink); text-decoration-thickness: 2px; }

.invoice th {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.invoice .r {
  font-family: var(--mono);
  font-size: var(--text-data);
  text-align: right;
  white-space: nowrap;
}

.invoice th.r { font-family: var(--sans); font-size: var(--text-xs); }

.invoice tr.bad td { background: var(--signal-wash); }

.note {
  display: block;
  margin-top: 4px;
  color: var(--signal-ink);
  font-size: var(--text-xs);
  font-weight: 600;
}

.invoice-result {
  padding: 18px;
  background: var(--gain);
}

.invoice-result strong { display: block; font-size: var(--text-lg); letter-spacing: -0.02em; }
.invoice-result span { font-size: var(--text-sm); font-weight: 500; }

/* Route (hero figures) */

.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(36px, 4.5vw, 56px);
  padding-top: 64px;
}

.route::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--white);
  border-radius: 999px;
  transform-origin: left;
  animation: draw 1100ms var(--ease) 150ms both;
}

.stop {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-right: 20px;
}

.stop::before {
  content: '';
  position: absolute;
  top: -64px;
  left: 0;
  width: 38px;
  height: 38px;
  background: var(--white);
  border: 8px solid var(--stop, var(--white));
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--field);
  animation: pop 500ms var(--ease) both;
}

.stop-found { --stop: var(--signal-light); }
.stop-recovered { --stop: var(--gain); }
.stop-spend::before { animation-delay: 250ms; }
.stop-found::before { animation-delay: 650ms; }
.stop-recovered::before { animation-delay: 1050ms; }

.stop-name {
  color: var(--field-text);
  font-size: var(--text-sm);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stop-value {
  margin-top: 6px;
  font-size: var(--text-figure);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stop-found .stop-value { color: var(--signal-light); }
.stop-recovered .stop-value { color: var(--gain); }
.stop-detail { margin-top: 8px; color: var(--field-text); font-size: var(--text-base); }

@keyframes draw { from { transform: scaleX(0); } }
@keyframes pop { from { transform: scale(0); } }

/* Case study */

.case { padding: var(--section) 0 0; }

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.case h2,
.calc h2,
.process h2,
.faq-section h2,
.contact h2 {
  font-size: var(--text-headline);
}

.case-intro {
  max-width: 42ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--text-lead);
}

.scale figcaption {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.scale-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.scale-label { font-size: var(--text-base); font-weight: 600; }
.scale-row b { min-width: 7.5rem; font-size: var(--text-lead); letter-spacing: -0.02em; }
.scale-row i { margin-left: 6px; color: var(--muted); font-size: var(--text-sm); font-style: normal; font-weight: 600; }

.scale-track { display: block; height: 22px; }
.scale-bar { display: block; height: 100%; border-radius: 3px; }
.scale-spend { width: 100%; background: var(--field); }
.scale-found { width: 1.7%; min-width: 4px; background: var(--signal-bar); }
.scale-recovered { width: 0.6%; min-width: 3px; background: var(--gain); box-shadow: 0 0 0 1px var(--ink); }

.found-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(56px, 8vw, 104px);
}

.found-grid h3 { font-size: var(--text-title); }

.found {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.found li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 2px solid var(--ink);
}

.found svg {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 11px;
  color: var(--ink);
  background: var(--signal);
  border-radius: 50%;
}
.found strong { display: block; font-size: var(--text-lead); letter-spacing: -0.015em; }
.found span { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-base); }

.quote {
  align-self: end;
  max-width: 26ch;
}

.quote p {
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.quote footer { margin-top: 14px; color: var(--muted); font-size: var(--text-base); }

.pooled {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-top: var(--section);
  margin-bottom: 0;
  padding: clamp(32px, 5vw, 64px);
  color: var(--white);
  background: var(--field);
  border-radius: var(--radius);
}

.pooled h3 { font-size: var(--text-subhead); }

.gains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gains strong {
  display: block;
  font-size: var(--text-figure);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gains span { display: block; margin-top: 10px; color: var(--field-text); font-size: var(--text-base); }

/* Calculator */

.calc { padding: var(--section) 0; }

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.calc-box {
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.calc label { display: block; margin-bottom: 8px; font-size: var(--text-base); font-weight: 600; }

.calc input {
  width: 100%;
  max-width: 240px;
  min-height: 56px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: var(--text-md);
  font-weight: 500;
}

.calc-out { margin-top: 28px; }

.calc-out > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.calc-out span { color: var(--muted); font-size: var(--text-base); font-weight: 600; }
.calc-out strong { font-size: var(--text-lg); letter-spacing: -0.03em; white-space: nowrap; }

.calc-out .calc-main strong {
  padding: 2px 12px;
  color: var(--ink);
  background: var(--signal);
  border-radius: var(--radius);
  font-size: var(--text-subhead);
  font-weight: 850;
}

.calc-out > div:nth-child(2) strong { background: var(--gain); padding: 2px 12px; border-radius: var(--radius); }

.calc-note { margin-top: 12px; color: var(--muted); font-size: var(--text-sm); }

/* Process: a route line */

.process {
  padding: var(--section) 0;
  color: var(--white);
  background: var(--field);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
}

.process h2 { position: sticky; top: 100px; align-self: start; max-width: 12ch; }

.line { position: relative; }

.line::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 56px;
  left: 14px;
  width: 10px;
  background: var(--white);
  border-radius: 999px;
}

.line li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 0 0 48px 64px;
}

.line li:last-child { padding-bottom: 0; }

.line li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 38px;
  height: 38px;
  background: var(--white);
  border: 8px solid var(--field);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--white);
}

.line li:last-child::before { background: var(--gain); }

.line h3 { font-size: var(--text-title); }
.line p { max-width: 36ch; margin-top: 8px; color: var(--field-text); }

.tag {
  padding: 6px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

/* FAQ */

.faq-section { padding: var(--section) 0; }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
}

.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: var(--text-lead);
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%230a0f2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { max-width: 56ch; padding: 0 0 26px; color: var(--muted); font-size: var(--text-lead); }

/* Contact */

.contact {
  padding: clamp(72px, 9vw, 112px) 0;
  color: var(--white);
  background: var(--field);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.contact p { margin-top: 14px; color: var(--field-text); font-size: var(--text-lead); }
.contact .booking-status { margin-top: 12px; font-size: var(--text-sm); }

/* Footer */

.site-footer {
  padding: 28px 0;
  color: var(--field-text);
  background: var(--ink);
}

.site-footer p { margin: 0; font-size: var(--text-sm); }
.brand-footer { color: var(--white); font-size: var(--text-lg); }

/* 404 */

.not-found-page { color: var(--white); background: var(--field); }

.not-found {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  width: var(--shell);
  margin-inline: auto;
}

.not-found strong { font-size: var(--text-giant); font-weight: 850; letter-spacing: -0.04em; line-height: 0.9; color: var(--gain); }
.not-found h1 { font-size: var(--text-subhead); }
.not-found p { color: var(--field-text); font-size: var(--text-lead); }

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .case-grid,
  .found-grid,
  .pooled,
  .calc-grid,
  .process-grid,
  .faq-grid { grid-template-columns: 1fr; }

  .found { grid-column: auto; grid-row: auto; }
  .quote { max-width: 30ch; }
  .process h2 { position: static; }
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 720px) {
  body { font-size: var(--text-base); }

  .route {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 0 0 64px;
  }

  .route::before {
    top: 14px;
    bottom: 14px;
    left: 14px;
    right: auto;
    width: 10px;
    height: auto;
    transform-origin: top;
  }

  .stop { padding-right: 0; }
  .stop::before { top: 6px; left: -64px; }

  .scale-row { grid-template-columns: 1fr auto; }
  .scale-track { grid-column: 1 / -1; grid-row: 2; }
  .scale-row b { min-width: 0; }

  .found { grid-template-columns: 1fr; }
  .gains { grid-template-columns: 1fr; }
  .line li { padding-left: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route::before, .stop::before { animation: none; }
  .button, .faq summary::after { transition: none; }
}
