/* Delidr — driver recruitment site */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0a1b33;
  --ink-soft: #4f5b6f;
  --ink-faint: #8b95ab;
  --line: #e4e8f1;
  --line-soft: #eef1f7;
  --brand: #ff6a00;      /* logo orange — fills only; navy text on it (5.9:1) */
  --brand-dark: #c2410c; /* orange text/icons on white (5.2:1) */
  --brand-tint: #fff1e6;
  --danger: #d02f26;
  --ok: #0f8a54;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .1);

  --wrap: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

/* An explicit display rule would otherwise beat the UA stylesheet's [hidden]. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 2.95rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.05rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

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

/* ---------- logo ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo { display: block; height: 40px; width: auto; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 252, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: .75rem 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  transition: color .15s ease;
}

.site-nav a:hover { color: var(--ink); }

.site-header .btn-sm { margin-left: 1rem; }
.site-nav ~ .btn-sm { margin-left: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: .78rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease,
              box-shadow .15s ease, transform .06s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 6px 16px rgba(255, 106, 0, .24);
}

.btn-primary:hover {
  background: #ff8124;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 8px 22px rgba(255, 106, 0, .3);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { border-color: #cbd3e2; }

.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; padding: .9rem 1.4rem; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; box-shadow: none; }

/* ---------- layout ---------- */

main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem 5rem; }

.section { padding: 3.5rem 0; }

.section-head { max-width: 44ch; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: 3.5rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

/* The signup form sits in the hero so it is above the fold. */
.hero-form { position: relative; }
.hero-form .form-wrap { max-width: none; padding: 1.75rem; }
.hero-form .form-head { margin-bottom: 1.25rem; }
.hero-form .form-head h2 { font-size: 1.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 1.25rem;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(15, 138, 84, .16);
}

.lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 48ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink-soft);
  font-size: .93rem;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--ok);
}

/* earnings calculator — top-left on desktop, first on phones */

.hero { grid-template-rows: auto 1fr; row-gap: 2rem; } /* tall form's extra height goes to row 2 */
.hero-form { grid-column: 2; grid-row: 1 / span 2; }
.earn { grid-column: 1; grid-row: 1; }  /* calculator first, beside the form */
.hero-copy { grid-column: 1; grid-row: 2; }

.earn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 520px;
}

.earn-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.earn-head h2 { font-size: 1.05rem; margin: 0; }
/* "i" button: tooltip on hover, and on focus so it also opens with a tap or the keyboard */
.earn-info { position: relative; }
.earn-i {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--brand-dark); background: var(--surface); color: var(--brand-dark);
  font: italic 700 .8rem/1 Georgia, serif; cursor: help; padding: 0;
}
.earn-tip {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
  width: min(300px, 80vw); padding: .85rem 1rem;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  font-size: .82rem; line-height: 1.5;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.earn-tip b { display: block; margin-bottom: .3rem; }
.earn-info:hover .earn-tip, .earn-i:focus-visible + .earn-tip, .earn-i:focus + .earn-tip {
  opacity: 1; visibility: visible; transform: none;
}

.earn-week { margin: .5rem 0 1rem; color: var(--ink-soft); }
.earn-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; }
.earn-week output { font-size: 2.75rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.earn-amount small { font-size: .9rem; font-weight: 600; color: var(--brand-dark); }

.earn-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.earn input[type="range"] { width: 100%; margin: .75rem 0 .2rem; accent-color: var(--brand); }
/* 1-7 labels under the track; padding lines them up with the handle's centre */
.earn-ticks { display: flex; justify-content: space-between; padding: 0 5px; margin-bottom: 1.1rem; font-size: .75rem; color: var(--ink-faint); }
.earn-ticks span { width: 1ch; text-align: center; opacity: .55; }
.earn-ticks .on { color: var(--brand-dark); font-weight: 700; opacity: 1; }

.earn-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1.1rem; }
.earn-tiles div { background: var(--bg); border-radius: var(--radius-sm); padding: .7rem .85rem; }
.earn-tiles span { display: block; font-size: .78rem; color: var(--ink-faint); }
.earn-tiles b { font-size: 1.05rem; }
.earn-tiles small { display: block; margin-top: .15rem; font-size: .75rem; color: var(--brand-dark); }
.earn-tiles small span { display: inline; font-size: inherit; color: inherit; font-weight: 700; }

/* hero product preview */

.hero-visual { position: relative; }

.hero-glow {
  position: absolute;
  inset: 12% -8% -12% 8%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 106, 0, .22), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
  display: grid;
  gap: 1.1rem;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.app-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffa31a, #ff6a00);
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.app-name { margin: 0; font-weight: 600; font-size: .95rem; }
.app-meta { margin: 0; color: var(--ink-faint); font-size: .8rem; }

.app-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #e7f6ee;
  color: var(--ok);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .75rem;
  font-weight: 600;
}

.app-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.app-earnings {
  background: var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
}

.app-label {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.app-amount {
  margin: .15rem 0 .9rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.app-bars {
  display: flex;
  align-items: flex-end;
  gap: .45rem;
  height: 58px;
}

.app-bars span {
  flex: 1;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #ffa31a, #ff6a00);
  opacity: .9;
}

.app-bars span:last-child { background: linear-gradient(180deg, #ffd9b8, #ffbe85); }

.app-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
}

.app-pin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  position: relative;
  flex-shrink: 0;
}

.app-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, .18);
}

.app-row-title { margin: 0; font-weight: 600; font-size: .9rem; }
.app-row-sub { margin: 0; color: var(--ink-faint); font-size: .8rem; }

/* ---------- coverage ---------- */

.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.coverage-copy p { color: var(--ink-soft); max-width: 42ch; }

.borough-chips {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.borough-chips button {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.borough-chips button:hover,
.borough-chips button[aria-pressed="true"] {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.coverage-map {
  height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  z-index: 0; /* keep Leaflet's panes under the sticky header */
}
.coverage-map .leaflet-tooltip { font: 600 .82rem/1.2 inherit; color: var(--ink); }

/* ---------- skyline band ---------- */

.skyline {
  margin-top: -3rem; /* pull up against main's bottom padding */
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.skyline img {
  width: 100%;
  height: auto;
  min-height: 110px;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

/* ---------- feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  transition: box-shadow .18s ease, transform .18s ease;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--ink-soft); margin: 0; font-size: .94rem; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  margin-bottom: 1rem;
}

.card-icon svg { width: 22px; height: 22px; fill: var(--brand-dark); }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
}

.step p { color: var(--ink-soft); margin: 0; font-size: .94rem; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(255, 106, 0, .28);
}

/* ---------- form ---------- */

.form-section { scroll-margin-top: calc(var(--header-h) + 16px); padding: 1rem 0 3.5rem; }

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.form-head { margin-bottom: 1.5rem; }
.form-sub { color: var(--ink-soft); font-size: .9rem; margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.req { color: var(--danger); }
.optional { color: var(--ink-faint); font-weight: 400; }

.field input,
.field select {
  width: 100%;
  padding: .78rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfdff;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.field input::placeholder { color: #a9b2c5; }

/* Selects share the input chrome; the arrow is drawn so it matches everywhere. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2355617a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1.1rem;
  text-overflow: ellipsis;
}

.field select:invalid,
.field select option[value=""] { color: #a9b2c5; }
.field select option { color: var(--ink); }

.field select:disabled { cursor: default; color: #a9b2c5; }

/* Loading: the select itself shimmers until the lists arrive. */
.field-select.is-loading select {
  color: transparent;
  border-color: transparent;
  background-image: linear-gradient(100deg, #eef1f7 30%, #f7f9fc 50%, #eef1f7 70%);
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: shimmer 1.4s ease-in-out infinite;
}

.field-select.is-loading select::picker-icon { visibility: hidden; }

@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* Failed: the whole field becomes the retry target. */
.field-select.is-failed { cursor: pointer; }
.field-select.is-failed select { pointer-events: none; }
.field-select.is-failed:hover select { border-color: #cbd3e2; }

.field input:hover,
.field select:hover { border-color: #cbd3e2; }

.field input:focus,
.field select:focus {
  outline: none;
  background-color: #fff; /* not the shorthand — it would wipe the select's arrow */
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .16);
}

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

.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(208, 47, 38, .14);
}

.hint { color: var(--ink-faint); font-size: .82rem; margin: .4rem 0 0; }

.error {
  color: var(--danger);
  font-size: .82rem;
  font-weight: 500;
  margin: .35rem 0 0;
  min-height: 1em;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .18s ease, transform .18s ease;
}

.error.is-visible { opacity: 1; transform: none; }

#referral_code { text-transform: uppercase; letter-spacing: .04em; }
#referral_code::placeholder { text-transform: none; letter-spacing: normal; }

/* Custom picker (Chromium). Safari, Firefox and iOS keep the OS picker. */
@supports (appearance: base-select) {
  .field select,
  .field select::picker(select) {
    appearance: base-select;
  }

  .field select {
    display: flex;
    align-items: center;
    background-image: none;
    padding-right: .9rem;
  }

  .field select > button {
    all: unset;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 1.5em;
  }

  .field select selectedcontent {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .field select::picker-icon {
    content: "";
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: .5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2355617a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  }

  .field select:open::picker-icon { transform: rotate(180deg); }

  .field select::picker(select) {
    box-sizing: border-box;
    width: anchor-size(width);
    margin: .35rem 0;
    padding: .35rem;
    max-height: min(18rem, 45vh);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 18px 48px rgba(15, 23, 42, .14);
    opacity: 0;
    transform: translateY(-4px) scale(.98);
    transform-origin: top center;
    transition:
      display .18s allow-discrete,
      overlay .18s allow-discrete,
      opacity .18s ease,
      transform .18s cubic-bezier(.2, .8, .2, 1);
  }

  .field select:open::picker(select) {
    opacity: 1;
    transform: none;
  }

  @starting-style {
    .field select:open::picker(select) {
      opacity: 0;
      transform: translateY(-4px) scale(.98);
    }
  }

  /* The list scrolls inside the panel; a swipe never scrolls the page behind it. */
  .field select::picker(select) {
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* Phones: the picker becomes a bottom sheet — full width, big rows, easy thumb scroll. */
  @media (max-width: 560px) {
    .field select::picker(select) {
      position: fixed;
      position-area: none;
      position-anchor: none;
      inset: auto 0 0 0;
      width: auto;
      max-height: 60vh;
      margin: 0;
      padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0px));
      border: 0;
      border-radius: 18px 18px 0 0;
      background: rgba(255, 255, 255, .94);
      box-shadow: 0 -8px 40px rgba(15, 23, 42, .18);
      transform: translateY(100%);
      transform-origin: bottom center;
      transition:
        display .26s allow-discrete,
        overlay .26s allow-discrete,
        opacity .2s ease,
        transform .26s cubic-bezier(.2, .8, .2, 1);
    }

    .field select:open::picker(select) { transform: none; }

    @starting-style {
      .field select:open::picker(select) { transform: translateY(100%); }
    }

    /* A grab handle, like a sheet. */
    .field select::picker(select)::before {
      content: "";
      display: block;
      width: 36px;
      height: 5px;
      margin: .25rem auto .6rem;
      border-radius: 999px;
      background: #d5dae4;
    }

    .field select option {
      min-height: 52px;
      padding: .7rem .9rem;
      font-size: 1.05rem;
      border-radius: 10px;
    }
  }

  .field select option {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .55rem .75rem;
    border-radius: 8px;
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.3;
    white-space: normal;   /* long labels wrap instead of clipping */
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  .field select option[value=""] { display: none; }

  .field select option:hover,
  .field select option:focus-visible,
  .field select option:active {
    background: var(--brand-tint);
    outline: none;
  }

  .field select option:checked { font-weight: 600; }

  .field select option::checkmark {
    order: 1;
    margin-left: auto;
    color: var(--brand-dark);
    font-weight: 700;
  }

  .field select option:not(:checked)::checkmark { visibility: hidden; }
}

/* honeypot — off-screen, never focusable by humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin: .8rem 0 0; font-size: .9rem; min-height: 1.2em; text-align: center; color: var(--ink-soft); }
.form-status.is-error { color: var(--danger); font-weight: 500; }

.consent {
  color: var(--ink-faint);
  font-size: .8rem;
  text-align: center;
  margin: .75rem 0 0;
}

/* ---------- success ---------- */

.success { text-align: center; padding: 1.5rem 0 .5rem; }

.success-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e7f6ee;
  margin-bottom: 1rem;
}

.success-mark svg { width: 28px; height: 28px; fill: var(--ok); }
.success p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.4rem; }
.success .app-cta { color: var(--ink); margin-bottom: .75rem; }
.app-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.app-links .btn { flex: 1 1 180px; }

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: .75rem;
  max-width: 780px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--brand-dark);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  color: var(--ink-soft);
  font-size: .94rem;
  margin: .75rem 0 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
}

.footer-nav a:hover { color: var(--ink); }

.copyright {
  margin: 0 0 0 auto;
  color: var(--ink-faint);
  font-size: .88rem;
}

/* ---------- legal pages ---------- */

.legal { max-width: 780px; padding-top: 3rem; }

.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .4rem; }
.legal .updated { color: var(--ink-faint); font-size: .88rem; margin-bottom: 2.5rem; }

.legal h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 .6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--brand-dark); }

.legal .placeholder {
  background: #fff6e5;
  border: 1px solid #f2d9a8;
  color: #7a5a12;
  border-radius: 4px;
  padding: .05rem .35rem;
  font-size: .92em;
  font-weight: 600;
}

.legal table { margin-bottom: 1.5rem; font-size: .9rem; }
.legal table th, .legal table td { white-space: normal; vertical-align: top; }

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.legal-toc ol { margin: 0; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* ---------- admin ---------- */

.admin { max-width: 1240px; }

.admin-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 1.25rem;
}

.admin-head h1 { margin: 0; font-size: 1.75rem; }
.admin-count { color: var(--ink-soft); font-size: .9rem; margin: 0; }

.admin-actions { display: flex; gap: .6rem; margin-left: auto; }

/* token gate */

.gate { display: grid; place-items: center; padding: 3.5rem 0; }

.gate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.gate-card h1 { font-size: 1.4rem; margin-bottom: .35rem; }
.gate-card > p { color: var(--ink-soft); font-size: .93rem; margin-bottom: 1.25rem; }
.gate-card .field { margin-bottom: 1.25rem; }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table { border-collapse: collapse; width: 100%; font-size: .92rem; }

th, td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

th {
  background: #f8fafd;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  font-weight: 700;
}

td a { color: var(--ink); text-decoration: none; }
td a:hover { color: var(--brand-dark); text-decoration: underline; }

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfe; }

.empty { padding: 3rem; text-align: center; color: var(--ink-soft); margin: 0; }

.pill {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.muted { color: var(--ink-faint); }

/* form options editor */

.options-head { padding-top: 3rem; }
.options-head h2 { margin: 0; font-size: 1.35rem; }
.options-head .admin-count { flex-basis: 100%; }

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.options-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem 1.5rem;
}

.options-card h3 { margin: 0 0 .85rem; font-size: 1rem; }

/* Inset-grouped list: one rounded container, hairline separators, 44px rows. */
.options-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  overflow: hidden;
}

.options-row,
.options-empty {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: 0 .5rem 0 .9rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .93rem;
  box-sizing: border-box;
}

.options-list > :last-child { border-bottom: none; }

.options-empty { color: var(--ink-faint); font-size: .88rem; padding: .6rem .9rem; }

.options-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options-row.is-pending .options-label { color: var(--ink-faint); }

/* Remove is quiet until you reach for it; always visible on touch screens. */
.options-remove {
  flex: none;
  padding: .3rem .6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease, background-color .15s ease;
}

.options-row:hover .options-remove,
.options-row:focus-within .options-remove { opacity: 1; }

.options-remove:hover,
.options-remove:focus-visible { color: var(--danger); background: #fdf2f2; opacity: 1; }

@media (hover: none) {
  .options-remove { opacity: 1; }
}

.options-row.is-pending .options-remove { visibility: hidden; }

/* Inline confirmation replaces the row's contents. */
.options-row.is-confirming { background: #fff7f7; padding-top: .35rem; padding-bottom: .35rem; }
.options-row.is-confirming .options-label { display: none; }

/* Question first; the buttons drop to a second line when there's no room. */
.options-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem .5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.options-confirm[hidden] { display: none; }

.options-confirm-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 500;
}

.btn-xs { padding: .35rem .7rem; font-size: .82rem; border-radius: 7px; }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover { background: #b8271f; border-color: #b8271f; }

/* Row motion: height grows/collapses, content fades (heights set by JS). */
.options-row {
  transition: height .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, background-color .15s ease;
}

.options-row.is-animating {
  min-height: 0;
  border-bottom-width: 0;
  overflow: hidden;
}

.options-add { display: flex; flex-wrap: wrap; gap: .6rem; }

.options-add input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfdff;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.options-add input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .16);
}

.options-add .btn { min-height: 44px; }

.options-add .error { flex-basis: 100%; margin: 0; min-height: 0; }
.options-add .error:not(.is-visible) { height: 0; margin: 0; }

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0 3rem; }
  .hero-glow { inset: 12% 0 -12% 0; } /* the -8% overhang caused sideways scroll on phones */
  .hero-visual { max-width: 420px; }
  .hero-form { max-width: 560px; width: 100%; }
  .hero-form, .earn, .hero-copy { grid-column: auto; grid-row: auto; }
  .hero-copy { order: 1; } /* phones: calculator, form, then the intro copy */
  .earn { max-width: 560px; width: 100%; }
  .cards, .steps { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: 1fr; gap: 2rem; padding: 1.75rem; }
  .coverage-map { height: 300px; }
  .site-nav { display: none; }
  .header-inner .btn-sm { margin-left: auto; }
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select { min-height: 48px; font-size: 16px; }
  .form-wrap { padding: 1.35rem; border-radius: var(--radius); }
  main { padding: 0 1rem 3rem; }
  .header-inner { padding: .7rem 1rem; }
  .footer-inner { padding: 1.75rem 1rem; }
  .copyright { margin-left: 0; width: 100%; }
  .brand-logo { height: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- WhatsApp contact ---------- */

/* WhatsApp green with navy text: white on #25d366 is only 2:1. */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .22);
}
.wa-float:hover { background: #1fbe5a; }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; }

.success .wa-note { font-size: .92rem; margin-bottom: 1.2rem; }
.wa-note a { color: var(--brand-dark); font-weight: 600; }

@media (max-width: 560px) {
  .wa-float span { display: none; } /* icon only on phones */
  .wa-float { padding: .8rem; }
  .site-footer { padding-bottom: 4.5rem; } /* keep the footer clear of the button */
}
