:root {
  --navy: #14213d;
  --navy-2: #1f3263;
  --gold: #fca311;
  --gold-dark: #e08e00;
  --ink: #1b1f2a;
  --muted: #5d6475;
  --line: #e3e6ee;
  --bg: #f5f6fa;
  --white: #fff;
  --wa: #25d366;
  --wa-dark: #1da851;
  --red: #c62828;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
a { color: var(--navy-2); }

/* Hero */
.hero {
  background: radial-gradient(120% 90% at 100% 0%, #2b3f78 0%, var(--navy) 55%);
  color: #fff;
  padding: 22px 0 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.brand img { border-radius: 10px; }
.hero h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.1; margin: 34px 0 12px; letter-spacing: -.5px; }
.lead { color: #d5dcf0; margin: 0 0 22px; font-size: 16.5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .08s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: transparent; margin-left: 6px; }
.btn-ghost-dark { color: var(--navy); background: transparent; border: 1.5px solid var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Offers */
.offers { display: grid; gap: 12px; margin-top: -40px; }
.offer {
  display: flex; gap: 16px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.offer-big {
  flex: 0 0 76px; height: 76px; border-radius: 14px;
  background: #fff4e0; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; line-height: 1;
}
.offer-big small { font-size: 13px; font-weight: 700; color: var(--gold-dark); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.offer h2 { font-size: 17px; margin: 0 0 2px; }
.offer p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Sections */
.section-title { font-size: 22px; margin: 0 0 14px; letter-spacing: -.2px; }
.how { padding: 30px 2px 6px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.steps li::before {
  content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps li { align-items: center; }
.steps b { color: var(--ink); }
.note { margin: 16px 0 0; padding: 12px 14px; background: #fff4e0; border-radius: 12px; font-size: 14.5px; color: #6b4a00; }

.card { background: var(--white); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); margin-top: 24px; scroll-margin-top: 16px; }

/* Form */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 500; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
  -webkit-appearance: none; appearance: none; min-height: 50px;
}
input[type="date"], input[type="time"] { display: block; }
input:focus, textarea:focus { outline: none; border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 3px rgba(31,50,99,.12); }
input.invalid, textarea.invalid { border-color: var(--red); }
textarea { resize: vertical; min-height: 90px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row .field { min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px;
  border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; background: #fbfcfe;
}
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,50,99,.25); }
.hp { position: absolute; left: -9999px; }
.form-error { background: #fdecec; color: var(--red); padding: 10px 14px; border-radius: 10px; font-size: 14.5px; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); margin-top: -4px; }

/* Success */
.success { text-align: center; padding: 8px 0; }
.success .btn { margin-top: 10px; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.success h3 { margin: 0 0 6px; font-size: 22px; }
.success p { color: var(--muted); margin: 0 0 8px; }

/* Ride card */
.card-form { display: flex; gap: 8px; }
.card-form input { flex: 1; min-width: 0; }
.card-form .btn { flex: 0 0 auto; }
.stamp-wrap { margin-top: 18px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed #c9cfdd;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #a4abbd; font-size: 15px;
}
.stamp.on { border: 0; background: var(--navy); color: var(--gold); font-size: 20px; }
.stamp.free { border-color: var(--gold); color: var(--gold-dark); font-size: 12px; text-transform: uppercase; }
.stamp.free.ready { background: var(--gold); color: var(--navy); border-style: solid; }
.stamp-msg { text-align: center; font-weight: 600; margin: 14px 0 0; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 8px; }
.facts div { background: var(--white); border-radius: 14px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.facts span { font-size: 24px; }
.facts b { font-size: 14px; margin-top: 4px; }
.facts small { color: var(--muted); font-size: 12px; }

.footer { text-align: center; color: var(--muted); padding-top: 18px; padding-bottom: 40px; font-size: 14px; }
.muted-link { color: #a4abbd; }

@media (max-width: 360px) {
  .btn-ghost { margin-left: 0; margin-top: 8px; }
}

/* Admin */
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #e8ebf3; padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.tabs button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.booking { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.booking.done { opacity: .65; }
.booking.cancelled { opacity: .45; }
.booking .when { font-weight: 800; color: var(--navy); }
.booking .who { font-weight: 600; }
.booking .route { color: var(--muted); font-size: 14.5px; margin: 6px 0; }
.booking .meta { font-size: 13px; color: var(--muted); }
.booking .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.booking .actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e8ebf3; color: var(--navy); }
.pill.new { background: #fff4e0; color: #8a5a00; }
.pill.done { background: #e3f7ea; color: #1b7a3d; }
.pill.free { background: var(--gold); color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
