/* Kloqr site. Dark values on :root; light values in the media query and in [data-theme="light"]. */
:root {
  color-scheme: dark;
  --bg: #100f14;
  --surface: #1a181f;
  --well: #24212b;
  --ink: #f3f1f7;
  --muted: #b9b5c6;
  --faint: #918ca1;
  --line: #2e2a38;
  --line-strong: #7a758c;
  --brand: #6a63d6;
  --brand-hover: #5a53c4;
  --brand-ink: #b3aeff;
  --on-brand: #ffffff;
  --band-from: #2d2870;
  --band-to: #453fa0;
  --on-band: #ffffff;
  --on-band-muted: #d9d6ff;
  --ok: #5ed1a0;
  --warn: #f0b35e;
  --danger: #ff8a7a;
  --focus: #b3aeff;
  --fg-rgb: 243, 241, 247;
  --shadow-1: none;
  --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-device: 0 40px 80px -32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --margin: 32px;
  --nav-h: 72px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --t-fast: 150ms; --t-med: 240ms; --t-slow: 600ms; --t-hero: 900ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f3ee; --surface: #ffffff; --well: #ece7df; --ink: #17151f; --muted: #4a4758; --faint: #666273;
    --line: #dcd6cc; --line-strong: #787284; --brand: #504aad; --brand-hover: #413b97; --brand-ink: #453fa0;
    --band-from: #413b97; --band-to: #5b53be; --on-band-muted: #e4e1ff;
    --ok: #17694a; --warn: #8f4a06; --danger: #b42318; --focus: #17151f; --fg-rgb: 23, 21, 31;
    --shadow-1: 0 1px 2px rgba(23, 21, 31, 0.06), 0 1px 1px rgba(23, 21, 31, 0.04);
    --shadow-2: 0 12px 32px -12px rgba(23, 21, 31, 0.18), 0 2px 6px rgba(23, 21, 31, 0.06);
    --shadow-device: 0 40px 80px -32px rgba(45, 40, 112, 0.45), 0 8px 24px -8px rgba(23, 21, 31, 0.2);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ee; --surface: #ffffff; --well: #ece7df; --ink: #17151f; --muted: #4a4758; --faint: #666273;
  --line: #dcd6cc; --line-strong: #787284; --brand: #504aad; --brand-hover: #413b97; --brand-ink: #453fa0;
  --band-from: #413b97; --band-to: #5b53be; --on-band-muted: #e4e1ff;
  --ok: #17694a; --warn: #8f4a06; --danger: #b42318; --focus: #17151f; --fg-rgb: 23, 21, 31;
  --shadow-1: 0 1px 2px rgba(23, 21, 31, 0.06), 0 1px 1px rgba(23, 21, 31, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(23, 21, 31, 0.18), 0 2px 6px rgba(23, 21, 31, 0.06);
  --shadow-device: 0 40px 80px -32px rgba(45, 40, 112, 0.45), 0 8px 24px -8px rgba(23, 21, 31, 0.2);
}

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 5.4vw, 4.5rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; max-width: 20ch; }
h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3125rem, 1.8vw, 1.5rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 2 * var(--margin)); margin-inline: auto; }
.page { position: relative; overflow-x: clip; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--brand); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 0.8125rem; line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.eyebrow-time { font-variant-numeric: tabular-nums; margin-right: 8px; }
.eyebrow-time::after { content: "·"; margin-left: 8px; }
.eyebrow-band { color: var(--on-band-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand);
  font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) ease;
}
.btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-on-band, .btn-on-band:hover { background: #fff; color: #413b97; }
.btn-outline-band { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-outline-band:hover { background: rgba(255, 255, 255, 0.12); }
.hero, .doc-band { --focus: #ffffff; }

/* Nav */
.nav { position: fixed; z-index: 40; inset: 0 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); transition: background-color var(--t-med) ease, border-color var(--t-med) ease, box-shadow var(--t-med) ease; }
.nav-bar { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand b { color: var(--brand-ink); font-weight: 700; }
.brand .arc { stroke: var(--brand-ink); }
.brand .arc-dot { fill: var(--brand-ink); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.9375rem; transition: color var(--t-fast), background-color var(--t-fast); }
.nav-links a:hover { color: var(--ink); background: rgba(var(--fg-rgb), 0.06); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav-end { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast); }
.theme-btn:hover { color: var(--ink); }
.theme-btn .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: none; }
.theme-btn .ic .fill { fill: currentColor; stroke: none; }
:root:not([data-theme-choice]) .ic-system, [data-theme-choice="system"] .ic-system,
[data-theme-choice="light"] .ic-light, [data-theme-choice="dark"] .ic-dark { display: block; }

/* Home: transparent over the hero band until the sentinel leaves view (needs JavaScript) */
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) { background: transparent; border-bottom-color: transparent; box-shadow: none; --focus: #ffffff; color: #fff; }
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .nav-links a,
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .theme-btn { color: #fff; }
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .nav-links a:hover { background: rgba(255, 255, 255, 0.12); }
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .theme-btn,
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .menu-btn { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .brand b { color: #c9c5ff; }
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .brand .arc { stroke: #c9c5ff; }
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .brand .arc-dot { fill: #c9c5ff; }
.js body:not(.doc) .nav:not(.is-scrolled):not(.is-open) .btn-sm { background: #fff; color: #413b97; }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, var(--band-from), var(--band-to)); color: var(--on-band); border-radius: 0 0 32px 32px; padding: 120px 0 0; margin-bottom: 88px; min-height: 0; overflow-x: clip; }
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 96px; pointer-events: none; }
.qmark { position: absolute; right: -40px; top: 88px; width: 560px; height: 560px; color: #fff; opacity: 0.06; pointer-events: none; }
.qmark-arcs { transform-origin: 50% 50%; animation: qturn 1.2s var(--ease-inout) both; }
@keyframes qturn { to { transform: rotate(24deg); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.hero-copy { padding-bottom: 96px; }
.hero-copy h1 { color: var(--on-band); }
.lede { font-size: 1.25rem; line-height: 1.5; margin-top: 24px; color: var(--on-band-muted); max-width: 62ch; }
.sublede { font-size: 0.9375rem; line-height: 1.5; margin-top: 16px; color: var(--on-band-muted); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-devices { position: relative; display: flex; align-items: flex-start; justify-content: flex-end; margin-bottom: -64px; }
.hero-tablet { --w: min(480px, 34vw); width: var(--w); animation: slide-in var(--t-hero) var(--ease-out) 120ms both; }
.hero-phone { --w: min(290px, 20.5vw); width: var(--w); order: -1; position: relative; z-index: 2; animation: rise var(--t-hero) var(--ease-out) both; }
.hero .shot { flex-shrink: 0; }
.hero .hero-phone { margin: 48px -96px 0 0; }
.hero .shot figcaption { color: var(--muted); background: var(--bg); padding: 2px 12px; border-radius: var(--r-pill); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(32px); } }

/* Screenshots */
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.shot figcaption { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; line-height: 1.4; color: var(--faint); }
.shot figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.shot-phone figcaption::before { background: var(--ok); }
.shot-phone { width: var(--w, 280px); max-width: 100%; }
.device { background: #0b0a10; box-shadow: var(--shadow-device); display: grid; }
.device img { grid-area: 1 / 1; width: 100%; }
.device-phone { --pad: calc(var(--w, 280px) * 0.0286); width: 100%; padding: var(--pad); border-radius: calc(var(--w, 280px) * 0.157); }
.device-phone img { border-radius: calc(var(--w, 280px) * 0.157 - var(--pad)); }
.device-tablet { padding: calc(var(--w, 520px) * 0.0192); border-radius: var(--r-lg); width: 100%; }
.device-tablet img { border-radius: 14px; }
.device-tablet.crop img { aspect-ratio: var(--crop); object-fit: cover; object-position: top; height: auto; }
.shot-tablet { width: var(--w, 520px); max-width: 100%; }
.device-phone img[data-view]:not(.is-on), .hero-phone img:not(.is-on) { opacity: 0; }
.device-phone img[data-view] { transition: opacity var(--t-med) var(--ease-inout); }
.hero-phone img { transition: opacity 500ms var(--ease-inout); }
.pane { position: relative; display: grid; width: 100%; max-width: 720px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2); background: var(--surface); }
.pane img { grid-area: 1 / 1; width: 100%; }
.shot-crop { width: 100%; }
.t-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .t-light { display: block; }
  :root:not([data-theme="dark"]) .t-dark { display: none; }
}
:root[data-theme="light"] .t-light { display: block; }
:root[data-theme="light"] .t-dark { display: none; }

/* Sections */
.section { padding: var(--s-9) 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.25rem; line-height: 1.5; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* Trust strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; }
.facts > div { display: grid; align-content: start; gap: 2px; }
.facts dt { display: flex; align-items: flex-start; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
.facts dt svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--brand-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facts dd { margin: 0; padding-left: 32px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

/* Workflow */
.flow-heads { display: none; }
.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 10px; bottom: 0; left: calc(100% * 4.5 / 12 - 1px); width: 2px; background: var(--line); }
.flow-step { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 7fr); padding-bottom: var(--s-9); }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ""; position: absolute; z-index: 1; top: 3px; left: calc(100% * 4.5 / 12 - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: background-color var(--t-slow) var(--ease-inout), border-color var(--t-slow) var(--ease-inout); }
.flow-step::after { content: ""; position: absolute; top: 10px; bottom: 0; left: calc(100% * 4.5 / 12 - 1px); width: 2px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform var(--t-slow) var(--ease-inout); }
.flow-step:last-child::after { display: none; }
.flow-step.is-on::before { background: var(--brand); border-color: var(--brand); }
.flow-step.is-on::after { transform: scaleY(1); }
.flow-copy { grid-column: 3; grid-row: 1; max-width: 62ch; margin-bottom: 32px; position: relative; z-index: 2; padding-right: 16px; }
.flow-copy h3 { margin-bottom: 12px; }
.flow-copy p:not(.eyebrow) { color: var(--muted); }
.flow-copy ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
.flow-copy li { position: relative; padding-left: 18px; }
.flow-copy li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; background: var(--brand-ink); }
.flow-shots { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 7fr); }
.flow-shots > .shot { grid-column: 1; background: var(--well); border-radius: var(--r-lg); padding: 32px; width: auto; align-self: stretch; justify-content: center; }
.flow-shots > .shot-manager { grid-column: 3; }
.flow-shots > .shot-crop { align-self: center; }
.flow-shots .shot-phone .device { width: var(--w, 280px); max-width: 100%; }
.flow-shots .shot-tablet .device { width: min(100%, 520px); }
.flow-shots > .shot-stack { grid-column: 3; display: grid; gap: 24px; }
.flow-shots > .shot-stack .shot { background: var(--well); border-radius: var(--r-lg); padding: 32px; }
.flow-step.only-worker .flow-copy, .flow-step.only-manager .flow-copy { grid-row: 1; margin-bottom: 0; align-self: center; }
.flow-step.only-manager .flow-copy { grid-column: 1; }
.flow-step.only-worker .flow-shots, .flow-step.only-manager .flow-shots { grid-row: 1; }
.flow-step.no-shot .flow-copy { margin-bottom: 0; }
.flow-end { margin-top: 96px; display: grid; justify-items: center; gap: 24px; text-align: center; }
.flow-end p { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; max-width: 30ch; }
.shot-switch { margin-top: 24px; max-width: 220px; }

/* More on the phone */
.phone-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phone-card { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 32px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); align-content: start; }
.phone-card .shot { --w: 240px; margin-bottom: 12px; }
.phone-card h3 { font-size: 1.1875rem; }
.phone-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; max-width: 30ch; }

/* Your setup */
.tailored-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 64px 48px; }
.tailored { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.lede-sm { margin-top: 16px; color: var(--muted); font-size: 1.125rem; line-height: 1.55; max-width: 62ch; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; gap: 2px; }
.steps span { color: var(--muted); font-size: 0.9375rem; }
.builder { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.builder-controls { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label, legend { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23918ca1' stroke-width='1.6'/%3E%3C/svg%3E"); background-position: right 16px center; background-size: 12px 8px; background-repeat: no-repeat; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.seg > div { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--well); }
.seg label, .toggles label, .choices label { display: block; position: relative; cursor: pointer; }
.seg input, .toggles input, .choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 7px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); transition: background-color var(--t-med), color var(--t-med); }
.seg input:checked + span { background: var(--brand); color: var(--on-brand); }
.toggles { display: grid; gap: 6px; }
.toggles span { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: 0.9375rem; }
.toggles span::after { content: ""; width: 34px; height: 20px; border-radius: 999px; flex-shrink: 0; background-color: var(--line-strong); background-image: radial-gradient(circle at 10px 10px, #fff 7px, transparent 7.5px); transition: background-color var(--t-med); }
.toggles input:checked + span::after { background-color: var(--brand); background-image: radial-gradient(circle at 24px 10px, #fff 7px, transparent 7.5px); }
.seg input:focus-visible + span, .toggles input:focus-visible + span, .choices input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.preview { border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; }
.preview-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.8125rem; min-width: 0; }
.preview-bar span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--well); font-family: var(--display); font-size: 0.8125rem; }
.preview-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; align-content: start; }
.preview-nav li { padding: 6px 10px; border-radius: var(--r-pill); font-size: 0.8125rem; color: var(--muted); }
.preview-nav li:first-child { background: var(--well); color: var(--ink); font-weight: 600; }
.preview-note { margin-top: 10px; font-size: 0.8125rem; color: var(--faint); }

/* Industries */
.tabs { padding: 12px; }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--well); width: fit-content; max-width: 100%; margin: 0 auto; }
.tab-list button { min-height: 44px; border: 0; background: none; padding: 0 18px; border-radius: 7px; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color var(--t-med), color var(--t-med); }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 40px; align-items: center; padding: 40px 32px 32px; animation: fade var(--t-med) ease; }
@keyframes fade { from { opacity: 0; } }
.tab-panel p { margin-top: 12px; color: var(--muted); }
.tab-panel .shot { --w: 200px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: rgba(var(--fg-rgb), 0.06); border: 1px solid var(--line-strong); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sec { display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.sec svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.sec h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.sec p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.sec-note { margin-top: 24px; font-size: 0.9375rem; color: var(--muted); }
.sec-note a { color: var(--brand-ink); text-underline-offset: 3px; }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.demo-copy { display: grid; gap: 20px; align-content: start; }
.demo-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.demo-copy .eyebrow { margin-bottom: -8px; }
.demo-copy > .also, .demo-copy > .also-line { font-size: 0.9375rem; }
.also { line-height: 1.8; }
.demo-copy a { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; }
.ask { display: grid; gap: 16px; width: 100%; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.ask .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choices > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border-radius: var(--r-sm); text-align: center; font-weight: 600; font-size: 0.9375rem; background: var(--surface); border: 1px solid var(--line-strong); transition: background-color var(--t-fast), border-color var(--t-fast); }
.choices input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.optional { font-weight: 400; color: var(--faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--danger); color: var(--danger); font-weight: 600; }
.form-foot { display: grid; gap: 12px; margin-top: 4px; }
.form-foot p { font-size: 0.8125rem; color: var(--faint); }
.form-foot a { color: var(--brand-ink); }
.form-done h3 { margin-bottom: 8px; }
.form-done p { color: var(--muted); }

/* Footer */
.foot { padding: 64px 0 32px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid p { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; max-width: 40ch; }
.foot-links { display: grid; align-content: start; }
.foot-links a { display: flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8125rem; }
.theme-seg { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.theme-seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.theme-seg label { display: block; position: relative; cursor: pointer; }
.theme-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.theme-seg span { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 7px; font-size: 0.8125rem; color: var(--muted); }
.theme-seg input:checked + span { background: var(--well); color: var(--ink); font-weight: 600; }
.theme-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Documents: privacy, terms, help, delete account, location */
.doc-band { background: linear-gradient(160deg, var(--band-from), var(--band-to)); color: var(--on-band); padding: 136px 0 48px; border-radius: 0 0 32px 32px; }
.doc-band .wrap { width: min(760px, 100% - 32px); }
.doc-band h1 { font-size: clamp(2.125rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 24ch; }
.doc-band p { margin-top: 16px; font-size: 1.125rem; line-height: 1.5; color: var(--on-band-muted); max-width: 62ch; }
.doc main { display: block; padding: 64px 0 96px; }
.doc main .wrap { width: min(760px, 100% - 32px); font-size: 1.0625rem; line-height: 1.65; }
.doc main a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.doc main h2 { clear: both; font-size: clamp(1.3125rem, 2vw, 1.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 96px; }
.doc main h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; }
.doc main p, .doc main li { overflow-wrap: anywhere; }
.doc main p { margin: 0 0 12px; }
.doc main ul, .doc main ol { margin: 0 0 12px; padding-left: 1.4em; }
.doc main li { margin-bottom: 6px; }
.doc main .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 28px; box-shadow: var(--shadow-1); }
.doc main .summary h2 { margin-top: 0; }
.doc main .summary ul { margin-bottom: 0; }
.doc main .toc { background: var(--well); border-radius: var(--r-md); padding: 20px 24px; margin-top: 24px; }
.doc main .toc p { font-weight: 600; margin-bottom: 8px; }
.doc main .toc ol { margin: 0; }
.doc main .toc a { text-decoration: none; }
.doc main .toc a:hover { text-decoration: underline; }
.doc main .muted { color: var(--muted); }
.doc main .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 16px; background: var(--surface); }
.doc main table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.doc main th, .doc main td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc main th { background: var(--well); font-weight: 600; }
.doc main tr:last-child td { border-bottom: 0; }
.shot-aside { margin: 16px auto 24px; --w: 180px; }

/* Reveal on scroll (hidden states only with JavaScript) */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal-on .shot.reveal { transform: translateY(16px) scale(0.98); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

@media (min-width: 40em) { .doc main .toc ol { columns: 2; column-gap: 32px; } }
@media (min-width: 47.5em) { .shot-aside { float: right; margin: 0 0 16px 32px; } }

@media (min-width: 60em) {
  .flow-heads { display: grid; position: sticky; top: var(--nav-h); z-index: 5; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 7fr); padding: 12px 0; margin-bottom: 32px; background: var(--bg); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
  .flow-heads span:nth-child(2) { grid-column: 3; }
  .flow-step:not(.only-worker):not(.only-manager) .flow-copy { grid-column: 1 / -1; max-width: none; padding-right: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr auto; align-items: start; }
  .flow-step:not(.only-worker):not(.only-manager) .flow-copy > .eyebrow { grid-column: 1; grid-row: 1; }
  .flow-step:not(.only-worker):not(.only-manager) .flow-copy > h3 { grid-column: 1; grid-row: 2; padding-right: 24px; margin-bottom: 0; }
  .flow-step:not(.only-worker):not(.only-manager) .flow-copy > p:not(.eyebrow) { grid-column: 3; grid-row: 1 / span 3; max-width: 62ch; }
  .flow-step:not(.only-worker):not(.only-manager) .flow-copy > ul { grid-column: 3; grid-row: 4; max-width: 62ch; }
  .flow-shots .shot-phone { --w: 240px; }
}

/* Below 960px: menu sheet, one-column layouts */
@media (max-width: 59.99em) {
  :root { --nav-h: 60px; }
  .menu-btn { display: grid; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--margin) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav.is-open .nav-links { display: flex; animation: sheet var(--t-med) var(--ease-out); }
  .nav-links a { min-height: 48px; font-size: 1rem; }
  @keyframes sheet { from { opacity: 0; transform: translateY(-8px); } }
  .nav-end { margin-left: auto; }
  .hero { padding-top: 112px; min-height: 0; margin-bottom: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-bottom: 0; }
  .hero-devices { justify-content: center; margin-bottom: -48px; }
  .hero-tablet { display: none; }
  .hero-phone { --w: 232px; order: 0; }
  .hero .hero-phone { margin: 0; }
  .qmark { width: 360px; height: 360px; right: -100px; top: 72px; }
  .tailored, .demo { grid-template-columns: 1fr; gap: 40px; }
  .tailored-panel { padding: 40px 24px; }
  .facts, .sec-grid { grid-template-columns: 1fr 1fr; }
  .phone-cards { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 1fr; gap: 24px; }
  .tab-panel .shot { justify-self: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .flow::before, .flow-step::after { left: 10px; }
  .flow-step::before { left: 3px; }
  .flow-step { display: block; padding-left: 36px; padding-bottom: 72px; }
  .flow-copy { padding-right: 0; margin-bottom: 24px; }
  .flow-step.only-worker .flow-copy, .flow-step.only-manager .flow-copy { margin-bottom: 24px; }
  .flow-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow-shots > .shot, .flow-shots > .shot-manager, .flow-shots > .shot-stack { grid-column: 1; }
}

@media (max-width: 42.5em) {
  :root { --margin: 16px; }
  .section { padding: 56px 0; }
  .flow-step { padding-bottom: 56px; }
  .nav-bar { gap: 8px; }
  .nav-end { gap: 8px; }
  .nav-end .btn-sm { padding: 0 12px; }
  .brand { font-size: 1.25rem; gap: 6px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .sec-grid, .foot-grid, .ask .row, .builder, .choices > div { grid-template-columns: 1fr; }
  .flow-shots > .shot, .flow-shots > .shot-stack .shot { padding: 16px; }
  .shot-phone, .phone-card .shot { --w: 232px; }
  .tab-panel .shot { --w: 160px; }
  .shot-aside { --w: 180px; }
  .tabs { padding: 8px; }
  .tab-panel { padding: 24px 12px 12px; }
  .ask { padding: 20px; }
  .tailored-panel { padding: 32px 16px; }
  .pane { overflow-x: auto; max-width: none; }
  .pane img { width: 760px; max-width: none; }
  .pane[tabindex]::after { content: ""; grid-area: 1 / 1; justify-self: end; position: sticky; right: 0; width: 40px; pointer-events: none; background: linear-gradient(to right, transparent, var(--well)); }
  .foot-links a { min-height: 44px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .tab-list { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tab-list button { white-space: normal; padding: 6px 8px; font-size: 0.875rem; line-height: 1.2; }
  .phone-card { grid-template-columns: 136px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; column-gap: 20px; row-gap: 4px; padding: 20px; }
  .phone-card .shot { --w: 136px; grid-row: 1 / span 2; margin-bottom: 0; }
  .phone-card h3 { align-self: end; }
  .phone-card p { align-self: start; }
  .phone-card .shot figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sec-grid { gap: 0; border-top: 1px solid var(--line); }
  .sec { grid-template-columns: 20px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 20px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sec svg { grid-row: 1 / span 2; margin: 3px 0 0; }
  .doc-band { padding: 104px 0 32px; }
  .doc main { padding: 48px 0 72px; }
  .doc-band h1 { font-size: 2.125rem; }
  .lede { font-size: 1.125rem; }
}

/* No JavaScript: the links wrap under the bar and there is no Menu button */
html:not(.js) .menu-btn, html:not(.js) .shot-switch, html:not(.js) .tab-list { display: none; }
html:not(.js) .tab-panel[hidden] { display: grid !important; border-top: 1px solid var(--line); }
@media (max-width: 59.99em) {
  html:not(.js) .nav-bar { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .nav-links { position: static; display: flex; flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; padding: 0; background: none; border: 0; box-shadow: none; }
  html:not(.js) .nav-links a { min-height: 44px; }
  html:not(.js) .nav { position: relative; }
  html:not(.js) .hero { padding-top: 40px; }
  html:not(.js) .doc-band { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .qmark-arcs { transform: none; }
}
