:root {
  --bg: #fbf7f0;
  --bg-2: #f3ece0;
  --card: #ffffff;
  --ink: #1b1f24;
  --ink-2: #3a4048;
  --muted: #6b7079;
  --rule: #e6dccb;
  --accent: #ff5a1f;        /* runner orange */
  --accent-deep: #d9430e;
  --accent-soft: #ffe6da;
  --teal: #0f6e66;
  --teal-soft: #d8f0ec;
  --wa: #1fa855;
  --wa-deep: #168a45;
  --warn: #9a5b00;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(27 31 36 / .06), 0 14px 30px -18px rgb(27 31 36 / .35);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171b; --bg-2: #1b1f24; --card: #20252b; --ink: #f2eee8; --ink-2: #d4cfc7; --muted: #9aa0a8;
    --rule: #2f353c; --accent-soft: #3a2015; --teal: #5fd1c4; --teal-soft: #173431; --warn: #f0b54a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171b; --bg-2: #1b1f24; --card: #20252b; --ink: #f2eee8; --ink-2: #d4cfc7; --muted: #9aa0a8;
  --rule: #2f353c; --accent-soft: #3a2015; --teal: #5fd1c4; --teal-soft: #173431; --warn: #f0b54a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.15rem var(--font-display); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { color: var(--accent); display: grid; }
.top-nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: .95rem; }
.top-nav > a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.top-nav .btn { white-space: nowrap; }
@media (max-width: 560px) { .top-nav > a:not(.btn) { display: none; } .brand { font-size: 1rem; } .top-nav .btn { padding: 7px 12px; font-size: .82rem; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---- Hero ---- */
main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: clamp(32px, 7vw, 88px) 0 48px;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: 14px; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: -6px; bottom: .06em; height: .16em;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 22px);
  border-radius: 4px; opacity: .45;
}
.lead { margin-top: 20px; font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }

/* ---- Quote card ---- */
.quote {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow);
  display: grid; gap: 14px;
}
.quote-title { font-size: 1.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--rule);
  background: var(--bg); color: var(--ink); font: 600 .9rem var(--font-body); cursor: pointer;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field[hidden] { display: none; }
select, input[type="text"] {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--rule); background: var(--bg); color: var(--ink);
  font: 500 1rem var(--font-body);
}
select:focus, input:focus { border-color: var(--teal); outline: none; }
.estimate {
  display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap;
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px;
}
.est-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); }
.est-price { font: 800 2rem var(--font-display); letter-spacing: -0.02em; }
.est-break { font-size: .82rem; color: var(--ink-2); text-align: right; max-width: 22em; }
.fine { font-size: .8rem; color: var(--muted); }

/* ---- How ---- */
.how ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0;
}
@media (max-width: 760px) { .how ol { grid-template-columns: 1fr; } }
.how li { display: flex; gap: 14px; align-items: start; }
.how b {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); font: 800 1rem var(--font-display);
}
.how h3 { font-size: 1.05rem; margin-bottom: 4px; }
.how p { color: var(--muted); font-size: .92rem; }

/* ---- Runners ---- */
.runners { padding: 56px 0 24px; scroll-margin-top: 70px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin-bottom: 22px; }
.field-inline { min-width: 160px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; cursor: pointer; padding: 10px 0; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card-head { display: flex; gap: 12px; align-items: center; }
.avatar {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-2); display: grid; place-items: center;
  font: 800 1.1rem var(--font-display); color: var(--ink-2); overflow: visible;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.is-online::after {
  content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--wa); border: 2.5px solid var(--card);
}
.card-id { flex: 1; min-width: 0; }
.card-id h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.status.on { color: var(--wa-deep); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.on { color: #4fd388; } }
.tag { font: 700 .7rem var(--font-body); padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.tag-verified { background: var(--teal-soft); color: var(--teal); }
.tag-sample { background: var(--bg-2); color: var(--muted); border: 1px dashed var(--muted); align-self: start; }
.bio { color: var(--ink-2); font-size: .94rem; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.meta dd { margin: 2px 0 0; font-weight: 600; font-size: .9rem; }
.areas { display: flex; flex-wrap: wrap; gap: 6px; }
.areas span { font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.areas span.hit { background: var(--teal); color: #fff; }
.does { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.does li { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-2); font-size: 1rem; opacity: .65; }
.does li.hit { opacity: 1; background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.warn { font-size: .82rem; color: var(--warn); font-weight: 600; }
.card .btn-wa { margin-top: auto; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1.5px dashed var(--rule); border-radius: var(--radius); }
.runners > .fine { margin-top: 18px; }

/* ---- Join ---- */
.join {
  margin: 56px 0 72px; padding: clamp(24px, 5vw, 48px);
  background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) + 6px);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center;
  scroll-margin-top: 70px;
}
@media (max-width: 880px) { .join { grid-template-columns: 1fr; } }
.join .eyebrow { color: #ff9a6e; }
.join h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.join-copy p:last-child { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan-hot { outline: 3px solid var(--accent); }
.plan-flag { position: absolute; top: -12px; right: 16px; background: var(--accent); color: #fff; font: 700 .75rem var(--font-body); padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; }
.plan-price { font: 800 2.2rem var(--font-display); letter-spacing: -0.02em; }
.plan-price span { font: 500 .95rem var(--font-body); color: var(--muted); }
.plan ul { margin: 0 0 6px; padding-left: 18px; color: var(--ink-2); font-size: .93rem; display: grid; gap: 4px; }
.plan .btn { margin-top: auto; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--rule); padding: 24px clamp(16px, 4vw, 48px); color: var(--muted); font-size: .85rem; text-align: center; }

/* ---- Runner / Driver switch ---- */
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; }
.mode button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 700 1rem var(--font-body); cursor: pointer;
}
.mode button small { font-weight: 500; font-size: .78rem; color: var(--muted); }
.mode button[aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.mode button[aria-checked="true"] small { color: rgb(255 255 255 / .8); }
.tag-ladies { background: #fde3ef; color: #a2195c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-ladies { background: #3d1828; color: #ff9cc8; } }

/* ---- List / Map toggle ---- */
.sec-head { align-items: end; }
.view-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border-radius: 999px; }
.view-toggle button { border: 0; background: transparent; color: var(--ink-2); font: 700 .9rem var(--font-body); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.map-wrap { display: grid; gap: 10px; }
.map { height: 440px; border-radius: var(--radius); border: 1px solid var(--rule); overflow: hidden; z-index: 0; }
@media (max-width: 560px) { .map { height: 380px; } }
.pin {
  transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink-2); border-radius: 999px;
  padding: 3px 10px 3px 3px; font: 600 .78rem var(--font-body); box-shadow: var(--shadow); cursor: pointer;
}
.pin b { min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--ink-2); color: var(--bg); font-size: .8rem; }
.pin-on { border-color: var(--wa); } .pin-on b { background: var(--wa); color: #fff; }
.pin-empty { opacity: .55; }
.pin-sel { outline: 3px solid var(--accent); }

/* ---- Card footer: reviews + report ---- */
.card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: -4px; }
.linkish { background: none; border: 0; padding: 4px 0; font: 600 .85rem var(--font-body); color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish.muted { color: var(--muted); }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ---- Dialogs (review, reviews list, report) ---- */
.sheet {
  border: 0; border-radius: var(--radius); padding: 22px; width: min(440px, calc(100% - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45);
}
.sheet::backdrop { background: rgb(0 0 0 / .5); }
.sheet form, .sheet[open] { display: grid; gap: 12px; }
.sheet h2 { font-size: 1.35rem; }
.sheet .small { font-size: .88rem; }
.sheet-row { display: flex; justify-content: space-between; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2.6rem; line-height: 1; color: var(--rule); cursor: pointer; transition: color .1s, transform .1s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #f5a623; }
.star-pick input:focus-visible + label { outline: 3px solid var(--teal); border-radius: 6px; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 55vh; overflow: auto; }
.review-list li { border-bottom: 1px solid var(--rule); padding-bottom: 10px; display: grid; gap: 2px; }
.review-list li p { margin: 4px 0 0; color: var(--ink-2); }
.stars { color: #f5a623; letter-spacing: 1px; }
.stars span { color: var(--rule); }
.small { font-size: .85rem; }
.flash {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 1000;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.flash.show { opacity: 1; transform: translate(-50%, 0); }
.foot p + p { margin-top: 8px; }
.foot a { color: var(--ink-2); }

/* ---- Illustrations ---- */
.hero-art { margin: 28px 0 0; }
.hero-art img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 880px) { .hero-art img { max-height: 260px; } }
.empty-art { display: grid; justify-items: center; gap: 12px; }
.empty-art img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.join-banner { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 22px; }

/* ---- Busy status ---- */
.status.busy { color: #b26b00; font-weight: 600; }
.avatar.is-busy::after {
  content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%;
  background: #f0a20b; border: 2.5px solid var(--card);
}

/* ---- Posted job panel ---- */
.job-panel {
  margin: 0 auto 8px; max-width: 720px; background: var(--card); border: 2px solid var(--rule);
  border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow); scroll-margin-top: 80px;
}
.job-panel.is-open { border-color: var(--accent); }
.job-panel.is-taken { border-color: var(--wa); }
.job-panel h2 { font-size: 1.3rem; }
.job-summary { font-weight: 700; color: var(--ink-2); }
.job-wait { display: flex; gap: 14px; align-items: center; }
.pulse { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--accent); animation: ping 1.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
.job-taken { display: flex; gap: 14px; align-items: center; }
.job-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.post-summary { background: var(--accent-soft); padding: 12px 14px; border-radius: var(--radius-sm); }

/* ---- One plan ---- */
.plans-one { grid-template-columns: 1fr; max-width: 420px; width: 100%; justify-self: end; }
@media (max-width: 880px) { .plans-one { justify-self: stretch; max-width: none; } }
.plan-line { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.agree { align-items: start; padding: 4px 0; }
.agree a { color: var(--teal); }
