/* ============================================================
   SITE MATCH — DESIGN SYSTEM
   Industrial editorial: hazard stripes, blueprint grids,
   condensed display type, one hot accent.
   ============================================================ */

:root {
  --ink: #14161a;
  --steel-700: #3c424c;
  --steel-300: #9ba3af;
  --paper: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --accent: #e0560f;
  --accent-dim: #b8460c;
  --accent-soft: #fff1e8;
  --good: #2f8f5b;
  --bad: #c23b3b;

  --border: #dcdfe4;
  --border-strong: #c4c9d1;
  --text: var(--ink);
  --text-muted: var(--steel-700);
  --text-faint: var(--steel-300);

  /* Theme-invariant dark surfaces */
  --band-bg: #0b0c0e;
  --band-bg-2: #14161a;
  --band-fg: #ffffff;
  --band-fg-muted: #a8afb9;
  --band-border: #24272d;
  --on-brand: #ffffff;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(20,22,26,0.06), 0 1px 1px rgba(20,22,26,0.04);
  --shadow-md: 0 4px 14px rgba(20,22,26,0.09), 0 1px 3px rgba(20,22,26,0.06);
  --shadow-lg: 0 12px 32px rgba(20,22,26,0.14), 0 2px 8px rgba(20,22,26,0.08);
  --shadow-xl: 0 28px 60px rgba(20,22,26,0.22), 0 6px 18px rgba(20,22,26,0.12);
  --ease: cubic-bezier(.2,.7,.3,1);
  --maxw: 1080px;
  --maxw-narrow: 640px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f3f5;
    --steel-700: #c3c9d1;
    --steel-300: #6b7280;
    --paper: #0e1013;
    --surface: #16191e;
    --surface-2: #1c2026;
    --accent: #ff7a3d;
    --accent-dim: #ff9563;
    --accent-soft: #2a1a12;
    --good: #4fbf85;
    --bad: #e8615f;
    --border: #272b32;
    --border-strong: #363b44;
    --text: var(--ink);
    --text-muted: var(--steel-700);
    --text-faint: var(--steel-300);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
    --shadow-xl: 0 28px 60px rgba(0,0,0,0.7);
  }
}

:root[data-theme="dark"] {
  --ink: #f2f3f5;
  --steel-700: #c3c9d1;
  --steel-300: #6b7280;
  --paper: #0e1013;
  --surface: #16191e;
  --surface-2: #1c2026;
  --accent: #ff7a3d;
  --accent-dim: #ff9563;
  --accent-soft: #2a1a12;
  --good: #4fbf85;
  --bad: #e8615f;
  --border: #272b32;
  --border-strong: #363b44;
  --text: var(--ink);
  --text-muted: var(--steel-700);
  --text-faint: var(--steel-300);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

a { color: var(--accent); }

.display {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky; top: 0; z-index: 70;
  background: color-mix(in srgb, var(--band-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--band-border);
}
.topnav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1.15rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; margin-right: auto; }
.brand .icon { width: 1.45rem; height: 1.45rem; color: var(--accent); }
.brand-name {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; text-transform: uppercase; font-size: 1.35rem;
  line-height: 1; color: #fff; letter-spacing: 0.01em; white-space: nowrap;
}
@media (max-width: 430px) {
  .brand-name { font-size: 1.15rem; }
  .brand .icon { width: 1.2rem; height: 1.2rem; }
  .topnav-inner { gap: 0.5rem; padding: 0.65rem 0.9rem; }
  .nav-btn { padding: 0.45rem 0.7rem; font-size: 0.76rem; }
}
.brand-name span { color: var(--accent); }
.nav-links { display: none; gap: 1.4rem; align-items: center; }
.nav-links a {
  color: var(--band-fg-muted); text-decoration: none; font-size: 0.86rem; font-weight: 600;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; }
.nav-btn {
  font: inherit; font-weight: 700; font-size: 0.82rem; text-decoration: none;
  padding: 0.5rem 0.9rem; border-radius: var(--r-sm); white-space: nowrap;
  border: 1px solid var(--band-border); color: #fff; background: transparent;
  cursor: pointer; transition: all 0.15s var(--ease);
}
.nav-btn:hover { border-color: var(--band-fg-muted); }
.nav-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-btn.primary:hover { filter: brightness(1.08); }
@media (min-width: 800px) {
  .nav-links { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--band-bg); color: var(--band-fg);
  padding: 2.1rem 1.15rem 2.6rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--band-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--band-border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.75; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -10%; top: -30%;
  width: 70%; height: 90%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 1.15rem 4.8rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--accent); }
.eyebrow.on-dark { color: var(--accent); }

.hero h1 {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; text-transform: uppercase; line-height: 0.88;
  font-size: clamp(2.3rem, 10.5vw, 4.6rem);
  margin: 0 0 0.85rem; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 0.96rem; color: var(--band-fg-muted); max-width: 48ch; margin: 0 0 1.2rem;
}
@media (min-width: 900px) { .hero-sub { font-size: 1.02rem; margin-bottom: 1.7rem; } }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-direction: column; gap: 0.7rem; max-width: 22rem; }
@media (min-width: 520px) { .hero-actions { flex-direction: row; max-width: none; } }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin-top: 1.8rem;
  font-size: 0.78rem; color: var(--band-fg-muted);
}
.hero-trust .icon-row .icon { color: var(--accent); width: 0.95rem; height: 0.95rem; }

/* Hazard stripe rule */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, transparent 14px 28px);
}

/* Phone mock */
.phone-mock {
  position: relative; width: 100%; max-width: 290px; margin: 0 auto;
  background: var(--band-bg-2); border: 1px solid var(--band-border);
  border-radius: 30px; padding: 0.6rem; box-shadow: var(--shadow-xl);
}
.phone-screen {
  background: #f4f5f7; border-radius: 24px; overflow: hidden; color: #14161a;
}
.phone-topbar { background: #0b0c0e; padding: 0.85rem 0.9rem 0.7rem; }
.phone-topbar .pt-label { font-family: "IBM Plex Mono", monospace; font-size: 0.52rem; letter-spacing: 0.12em; color: #a8afb9; text-transform: uppercase; }
.phone-topbar .pt-title { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; color: #fff; line-height: 1; margin-top: 0.15rem; }
.phone-topbar .pt-title span { color: var(--accent); }
.phone-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.55rem; }
.mock-card {
  background: #fff; border: 1px solid #e2e5ea; border-radius: 12px; padding: 0.6rem 0.65rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mock-row { display: flex; align-items: center; gap: 0.5rem; }
.mock-avatar {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #e0560f, #b8460c); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 0.78rem;
}
.mock-name { font-size: 0.74rem; font-weight: 700; line-height: 1.2; }
.mock-meta { font-size: 0.6rem; color: #6b7280; line-height: 1.3; }
.mock-rate { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 0.7rem; }
.mock-tags { display: flex; gap: 0.3rem; margin-top: 0.45rem; flex-wrap: wrap; }
.mock-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 0.5rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.15rem 0.38rem; border-radius: 99px;
  background: #eef0f3; color: #3c424c; border: 1px solid #e2e5ea;
}
.mock-tag.green { background: #e7f5ed; color: #2f8f5b; border-color: #c8e8d7; }
.mock-tag.orange { background: #fdeee5; color: #b8460c; border-color: #f7d9c7; }
.mock-search {
  background: #fff; border: 1px solid #e2e5ea; border-radius: 10px;
  padding: 0.45rem 0.6rem; font-size: 0.63rem; color: #9ba3af;
  display: flex; align-items: center; gap: 0.35rem;
}
.mock-search .icon { width: 0.8rem; height: 0.8rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 3.4rem 1.15rem; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-inner.narrow { max-width: var(--maxw-narrow); }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.dark { background: var(--band-bg); color: var(--band-fg); position: relative; overflow: hidden; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: var(--band-fg-muted); }

h2.h2 {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(1.9rem, 7vw, 2.9rem); margin: 0 0 0.85rem;
}
.lede { font-size: 1rem; color: var(--text-muted); max-width: 56ch; margin: 0 0 2rem; }
.section.dark .lede { color: var(--band-fg-muted); }

/* Before / after flow */
.flow { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .flow { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.flow-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.3rem 1.25rem;
  background: var(--surface);
}
.flow-card.bad-flow { border-style: dashed; }
.flow-card.good-flow { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.flow-label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0 0 0.9rem; color: var(--text-faint);
}
.flow-card.good-flow .flow-label { color: var(--accent); }
.flow-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.flow-chip {
  font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: var(--r-sm);
  background: var(--paper); border: 1px solid var(--border); white-space: nowrap;
}
.flow-chip.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.flow-chip.muted { color: var(--text-faint); }
.flow-arrow { color: var(--text-faint); font-weight: 700; }
.flow-note { font-size: 0.82rem; color: var(--text-muted); margin: 0.9rem 0 0; }

/* Feature grid */
.grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.35rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
@media (hover: hover) {
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
}
.feature-icon {
  width: 2.6rem; height: 2.6rem; border-radius: var(--r-md); margin-bottom: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon .icon { width: 1.35rem; height: 1.35rem; }
.feature h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; }
.feature p { margin: 0; font-size: 0.87rem; color: var(--text-muted); }

.section.dark .feature { background: var(--band-bg-2); border-color: var(--band-border); }
.section.dark .feature p { color: var(--band-fg-muted); }
.section.dark .feature-icon { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* Numbered steps */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.4rem 0 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.2rem 1.2rem;
}
.section.dark .step-card { background: var(--band-bg-2); border-color: var(--band-border); }
.step-num {
  flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Big Shoulders Display", system-ui, sans-serif; font-weight: 800; font-size: 1.05rem;
}
.step-card h3 { margin: 0.2rem 0 0.25rem; font-size: 0.98rem; }
.step-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.section.dark .step-card p { color: var(--band-fg-muted); }

/* Trades */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.trade-chip {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  padding: 0.75rem 0.85rem; font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
}
.trade-chip .icon { color: var(--accent); width: 1rem; height: 1rem; }
.trade-chip.soon { color: var(--text-faint); font-weight: 500; border-style: dashed; background: transparent; }
.trade-chip.soon .icon { color: var(--text-faint); }

/* Comparison table */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.87rem; }
table.compare th, table.compare td { padding: 0.85rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th {
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 600;
  background: var(--surface-2);
}
table.compare thead th.hi { color: var(--accent); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.hi { background: color-mix(in srgb, var(--accent) 6%, transparent); font-weight: 600; }
table.compare td.rowlabel { font-weight: 600; color: var(--text); }
.tick { color: var(--good); font-weight: 800; }
.cross { color: var(--text-faint); font-weight: 700; }

/* FAQ */
.faq { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 1.05rem 1.15rem; font-weight: 700; font-size: 0.94rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: "IBM Plex Mono", monospace; font-size: 1.2rem; color: var(--accent);
  transition: transform 0.2s var(--ease); flex-shrink: 0; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.15rem 1.15rem; font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* CTA band */
.cta-band {
  background: var(--band-bg); color: #fff; position: relative; overflow: hidden;
  padding: 3.2rem 1.15rem;
}
.cta-band::before {
  content: ""; position: absolute; right: -15%; bottom: -60%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%);
  filter: blur(40px);
}
.cta-inner { position: relative; max-width: var(--maxw-narrow); margin: 0 auto; text-align: center; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: var(--band-fg-muted); margin: 0 0 1.6rem; }
.cta-actions { display: flex; flex-direction: column; gap: 0.7rem; max-width: 22rem; margin: 0 auto; }
@media (min-width: 520px) { .cta-actions { flex-direction: row; max-width: none; justify-content: center; } }
.cta-actions .btn { width: auto; min-width: 12rem; }

/* Site footer */
.site-footer { background: var(--band-bg); color: var(--band-fg-muted); padding: 2.6rem 1.15rem 2rem; border-top: 1px solid var(--band-border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col h4 {
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; margin: 0 0 0.8rem; font-weight: 600;
}
.footer-col a { display: block; color: var(--band-fg-muted); text-decoration: none; font-size: 0.86rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 0.86rem; margin: 0 0 0.6rem; }
.footer-bottom {
  max-width: var(--maxw); margin: 2rem auto 0; padding-top: 1.2rem;
  border-top: 1px solid var(--band-border); font-size: 0.76rem; color: #6b7280;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: space-between;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   APP CHROME (dashboards)
   ============================================================ */
.band {
  background: var(--band-bg); color: var(--band-fg);
  padding: 1.5rem 1.15rem 1.3rem; position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, transparent 14px 28px);
  opacity: 0.9;
}
.band-inner { max-width: var(--maxw-narrow); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark {
  font-family: "Big Shoulders Display", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.1rem); text-transform: uppercase; line-height: 0.9;
  margin: 0; color: var(--band-fg);
}
.wordmark span { color: var(--accent); }
.subpitch {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-fg-muted); margin: 0 0 0.3rem;
}
.pitch { font-size: 0.95rem; color: var(--band-fg-muted); max-width: 46ch; margin: 0.5rem 0 0; }
.pitch strong { color: var(--band-fg); font-weight: 600; }
.band-hero { padding: 2.25rem 1.15rem 2rem; }
.band-hero .band-inner { flex-direction: column; align-items: flex-start; }

.signout-link {
  background: transparent; border: 1px solid var(--band-border); color: var(--band-fg);
  font: inherit; font-size: 0.78rem; border-radius: var(--r-sm); padding: 0.4rem 0.7rem;
  cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: all 0.15s var(--ease);
}
.signout-link:hover { border-color: var(--accent); color: var(--accent); }

main { max-width: var(--maxw-narrow); margin: 0 auto; padding: 1.5rem 1.15rem 3rem; }
main.wide { max-width: var(--maxw); }
/* Dashboard pages use a bare <footer>; the marketing site-footer must stay full width. */
footer:not(.site-footer) { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 1.15rem 2.5rem; font-size: 0.75rem; color: var(--text-faint); text-align: center; }

h2.section-title {
  font-family: "Big Shoulders Display", system-ui, sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 1.35rem; margin: 0 0 0.9rem;
}

/* ---------- Cards / forms ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
}
fieldset { border: 0; margin: 0; padding: 1.4rem 1.25rem; border-bottom: 1px solid var(--border); }
fieldset:last-of-type { border-bottom: 0; }
legend {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 0 0 0.9rem;
}
.field { margin-bottom: 0.85rem; }
.field:last-child { margin-bottom: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.3rem; letter-spacing: 0.005em; }
.hint { font-size: 0.78rem; line-height: 1.45; color: var(--text-faint); margin-top: 0.3rem; }
.opt { font-weight: 400; color: var(--text-faint); font-size: 0.76rem; margin-left: 0.3rem; }

input[type="text"], input[type="tel"], input[type="number"], input[type="email"],
input[type="password"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; line-height: 1.4;
  padding: 0.68rem 0.75rem; min-height: 2.85rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); appearance: none;
  box-shadow: inset 0 1px 1px rgba(20,22,26,0.03);
  transition: border-color 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Spinner arrows on a number field are a dead giveaway. */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem;
}
button:focus-visible, .radio-card:focus-within, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
textarea { resize: vertical; min-height: 4.5rem; }

.money-field { position: relative; }
.money-field .prefix {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-weight: 600; pointer-events: none; font-size: 0.95rem;
}
.money-field input { padding-left: 1.65rem; font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.radio-group { display: flex; flex-direction: column; gap: 0.6rem; }
.radio-card {
  display: flex; align-items: center; gap: 0.65rem; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.8rem 0.85rem; cursor: pointer; background: var(--surface);
  transition: all 0.15s var(--ease);
}
.radio-card input { margin: 0; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.radio-card .label-main { font-weight: 600; font-size: 0.92rem; }
.radio-card .label-sub { display: block; font-size: 0.78rem; color: var(--text-faint); font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tag-available .label-main::before {
  content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--good); margin-right: 0.4rem;
}

.actions { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: 0.98rem; border: 0; border-radius: var(--r-sm);
  padding: 0.9rem 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; width: 100%; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s var(--ease), filter 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-brand); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-faint); }
.btn-light { background: #fff; color: #14161a; }
.btn-light:hover:not(:disabled) { filter: brightness(0.95); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline-light:hover:not(:disabled) { border-color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.btn-danger { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); }
.btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.btn-sm { padding: 0.55rem 0.85rem; font-size: 0.85rem; width: auto; }

/* ---------- Icons / avatars ---------- */
.icon { width: 1.05em; height: 1.05em; flex-shrink: 0; display: inline-block; vertical-align: -0.15em; }
.icon-row { display: inline-flex; align-items: center; gap: 0.4rem; }
.avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Big Shoulders Display", system-ui, sans-serif; font-weight: 800; font-size: 1.1rem;
  color: var(--on-brand); background: linear-gradient(135deg, var(--accent), var(--accent-dim));
}
.avatar-row { display: flex; align-items: center; gap: 0.75rem; }

/* ---------- Multi-step form ---------- */
.progress-head { padding: 1.15rem 1.25rem 0; }
.progress-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem;
}
.progress-meta .step-name { color: var(--accent); font-weight: 600; }
.progress-track { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 99px; width: 25%; transition: width 0.35s var(--ease); }
.wizard-step { display: none; animation: step-in 0.28s var(--ease); }
.wizard-step.active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wizard-actions { display: flex; gap: 0.7rem; padding: 1.2rem 1.25rem 1.5rem; }
.wizard-actions .btn { flex: 1; }

/* ---------- Tabs ---------- */
.tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-bottom: 1.1rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 1px 1px rgba(20,22,26,0.03);
}
.tab {
  text-align: center; font-weight: 600; font-size: 0.87rem; padding: 0.72rem 0.5rem;
  border: 0; border-left: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.tab:first-child { border-left: 0; }
.tab:hover:not(.active) { background: var(--surface-2); color: var(--text); }
.tab.active { color: #fff; background: var(--accent); }

.toggle-tabs { display: inline-flex; padding: 0.25rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; margin-bottom: 1.6rem; }
.toggle-tab {
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 1.1rem; border-radius: 99px; cursor: pointer; color: var(--text-muted);
  transition: all 0.18s var(--ease);
}
.toggle-tab.active { background: var(--accent); color: #fff; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0.28rem 0.55rem;
  border-radius: 999px; border: 1px solid transparent;
}
.badge .icon { width: 0.85rem; height: 0.85rem; }
.badge-verified { background: color-mix(in srgb, var(--good) 15%, var(--surface)); color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.badge-pending { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge-rejected, .badge-off { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.badge-neutral { background: var(--paper); color: var(--text-muted); border-color: var(--border); }
.badge-available { background: color-mix(in srgb, var(--good) 15%, var(--surface)); color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }

/* ---------- List items ---------- */
.item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.05rem 1.15rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
@media (hover: hover) { .item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.item-name { font-weight: 700; font-size: 1.02rem; margin: 0; }
.item-sub { font-size: 0.82rem; color: var(--text-muted); margin: 0.15rem 0 0; }
.item-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; }
.item-rate { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.item-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.item-actions .btn { width: auto; flex: 1; }

.empty-state { text-align: center; padding: 2.75rem 1rem; color: var(--text-faint); }
.empty-state .icon { width: 2.1rem; height: 2.1rem; opacity: 0.55; margin-bottom: 0.5rem; }
.empty-state p { margin: 0.4rem 0 0; font-size: 0.88rem; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-chip {
  font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); border-radius: 999px; padding: 0.45rem 0.85rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: all 0.15s var(--ease);
}
.filter-chip.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-bottom: 1.3rem; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.9rem 1rem; box-shadow: var(--shadow-sm); }
.stat-num { font-family: "Big Shoulders Display", system-ui, sans-serif; font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--accent); }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-top: 0.25rem; }

/* ---------- Alerts / toasts ---------- */
.error-banner, .success-banner { display: none; border-radius: var(--r-sm); padding: 0.75rem 0.9rem; font-size: 0.85rem; margin: 0 0 1rem; }
.error-banner { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border: 1px solid var(--bad); color: var(--text); }
.success-banner { background: color-mix(in srgb, var(--good) 12%, var(--surface)); border: 1px solid var(--good); color: var(--text); }
.error-banner.show, .success-banner.show { display: block; }

.toast-stack {
  position: fixed; left: 0; right: 0; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; pointer-events: none;
}
.toast {
  pointer-events: auto; max-width: 88vw; background: var(--ink); color: var(--paper);
  font-size: 0.86rem; font-weight: 600; padding: 0.75rem 1.1rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.5rem;
  animation: toast-in 0.25s var(--ease);
}
.toast.toast-success::before { content: "✓"; color: #6fdc9f; font-weight: 800; }
.toast.toast-error { background: var(--bad); color: #fff; }
.toast.toast-out { animation: toast-out 0.2s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(0.96); } }

/* ---------- Skeletons ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--border); border-radius: var(--r-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton-card { height: 5.2rem; border-radius: var(--r-md); margin-bottom: 0.8rem; }
.loading-block { text-align: center; padding: 2.5rem 1rem; color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  align-items: flex-end; justify-content: center; z-index: 80;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; width: 100%; max-width: var(--maxw-narrow);
  max-height: 88vh; overflow-y: auto; padding: 1.5rem 1.25rem 2rem; box-shadow: var(--shadow-xl);
  animation: sheet-in 0.24s var(--ease);
}
@keyframes sheet-in { from { transform: translateY(20px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } .modal { border-radius: var(--r-xl); max-height: 80vh; } }
.modal-close { background: none; border: 0; color: var(--text-faint); font-size: 1.5rem; float: right; cursor: pointer; line-height: 1; padding: 0.2rem; }

/* ---------- Bottom app nav ---------- */
body.has-bottom-nav { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(20,22,26,0.07);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  background: none; border: 0; padding: 0.4rem 0.2rem; cursor: pointer; color: var(--text-faint);
  font: inherit; font-size: 0.68rem; font-weight: 600; border-radius: var(--r-sm);
  transition: color 0.15s var(--ease); -webkit-tap-highlight-color: transparent;
}
.bn-item .icon { width: 1.35rem; height: 1.35rem; }
.bn-item.active { color: var(--accent); }
.bn-item:active { transform: scale(0.94); }
.bn-icon-wrap { position: relative; display: inline-flex; }
.bn-badge {
  position: absolute; top: -0.3rem; right: -0.55rem; min-width: 1.05rem; height: 1.05rem;
  padding: 0 0.25rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface); animation: pop-in 0.3s var(--ease);
}
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }

/* Launch / manual-match state */
.launch-card {
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-lg);
  padding: 1.5rem 1.3rem; text-align: center; box-shadow: var(--shadow-md);
}
.launch-card .feature-icon { margin: 0 auto 0.9rem; }
.launch-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.launch-card p { margin: 0 0 1.1rem; font-size: 0.88rem; color: var(--text-muted); }
.launch-actions { display: flex; flex-direction: column; gap: 0.6rem; }

/* ---------- Misc ---------- */
.center-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin: 1rem 0; }
.switch-link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.file-input-wrap { border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 1rem; text-align: center; background: var(--paper); transition: border-color 0.15s var(--ease); }
.file-input-wrap.has-file { border-color: var(--good); }
.file-name { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; word-break: break-all; }
.cscs-note { background: var(--paper); border: 1px dashed var(--border); border-radius: var(--r-sm); padding: 0.8rem 0.9rem; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.9rem; }
.nav-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.3rem; overflow-x: auto; }
.nav-tab {
  flex: none; padding: 0.7rem 1rem; font-weight: 700; font-size: 0.85rem; color: var(--text-faint);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; background: none;
  border-left: 0; border-right: 0; border-top: 0; font-family: inherit; transition: color 0.15s var(--ease);
}
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--band-fg-muted); text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.back-link:hover { color: var(--accent); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.1rem; }
.stat-strip .icon-row { font-size: 0.78rem; color: var(--band-fg-muted); }
.stat-strip .icon { color: var(--accent); }

/* ============================================================
   THE TWO DOORS — the single most important choice on the site
   ============================================================ */
.doors { display: grid; gap: 0.8rem; grid-template-columns: 1fr; margin: 1.3rem 0 0; }
@media (min-width: 640px) { .doors { grid-template-columns: 1fr 1fr; gap: 1rem; } }

.door {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  border-radius: var(--r-lg); padding: 1.4rem 1.3rem 1.25rem;
  border: 1px solid var(--band-border); background: var(--band-bg-2); color: #fff;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.door::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); opacity: 0.85;
}
.door:active { transform: scale(0.985); }
@media (hover: hover) {
  .door:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
}

/* The contractor door is the loud one — that's the money side */
.door.door-primary { background: var(--accent); border-color: var(--accent); }
.door.door-primary::before { background: #fff; opacity: 0.65; }
.door.door-primary .door-kicker { color: rgba(255,255,255,0.85); }
.door.door-primary .door-list li { color: rgba(255,255,255,0.92); }
.door.door-primary .door-go { background: #fff; color: var(--accent); }
.door.door-primary .door-icon { background: rgba(255,255,255,0.18); color: #fff; }

.door-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.door-icon {
  width: 2.7rem; height: 2.7rem; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.door-icon .icon { width: 1.45rem; height: 1.45rem; }
.door-kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--band-fg-muted); margin: 0 0 0.15rem;
}
.door-title {
  font-family: "Big Shoulders Display", system-ui, sans-serif; font-weight: 800;
  text-transform: uppercase; font-size: 1.65rem; line-height: 0.92; margin: 0; color: #fff;
}
.door-list { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.door-list li {
  display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem;
  color: var(--band-fg-muted); margin-bottom: 0.4rem; line-height: 1.4;
}
.door-list li .icon { width: 0.95rem; height: 0.95rem; margin-top: 0.22rem; flex-shrink: 0; }
.door-go {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 0.8rem 1rem; border-radius: var(--r-sm); width: 100%;
}
.doors-note {
  text-align: center; font-size: 0.8rem; color: var(--band-fg-muted); margin: 1.1rem 0 0;
}
.doors-note a { color: #fff; }

/* Sticky mobile CTA — the doors follow you down the page */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  display: flex; gap: 0.55rem; padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--band-bg) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--band-border);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta a {
  flex: 1; text-align: center; text-decoration: none; font-weight: 700; font-size: 0.88rem;
  padding: 0.75rem 0.5rem; border-radius: var(--r-sm);
}
.sticky-cta .sc-primary { background: var(--accent); color: #fff; }
.sticky-cta .sc-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 4.5rem; }
@media (min-width: 900px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ============================================================
   BULK SELECT — invite twenty people in three taps
   ============================================================ */
.item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.select-box {
  width: 1.5rem; height: 1.5rem; border-radius: 6px; border: 1.5px solid var(--border-strong);
  background: var(--surface); flex-shrink: 0; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: transparent;
  transition: all 0.15s var(--ease); -webkit-tap-highlight-color: transparent;
}
.select-box .icon { width: 0.95rem; height: 0.95rem; }
.item.selected .select-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.select-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.bulk-bar {
  position: fixed; left: 0.7rem; right: 0.7rem; z-index: 75;
  bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg);
  padding: 0.8rem 0.9rem; box-shadow: var(--shadow-xl);
  display: none; align-items: center; gap: 0.7rem;
}
.bulk-bar.show { display: flex; animation: toast-in 0.25s var(--ease); }
.bulk-count { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1; }
.bulk-label { font-size: 0.78rem; opacity: 0.75; line-height: 1.2; }
.bulk-bar .btn { width: auto; margin-left: auto; padding: 0.6rem 0.9rem; font-size: 0.85rem; }
.bulk-clear {
  background: none; border: 0; color: var(--paper); opacity: 0.6; font: inherit;
  font-size: 0.78rem; cursor: pointer; text-decoration: underline; padding: 0;
}

/* ============================================================
   REQUEST LABOUR — the concierge route
   ============================================================ */
.request-panel {
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.request-head {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--border);
}
.request-head h3 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.4rem; margin: 0 0 0.3rem;
}
.request-head p { margin: 0; font-size: 0.87rem; color: var(--text-muted); }

/* ============================================================
   PRICING — the fee shown openly
   ============================================================ */
.tiers { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.6rem 0 0; }
@media (min-width: 780px) { .tiers { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }

.tier {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.tier.featured::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, transparent 10px 20px);
}
.tier-kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 0.4rem;
}
.tier.featured .tier-kicker { color: var(--accent); }
.tier-name {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.6rem; line-height: 0.95; margin: 0 0 0.5rem;
}
.tier-price {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--accent); margin: 0.6rem 0 0.2rem;
}
.tier-price small { font-family: "IBM Plex Sans", sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.tier-desc { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 1.1rem; }
.tier-list { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.tier-list li { display: flex; gap: 0.55rem; font-size: 0.87rem; margin-bottom: 0.55rem; line-height: 1.45; }
.tier-list li .icon { width: 1rem; height: 1rem; margin-top: 0.22rem; flex-shrink: 0; color: var(--good); }
.tier-list li.muted { color: var(--text-faint); }
.tier-list li.muted .icon { color: var(--text-faint); }
.tier .btn { margin-top: auto; }

/* Worked invoice example */
.invoice {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-md); max-width: 26rem; margin: 1.4rem auto 0;
}
.invoice-head {
  background: var(--band-bg); color: #fff; padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.invoice-head .ih-label { font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-fg-muted); }
.invoice-head .ih-title { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1; }
.invoice-body { padding: 0.4rem 1.2rem 1.2rem; }
.invoice-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem;
}
.invoice-row:last-of-type { border-bottom: 0; }
.invoice-row .ir-label { color: var(--text-muted); }
.invoice-row .ir-value { font-family: "IBM Plex Mono", monospace; font-weight: 600; white-space: nowrap; }
.invoice-row.highlight .ir-label { color: var(--accent); font-weight: 600; }
.invoice-row.highlight .ir-value { color: var(--accent); }
.invoice-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.9rem 1.2rem; background: var(--surface-2); border-top: 2px solid var(--ink);
  font-weight: 700;
}
.invoice-total .it-value { font-family: "IBM Plex Mono", monospace; font-size: 1.15rem; }
.invoice-note { padding: 0.9rem 1.2rem; font-size: 0.78rem; color: var(--text-faint); border-top: 1px solid var(--border); }

/* Guarantee cards */
.guarantee {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--good);
  border-radius: var(--r-md); padding: 1.1rem 1.15rem;
}
.guarantee .g-icon { color: var(--good); flex-shrink: 0; margin-top: 0.15rem; }
.guarantee .g-icon .icon { width: 1.3rem; height: 1.3rem; }
.guarantee h3 { margin: 0 0 0.25rem; font-size: 0.97rem; }
.guarantee p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }

/* Volume taper */
.taper { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.taper-cell {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  padding: 1rem; text-align: center;
}
.taper-cell .tc-range { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.taper-cell .tc-rate { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 2rem; line-height: 1.05; color: var(--accent); margin-top: 0.2rem; }
.taper-cell .tc-unit { font-size: 0.76rem; color: var(--text-muted); }

.notice-band {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid var(--accent); border-radius: var(--r-lg);
  padding: 1.3rem 1.3rem; margin-top: 1.6rem;
}
.notice-band h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.notice-band p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   ORDERS — a crew being filled, not a list of people
   ============================================================ */
.order-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 1rem; overflow: hidden;
}
.order-card.filled { border-color: var(--good); }
.order-head { padding: 1.1rem 1.2rem 0.9rem; }
.order-title {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.45rem; line-height: 1; margin: 0 0 0.3rem;
}
.order-meta { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

/* Fill bar */
.fill-wrap { padding: 0 1.2rem 1.1rem; }
.fill-nums {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem;
}
.fill-count {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1;
}
.fill-count .fc-have { color: var(--accent); }
.fill-card.filled .fill-count .fc-have { color: var(--good); }
.fill-count .fc-of { color: var(--text-faint); font-size: 1.2rem; }
.fill-status {
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); text-align: right;
}
.fill-track {
  height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; display: flex;
}
.fill-bar { height: 100%; background: var(--accent); transition: width 0.5s var(--ease); }
.fill-bar.done { background: var(--good); }
.fill-legend { display: flex; gap: 1rem; margin-top: 0.55rem; font-size: 0.74rem; color: var(--text-faint); }
.fill-legend span { display: flex; align-items: center; gap: 0.35rem; }
.fill-dot { width: 0.6rem; height: 0.6rem; border-radius: 2px; }
.fill-dot.confirmed { background: var(--accent); }
.fill-dot.confirmed.done { background: var(--good); }
.fill-dot.empty { background: var(--border); }

.order-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.2rem 1.2rem; }
.order-actions .btn { width: auto; flex: 1 1 auto; min-width: 8.5rem; }

/* A cancelled order stays on the list so it's obvious what happened,
   but it mustn't read like a live one. */
.order-card.cancelled { opacity: 0.68; border-style: dashed; }
.order-card.cancelled .order-title { text-decoration: line-through; }
.order-cancelled-note {
  margin: 0; padding: 0 1.2rem 1rem;
  font-size: 0.86rem; color: var(--text-muted);
}

/* Crew sheet */
.crew-head {
  background: var(--band-bg); color: #fff; padding: 1.1rem 1.2rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.crew-head .ch-label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--band-fg-muted);
}
.crew-head .ch-title {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.3rem; line-height: 1; margin-top: 0.15rem;
}
.crew-member {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.crew-member:last-child { border-bottom: 0; }
.crew-num {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; flex-shrink: 0;
  background: var(--paper); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
}
.crew-info { flex: 1; min-width: 0; }
.crew-name { font-weight: 700; font-size: 0.93rem; margin: 0; }
.crew-sub { font-size: 0.78rem; color: var(--text-muted); margin: 0.1rem 0 0; }
.crew-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.crew-icon-btn {
  width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: all 0.15s var(--ease);
}
.crew-icon-btn:active { transform: scale(0.92); }
.crew-section-label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); margin: 1.2rem 0 0.2rem;
}

/* Turn-up ticks */
.turnup-row { display: flex; gap: 0.4rem; }
.turnup-btn {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm);
  padding: 0.35rem 0.6rem; font: inherit; font-size: 0.76rem; font-weight: 600;
  cursor: pointer; color: var(--text-muted); -webkit-tap-highlight-color: transparent;
}
.turnup-btn.yes.active { background: var(--good); border-color: var(--good); color: #fff; }
.turnup-btn.no.active { background: var(--bad); border-color: var(--bad); color: #fff; }

.reliability {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0.25rem 0.5rem;
  border-radius: 999px; background: color-mix(in srgb, var(--good) 14%, var(--surface));
  color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
}
.reliability.patchy {
  background: color-mix(in srgb, var(--bad) 12%, var(--surface));
  color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent);
}

/* Admin matcher */
.match-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.match-row:last-child { border-bottom: 0; }
.match-info { flex: 1; min-width: 0; }
.match-name { font-weight: 600; font-size: 0.9rem; margin: 0; }
.match-sub { font-size: 0.76rem; color: var(--text-muted); margin: 0.1rem 0 0; }
.match-pick {
  width: 1.5rem; height: 1.5rem; border-radius: 6px; border: 1.5px solid var(--border-strong);
  background: var(--surface); flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: transparent;
  transition: all 0.15s var(--ease);
}
.match-row.picked .match-pick { background: var(--accent); border-color: var(--accent); color: #fff; }
.match-pick .icon { width: 0.9rem; height: 0.9rem; }
.order-actions .btn { white-space: nowrap; font-size: 0.85rem; padding: 0.6rem 0.7rem; }

/* ============================================================
   THE ORDER BOX — the product, on the front page
   ============================================================ */
.orderbox {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  max-width: 30rem; width: 100%;
}
@media (min-width: 900px) { .orderbox { max-width: none; } }

/* Who are you — two big switches, not a navigation choice */
.ob-switch { display: flex; background: var(--band-bg-2); padding: 0.3rem; gap: 0.3rem; }
.ob-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 0.68rem 0.5rem; border-radius: var(--r-sm); color: var(--band-fg-muted);
  font-weight: 600; font-size: 0.87rem; transition: background 0.15s var(--ease), color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ob-tab.active { background: var(--accent); color: #fff; }

.ob-body { padding: 1.35rem 1.25rem 1.35rem; }
.ob-step { display: none; }
.ob-step.active { display: block; animation: step-in 0.25s var(--ease); }

.ob-lead {
  font-size: 0.95rem; font-weight: 700; line-height: 1.35; color: var(--text);
  margin: 0 0 0.25rem; letter-spacing: -0.005em;
}
.ob-sub { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 1.15rem; line-height: 1.4; }
.ob-field { margin-bottom: 0.8rem; }
.ob-field:last-of-type { margin-bottom: 0; }
.ob-label {
  display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.ob-row { display: grid; grid-template-columns: 7.4rem 1fr; gap: 0.6rem; align-items: end; }
.ob-rule { height: 1px; background: var(--border); margin: 1.15rem 0 0; }

/* Chunky number stepper — easier than a keyboard on site */
.stepper {
  display: flex; align-items: stretch; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(20,22,26,0.03); min-height: 2.85rem;
}
.stepper button {
  width: 2.4rem; flex-shrink: 0; border: 0; background: transparent; color: var(--text-muted);
  font-size: 1.05rem; font-weight: 600; cursor: pointer; line-height: 1;
  -webkit-tap-highlight-color: transparent; transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.stepper button:hover { background: var(--surface-2); color: var(--accent); }
.stepper .stepper-val {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text); border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}

/* Pick-one chips for "when" */
.chip-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 1px 1px rgba(20,22,26,0.03);
}
.chip-row.wrap-2 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.chip {
  border: 0; border-left: 1px solid var(--border); background: transparent;
  color: var(--text-muted); padding: 0.68rem 0.4rem; font: inherit; font-size: 0.84rem;
  font-weight: 600; cursor: pointer; min-height: 2.8rem;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:first-child { border-left: 0; }
.chip-row.wrap-2 .chip:nth-child(odd) { border-left: 0; }
.chip-row.wrap-2 .chip:nth-child(n+3) { border-top: 1px solid var(--border); }
.chip:hover:not(.active) { background: var(--surface-2); color: var(--text); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.ob-cta {
  width: 100%; margin-top: 1.15rem; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font: inherit; font-weight: 700;
  font-size: 0.95rem; padding: 0.92rem 1rem; cursor: pointer; min-height: 3rem;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform 0.1s var(--ease), background 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ob-cta:hover:not(:disabled) { background: var(--accent-dim); }
.ob-cta:active:not(:disabled) { transform: translateY(1px); }
.ob-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.ob-back {
  background: none; border: 0; color: var(--text-faint); font: inherit; font-size: 0.82rem;
  cursor: pointer; padding: 0.6rem 0 0; text-decoration: underline;
}
.ob-note { font-size: 0.78rem; color: var(--text-faint); text-align: center; margin: 0.65rem 0 0; }
.ob-error {
  display: none; background: color-mix(in srgb, var(--bad) 12%, var(--surface));
  border: 1px solid var(--bad); border-radius: var(--r-sm);
  padding: 0.6rem 0.8rem; font-size: 0.84rem; margin-bottom: 0.9rem;
}
.ob-error.show { display: block; }

/* Summary line on step 2 so they know what they're confirming */
.ob-summary {
  background: var(--paper); border: 1px dashed var(--border); border-radius: var(--r-sm);
  padding: 0.75rem 0.85rem; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1.1rem;
}
.ob-summary strong { color: var(--text); }

/* Done state */
.ob-done { text-align: center; padding: 0.6rem 0 0; }
.ob-tick {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; margin: 0 auto 0.9rem;
  background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good);
  display: flex; align-items: center; justify-content: center;
  animation: pop-in 0.35s var(--ease);
}
.ob-tick .icon { width: 1.7rem; height: 1.7rem; }
.ob-done h3 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; margin: 0 0 0.4rem;
}
.ob-done p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1.2rem; }
.ob-promise {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: color-mix(in srgb, var(--good) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
  color: var(--good); border-radius: 99px; padding: 0.4rem 0.85rem;
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}

/* Hero adjusted for a form sitting in it */
.hero-order .hero-grid { align-items: start; }
@media (min-width: 900px) {
  .hero-order .hero-grid { grid-template-columns: 1fr 26rem; gap: 3.5rem; }
}
.hero-order h1 { margin-bottom: 0.7rem; }
.trust-line {
  display: flex; flex-wrap: wrap; gap: 0.45rem 1.1rem; margin-top: 1.3rem;
  font-size: 0.8rem; color: var(--band-fg-muted);
}
.trust-line .icon { color: var(--accent); width: 0.95rem; height: 0.95rem; }

/* Secondary route, deliberately quiet */
.quiet-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem;
  color: var(--text-faint); font-size: 0.82rem; text-decoration: none;
}
.quiet-link:hover { color: var(--accent); }

/* Simplified dashboards */
.dash-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.1rem; flex-wrap: wrap;
}
.dash-header h2 { margin: 0; }
.big-action {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; border: 0; border-radius: var(--r-md); background: var(--accent); color: #fff;
  font: inherit; font-weight: 800; font-size: 1rem; padding: 1rem; cursor: pointer;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 38%, transparent);
  margin-bottom: 1.3rem; text-decoration: none;
  transition: transform 0.12s var(--ease), filter 0.15s var(--ease);
}
.big-action:active { transform: scale(0.985); }
.section-divider {
  display: flex; align-items: center; gap: 0.8rem; margin: 1.8rem 0 1rem;
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint);
}
.section-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Big availability switch for labourers */
.avail-switch {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.25rem;
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm); margin-bottom: 1.1rem;
}
.avail-switch:not(.off) { border-color: var(--good); background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
.avail-copy { flex: 1; min-width: 0; }
.avail-copy h3 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.25rem; line-height: 1; margin: 0 0 0.2rem;
}
.avail-copy p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.toggle {
  width: 4rem; height: 2.3rem; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--border-strong); position: relative; flex-shrink: 0;
  transition: background 0.2s var(--ease); -webkit-tap-highlight-color: transparent;
}
.toggle::after {
  content: ""; position: absolute; top: 0.25rem; left: 0.25rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25); transition: transform 0.2s var(--ease);
}
.toggle.on { background: var(--good); }
.toggle.on::after { transform: translateX(1.7rem); }


/* ---- Front door: get the order box onto the first screen ---- */
.hero-order { padding-top: 1.6rem; padding-bottom: 2.2rem; }
.hero-order .hero-sub { margin-bottom: 0.9rem; font-size: 0.95rem; }
.orderbox-wrap { display: block; }
.orderbox-wrap .trust-line { margin-top: 0.9rem; }
.show-sm { display: none; }

@media (max-width: 760px) {
  .hero-order { padding-top: 1.1rem; padding-bottom: 1.6rem; }
  .hero-order h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); line-height: 0.95; margin-bottom: 0.5rem; }
  .hero-order .eyebrow { margin-bottom: 0.45rem; }
  .hero-order .hero-sub {
    font-size: 0.88rem; line-height: 1.45; margin-bottom: 0.85rem;
    max-width: 34ch;
  }
  .hero-order .trust-line { font-size: 0.78rem; gap: 0.5rem 0.9rem; }
  .hide-sm { display: none; }
  .show-sm { display: inline-flex; }
}

@media (min-width: 761px) {
  .hero-order .hero-grid { align-items: center; }
  .hero-order .hero-copy { padding-bottom: 0.5rem; }
  .orderbox-wrap .trust-line { justify-content: flex-start; }
}

.ob-row-even { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; align-items: end; }
.ob-opt { font-weight: 400; color: var(--text-faint); font-size: 0.76rem; }


/* Caption bar replaces the audience tabs — the page already knows who it's for */
.ob-cap {
  background: var(--band-bg-2); color: #fff; padding: 0.75rem 1.25rem;
  font-weight: 700; font-size: 0.9rem; letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 0.5rem;
}
.ob-cap::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.ob-sub-top { margin-top: 0; }

/* ============================================================
   CONTRACTOR TRUST SECTIONS
   ============================================================ */

/* ---- Proof of supply ---- */
.supply-head {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-end;
  justify-content: space-between; margin-bottom: 1.6rem;
}
.supply-figures { display: flex; gap: 1.8rem; }
.supply-fig { display: flex; flex-direction: column; }
.supply-fig strong {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  font-size: 2.6rem; line-height: 0.9; color: var(--accent);
}
.supply-fig span { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

.supply-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.supply-card {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  padding: 1rem 1.05rem; box-shadow: var(--shadow-sm);
}
.supply-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.supply-trade { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.supply-meta { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.25rem; }
.supply-rate {
  margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--border);
  font-weight: 800; font-size: 1.25rem; color: var(--text);
}
.supply-rate span { font-size: 0.8rem; font-weight: 500; color: var(--text-faint); }
.supply-more { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--text-muted); }

.supply-building {
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem; background: var(--surface);
}
.supply-building-lead { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.7rem; }
.supply-building p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 0.8rem; max-width: 56ch; }
.supply-building .btn { width: auto; margin-top: 0.3rem; }

/* ---- No-show promise ---- */
.promise-band .section-title { margin-bottom: 0.7rem; }
.promise-grid { display: grid; gap: 1.1rem; margin: 2rem 0 1.4rem; }
@media (min-width: 760px) { .promise-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.promise-item { border-top: 2px solid var(--accent); padding-top: 0.9rem; }
.promise-num {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.45rem;
}
.promise-item h3 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.2rem; line-height: 1.05; margin: 0 0 0.4rem; color: var(--band-fg);
}
.promise-item p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--band-fg-muted); }
.promise-foot {
  font-size: 0.85rem; color: var(--band-fg-muted); border-top: 1px solid var(--band-border);
  padding-top: 1.1rem; margin: 0; max-width: 62ch;
}

/* ---- Money comparison ---- */
.money-compare { display: grid; gap: 1rem; margin: 1.8rem 0 1.2rem; }
@media (min-width: 700px) { .money-compare { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.money-col {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  padding: 1.25rem 1.2rem 1.1rem;
}
.money-col-ours { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.money-col-head {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.9rem;
}
.money-col-ours .money-col-head { color: var(--accent); }
.money-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.money-line span { color: var(--text-muted); }
.money-line strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.money-gap { border-bottom: 0; padding-top: 0.75rem; }
.money-gap span { color: var(--text); font-weight: 600; }
.money-gap strong { font-size: 1.5rem; color: var(--accent); }
.money-note { font-size: 0.8rem; color: var(--text-muted); margin: 0.8rem 0 0; line-height: 1.5; }
.money-foot { font-size: 0.88rem; color: var(--text-muted); margin: 0; max-width: 62ch; }

/* ---- Founder ---- */
.founder { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 720px) { .founder { grid-template-columns: 11rem 1fr; gap: 2rem; } }
.founder-photo {
  position: relative; width: 8.5rem; height: 8.5rem; border-radius: var(--r-lg);
  overflow: hidden; background: var(--accent); flex-shrink: 0;
}
@media (min-width: 720px) { .founder-photo { width: 100%; height: 11rem; } }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.founder-monogram {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 4rem;
  color: #fff; z-index: 0;
}
.founder-copy p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin: 0 0 0.9rem; max-width: 60ch; }
.founder-copy .section-title { margin-bottom: 0.8rem; }
.founder-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.founder-actions .btn { width: auto; }

/* ============================================================
   WELCOME PAGE — pick your side before anything is asked of you
   ============================================================ */
.hero-welcome { padding: 3rem 1.15rem 2.6rem; text-align: center; }
.hero-welcome .eyebrow { justify-content: center; }
.hero-welcome h1 { margin-bottom: 0.9rem; }
.hero-welcome .hero-sub {
  margin: 0 auto 2.2rem; max-width: 46ch; font-size: 1rem;
}
@media (min-width: 760px) {
  .hero-welcome { padding: 4.5rem 1.15rem 3.4rem; }
  .hero-welcome .hero-sub { font-size: 1.08rem; margin-bottom: 2.8rem; }
}

.choice-grid { display: grid; gap: 1rem; max-width: 54rem; margin: 0 auto; }
@media (min-width: 760px) { .choice-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }

.choice-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem 1.4rem 1.3rem;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-md);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.choice-card:hover {
  transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg);
}
.choice-icon {
  width: 2.9rem; height: 2.9rem; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.choice-icon svg { width: 1.5rem; height: 1.5rem; }
.choice-card h2 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.75rem; line-height: 0.98; margin: 0 0 0.4rem; color: var(--text);
}
.choice-who {
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 0.85rem; line-height: 1.5;
}
.choice-line {
  font-size: 0.92rem; line-height: 1.6; color: var(--text-muted); margin: 0 0 1.2rem; flex: 1;
}
.choice-go {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.95rem; color: var(--accent);
}
.choice-go svg { width: 1rem; height: 1rem; transition: transform 0.15s var(--ease); }
.choice-card:hover .choice-go svg { transform: translateX(3px); }

.trust-centre { justify-content: center; margin-top: 2rem; }

/* Both choices need to be on the first screen, or we've just
   rebuilt the problem the welcome page was meant to solve. */
@media (max-width: 760px) {
  .hero-welcome { padding: 1.6rem 1.15rem 2rem; }
  .hero-welcome h1 { font-size: clamp(2.1rem, 11vw, 3rem); line-height: 0.92; margin-bottom: 0.6rem; }
  .hero-welcome .eyebrow { margin-bottom: 0.5rem; font-size: 0.64rem; }
  .hero-welcome .hero-sub { font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.3rem; max-width: 34ch; }
  .choice-grid { gap: 0.7rem; }
  .choice-card { padding: 1.1rem 1.1rem 1rem; }
  .choice-icon { width: 2.3rem; height: 2.3rem; margin-bottom: 0.7rem; }
  .choice-icon svg { width: 1.2rem; height: 1.2rem; }
  .choice-card h2 { font-size: 1.45rem; }
  .choice-who { font-size: 0.64rem; margin-bottom: 0.6rem; }
  .choice-line { font-size: 0.86rem; line-height: 1.5; margin-bottom: 0.9rem; }
  .trust-centre { margin-top: 1.4rem; font-size: 0.78rem; }
}

/* ------------------------------------------------------------
   Welcome hero: the name has to carry the page, not the cards.
   ------------------------------------------------------------ */
@media (min-width: 761px) {
  .hero-welcome h1 { font-size: clamp(3.6rem, 7vw, 6rem); line-height: 0.88; letter-spacing: -0.015em; }
  .hero-welcome .hero-sub { font-size: 1.12rem; max-width: 48ch; margin-bottom: 3rem; }
  /* Narrower so the cards read as a choice beneath the title,
     not as two slabs competing with it. */
  .choice-grid { max-width: 44rem; }
  .choice-card { padding: 1.35rem 1.3rem 1.2rem; }
  .choice-card h2 { font-size: 1.5rem; }
  .choice-line { font-size: 0.88rem; margin-bottom: 1rem; }
}

.hero-actions-centre { justify-content: center; }
.orderbox-centre { max-width: 30rem; margin: 0 auto; }

.ob-date-wrap { margin-top: 0.55rem; }
.ob-date-wrap input[type="date"] { font-variant-numeric: tabular-nums; }

/* An escape hatch for anyone who'd rather send a message than fill boxes. */
.ob-alt {
  text-align: center; font-size: 0.88rem; color: var(--text-muted);
  margin: 1.2rem auto 0; max-width: 40ch;
}
.ob-alt a { color: var(--accent); font-weight: 600; }

/* ============================================================
   HERO PHOTOGRAPHY
   Drop a real photo into the app folder and it appears behind
   the hero. No file, no broken image — the browser just doesn't
   paint the layer and you get the dark treatment as before.
     index.html            → hero-home.jpg
     for-contractors.html  → hero-contractors.jpg
     for-labourers.html    → hero-labourers.jpg
   Landscape, at least 1600px wide, under ~400KB.
   ============================================================ */
.hero-photo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  /* Structure behind the photo slot, so a hero without its photo yet
     reads as designed rather than as a flat black box. The photo, once
     dropped in, sits on top of this. */
  background-color: var(--band-bg);
  background-image:
    repeating-linear-gradient(135deg, rgba(224,86,15,0.055) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  opacity: 0.38; filter: grayscale(0.35) contrast(1.05);
}
/* Keeps the type readable whatever the photo turns out to be. */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,12,14,0.55) 0%, rgba(11,12,14,0.78) 55%, rgba(11,12,14,0.95) 100%),
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(224,86,15,0.10), transparent 70%);
}
.hero-photo-home::before        { background-image: url("hero-home.jpg"); }
.hero-photo-contractors::before { background-image: url("hero-contractors.jpg"); }
.hero-photo-labourers::before   { background-image: url("hero-labourers.jpg"); }

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

/* More depth while there's no photo — a lit floor rather than a flat black box. */
.hero-welcome::after {
  left: 50%; top: auto; bottom: -45%; transform: translateX(-50%);
  width: 120%; height: 90%;
  background: radial-gradient(ellipse at center, rgba(224,86,15,0.16), transparent 68%);
}

/* ------------------------------------------------------------
   Signed-in state on the public pages.

   Somebody who already has an account shouldn't be shown the
   "which are you?" chooser or a Get started button. The bar sits
   under the nav on the deeper pages; the panel replaces the
   chooser on the home page.
   ------------------------------------------------------------ */
.resume-bar {
  background: var(--band-bg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--band-fg);
}
.resume-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
}
.resume-bar-text { color: var(--band-fg-muted); }
.resume-bar-text strong { color: var(--band-fg); font-weight: 600; }
.resume-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.resume-bar-link:hover { text-decoration: underline; }
.resume-bar-link svg { width: 0.9em; height: 0.9em; }

@media (max-width: 560px) {
  .resume-bar-inner { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

/* ------------------------------------------------------------
   The account offer on the confirmation step.

   Sits below the done message, visually quieter than it, because
   the order is the point and the account is a bonus.
   ------------------------------------------------------------ */
.ob-acct { margin-top: 0.4rem; text-align: left; }
.ob-acct .ob-rule { margin-bottom: 1.15rem; }
.ob-acct-lead {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em;
  text-transform: uppercase; margin: 0 0 0.35rem; color: var(--text);
}
.ob-acct-sub {
  font-size: 0.87rem; line-height: 1.5; color: var(--text-muted);
  margin: 0 0 1rem;
}
.ob-acct .ob-cta { margin-top: 1rem; }
.ob-acct-error {
  display: none; background: color-mix(in srgb, var(--bad) 12%, var(--surface));
  border: 1px solid var(--bad); border-radius: var(--r-sm);
  padding: 0.6rem 0.8rem; font-size: 0.84rem; margin-top: 0.9rem;
}
.ob-acct-error.show { display: block; }

/* Signed-in contractors don't retype who they are. */
.ob-known {
  background: var(--paper); border: 1px dashed var(--border);
  border-radius: var(--r-sm); padding: 0.75rem 0.9rem; margin-bottom: 0.9rem;
}
.ob-known-label {
  display: block; font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 0.2rem;
}
.ob-known strong { font-size: 1rem; }
.ob-known-sub { display: block; font-size: 0.84rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ------------------------------------------------------------
   Coming back to your own dashboard.

   These pages are built with the sign-up form showing and the
   dashboard hidden, then swapped once we know who you are. On a
   phone on site that check isn't instant, so a returning user got
   a flash of "Create your account" every single time. This hides
   it up front, but only when the browser has already recorded
   that you have an account.
   ------------------------------------------------------------ */
.sm-returning #introStrip,
.sm-returning #introHazard,
.sm-returning #authSection,
.sm-returning #backLink { display: none !important; }

/* ------------------------------------------------------------
   CSCS review — the card next to the person holding it.
   The whole check is comparing those two faces, so they go
   side by side rather than one above the other.
   ------------------------------------------------------------ */
.check-number {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.6rem 0.75rem; margin-bottom: 0.5rem;
}
.check-number-label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
}
.check-number code {
  font-family: "IBM Plex Mono", monospace; font-size: 1rem;
  font-weight: 600; color: var(--text); letter-spacing: 0.04em;
}
.check-copy {
  margin-left: auto; background: none; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 0.25rem 0.6rem; font: inherit;
  font-size: 0.76rem; color: var(--text-muted); cursor: pointer;
}
.check-copy:hover { border-color: var(--accent); color: var(--accent); }

.check-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.9rem; }
.check-photo-label {
  display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.64rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.check-photo-slot {
  min-height: 5rem; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px dashed var(--border);
  border-radius: var(--r-sm); font-size: 0.8rem; color: var(--text-faint);
  overflow: hidden;
}
.check-photo-slot .cscs-thumb { max-width: 100%; height: auto; display: block; }

/* ============================================================
   Bookings — the admin booking screen
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.hint-inline {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.82em;
}

/* A quiet heads-up — not an error, just something to know. */
.notice-soft {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

/* Dates and the charge rate, two up on anything wider than a phone. */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .book-grid { grid-template-columns: 1fr 1fr; }
}
.book-grid .field { margin: 0; }

/* One row per person: name, their rate, the margin on them. */
.pay-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name margin" "input input";
  gap: 0.4rem 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
}
.pay-row:last-child { border-bottom: 1px solid var(--border); }

@media (min-width: 560px) {
  .pay-row {
    grid-template-columns: 1fr 11rem 5.5rem;
    grid-template-areas: "name input margin";
  }
}

.pay-name {
  grid-area: name;
  font-weight: 600;
  font-size: 0.95rem;
}

.pay-input {
  grid-area: input;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0 0.6rem;
}
.pay-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pay-prefix, .pay-suffix {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--text-faint);
  flex: none;
}
.pay-field {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.55rem 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  color: var(--text);
}
.pay-field:focus { outline: none; }

.pay-margin {
  grid-area: margin;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--good);
}
.pay-margin.thin { color: var(--accent); }
.pay-margin.bad  { color: var(--bad); }

/* The running total, so the money is never off screen. */
.margin-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 0.95rem;
  margin-top: 1rem;
}
.margin-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
  padding: 0.15rem 0;
}
.margin-line strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  color: var(--good);
}
.margin-line strong.bad { color: var(--bad); }

.margin-warn {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.65rem;
  background: color-mix(in srgb, var(--bad) 10%, transparent);
  border-left: 3px solid var(--bad);
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bad);
}

/* Gross margin on an order card in the admin list. */
.order-margin {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--good);
}

/* Changing a booking's state from the crew list. */
select.booking-status {
  font-size: 0.82rem;
  padding: 0.35rem 1.6rem 0.35rem 0.5rem;
  border-radius: var(--r-sm);
  max-width: 10.5rem;
}

/* ---------- Sites ---------- */

.add-site-summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent);
  list-style: none;
}
.add-site-summary::-webkit-details-marker { display: none; }
.add-site-summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.18s var(--ease);
}
details[open] .add-site-summary::after { transform: rotate(45deg); }

/* The thing that goes on the sticker. Monospaced and wide-tracked
   so it can be read off a dusty gate and typed in by hand. */
.gate-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--band-bg);
  border-radius: var(--r-md);
  padding: 0.65rem 0.85rem;
  margin: 0.75rem 0 0.6rem;
}
.gc-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--band-fg-muted);
  margin-bottom: 0.15rem;
}
.gc-value {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  color: var(--band-fg);
}
.gate-code .btn { flex: none; }

.item.site-off { opacity: 0.62; }

/* ---------- A labourer's own bookings ---------- */

.item.booking-past { opacity: 0.6; }

/* The /day or /hr after a rate, so £140/day reads as one thing. */
.ir-unit {
  font-size: 0.62em;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0;
}

/* A rate that hasn't been agreed yet. Never show a labourer the
   order rate — that's what the contractor pays us, not them. */
.item-rate.rate-tbc {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: right;
  color: var(--text-muted);
  white-space: normal;
}

/* The actual error text, when something fails and guessing would
   waste someone's evening. */
.err-detail {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--text-faint);
  word-break: break-word;
}

/* ---------- Subscription tiers ---------- */

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.8rem 0 1.2rem;
  text-align: left;
}
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.tier-hi {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.tier-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.tier-hi .tier-name { color: var(--accent); }

.tier-price {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.tier-price span {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0;
}

.tier-for {
  margin: 0.55rem 0 0.9rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tier-list { list-style: none; margin: 0; padding: 0; }
.tier-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  font-size: 0.89rem;
  line-height: 1.4;
  border-top: 1px solid var(--border);
}
/* The pill sits under the words on a narrow card rather than
   squeezing them into a column one word wide. */
.tier-list li.soon { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.35rem; }
.tier-list li:first-child { border-top: 0; }
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78rem;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--good);
}
/* Not finished yet — say so on the line itself, not in small print. */
.tier-list li.soon { color: var(--text-faint); }
.tier-list li.soon::before { background: var(--border-strong); }

.tier-tag {
  display: inline-block;
  white-space: nowrap;
  margin-left: 0.3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  vertical-align: 1px;
}

.tier-foot {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
  margin: 0;
}

/* Induction video. 16:9 box that holds its shape on a phone, so
   the page doesn't jump about while the player loads. */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
