/* Shyft landing. No build step: edit and deploy. */

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;

  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --band: #ECF2F0;
  --ink: #0E1B19;
  --muted: #46534F;
  --faint: #5C6965;
  --line: #DCE4E1;
  --line-strong: #C3CFCB;

  /* Brand mark: fixed across audiences (assets/brand/README.md). */
  --brand-tile: #0B6E64;
  --brand-sheet: #FFFFFF;
  --brand-fold: #9FD4CB;
  --brand-ink: #101828;

  /* Physician accent: the brand teal. */
  --doc: #0B6E64;
  --doc-hover: #085A52;
  --on-doc: #FFFFFF;
  --doc-soft: #E2F1EE;
  --doc-text: #0A5F56;

  /* Hiring accent. */
  --hire: #3949A3;
  --hire-hover: #2E3C8C;
  --on-hire: #FFFFFF;
  --hire-soft: #E8EBF8;
  --hire-text: #33429A;

  --danger: #B42318;
  --danger-soft: #FEE4E2;
  --focus: #175CD3;

  --shadow-card: 0 1px 2px rgba(14, 27, 25, 0.06), 0 16px 32px -16px rgba(14, 27, 25, 0.18);
  --shadow-raised: 0 1px 2px rgba(14, 27, 25, 0.06), 0 28px 56px -24px rgba(11, 60, 55, 0.32);
  --shadow-segment: 0 1px 2px rgba(14, 27, 25, 0.08), 0 0 0 1px var(--line-strong);
  --shadow-menu: 0 12px 32px -12px rgba(14, 27, 25, 0.28);
  --scroll-fade: rgba(14, 27, 25, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --max: 1120px;
  --header-height: 64px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --swap-duration: 220ms;

  /* The active audience's accent. Every accent on the page reads these. */
  --side: var(--doc);
  --side-hover: var(--doc-hover);
  --on-side: var(--on-doc);
  --side-soft: var(--doc-soft);
  --side-text: var(--doc-text);
}

:root[data-audience="hiring"] {
  --side: var(--hire);
  --side-hover: var(--hire-hover);
  --on-side: var(--on-hire);
  --side-soft: var(--hire-soft);
  --side-text: var(--hire-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1312;
    --surface: #121D1B;
    --band: #0F1918;
    --ink: #E7EFED;
    --muted: #A9B7B3;
    --faint: #8E9C98;
    --line: #22302D;
    --line-strong: #34453F;

    --brand-tile: #5CC8B8;
    --brand-sheet: #0B1312;
    --brand-fold: #2F7F74;
    --brand-ink: #E7EFED;

    --doc: #5CC8B8;
    --doc-hover: #7AD6C8;
    --on-doc: #04201C;
    --doc-soft: #0F2E2A;
    --doc-text: #7BD8CA;

    --hire: #A3B0F5;
    --hire-hover: #BCC6F8;
    --on-hire: #10163A;
    --hire-soft: #1A2144;
    --hire-text: #B6C0F7;

    --danger: #FDA29B;
    --danger-soft: #3D1512;
    --focus: #8AB8FF;

    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 32px -16px rgba(0, 0, 0, 0.7);
    --shadow-raised: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 28px 56px -24px rgba(0, 0, 0, 0.8);
    --shadow-segment: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line-strong);
    --shadow-menu: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
    --scroll-fade: rgba(0, 0, 0, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --swap-duration: 0ms; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--side-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

[hidden] { display: none !important; }

.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;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* Audience swap: only the chosen side's content is shown. */

:root[data-audience="physician"] .side-hiring,
:root[data-audience="hiring"] .side-physician { display: none; }

/* Stacked swaps keep one height (the taller side) and cross-fade. */
.stack { display: grid; }
.stack > .side { grid-area: 1 / 1; align-self: start; transition: opacity var(--swap-duration) ease, visibility 0s linear 0s; }
:root[data-audience="physician"] .stack > .side-hiring,
:root[data-audience="hiring"] .stack > .side-physician {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--swap-duration) ease, visibility 0s linear var(--swap-duration);
}
.no-transition .stack > .side { transition: none !important; }

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-ink);
  text-decoration: none;
  flex: none;
}
.logo { display: block; width: auto; height: 32px; }
.logo-tile { fill: var(--brand-tile); }
.logo-sheet { fill: var(--brand-sheet); }
.logo-fold { fill: var(--brand-fold); }
.logo-pulse { fill: none; stroke: var(--brand-tile); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-word { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark { width: 24px; height: 24px; flex: none; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.5) blur(14px);
    -webkit-backdrop-filter: saturate(1.5) blur(14px);
  }
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--ink); background: var(--band); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--side); border-radius: 0; }

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.menu-button:hover { border-color: var(--muted); }
.menu-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-icon-close,
.menu-button[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-button[aria-expanded="true"] .menu-icon-close { display: block; }

@media (max-width: 759px) {
  .bar { gap: 8px; }
  .bar > .button { margin-left: auto; }
  .logo { height: 28px; }

  /* Without the script the links sit in a scrollable second row. */
  .nav { order: 5; flex-basis: 100%; margin: 0 0 8px; overflow-x: auto; }
  .nav a { padding: 0 10px; }

  .js .menu-button { display: inline-flex; order: 4; }
  .js .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-menu);
    overflow: visible;
  }
  .js .nav:not(.is-open) { display: none; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav li + li { border-top: 1px solid var(--line); }
  .js .nav a { display: flex; min-height: 52px; padding: 0 14px; font-size: 1.0625rem; color: var(--ink); border-radius: 0; }
  .js .nav a:hover { background: transparent; color: var(--side-text); }
  .js .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--side); }
}
@media (prefers-reduced-motion: no-preference) {
  .nav.is-open { animation: menu-in 180ms var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--side);
  color: var(--on-side);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.button:hover { background: var(--side-hover); }
.button:active { transform: translateY(1px); }
.button:disabled,
.button[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; }
.button-small { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-quiet:hover { background: var(--surface); border-color: var(--muted); }
.button-block { width: 100%; }
.button-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Audience control: one radio group, synced to ?for= */

.audience {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--band);
  border: 1px solid var(--line);
}
.audience-option {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.audience-option:hover { color: var(--ink); }
.audience-option[aria-checked="true"] {
  background: var(--surface);
  color: var(--side-text);
  box-shadow: var(--shadow-segment);
}
.audience-option:active { transform: translateY(1px); }

/* Tags and badges */

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--side-soft);
  color: var(--side-text);
}
.tag-neutral { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */

.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(56px, 8vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-eyebrow { margin-top: 28px; }
.hero-eyebrow .badge { min-height: 28px; padding: 0 12px; }

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
}

/* The two lines name the two sides; the chosen side's line is in full ink. */
.headline-line { display: block; color: var(--faint); transition: color 240ms ease; }
:root[data-audience="physician"] .headline-physician,
:root[data-audience="hiring"] .headline-hiring { color: var(--ink); }

.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
}

.props { margin: 24px 0 0; padding: 0; list-style: none; max-width: 34em; }
.props li { position: relative; padding-left: 28px; margin-top: 8px; }
.props li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--side-soft);
}
.props li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.42em + 4px);
  width: 4px;
  height: 7px;
  border: solid var(--side-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.cta-note { margin-top: 16px; color: var(--faint); font-size: 0.9375rem; }

@media (max-width: 919px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 479px) {
  .audience { display: flex; width: 100%; }
  .audience-option { flex: 1; padding: 0 12px; }
  .cta-row .button { flex: 1 1 100%; }
  .hero-eyebrow { margin-top: 24px; }
}

/* Match flow illustration */

.flow { margin: 0; }

.flow-art {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 60% at 100% 100%, color-mix(in srgb, var(--side-soft) 90%, transparent), transparent 70%),
    var(--band);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--swap-duration) ease;
}

.flow-card {
  position: relative;
  width: min(100%, 360px);
  padding: 16px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.flow-offer { align-self: flex-start; }
.flow-result { align-self: flex-end; width: min(100%, 360px); }
.flow-result > .flow-card { width: 100%; box-shadow: var(--shadow-raised); border-color: var(--line-strong); }

.fc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-label { color: var(--faint); font-size: 0.8125rem; font-weight: 600; }
.fc-title { margin-top: 8px; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.fc-meta { color: var(--faint); font-size: 0.8125rem; line-height: 1.4; }

.fc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 16px 0 0; }
.fc-facts dt { color: var(--faint); font-size: 0.8125rem; }
.fc-facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; }

.fc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fc-row .fc-title { margin-top: 8px; }
.fc-row > div:first-child { flex: 1 1 auto; min-width: 0; }
.fc-row > div:first-child .fc-meta { white-space: nowrap; }
.fc-net { display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin-top: 8px; max-width: 11rem; }
.fc-amount { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--side-text); line-height: 1.3; }

.fc-matches { list-style: none; margin: 12px 0 0; padding: 0; }
.fc-matches li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.fc-matches li + li { border-top: 1px solid var(--line); }
.fc-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--side-soft);
  color: var(--side-text);
}
.fc-avatar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fc-match-text { display: grid; min-width: 0; }
.fc-match-title { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }

.fc-private {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--band);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.fc-lock { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* Illustration controls are drawn flat so they don't read as live buttons. */
.fc-actions { display: flex; gap: 8px; margin-top: 14px; pointer-events: none; user-select: none; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--faint);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip-primary { flex: 1; background: var(--side-soft); box-shadow: none; color: var(--side-text); }

.flow-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
}
.flow-pulse { position: absolute; left: 50%; top: 0; width: 48px; height: 112px; margin-left: -24px; overflow: visible; }
.flow-track { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; stroke-linejoin: round; }
.flow-beat { fill: none; stroke: var(--side); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-match {
  position: absolute;
  left: calc(50% + 28px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}

.flow-caption { margin-top: 12px; color: var(--faint); font-size: 0.8125rem; text-align: center; }

@media (max-width: 919px) {
  .flow { max-width: 560px; }
}
@media (max-width: 479px) {
  .flow-card, .flow-result { width: 100%; }
  .flow-link { height: 96px; justify-content: flex-start; }
  .flow-pulse { left: 32px; margin-left: 0; height: 96px; }
  .flow-match { left: 72px; }
}

/* One page-load moment: the pulse draws from the offer to the result card. */
@media (prefers-reduced-motion: no-preference) {
  .flow-beat { stroke-dasharray: 160; stroke-dashoffset: 160; animation: beat-draw 900ms cubic-bezier(0.3, 0.7, 0.2, 1) 350ms forwards; }
  .flow-match { animation: rise-in-centered 420ms ease-out 900ms both; }
  .flow-result { animation: rise-in 520ms var(--ease-out) 1050ms both; }
}
@keyframes beat-draw { to { stroke-dashoffset: 0; } }
@keyframes rise-in-centered {
  from { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  to { opacity: 1; transform: translateY(-50%); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Sections */

.section-title {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-eyebrow {
  margin-bottom: 12px;
  color: var(--side-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.section-intro { max-width: 40em; }
.section-intro > p:not(.section-eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

/* How it works */

.how { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.how .steps { margin-top: clamp(32px, 5vw, 56px); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: 52px;
  right: -28px;
  top: 20px;
  height: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--side-soft);
  color: var(--side-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 20px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
.step p { margin-top: 8px; color: var(--muted); max-width: 30em; }

.steps-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.steps-note .badge { margin-right: 8px; }
/* The badge and its sentence are two flex items, so wrapped lines keep one left edge. */
.steps-note-badged { display: flex; align-items: baseline; gap: 8px 12px; }
.steps-note-badged .badge { flex: none; margin-right: 0; }
@media (max-width: 479px) { .steps-note-badged { flex-direction: column; align-items: flex-start; } }

@media (max-width: 799px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { padding-left: 60px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 6px; }
  .step::before { left: 19px; right: auto; top: 48px; bottom: -24px; width: 2px; height: auto; }
  .steps-note { margin-top: 32px; }
}

/* Features */

.features-section { padding: clamp(56px, 9vw, 112px) 0; background: var(--band); border-top: 1px solid var(--line); }

.features {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
.features-hiring { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features li { padding-top: 16px; border-top: 2px solid var(--side); }
.feature-icon { display: block; width: 24px; height: 24px; margin-bottom: 12px; color: var(--side-text); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.features p { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }

.features-footnote { margin-top: 40px; color: var(--muted); font-size: 0.9375rem; max-width: 40em; }

@media (max-width: 959px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .features-hiring { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 479px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .features li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; }
  .feature-icon { grid-row: span 2; margin: 2px 0 0; }
}

/* Android download */

.download { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }

/* Intro and install steps on the left, the download card on the right; on phones the card follows the intro. */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro card" "install card";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.download-intro { grid-area: intro; }
.download-card { grid-area: card; }
.download-install { grid-area: install; margin-top: 40px; max-width: 34em; }
@media (max-width: 859px) {
  .download-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "install"; grid-template-rows: none; row-gap: 32px; }
  .download-install { margin-top: 0; }
}

.download-card {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.download-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.download-requirements { color: var(--faint); font-size: 0.875rem; }

.download-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.download-facts dt { color: var(--faint); font-size: 0.8125rem; }
.download-facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.download-facts .download-sha { grid-column: 1 / -1; }
.download-sha code { display: block; font-weight: 500; font-size: 0.8125rem; line-height: 1.5; overflow-wrap: anywhere; color: var(--muted); }
/* Phones: one fact per row, label left and value right. */
@media (max-width: 479px) {
  .download-card > .download-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .download-card > .download-facts > div:not([hidden]) { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; }
  .download-card > .download-facts > div + div { border-top: 1px solid var(--line); }
}

.download-verify { border-top: 1px solid var(--line); padding-top: 4px; color: var(--muted); font-size: 0.875rem; }
.download-verify summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}
.download-verify summary::-webkit-details-marker { display: none; }
.download-verify summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 200ms var(--ease-out);
}
.download-verify[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.download-verify summary:hover { color: var(--side-text); }
.download-verify .download-facts { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.download-verify p { margin-top: 12px; color: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  .download-verify::details-content { block-size: 0; overflow: clip; transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete; }
  .download-verify[open]::details-content { block-size: auto; }
}

.download-subtitle { font-size: 1.25rem; letter-spacing: -0.015em; }
.download-steps { margin: 16px 0 0; padding-left: 1.25rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.download-steps li + li { margin-top: 10px; }
.download-steps strong { color: var(--ink); font-weight: 600; }
.download code { font-size: 0.875em; overflow-wrap: anywhere; }

/* Trust and privacy */

.trust { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }

.facts {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.facts li {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.facts h3 { margin-top: 16px; font-size: 1.1875rem; letter-spacing: -0.01em; }
.facts p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; max-width: 34em; }

.trust-more { margin-top: 32px; }
.trust-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

@media (max-width: 719px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { padding: 20px; }
}

/* FAQ */

.faq { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 799px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--muted);
  transition: transform 200ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--side-text); }

.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 40em; }

@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size 240ms var(--ease-out), opacity 200ms ease, content-visibility 240ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* Waitlist */

.waitlist { padding: clamp(56px, 9vw, 112px) 0; background: var(--band); border-top: 1px solid var(--line); }

.waitlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro form" "points form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.waitlist-intro { grid-area: intro; }
.form-card { grid-area: form; }
.waitlist-points { grid-area: points; }
/* On phones the form follows the pitch directly; the data promises sit under it. */
@media (max-width: 859px) {
  .waitlist-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "points"; grid-template-rows: none; row-gap: 32px; }
  .waitlist-grid .waitlist-points { margin-top: 0; }
}

.waitlist-intro > p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 30em; }
.waitlist-points { margin: 24px 0 0; padding: 0; list-style: none; max-width: 30em; }
.waitlist-points li { position: relative; padding-left: 20px; margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.waitlist-points li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }

.form-card {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.form { display: grid; gap: 24px; }
.field-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.field { display: grid; gap: 8px; }
.field-label { padding: 0; font-weight: 600; font-size: 0.9375rem; }
.field-group .field-label { margin-bottom: 8px; }
.field-optional { color: var(--faint); font-weight: 500; }
.field-hint { color: var(--faint); font-size: 0.8125rem; }
.field-error { color: var(--danger); font-size: 0.875rem; font-weight: 500; }
.field-group .field-error { margin-top: 8px; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--side); box-shadow: 0 0 0 3px color-mix(in srgb, var(--side) 28%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
.input:disabled { opacity: 0.6; }

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.role:hover { border-color: var(--muted); }
.role input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--side); }
.role:has(input:checked) { border-color: var(--side); background: var(--side-soft); color: var(--side-text); font-weight: 600; }
.role:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.role input:focus-visible { outline: none; }
.field-group[aria-invalid="true"] .role { border-color: var(--danger); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--side); }
.consent a { font-weight: 600; }

.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); font-size: 0.9375rem; font-weight: 500; }
.form-status[data-tone="info"] { background: var(--band); color: var(--ink); border: 1px solid var(--line); }
.form-status a { color: inherit; font-weight: 700; }

.form-done { display: grid; justify-items: start; gap: 8px; padding: 8px 0; }
.form-done h3 { margin-top: 8px; font-size: 1.375rem; letter-spacing: -0.015em; }
.form-done h3:focus { outline: none; }
.form-done p { color: var(--muted); }
.done-icon { width: 40px; height: 40px; fill: var(--side-soft); stroke: var(--side-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.done-icon circle { stroke: none; }

@media (max-width: 359px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.9375rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.footer-name span { font-weight: 500; color: var(--muted); }
.footer-links { display: flex; gap: 4px 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-legal { grid-column: 1 / -1; color: var(--faint); font-size: 0.875rem; }

@media (max-width: 639px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Document pages (privacy, 404) */

.doc { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.doc-body { max-width: 44rem; min-width: 0; }
.doc h1 { font-size: clamp(2.125rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.doc h2 { margin-top: 48px; font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.25; }
.doc h3 { margin-top: 28px; font-size: 1.0625rem; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 8px; }
.doc .meta { margin-top: 12px; color: var(--faint); font-size: 0.9375rem; }
.doc code { font-size: 0.875em; padding: 1px 6px; border-radius: var(--radius-xs); background: var(--band); overflow-wrap: anywhere; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 64px; }

.toc {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.toc-title { color: var(--faint); font-size: 0.8125rem; font-weight: 600; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; }
.toc li + li { margin-top: 0; }
.toc a { display: flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; line-height: 1.3; }
.toc a:hover { color: var(--side-text); text-decoration: underline; }
@media (max-width: 519px) {
  .toc { padding: 16px 20px; }
  .toc ol { column-gap: 16px; }
  .toc a { min-height: 44px; font-size: 0.875rem; }
}

@media (min-width: 1100px) {
  .doc-layout { grid-template-columns: minmax(0, 44rem) 240px; }
  .doc-layout .toc {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    margin-top: 8px;
    padding: 0 0 0 20px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: none;
  }
  .doc-layout .toc ol { columns: 1; }
  .doc-layout .doc-head { grid-column: 1; }
  .doc-layout .doc-body { grid-column: 1; }
}

.table-scroll {
  margin-top: 18px;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--scroll-fade), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--scroll-fade), transparent) right / 12px 100% no-repeat scroll,
    var(--surface);
}
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.data-table thead th { color: var(--faint); font-weight: 600; font-size: 0.8125rem; border-bottom: 1px solid var(--line); }
.data-table tbody th { font-weight: 600; }
.data-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.data-table td { color: var(--muted); }

@media (max-width: 599px) {
  .table-scroll { overflow: visible; background: var(--surface); }
  .data-table { min-width: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table tr { padding: 16px; }
  .data-table tbody tr + tr > * { border-top: 0; }
  .data-table tbody tr + tr { border-top: 1px solid var(--line); }
  .data-table th, .data-table td { padding: 0; }
  .data-table td { margin-top: 10px; }
  .data-table td::before { content: attr(data-label); display: block; color: var(--faint); font-size: 0.8125rem; font-weight: 600; }
}

.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.not-found .button { margin-top: 32px; }
