/* neoworkjourney.com — one stylesheet.
   Tokens come from the apps: the driver app's navy ground and the shared
   10px radius. The accent is the wordmark's pink; the logo's other colour
   is a deep indigo that disappears on navy, so it is not used. Emerald
   stays only where green means a status (early, on time, in the box).
   Type is the site's own. */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/familjen-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-italic.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-line: #334155;
  --ink-on-navy: #f1f5f9;
  --muted-on-navy: #94a3b8;
  --paper: #f7f8fa;
  --paper-2: #ffffff;
  --ink: #15202e;
  --muted: #5c6b7c;
  --line: #d9dee5;
  --accent: #f018b0;
  --accent-hover: #ff3ac0;
  --accent-ink: #b0127f;
  --on-accent: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, white);
  --emerald: #10b981;
  --emerald-ink: #0b7a55;
  --amber: #e8a95c;
  --radius: 10px;
  --font-display: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 72rem;
  --prose: 46rem;
  --header-h: 4rem;
  /* Motion: short, small, ease-out. Only transform and opacity animate, so
     nothing reflows after paint and a cheap tablet keeps up. */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: .15s;
  --dur: .25s;
  --dur-slow: .45s;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--accent); color: var(--on-accent); padding: .5rem .75rem; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 1rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--prose { width: min(100% - 2.5rem, var(--prose)); margin-inline: auto; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .6rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); transition-duration: .06s; }
.button--primary { background: var(--accent); color: var(--on-accent); }
.button--primary:hover { background: var(--accent-hover); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.button--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.button--ghost:hover { border-color: var(--muted); }
.button--lg { min-height: 3.25rem; padding: .8rem 1.5rem; font-size: 1.05rem; }
.on-navy .button--ghost { border-color: var(--navy-line); color: var(--ink-on-navy); }
.on-navy .button--ghost:hover { border-color: var(--muted-on-navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .35); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
/* The wordmark is the brand's own artwork; the 200×50 source is shown at
   half size so it stays sharp on 2× screens. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { position: relative; text-decoration: none; font-weight: 500; color: var(--muted); padding: .25rem 0; border-bottom: 2px solid transparent; transition: color var(--dur-fast); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.site-nav__actions { display: flex; align-items: center; gap: .6rem; margin-left: .5rem; }
.nav-toggle { display: none; }

@media (max-width: 47rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s;
  }
  .nav-toggle__bar::before { position: absolute; top: -6px; }
  .nav-toggle__bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  /* Browsers that can transition display fade the menu in and out; the
     rest snap, as before. */
  .site-nav { opacity: 0; transform: translateY(-6px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), display var(--dur) allow-discrete; }
  .site-nav.is-open { opacity: 1; transform: none; @starting-style { opacity: 0; transform: translateY(-6px); } }
  .nav-link { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent-ink); }
  .site-nav__actions { flex-direction: column; align-items: stretch; margin: 1rem 0 0; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--navy, .on-navy { background: var(--navy); color: var(--ink-on-navy); }
.section--paper { background: var(--paper); }
.section--white { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: 2.5rem; }
.section__head p { margin-top: .9rem; font-size: 1.1rem; color: var(--muted); }
.on-navy .section__head p, .on-navy .muted { color: var(--muted-on-navy); }
.eyebrow { display: inline-block; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .9rem; }
.on-navy .eyebrow { color: var(--accent); }
.muted { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.hero__copy p { margin-top: 1.25rem; font-size: 1.2rem; max-width: 34rem; color: var(--muted-on-navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin-top: 1rem; font-size: .9rem; color: var(--muted-on-navy); }
.hero__devices { position: relative; display: flex; justify-content: flex-end; padding-bottom: 3rem; }
.phone { width: min(15rem, 42vw); border-radius: 2rem; padding: .55rem; background: #05080f; border: 1px solid #263248; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.phone img { border-radius: 1.5rem; }
.tablet { width: min(24rem, 70vw); border-radius: 1.4rem; padding: .8rem; background: #05080f; border: 1px solid #263248; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.tablet img { border-radius: .8rem; }
.hero__devices .tablet { transform: rotate(2deg); }
.hero__devices .phone { position: absolute; left: 0; bottom: 0; width: min(11rem, 32vw); transform: rotate(-4deg); }
@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__devices { margin-top: 1rem; justify-content: center; padding-left: 4rem; }
}

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 56rem) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card--link { text-decoration: none; display: block; transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.card--link:hover { border-color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(15, 23, 42, .35); }
.card--link .more { display: inline-block; margin-top: .9rem; color: var(--accent-ink); font-weight: 600; font-size: .92rem; }
.on-navy .card { background: var(--navy-2); border-color: var(--navy-line); }
.on-navy .card p { color: var(--muted-on-navy); }

/* Before / after (the paper sheet) */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 56rem) { .compare { grid-template-columns: 1fr; } }
.compare .card dt { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.compare .card dd { margin: .3rem 0 0; }
.compare .card dd + dt { margin-top: 1.1rem; }
.compare .card dd.good { color: var(--ink); font-weight: 500; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
@media (max-width: 56rem) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-weight: 600;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); }
.on-navy .step p { color: var(--muted-on-navy); }

/* The stop row: the app's vernacular, shown the way the app shows it */
.stop-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between;
  padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--navy-line);
  color: var(--ink-on-navy);
}
.stop-row + .stop-row { margin-top: .6rem; }
.stop-row--current { border-color: var(--accent); }
.stop-row .name { font-weight: 600; }
.stop-row .target { color: var(--muted-on-navy); font-size: .92rem; }
.stop-row .times { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .92rem; }
.stop-row .late { color: var(--amber); }
.stop-row .early { color: var(--emerald); }

/* Band with a phone beside copy */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 56rem) { .band { grid-template-columns: 1fr; } }
.band .phone { margin-inline: auto; transform: none; }
.band ul { padding-left: 1.2rem; margin: 1.25rem 0 0; display: grid; gap: .5rem; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { max-width: 30rem; margin-inline: auto; }
.cta p { max-width: 36rem; margin: 1rem auto 0; }
.cta .hero__actions { justify-content: center; }

/* Page header */
.page-header { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-header p { margin-top: 1rem; font-size: 1.15rem; max-width: 40rem; color: var(--muted-on-navy); }

/* Feature sections */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.feature + .feature { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
@media (max-width: 56rem) { .feature { grid-template-columns: 1fr; gap: 1.5rem; } }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature > div > p { margin-top: .9rem; color: var(--muted); font-size: 1.05rem; }
.feature ul { margin: 1.25rem 0 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.feature .phone { margin-inline: auto; transform: none; width: min(14rem, 60vw); }
.feature__list { list-style: none; padding: 0 !important; display: grid; gap: .75rem; }
.feature__list li { padding: .9rem 1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__list b { display: block; font-weight: 600; margin-bottom: .15rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 56rem) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.plan h2 { font-size: 1.4rem; }
.plan .price { margin-top: 1.25rem; display: flex; align-items: baseline; gap: .5rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.plan .price b { font-size: 3rem; font-weight: 500; line-height: 1; }
.plan .price span { color: var(--muted); font-family: var(--font-body); }
.plan .price-note { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.plan ul { padding-left: 1.2rem; margin: 1.5rem 0; display: grid; gap: .5rem; flex: 1; }
.plan .button { align-self: flex-start; }
.faq { max-width: var(--prose); }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq summary::after { transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height var(--dur) var(--ease-out), opacity var(--dur), content-visibility var(--dur) allow-discrete; }
.faq details[open]::details-content { height: auto; opacity: 1; }
.faq details p, .faq details dl { margin-top: .75rem; color: var(--muted); }
.faq dt { font-weight: 600; color: var(--ink); margin-top: .75rem; }
.faq dd { margin: .2rem 0 0; }

/* Prose (legal, support, contact) */
.prose { font-size: 1.02rem; line-height: 1.7; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.prose .updated { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.prose .lede { margin-top: 1.25rem; font-size: 1.15rem; color: var(--muted); }
.prose h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: .6rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; margin-bottom: .4rem; }
.prose p { margin-top: .8rem; }
.prose ul, .prose ol { margin: .8rem 0 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prose .table-wrap { overflow-x: auto; }
.prose a { color: var(--accent-ink); }
.prose .contact-block { margin-top: 1rem; padding: 1.25rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .contact-block p { margin: 0; }
.prose .contact-block p + p { margin-top: .4rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.contact-grid .card .button { margin-top: 1.25rem; }
.big-mail { font-family: var(--font-mono); font-size: clamp(1.1rem, 2.6vw, 1.5rem); word-break: break-all; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-on-navy); padding-block: 3.5rem 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 56rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand img { height: 32px; }
.site-footer__brand p { margin-top: 1rem; max-width: 22rem; font-size: .95rem; }
.site-footer nav { display: grid; gap: .5rem; align-content: start; }
.site-footer nav h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-on-navy); margin-bottom: .35rem; }
.site-footer nav a { text-decoration: none; font-size: .95rem; transition: color var(--dur-fast); }
.site-footer nav a:hover { color: var(--ink-on-navy); }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--navy-line); font-size: .9rem; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound p { margin-top: 1rem; color: var(--muted-on-navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
/* Print never scrolls, so nothing would ever be revealed. */
@media print { .js .reveal { opacity: 1; transform: none; } }

/* ── Scroll reveal ─────────────────────────────────────────────────── */
/* The script adds .reveal to the blocks it watches and .is-in the first
   time one enters the viewport. Gated on .js so a page without the
   script never hides its content. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Icons ─────────────────────────────────────────────────────────── */
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.28em; flex: none; }
.icon--chev { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.icon--back { transform: rotate(180deg); }
.icon-tile {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-ink); flex: none;
}
.icon-tile .icon { width: 1.4rem; height: 1.4rem; vertical-align: 0; }
.icon-tile--sm { width: 2.25rem; height: 2.25rem; }
.icon-tile--sm .icon { width: 1.15rem; height: 1.15rem; }
.icon-tile--lg { width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.icon-tile--lg .icon { width: 1.8rem; height: 1.8rem; }
.button .icon { width: 1.1em; height: 1.1em; }

/* ── Features menu ─────────────────────────────────────────────────── */
.menu { position: relative; }
.menu.is-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1rem; }
.nav-link--menu { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; padding: .25rem 0; }
.nav-link--menu:hover, .nav-link--menu[aria-current="page"] { color: var(--ink); }
.nav-link--menu[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-link--menu[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }
.menu__panel {
  display: none; position: absolute; left: 50%; top: calc(100% + .9rem); transform: translate(-50%, -6px); opacity: 0;
  width: min(44rem, calc(100vw - 2rem)); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .25); padding: .75rem; z-index: 60;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), display var(--dur) allow-discrete;
}
.menu.is-open .menu__panel { display: block; opacity: 1; transform: translate(-50%, 0); @starting-style { opacity: 0; transform: translate(-50%, -6px); } }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.menu__item { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .7rem; border-radius: var(--radius); text-decoration: none; transition: background-color var(--dur-fast); }
.menu__item:hover { background: var(--paper); }
.menu__name { display: block; font-weight: 600; font-size: .95rem; }
.menu__summary { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: .1rem; }
.menu__all { display: flex; justify-content: flex-end; align-items: center; gap: .4rem; margin: .5rem .25rem 0; padding-top: .6rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--accent-ink); text-decoration: none; }
@media (max-width: 47rem) {
  .nav-link--menu { width: 100%; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link--menu[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent-ink); }
  .menu__panel { position: static; transform: translateY(-4px); width: auto; border: 0; box-shadow: none; padding: .25rem 0 .5rem; background: transparent; }
  .menu.is-open .menu__panel { transform: none; @starting-style { transform: translateY(-4px); } }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__item { padding: .5rem 0; }
  .menu__all { justify-content: flex-start; }
}

/* ── Feature cards (index) ─────────────────────────────────────────── */
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; }
.fcard { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.fcard:hover { border-color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(15, 23, 42, .35); }
.fcard__body { flex: 1; }
.fcard__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.fcard__summary { display: block; color: var(--muted); font-size: .95rem; margin-top: .3rem; line-height: 1.45; }
.fcard__more { color: var(--accent-ink); align-self: center; opacity: 0; transition: opacity var(--dur-fast), transform var(--dur) var(--ease-out); }
.fcard:hover .fcard__more { opacity: 1; transform: translateX(2px); }

/* ── Feature pages ─────────────────────────────────────────────────── */
.feature-hero { padding-block: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.feature-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.feature-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.feature-hero p { margin-top: 1.1rem; font-size: 1.15rem; color: var(--muted-on-navy); max-width: 34rem; }
.feature-hero .phone { margin-inline: auto; width: min(14rem, 60vw); }
@media (max-width: 56rem) { .feature-hero__grid { grid-template-columns: 1fr; } }
.crumb { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted-on-navy); text-decoration: none; font-size: .9rem; margin-bottom: 1.5rem; }
.crumb { transition: color var(--dur-fast); }
.crumb:hover { color: var(--ink-on-navy); }
.pill { display: inline-block; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; background: var(--navy-line); color: var(--ink-on-navy); }
.pill--ok { background: color-mix(in srgb, var(--emerald) 20%, transparent); color: var(--emerald-ink); }
.pill--warn { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #9a5b12; }
.on-navy .pill--ok { color: var(--emerald); }
.on-navy .pill--warn { color: var(--amber); }

/* Mock: route card */
.route-card { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; max-width: 26rem; margin-inline: auto; width: 100%; }
.route-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.route-card__meta { color: var(--muted-on-navy); font-size: .85rem; margin-top: .25rem; }
.route-card__round { font-family: var(--font-display); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-navy); margin: 1rem 0 .4rem; }
.route-card__stop { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--navy-line); font-size: .95rem; }
.route-card__stop .mono { margin-left: auto; font-size: .82rem; color: var(--muted-on-navy); }
.route-card .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* Flow (numbered) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: flow; }
.flow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow li { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 3.6rem; }
.flow li::before { counter-increment: flow; content: counter(flow); position: absolute; left: 1.1rem; top: 1.15rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-weight: 600; font-size: .9rem; }
.flow b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .3rem; }
.flow span { color: var(--muted); font-size: .95rem; }
@media (max-width: 56rem) { .flow, .flow--3 { grid-template-columns: 1fr; } }

/* Detail grid */
.detail-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.detail-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-grid li { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.detail-grid .icon { color: var(--accent-ink); width: 1.35rem; height: 1.35rem; margin-top: .15rem; grid-row: span 2; }
.detail-grid b { font-family: var(--font-display); font-size: 1.02rem; }
.detail-grid span { color: var(--muted); font-size: .95rem; grid-column: 2; }
@media (max-width: 56rem) { .detail-grid, .detail-grid--3, .detail-grid--4 { grid-template-columns: 1fr; } }

/* Two sides: office vs road */
.two-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 56rem) { .two-sides { grid-template-columns: 1fr; } }
.side { border-radius: var(--radius); padding: 1.5rem; }
.side h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.side ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.side--office { background: var(--paper-2); border: 1px solid var(--line); }
.side--road { background: var(--navy); color: var(--ink-on-navy); }
.side--road h3 .icon { color: var(--accent); }
.side--office h3 .icon { color: var(--accent-ink); }
.stop-demo { margin-top: 1.5rem; }

/* Rule callout */
.rule { display: flex; gap: 1.25rem; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.6rem; max-width: 52rem; margin-inline: auto; }
.rule__mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex: none; }
.rule p { font-size: 1.15rem; font-family: var(--font-display); font-weight: 500; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 46rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.5rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper-2); }
.timeline b { display: block; font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); margin-bottom: .2rem; }
.timeline span { color: var(--muted); }

/* Mock: lockbox */
.lockbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 56rem) { .lockbox { grid-template-columns: 1fr; } }
.gcard { background: var(--navy); color: var(--ink-on-navy); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--navy-line); }
.gcard--out { opacity: .85; }
.gcard__top { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.gcard__top .icon { color: var(--accent); }
.gcard__num { font-size: 1.4rem; margin: 1.25rem 0 1rem; letter-spacing: .08em; }

/* Mock: receipt */
.receipt { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.1rem; width: 100%; max-width: 22rem; margin-inline: auto; }
.receipt__row { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.receipt__row:first-child { border-top: 0; font-weight: 600; }
.receipt__row:first-child .icon { color: var(--accent-ink); }

/* Mock: cleaning log */
.log { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1rem 1.2rem; max-width: 26rem; margin-inline: auto; width: 100%; font-size: .95rem; }
.log__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin-bottom: .5rem; }
.log__row { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--navy-line); }
.log__foot { display: flex; justify-content: space-between; padding-top: .7rem; border-top: 1px solid var(--navy-line); margin-top: .3rem; }
.on-navy .log .muted, .on-navy .route-card .muted { color: var(--muted-on-navy); }

/* Mock: report */
.report { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1rem 1.2rem; max-width: 28rem; margin-inline: auto; width: 100%; }
.report__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.report__row { display: grid; grid-template-columns: 9rem 1fr 3rem; gap: .75rem; align-items: center; padding: .4rem 0; font-size: .92rem; }
.report__row b { text-align: right; font-weight: 500; }
.bar { display: block; height: 8px; background: var(--navy-line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--emerald); border-radius: 4px; }
.report__foot { font-size: .85rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--navy-line); }
.on-navy .report .muted { color: var(--muted-on-navy); }

/* Mock: pairing */
.pairing { display: grid; gap: .75rem; justify-items: center; text-align: center; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1.5rem; max-width: 24rem; margin-inline: auto; width: 100%; }
.pairing__code { font-size: 2.2rem; letter-spacing: .12em; color: var(--accent); }
.pairing__meta { font-size: .85rem; color: var(--muted-on-navy); }
.pairing__arrow { color: var(--muted-on-navy); transform: rotate(90deg); }
.pairing__phone { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--navy-line); border-radius: var(--radius); font-size: .95rem; }
.pairing__phone .icon { color: var(--accent); }

/* Roles table */
.roles { width: 100%; border-collapse: collapse; min-width: 34rem; }
.roles th, .roles td { text-align: center; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.roles th:first-child, .roles td:first-child { text-align: left; }
.roles th { font-family: var(--font-display); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.roles .icon { color: var(--accent-ink); }
.table-wrap { overflow-x: auto; }
.note { font-size: .95rem; color: var(--muted); margin-top: .75rem; }

/* Footer: five columns now */
.site-footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 56rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .site-footer__grid { grid-template-columns: 1fr; } }
/* Seven cards in three columns leaves one alone; let it take the row. */
@media (min-width: 56rem) { .fcard:last-child:nth-child(3n + 1) { grid-column: 1 / -1; } }
/* The crumb and the big tile are block-level in the hero, one per line. */
.feature-hero .crumb { display: flex; width: fit-content; }
.feature-hero .icon-tile--lg { display: grid; }
/* Pills on the navy fuel cards need the on-navy colours. */
.gcard .pill--ok { color: var(--emerald); }
.gcard .pill--warn { color: var(--amber); }
/* The icon sits in the title row only; spanning both rows let a tall icon
   push the description down by a different amount in each cell. */
.detail-grid .icon { grid-row: 1; margin-top: .1rem; }

/* ── Motion: keyframes ─────────────────────────────────────────────── */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hold-then-hide { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nudge-down { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(4px); } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(32px) rotate(2deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes slide-in-up { from { opacity: 0; transform: translateY(32px) rotate(-4deg); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes slide-in-side { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ── Motion: hero entrance ─────────────────────────────────────────── */
/* Runs on load, once. The copy rises line by line and the mock-up slides
   in beside it. Gated on .js so a page without the script is static. */
.js .hero__copy > *, .js .page-header .container > *, .js .notfound .container > *, .js .feature-hero__grid > :first-child > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.js .hero__copy > :nth-child(2), .js .page-header .container > :nth-child(2), .js .notfound .container > :nth-child(2), .js .feature-hero__grid > :first-child > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3), .js .page-header .container > :nth-child(3), .js .notfound .container > :nth-child(3), .js .feature-hero__grid > :first-child > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4), .js .notfound .container > :nth-child(4), .js .feature-hero__grid > :first-child > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(5), .js .feature-hero__grid > :first-child > :nth-child(5) { animation-delay: .32s; }
.js .hero__devices .tablet { animation: slide-in-right .7s var(--ease-out) .15s both; }
.js .hero__devices .phone { animation: slide-in-up .7s var(--ease-out) .35s both; }
.js .feature-hero__grid > :last-child { animation: slide-in-side .6s var(--ease-out) .2s both; }

/* ── Motion: demos ─────────────────────────────────────────────────── */
/* A .seq parent numbers its children; a playing demo animates them in
   that order at --seq-step intervals after --seq-base. Everything sits in
   its finished state until .is-playing arrives, so nothing is hidden
   without the script. */
.seq > :nth-child(1) { --i: 0; } .seq > :nth-child(2) { --i: 1; } .seq > :nth-child(3) { --i: 2; }
.seq > :nth-child(4) { --i: 3; } .seq > :nth-child(5) { --i: 4; } .seq > :nth-child(6) { --i: 5; }
.seq > :nth-child(7) { --i: 6; } .seq > :nth-child(8) { --i: 7; } .seq > :nth-child(9) { --i: 8; }
.seq > :nth-child(10) { --i: 9; } .seq > :nth-child(11) { --i: 10; } .seq > :nth-child(12) { --i: 11; }
.is-playing .seq > *, .seq.is-playing > * {
  animation: rise .35s var(--ease-out) both;
  animation-delay: calc(var(--seq-base, 0s) + var(--i, 0) * var(--seq-step, .3s));
}

/* Stop rows: the driver taps In, the late marker lands, then Out. */
.stop-demo { --seq-base: .4s; --seq-step: .55s; }
.stop-demo .stop-row + .stop-row .times { --seq-base: 3.2s; }
.stop-demo .times > * { display: inline-block; }
/* Only while playing: naming the keyframe earlier starts a zero-length
   run at load, and the later duration change does not restart it. */
.stop-demo.is-playing .times .late, .stop-demo.is-playing .times .early { animation-name: pop; }

/* Offline timeline: the line draws down and each moment arrives. */
.timeline { border-left: 0; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); transform-origin: top; }
.timeline { position: relative; --seq-base: .2s; --seq-step: .7s; }
.timeline.is-playing::before { animation: draw-y calc(.2s + 4 * .7s) linear both; }

/* Report: bars grow from the left, the number lands after the bar. */
.report { --seq-step: .12s; }
.report .bar i { transform-origin: left; }
.report.is-playing .bar i { animation: grow-x .9s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * .12s); }
.report.is-playing .report__row b { animation: rise .3s var(--ease-out) both; animation-delay: calc(.9s + var(--i, 0) * .12s); }
.report.is-playing .report__foot { animation-delay: 1.6s; }

/* Pairing: code, then its meta, then the arrow nudges, then the phone. */
.pairing { --seq-step: .45s; }
/* Opacity only for the fade: a keyframe ending in `transform: none` would
   undo the arrow's 90° turn once it filled forwards. */
.pairing.is-playing .pairing__arrow { animation: fade-in .35s var(--ease-out) .9s both, nudge-down .6s ease-in-out 1.3s 2 both; }
.pairing.is-playing .pairing__phone { animation-name: pop; animation-delay: 1.9s; }

/* Receipt: the header shows, the Read pill lands, the fields fill in. */
.receipt { --seq-base: .3s; --seq-step: .22s; }
.receipt.is-playing .receipt__row:first-child .pill { animation: pop .3s var(--ease-out) .8s both; }
.receipt.is-playing .receipt__row:not(:first-child) b { animation: rise .3s var(--ease-out) both; animation-delay: calc(1.1s + (var(--i, 1) - 1) * .22s); }

/* Cleaning log: entries land oldest first, so the newest arrives last. */
.log { --seq-step: .3s; }
.log.is-playing .log__row:nth-child(2) { animation-delay: 1s; }
.log.is-playing .log__row:nth-child(3) { animation-delay: .7s; }
.log.is-playing .log__row:nth-child(4) { animation-delay: .4s; }
.log.is-playing .log__head { animation-delay: 1.4s; }
.log.is-playing .log__foot { animation-delay: 1.7s; }

/* Route card: the plan builds top to bottom. */
.route-card { --seq-step: .18s; }

/* Lockbox: card B starts in the box, then Marco takes it. */
.gcard__state { position: relative; display: inline-grid; }
.gcard__state > * { grid-area: 1 / 1; justify-self: start; }
.gcard__was { opacity: 0; }
.lockbox.is-playing .gcard { animation: rise .4s var(--ease-out) both; }
.lockbox.is-playing .gcard--out { animation-delay: .15s; }
.lockbox.is-playing .gcard__was { animation: hold-then-hide 1.6s linear .4s both; }
.lockbox.is-playing .gcard--out .pill--warn { animation: pop .35s var(--ease-out) 2s both; }

/* ── Motion: between pages ─────────────────────────────────────────── */
/* A short crossfade when following a link, where the browser supports
   cross-document view transitions. The header is named so it stays put
   instead of fading with the page. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
