/* ==========================================================================
   Aymalloun Ride — theme.css
   Design tokens, resets and shared primitives.
   Palette: Kenyan red + charcoal + gold (see --brand-*).
   ========================================================================== */

:root {
  /* Brand — Kenyan flag red */
  --brand-950: #4A0A10;
  --brand-900: #7A1018;
  --brand-800: #96161F;
  --brand-700: #B01B24;
  --brand-600: #C1272D;
  --brand-500: #D9343A;
--brand-300: #EE8A8E;
--brand-200: #F6B7B9;
--brand-100: #FBD9DB;
--brand-50: #FEF2F3;
  --brand: #B01B24;
  --brand-hover: #96161F;
  --brand-text: #FFFFFF;

  /* Gold accent */
  --gold-700: #A67C00;
  --gold-600: #C79400;
  --gold-500: #E0A800;
  --gold-400: #F2B705;
  --gold-100: #FEF4D6;
  --gold-50: #FFFBEB;

  /* Success / verified — emerald */
  --ok-700: #0B5F3C;
  --ok-600: #0F7B4F;
  --ok-500: #17A268;
--ok-100: #D3F2E2;
--ok-200: #A7E9C9;
--ok-50: #ECFDF5;

  /* Info — deep blue */
  --info-700: #1D4ED8;
  --info-500: #3B82F6;
  --info-50: #EFF6FF;

  /* Warning */
  --warn-700: #B45309;
  --warn-500: #F59E0B;
  --warn-200: #FDE68A;
  --warn-100: #FEF3C7;
  --warn-50: #FFFBEB;

  /* Danger */
  --danger-700: #B91C1C;
  --danger-500: #EF4444;
  --danger-200: #FECACA;
  --danger-100: #FEE2E2;
  --danger-50: #FEF2F2;

  /* Charcoal neutrals */
  --ink: #14161A;
  --ink-soft: #33383F;
  --ink-muted: #667085;
  --ink-light: #98A2B3;
  --ink-faint: #C4CAD4;

  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-sunken: #F7F8FA;
  --surface-muted: #F2F4F6;
  --surface-inverse: #14161A;

  --line: #E6E8EC;
  --line-strong: #D2D6DD;

  /* Dark mode surfaces */
  --dark-bg: #0E1013;
  --dark-surface: #17191D;
  --dark-raised: #1E2126;
  --dark-muted: #23262C;
  --dark-line: #2C3037;
  --dark-text: #EDEFF2;
  --dark-text-muted: #9BA3AF;

  /* Shape */
  --r-sm: 10px;
  --r: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(20, 22, 26, 0.06);
  --sh-sm: 0 2px 8px rgba(20, 22, 26, 0.07);
  --sh: 0 6px 24px rgba(20, 22, 26, 0.09);
  --sh-lg: 0 18px 48px rgba(20, 22, 26, 0.14);
  --sh-brand: 0 8px 26px rgba(176, 27, 36, 0.28);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 860px;
  --gutter: 1.25rem;
  --header-h: 4.25rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.15s;
  --t: 0.22s;
  --t-slow: 0.5s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The UA's `[hidden] { display: none }` loses to any class that sets a
   display value, so hiding a grid or flex panel with the attribute silently
   does nothing. Any component that toggles panels needs this to win. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-100); color: var(--brand-900); }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface-sunken); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; border: 3px solid var(--surface-sunken); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* ==========================================================================
   Brand
   ========================================================================== */

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand-600), var(--brand-900));
  box-shadow: 0 4px 14px rgba(176, 27, 36, 0.32);
  flex-shrink: 0;
  overflow: hidden;
}
.brand__mark svg { width: 60%; height: 60%; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.04rem; letter-spacing: -0.025em; }
.brand__tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.container--narrow { width: min(100% - (2 * var(--gutter)), var(--container-narrow)); }
.container--wide { width: min(100% - (2 * var(--gutter)), 1400px); }

main { flex: 1 0 auto; }

.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: var(--gap, 0.75rem); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.row--top { align-items: flex-start; }
.spacer { flex: 1 1 auto; }
.center { text-align: center; }
.text-center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }

.grid { display: grid; gap: var(--gap, 1rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

.section { padding: 4.5rem 0; }
.section--muted { background: var(--surface-sunken); }
.section--tight { padding: 3rem 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.75rem;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.72); }
.eyebrow--pill {
  background: var(--brand-50);
  color: var(--brand-800);
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
  border: 1px solid var(--brand-100);
}

.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.75rem; }
.section-head__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.85rem; }
.section-head__sub { color: var(--ink-muted); font-size: 1.02rem; }

.lede { color: var(--ink-muted); font-size: 1.02rem; line-height: 1.7; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-align: center;
  transition: background var(--t-fast), color var(--t-fast),
    border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: var(--brand-text); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: var(--sh-brand); }

.btn--accent { background: var(--gold-400); color: var(--brand-950); }
.btn--accent:hover { background: var(--gold-500); }

.btn--ok { background: var(--ok-600); color: #fff; }
.btn--ok:hover { background: var(--ok-700); box-shadow: 0 8px 22px rgba(15, 123, 79, 0.26); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-muted); border-color: var(--ink-faint); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn--danger { background: var(--danger-50); color: var(--danger-700); border-color: #FCA5A5; }
.btn--danger:hover { background: var(--danger-500); color: #fff; border-color: var(--danger-500); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.83rem; }
.btn--lg { padding: 0.9rem 1.75rem; font-size: 0.98rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 0.55rem; border-radius: 50%; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 1.1rem; }
.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field__label .req { color: var(--brand-600); }
.field__hint { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.35rem; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.input::placeholder, .textarea::placeholder { color: var(--ink-light); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.input[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--danger-500);
}

.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1em;
}

.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger-500); }
.field__error { display: block; font-size: 0.78rem; color: var(--danger-700); margin-top: 0.35rem; font-weight: 600; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }

.input-group { position: relative; }
.input-group .input { padding-left: 2.75rem; }
.input-group__icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-light);
  pointer-events: none;
  display: flex;
}
.input-group__icon svg { width: 18px; height: 18px; }

.input-prefix {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 600;
  pointer-events: none;
}
.input-has-prefix { padding-left: 3.4rem !important; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.5;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 18px; height: 18px;
  margin-top: 0.1rem;
  accent-color: var(--brand-700);
  flex-shrink: 0;
  cursor: pointer;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.radio-card:hover { border-color: var(--brand-300); background: var(--brand-50); }
.radio-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-600); }
.radio-card input { accent-color: var(--brand-700); width: 18px; height: 18px; flex-shrink: 0; }
.radio-card__body { flex: 1; min-width: 0; }
.radio-card__title { font-weight: 700; font-size: 0.92rem; }
.radio-card__desc { font-size: 0.8rem; color: var(--ink-muted); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.card--flush { padding: 0; overflow: hidden; }
.card--pad-lg { padding: 2rem; }
.card--raised { box-shadow: var(--sh-sm); }
.card--interactive { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-strong); }

.card__title { font-size: 1.05rem; font-weight: 750; margin-bottom: 0.4rem; }
.card__desc { font-size: 0.88rem; color: var(--ink-muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
}
.panel__title { font-size: 0.95rem; font-weight: 750; }
.panel__body { padding: 1.4rem; }
.panel__foot { padding: 1rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface-sunken); }

/* ==========================================================================
   Badges & pills
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--brand  { background: var(--brand-50); color: var(--brand-800); }
.badge--gold   { background: var(--gold-50); color: var(--gold-700); }
.badge--ok     { background: var(--ok-50); color: var(--ok-700); }
.badge--info   { background: var(--info-50); color: var(--info-700); }
.badge--warn   { background: var(--warn-50); color: var(--warn-700); }
.badge--danger { background: var(--danger-50); color: var(--danger-700); }
.badge--neutral{ background: var(--surface-muted); color: var(--ink-muted); }
.badge--solid  { background: var(--brand); color: #fff; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.pill:hover { border-color: var(--brand-300); background: var(--brand-50); }
.pill svg { width: 15px; height: 15px; color: var(--brand-600); flex-shrink: 0; }
.pill--active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  background: var(--surface-muted);
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-soft);
}

/* ==========================================================================
   Avatars
   ========================================================================== */

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 750;
  color: #fff;
  background: var(--brand-700);
  flex-shrink: 0;
  overflow: hidden;
  text-transform: uppercase;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { width: 28px; height: 28px; font-size: 0.68rem; }
.avatar--sm { width: 34px; height: 34px; font-size: 0.74rem; }
.avatar--lg { width: 54px; height: 54px; font-size: 1.05rem; }
.avatar--xl { width: 76px; height: 76px; font-size: 1.4rem; }
.avatar--ring { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand-300); }

/* ==========================================================================
   Flash messages
   ========================================================================== */

.flashes { display: grid; gap: 0.6rem; margin-bottom: 1.25rem; }

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  border: 1px solid transparent;
  line-height: 1.55;
}
.flash svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem; }
.flash__body { flex: 1; min-width: 0; }
.flash__close { color: currentColor; opacity: 0.5; padding: 0; line-height: 1; }
.flash__close:hover { opacity: 1; }

.flash--success { background: var(--ok-50); color: var(--ok-700); border-color: var(--ok-100); }
.flash--error   { background: var(--danger-50); color: var(--danger-700); border-color: #FECACA; }
.flash--info    { background: var(--info-50); color: var(--info-700); border-color: #BFDBFE; }
.flash--warning { background: var(--warn-50); color: var(--warn-700); border-color: #FDE68A; }

.flash ul { margin-top: 0.4rem; padding-left: 1.1rem; list-style: disc; }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; font-size: 0.87rem; }
.table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-sunken); }
.table__num { text-align: right; font-variant-numeric: tabular-nums; }
.table__actions { display: flex; gap: 0.4rem; justify-content: flex-end; }

.table-empty { padding: 3rem 1.5rem; text-align: center; color: var(--ink-muted); }
.table-empty svg { width: 44px; height: 44px; margin: 0 auto 0.85rem; color: var(--ink-faint); }
.table-empty h4 { font-size: 0.98rem; margin-bottom: 0.35rem; color: var(--ink); }
.table-empty p { font-size: 0.86rem; max-width: 34ch; margin: 0 auto; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.3rem; flex-wrap: wrap; margin-top: 1.75rem; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
}
.pagination a:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-800); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }
.pagination .is-gap { border: 0; background: none; min-width: 24px; padding: 0; }

/* ==========================================================================
   Empty state
   ========================================================================== */

.empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--ink-muted);
}
.empty__icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink-light);
  display: grid;
  place-items: center;
}
.empty__icon svg { width: 28px; height: 28px; }
.empty h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4rem; }
.empty p { font-size: 0.9rem; max-width: 42ch; margin: 0 auto 1.25rem; }

/* ==========================================================================
   Progress
   ========================================================================== */

.progress { height: 8px; background: var(--surface-muted); border-radius: var(--r-pill); overflow: hidden; }
.progress__bar { height: 100%; background: var(--brand); border-radius: var(--r-pill); transition: width var(--t-slow) var(--ease); }
.progress__bar--ok { background: var(--ok-500); }
.progress__bar--gold { background: var(--gold-400); }

/* ==========================================================================
   Utility
   ========================================================================== */

.text-brand  { color: var(--brand-700); }
.text-ok     { color: var(--ok-600); }
.text-danger { color: var(--danger-700); }
.text-muted  { color: var(--ink-muted); }
.text-light  { color: var(--ink-light); }
.text-gold   { color: var(--gold-600); }
.text-sm     { font-size: 0.84rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.1rem; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }
.fw-900      { font-weight: 900; }
.tnum        { font-variant-numeric: tabular-nums; }
.fs-1 { font-size: 0.875rem; } .fs-2 { font-size: 0.8rem; } .fs-3 { font-size: 0.74rem; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.35rem; }
.mr-1 { margin-right: 0.35rem; }
.pt-2 { padding-top: 1rem; } .pb-2 { padding-bottom: 1rem; }
.w-full { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

.divider { height: 1px; background: var(--line); border: 0; }
.divider--v { width: 1px; height: auto; align-self: stretch; background: var(--line); }

/* ==========================================================================
   Shared chrome widgets

   Used by the landing layout *and* the portal/admin layout, so they live
   here rather than in landing.css (which the app layout does not load).
   ========================================================================== */

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { color: var(--brand-700); border-color: var(--brand-300); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.to-top {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 840;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--sh);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 19px; height: 19px; }

.status-dot { display: inline-flex; align-items: center; gap: 0.45rem; }
.status-dot__led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok-500);
  box-shadow: 0 0 6px var(--ok-500);
  animation: led-pulse 2.4s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--ok-500); }
  50%      { box-shadow: 0 0 14px var(--gold-400), 0 0 22px rgba(224, 168, 0, 0.4); }
}

/* Check-marked feature list — landing pricing cards and the rider's plan pages. */
.price-card__features { margin-bottom: 1.7rem; flex: 1; list-style: none; padding: 0; margin-inline: 0; }
.price-card__features li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.52rem;
  font-size: 0.85rem;
}
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.44rem;
  width: 8px; height: 5px;
  border-left: 2px solid var(--ok-600);
  border-bottom: 2px solid var(--ok-600);
  transform: rotate(-45deg);
}
.price-card--featured .price-card__features li::before { border-color: var(--gold-400); }

/* Disclosure list — landing FAQ and the rider support page. */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { flex: 1; }
.faq__answer { padding: 0 1.4rem 1.25rem; }
.faq__answer p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.68; max-width: 60ch; }

/* Bulleted feature list — landing "drive with us" and the driver application. */
.checklist { list-style: none; margin: 0 0 1.85rem; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background-color: var(--brand-600);
}
.checklist--light li { color: rgba(255, 255, 255, 0.88); }
.checklist--light li::before { background-color: var(--gold-400); }

/* Label/value rows for ride-plan options — landing pricing and rider plans. */
.plan-option-list { list-style: none; margin: 0.9rem 0 1.4rem; }
.plan-option-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}
.plan-option-list li:last-child { border-bottom: 0; }
.plan-option-list strong { font-weight: 800; }
.plan-option-list .muted { color: var(--ink-muted); font-size: 0.78rem; }
.price-card--featured .plan-option-list li { border-color: rgba(255, 255, 255, 0.16); }
.price-card--featured .plan-option-list .muted { color: rgba(255, 255, 255, 0.65); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-child { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-child.is-visible { opacity: 1; transform: none; }

/* Progressive enhancement: the layouts ship `no-js` on <html> and the inline
   head script swaps it for `js`. If scripting never runs, `no-js` survives and
   every .reveal section is forced visible, so content is never stranded. */
.no-js .reveal, .no-js .reveal-child { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-child { opacity: 1; transform: none; }
}

/* ==========================================================================
   Dark mode
   ========================================================================== */

[data-theme="dark"] {
  --ink: var(--dark-text);
  --ink-soft: #C7CCD4;
  --ink-muted: var(--dark-text-muted);
  --ink-light: #6E7784;
  --ink-faint: #4A515B;

  --surface: var(--dark-bg);
  --surface-raised: var(--dark-surface);
  --surface-sunken: #121417;
  --surface-muted: var(--dark-muted);

  --line: var(--dark-line);
  --line-strong: #3A3F48;

  --brand-50: rgba(176, 27, 36, 0.14);
  --brand-100: rgba(176, 27, 36, 0.24);
  --ok-50: rgba(15, 123, 79, 0.15);
  --ok-100: rgba(15, 123, 79, 0.28);
  --info-50: rgba(29, 78, 216, 0.15);
  --warn-50: rgba(180, 83, 9, 0.16);
  --danger-50: rgba(185, 28, 28, 0.16);

  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.45);
  --sh: 0 8px 28px rgba(0, 0, 0, 0.5);
  --sh-lg: 0 20px 52px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

[data-theme="dark"] img { opacity: 0.94; }

/* Respect the OS preference until the user picks a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: var(--dark-text);
    --ink-soft: #C7CCD4;
    --ink-muted: var(--dark-text-muted);
    --ink-light: #6E7784;
    --ink-faint: #4A515B;
    --surface: var(--dark-bg);
    --surface-raised: var(--dark-surface);
    --surface-sunken: #121417;
    --surface-muted: var(--dark-muted);
    --line: var(--dark-line);
    --line-strong: #3A3F48;
    --brand-50: rgba(176, 27, 36, 0.14);
    --brand-100: rgba(176, 27, 36, 0.24);
    --ok-50: rgba(15, 123, 79, 0.15);
    --ok-100: rgba(15, 123, 79, 0.28);
    --info-50: rgba(29, 78, 216, 0.15);
    --warn-50: rgba(180, 83, 9, 0.16);
    --danger-50: rgba(185, 28, 28, 0.16);
    color-scheme: dark;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .site-footer, .btn, .pagination, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .panel { border: 1px solid #ccc; box-shadow: none; }
}
