/* Adsmotions: one-page site + dashboard. Black / white / navy. */
:root {
  color-scheme: light;
  --paper: #f4f5f7;
  --ink: #14171a;
  --ink-2: #4c545e;
  --navy: #33506b;
  --steel: #54708c;
  --chart: #3a6cb0;
  --line: #dcdfe3;
  --white: #ffffff;
  --film: #0d1013;        /* base the hero footage is dimmed against */
  --slate: #1f2d48;       /* dark bands: deep navy, top of the band gradient */
  --slate-deep: #121a2d;  /* bottom of the band gradient */
  --blue: #1a6ef0;        /* action blue: white on it clears AA at 4.6:1 */
  --blue-dk: #1259cf;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --sans: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --hdr-h: 56px;          /* compact bar, as in the reference header */
  --accent-bg: #eceef1;   /* hover tint for header controls */
  --r: 6px;               /* small controls */
  --r-md: 10px;           /* inputs, chips, small cards */
  --r-lg: 14px;           /* panels, tiles, content cards */
  --r-xl: 20px;           /* media frames */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--navy); color: var(--white); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

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

/* ---- pre-animation hiding (removed if GSAP fails or reduced motion) ---- */
html.gsap-pending .g-hide { opacity: 0; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--navy); transform: scaleX(0); transform-origin: 0 50%;
  z-index: 100;
}

/* ---------- Header: dark bar, links beside the logo, actions right ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* full-bleed bar: brand sits at the edge instead of lining up with the content column */
  padding: 0 clamp(14px, 1.6vw, 22px); height: var(--hdr-h);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .3s ease;
}
.hdr.scrolled { box-shadow: 0 6px 24px rgba(10, 13, 16, .28); }
/* over the video hero the bar has no plate of its own; it fills in once you scroll past it */
.hdr.hdr-float {
  background: transparent; border-bottom-color: transparent;
  transition: background-color .4s ease, border-color .4s ease, box-shadow .3s ease;
}
.hdr.hdr-float.scrolled,
.hdr.hdr-float.menu-open { background: var(--ink); border-bottom-color: rgba(255, 255, 255, .08); }
.hdr-left, .hdr-right { display: flex; align-items: center; min-width: 0; }
.hdr-left { gap: 26px; }
.hdr-right { gap: 10px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand .word { font-weight: 800; letter-spacing: .04em; font-size: .88rem; color: #fff; }
.brand .word .lt { font-weight: 300; color: #9fb3c7; }

.hdr-nav { display: flex; align-items: center; gap: 2px; }
.hdr-nav a.lnk {
  text-decoration: none; font-family: var(--sans); font-size: .9rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .72);
  padding: 7px 12px; border-radius: var(--r); transition: color .2s, background-color .2s;
}
.hdr-nav a.lnk:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hdr-nav a.lnk.active { color: #fff; background: rgba(255, 255, 255, .1); }
.hdr-nav a.lnk:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* globe + language code, as a bordered pill */
.lang-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-family: var(--sans); font-size: .82rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s;
}
.lang-pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.lang-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang-pill .globe { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* pill buttons: the header action, and anything that should match it */
.btn.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px;
  border-radius: 999px; background: var(--blue); border-color: var(--blue);
  font-family: var(--sans); font-size: .875rem; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
.btn.pill span { color: #fff; }
.btn.pill::before { display: none; }
.btn.pill:hover { background: var(--blue-dk); border-color: var(--blue-dk); transform: none; box-shadow: none; }
.btn.pill:hover span { color: #fff; }
.btn.pill.inv { background: transparent; border-color: rgba(255, 255, 255, .25); }
.btn.pill.inv span { color: #fff; }
.btn.pill.inv:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.btn.pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.pill.big { height: 48px; padding: 0 28px; font-size: .95rem; }
/* same pill in the dark ink colour, for light backgrounds (dashboard save button) */
.btn.pill.ink { background: var(--ink); border-color: var(--ink); }
.btn.pill.ink:hover { background: #2b3036; border-color: #2b3036; }
.btn.pill.ink:focus-visible { outline-color: var(--navy); }

.btn {
  display: inline-block; background: var(--ink); color: var(--white);
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink);
  padding: 13px 24px; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn span { position: relative; z-index: 2; transition: color .35s; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  transform: scaleY(0); transform-origin: 50% 100%; z-index: 1;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover span { color: var(--ink); }
.btn.inv { background: transparent; color: var(--ink); }
.btn.inv::before { background: var(--ink); }
.btn.inv:hover span { color: var(--paper); }
.btn.big { padding: 17px 34px; font-size: .8rem; }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.burger {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer;
  width: 36px; height: 36px; padding: 0; color: #fff; border-radius: var(--r);
  align-items: center; justify-content: center;
}
.burger:hover { background: rgba(255, 255, 255, .1); }
.burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.menu-icon { width: 22px; height: 22px; display: block; }
.menu-icon line {
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  transform-origin: center;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
}
.burger[aria-expanded="true"] .menu-icon .l1 { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] .menu-icon .l2 { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero: Amsterdam footage behind the headline ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 110px var(--pad) 40px;
  position: relative; overflow: hidden;
  background: var(--film); color: var(--white);
}
/* the footage runs edge to edge and up behind the floating header */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* two stacked players: one shows while the other buffers the next clip.
   The swap is a hard cut, so no transition here. */
.hero-video .hv {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0;
}
.hero-video .hv.on { opacity: .42; }  /* city stays readable, type stays dominant */
/* extra shade at the very top and bottom, where the header and the headline sit */
.hero-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(13, 16, 19, .72) 0%, rgba(13, 16, 19, .1) 26%,
    rgba(13, 16, 19, .34) 66%, rgba(13, 16, 19, .78) 100%);
}
.hero-mark {
  position: absolute; top: 50%; right: var(--pad); z-index: 1;
  transform: translateY(-62%); opacity: .5;   /* a watermark over the footage, not a second headline */
  width: min(46vw, 560px); aspect-ratio: 1; pointer-events: none;
  will-change: transform;
}
.hero-mark svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; will-change: transform; }
.hero h1 {
  font-weight: 800; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2.6rem, 8.4vw, 7.2rem);
  max-width: 12ch; color: var(--white);
  text-shadow: 0 2px 40px rgba(10, 13, 16, .45);
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: inline-block; }

/* ---------- Sub-page head ---------- */
.page-head { padding-top: clamp(120px, 15vh, 180px); }
.page-title {
  font-weight: 800; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(2.4rem, 7vw, 5.4rem); max-width: 14ch;
}
.page-lead { margin-top: 22px; color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; }

/* ---------- Connected carousel (about section) ----------
   One wide card in the middle, its neighbours folded into strips beside it. */
.cc {
  position: relative; width: 100%; max-width: 1240px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 0; overflow: hidden; outline: none;
  -webkit-user-select: none; user-select: none;
}
.cc-stage { position: relative; width: 100%; }
.cc-card {
  position: absolute; left: 50%; top: 50%; opacity: 0;
  background: var(--white); color: var(--ink); border-radius: 26px;
  box-shadow: 0 10px 30px rgba(31, 44, 60, .09), 0 4px 12px rgba(31, 44, 60, .06);
  transition: transform .62s cubic-bezier(.22, .9, .26, 1.02),
              width .62s cubic-bezier(.22, .9, .26, 1.02),
              height .62s cubic-bezier(.22, .9, .26, 1.02),
              opacity .35s ease;
  will-change: transform, width, height;
}
.cc-init .cc-card, .cc-init .cc-body, .cc-init .cc-cover { transition: none; }
.cc-card:not([data-offset="0"]) { cursor: pointer; }
.cc-clip { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }

/* the pinched bridge that makes two cards read as one connected piece */
.cc-notch {
  position: absolute; top: 0; bottom: 0; margin: auto 0; display: none;
  width: 22px; height: 42px; color: var(--white); pointer-events: none; z-index: 5;
}
.cc-notch svg { width: 100%; height: 100%; display: block; fill: currentColor; overflow: visible; }
.cc-notch.l { right: calc(100% - 1px); }
.cc-notch.r { left: calc(100% - 1px); }
.cc-card[data-offset="-1"] .cc-notch.r,
.cc-card[data-offset="1"] .cc-notch.l { display: block; }
.cc-card[data-offset="-2"] .cc-notch.r,
.cc-card[data-offset="2"] .cc-notch.l { display: block; width: 17px; height: 27px; }

/* strip state: just the photo */
.cc-cover { position: absolute; inset: 0; padding: 8px; transition: opacity .22s ease; }
.cc-cover span { display: block; width: 100%; height: 100%; border-radius: 19px; overflow: hidden; background: var(--accent-bg); }
.cc-cover img { width: 100%; height: 100%; object-fit: cover; }
.cc-card[data-offset="0"] .cc-cover { opacity: 0; pointer-events: none; }

/* active state: it keeps the full card size at every offset and slides out sideways */
.cc-body {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
  display: flex; gap: clamp(16px, 2.4vw, 28px); padding: clamp(18px, 2.2vw, 28px);
  transition: transform .62s cubic-bezier(.22, .9, .26, 1.02), opacity .45s ease;
}
.cc-card[data-side="l"] .cc-body { transform: translate(-50%, -50%) translateX(-822px); }
.cc-card[data-side="r"] .cc-body { transform: translate(-50%, -50%) translateX(822px); }
.cc-card[data-offset="0"] .cc-body { opacity: 1; pointer-events: auto; }
.cc-text {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: space-between; gap: 14px; padding: 4px 0;
}
.cc-text h3 {
  font-size: clamp(1.25rem, 2.3vw, 2.05rem); font-weight: 760;
  letter-spacing: -.025em; line-height: 1.08;
}
.cc-text p { margin: auto 0; font-size: clamp(.9rem, 1.1vw, 1.02rem); color: var(--ink-2); line-height: 1.5; }
.cc-tags { display: flex; flex-direction: column; align-items: flex-start; }
.cc-tag {
  background: var(--accent-bg); border-radius: var(--r); padding: 5px 11px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.cc-tag.sub { font-weight: 400; color: var(--ink-2); }
.cc-joint { display: flex; height: 6px; margin: -1px 0; padding: 0 13px; color: var(--accent-bg); position: relative; z-index: 1; }
.cc-joint svg { display: block; fill: currentColor; overflow: visible; }
.cc-shot {
  flex: none; width: clamp(170px, 42%, 300px); border-radius: 20px;
  overflow: hidden; background: var(--accent-bg);
}
.cc-shot img { width: 100%; height: 100%; object-fit: cover; }
/* a founder quotes themselves, so the line is set as a quotation */
.cc-quote::before { content: "\201C"; }
.cc-quote::after { content: "\201D"; }
/* stand-in until the real portraits arrive: the mark on a tinted panel */
.cc-cover .cc-ph, .cc-shot.cc-ph { display: flex; align-items: center; justify-content: center; background: var(--accent-bg); }
.cc-ph img { width: 44%; max-width: 104px; height: auto; object-fit: contain; opacity: .28; }

.cc-tabs { display: flex; align-items: center; gap: 6px; margin-top: 24px; }
.cc-tab {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px;
  background: var(--line); overflow: hidden; cursor: pointer;
  transition: width .3s ease, background-color .2s;
}
.cc-tab:hover { background: #c6ccd4; }
.cc-tab[aria-selected="true"] { width: 80px; }
.cc-tab i { display: none; height: 100%; width: 100%; border-radius: 4px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.cc-tab[aria-selected="true"] i { display: block; }
.cc-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

@media (max-width: 767px) {
  .cc-body { flex-direction: column; gap: 12px; padding: 16px; }
  .cc-text { flex: none; align-items: center; text-align: center; }
  .cc-tags { align-items: center; }
  .cc-shot { width: 100%; flex: 1; min-height: 0; border-radius: 16px; }
  .cc-card { border-radius: 22px; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 20px 0; background: var(--white);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  font-weight: 800; font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: -.02em; text-transform: uppercase;
  padding-right: 42px; white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--steel); }

/* ---------- Sections ---------- */
section.blk { border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 120px) var(--pad); }

/* Dark band: a mid-grey section for contrast against the light page.
   Text and buttons invert, so the slide-up button fill has to flip too. */
.blk.dark {
  /* navy that deepens downward, with a faint lift of light in the top-right corner */
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(44, 64, 98, .45) 0%, transparent 70%),
    linear-gradient(180deg, var(--slate) 0%, #19253d 50%, var(--slate-deep) 100%);
  color: #eaeff5; border-top-color: var(--slate);
}
.blk.dark .sec-label { color: #93a6bb; }
.blk.dark .statement { color: #ffffff; }
.blk.dark > p:not(.statement) { color: #bccbdb; }
.blk.dark .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.blk.dark .btn span { color: var(--ink); }
.blk.dark .btn::before { background: #dfe4e9; }
.blk.dark .btn:hover span { color: var(--ink); }
.blk.dark .btn:hover { box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.blk.dark .btn.inv { background: transparent; border-color: rgba(255,255,255,.4); }
.blk.dark .btn.inv span { color: #ffffff; }
.blk.dark .btn.inv::before { background: #ffffff; }
.blk.dark .btn.inv:hover span { color: var(--ink); }
.blk.dark .btn:focus-visible { outline-color: #ffffff; }
/* pill actions on the dark band keep the header blue instead of the white fill */
.blk.dark .btn.pill { background: var(--blue); border-color: var(--blue); }
.blk.dark .btn.pill span, .blk.dark .btn.pill:hover span { color: #fff; }
.blk.dark .btn.pill:hover { background: var(--blue-dk); border-color: var(--blue-dk); box-shadow: none; }
.blk.dark .btn.pill.inv { background: transparent; border-color: rgba(255, 255, 255, .3); }
.blk.dark .btn.pill.inv:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
section.blk:first-of-type { border-top: 0; }
.sec-label { margin-bottom: clamp(28px, 5vw, 64px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

.statement {
  font-weight: 640;
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  line-height: 1.18; letter-spacing: -.02em; max-width: 22ch;
}
.statement .w { display: inline-block; }
.statement + p { margin-top: 26px; max-width: 52ch; color: var(--ink-2); font-size: 1.05rem; }
/* intro: headline on the left, the explanation in the open space beside it */
.intro-split { display: grid; gap: clamp(26px, 3.5vw, 72px); align-items: start; }
.intro-split .intro-body {
  margin-top: 0; max-width: 58ch; color: #c3d1e0;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem); line-height: 1.62;
}
@media (min-width: 900px) {
  .intro-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro-split .intro-body { margin-top: 8px; }
}
.blk .cta-row { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Full-bleed image ---------- */
.shot {
  position: relative; overflow: hidden;
  height: clamp(340px, 76vh, 760px);
}
.shot img {
  position: absolute; inset: -12% 0; width: 100%; height: 124%;
  object-fit: cover; will-change: transform;
}
.shot .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,13,16,.82) 0%, rgba(10,13,16,.35) 34%, transparent 62%),
    linear-gradient(90deg, rgba(10,13,16,.6) 0%, rgba(10,13,16,.12) 58%, transparent 100%);
}
.shot .cap {
  position: absolute; left: var(--pad); bottom: clamp(30px, 6vw, 64px); right: var(--pad);
  color: #fff; z-index: 2;
}
.shot .cap h2 {
  font-weight: 800; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2rem, 6vw, 4.6rem); max-width: 14ch;
}

/* ---------- How it works (werkwijze.html) ---------- */
.hw-hero {
  position: relative; overflow: hidden; color: #eaeff5;
  background:
    radial-gradient(70% 90% at 92% 0%, rgba(44, 64, 98, .55) 0%, transparent 70%),
    linear-gradient(180deg, var(--slate) 0%, #19253d 55%, var(--slate-deep) 100%);
  padding: calc(var(--hdr-h) + clamp(48px, 7vw, 96px)) var(--pad) clamp(56px, 8vw, 104px);
}
.hw-hero-inner {
  margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hw-title { font-weight: 800; letter-spacing: -.04em; line-height: .98; font-size: clamp(2.6rem, 6.4vw, 5.2rem); color: #fff; }
.hw-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.6; color: #c3d1e0; max-width: 44ch; }
.hw-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hw-photo {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3.2;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.hw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hw-tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(16, 24, 35, .72); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font-size: .85rem; font-weight: 600;
}
.hw-tag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.hw-h2 { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(1.9rem, 4.2vw, 3.2rem); max-width: 18ch; }

/* steps: pinned notes on ruled paper (ported from the "how-it-works" component).
   Desktop places the notes on a 1000 × 800 board in a zig-zag, with a dashed line
   that marches between them; phones stack them. */
.hw-board-sec {
  position: relative; overflow: hidden; background: var(--white);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) var(--pad) clamp(72px, 9vw, 110px);
}
/* ruled lines every 32px, fading out towards both sides */
.hw-board-sec::before {
  content: ""; position: absolute; inset: 4px 0 0; pointer-events: none; opacity: .08;
  background-image: linear-gradient(#000 1px, transparent 1px); background-size: 100% 32px;
}
.hw-board-sec::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--white) 0%, transparent 50%, var(--white) 100%);
}
.hw-board-sec > * { position: relative; z-index: 1; }
.hw-center { margin: 0 auto; text-align: center; }
.hw-board { position: relative; max-width: 1000px; margin: clamp(36px, 5vw, 64px) auto 0; }
.hw-path { display: none; }
.hw-notes { list-style: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 32px; }

.hw-note {
  --pin: var(--blue); --tint: #e8f0fe; --edge: #d3e2fd;
  position: relative; width: 100%; max-width: 290px;
  transform: rotate(var(--tilt, 8deg));
  transition: transform .3s ease;
}
.hw-note:nth-child(even) { --tilt: -8deg; }
.hw-note:hover { z-index: 30; transform: rotate(var(--tilt, 8deg)) scale(1.05); }
.hw-note.t-navy { --pin: var(--slate); --tint: #e9edf4; --edge: #d6dde8; }
.hw-note.t-steel { --pin: var(--steel); --tint: #edf1f5; --edge: #dbe3eb; }
.hw-note-in {
  background: var(--white); padding: 8px; border-radius: 25px;
  border: 1px solid #f0f1f3; box-shadow: 0 10px 20px 0 #d3d3d3;
}
.hw-pin { display: block; width: 32px; height: 32px; margin: 0 auto 24px; fill: var(--pin); }
.hw-note-body {
  background: var(--tint); border: 1px solid var(--edge); border-radius: 15px; padding: 15px;
  display: flex; flex-direction: column;
}
.hw-note-num {
  margin-bottom: 20px; color: var(--pin); font-size: 2.25rem; line-height: 1;
  font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;   /* the handwritten touch from the component */
}
.hw-note h3 { margin-bottom: 10px; font-size: 1.5rem; font-weight: 600; line-height: 1.05; color: #262626; letter-spacing: -.01em; }
.hw-note p { font-size: .875rem; line-height: 1.25rem; letter-spacing: -.01em; color: #737373; }

@media (min-width: 768px) {
  .hw-board { height: 800px; }
  .hw-path {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  }
  .hw-path path {
    fill: none; stroke: #d4d4d4; stroke-width: 2; stroke-linecap: round;
    stroke-dasharray: 8 6; vector-effect: non-scaling-stroke;
    animation: hwMarch 3s linear infinite;
  }
  .hw-notes { display: block; position: absolute; inset: 0; z-index: 1; }
  .hw-note { position: absolute; width: 280px; max-width: none; }
  .hw-note:nth-child(1) { top: 0; left: 15%; }
  .hw-note:nth-child(2) { top: 120px; right: 15%; }
  .hw-note:nth-child(3) { top: 450px; left: 15%; }
}
@keyframes hwMarch { to { stroke-dashoffset: -140; } }   /* a multiple of 8 + 6, so the loop is seamless */
@media (prefers-reduced-motion: reduce) { .hw-path path { animation: none; } }

/* the kit */
.hw-kit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.hw-sub { color: var(--ink-2); font-size: 1.05rem; max-width: 40ch; }
.hw-kit-grid { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hw-kit-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.hw-kit-card:hover { transform: translateY(-4px); border-color: #cdd5de; box-shadow: 0 14px 34px rgba(31, 44, 60, .08); }
.hw-ic {
  width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px;
  display: grid; place-items: center; color: #cfe0ff;
  background: linear-gradient(180deg, var(--slate), var(--slate-deep));
}
.hw-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hw-kit-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.hw-kit-card p { margin-top: 6px; color: var(--ink-2); font-size: .9rem; line-height: 1.55; }

/* closing call to action: a navy card in the light page */
.hw-cta { padding: 0 var(--pad) clamp(64px, 9vw, 120px); }
.hw-cta-card {
  text-align: center; color: #eaeff5;
  border-radius: 28px; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(44, 64, 98, .6) 0%, transparent 70%),
    linear-gradient(180deg, var(--slate) 0%, var(--slate-deep) 100%);
}
.hw-cta-card h2 {
  margin: 0 auto; max-width: 20ch; color: #fff; text-wrap: balance;
  font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(1.8rem, 4vw, 3rem);
}
.hw-cta-card p { margin: 16px auto 0; max-width: 44ch; color: #c3d1e0; font-size: 1.05rem; }
.hw-cta-card .hw-actions { justify-content: center; }

@media (max-width: 1000px) { .hw-kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hw-hero-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hw-kit-grid { grid-template-columns: 1fr; } }

/* ---------- Team (over.html, ported from the "team-02" component) ---------- */
.tm-head { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.tm-badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: .875rem; font-weight: 600; color: var(--ink);
}
.tm-h { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.tm-p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.tm-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.tm-card { display: flex; flex-direction: column; gap: 24px; }
.tm-photo { position: relative; height: 20rem; overflow: hidden; border-radius: 20px; background: var(--accent-bg); }
.tm-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* stand-in until the real portraits arrive */
.tm-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(180deg, #eef1f5, #e3e8ee); }
.tm-ph img { width: 72px; height: auto; opacity: .22; }
/* socials appear over the photo on hover, and for keyboard users on focus */
.tm-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end;
  gap: 8px; padding: 20px; background: rgba(3, 7, 18, .5);
  opacity: 0; transition: opacity .3s;
}
.tm-card:hover .tm-overlay, .tm-photo:focus-within .tm-overlay { opacity: 1; }
.tm-overlay a {
  display: flex; padding: 12px; border-radius: 999px; background: var(--white); color: var(--ink);
  transition: opacity .3s;
}
.tm-overlay a:hover { opacity: .8; }
.tm-overlay a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tm-overlay svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.tm-meta { display: flex; flex-direction: column; gap: 4px; }
.tm-meta h3 { font-size: 1.25rem; font-weight: 500; }
.tm-meta p { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 1023px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tm-grid { grid-template-columns: 1fr; } }

/* ---------- Contact (contact.html, ported from the "form-1" component) ---------- */
.ct { padding: calc(var(--hdr-h) + clamp(56px, 8vw, 104px)) 16px clamp(72px, 10vw, 128px); }
.ct-form { display: flex; flex-direction: column; align-items: center; font-size: .875rem; color: #1e293b; }
.ct-badge {
  padding: 4px 12px; border-radius: 999px; background: #dbe7fd; color: var(--blue);
  font-size: .75rem; font-weight: 500;
}
.ct-title { padding: 16px 0; text-align: center; font-size: clamp(2rem, 4.4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.ct-sub { padding-bottom: 40px; text-align: center; color: #6b7280; font-size: 1rem; }
.ct-sub a { color: var(--blue); text-decoration: none; }
.ct-sub a:hover { text-decoration: underline; }
.ct-fields { width: 100%; max-width: 28rem; padding: 0 16px; display: flex; flex-direction: column; }
.ct-label { font-weight: 500; }
.ct-input {
  display: flex; align-items: center; height: 50px; margin: 8px 0 18px; padding-left: 16px;
  border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; background: var(--white);
  transition: box-shadow .2s, border-color .2s;
}
.ct-input svg { flex: none; fill: #475569; }
.ct-input input {
  height: 100%; width: 100%; padding: 0 10px; border: 0; outline: none; background: transparent;
  font: inherit; font-size: .95rem; color: inherit;
}
.ct-input:focus-within, .ct-fields textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(26, 110, 240, .45); }
.ct-fields textarea {
  width: 100%; margin-top: 8px; padding: 14px 16px; resize: none; outline: none;
  border: 1px solid #cbd5e1; border-radius: 14px; background: var(--white);
  font: inherit; font-size: .95rem; color: inherit; transition: box-shadow .2s, border-color .2s;
}
.ct-input input::placeholder, .ct-fields textarea::placeholder { color: #94a3b8; }
.ct-fields .msg { margin-top: 16px; }
.ct-submit {
  margin-top: 22px; width: 100%; padding: 14px 0; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--blue); color: #fff; font: inherit; font-weight: 600;
  transition: background-color .2s;
}
.ct-submit:hover { background: var(--blue-dk); }
.ct-submit:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ct-submit svg { margin-top: 2px; fill: #fff; }
.ct-note { margin-top: 12px; text-align: center; font-size: .78rem; color: var(--ink-2); }

/* ---------- Numbered rows ---------- */
.rows { border-top: 1px solid var(--line); }
.rowi {
  display: grid; grid-template-columns: 70px 1.1fr 1fr auto;
  gap: 24px; align-items: baseline;
  padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.rowi::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--white); opacity: 0; transition: opacity .4s; z-index: -1;
  margin: 0 calc(var(--pad) * -.4);
}
.rowi:hover::before { opacity: 1; }
.rowi .num { font-family: var(--mono); font-size: .75rem; color: var(--steel); }
.rowi h3 { font-size: clamp(1.15rem, 2.3vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
.rowi .inc { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--steel); padding: 3px 7px; margin-left: 10px; white-space: nowrap; }
.rowi p { color: var(--ink-2); font-size: .95rem; max-width: 46ch; }
.rowi .val {
  font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -.02em; color: var(--navy); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rowi .val small { font-size: .55em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.total-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 2px solid var(--ink);
}
.total-line .lbl { font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -.02em; }
.total-line .amt { font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.total-line .amt small { font-size: .42em; font-weight: 500; color: var(--ink-2); }
.note { margin-top: 22px; font-size: .88rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- Dashboard preview ---------- */
.dash-prev { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.dash-copy .statement { max-width: 18ch; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; }
.tile .t-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tile .t-value { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tile .t-sub { font-size: .78rem; color: var(--ink-2); margin-top: 2px; }
.tile.wide { grid-column: 1 / -1; }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px, 5vw, 60px); }
.zone { border-top: 2px solid var(--ink); padding-top: 18px; }
.zone h3 { font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; }
.zone p { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 780px; }
.f-field { display: flex; flex-direction: column; gap: 7px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.f-field input[type=text], .f-field input[type=email], .f-field input[type=tel],
.f-field input[type=password], .f-field input[type=time], .f-field select {
  background: var(--white); border: 1px solid var(--line); padding: 13px 14px;
  font-family: var(--sans); font-size: .95rem; color: var(--ink); border-radius: var(--r-md);
  min-height: 46px;
}
.f-field input:focus, .f-field select:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.f-checks { display: flex; flex-direction: column; gap: 10px; }
.f-checks label {
  display: flex; gap: 10px; align-items: flex-start; font-size: .92rem;
  font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer;
}
.f-checks input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--navy); }
.form-ok { display: none; border: 1px solid var(--navy); border-radius: var(--r-lg); background: var(--white); padding: 26px; max-width: 780px; font-size: .95rem; }
.form-ok.show { display: block; }
.form-ok strong { display: block; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) var(--pad) 32px; }
.foot-top { display: flex; flex-direction: column; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
.foot-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-logo img { height: 30px; width: auto; }
.foot-logo span { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.foot-desc { max-width: 42ch; font-size: .92rem; color: var(--ink-2); }
.foot-mail {
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--blue); padding-bottom: 2px; overflow-wrap: anywhere;
}
.foot-mail:hover { color: var(--blue); }
.foot-social { display: flex; align-items: center; gap: 18px; list-style: none; }
.foot-social a { display: block; color: var(--ink-2); transition: color .2s; }
.foot-social a:hover { color: var(--ink); }
.foot-social svg {
  width: 21px; height: 21px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.foot-social svg .dot, .foot-social svg .fill { fill: currentColor; stroke: none; }
.foot-social a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: var(--r); }

.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.foot-col h3 { margin-bottom: 16px; font-size: .95rem; font-weight: 700; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { font-size: .88rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }

.foot-bottom {
  margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: .76rem; font-weight: 500; color: var(--ink-2);
}
.foot-bottom ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-bottom a { text-decoration: none; transition: color .2s; }
.foot-bottom a:hover { color: var(--ink); }

/* stacked, the legal links read first; side by side, the copyright leads */
.foot-bottom ul { order: 1; }
.foot-bottom p { order: 2; }
@media (min-width: 768px) {
  .foot-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot-bottom p { order: 1; }
  .foot-bottom ul { order: 2; flex-direction: row; gap: 20px; }
}
@media (min-width: 1024px) {
  .foot-top { flex-direction: row; align-items: flex-start; gap: clamp(40px, 6vw, 90px); }
  .foot-cols { gap: clamp(32px, 5vw, 80px); }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Mobile nav ---------- */
.mnav {
  position: fixed; top: var(--hdr-h); right: 0; bottom: 0; left: 0; z-index: 80;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px; padding: clamp(20px, 5vh, 44px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 28px);
  overflow-y: auto; overscroll-behavior: contain;
}
.mnav[hidden] { display: none; }
.mnav-links { display: flex; flex-direction: column; gap: 4px; }
.mnav-links a {
  text-decoration: none; font-weight: 600; letter-spacing: -.01em;
  font-size: 1.05rem; padding: 12px; border-radius: var(--r);
  transition: background-color .2s;
}
.mnav-links a:hover, .mnav-links a:focus-visible { background: var(--accent-bg); }
.mnav-cta { display: flex; flex-direction: column; gap: 10px; }
.mnav-cta .btn {
  width: 100%; text-align: center; justify-content: center;
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; border-radius: var(--r);
}
.mnav-cta .btn::before { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mnav { animation: menuIn .32s cubic-bezier(.2,.7,.2,1); }
  .mnav-links a { animation: menuItem .4s cubic-bezier(.2,.7,.2,1) backwards; }
  .mnav-links a:nth-child(2) { animation-delay: .05s; }
  .mnav-links a:nth-child(3) { animation-delay: .1s; }
  .mnav-links a:nth-child(4) { animation-delay: .15s; }
  .mnav-cta { animation: menuItem .4s .2s cubic-bezier(.2,.7,.2,1) backwards; }
}
@keyframes menuIn { from { opacity: 0; transform: scale(.985); } }
@keyframes menuItem { from { opacity: 0; transform: translateY(14px); } }

/* ================= Signed-in app shell (sidebar + topbar) ================= */
.icon-defs { position: absolute; width: 0; height: 0; }
.si { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* The shell must fill the window exactly: html and body carry the height so the
   sidebar stretches the full length no matter how tall the window is. */
.shell-html, .shell-html body { height: 100%; }
.shell-body { background: var(--paper); overflow: hidden; }
.shell { display: flex; height: 100%; min-height: 100svh; align-items: stretch; }
@supports (height: 100dvh) { .shell { min-height: 100dvh; } }

/* ---- sidebar ---- */
.sidebar {
  width: 260px; flex: none; align-self: stretch; display: flex; flex-direction: column;
  /* the homepage band's navy, deepening downward, with the same faint light top-right */
  background:
    radial-gradient(120% 40% at 100% 0%, rgba(44, 64, 98, .45) 0%, transparent 70%),
    linear-gradient(180deg, var(--slate) 0%, #19253d 50%, var(--slate-deep) 100%);
  border-right: 1px solid rgba(255, 255, 255, .06); color: #e6edf6;
  padding: 12px; gap: 4px;
  transition: margin-left .28s cubic-bezier(.2,.7,.2,1);
}
.side-collapsed .sidebar { margin-left: -260px; }

.ws {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; margin-bottom: 12px; border-radius: 8px;
}
/* Profile picture placeholder: swap in an <img> once drivers can upload one. */
.ws-avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .08); color: #b9c8db;
  border: 1px solid rgba(255, 255, 255, .16);
  display: flex; align-items: center; justify-content: center;
}
.ws-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-ph { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ws-meta { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.ws-name { font-size: .82rem; font-weight: 600; line-height: 1; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-sub { font-size: .7rem; color: #9fb0c8; line-height: 1; }

.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-heading {
  padding: 0 10px 6px; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #8193ad;
}
.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; border: 0; background: none; border-radius: var(--r);
  font-family: var(--sans); font-size: .82rem; font-weight: 500; text-align: left;
  color: rgba(230, 237, 246, .74); text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s;
}
.side-item span:not(.side-badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-item.active { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 600; }
.side-item.active .si { color: #fff; }
.side-item:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.side-badge {
  margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .62rem; border-radius: 999px;
  background: rgba(127, 176, 255, .18); color: #cfe0ff;
}
.side-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 2px; }

.sidebar-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10,13,16,.35); }

/* ---- main column ---- */
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--hdr-h); flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 16px; background: var(--white); border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* the app topbar is light, so the pill inverts there */
.topbar .lang-pill { color: var(--ink); border-color: var(--line); }
.topbar .lang-pill:hover { background: var(--accent-bg); border-color: var(--line); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; background: none; border-radius: var(--r);
  color: var(--ink-2); cursor: pointer; transition: background-color .18s, color .18s;
}
.icon-btn:hover { background: var(--accent-bg); color: var(--ink); }
.icon-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.icon-btn .si { width: 18px; height: 18px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); min-width: 0; }
.crumb b { color: var(--ink); font-weight: 600; }
.crumb span, .crumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-sep { color: var(--line); }

.shell-content { flex: 1; overflow-y: auto; padding: clamp(18px, 3vw, 32px); }
.pane { max-width: 1100px; }
.pane-title { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
.pane-lead { margin-top: 8px; margin-bottom: 22px; color: var(--ink-2); font-size: .95rem; max-width: 60ch; }
.pane > .db-grid { margin-top: 20px; }
.shell-content .save-bar { max-width: 1100px; bottom: calc(-1 * clamp(18px, 3vw, 32px)); }

@media (max-width: 860px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 75; margin-left: 0; transform: translateX(-100%); }
  .side-open .sidebar { transform: none; box-shadow: 0 12px 40px rgba(10,13,16,.18); }
  .side-collapsed .sidebar { margin-left: 0; }
  .crumb #crumbDriver, .crumb .crumb-sep { display: none; }
}

/* ================= Demo dashboard page ================= */
.db-body { background: var(--paper); }
.db-main { max-width: 1180px; margin: 0 auto; padding: 100px var(--pad) 60px; }
.db-banner {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--white); padding: 9px 14px; display: inline-block; margin-bottom: 30px;
  border-radius: 999px;
}
.db-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.db-head h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 14px; color: var(--ink);
}
.chip .dot2 { width: 8px; height: 8px; background: #2e7d4f; border-radius: 50%; }

.db-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.db-grid .tile { min-width: 0; }
.db-grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }   /* the live dashboard has three tiles */
.db-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.db-cols.one { grid-template-columns: 1fr; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.panel h2 { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.panel .p-sub { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }

.chart-wrap { position: relative; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--white);
  font-family: var(--mono); font-size: .68rem; padding: 6px 9px; white-space: nowrap;
  transform: translate(-50%, -130%); opacity: 0; transition: opacity .12s;
}
.chart-tip.on { opacity: 1; }
.bar { fill: var(--chart); cursor: pointer; }
.bar:hover { fill: var(--navy); }
.grid-ln { stroke: #e8eaee; stroke-width: 1; }
.ax { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.dlabel { font-family: var(--mono); font-size: 10px; fill: var(--ink); }
.spark { stroke: var(--chart); stroke-width: 2; fill: none; }
.spark-dot { fill: var(--navy); }

table.db { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.db th { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
table.db td { padding: 11px 10px 11px 0; border-bottom: 1px solid #eceef1; font-variant-numeric: tabular-nums; }
table.db td.r, table.db th.r { text-align: right; padding-right: 0; }

.tasklist { list-style: none; display: flex; flex-direction: column; }
.tasklist li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #eceef1; font-size: .9rem; }
.tasklist li:last-child { border-bottom: 0; }
.tick { width: 18px; height: 18px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tick.done { background: var(--navy); border-color: var(--navy); }
.tick.done::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.tasklist .due { margin-left: auto; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; white-space: nowrap; }

.aff-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px dashed var(--steel); border-radius: var(--r-md); padding: 14px 16px; margin-top: 14px;
  font-family: var(--mono); font-size: .95rem; letter-spacing: .08em;
}
.copy-btn { background: none; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; cursor: pointer; color: var(--ink); }
.copy-btn:hover { border-color: var(--ink); }

/* ================= Driver platform (auth, account, live dashboard) ================= */
[hidden] { display: none !important; }

.cfg-notice {
  background: var(--ink); color: var(--white); font-size: .85rem; border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: 22px; max-width: 780px;
}
.hdr .cfg-notice { margin: 0; }

.msg { font-size: .88rem; padding: 12px 14px; border: 1px solid; border-radius: var(--r-md); line-height: 1.45; }
.msg[data-kind="error"] { color: #8f1d1d; border-color: #eec3c3; background: #fdf4f4; }
.msg[data-kind="ok"] { color: var(--navy); border-color: var(--steel); background: var(--white); }

.btn[disabled] { opacity: .55; cursor: progress; }
.btn.full { width: 100%; text-align: center; }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: .88rem; color: var(--navy); text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--ink); }
.field-hint { font-size: .78rem; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 16px; }


/* ---- sign in: form column beside a dotted panel (login, signup, reset) ---- */
.si-body { background: #e6eaef; }   /* a shade under --paper, so the white form card stands off it */
.signin { display: flex; min-height: 100vh; min-height: 100dvh; }
.si-form-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  padding: 20px clamp(20px, 4vw, 40px) 32px;
}
.si-top { display: flex; align-items: center; gap: 16px; }   /* language pill sits right beside the logo */
.si-top .brand .word { color: var(--ink); }
.si-top .brand .word .lt { color: var(--steel); }
.si-top .lang-pill { color: var(--ink); border-color: var(--line); }
.si-top .lang-pill:hover { background: var(--accent-bg); border-color: var(--line); }
.si-top .lang-pill:focus-visible { outline-color: var(--navy); }
.si-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0 8px; }
.si-inner { width: 100%; max-width: 28rem; display: flex; flex-direction: column; gap: 24px; }
.si-inner .cfg-notice { margin: 0; }

.si-title { font-size: clamp(2.1rem, 3.8vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.si-lead { color: var(--ink-2); margin-top: -8px; }

.si-pane { display: flex; flex-direction: column; gap: 20px; }
/* the inputs sit on a white card layered above the page */
.si-box {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white); border: 1px solid #d9dee5; border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 10px 28px rgba(31, 44, 60, .07);
}
.si-field { display: flex; flex-direction: column; }
.si-label { font-size: .875rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.si-field .field-hint { margin-top: 6px; }

/* the reference's "glass" field: a tinted, rounded well that lights up blue on focus */
.si-glass {
  position: relative; border-radius: 16px; border: 1px solid #dfe4ea;
  background: #eef1f5;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.si-glass:focus-within {
  border-color: rgba(26, 110, 240, .6); background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 110, 240, .14);
}
.si-glass input {
  width: 100%; background: transparent; border: 0; outline: none;
  font: inherit; font-size: .9rem; color: var(--ink);
  padding: 16px; border-radius: 16px;
}
.si-glass input::placeholder { color: #8a929b; }
.si-pw input { padding-right: 48px; }
.si-eye {
  position: absolute; top: 0; bottom: 0; right: 12px; display: flex; align-items: center;
  background: none; border: 0; padding: 0 2px; cursor: pointer; color: var(--ink-2);
  transition: color .2s;
}
.si-eye:hover { color: var(--ink); }
.si-eye:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.si-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.si-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; }
.si-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); }
.si-check input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #b4bcc5;
  background: var(--white); display: grid; place-content: center; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.si-check input::after {
  content: ""; width: 10px; height: 10px; background: #fff; transform: scale(0);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: transform .15s ease;
}
.si-check input:checked { background: var(--blue); border-color: var(--blue); }
.si-check input:checked::after { transform: scale(1); }
.si-check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.si-link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--blue); text-decoration: none;
}
.si-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.si-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.si-submit {
  width: 100%; border: 0; border-radius: 16px; padding: 16px; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-weight: 600;
  transition: background-color .2s;
}
.si-submit:hover { background: var(--blue-dk); }
.si-submit:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.si-submit[disabled] { opacity: .6; cursor: progress; }
a.si-submit { display: block; text-align: center; text-decoration: none; }

.si-social { display: flex; flex-direction: column; gap: 20px; }
.si-or { position: relative; display: flex; align-items: center; justify-content: center; }
.si-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.si-or span { position: relative; padding: 0 16px; background: var(--white); font-size: .875rem; color: var(--ink-2); }
.si-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: transparent;
  font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; transition: background-color .2s;
}
.si-google:hover { background: var(--accent-bg); }
.si-google:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.si-google svg { width: 20px; height: 20px; flex: none; }

.si-alt { text-align: center; font-size: .875rem; color: var(--ink-2); }

/* dark panel: animated dot field (js/dots.js) with the logo in the middle */
.si-hero { display: none; }
@media (min-width: 768px) {
  .si-hero {
    display: block; flex: 1; min-width: 0; position: sticky; top: 0;
    align-self: flex-start; height: 100vh; height: 100dvh;
  }
}
.si-panel {
  position: absolute; inset: 16px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #101a27 0%, #0a0f16 70%);
  border: 1px solid rgba(255, 255, 255, .06);
}
.si-dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.si-logo {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 14px; pointer-events: none;
}
.si-logo svg { width: clamp(46px, 4.4vw, 62px); height: auto; flex: none; }
.si-logo .word {
  font-weight: 800; letter-spacing: .04em; color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}
.si-logo .word .lt { font-weight: 300; color: #9fb3c7; }
.si-cards {
  position: absolute; left: 0; right: 0; bottom: 32px;
  display: flex; justify-content: center; gap: 16px; padding: 0 32px;
}
.si-card {
  display: flex; align-items: flex-start; gap: 12px; width: 16rem; padding: 20px;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(16, 24, 35, .78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: .875rem; line-height: 1.35;
}
.si-card .ic {
  flex: none; width: 40px; height: 40px; border-radius: 16px; background: var(--blue);
  display: grid; place-items: center; color: #fff;
}
.si-card .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.si-card .nm { font-weight: 600; color: #fff; }
.si-card .hd { color: #9fb3c7; }
.si-card .tx { margin-top: 4px; color: rgba(255, 255, 255, .74); }
.si-card.wide-xl, .si-card.wide-2xl { display: none; }
@media (min-width: 1280px) { .si-card.wide-xl { display: flex; } }
@media (min-width: 1536px) { .si-card.wide-2xl { display: flex; } }

/* entrance: fade up out of a blur, the panel slides in, the cards pop in last */
@keyframes siFade { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes siSlide { to { opacity: 1; filter: blur(0); transform: translateX(0); } }
@keyframes siPop { to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
.si-a {
  opacity: 0; filter: blur(4px); transform: translateY(14px);
  animation: siFade .7s cubic-bezier(.22, .9, .26, 1) forwards; animation-delay: var(--d, 0s);
}
/* after the intro, switching between log in, sign up and reset replays quicker */
.signin.settled .si-a { animation-duration: .45s; animation-delay: calc(var(--d, 0s) * .45); }
.si-panel {
  opacity: 0; filter: blur(4px); transform: translateX(32px);
  animation: siSlide .9s cubic-bezier(.22, .9, .26, 1) .3s forwards;
}
.si-card {
  opacity: 0; filter: blur(4px); transform: translateY(18px) scale(.96);
  animation: siPop .8s cubic-bezier(.22, .9, .26, 1) forwards; animation-delay: var(--d, 1s);
}
@media (prefers-reduced-motion: reduce) {
  .si-a, .si-panel, .si-card { animation: none; opacity: 1; filter: none; transform: none; }
}

/* ---- create account: full-page beams with the form card centred (signup.html) ---- */
.bm-body { background: #0a0a0a; min-height: 100vh; min-height: 100dvh; }
.bm-beams { position: fixed; inset: 0; width: 100%; height: 100%; filter: blur(15px); pointer-events: none; }
.bm-veil {
  position: fixed; inset: 0; pointer-events: none;
  background: rgba(10, 10, 10, .05);
  -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px);
  animation: bmBreathe 10s ease-in-out infinite;
}
@keyframes bmBreathe { 0%, 100% { opacity: .05; } 50% { opacity: .15; } }
.bm-top {
  position: absolute; top: 0; left: 0; z-index: 2;   /* scrolls away with the page, so it never sits on the card */
  display: flex; align-items: center; gap: 16px; padding: 20px clamp(20px, 4vw, 40px);
}
.bm-main {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 88px 16px 40px;
}
/* the card is dark navy glass, so it sits in the beams instead of on top of them */
.bm-card {
  width: 100%; max-width: 30rem; display: flex; flex-direction: column; gap: 20px;
  background: rgba(14, 24, 40, .84); color: #e6edf6;
  border: 1px solid rgba(148, 173, 214, .2); border-radius: 22px;
  padding: clamp(24px, 4vw, 36px);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.bm-card .cfg-notice { margin: 0; }
.bm-card .si-title { color: #fff; }
.bm-card .si-lead { margin-top: -10px; color: #9fb0c8; }
.bm-card .si-label { color: #c9d4e3; font-weight: 600; }
.bm-card .field-hint { color: #8b9bb4; }
.bm-card .si-glass { background: #1b2a40; border-color: rgba(148, 173, 214, .24); }
.bm-card .si-glass:focus-within {
  background: #1f3150; border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .3);
}
.bm-card .si-glass input { color: #fff; }
.bm-card .si-glass input::placeholder { color: #7d8da6; }
.bm-card .si-eye { color: #8b9bb4; }
.bm-card .si-eye:hover { color: #fff; }
.bm-card .si-alt { color: #9fb0c8; }
.bm-card .si-link { color: #7fb0ff; }
.bm-card .si-or::before { border-top-color: rgba(148, 173, 214, .2); }
.bm-card .si-or span { background: #0e1828; color: #8b9bb4; }
.bm-card .si-google { color: #fff; border-color: rgba(148, 173, 214, .24); }
.bm-card .si-google:hover { background: rgba(255, 255, 255, .06); }
.bm-card .msg[data-kind="error"] { color: #fecaca; border-color: rgba(248, 113, 113, .4); background: rgba(239, 68, 68, .12); }
.bm-card .msg[data-kind="ok"] { color: #bfdbfe; border-color: rgba(96, 165, 250, .4); background: rgba(59, 130, 246, .12); }
@media (prefers-reduced-motion: reduce) { .bm-veil { animation: none; opacity: .1; } }

/* ---- account ---- */
.app-main { max-width: 960px; margin: 0 auto; padding: 110px var(--pad) 40px; }
.app-title { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(2rem, 5vw, 3.4rem); }
.app-lead { margin-top: 14px; color: var(--ink-2); max-width: 56ch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.meta-row b { text-transform: none; letter-spacing: .02em; }
.acct-sec { border-top: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0; display: grid; grid-template-columns: 200px 1fr; gap: 28px; }
.acct-sec > header h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.acct-sec > header .idx { font-family: var(--mono); font-size: .7rem; color: var(--steel); display: block; margin-bottom: 6px; }
.acct-sec > header p { margin-top: 8px; font-size: .88rem; color: var(--ink-2); }

.zone-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.zone-opt { position: relative; display: block; }
.zone-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.zone-opt .card {
  display: block; border: 1px solid var(--line); background: var(--white); padding: 18px 16px; height: 100%;
  border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s;
}
.zone-opt .card .z { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.zone-opt .card strong { display: block; font-size: 1.1rem; margin-top: 6px; letter-spacing: -.01em; }
.zone-opt .card small { display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
.zone-opt input:checked + .card { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.zone-opt input:focus-visible + .card { outline: 2px solid var(--navy); outline-offset: 2px; }

.sched { border-top: 1px solid var(--line); }
.sched-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.sched-day { display: flex; gap: 10px; align-items: center; min-height: 42px; font-weight: 600; cursor: pointer; }
.sched-day input { width: 18px; height: 18px; accent-color: var(--navy); }
.sched-blocks { display: flex; flex-direction: column; gap: 8px; }
.sched-off { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); min-height: 42px; display: flex; align-items: center; }
.sched-block { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sched-block label { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sched-block input[type=time] {
  min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--r);
  font-family: var(--sans); font-size: .95rem; color: var(--ink); border-radius: var(--r-md);
}
.sched-block input[type=time]:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.sched-block .overnight { font-size: .75rem; color: var(--navy); }
.sched-block .linkbtn, .sched-add { font-size: .78rem; }
.sched-total { margin-top: 18px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }

.save-bar {
  position: sticky; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: 16px 0; display: flex; gap: 16px; align-items: center; justify-content: flex-end; flex-wrap: wrap;
}
.save-bar .msg { margin-right: auto; }

/* ---- live dashboard ---- */
.banner {
  border: 1px solid var(--steel); border-left: 4px solid var(--navy); background: var(--white);
  border-radius: var(--r-md);
  padding: 16px 18px; margin-bottom: 22px; font-size: .92rem; max-width: 820px;
}
.banner[data-kind="rejected"], .banner[data-kind="paused"] { border-left-color: var(--ink); }
.st-badge {
  display: inline-block; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--steel); color: var(--navy); white-space: nowrap;
  border-radius: 999px;
}
.st-badge.paid, .st-badge.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty { color: var(--ink-2); font-size: .9rem; padding: 18px 0 6px; max-width: 46ch; }
.is-loading .t-value, .is-loading .t-sub {
  color: transparent; background: linear-gradient(90deg, #eceef1 0%, #f6f7f9 50%, #eceef1 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 2px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.clients { list-style: none; margin-top: 16px; border-top: 1px solid #eceef1; }
.clients li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eceef1; font-size: .9rem; }
.clients li .c-name { font-weight: 600; }
.clients li .c-meta { font-size: .78rem; color: var(--ink-2); margin-top: 2px; }
.clients li .c-amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.dots { display: inline-flex; gap: 4px; margin-top: 6px; }
.dots i { width: 14px; height: 4px; background: var(--line); display: block; border-radius: 999px; }
.dots i.on { background: var(--navy); }
.aff-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: .88rem; color: var(--ink-2); }
.aff-total strong { color: var(--ink); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.acc-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: .9rem; margin-top: 4px; }
.acc-list dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.acc-list dd { font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 16px; }
.week span { text-align: center; border-radius: var(--r); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; padding: 8px 0; border: 1px solid var(--line); color: var(--ink-2); }
.week span.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.panel-link { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); }

/* ---------- Dashboard: one typeface throughout ----------
   The driver app had small uppercase IBM Plex Mono labels left over from the first design.
   Inside the dashboard the mono font now resolves to Archivo, and the labels drop the
   capitals and wide tracking that only suited the mono face. */
.shell-body { --mono: var(--sans); }
.shell-body .btn { font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.shell-body .tile .t-label,
.shell-body .f-field label,
.shell-body table.db th,
.shell-body .acc-list dt,
.shell-body .sched-block label,
.shell-body .zone-opt .card .z { font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.shell-body .panel-link { font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.shell-body .sched-off { font-size: .85rem; letter-spacing: 0; text-transform: none; }
.shell-body .week span { font-size: .75rem; font-weight: 600; text-transform: capitalize; }   /* Ma Di Wo, not ma di wo */
.shell-body .st-badge { font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.shell-body .side-badge { font-size: .7rem; font-weight: 600; }
.shell-body .chip { font-size: .8rem; letter-spacing: 0; text-transform: none; }
.shell-body .chart-tip { font-size: .78rem; }
.shell-body .ax, .shell-body .dlabel { font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .acct-sec { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .brand .word { display: none; }
  .hdr .btn.pill { padding: 0 14px; font-size: .82rem; }
  .lang-pill { padding: 0 10px; }
}
@media (max-width: 640px) {
  .zone-pick { grid-template-columns: 1fr; }
  .sched-row { grid-template-columns: 1fr; gap: 6px; }
  .save-bar .btn { width: 100%; text-align: center; }
}
@media (max-width: 960px) {
  .db-grid { grid-template-columns: 1fr 1fr; }
  .db-cols { grid-template-columns: 1fr; }
  .dash-prev { grid-template-columns: 1fr; }
  .rowi { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; }
  .rowi p { grid-column: 2; }
  .rowi .val { grid-column: 2; }
  .zones { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 920px) {
  .hdr-nav { display: none; }           /* links move into the mobile menu */
  .burger { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-mark { opacity: .22; width: 78vw; right: -10vw; }
  .tiles { grid-template-columns: 1fr; }
  .db-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.gsap-pending .g-hide { opacity: 1; }
  * { scroll-behavior: auto !important; }
}
