/* Pulsroute page CSS: tokens only, the palette lives in theme.css. */

.mono, .mono-tag, .demo-badge, .sec-tag { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.button-sm { min-height: 44px; padding: 10px 16px; font-size: var(--fs-small); }
.unit { font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--muted-strong); }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.no-js [hidden] { display: none; }

/* Concept strip above the header: the honest first line. */
.concept-strip { background: var(--ink-field); color: var(--on-ink); font-size: var(--fs-micro); line-height: 1.45; padding-block: 8px; }

/* Header */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { display: block; height: 32px; width: auto; flex: none; }
.brand-tile { fill: var(--accent-fill); }
.brand-route { fill: none; stroke: var(--accent-on-fill); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.brand-dot { fill: var(--accent-on-fill); }
.brand-goal { fill: none; stroke: var(--accent-on-fill); stroke-width: 4; }
.brand-word { fill: var(--ink); }
.site-footer .brand-logo { height: 36px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .button { display: none; }
@media (min-width: 560px) { .header-actions .button { display: inline-flex; } }
@media (min-width: 900px) { .header-inner { gap: 32px; } .nav-links { gap: 22px; } }
@media (min-width: 1200px) { .nav-links { gap: 28px; } }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-button); padding: 3px; }
.lang-switch button { min-width: 44px; min-height: 38px; border: 0; border-radius: calc(var(--radius-button) - 3px); background: transparent; font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.04em; cursor: pointer; color: var(--muted-strong); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.theme-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: transparent; cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Hero */
.hero { min-height: min(84svh, 860px); background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%); }
.hero .display { max-width: 13ch; }
.hero-facts { display: grid; gap: 0; margin-top: clamp(24px, 3vw, 40px); max-width: 34rem; }
.hero-facts > div { display: grid; gap: 2px 20px; padding-block: 12px; border-top: 1px solid var(--line-strong); }
.hero-facts dt { font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-eyebrow); color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 500; }
@media (min-width: 640px) { .hero-facts > div { grid-template-columns: 9rem 1fr; align-items: baseline; } }

.hero-art { margin: 0; }
.ride-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-ui); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.ride-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-small); }
.mono-tag { color: var(--accent-text); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-micro); }
.demo-badge { margin-left: auto; font-size: var(--fs-micro); padding: 3px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); }
.ride-route { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.route-arrow { color: var(--accent-text); }
.ride-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted-strong); font-size: var(--fs-small); }
.confirmations { display: grid; gap: 0; border-top: 1px solid var(--line); }
.confirmations li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding-block: 12px; border-bottom: 1px solid var(--line); }
.confirmations strong { display: block; font-weight: 600; }
.confirmations .who { display: block; font-size: var(--fs-small); color: var(--muted); }
.tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.is-ok .tick { background: var(--ok); }
.is-ok .tick::after { content: ""; width: 10px; height: 6px; border: solid var(--surface); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.is-wait .tick { border: 2px dashed var(--warn); }
.ride-next { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.ride-next-time { font-size: 2rem; color: var(--accent-text); }
.hero-art figcaption { max-width: 40ch; }

/* Facts */
.section-facts .facts > div > span:not(.unit) { color: var(--muted-strong); max-width: 34ch; }
.section-facts .facts .source { font-size: var(--fs-micro); color: var(--muted); }

/* How it works */
.flow { display: grid; gap: 28px; }
.role-tabs, .screen-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.role-tabs button, .screen-tabs button {
  flex: none; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-button);
  border: 1.5px solid var(--line-strong); background: transparent; font-weight: 600; cursor: pointer; color: var(--muted-strong);
}
.role-tabs button[aria-selected="true"], .screen-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stepper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.stepper button {
  width: 100%; min-height: 64px; display: grid; gap: 4px; justify-items: start; text-align: left;
  padding: 14px 12px 12px; border: 1px solid transparent; border-top: 3px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent;
  font-weight: 600; cursor: pointer; color: var(--muted-strong);
}
.stepper button .step-no { font-size: var(--fs-micro); color: var(--muted); font-weight: 500; }
.stepper button.is-past { border-top-color: var(--accent); }
.stepper button[aria-current="step"] {
  border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: var(--step-glow);
}
.stepper button[aria-current="step"] .step-no {
  color: var(--accent-on-fill); background: var(--accent-fill); border-radius: var(--radius-sm); padding: 2px 7px; font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .stepper button, .js .step-panel { animation: none !important; transition: none !important; }
}
.role-panel { display: grid; gap: 0; }
.step-panel { display: grid; gap: 12px; padding-block: 8px 24px; max-width: 70ch; }
.step-panel + .step-panel { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.step-who { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-weight: 600; }
.js .role-panel[hidden], .js .step-panel[hidden] { display: none; }
.js .step-panel + .step-panel { border-top: 0; }
.js .step-panel { animation: fadeUp 360ms var(--ease-out); }
.flow-nav { display: none; gap: 12px; }
.js .flow-nav { display: flex; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Product preview */
.screen-tabs { margin-bottom: 20px; }
.device { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-ui); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); }
.device-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.device-bar em { margin-left: 12px; font-style: normal; font-size: var(--fs-micro); color: var(--muted); }
.screen { padding: clamp(16px, 3vw, 32px); display: grid; gap: 20px; }
.screen + .screen { border-top: 1px solid var(--line); }
.js .screen + .screen { border-top: 0; }
.js .screen[hidden] { display: none; }
.screen-head { display: flex; align-items: flex-start; gap: 12px; }
.screen-head .demo-badge { flex: none; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpis > div { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.kpis strong { font-size: 2rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: var(--fs-small); font-weight: 600; cursor: pointer; color: var(--muted-strong); }
.chip-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.table-wrap { overflow-x: auto; }
.ui-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 560px; }
.ui-table th { text-align: left; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line-strong); }
.ui-table td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ui-table tr[hidden] { display: none; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: var(--fs-micro); line-height: 1.6; }
.s-ok { background: var(--ok-soft); color: var(--ok); }
.s-warn { background: var(--warn-soft); color: var(--warn); }
.s-neutral { background: var(--surface-2); color: var(--muted-strong); }

.book-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .book-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } }
.mock-form { display: grid; gap: 0; }
.mock-field { display: grid; gap: 6px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
fieldset.mock-field legend { padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.day-picks { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.day-picks button { min-width: 48px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: transparent; font-weight: 600; cursor: pointer; color: var(--muted-strong); }
.day-picks button[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-on-fill); }
.book-summary { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius-sm); background: var(--field-1); color: var(--field-1-ink); }
.book-count { font-size: 2.5rem; }
.book-count .unit { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--muted-strong); }
.book-result:empty { display: none; }
.book-result { color: var(--ok); font-weight: 600; }

.live-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .live-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.live-map { width: 100%; height: auto; }
.map-bg { fill: var(--surface-2); }
.map-street { stroke: var(--line-strong); stroke-width: 10; fill: none; opacity: 0.6; }
.map-route { stroke: var(--accent); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 2 0; }
.map-home { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.map-dest { fill: var(--accent-fill); stroke: var(--surface); stroke-width: 3; }
.map-car { fill: var(--warn); stroke: var(--surface); stroke-width: 3; }
.map-label { font: 600 12px var(--font-body); fill: var(--muted-strong); }
.live-side { display: grid; gap: 16px; }
.live-steps { display: grid; }
.live-steps li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 14px; }
.live-steps li:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line-strong); }
.live-steps li.is-done:not(:last-child)::before { background: var(--ok); }
.live-steps .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); margin-top: 4px; }
.live-steps .is-done .dot { background: var(--ok); border-color: var(--ok); }
.live-steps .is-current .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--accent); }
.live-steps li:not(.is-done):not(.is-current) strong { color: var(--muted); font-weight: 500; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Security */
.security .h2 { max-width: 18ch; }
.security-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .security-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 64px; } .security-head .eyebrow { grid-column: 1 / -1; } }
.sec-list h3 { margin-top: 4px; }
.sec-list p { color: var(--on-ink-muted); }
.sec-tag { font-size: var(--fs-micro); color: var(--on-ink-muted); letter-spacing: 0.04em; }
.c5 { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 28px; padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); }
@media (min-width: 900px) { .c5 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.c5-intro { display: grid; gap: 12px; }
.c5-intro .muted { color: var(--on-ink-muted); }
.c5-path, .timeline { display: grid; gap: 0; counter-reset: none; }
@media (min-width: 760px) { .c5-path { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.c5-path li, .timeline li { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px 16px 18px 0; border-top: 3px solid color-mix(in srgb, currentColor 22%, transparent); }
.c5-path li span:last-child, .timeline li span:last-child { font-size: var(--fs-small); }
.c5-path li span:last-child { color: var(--on-ink-muted); }
.c5-path li.is-done, .c5-path li.is-current { border-top-color: var(--accent-fill); }
.c5-path li.is-current::after, .timeline li.is-current::after { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-fill) 30%, transparent); }
.c5-path .mono, .timeline .mono { font-size: var(--fs-small); color: var(--on-ink-muted); }

/* Pricing: no boxes, rules and one field */
.patient-line { display: grid; gap: 12px 48px; padding-block: 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(32px, 4vw, 48px); }
.patient-line > p { max-width: 56ch; color: var(--muted-strong); }
.patient-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-weight: 600; }
.patient-price .num { font-size: 2.5rem; color: var(--accent-text); }
@media (min-width: 900px) { .patient-line { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; } }
.tiers { display: grid; gap: 12px; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; gap: clamp(20px, 3vw, 40px); } }
.tier { display: grid; align-content: start; gap: 14px; padding: 24px 0 28px; border-top: 2px solid var(--ink); }
.tier-main { padding: 28px clamp(20px, 3vw, 32px) 32px; border-top: 0; border-radius: var(--radius); background: var(--field-1); color: var(--field-1-ink); }
.tier-price { display: grid; gap: 6px; }
.tier-price .num { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); }
.tier-unit { font-size: var(--fs-small); color: var(--muted-strong); }
.tick-list { display: grid; gap: 8px; margin-block: 4px 8px; }
.tick-list li { position: relative; padding-left: 26px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 6px; border: solid var(--accent-text); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.tier .button { justify-self: start; }
.tier .text-link { justify-self: start; padding-block: 10px; }
.price-note { margin-top: 24px; max-width: 70ch; }

/* Roadmap */
@media (min-width: 900px) { .split-sticky-col { position: sticky; top: calc(var(--header-height) + 32px); } }
.progress-list { display: grid; }
.progress-list li { display: grid; gap: 10px; padding-block: 20px; border-top: 1px solid var(--line-strong); }
.progress-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pl-pct { font-size: 1.25rem; font-weight: 500; color: var(--accent-text); white-space: nowrap; flex: none; }
.bar { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--accent-fill); transform-origin: left; }
.js .bar span { transform: scaleX(0); transition: transform 1100ms var(--ease-out); }
.js .is-visible .bar span, .js .bar.is-visible span { transform: scaleX(1); }
.pl-stage { font-size: var(--fs-small); color: var(--muted-strong); display: flex; gap: 10px; }
.pl-stage .mono { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .js .bar span { transform: none; } }

.timeline-wrap { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.timeline { color: var(--ink); }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.timeline li span:last-child { color: var(--muted-strong); }
.timeline li.is-done, .timeline li.is-current { border-top-color: var(--accent-fill); }
.timeline .mono { color: var(--muted); }

/* FAQ */
#faq .faq summary { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

/* Early access: the one brief */
.section-access { background: var(--surface-2); }
.access { align-items: start; }
.access .h2 { max-width: 14ch; }
.access-form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: var(--fs-small); }
.form-row input, .form-row select { min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--bg); }
.form-row input:focus-visible, .form-row select:focus-visible { border-color: var(--accent); }
.form-row input[aria-invalid="true"] { border-color: var(--warn); }
.form-error { color: var(--warn); font-size: var(--fs-small); font-weight: 600; }
.access-form .button { justify-self: start; }
.form-done { color: var(--ok); font-weight: 600; }

/* Footer */
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.footer-note { max-width: 46ch; color: var(--muted-strong); }

/* Without JS everything shows; with JS the tabs take over. */
.no-js .flow-nav { display: none; }
