/* HyperRoute TMS landing page (tms.html). Standalone: does not load style.css or home.css. */
:root {
  --asphalt: #12171d;
  --asphalt-2: #1b222b;
  --concrete: #eceff2;
  --paper: #ffffff;
  --ink: #12171d;
  --muted: #546070;
  --line: #d5dbe2;
  --blue: #0a6fd6;
  --blue-deep: #07468a;
  --go: #12a36d;
  --go-soft: #e1f5ec;
  --crit: #b42318;
  --on-dark: #e9edf2;
  --on-dark-muted: #a3adba;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--concrete); color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-stretch: 112%; font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #7fb4f5; outline-offset: 2px; }

/* Buttons */
.button { align-items: center; border: 2px solid transparent; border-radius: 6px; cursor: pointer; display: inline-flex; font: inherit; font-weight: 700; justify-content: center; min-height: 46px; padding: 10px 20px; text-decoration: none; white-space: nowrap; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-deep); }
.button-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.button-ghost:hover { color: var(--blue); }
.on-dark .button-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.on-dark .button-ghost:hover { border-color: #fff; color: #fff; }
.button-large { font-size: 18px; min-height: 56px; padding: 12px 26px; }
.button[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header { background: var(--asphalt); position: sticky; top: 0; z-index: 20; }
.header-row { align-items: center; display: flex; gap: 24px; justify-content: space-between; min-height: 68px; }
.brand img { display: block; height: 52px; width: auto; }
.header-nav { display: flex; gap: 24px; }
.header-nav a, .link-button { color: var(--on-dark); font-size: 15px; font-weight: 600; text-decoration: none; }
.header-nav a:hover, .link-button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.header-actions { align-items: center; display: flex; gap: 16px; }
.header-login-prompt { color: var(--on-dark-muted); font-size: 14px; white-space: nowrap; }
.header-login-short { display: none; }


/* Hero */
.on-dark { background: var(--asphalt); color: var(--on-dark); }
.hero { padding: 76px 0 84px; }
.hero-grid { align-items: center; display: grid; gap: 56px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); }
.lede { color: var(--on-dark); font-size: 20px; margin-top: 22px; max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine-print { color: var(--muted); font-size: 14px; margin-top: 16px; }
.on-dark .fine-print { color: var(--on-dark-muted); }
.on-dark .fine-print a { color: #8fc1ff; }

/* Load card: the hero's single moving piece */
.load-card { background: var(--paper); border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.45); color: var(--ink); justify-self: end; padding: 20px 22px 18px; width: min(460px, 100%); }
.lc-top { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.lc-id { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 600; }
.lc-lane { color: var(--muted); font-size: 15px; margin-top: 2px; }
.lc-rate { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 600; text-align: right; }
.lc-status { background: var(--concrete); border-radius: 999px; display: inline-block; font-size: 13px; font-weight: 700; margin-top: 6px; padding: 3px 12px; }
.lc-status[data-state="ready"], .lc-status[data-state="invoiced"] { background: var(--go-soft); color: #0b6b47; }
.lc-steps { border-top: 1px solid var(--line); list-style: none; margin: 16px 0 0; padding: 6px 0 0; }
.lc-steps li { align-items: flex-start; display: flex; gap: 12px; opacity: .35; padding: 9px 0; transition: opacity .35s ease; }
.lc-steps li.is-on { opacity: 1; }
.lc-steps .tick { background: var(--concrete); border-radius: 50%; flex: none; height: 22px; margin-top: 1px; position: relative; width: 22px; transition: background .25s ease; }
.lc-steps li.is-on .tick { background: var(--go); }
.lc-steps li.is-on .tick::after { border: solid #fff; border-width: 0 2px 2px 0; content: ""; height: 9px; left: 8px; position: absolute; top: 4px; transform: rotate(45deg); width: 5px; }
.lc-steps strong { display: block; font-size: 15px; line-height: 1.3; }
.lc-steps small { color: var(--muted); font-size: 13px; }
.lc-foot { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 13px; justify-content: space-between; margin-top: 4px; padding-top: 12px; }
.lc-replay { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 4px 0; }

/* Sections */
.section { padding: 88px 0; }
.section h2 { font-size: clamp(30px, 4vw, 48px); max-width: 17em; }
.section-lede { color: var(--muted); font-size: 19px; margin-top: 16px; max-width: 36em; }
.on-dark .section-lede { color: var(--on-dark-muted); }
.section-white { background: var(--paper); }

/* Before / after */
.shift { margin-top: 40px; }
.shift-head, .shift-row { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.shift-head { color: var(--muted); font-size: 15px; font-weight: 700; padding-bottom: 10px; }
.shift-head span:last-child { color: var(--blue); }
.shift-row { border-top: 1px solid var(--line); padding: 20px 0; }
.shift-row .was { color: var(--muted); text-decoration: line-through; text-decoration-color: #b8c0ca; }
.shift-row .now { font-size: 19px; font-weight: 600; }
.shift-row .now small { color: var(--muted); display: block; font-size: 15px; font-weight: 400; margin-top: 2px; }

/* Seats */
.seats { align-items: stretch; display: grid; gap: 28px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 40px; }
.seat-main { background: var(--asphalt); border-radius: 8px; color: var(--on-dark); padding: 36px; }
.seat-main h3 { color: #fff; font-size: 32px; }
.seat-side { display: grid; gap: 28px; }
.seat { border-top: 4px solid var(--blue); padding-top: 18px; }
.seat h3 { font-size: 24px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { padding: 7px 0 7px 26px; position: relative; }
.ticks li::before { border: solid var(--go); border-width: 0 3px 3px 0; content: ""; height: 11px; left: 4px; position: absolute; top: 12px; transform: rotate(45deg); width: 6px; }
.seat .ticks li { font-size: 16px; padding: 5px 0 5px 26px; }
.seat .ticks li::before { top: 9px; }
.seat-main .button { margin-top: 24px; }

/* Dispo */
.dispo-grid { align-items: center; display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dispo-grid h2 { color: #fff; }
.chat { background: var(--asphalt-2); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; display: grid; gap: 14px; padding: 22px; }
.chat p { border-radius: 8px; font-size: 16px; max-width: 92%; padding: 12px 14px; }
.chat .q { background: #2a3440; justify-self: end; }
.chat .a { background: #0d2742; border: 1px solid #1b4a7c; }
.chat .a b { color: #fff; }
.chat-note { color: var(--on-dark-muted); font-size: 13px; }

/* Ruled lists (integrations, included) */
.ruled { list-style: none; margin: 36px 0 0; padding: 0; }
.ruled li { border-top: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); padding: 18px 0; }
.ruled li:last-child { border-bottom: 1px solid var(--line); }
.ruled strong { font-size: 19px; font-stretch: 108%; }
.ruled span { color: var(--muted); }
.cols-2 { display: grid; gap: 0 56px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-2 .ruled li:last-child { border-bottom: 0; }

/* Pricing */
.type-switch { display: inline-flex; flex-wrap: wrap; gap: 0; margin-top: 28px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.type-option { background: transparent; border: 0; color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; min-height: 46px; padding: 8px 18px; }
.type-option + .type-option { border-left: 2px solid var(--ink); }
.type-option[aria-pressed="true"] { background: var(--ink); color: #fff; }
.price-try { margin-top: 18px; }
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.price-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; }
.price-card-featured { border: 2px solid var(--blue); }
.price-card h3 { font-size: 22px; }
.price { color: var(--muted); }
.price span { color: var(--ink); font-size: 44px; font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; }
.price-limit { font-weight: 600; margin-bottom: 10px; }
.price-card .button { margin-top: auto; }
.price-card .pill { left: 20px; position: absolute; top: -13px; }
.pill { align-self: flex-start; border-radius: 999px; display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; }
.pill-info { background: #e1eefc; color: var(--blue-deep); }

/* Steps */
.steps { counter-reset: s; list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { border-top: 4px solid var(--ink); counter-increment: s; padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-size: 44px; font-stretch: 118%; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.steps strong { display: block; font-size: 19px; }
.steps span { color: var(--muted); }

/* Demo form */
.demo-split { align-items: start; display: grid; gap: 56px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.demo-form { background: var(--paper); border-radius: 8px; display: grid; gap: 14px; padding: 28px; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { background: #fff; border: 1.5px solid #aeb8c4; border-radius: 6px; font: inherit; min-height: 48px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.hp-field { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }
.demo-form .button { justify-self: start; }
.check-message { color: var(--muted); font-size: 14px; min-height: 1.4em; }
.check-message.is-error { color: var(--crit); }

/* FAQ */
.narrow { width: min(820px, 100% - 32px); margin: 0; }
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--blue); content: "+"; float: right; font-weight: 800; }
.faq[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); margin-top: 10px; }

/* Final call and footer */
.final h2 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); max-width: 14em; }
.final .hero-actions { margin-top: 28px; }
.site-footer { background: var(--asphalt); border-top: 1px solid rgba(255,255,255,.1); color: var(--on-dark-muted); font-size: 14px; padding: 26px 0; }
.footer-row { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .hero-grid, .dispo-grid, .demo-split, .seats { grid-template-columns: 1fr; }
  .load-card { justify-self: start; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .header-login-prompt { display: none; }
  .header-login-short { display: inline; }
  .brand img { height: 44px; }
  .price-grid, .field-row { grid-template-columns: 1fr; }
  .shift-head { display: none; }
  .shift-row, .ruled li { grid-template-columns: 1fr; gap: 6px; }
  .seat-main { padding: 26px 22px; }
  .demo-form { padding: 20px; }
  .demo-form .button, .type-switch { width: 100%; }
  .type-option { flex: 1 1 auto; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lc-steps li, .lc-steps .tick { transition: none; }
}
