/*
 * Expeio marketing site.
 *
 * Light, quiet, typography-led. The restraint is the point: one ink colour, one
 * accent, hairline rules, and a lot of white. Lime is load-bearing only on the
 * primary button and a couple of accent marks - spend it anywhere else and it
 * stops meaning "act here".
 *
 * Lime never carries text on white (it fails contrast badly). Where lime is a
 * fill, the text on it is always the deep green ink.
 */

:root {
  /* Surfaces, lightest first. */
  --bg: #ffffff;
  --bg-soft: #fafbfa;
  --raised: #f4f6f4;
  --tint: #f6faec;          /* barely-there lime wash */
  --line: #e8ebe8;
  --line-strong: #d5dad6;

  /* Ink. */
  --fg: #0c1410;
  --muted: #5c6862;
  --faint: #8a948e;

  /* Brand. */
  --lime: #ccff33;
  --lime-hover: #c2f723;
  --ink-green: #0d2a1b;
  --ink-green-hover: #143a26;

  --bad: #b91c1c;
  --warn: #a16207;
  --ok: #15803d;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --sans: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --shell: 1180px;
  --nav-h: 72px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -0.025em; line-height: 1.14; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--ink-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink-green);
  color: #fff;
  font-weight: 600;
}

.skip:focus { left: 24px; }

/* ---------------------------------------------------------------- brand -- */

.brand { display: inline-flex; align-items: center; gap: 9px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-green);
  color: var(--lime);
  flex: none;
}

.brand-mark svg { width: 16px; height: 16px; }

.brand-word { font-size: 18px; font-weight: 680; letter-spacing: -0.03em; }

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.nav.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
  gap: 24px;
}

/* Equally spread: the link row takes every pixel between the wordmark and the
   actions, and distributes its items evenly across it. The <nav> wrapper is the
   actual flex child, so it has to grow too - growing only the <ul> inside it
   leaves the list sized to its content and the links bunched up. */
.nav-primary { display: flex; flex: 1; min-width: 0; }

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-evenly;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

/* Equal-width cells, so the centres are exactly equidistant rather than merely
   equally gapped - with labels of different lengths those are not the same
   thing, and the eye reads the centres. */
.nav-links li { flex: 1; display: flex; justify-content: center; }

.nav-links a {
  display: block;
  padding: 8px 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}

.nav-links a:hover { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-links .only-narrow { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

/* --------------------------------------------------------------- button -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 580;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:active { transform: translateY(1px); }

/* Lime fill, deep green text - the only place lime does real work. */
.btn-primary { background: var(--lime); color: var(--ink-green); }
.btn-primary:hover { background: var(--lime-hover); }

.btn-dark { background: var(--ink-green); color: #fff; }
.btn-dark:hover { background: var(--ink-green-hover); }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); }

.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ----------------------------------------------------------------- hero -- */

.hero { position: relative; padding: 96px 0 0; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: -50% 0 auto 50%;
  translate: -50% 0;
  width: 1200px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(204, 255, 51, .22), transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-copy { max-width: 880px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 6px 15px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.eyebrow b {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink-green);
  font-size: 10.5px;
  font-weight: 680;
  letter-spacing: .07em;
  text-transform: uppercase;
}

h1.hero-title {
  font-size: clamp(40px, 6.6vw, 70px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

/* A lime marker struck behind the phrase, rather than lime type - white cannot
   carry lime text at any weight. */
h1.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
  isolation: isolate;
}

h1.hero-title em::before {
  content: "";
  position: absolute;
  inset: 58% -0.1em 10% -0.1em;
  z-index: -1;
  background: var(--lime);
  border-radius: 2px;
}

.hero-sub { margin-top: 24px; max-width: 560px; font-size: 18.5px; color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--faint); }

/* ------------------------------------------------------------- app mock -- */

.mock-wrap { margin-top: 72px; padding-bottom: 104px; }

.mock {
  display: grid;
  grid-template-columns: 204px 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 20, 16, .04), 0 24px 60px -28px rgba(12, 20, 16, .22);
}

.mock-rail { background: var(--bg-soft); padding: 18px 13px; }
.mock-rail .brand { margin-bottom: 20px; }

.mock-nav { display: grid; gap: 2px; }

.mock-nav i {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 33px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

.mock-nav i::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  opacity: .45;
}

.mock-nav i.on { background: var(--lime); color: var(--ink-green); font-weight: 600; }
.mock-nav i.on::before { opacity: .8; }

.mock-main {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  background: var(--bg);
}

.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mock-head h4 { font-size: 15.5px; }

.mock-chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--faint);
}

.mock-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.tile { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }

.tile span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}

.tile b { display: block; margin-top: 6px; font-size: 20px; font-weight: 640; letter-spacing: -0.03em; }
.tile u { font-size: 11.5px; text-decoration: none; color: var(--ok); }

.mock-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }

.chart { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.chart h5 { margin: 0 0 14px; font-size: 12px; font-weight: 520; color: var(--faint); }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 104px; }

/* Two flows, two fills. Neither is a "good" or "bad" state, so neither gets a
   semantic colour - same reasoning as the app's own cashflow card. */
.bars i {
  flex: 1;
  border-radius: 3px 3px 2px 2px;
  background: var(--ink-green);
  transform-origin: bottom;
  animation: grow .7s cubic-bezier(.22, 1, .36, 1) backwards;
}

.bars i.alt { background: var(--lime); }

@keyframes grow { from { transform: scaleY(.05); } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } }

.rows { padding: 6px; border: 1px solid var(--line); border-radius: 12px; }

.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 12.5px;
}

.row + .row { border-top: 1px solid var(--line); }
.row code { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.row b { font-weight: 580; font-variant-numeric: tabular-nums; }

.pill { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 620; }
.pill.ok { background: #e7f6ec; color: var(--ok); }
.pill.wait { background: #fdf3dd; color: var(--warn); }
.pill.due { background: #fdeaea; color: var(--bad); }

/* --------------------------------------------------------------- strips -- */

.logos { padding: 24px 0; background: var(--bg-soft); border-block: 1px solid var(--line); }

.logos-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--faint);
}

.logos-inner strong { color: var(--muted); font-weight: 560; }

/* ------------------------------------------------------------- sections -- */

section { scroll-margin-top: calc(var(--nav-h) + 16px); }

.band { padding: 112px 0; }
.band-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.band-head { max-width: 660px; margin-bottom: 60px; }

.kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.band-head h2 { font-size: clamp(30px, 4vw, 42px); }
.band-head p { margin-top: 18px; font-size: 17.5px; color: var(--muted); }

/* Cards are cells in a hairline grid rather than floating boxes - fewer edges
   on screen, and nothing left to align by eye. */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { padding: 30px 26px; background: var(--bg); transition: background .18s ease; }
.card:hover { background: var(--bg-soft); }

.card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 9px;
  background: var(--tint);
  color: var(--ink-green);
}

.card-icon svg { width: 18px; height: 18px; }
.card h3 { font-size: 16px; }
.card p { margin-top: 9px; font-size: 14.5px; color: var(--muted); }

.card code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--raised);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg);
}

.speed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.speed-item { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.speed-num { padding-top: 2px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.speed-item h3 { font-size: 16px; }
.speed-item p { margin-top: 9px; font-size: 14.5px; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stat { padding: 34px 26px; background: var(--bg); }

.stat b {
  display: block;
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink-green);
  font-variant-numeric: tabular-nums;
}

.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

.cta {
  padding: 84px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--tint);
  text-align: center;
}

.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { margin: 18px auto 0; max-width: 460px; color: var(--muted); }
.cta .hero-cta { justify-content: center; }

/* --------------------------------------------------------------- footer -- */

.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin-top: 16px; max-width: 250px; font-size: 14px; color: var(--faint); }

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer ul { display: grid; gap: 11px; margin: 18px 0 0; padding: 0; list-style: none; }
.footer ul a { font-size: 14px; color: var(--muted); }
.footer ul a:hover { color: var(--fg); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

/* ------------------------------------------------------------ auth page -- */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  background: var(--tint);
  border-right: 1px solid var(--line);
}

.auth-aside blockquote { margin: 0; max-width: 420px; }

.auth-aside blockquote p {
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 580;
  letter-spacing: -0.028em;
  line-height: 1.35;
}

.auth-aside cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; color: var(--muted); }

.auth-facts { display: flex; flex-wrap: wrap; gap: 36px; }

.auth-facts div b {
  display: block;
  font-size: 21px;
  font-weight: 640;
  letter-spacing: -0.03em;
  color: var(--ink-green);
}

.auth-facts div span { font-size: 13px; color: var(--faint); }

.auth-main { display: grid; align-content: center; justify-items: center; padding: 44px 24px; }
.auth-card { width: min(392px, 100%); }
.auth-card > .brand { display: none; margin-bottom: 30px; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  font-size: 13.5px;
  color: var(--faint);
}

.auth-back:hover { color: var(--fg); }
.auth-card h1 { font-size: 28px; }
.auth-card > p.lede { margin-top: 11px; font-size: 15px; color: var(--muted); }

form.auth-form { display: grid; gap: 17px; margin-top: 32px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 540; color: var(--fg); }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-row a { font-size: 12.5px; color: var(--faint); }
.field-row a:hover { color: var(--fg); }

.input-wrap { position: relative; display: flex; }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder { color: var(--faint); }
input:hover { border-color: #b9c0ba; }
input:focus-visible { outline: none; border-color: var(--ink-green); box-shadow: 0 0 0 3px rgba(13, 42, 27, .1); }
input[aria-invalid="true"] { border-color: var(--bad); }
input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }

.input-wrap input { padding-right: 52px; }

.peek {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.peek:hover { color: var(--fg); background: var(--raised); }
.peek svg { width: 17px; height: 17px; }

.err { min-height: 16px; font-size: 12.5px; color: var(--bad); }
.err:empty { min-height: 0; }

.meter { display: grid; gap: 7px; }
.meter-track { display: flex; gap: 4px; }

.meter-track i {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background .2s ease;
}

.meter-track[data-score="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter-track[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter-track[data-score="3"] i:nth-child(-n+3) { background: var(--ok); }
.meter-track[data-score="4"] i { background: var(--ink-green); }

.meter-label { font-size: 12px; color: var(--faint); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); }
.check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink-green); }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.alert svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.alert-bad { border-color: #f3c9c9; background: #fdf4f4; color: var(--bad); }
.alert-ok { border-color: #cfe9d7; background: #f3faf5; color: var(--ok); }
.alert-info { border-color: var(--line-strong); background: var(--bg-soft); color: var(--muted); }
.alert[hidden] { display: none; }

.rule { display: flex; align-items: center; gap: 14px; margin: 24px 0; font-size: 12px; color: var(--faint); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.swap { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.swap a { color: var(--fg); font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }

.auth-foot { margin-top: 36px; text-align: center; font-size: 12.5px; color: var(--faint); }

/* --------------------------------------------------------------- motion -- */

/* Gated on .js, set by an inline script in <head> before first paint. Content
   is visible by default, so a reader with JavaScript off - or a crawler, or a
   print stylesheet - gets the whole page rather than a stack of empty bands. */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  /* inline-flex would let the "Back to site" link share its line. */
  .auth-card > .brand { display: flex; width: max-content; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 22px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -28px rgba(12, 20, 16, .35);
  }

  .nav-links[hidden] { display: none; }
  .nav-links li { flex: none; display: block; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-links a { padding: 15px 4px; font-size: 16px; color: var(--fg); }
  .nav-links .only-narrow { display: block; }
  .nav-primary { flex: 0; }
  .nav-toggle { display: flex; order: 3; }
  .nav-inner { gap: 12px; }
  .brand { margin-right: auto; }
  .nav-actions .btn-ghost { display: none; }

  .grid-3, .grid-4, .speed { grid-template-columns: 1fr; }
  .mock { grid-template-columns: 1fr; }
  .mock-rail { display: none; }
  .mock-tiles { grid-template-columns: repeat(2, 1fr); }
  .mock-split { grid-template-columns: 1fr; }
  .band { padding: 80px 0; }
  .cta { padding: 56px 24px; }
  .logos-inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-cta .btn { width: 100%; }
  .shell { padding-inline: 22px; }
}
