@import url('/typography.css');
@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ol { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --ink: #202225; --muted: #676762; --paper: #f6f5f0; --line: #dcdbd4; --soft: #eeede7;
    --brand: #f4b400; --brand-hover: #dda300; --brand-soft: #fff3ce; --brand-strong: #805400;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { font-family: var(--font-app); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; }
  body:has(dialog[open]) { overflow: hidden; }
  button, input, select { color: var(--ink); }
  button { border: 0; }
  :focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; }
  ::selection { color: var(--ink); background: var(--brand); }
  h1, h2, h3 { font-weight: 500; letter-spacing: -.045em; line-height: 1.06; }
  h2 { font-size: clamp(34px, 3.5vw, 52px); }
  .shell { width: min(1360px, calc(100% - 96px)); margin-inline: auto; }
  .eyebrow { font-size: 10px; letter-spacing: .15em; line-height: 1.5; font-weight: 700; }
  .tiny-dot { width: 6px; height: 6px; display: inline-block; background: currentColor; border-radius: 50%; flex: 0 0 auto; }
  .small-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
  .skip-link { position: fixed; left: 16px; top: -100px; z-index: 5; background: #fff; padding: 12px 20px; }
  .skip-link:focus { top: 12px; }
}

@layer components {
  .site-header { height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
  .brand { display: inline-flex; align-items: center; gap: 9px; font-size: 29px; font-weight: 800; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
  .brand-mark { width: 48px; height: 36px; flex: 0 0 auto; }
  .desktop-nav { display: flex; align-items: center; gap: 16px; font-size: 13px; }
  .desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; font-weight: 600; transition: background-color .16s ease, color .16s ease, transform .16s ease; }
  .desktop-nav a:hover { background: var(--brand-soft); color: var(--ink); text-decoration: none; }
  .desktop-nav a:active { transform: translateY(1px); }
  .desktop-nav .nav-service-vehicle { width: 28px; height: 21px; object-fit: contain; flex: 0 0 auto; }
  .desktop-nav .nav-service-icon { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
  .desktop-nav .tiny-dot { width: 4px; height: 4px; vertical-align: top; margin-top: 2px; }
  .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
  .header-end { display: flex; gap: 25px; align-items: center; }
  .location { font-size: 11px; white-space: nowrap; }
  .location span { font-size: 17px; margin-right: 4px; }
  .button { display: inline-flex; gap: 22px; justify-content: space-between; align-items: center; padding: 15px 20px; font-size: 13px; line-height: 1.4; border-radius: 5px; min-height: 48px; font-weight: 600; transition: background .15s, transform .15s; }
  .button-primary { background: var(--brand); color: var(--ink); }
  .button-primary:hover { background: var(--brand-hover); }
  .button:active { transform: translateY(1px); }
  .button-small { padding: 12px 17px; min-height: 42px; font-size: 11px; }
  .button-full { width: 100%; }
  .button:disabled { background: #e8e7e2; color: #74746d; cursor: not-allowed; transform: none; }
  .text-link { display: inline-flex; gap: 24px; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; font-weight: 600; background: transparent; }
  h1 { font-size: clamp(60px, 6.5vw, 94px); line-height: .98; letter-spacing: -.065em; }
  h1 span { color: #70706a; }
  .service-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
  .service-tab-options { display: flex; flex: 2; min-width: 0; }
  .service-tabs button, .service-tabs > a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 12px; background: transparent; color: var(--muted); padding: 6px 12px 15px; border-bottom: 2px solid transparent; }
  .service-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand-strong); background: var(--brand-soft); font-weight: 700; }
  .service-tabs .service-vehicle-icon { width: 32px; height: 24px; object-fit: contain; flex: 0 0 auto; }
  .service-tabs .service-tab-icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
  .service-tabs .service-tab-label, .service-tabs .service-tab-arrow { margin: 0; }
  .service-tabs .service-tab-arrow { font-size: 13px; line-height: 1; }
  .card-heading h2 { font-size: 25px; letter-spacing: -.05em; }
  .card-heading p { color: var(--muted); font-size: 12px; margin-top: 8px; }
  .location-fields { position: relative; margin: 24px 0 16px; }
  .field { background: #f1f2ee; padding: 10px 34px 10px 32px; border-radius: 4px; border: 1px solid transparent; }
  .field:focus-within { border-color: var(--brand-strong); }
  .field + .field { margin-top: 8px; }
  .location-field { position: relative; }
  .location-field:last-child { margin-top: 8px; }
  .field label { display: block; font-size: 9px; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
  .field select, .field input[type="text"] { width: 100%; background: transparent; border: 0; border-radius: 0; font-size: 12px; min-height: 22px; padding: 0; }
  .field input[type="text"]::placeholder { color: var(--muted); opacity: .8; }
  .current-location-field strong { display: block; font-size: 12px; line-height: 1.35; font-weight: 600; }
  .current-location-field small { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; }
  .route-dot, .route-square { position: absolute; width: 7px; height: 7px; top: 28px; left: 13px; background: var(--brand-strong); }
  .route-dot { border-radius: 50%; }
  .swap-button { position: absolute; z-index: 1; right: 9px; top: calc(50% - 15px); width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 19px; }
  .booking-footnote { font-size: 9px; color: var(--muted); text-align: center; margin: 12px 0 19px; }
  .preview-label { margin-inline: -24px; border-top: 1px solid var(--line); padding: 13px 12px; display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 8px; letter-spacing: .055em; color: #62695e; }
  .preview-label .tiny-dot { width: 4px; height: 4px; background: var(--brand-strong); }
  .status-pill { display: inline-flex; font-size: 8px; font-weight: 600; letter-spacing: .07em; padding: 6px 9px; border: 1px solid #d2d6cd; border-radius: 20px; line-height: 1.5; }
  .planned-panel { min-height: 316px; }
  .planned-panel h2 { font-size: 30px; margin: 18px 0 15px; }
  .planned-panel > p:not(.small-note) { font-size: 13px; color: var(--muted); }
  .planned-panel .small-note { font-size: 10px; margin: 14px 0; }
  .planned-panel .text-link { margin-bottom: 18px; }
  .how-section { padding-block: 95px; display: grid; grid-template-columns: 1.05fr 1.8fr; gap: 80px; border-bottom: 1px solid var(--line); }
  .section-lead h2 { font-size: 35px; margin: 20px 0 18px; }
  .section-lead > p:last-child { color: var(--muted); font-size: 13px; max-width: 260px; }
  .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 8px; }
  .step-number { font-size: 10px; color: var(--ink); background: var(--brand); display: inline-flex; width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--brand); align-items: center; justify-content: center; margin-bottom: 43px; }
  .steps-grid h3 { font-size: 18px; letter-spacing: -.03em; margin-bottom: 12px; }
  .steps-grid p { font-size: 12px; color: var(--muted); line-height: 1.8; }
  .services-section { padding-block: 86px 96px; }
  .section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
  .section-row h2 { margin-top: 18px; }
  .section-row > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .service-card { border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; min-height: 370px; transition: background .2s; }
  .service-card:hover { background: #f0eee5; border-color: #c6a342; }
  .service-card-top { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; margin-bottom: 28px; }
  .service-card svg { width: 43px; height: 43px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
  .service-card h3 { font-size: 30px; margin-bottom: 15px; }
  .service-card p { color: var(--muted); font-size: 13px; max-width: 275px; margin-bottom: 30px; line-height: 1.7; }
  .service-card .text-link { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
  .connected-section { padding-block: 95px; }
  .connected-section > h2 { margin-top: 18px; }
  .connected-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px; margin-top: 50px; }
  .connected-grid article > span { display: inline-block; font-size: 28px; color: var(--brand-strong); margin-bottom: 23px; }
  .connected-grid h3 { font-size: 21px; margin-bottom: 13px; }
  .connected-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 310px; }
  .site-footer { display: flex; justify-content: space-between; gap: 35px; align-items: center; padding-block: 35px; border-top: 1px solid var(--line); font-size: 12px; }
  .site-footer > p, .site-footer > div > p { color: var(--muted); }
  .site-footer > div { text-align: right; }
  .site-footer > div > p { font-size: 10px; margin-top: 8px; }
  .noscript-note { padding: 20px; background: #fff; text-align: center; }

  /* Accessible native dialog; fare controls share the tested domain module. */
  dialog { width: min(840px, calc(100% - 40px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 10px; padding: 30px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px #0004; }
  dialog::backdrop { background: #202225a6; backdrop-filter: blur(5px); }
  .dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
  .dialog-heading h2 { font-size: 34px; margin-top: 12px; }
  .icon-button { font-size: 28px; width: 42px; height: 42px; background: var(--soft); border-radius: 50%; flex: 0 0 auto; }
  .dialog-description { color: var(--muted); font-size: 12px; margin: 16px 0 25px; max-width: 640px; line-height: 1.7; }
  .negotiation-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 28px; }
  .trip-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; align-self: start; }
  .summary-route { margin-top: 22px; font-size: 19px; letter-spacing: -.025em; }
  .summary-route span { color: #9aa294; font-size: 16px; display: block; margin-block: 8px; }
  .suggested-price { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; display: flex; flex-direction: column; }
  .suggested-price > span { font-size: 12px; color: var(--muted); }
  .suggested-price strong { font-size: 32px; letter-spacing: -.04em; font-weight: 500; margin-block: 3px; }
  .suggested-price small { font-size: 10px; color: var(--muted); line-height: 1.7; }
  .privacy-note { display: flex; gap: 10px; margin-top: 25px; font-size: 10px; color: var(--muted); }
  .privacy-note > span { font-size: 20px; }
  .role-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; margin-bottom: 18px; }
  .role-switch { padding: 4px; background: var(--soft); display: flex; border-radius: 5px; gap: 3px; }
  .role-switch button { font-size: 11px; padding: 9px 14px; background: transparent; border-radius: 3px; color: var(--muted); }
  .role-switch button[aria-pressed="true"] { background: var(--brand); color: var(--ink); box-shadow: 0 1px 4px #0001; }
  .current-offer { border: 1px solid var(--line); padding: 18px; border-radius: 5px; }
  .current-offer > span { font-size: 9px; letter-spacing: .07em; color: var(--muted); }
  .current-offer > strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.045em; margin-block: 6px; }
  .current-offer > p { font-size: 11px; color: var(--muted); }
  .expiry-note { min-height: 26px; padding-top: 5px; font-size: 10px; color: var(--muted); }
  #offer-form { margin-top: 22px; }
  #offer-form label { display: block; font-size: 12px; margin-bottom: 7px; font-weight: 600; }
  .offer-input-row { display: flex; gap: 8px; }
  .offer-input-row input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; background: var(--paper); font-size: 16px; }
  .offer-input-row .button { flex: 0 0 auto; gap: 10px; font-size: 11px; padding-inline: 14px; }
  #offer-consent { font-size: 10px; margin-top: 9px; }
  .error-text { color: #992c20; font-size: 12px; }
  .error-text:empty { display: none; }
  .error-text:not(:empty) { margin-block: 12px; }
  .muted-link { font-size: 11px; color: var(--muted); margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
  .history-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; }
  .history-section h3 { font-size: 14px; letter-spacing: -.02em; margin-bottom: 12px; }
  .history-section ol { list-style: none; padding: 0; max-height: 145px; overflow-y: auto; }
  .history-section li { font-size: 11px; color: var(--muted); padding: 8px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #eceee8; }
  .history-section li strong { color: var(--ink); font-weight: 500; white-space: nowrap; }
  .negotiation-result { text-align: center; padding: 18px 5px; }
  .result-symbol { display: inline-flex; justify-content: center; align-items: center; height: 50px; width: 50px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 50%; font-size: 23px; color: var(--brand-strong); margin-bottom: 20px; }
  .negotiation-result h3 { font-size: 27px; }
  .negotiation-result > strong { font-size: 45px; letter-spacing: -.06em; display: block; margin-block: 16px; font-weight: 500; }
  .negotiation-result > p { color: var(--muted); font-size: 12px; max-width: 310px; margin: 10px auto; }
  .negotiation-result .button { margin-top: 18px; }
}

@layer responsive {
  @media (max-width: 1100px) {
    .shell { width: calc(100% - 56px); }
    .desktop-nav { gap: 19px; font-size: 12px; }
    .header-end { gap: 15px; }
    .location { display: none; }
    .how-section { gap: 35px; grid-template-columns: .95fr 1.3fr; }
    .steps-grid { gap: 19px; }
    .section-lead h2 { font-size: 30px; }
    .service-card { padding: 22px; }
    .service-card .status-pill { font-size: 7px; }
    .service-card h3 { font-size: 27px; }
  }
  @media (max-width: 800px) {
    .site-header { height: 80px; }
    .desktop-nav { display: none; }
    h1 { font-size: 66px; }
    .how-section { display: block; padding-block: 60px; }
    .section-lead h2 { font-size: 36px; }
    .section-lead > p:last-child { max-width: none; }
    .steps-grid { margin-top: 35px; gap: 30px; }
    .step-number { margin-bottom: 22px; }
    .services-section, .connected-section { padding-block: 65px; }
    .section-row { gap: 25px; }
    .section-row > p { font-size: 11px; }
    .services-grid { gap: 12px; }
    .service-card { padding: 18px 16px; }
    .service-card .status-pill { font-size: 6px; padding-inline: 6px; }
    .service-card h3 { font-size: 23px; }
    .service-card p { font-size: 11px; }
    .service-card .text-link { font-size: 11px; gap: 12px; }
    .connected-grid { gap: 25px; }
    .connected-grid h3 { font-size: 18px; }
    .connected-grid p { font-size: 12px; }
    .negotiation-layout { grid-template-columns: 190px minmax(0,1fr); gap: 20px; }
    .trip-summary { padding: 18px; }
  }
  @media (max-width: 580px) {
    .shell { width: calc(100% - 36px); }
    .site-header { height: 73px; }
    .brand { font-size: 26px; gap: 7px; }
    .brand-mark { width: 40px; height: 30px; }
    .button-small { font-size: 10px; padding: 10px 13px; gap: 15px; }
    h1 { font-size: clamp(58px, 14vw, 78px); }
    .service-tabs { margin-bottom: 20px; }
    .field select { font-size: 16px; height: 26px; }
    .field label { font-size: 10px; }
    .field { padding-left: 33px; }
    .route-dot, .route-square { top: 30px; }
    .how-section { padding-block: 50px; }
    .section-lead h2 { font-size: 34px; }
    .steps-grid { grid-template-columns: 1fr; gap: 22px; }
    .steps-grid article { position: relative; padding-left: 49px; }
    .step-number { position: absolute; left: 0; top: 0; }
    .steps-grid p { max-width: 290px; }
    .section-row { display: block; }
    .section-row > p { margin-top: 20px; font-size: 12px; }
    h2 { font-size: 35px; }
    .services-section { padding-block: 50px; }
    .services-grid { grid-template-columns: 1fr; gap: 15px; }
    .service-card { padding: 25px; min-height: auto; }
    .service-card-top { flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 25px; gap: 15px; }
    .service-card .status-pill { font-size: 8px; padding: 6px 9px; }
    .service-card h3 { font-size: 31px; }
    .service-card p { font-size: 13px; margin-bottom: 25px; }
    .service-card .text-link { font-size: 13px; }
    .connected-section { padding-block: 55px; }
    .connected-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 35px; }
    .connected-grid article { border-top: 1px solid var(--line); padding-top: 24px; }
    .connected-grid article > span { margin-bottom: 15px; }
    .connected-grid h3 { font-size: 23px; }
    .connected-grid p { font-size: 13px; }
    .site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 20px; padding-block: 28px; }
    .site-footer > p { font-size: 10px; text-align: right; }
    .site-footer > div { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
    .site-footer > div > p { margin-top: 0; font-size: 9px; }
    .site-footer > div > a { font-size: 11px; }
    dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 21px 17px; }
    .dialog-heading h2 { font-size: 27px; }
    .dialog-heading .eyebrow { font-size: 8px; }
    .icon-button { width: 35px; height: 35px; }
    .dialog-description { font-size: 11px; margin: 14px 0 18px; }
    .negotiation-layout { grid-template-columns: 1fr; gap: 20px; }
    .trip-summary { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 15px; }
    .trip-summary > .eyebrow { grid-column: 1 / -1; font-size: 8px; }
    .summary-route { font-size: 15px; margin-top: 0; }
    .summary-route span { margin-block: 3px; font-size: 12px; }
    .suggested-price { border: 0; padding: 0; margin: 0; }
    .suggested-price strong { font-size: 26px; }
    .suggested-price > span { font-size: 10px; }
    .suggested-price small { font-size: 9px; }
    .privacy-note { grid-column: 1 / -1; margin-top: 3px; font-size: 9px; align-items: center; }
    .offer-input-row .button { font-size: 12px; }
    .role-row { margin-bottom: 13px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
}

/* Server-verified Paystack test checkout, shared by rides and Eats. */
.checkout-payment { overflow-wrap:anywhere; }
.checkout-payment > h2 { font-size:26px; margin:0 0 12px; }
.checkout-payment > p { margin:12px 0; }
.checkout-payment-status { font-weight:700; }
.checkout-payment-test-note { padding:12px 14px; background:#fff3ce; border-left:3px solid #f4b400; font-size:12px; font-weight:650; }
.checkout-payment-total { font-size:22px; font-weight:750; }
.checkout-payment-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.checkout-payment .error-text:empty { display:none; }
@media(max-width:480px) { .checkout-payment-actions > .button { width:100%; justify-content:center; } }

/* Taxi ai wordmark: bold rounded upright ai with a yellow dot. */
a.brand span.brand-ai { display: inline-block; width: .98em; height: 1em; margin-inline-start: .16em; vertical-align: -.12em; font-style: normal; line-height: 1; color: inherit; background: none; border: 0; padding: 0; flex: 0 0 auto; }
a.brand span.brand-ai > svg.brand-ai-glyph { display: block; width: 100%; height: 100%; overflow: visible; fill: none; }
.brand .brand-wordmark { white-space: nowrap; }
