/* Fully Funded Shifts website.
   Layout: the highlighter on a printed roster. Left-aligned on an 8px grid,
   paper sections alternating with cobalt bands, one tilted tangerine swash (the hero).
   Values come from the brand design system (tokens.json). The site is light-only by
   choice: the logos are only approved on paper, white and cobalt grounds. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  --cobalt: #2340B8;
  --cobalt-soft: #E3E8FF;
  --on-cobalt: #F6F5FB;
  --on-cobalt-muted: #C9D1FF;
  --tangerine: #FF9A3D;
  --tangerine-soft: #FFF0E0;
  --on-tangerine: #141B3D;
  --tangerine-edge: #A84F00;
  --ink: #141B3D;
  --ink-muted: #4C5478;
  --paper: #F6F5FB;
  --surface-raised: #FFFFFF;
  --line: #DCDCEB;
  --line-strong: #737A9A;
  --success: #0B7285;
  --success-soft: #DDF2F6;
  --flag: #B3261E;
  --flag-soft: #FBE3E1;
  --focus-ring: #2340B8;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-lift: 0 1px 0 #DCDCEB, 0 6px 16px -8px rgba(35, 64, 184, 0.25);
  --page-max: 1160px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; color: var(--cobalt); }
h3 { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ink); }
p { margin: 0; }

.skip {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--cobalt); color: var(--on-cobalt);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 30;
}
.skip:focus { top: var(--space-2); }

/* Width wrapper: every band's inner content uses it, so the side gutter lives in one place. */
.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.band { padding-block: var(--space-16); }
.band--cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.band--cobalt h2, .band--cobalt h3 { color: var(--on-cobalt); }
.band--raised { background: var(--surface-raised); border-block: 1px solid var(--line); }

.section-head { display: grid; gap: var(--space-3); max-width: 720px; margin-bottom: var(--space-12); }
.lede { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 62ch; }
.band--cobalt .lede { color: var(--on-cobalt-muted); }

/* Icons: rounded line set, 1.5px stroke */
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font: 600 16px/20px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn--primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn--primary:hover { background: #1C349A; }
.btn--secondary { background: var(--surface-raised); color: var(--cobalt); border-color: var(--cobalt); }
.btn--highlight { background: var(--tangerine); color: var(--on-tangerine); }
.btn--highlight:hover { background: #FFA955; }
.btn--small { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: 14px; }
.band--cobalt a:focus-visible, .band--cobalt .btn:focus-visible { outline-color: var(--tangerine); }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 21;
  background: var(--paper);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(246, 245, 251, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  min-height: 72px;
}
.site-header .logo img { width: 168px; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav ul a:hover { color: var(--cobalt); text-decoration: underline; }
.site-nav ul a[aria-current="page"] { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; background: var(--surface-raised);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary .i { width: 20px; height: 20px; }
.site-nav .menu ul {
  display: grid; gap: 0;
  position: absolute; right: 0; top: calc(100% + var(--space-2));
  width: min(300px, calc(100vw - 32px));
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift); padding: var(--space-2);
}
.site-nav .menu ul a { display: block; padding: var(--space-3); border-radius: var(--radius-sm); }
.site-nav .menu ul a:hover { background: var(--cobalt-soft); text-decoration: none; }
@media (max-width: 900px) { .site-nav > ul { display: none; } .menu { display: block; } }
@media (max-width: 480px) { .site-nav > .btn { display: none; } }
@media (max-width: 400px) { .site-header .logo img { width: 136px; } }

/* Hero */
.hero { padding-block: var(--space-16) var(--space-16); }
.hero .wrap { display: grid; gap: var(--space-12); }
.hero-copy { display: grid; gap: var(--space-6); min-width: 0; max-width: 820px; }
.eyebrow { font-weight: 600; font-size: 15px; color: var(--ink-muted); }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 76px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 .eyebrow { display: block; margin-bottom: var(--space-6); font: 600 15px/22px var(--font-sans); letter-spacing: 0; }
.hero-line { display: block; }
.hero .turn { font-size: 20px; line-height: 30px; color: var(--ink); max-width: 52ch; }
.hero .turn strong { color: var(--cobalt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* The swash: the one tilt on the page. Shape traced from the logo's highlighter stroke. */
.swash { position: relative; display: inline-block; padding-inline: 0.12em; z-index: 0; }
.swash::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0.08em -0.06em 0.02em;
  background: var(--tangerine);
  clip-path: polygon(3.3% 4.1%, 98.2% 0%, 100% 33.1%, 97.4% 52%, 99.5% 94.6%, 1.3% 100%, 2.9% 56.8%, 0% 37.8%);
  transform: rotate(-3deg);
}

/* Roster Board recreation: the real board's layout and wording, in brand colours */
.app {
  margin: 0;
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 #DCDCEB, 0 24px 48px -24px rgba(35, 64, 184, 0.35);
  overflow: hidden;
  font-size: 13px; line-height: 18px;
  min-width: 0;
}
.app .i { width: 16px; height: 16px; }
.app small { display: block; font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.app-bar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.app-module { display: inline-flex; align-items: center; gap: var(--space-2); font: 700 16px/20px var(--font-display); color: var(--cobalt); }
.app-user { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.app-user b { font-weight: 600; }
.av { width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.av--brand { background: var(--cobalt); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-raised); }
.seg span { padding: 5px 10px; font-weight: 600; color: var(--ink); }
.seg span + span { border-left: 1px solid var(--line); }
.seg .on { background: var(--cobalt); color: var(--on-cobalt); }
.seg--sm span { padding: 3px 10px; }
.app-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.app-side { display: grid; align-content: start; gap: 2px; padding: var(--space-3) var(--space-2); border-right: 1px solid var(--line); }
.app-side span { display: flex; align-items: center; gap: var(--space-2); padding: 7px var(--space-2); border-radius: var(--radius-sm); color: var(--ink); white-space: nowrap; }
.app-side .on { background: var(--cobalt-soft); color: var(--cobalt); font-weight: 600; }
.app-main { padding: var(--space-4); display: grid; gap: var(--space-3); min-width: 0; background: var(--paper); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.period { padding-inline: var(--space-2); }
.period b { font-size: 14px; }
.tbtn { display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 600; background: var(--surface-raised); color: var(--ink); white-space: nowrap; }
.tbtn--primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-muted); }
.k::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--dot); }
.k--problem, .tile--problem { --dot: var(--flag); }
.k--draft, .tile--draft { --dot: var(--line-strong); }
.k--open, .tile--open { --dot: var(--tangerine-edge); }
.k--ok, .tile--ok { --dot: var(--success); }
.grid {
  display: grid;
  grid-template-columns: 170px repeat(7, minmax(0, 1fr));
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.g-head { padding: 8px; font-weight: 700; font-size: 12px; text-align: center; background: var(--paper); border-bottom: 1px solid var(--line); }
.g-head:first-child { text-align: left; color: var(--ink-muted); }
.who, .g-cell { min-height: 74px; border-bottom: 1px solid var(--line); }
.grid > :nth-last-child(-n+8) { border-bottom: 0; }
.who { display: flex; align-items: center; gap: var(--space-2); padding: 8px; min-width: 0; }
.who b { display: block; font-weight: 600; white-space: nowrap; }
.who--problem { color: var(--flag); }
.who--problem small { color: var(--flag); }
.who--open .i { color: var(--tangerine-edge); }
.g-cell { border-left: 1px solid var(--line); padding: 4px; min-width: 0; }
.tile { border: 1px solid var(--dot); border-radius: var(--radius-sm); padding: 5px 6px; display: grid; gap: 1px; font-size: 11px; line-height: 14px; min-width: 0; }
.tile b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tile span, .tile i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile i { font-style: normal; display: flex; align-items: center; gap: 4px; color: var(--ink-muted); }
.tile i::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--dot); flex: none; }
.tile--ok { background: var(--success-soft); }
.tile--problem { background: var(--flag-soft); }
.tile--open { background: var(--tangerine-soft); }
.tile--draft { background: var(--surface-raised); border-style: dashed; }

/* The funding check dialog, floating over the board */
.dlg {
  position: absolute; right: var(--space-6); bottom: var(--space-6);
  width: 420px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -12px rgba(20, 27, 61, 0.35);
  padding: var(--space-6);
  display: grid; gap: var(--space-3);
  font-size: 14px; line-height: 20px;
}
.app::after { content: ""; position: absolute; inset: 0; background: rgba(20, 27, 61, 0.22); pointer-events: none; }
.dlg { z-index: 1; }
.dlg-title { display: flex; align-items: center; gap: var(--space-2); font: 700 17px/22px var(--font-display); }
.dlg-title .i { color: var(--tangerine-edge); width: 18px; height: 18px; }
.dlg-desc { color: var(--ink-muted); }
.issue { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); display: grid; gap: var(--space-2); }
.issue small { font-size: 12px; line-height: 16px; margin-top: -4px; }
.opt { display: flex; gap: var(--space-2); align-items: flex-start; }
.radio { width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); flex: none; }
.radio--on { border: 5px solid var(--cobalt); }
.select { display: block; margin-top: var(--space-1); padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 13px; line-height: 18px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: var(--space-2); }

@media (max-width: 1080px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
}
@media (max-width: 900px) {
  .app::after { display: none; }
  .dlg { position: static; width: auto; margin: 0 var(--space-4) var(--space-4); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
  .grid { grid-template-columns: 132px repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-user, .app-bar .seg, .tools .tbtn, .tools .seg:nth-of-type(2) { display: none; }
  /* On phones show three days of the board, as the app's own narrow view would scroll */
  .grid { grid-template-columns: 112px repeat(3, minmax(0, 1fr)); }
  .grid > :nth-child(8n+5), .grid > :nth-child(8n+6), .grid > :nth-child(8n+7), .grid > :nth-child(8n+8) { display: none; }
  .grid > :nth-last-child(-n+8) { border-bottom: 0; }
  .who small { white-space: normal; }
  .dlg { margin: 0 var(--space-3) var(--space-3); padding: var(--space-4); }
}

/* From FFS to Fully Funded Shifts */
.turns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
@media (max-width: 860px) { .turns { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.turn-item { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-6); border-top: 1px solid rgba(246, 245, 251, 0.35); }
.turn-item .was { font-size: 15px; color: var(--on-cobalt-muted); }
.turn-item .was s { text-decoration-thickness: 1.5px; }
.turn-item h3 { font-size: 22px; line-height: 28px; }
.turn-item p:last-child { color: var(--on-cobalt-muted); }

/* Built by a provider */
.provider { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
@media (max-width: 860px) { .provider { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.provider .section-head { margin-bottom: 0; }
.provider-body { display: grid; gap: var(--space-4); min-width: 0; padding-top: var(--space-2); }
.provider-body .ticks .i { color: var(--cobalt); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature {
  display: grid; gap: var(--space-3); align-content: start;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.feature .i { width: 28px; height: 28px; color: var(--cobalt); }
.feature p { color: var(--ink-muted); }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--ink-muted); display: grid; gap: var(--space-1); }

/* How it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.step { counter-increment: step; display: grid; gap: var(--space-2); align-content: start; position: relative; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--cobalt); color: var(--on-cobalt);
  font: 800 18px/1 var(--font-display);
  margin-bottom: var(--space-2);
}
.step p { color: var(--ink-muted); }
@media (min-width: 1001px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 20px; left: 52px; right: calc(-1 * var(--space-6) + 12px);
    border-top: 2px dotted var(--line-strong);
  }
}
@media (max-width: 1000px) {
  .step { grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-4); padding-bottom: var(--space-6); }
  .step::before { grid-row: 1 / span 2; margin: 0; }
}

/* Support workers */
.workers .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--space-12); align-items: center; }
@media (max-width: 860px) { .workers .wrap { grid-template-columns: minmax(0, 1fr); } }
.workers-copy { display: grid; gap: var(--space-6); min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.ticks .i { color: var(--tangerine); margin-top: 0; }
/* Worker app recreation: the real shift screen and its dark theme, in brand dark colours */
.phone {
  background: #070A1F;
  border-radius: 40px;
  padding: 10px;
  width: 100%; max-width: 340px; justify-self: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.phone-screen {
  --w-bg: #0E1230; --w-card: #171C45; --w-line: #2B3266; --w-ink: #EEF0FA; --w-muted: #A9AFCF; --w-cobalt: #8EA2FF; --w-ok: #5CC8E0;
  background: var(--w-bg); color: var(--w-ink);
  border-radius: 30px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  font-size: 13px; line-height: 18px;
}
.phone-screen .i { width: 16px; height: 16px; }
.phone-screen small { display: block; font-size: 11px; line-height: 14px; color: var(--w-muted); }
.w-bar { display: flex; align-items: center; gap: var(--space-2); padding: 14px var(--space-4) 10px; background: var(--cobalt); color: var(--on-cobalt); }
.w-bar b { display: block; font: 700 14px/16px var(--font-display); }
.w-bar span { font-size: 11px; line-height: 14px; }
.w-body { display: grid; gap: 10px; padding: 12px; align-content: start; }
.w-back { color: var(--w-muted); font-size: 12px; }
.w-card { background: var(--w-card); border: 1px solid var(--w-line); border-radius: var(--radius-md); padding: 12px; display: grid; gap: 8px; }
.w-time { display: flex; align-items: center; gap: 6px; font: 700 18px/22px var(--font-display); font-variant-numeric: tabular-nums; }
.w-time .i { color: var(--w-ok); width: 18px; height: 18px; }
.w-time small { display: inline; font: 500 12px/16px var(--font-sans); }
.w-name { font-weight: 600; font-size: 15px; margin-top: -4px; }
.w-id { font-size: 11px; color: var(--w-muted); letter-spacing: 0.04em; margin-top: -6px; }
.w-label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: var(--w-ok); }
.w-clock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-clock div { background: var(--w-bg); border-radius: var(--radius-sm); padding: 8px; }
.w-clock b { font-size: 15px; font-variant-numeric: tabular-nums; }
.w-btn { display: grid; place-items: center; min-height: 44px; border-radius: var(--radius-sm); background: var(--w-cobalt); color: var(--w-bg); font-weight: 700; font-size: 15px; }
.w-foot { font-size: 10px; line-height: 13px; color: var(--w-muted); text-align: center; }
.w-task { display: grid; gap: 4px; background: var(--w-bg); border-radius: var(--radius-sm); padding: 8px; }
.w-yn { display: flex; gap: 6px; margin-top: 2px; }
.w-yn span { padding: 4px 16px; border: 1px solid var(--w-line); border-radius: var(--radius-sm); font-weight: 600; }
.w-yn .on { background: var(--w-ok); border-color: var(--w-ok); color: var(--w-bg); }
.w-notes-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.w-field { margin-bottom: -4px; }
.w-input { background: var(--w-bg); border: 1px solid var(--w-line); border-radius: var(--radius-sm); padding: 8px; font-size: 12px; line-height: 16px; }
.w-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--w-line); padding: 8px 4px 12px; }
.w-nav span { display: grid; justify-items: center; gap: 2px; font-size: 10px; line-height: 12px; color: var(--w-muted); }
.w-nav .i { width: 18px; height: 18px; }
.w-nav .on { color: var(--w-ok); }

/* Security */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-12); }
@media (max-width: 760px) { .trust { grid-template-columns: minmax(0, 1fr); } }
.trust-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.trust-item .badge { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--cobalt-soft); color: var(--cobalt); display: grid; place-items: center; }
.trust-item div:last-child { display: grid; gap: var(--space-1); }
.trust-item p { color: var(--ink-muted); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: var(--space-4);
  font: 700 18px/26px var(--font-display);
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--cobalt); transition: transform 160ms ease; }
.faq details[open] summary .i { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq summary .i { transition: none; } }
.faq details p { padding-bottom: var(--space-6); color: var(--ink-muted); max-width: 68ch; }

/* Demo CTA */
.cta .wrap { display: grid; gap: var(--space-6); justify-items: start; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); }
.cta .lede { max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.cta-email { color: var(--on-cobalt); font-weight: 600; user-select: all; }

/* Footer */
.site-footer { padding-block: var(--space-12) var(--space-8); background: var(--surface-raised); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: var(--space-8); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); align-items: flex-start; }
.footer-top img { width: 180px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-16); }
.footer-head { font: 700 15px/20px var(--font-display); color: var(--cobalt); margin-bottom: var(--space-3); }
.footer-cols .footer-nav { display: grid; gap: var(--space-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--cobalt); text-decoration: underline; }
.legal { font-size: 13px; line-height: 20px; color: var(--ink-muted); display: grid; gap: var(--space-1); border-top: 1px solid var(--line); padding-top: var(--space-6); }

/* Feature pages */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.page-hero { padding-block: var(--space-12) var(--space-16); }
.page-hero .wrap { display: grid; gap: var(--space-6); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); max-width: 18ch; }
.page-hero .lede { font-size: 20px; line-height: 30px; color: var(--ink); max-width: 56ch; }
.page-hero .shot { margin-top: var(--space-6); }
.detail .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-6) var(--space-12); align-items: start; }
@media (max-width: 860px) { .detail .wrap { grid-template-columns: minmax(0, 1fr); } }
.detail h2 { font-size: clamp(26px, 3.4vw, 34px); }
.prose { display: grid; gap: var(--space-4); min-width: 0; max-width: 68ch; }
.prose p { color: var(--ink); }
.prose .note { font-size: 15px; color: var(--ink-muted); }
.band--cobalt .prose p { color: var(--on-cobalt); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.checklist .i { color: var(--cobalt); margin-top: 0; }
.checklist b { display: block; }
.checklist span span { color: var(--ink-muted); }
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-4); }
.panel-title { font: 700 18px/24px var(--font-display); color: var(--ink); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 860px) { .related { grid-template-columns: minmax(0, 1fr); } }
.related a { display: grid; gap: var(--space-2); padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); }
.related a:hover { border-color: var(--cobalt); }
.related b { font: 700 20px/26px var(--font-display); color: var(--cobalt); }
.related span { color: var(--ink-muted); }
.more { font-weight: 600; }
.feature .more, .turn-item .more { margin-top: auto; }
.turn-item .more { color: var(--on-cobalt); }
.workers .more, .cta .more { color: var(--on-cobalt); }

/* Screen recreations on feature pages */
.screen { margin: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 0 #DCDCEB, 0 24px 48px -24px rgba(35, 64, 184, 0.35); overflow: hidden; min-width: 0; font-size: 14px; line-height: 20px; }
.screen-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.screen-head b { font: 700 18px/24px var(--font-display); }
.screen-head small { display: block; font-size: 13px; color: var(--ink-muted); }
.screen-body { padding: var(--space-4) var(--space-6) var(--space-6); display: grid; gap: var(--space-3); }
.scroll-x { overflow-x: auto; }
.scroll-x:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.budget { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.budget th { text-align: right; font-weight: 600; color: var(--ink-muted); padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.budget td { text-align: right; padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--line); }
.budget th:first-child, .budget td:first-child { text-align: left; padding-left: var(--space-6); max-width: 240px; }
.budget th:last-child, .budget td:last-child { padding-right: var(--space-6); }
.budget tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-pill); font-weight: 600; font-size: 12px; white-space: nowrap; }
.pill .i { width: 12px; height: 12px; stroke-width: 2.25; }
.pill--under { background: var(--success-soft); color: var(--success); }
.pill--target { background: var(--cobalt-soft); color: var(--cobalt); }
.pill--over { background: var(--flag-soft); color: var(--flag); }
.check-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.check-row .i { width: 20px; height: 20px; margin-top: 1px; }
.check-row b { display: block; }
.check-row small { display: block; font-size: 13px; color: var(--ink-muted); }
.check-row--error { background: var(--flag-soft); border-color: var(--flag); }
.check-row--error .i { color: var(--flag); }
.check-row--warn .i { color: var(--tangerine-edge); }
.check-row--ok .i { color: var(--success); }
@media (max-width: 520px) { .check-row { grid-template-columns: 24px minmax(0, 1fr); } .check-row .tbtn { grid-column: 2; justify-self: start; } }
.file-name { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.ea-bar { background: var(--ink); color: #fff; font-size: 14px; line-height: 20px; }
.ea-bar .wrap { padding-block: var(--space-2); }
.ea-bar b { color: var(--tangerine); }
.ea-bar a { color: #fff; font-weight: 600; }
.ea-bar a:focus-visible { outline-color: var(--tangerine); }

/* Participant portal recreation */
.page-hero .portal { max-width: 720px; }
.portal .screen-body > .seg { justify-self: start; }
.portal .count { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--tangerine); color: var(--on-tangerine); font-size: 11px; }
.portal-banner { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); background: var(--tangerine-soft); border: 1px solid var(--tangerine); border-radius: var(--radius-md); }
.portal-banner .i { color: var(--tangerine-edge); }
.portal-banner small { display: block; color: var(--ink-muted); font-size: 12px; }
.portal-review { font-weight: 600; color: var(--tangerine-edge); }
.portal-day { margin-top: var(--space-2); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.portal-shift { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); font-weight: 600; }
.portal-shift > span:first-child { display: inline-flex; align-items: center; gap: var(--space-2); }
.portal-shift .i { width: 16px; height: 16px; color: var(--line-strong); }
.portal-who { font-weight: 400; color: var(--ink-muted); }
.portal-shift--cancelled { background: var(--flag-soft); border-color: var(--flag); }
.portal-shift--cancelled s { color: var(--ink-muted); }
.portal-cancel { display: grid; justify-items: end; gap: 2px; }
.portal-cancel small { font-size: 11px; color: var(--flag); font-weight: 400; }

/* Support access recreation (data security page) */
.support-screen { max-width: 760px; }
.support-screen .screen-body > .seg { justify-self: start; }
.field-label { font-weight: 700; font-size: 13px; color: var(--ink); margin-top: var(--space-2); }
.mode-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 560px) { .mode-choices { grid-template-columns: minmax(0, 1fr); } }
.mode { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); }
.mode small, .code-card small, .session-row small { font-size: 12px; color: var(--ink-muted); }
.mode--on { border: 2px solid var(--cobalt); background: var(--cobalt-soft); }
.code-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--tangerine); border-radius: var(--radius-md); background: var(--tangerine-soft); }
.code-card > span:first-child { display: grid; gap: 2px; }
.code { font: 700 28px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--ink); }
.session-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.session-row > span:first-child { display: grid; }
.session-count { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 560px) { .session-row { grid-template-columns: minmax(0, 1fr); } .session-row .tbtn { justify-self: start; } }
.access-steps { list-style: none; counter-reset: step; margin: var(--space-12) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 860px) { .access-steps { grid-template-columns: minmax(0, 1fr); } }
.access-steps li { counter-increment: step; display: grid; gap: var(--space-2); align-content: start; }
.access-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--cobalt); color: #fff; font: 700 15px/1 var(--font-display); }
.access-steps b { font: 700 19px/26px var(--font-display); color: var(--ink); }
.access-steps span { color: var(--ink-muted); }
.support-note { margin-top: var(--space-8); max-width: 68ch; font-size: 15px; color: var(--ink-muted); }

.more-row { margin-top: var(--space-8); }

/* Guides */
.guide-hero h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; max-width: 24ch; }
.byline { font-size: 15px; color: var(--ink-muted); }
.article { padding-block: 0 var(--space-16); }
.article .prose { max-width: 72ch; gap: var(--space-4); }
.article h2 { font-size: clamp(24px, 3vw, 30px); margin-top: var(--space-8); }
.article h3 { font: 700 19px/26px var(--font-display); color: var(--ink); margin-top: var(--space-2); }
.article ul:not(.checklist), .article ol:not(.guide-steps) { margin: 0; padding-left: 1.25em; display: grid; gap: var(--space-2); }
.in-short { background: var(--cobalt-soft); border-left: 4px solid var(--cobalt); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-6); display: grid; gap: var(--space-2); }
.in-short b:first-child { font-family: var(--font-display); color: var(--cobalt); }
.guide-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.guide-steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); }
.guide-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--cobalt); color: #fff; font: 700 15px/1 var(--font-display); }
.data { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.data th, .data td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--line); }
.data th { font-weight: 700; color: var(--ink); background: var(--surface-raised); }
.data td code, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; white-space: nowrap; }
@media (max-width: 560px) {
  .data--stack thead { display: none; }
  .data--stack tr { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
  .data--stack td { padding: 0; border: 0; }
}
.article blockquote { margin: 0; padding: var(--space-3) var(--space-6); border-left: 4px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font-style: italic; }
.cta-email-plain { font-weight: 600; user-select: all; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-6); }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: var(--space-6); padding-block: var(--space-16); }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }

/* Pricing */
.price-card { margin-top: var(--space-8); max-width: 520px; display: grid; gap: var(--space-4); justify-items: start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: 0 24px 48px -24px rgba(35, 64, 184, 0.35); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); color: var(--ink); }
.price-amount { font: 700 56px/1 var(--font-display); color: var(--cobalt); }
.price-unit { font-size: 18px; font-weight: 600; }
.price-terms { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-1); color: var(--ink-muted); }
.price-ea { font-size: 15px; color: var(--ink-muted); }
.price-ea b { color: var(--ink); }
.features--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .features--two { grid-template-columns: minmax(0, 1fr); } .price-card { padding: var(--space-6); } .price-amount { font-size: 44px; } }

/* Contact form */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact-form { display: grid; gap: var(--space-4); max-width: 560px; }
.field { display: grid; gap: var(--space-1); }
.field label { font-weight: 600; color: var(--ink); }
.field .req { color: var(--cobalt); }
.field .optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; box-sizing: border-box; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cookie banner (a card in the corner, on brand blue so it's noticed) and footer links */
.consent { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - 32px)); background: var(--cobalt); color: var(--on-cobalt); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -12px rgba(20, 27, 61, 0.55); animation: consent-in 320ms ease-out; }
.consent-inner { display: grid; gap: var(--space-3); padding: var(--space-6); }
.consent-title { font: 700 22px/28px var(--font-display); color: var(--on-cobalt); text-wrap: balance; }
.consent p { color: var(--on-cobalt); font-size: 15px; line-height: 22px; }
.consent a { color: var(--on-cobalt); text-decoration: underline; }
.consent a:focus-visible, .consent .btn:focus-visible { outline-color: var(--tangerine); }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-1); }
.btn--light { background: var(--surface-raised); color: var(--cobalt); border-color: var(--surface-raised); }
.btn--light:hover { background: var(--cobalt-soft); }
@keyframes consent-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 600px) { .consent { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; } .consent-actions .btn { flex: 1 1 0; } }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.legal-links a, .link-button { color: var(--ink-muted); text-decoration: underline; }
.link-button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.link-button:hover, .legal-links a:hover { color: var(--cobalt); }
