/* ─────────────────────────────────────────────────────────────────────────
   Airo marketing site.

   Light only, on purpose. Palette is Airo's own: hero green #1B7F55 for
   actions, logo green #34B67E for marks and focus, mint #5CD69A on the deep
   green #142F23. The five job-stage colours are used the way the app uses
   them: as the stage, never as decoration.

   Type: Satoshi (display, self-hosted) · DM Sans (body, the app's own face)
   · DM Mono (stage numbers, small labels).
   ───────────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/Satoshi-500.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/Satoshi-700.woff2') format('woff2'); }

:root {
  color-scheme: light only;
  --ground: #F7F8F6;
  --surface: #FFFFFF;
  --ink: #0F1A14;
  --ink-2: #43504A;
  --muted: #75827B;
  --line: #DDE4DF;
  --green: #1B7F55;
  --green-dark: #166A47;
  --logo-green: #34B67E;
  --mint: #5CD69A;
  --deep: #142F23;
  --display: 'Satoshi', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--logo-green); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 2.9vw, 2.4rem); line-height: 1.1; letter-spacing: -0.022em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--green); color: #fff; text-decoration: none;
  font: 600 16px/1 var(--body); letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -12px rgba(27,127,85,.7);
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; box-shadow: none; }
.btn--light { background: var(--mint); color: var(--deep); box-shadow: none; }
.btn--light:hover { background: #74E0AC; }
.link-down { font: 600 16px/1 var(--body); color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.link-down span { display: inline-block; transition: transform .2s ease; }
.link-down:hover span { transform: translateY(3px); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247,248,246,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__logo { display: flex; align-items: center; margin-right: auto; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font: 500 15px/1 var(--body); color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(350px, calc(66vh * .55));
  column-gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 72px);
}
.hero__copy { max-width: 640px; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); margin-top: 24px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 34px; }
.hero__demo { min-width: 0; }
.hero__demo .demo__viewport { background: none; overflow: visible; border-radius: 0; }
.hero__demo .demo__bar { max-width: 86%; margin-inline: auto; }
.hero__demo .demo__time, .hero__demo [data-act="restart"] { display: none; }

/* The rail: five stages in the app's own colours. The hero demo lights each
   stop as job #292 reaches it, and a token rides along. */
.rail {
  grid-column: 1 / -1;
  position: relative;
  list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
}
.rail li { position: relative; padding-top: 22px; cursor: pointer; min-width: 0; }
.rail li::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px;
  background: var(--c); opacity: .22; transition: opacity .35s ease;
}
.rail li.is-active::before, .rail li.is-done::before { opacity: 1; }
.rail__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px; margin-right: 10px; vertical-align: 2px;
  font: 500 12px/1 var(--mono); color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, white);
  transition: background-color .3s ease, color .3s ease;
}
.rail li.is-active .rail__n { background: var(--c); color: #fff; }
.rail__t { font: 700 1.06rem/1.25 var(--display); color: var(--muted); letter-spacing: -0.01em; transition: color .3s ease; }
.rail li.is-active .rail__t, .rail li.is-done .rail__t { color: var(--ink); }
.rail__d { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); padding-right: 12px; }
.rail__token {
  position: absolute; top: -13px; left: 0; z-index: 2;
  height: 32px; padding: 0 10px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; font: 500 12px/1 var(--mono);
  box-shadow: 0 8px 18px -8px rgba(15,26,20,.55);
  transform: translateX(var(--token-x, 0px));
  transition: transform .7s cubic-bezier(.65,.05,.36,1), background-color .4s ease;
  pointer-events: none;
}
.rail__token::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--token-c, #F43F5E); transition: background-color .4s ease; }
@media (prefers-reduced-motion: reduce) { .rail__token { transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .hero__demo { width: min(340px, 86vw); margin-inline: auto; }
}
@media (max-width: 720px) {
  .rail { gap: 4px; }
  .rail li { padding-top: 16px; }
  .rail__d { display: none; }
  .rail__n { display: none; }
  .rail__t { font-size: 12px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
  .rail li:not(.is-active) .rail__t { color: transparent; }        /* only the live stage is named on a phone */
  .rail li.is-active .rail__t { white-space: nowrap; }
  .rail li:nth-child(n+4).is-active .rail__t { position: absolute; right: 0; }
  .rail__token { display: none; }
}

/* ── The tour ──────────────────────────────────────────────────────────── */
.tour { padding-top: clamp(24px, 4vw, 48px); }
.tour__intro { max-width: 46em; font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-2); padding-bottom: clamp(28px, 4vw, 48px); }
.tour__intro b { color: var(--ink); font-weight: 600; }

.feature {
  --demo-col: min(400px, calc(78vh * .55));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--demo-col);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 6vw, 80px) 60px;
}
.feature--wide { --demo-col: min(800px, calc(78vh * 1.3)); }
.feature__copy { max-width: 30em; }
.feature__copy > p:not(.station) { margin-top: 18px; }
.feature__demo { min-width: 0; }

/* The line that runs down the page: each section draws its own stretch in its stage colour. */
.feature::before {
  content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 4px;
  background: var(--c);
}
.feature:first-of-type::before { top: clamp(36px, 6vw, 80px); border-radius: 4px 4px 0 0; }
.feature--last::before { bottom: 50%; border-radius: 0 0 4px 4px; }

.station {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font: 500 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--c);
}
.station__n {
  position: absolute; left: 0;
  width: 30px; height: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff; font: 500 13px/1 var(--mono); letter-spacing: 0;
  box-shadow: 0 0 0 6px var(--ground);
}
.station--minor::before {
  content: ''; position: absolute; left: 8px; width: 14px; height: 14px; border-radius: 5px;
  background: var(--ground); border: 4px solid var(--c);
}

/* Captions: light up in time with the demo; click one to jump there. */
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
.steps button {
  appearance: none; border: 0; background: none; text-align: left; cursor: pointer; width: 100%;
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 12px 9px 0; border-radius: 10px;
  font: 500 16px/1.4 var(--body); color: var(--muted);
  transition: color .25s ease;
}
.steps button::before {
  content: ''; flex-shrink: 0; width: 18px; height: 3px; border-radius: 3px; translate: 0 -4px;
  background: var(--line); transition: background-color .25s ease, width .25s ease;
}
.steps button:hover { color: var(--ink-2); }
.steps button.is-active { color: var(--ink); }
.steps button.is-active::before { background: var(--c); width: 30px; }

/* Wide demos (phone + a document beside it) get the full width: heading and
   paragraph above, the stage, then the captions as a stepper that echoes the rail. */
@media (min-width: 901px) {
  .feature--wide {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "station station" "head para" "demo demo" "steps steps";
    align-items: start;
    row-gap: 0;
  }
  .feature--wide .feature__copy { display: contents; }
  .feature--wide .station { grid-area: station; }
  .feature--wide h2 { grid-area: head; max-width: 14em; }
  .feature--wide .feature__copy > p:not(.station) { grid-area: para; margin-top: 6px; max-width: 32em; }
  .feature--wide .feature__demo { grid-area: demo; width: min(100%, calc(82vh * 1.3)); margin-top: clamp(28px, 3.5vw, 44px); }
  .feature--wide .steps {
    grid-area: steps; margin-top: 22px; width: min(100%, calc(82vh * 1.3));
    grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: start;
  }
  .feature--wide .steps button { flex-direction: column; gap: 12px; padding: 0 14px 0 0; font-size: 15px; }
  .feature--wide .steps button::before { width: 100%; height: 4px; translate: none; }
  .feature--wide .steps button.is-active::before { width: 100%; }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-left: 0; }
  .feature::before { display: none; }
  .station__n { position: static; box-shadow: none; }
  .station--minor::before { position: static; width: 12px; height: 12px; }
  .feature--phone .feature__demo, .feature--wide .feature__demo { width: min(400px, 100%); margin-inline: auto; }
  .feature + .feature { border-top: 1px solid var(--line); }
}

/* ── Who it's for ──────────────────────────────────────────────────────── */
.fit { background: var(--surface); border-block: 1px solid var(--line); margin-top: clamp(32px, 5vw, 64px); }
.fit__in {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
  padding-block: clamp(56px, 8vw, 104px);
}
.fit__in p + p { margin-top: 16px; }
.fit__shape { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 26px; }
.fit__shape span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 10px;
  font: 600 14px/1 var(--body); color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, white);
  border: 1px solid color-mix(in srgb, var(--c) 28%, white);
}
.fit__shape span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.fit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fit__list li { padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.fit__list li:first-child { border-top: 0; padding-top: 4px; }
.fit__list b { display: block; color: var(--ink); font: 700 1.06rem/1.3 var(--display); margin-bottom: 4px; letter-spacing: -0.01em; }
@media (max-width: 900px) { .fit__in { grid-template-columns: minmax(0, 1fr); } }

/* ── Closing call ──────────────────────────────────────────────────────── */
.close { background: var(--deep); color: #C9DDD2; }
.close__in { padding-block: clamp(64px, 9vw, 120px); text-align: left; max-width: 1240px; }
.close h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.028em; }
.close p { margin-top: 18px; max-width: 34em; font-size: clamp(1.06rem, 1.4vw, 1.2rem); }
.close .btn { margin-top: 34px; }
.close__mail { font-size: 15px !important; color: #9DB8AA; margin-top: 16px !important; }
.close__mail a { color: var(--mint); }

.foot { background: var(--deep); color: #8FAA9C; border-top: 1px solid rgba(255,255,255,.08); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px 36px; font-size: 14px; }
.foot img { height: 30px; width: auto; }
