/* Shared by every page on the marketing site. Extracted from index.html when the
   site was split, so a change to the look happens once rather than seven times. */

  /* ============================================================
     Tokens. Dark is the fuller expression of the board idea, but
     both themes are designed — the toggle must win over the OS.
     ============================================================ */
  :root {
    --ink:        #0B2A44;
    --paper:      #F2F6FA;
    --text:       #0B2A44;
    --text-dim:   #4B6478;
    --slate:      #6C8194;
    --amber:      #C87F0A;
    --amber-lit:  #F2A31B;
    --good:       #1F9D63;
    --bad:        #C9463D;

    --surface:    #FFFFFF;
    --surface-2:  #E6EEF5;
    --rule:       #C9D7E3;

    /* The board: the dark panels (masthead, hero, sign-up, footer). Sea-blue, not ink —
       the same blue the portal wears, so the site and the product feel like one thing. */
    --board:        #0F4C75;
    --board-grad:   linear-gradient(160deg, #0F4C75 0%, #1C6EA4 100%);
    --board-2:      #0C3D60;
    --board-3:      #0A3352;
    --board-rule:   rgba(255, 255, 255, 0.14);
    --board-text:   #EAF3FA;
    --board-dim:    #BFD7EA;
    --board-mute:   #8FB3CC;
    --board-input:  #0A3352;
    --board-input-border: #2E6A93;

    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --sans: "Inter", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;

    --measure: 66ch;
    --pad: clamp(20px, 5vw, 72px);
  }

  /* Dark is opt-in via the toggle only; the page always opens light. */
  :root[data-theme="dark"] {
    --paper: #0B1A2B; --text: #EAF3FA; --text-dim: #A9C1D6; --slate: #8FA9C0;
    --amber: #F2A31B; --good: #45C48A; --bad: #E8695E;
    --surface: #10243A; --surface-2: #15304A; --rule: #244562;
    --board: #0A2E4C; --board-grad: linear-gradient(160deg, #0A2E4C 0%, #0F4C75 100%);
    --board-2: #082640; --board-3: #071F36;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

  /* Micro-labels: the information-board voice. */
  .lbl {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
  }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

  h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
  h1 { font-size: clamp(33px, 6.6vw, 78px); line-height: 1.02; letter-spacing: -0.035em; }
  h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; }
  h3 { font-size: 18px; letter-spacing: -0.01em; }
  p  { max-width: var(--measure); }

  /* ---------- masthead ---------- */
  header.top {
    border-bottom: 1px solid var(--board-rule);
    background: var(--board);
    color: var(--board-text);
  }
  .top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }

  .mark { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; }
  /* The mark is the name: two fleets' paths crossing inside one circle —
     work moving from one operator to another. Amber is the job on offer,
     white the one taking it. */
  .glyph { width: 30px; height: 30px; flex: none; }
  .top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
  .top nav a { font-size: 14px; color: var(--board-dim); text-decoration: none; }
  .top nav a:hover { color: var(--amber-lit); }

  .btn {
    display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 700;
    padding: 11px 20px; border-radius: 6px; text-decoration: none; border: 1px solid transparent;
    cursor: pointer;
  }
  .btn-amber { background: var(--amber-lit); color: #16110A; }
  .btn-amber:hover { background: #FFB735; }
  .btn-ghost { border-color: rgba(255,255,255,.4); color: var(--board-text); }
  .btn-ghost:hover { border-color: var(--amber-lit); color: var(--amber-lit); }

  /* ---------- hero ---------- */
  .hero { background: var(--board-grad); color: var(--board-text); padding: clamp(52px, 8vw, 104px) 0 0; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
  @media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

  .hero h1 { color: #fff; }
  .hero h1 em { font-style: normal; color: var(--amber-lit); }
  .hero .stand {
    font-size: clamp(17px, 2vw, 20px); color: var(--board-dim); margin: 22px 0 30px; max-width: 52ch; line-height: 1.55;
  }
  .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .hero-note { font-family: var(--mono); font-size: 12px; color: var(--board-mute); margin-top: 18px; }

  /* Segments: the network is wider than any one visitor; only the first is live today. */
  .segments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
  .seg {
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px; border: 1px solid var(--board-rule); color: var(--board-dim);
  }
  .seg.live { background: rgba(242,163,27,.18); color: var(--amber-lit); border-color: transparent; }
  .seg small { opacity: .75; margin-left: 5px; letter-spacing: .04em; text-transform: none; font-size: 10.5px; }

  /* ---------- the board: a job handed over ---------- */
  .board {
    background: var(--board-2); border: 1px solid var(--board-rule); border-radius: 8px; overflow: hidden;
    box-shadow: 0 22px 50px rgba(4, 30, 50, .35);
  }
  .board-head {
    display: flex; align-items: center; gap: 10px; padding: 11px 16px;
    border-bottom: 1px solid var(--board-rule); background: var(--board-3);
  }
  .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
  @media (prefers-reduced-motion: no-preference) {
    .dot { animation: pulse 2.4s ease-in-out infinite; }
    @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
  }

  .rows { font-family: var(--mono); font-size: 12.5px; }
  .row {
    display: grid; grid-template-columns: 88px 1fr 78px 92px;
    gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--board-rule); align-items: center;
    color: var(--board-dim);
  }
  .row:last-child { border-bottom: none; }
  .row .ref { color: var(--amber-lit); }
  .row .route { color: var(--board-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row .money { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
  .tag {
    font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-align: center;
    padding: 3px 0; border-radius: 2px;
  }
  .t-open  { background: rgba(242,163,27,.18); color: var(--amber-lit); }
  .t-taken { background: rgba(69,196,138,.18); color: #7BE0B0; }
  .t-you   { background: rgba(255,255,255,.12); color: var(--board-dim); }

  /* The handover: one row visibly moves from open to taken. */
  .row.live { position: relative; }
  @media (prefers-reduced-motion: no-preference) {
    .row.live .tag { animation: flip 7s steps(1, end) infinite; }
    @keyframes flip {
      0%, 45%   { background: rgba(242,163,27,.18); color: var(--amber-lit); }
      50%, 100% { background: rgba(69,196,138,.18); color: #7BE0B0; }
    }
    .row.live::after {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(242,163,27,.09), transparent);
      animation: sweep 7s ease-in-out infinite;
    }
    @keyframes sweep { 0%,40% { transform: translateX(-100%); } 55%,100% { transform: translateX(100%); } }
  }
  .board-foot {
    padding: 11px 16px; border-top: 1px solid var(--board-rule); background: var(--board-3);
    font-family: var(--mono); font-size: 11px; color: var(--board-mute);
    display: flex; justify-content: space-between; gap: 12px;
  }

  /* ---------- ticker ---------- */
  .ticker {
    background: var(--amber-lit); color: #16110A; border-top: 1px solid transparent;
    font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
    padding: 11px 0; margin-top: clamp(46px, 7vw, 84px);
  }
  .ticker .wrap { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; font-weight: 700; }

  /* ---------- sections ---------- */
  section { padding: clamp(56px, 9vw, 116px) 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 28%, transparent); }
  /* Rhythm: white, tint, deep blue — so the page below the hero is not one white run. */
  section.tint { background: var(--surface-2); }
  section.deep { background: var(--board-grad); color: var(--board-text); border-bottom: none; }
  section.deep h2, section.deep h3 { color: #fff; }
  section.deep .sec-head p, section.deep .card p, section.deep .path li, section.deep .ledger p { color: var(--board-dim); }
  section.deep .lbl { color: var(--board-mute); }
  section.deep .card { background: rgba(255,255,255,.08); border-color: var(--board-rule); box-shadow: none; }
  section.deep .ledger, section.deep .ledger .item { border-color: var(--board-rule); }
  section.deep .ledger .num, section.deep .path li::before { color: var(--amber-lit); }
  section.deep .paths { background: var(--board-rule); border-color: var(--board-rule); }
  section.deep .path { background: rgba(255,255,255,.06); }
  section.deep pre.code { border: 1px solid var(--board-rule); }
  .sec-head { margin-bottom: clamp(30px, 4vw, 56px); }
  .sec-head .lbl { display: block; margin-bottom: 14px; }
  .sec-head p { color: var(--text-dim); font-size: 17px; margin-top: 16px; }

  /* ledger-style list: rules, not cards */
  .ledger { border-top: 1px solid var(--rule); }
  .ledger .item {
    display: grid; grid-template-columns: 56px 1fr 1.25fr; gap: clamp(14px, 3vw, 40px);
    padding: 26px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 30%, transparent);
    align-items: baseline;
  }
  @media (max-width: 760px) { .ledger .item { grid-template-columns: 40px 1fr; } .ledger .item p { grid-column: 2; } }
  .ledger .num { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .1em; }
  .ledger p { color: var(--text-dim); margin: 0; }

  .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(18px, 3vw, 34px); }
  .card {
    background: var(--surface); border: 1px solid color-mix(in srgb, var(--rule) 34%, transparent);
    border-radius: 8px; padding: 24px; box-shadow: 0 4px 14px rgba(15, 76, 117, .06);
  }
  .card h3 { margin-bottom: 9px; }
  .card p { color: var(--text-dim); font-size: 15px; margin: 0; }
  .card .lbl { display: block; margin-bottom: 14px; }

  /* ---------- price ---------- */
  .price-wrap { overflow-x: auto; }
  table.price {
    width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px;
    font-variant-numeric: tabular-nums;
  }
  table.price th, table.price td { padding: 16px 14px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--rule) 30%, transparent); }
  table.price thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
  table.price td.rate { font-family: var(--mono); font-weight: 700; font-size: 19px; color: var(--amber); white-space: nowrap; }
  table.price td small { display: block; color: var(--text-dim); font-family: var(--sans); font-weight: 400; font-size: 13px; margin-top: 3px; }

  .free {
    margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--amber);
    background: var(--surface-2); border-radius: 0 4px 4px 0;
  }
  .free strong { display: block; margin-bottom: 4px; }
  .free p { margin: 0; color: var(--text-dim); font-size: 15px; }

  /* ---------- two paths ---------- */
  .paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
  @media (max-width: 780px) { .paths { grid-template-columns: 1fr; } }
  .path { background: var(--surface); padding: clamp(24px, 3vw, 38px); }
  .path ul { margin: 18px 0 0; padding: 0; list-style: none; }
  .path li { position: relative; padding: 7px 0 7px 24px; color: var(--text-dim); font-size: 15px; }
  .path li::before {
    content: "—"; position: absolute; left: 0; top: 7px; color: var(--amber); font-family: var(--mono);
  }

  /* ---------- signup ---------- */
  .signup { background: var(--board-grad); color: var(--board-text); border-bottom: none; }
  .signup h2 { color: #fff; }
  .signup p { color: var(--board-dim); }
  .form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
  .form label { display: flex; flex-direction: column; gap: 7px; }
  .form label span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--board-mute); }
  .form input, .form select {
    background: var(--board-input); border: 1px solid var(--board-input-border); color: var(--board-text); border-radius: 6px;
    padding: 11px 13px; font: inherit; font-size: 15px;
  }
  .form input::placeholder { color: #7FA3BF; }
  .form .full { grid-column: 1 / -1; }
  .form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
  .form-note { font-family: var(--mono); font-size: 11.5px; color: var(--board-mute); }

  /* honeypot — out of sight, still focusable-safe */
  .form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* ---------- prose (legal + faq) ---------- */
  .prose { max-width: 78ch; }
  .prose h3 { margin: 30px 0 8px; }
  .prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
  .prose ul { padding-left: 20px; }
  .prose li { margin-bottom: 7px; }
  .prose .updated { font-family: var(--mono); font-size: 11.5px; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; }

  details.qa {
    border-bottom: 1px solid color-mix(in srgb, var(--rule) 30%, transparent); padding: 4px 0;
  }
  details.qa summary {
    cursor: pointer; padding: 17px 0; font-weight: 700; font-size: 16.5px; list-style: none;
    display: flex; gap: 14px; align-items: baseline;
  }
  details.qa summary::-webkit-details-marker { display: none; }
  details.qa summary::before { content: "+"; color: var(--amber); font-family: var(--mono); flex: none; }
  details.qa[open] summary::before { content: "\2212"; }
  details.qa p { margin: 0 0 18px 28px; color: var(--text-dim); font-size: 15.5px; }

  /* ---------- api sample ---------- */
  pre.code {
    background: var(--board-2); color: var(--board-dim); border-radius: 8px; padding: 18px 20px;
    overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; margin: 0;
  }
  pre.code .k { color: var(--amber-lit); }
  pre.code .s { color: #8FD3A8; }

  footer.foot { background: var(--board-3); color: var(--board-mute); padding: 34px 0; font-size: 13.5px; }
  footer.foot .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
  footer.foot a { color: var(--board-dim); text-decoration: none; }
  footer.foot a:hover { color: var(--amber-lit); }
  .small-print { font-size: 12px; color: var(--board-mute); max-width: 76ch; margin-top: 14px; line-height: 1.65; }

  /* ---------- inner-page masthead ----------
     Inner pages get a compact band rather than the home page's hero: same
     gradient so the chrome reads as one site, a third of the height, because
     a visitor who clicked "Pricing" wants the table, not another pitch. */
  .page-head { background: var(--board-grad); color: var(--board-text); padding: clamp(38px, 6vw, 68px) 0 clamp(34px, 5vw, 58px); }
  .page-head h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin: 14px 0 0; max-width: 24ch; }
  .page-head .stand { color: var(--board-dim); font-size: 17.5px; margin: 16px 0 0; max-width: 62ch; }
  .page-head .hero-cta { margin-top: 26px; }

  /* the page you are on, in the nav */
  .top nav a.here { color: var(--amber-lit); }

  /* ---------- a flagged gap, not a design flourish ----------
     Used where the copy is waiting on a fact we do not have yet (company
     registration, a retention period). Visible on purpose: better that a
     reader sees an honest gap than a confident invention. */
  .notice {
    border: 1px solid var(--amber); border-left-width: 3px; border-radius: 4px;
    background: color-mix(in srgb, var(--amber) 8%, transparent);
    padding: 16px 18px; margin: 26px 0;
  }
  .notice p { margin: 0; font-size: 14.5px; color: var(--text); }
  .notice .lbl { display: block; color: var(--amber); margin-bottom: 8px; }

  /* ---------- contact ---------- */
  .routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
  .route-card {
    background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
    padding: clamp(20px, 2.6vw, 30px);
  }
  .route-card h3 { margin-bottom: 8px; font-size: 18px; }
  .route-card p { color: var(--text-dim); font-size: 15px; margin: 0 0 14px; }
  .route-card a.mail { font-family: var(--mono); font-size: 13.5px; color: var(--amber); text-decoration: none; overflow-wrap: break-word; }
  .route-card a.mail:hover { text-decoration: underline; }
  .route-card .when { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }

  /* ---------- a next-step strip, so no page is a dead end ---------- */
  .onward { border-top: 1px solid var(--rule); background: var(--surface-2); }
  .onward .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: clamp(26px, 4vw, 44px); }
  .onward h2 { font-size: clamp(21px, 2.6vw, 28px); margin: 0; max-width: 34ch; }
  .onward .btn-amber { color: #16110A; }
  .onward .btn-ghost { border-color: var(--rule); color: var(--text); }
  .onward .btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

  /* ---------- legal page contents list ---------- */
  .toc { margin: 24px 0 8px; padding: 0; list-style: none; columns: 2; column-gap: 34px; }
  .toc li { margin-bottom: 7px; break-inside: avoid; }
  .toc a { color: var(--amber); text-decoration: none; font-size: 14.5px; }
  .toc a:hover { text-decoration: underline; }
  @media (max-width: 620px) { .toc { columns: 1; } }

  .prose a { color: var(--amber); }
  .prose h2 { margin: 0; }

  /* A section that opens straight under the masthead has already been
     introduced, so it does not need the full standing-start of padding that a
     section arriving mid-page does. */
  .page-head + section { padding-top: clamp(38px, 5vw, 64px); }

  /* ---------- the header on a phone ----------
     The nav is a single non-wrapping flex row, so on a narrow screen it pushed
     the header wider than the viewport and took the whole document with it —
     every page scrolled sideways. Below 820px the nav drops under the mark and
     wraps, which costs a little height and fixes the scroll. */
  @media (max-width: 820px) {
    .top .wrap { height: auto; min-height: 60px; flex-wrap: wrap; row-gap: 0; padding-block: 10px; }
    .top nav {
      margin-left: 0; width: 100%; flex-wrap: wrap; gap: 14px 18px;
      padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--board-rule);
    }
    .top nav a { font-size: 13.5px; }
    .top nav .btn { margin-left: auto; }
  }

  /* A grid item's automatic minimum is its content, so the hero's board could
     push its own column — and the whole page — wider than a phone screen. */
  .hero-grid > * { min-width: 0; }

  @media (max-width: 760px) {
    /* The headline's line breaks are set for a wide measure. On a phone they
       land mid-sentence and force the line past the screen edge; let it wrap. */
    h1 br { display: none; }
    .ticker .wrap { justify-content: flex-start; gap: 10px 26px; }
  }
