/* ForeroTeam — map-driven landing (sandbox). Brand: off-white / black / red. */
:root {
  --red: #d11a1a;
  --red-dark: #a31313;
  --red-soft: rgba(209, 26, 26, 0.10);
  --bg: #f7f5f2;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --border: #e6e3df;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.16);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 1px solid transparent; border-radius: 999px;
  padding: .7em 1.35em; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  background: var(--surface); color: var(--text);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(209,26,26,.28); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(209,26,26,.34); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-lg { font-size: 1.1rem; padding: .85em 1.7em; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.15rem;
  background: rgba(247,245,242,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 900; letter-spacing: .5px; font-size: 1.2rem; }
.brand span { color: var(--red); }
.brand small { display:block; font-size:.62rem; font-weight:600; letter-spacing:2px; color:var(--muted); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

/* Language toggle */
.lang-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-btn { border: none; background: transparent; padding: .4em .75em; font-weight: 800; font-size: .82rem; color: var(--muted); cursor: pointer; transition: all .15s ease; }
.lang-btn.active { background: var(--red); color: #fff; }
@media (max-width: 380px) { .lang-btn { padding: .4em .6em; } }

/* Honeypot — visually hidden, off-screen; real users never see it */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* --- Hero --- */
.hero {
  text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1.15rem 2rem;
  max-width: 720px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; letter-spacing: -1px; }
.hero .accent { color: var(--red); }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 1rem auto 1.8rem; max-width: 34ch; }

/* --- Map section --- */
.map-section { max-width: 1080px; margin: 0 auto; padding: 1rem 1.15rem 3rem; }
.section-title { text-align: center; font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; }
.section-sub { text-align: center; color: var(--muted); margin: .5rem auto 1.6rem; max-width: 40ch; }
.map-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
@media (max-width: 820px) { .map-layout { grid-template-columns: 1fr; } }
#leaflet {
  height: 460px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); z-index: 1;
}
@media (max-width: 820px) { #leaflet { height: 340px; } }

/* --- Side panel --- */
.map-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.panel-hint { color: var(--muted); font-size: .95rem; }
.panel-hint b { color: var(--text); }

.zip-tool label { font-weight: 700; display: block; margin-bottom: .5rem; }
.zip-row { display: flex; gap: .5rem; }
.zip-row input {
  flex: 1; padding: .7em .9em; font-size: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
.zip-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.zip-result { margin-top: .8rem; font-size: .95rem; min-height: 1.2em; }
.zip-result.ok { animation: fadeUp .35s ease both; }
.zip-card {
  background: var(--red-soft); border: 1px solid rgba(209,26,26,.2);
  border-radius: var(--radius-sm); padding: .8rem .9rem; margin-top: .6rem;
}
.zip-card b { font-size: 1.15rem; }

/* Zone list (under the ZIP tool) */
.zone-list { display:flex; flex-direction:column; gap:.5rem; }
.zone-list-item {
  display:flex; align-items:center; gap:.7rem; width:100%; text-align:left;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding:.65rem .8rem; transition: all .15s ease;
}
.zone-list-item:hover { border-color: var(--text); transform: translateX(2px); }
.zone-list-item.active { border-color: var(--red); background: var(--red-soft); }
.zone-list-item .zli-dot { width:11px; height:11px; border-radius:50%; background: var(--red); flex:none; }
.zone-list-item.hub .zli-dot { background:#111; }
.zone-list-item .zli-text { display:flex; flex-direction:column; flex:1; line-height:1.2; }
.zone-list-item .zli-text small { color: var(--muted); font-size:.78rem; }
.zone-list-item .zli-go { color: var(--muted); font-size:1.3rem; font-weight:700; }

.zone-info { animation: fadeUp .35s ease both; }
.zone-info .zi-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: .25em .7em; border-radius: 999px;
  background: var(--red-soft); color: var(--red-dark);
}
.zone-info h3 { font-size: 1.5rem; margin: .5rem 0 .2rem; }
.zone-info .zi-dist { color: var(--muted); margin-bottom: .3rem; }
.zi-metric { display:flex; align-items:baseline; gap:.4rem; margin:.9rem 0; }
.zi-metric b { font-size: 1.6rem; color: var(--red); }
.divider { height: 1px; background: var(--border); border: 0; margin: .2rem 0; }

/* --- Zone (work) page --- */
.zone-page { max-width: 860px; margin: 0 auto; padding: 1.5rem 1.15rem 4rem; }
.back-link { display:inline-flex; align-items:center; gap:.4rem; color: var(--muted); font-weight:600; margin-bottom: 1.2rem; }
.back-link:hover { color: var(--text); }
.zone-hero .zi-tag {
  display:inline-block; font-size:.72rem; font-weight:800; letter-spacing:1px; text-transform:uppercase;
  padding:.25em .7em; border-radius:999px; background: var(--red-soft); color: var(--red-dark);
}
.zone-hero h1 { font-size: clamp(2rem,7vw,3rem); font-weight:900; margin:.5rem 0; }
.dist-badge {
  display:inline-flex; gap:.5rem; align-items:center; background: var(--surface);
  border:1px solid var(--border); border-radius:999px; padding:.5em 1em; font-weight:700; box-shadow: var(--shadow);
}

/* Mode toggle */
.mode-toggle { display:flex; flex-wrap:wrap; gap:.6rem; margin: 1.8rem 0 1.4rem; }
.mode-chip {
  border:1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm);
  padding:.65em 1em; text-align:left; transition: all .15s ease; min-width: 120px;
}
.mode-chip:hover { border-color: var(--text); transform: translateY(-2px); }
.mode-chip.active { border-color: var(--red); background: var(--red); color:#fff; box-shadow: 0 6px 16px rgba(209,26,26,.28); }
.mode-chip .mc-label { display:block; font-weight:800; }
.mode-chip .mc-sub { display:block; font-size:.78rem; opacity:.8; }

/* Openings header (replaces the mode toggle) */
.openings-head { margin: 1.8rem 0 1.2rem; }
.openings-count { font-size: 1.4rem; font-weight: 900; }
.pos-1099 { color: var(--red); font-style: italic; font-weight: 700; margin: .2rem 0 0; }

/* Job cards */
.jobs { display:flex; flex-direction:column; gap:1rem; }
.job-card {
  position: relative;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem; animation: fadeUp .35s ease both;
}
.job-card.priority { border-color: var(--red); box-shadow: 0 8px 24px rgba(209,26,26,.14); }
.priority-badge {
  position:absolute; top:-11px; left:16px; display:inline-flex; align-items:center; gap:.35em;
  background: var(--red); color:#fff; font-size:.72rem; font-weight:800; letter-spacing:.5px;
  text-transform:uppercase; padding:.3em .8em; border-radius:999px; box-shadow: 0 4px 12px rgba(209,26,26,.35);
}
.priority-badge .star { font-size:.85rem; line-height:1; }
.job-card.has-sticker { padding-right: 1.3rem; }
@media (min-width: 560px) { .job-card.has-sticker { padding-right: 130px; } }

/* Circular earnings sticker (top-right of the job card) */
.earnings-sticker {
  position: absolute; top: -14px; right: 14px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--red); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(209,26,26,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  cursor: pointer; transform: rotate(-8deg); transition: transform .15s ease; padding: .3rem; line-height: 1.05;
}
.earnings-sticker:hover { transform: rotate(-8deg) scale(1.05); }
.earnings-sticker b { font-size: 1.4rem; font-weight: 900; }
.earnings-sticker .es-l1 { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.earnings-sticker .es-l2 { font-size: .6rem; opacity: .95; margin-top: .1rem; }
.earnings-sticker .es-terms { font-size: .55rem; font-style: italic; opacity: .9; margin-top: .2rem; text-decoration: underline; }
@media (max-width: 559px) {
  .earnings-sticker { position: static; margin: .2rem auto 1rem; transform: none; width: 130px; height: 130px; }
  .earnings-sticker:hover { transform: scale(1.05); }
}

/* Earnings disclosure (bottom of zone page) */
.disclosure-1099 { text-align: center; color: var(--red); font-style: italic; font-weight: 800; margin: 2.5rem 0 .8rem; }
.disclosure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 1.2rem; }
.disclosure > summary { cursor: pointer; list-style: none; font-weight: 800; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure[open] > summary .disc-toggle { transform: rotate(180deg); }
.disc-toggle { transition: transform .2s ease; color: var(--muted); }
.disclosure-body { padding: 0 0 1.2rem; border-top: 1px solid var(--border); }
.disclosure-body p { font-size: .88rem; color: var(--text); line-height: 1.5; margin: .9rem 0; }
.disclosure-body .disc-intro { font-weight: 600; }
.disclosure-body .disc-ack { font-style: italic; color: var(--muted); }
.pay-terms-link { background: none; border: none; padding: 0; margin-left: .3rem; font: inherit; font-size: .8rem; font-style: italic; color: var(--red-dark); text-decoration: underline; cursor: pointer; }

.job-head { display:flex; align-items:center; gap:.85rem; }
.job-icon { flex:none; width:40px; height:40px; display:grid; place-items:center;
  border-radius:10px; background: var(--red-soft); color: var(--red); }
.job-icon svg { width:24px; height:24px; }
.job-head h3 { font-size:1.25rem; }
.job-head .jt { color: var(--muted); font-size:.85rem; font-weight:600; }
.job-pay {
  margin:.9rem 0; background: var(--red-soft); border-radius: var(--radius-sm);
  padding:.7em .9em; font-weight:800; color: var(--red-dark);
}
.job-bullets { list-style:none; padding:0; margin:0 0 1rem; display:flex; flex-direction:column; gap:.5rem; }
.job-bullets li { font-size:.95rem; display:flex; gap:.55rem; align-items:flex-start; line-height:1.35; }
.job-bullets li::before {
  content:""; flex:none; width:7px; height:7px; margin-top:.45em;
  border-radius:2px; background: var(--red);
}

.jobs-empty { text-align:center; color: var(--muted); padding: 2rem; }

/* Requirements */
.req-block { margin-top: 2.5rem; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:1.3rem; box-shadow: var(--shadow); }
.req-block h2 { font-size:1.2rem; margin-bottom:.8rem; }
.req-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:.55rem; }
@media (max-width:560px){ .req-list { grid-template-columns:1fr; } }
.req-list li { display:flex; gap:.5rem; font-size:.95rem; }
.req-list li::before { content:"✓"; color: var(--red); font-weight:900; }

/* Fit sections (for you / not for you) */
.fit-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.6rem; }
@media (max-width:640px){ .fit-grid { grid-template-columns:1fr; } }
.fit-card { border-radius: var(--radius); padding:1.3rem; border:1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.fit-card h2 { font-size:1.1rem; display:flex; align-items:center; gap:.5rem; margin-bottom:.9rem; }
.fit-card ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.55rem; }
.fit-card li { display:flex; gap:.55rem; font-size:.93rem; line-height:1.35; }
.fit-no { border-top:4px solid #b02020; }
.fit-no li::before { content:"✕"; color:#b02020; font-weight:900; flex:none; }
.fit-yes { border-top:4px solid var(--green, #1f8a3a); }
.fit-yes li::before { content:"✓"; color:#1f8a3a; font-weight:900; flex:none; }

/* --- Apply modal --- */
.modal-backdrop {
  position: fixed; inset:0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px);
  display:flex; align-items:center; justify-content:center; padding:1.15rem; z-index:1000;
  opacity:0; pointer-events:none; transition: opacity .2s ease;
}
.modal-backdrop.open { opacity:1; pointer-events:auto; }
.modal {
  background: var(--surface); border-radius: var(--radius); max-width: 440px; width:100%;
  padding: 1.6rem; box-shadow: var(--shadow-lg); text-align:center;
  transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2,.9,.3,1.3);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal .m-emoji { font-size: 2.4rem; }
.modal h3 { font-size:1.35rem; margin:.6rem 0; }
.modal p { color: var(--muted); margin:.4rem 0 1.3rem; }
.modal .m-actions { display:flex; flex-direction:column; gap:.6rem; }
.modal .m-close { color: var(--muted); font-weight:600; background:none; border:none; padding:.4rem; }

/* --- Pre-screen form --- */
.prescreen-page { max-width: 640px; margin: 0 auto; padding: 1.5rem 1.15rem 4rem; }
.pf-intro { margin-bottom: 1.6rem; }
.pf-intro h1 { font-size: clamp(1.8rem,6vw,2.6rem); font-weight: 900; }
.pf-intro p { color: var(--muted); margin-top: .5rem; }

/* Referral banner */
.referral-banner {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 1.3rem;
  background: rgba(31,138,58,.09); border: 1px solid rgba(31,138,58,.3);
  border-radius: var(--radius-sm); padding: .75rem .95rem; font-size: .92rem;
}
.rb-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green, #1f8a3a);
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px;
}

/* Reassuring note (e.g., new-driver welcome) */
.exp-note {
  display: flex; align-items: center; gap: .55rem; margin: -.3rem 0 1rem;
  background: rgba(31,138,58,.09); border: 1px solid rgba(31,138,58,.3);
  border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .92rem; animation: fadeUp .25s ease both;
}
.exp-note .en-icon {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green, #1f8a3a);
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px;
}

/* Progress bar */
.pf-progress-wrap { margin: 0 0 1.5rem; }
.pf-progress { height: 8px; background: #e9e6e1; border-radius: 999px; overflow: hidden; }
.pf-progress-bar { height: 100%; background: var(--red); border-radius: 999px; transition: width .4s cubic-bezier(.2,.9,.3,1); }
.pf-progress-label { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: .5rem; letter-spacing: .5px; }

/* Section header */
.pf-section-title { margin-bottom: 1.1rem; }
.pf-section-title .sec-kicker { font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.pf-section-title h2 { font-size: 1.5rem; font-weight: 900; margin-top: .25rem; }

/* Privacy note */
.privacy-note {
  background: var(--red-soft); border: 1px solid rgba(209,26,26,.18); border-radius: var(--radius-sm);
  padding: .8rem .95rem; font-size: .88rem; color: var(--text); margin-bottom: 1rem;
}

.pf-subfield { margin-top: .7rem; }

.pf-q {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem; margin-bottom: 1rem;
}
.q-head { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .9rem; }
.q-num {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 50%; font-weight: 800; font-size: .85rem;
}
.q-label { font-weight: 700; font-size: 1.2rem; line-height: 1.35; }

.contact-row { display: flex; gap: .6rem; }
@media (max-width: 480px) { .contact-row { flex-direction: column; } }
.text-input, .textarea-input {
  width: 100%; padding: .85em 1em; font-size: 16.5px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); font-family: inherit;
}
.text-input:focus, .textarea-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.textarea-input { resize: vertical; }

/* Prominent "Other — type it" callout so it can't be missed */
.other-field {
  margin-top: .8rem; background: var(--red-soft); border: 1.5px solid rgba(209,26,26,.35);
  border-radius: var(--radius-sm); padding: .9rem 1rem; animation: fadeUp .25s ease both;
}
.other-field .subfield-label {
  display: block; font-weight: 800; font-size: 1rem; color: var(--red-dark); margin-bottom: .5rem;
}

.yn-row { display: flex; gap: .6rem; }
.yn-btn {
  flex: 1; padding: .9em; font-size: 1.15rem; font-weight: 800; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); border-radius: var(--radius-sm); transition: all .15s ease;
}
.yn-btn:hover { border-color: var(--text); }
.yn-btn.active { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(209,26,26,.28); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (min-width: 520px) { .choice-grid { grid-template-columns: 1fr 1fr 1fr; } }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left;
  min-height: 62px; border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-sm);
  padding: .85em 1em; transition: all .15s ease;
}
.choice:hover { border-color: var(--text); transform: translateY(-2px); }
.choice.active { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(209,26,26,.28); }
.choice .ch-label { font-weight: 800; font-size: 1.1rem; }
.choice .ch-sub { font-size: .9rem; opacity: .85; margin-top: .1rem; }

/* Readiness checklist */
.checklist { display: flex; flex-direction: column; gap: .6rem; }
.check-item {
  display: flex; align-items: center; gap: .8rem; text-align: left; width: 100%;
  border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-sm);
  padding: .8em .9em; transition: all .15s ease;
}
.check-item:hover { border-color: var(--text); }
.check-item.checked { border-color: var(--green, #1f8a3a); background: rgba(31,138,58,.07); }
.check-box {
  flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--border);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px; transition: all .15s ease;
}
.check-item.checked .check-box { background: var(--green, #1f8a3a); border-color: var(--green, #1f8a3a); }
.check-label { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }

/* Work references */
.ref-hint { color: var(--muted); font-size: .9rem; margin: -.3rem 0 .9rem; }
.ref-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.ref-row .ref-num { flex: none; width: 30px; font-weight: 800; color: var(--muted); font-size: .95rem; }
.ref-row .text-input { flex: 1; }
@media (max-width: 480px) {
  .ref-row { flex-wrap: wrap; }
  .ref-row .ref-num { width: 100%; margin-bottom: -.2rem; }
}

.nav-row { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; }

.pf-error { color: var(--red-dark); font-size: .85rem; font-weight: 600; margin-top: .6rem; }

.thanks-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 2.5rem 1.6rem; text-align: center; margin-top: 2rem;
  animation: fadeUp .4s ease both;
}
.thanks-card h1 { font-size: 2rem; font-weight: 900; }
.thanks-card p { color: var(--muted); max-width: 42ch; margin: 1rem auto 1.6rem; }

/* --- Admin panel --- */
.admin-page { max-width: 1240px; margin: 0 auto; padding: 1.2rem 1.15rem 3rem; }
.admin-demo-note { background: #fff8e1; border: 1px solid #f0d98a; color: #7a5c00; border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .85rem; margin-bottom: 1rem; }
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-tab { border: 1.5px solid var(--border); background: var(--surface); border-radius: 999px; padding: .5em 1.1em; font-weight: 800; color: var(--muted); cursor: pointer; }
.admin-tab.active { border-color: var(--red); background: var(--red); color: #fff; }
.zone-filter { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.zf-btn { border: 1.5px solid var(--border); background: var(--surface); border-radius: 999px; padding: .35em .9em; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; }
.zf-btn.active { border-color: var(--text); color: var(--text); }

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .6rem; }
.column { background: #f0eeea; border-radius: var(--radius); padding: .7rem; min-height: 120px; transition: background .15s ease; }
.column.drag-over { background: var(--red-soft); outline: 2px dashed var(--red); }
.col-head { display: flex; align-items: center; justify-content: space-between; font-weight: 900; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .6rem; color: var(--muted); }
.col-head .count { background: var(--surface); border-radius: 999px; padding: 0 .5em; font-size: .78rem; }
.empty-col { color: var(--muted); font-size: .82rem; font-style: italic; text-align: center; padding: 1rem .5rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .7rem .8rem; margin-bottom: .6rem; cursor: pointer; border-left: 4px solid var(--border); }
.card:hover { box-shadow: var(--shadow-lg); }
.card.dragging { opacity: .5; }
.card.flag-red { border-left-color: #b02020; }
.card.flag-yellow { border-left-color: var(--yellow, #e0a500); }
.card .c-name { font-weight: 800; font-size: 1rem; }
.card .c-meta { display: flex; flex-direction: column; gap: .1rem; margin-top: .3rem; font-size: .8rem; color: var(--muted); }
.card .c-ref { margin-top: .35rem; font-size: .78rem; font-weight: 700; color: #1f8a3a; }
.card .c-badges { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .45rem; }
.badge { font-size: .68rem; font-weight: 800; border-radius: 999px; padding: .15em .6em; }
.badge-red { background: rgba(176,32,32,.12); color: #b02020; }
.badge-yellow { background: var(--yellow-soft, rgba(224,165,0,.15)); color: #8a6500; }
.badge-pass { background: rgba(31,138,58,.12); color: #1f8a3a; }

/* Detail slide-out */
.panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 900; }
.panel-overlay.open { opacity: 1; pointer-events: auto; }
.detail-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 92vw); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; z-index: 950; display: flex; flex-direction: column; }
.detail-panel.open { transform: none; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--border); }
.detail-head h2 { font-size: 1.3rem; }
.detail-body { padding: 1.1rem 1.2rem; overflow-y: auto; flex: 1; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 1rem 1.2rem; border-top: 1px solid var(--border); }
.detail-section { margin-bottom: 1.3rem; }
.detail-section h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--red); margin-bottom: .6rem; }
.qa-row { display: grid; grid-template-columns: 44% 56%; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.qa-row .q { color: var(--muted); }
.qa-row .a { font-weight: 600; }
.flag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.flag-list li { border-radius: var(--radius-sm); padding: .5rem .7rem; font-size: .88rem; }
.flag-list li.red { background: rgba(176,32,32,.1); color: #b02020; }
.flag-list li.yellow { background: var(--yellow-soft, rgba(224,165,0,.15)); color: #8a6500; }
.close-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); line-height: 1; }
.btn-approve { background: #1f8a3a; color: #fff; }
.btn-reject { background: #b02020; color: #fff; }

/* Referrals tab */
.ref-summary { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ref-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.3rem; min-width: 130px; }
.ref-stat b { display: block; font-size: 1.8rem; font-weight: 900; }
.ref-stat span { font-size: .8rem; color: var(--muted); }
.ref-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.ref-group h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.ref-group .rg-sub { color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.ref-row2 { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr auto; gap: .7rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--border); font-size: .9rem; }
@media (max-width: 640px) { .ref-row2 { grid-template-columns: 1fr 1fr; } }
.ref-row2 .rr-name { font-weight: 700; }
.routes-input { width: 56px; padding: .3em; border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; text-align: center; }
.reward-pill { font-size: .74rem; font-weight: 800; border-radius: 999px; padding: .2em .7em; }
.reward-pending { background: #f0eeea; color: var(--muted); }
.reward-earned { background: var(--yellow-soft, rgba(224,165,0,.2)); color: #8a6500; }
.reward-paid { background: rgba(31,138,58,.14); color: #1f8a3a; }

/* --- Footer --- */
.site-footer { text-align:center; color: var(--muted); font-size:.8rem; padding: 2rem 1.15rem 3rem; }

/* --- Reveal on scroll --- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
@keyframes fadeUp { from { opacity:0; transform: translateY(12px);} to {opacity:1; transform:none;} }

/* Leaflet popup tweak */
.leaflet-popup-content { margin:.7rem .9rem; }
.zpop b { font-size:1.05rem; }
.zpop button { margin-top:.6rem; }

/* ============================================================
   EDITORIAL / PREMIUM THEME  (layered overrides · CSS-only motion)
   Fonts loaded via <link> in each page head: Fraunces + Inter.
   ============================================================ */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* warm editorial neutrals */
  --bg: #f5f2ec;
  --surface: #fffdf9;
  --surface-2: #f0ece4;
  --text: #1b1a18;
  --muted: #6d675f;
  --border: #e6e0d5;
  --red: #c11f1f;
  --red-dark: #8f1414;
  --red-soft: rgba(193, 31, 31, 0.07);
  --shadow: 0 1px 2px rgba(20,18,15,0.04), 0 10px 30px rgba(20,18,15,0.06);
  --shadow-lg: 0 28px 70px rgba(20,18,15,0.16);
  --radius: 4px;
  --radius-sm: 3px;
}

body { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }

/* Serif display for headlines */
h1, h2, h3,
.section-title, .hero h1, .zone-hero h1, .job-head h3, .openings-count,
.pf-intro h1, .pf-section-title h2, .thanks-card h1, .ref-group h3, .ref-stat b,
.modal h3, .detail-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
}

/* Hero — airy, elegant, gentle rise-in */
.hero { max-width: 800px; padding: clamp(4rem, 12vw, 8rem) 1.15rem 3rem; }
.hero h1 { font-size: clamp(2.7rem, 8.5vw, 5.2rem); font-weight: 500; line-height: 1.03; letter-spacing: -0.022em; animation: ed-rise .85s cubic-bezier(.2,.7,.2,1) both; }
.hero .accent { color: var(--red); font-style: italic; }
.hero p { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 42ch; animation: ed-rise .85s .08s cubic-bezier(.2,.7,.2,1) both; }
.hero .btn { animation: ed-rise .85s .16s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ed-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Eyebrow labels (plain, letter-spaced — no pills) */
.sec-kicker, .zi-tag { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; font-weight: 600; font-family: var(--font-body); }
.zi-tag { background: none; color: var(--muted); padding: 0; border-radius: 0; }
.sec-kicker { color: var(--red); }

/* Section headings + subs */
.section-title { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 500; }
.section-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* Buttons — refined, squared, quiet shadow */
.btn { font-family: var(--font-body); font-weight: 600; letter-spacing: .01em; border-radius: 3px; transition: all .25s ease; }
.btn-primary { background: var(--red); border: 1px solid var(--red); box-shadow: none; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(193,31,31,.2); }
.btn-ghost { border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-lg { padding: .95em 1.9em; }

/* Cards — flat, hairline, generous whitespace */
.job-card, .pf-q, .map-panel, .req-block, .thanks-card, .ref-group, .ref-stat, .disclosure, .modal, .privacy-note, .referral-banner, .exp-note {
  border-radius: 3px; box-shadow: none;
}
.job-card, .pf-q, .map-panel, .req-block { border-color: var(--border); }
.fit-card { border-radius: 3px; box-shadow: none; }
.job-card { padding: 1.7rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d1c3; }
.job-head h3 { font-size: 1.45rem; }
.job-pay { background: none; padding: 0 0 0 .85rem; border-left: 3px solid var(--red); border-radius: 0; color: var(--red-dark); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.job-bullets li { line-height: 1.45; }

/* Section spacing — airier */
.map-section { padding: 1.5rem 1.15rem 4.5rem; }
.zone-page, .prescreen-page { padding-top: 2.5rem; }
#leaflet { border-radius: 3px; }
.map-panel { padding: 1.6rem; }
.divider, hr.divider { background: var(--border); }

/* Zone page */
.zone-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 500; margin: .35rem 0; }
.dist-badge { border-radius: 2px; box-shadow: none; background: var(--surface); }
.openings-count { font-size: 1.7rem; font-weight: 600; }
.pos-1099 { font-family: var(--font-body); }
.fit-card h2, .req-block h2 { font-family: var(--font-display); font-weight: 600; }

/* Forms — editorial */
.text-input, .textarea-input, .zip-row input { border-radius: 2px; border-color: var(--border); background: var(--surface); }
.choice, .yn-btn, .check-item, .zone-list-item { border-radius: 3px; }
.q-label { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; }
.pf-section-title h2 { font-size: 1.75rem; font-weight: 600; }
.pf-intro h1, .thanks-card h1 { font-weight: 600; }
.ch-label { font-family: var(--font-body); }

/* Detail / admin headings */
.detail-section h3 { font-family: var(--font-body); }
.admin-tab, .zf-btn { border-radius: 2px; }

/* Footer — hairline rule */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2rem; }

/* Motion polish */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
a, .zli-go, .zone-list-item, .choice, .yn-btn, .check-item, .mode-chip { transition: all .2s ease; }

/* --- Admin: Settings (referral links) + Archived --- */
.settings-intro { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: .3rem; }
.settings-add { display: flex; gap: .6rem; align-items: center; }
.settings-add .text-input { flex: 1; }
@media (max-width: 520px) { .settings-add { flex-direction: column; align-items: stretch; } }
.settings-feedback { font-size: .85rem; font-weight: 600; margin-top: .6rem; min-height: 1em; }
.settings-feedback.ok { color: #1f8a3a; }
.settings-feedback.err { color: #b02020; }

.reflink-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .reflink-row { grid-template-columns: 1fr; gap: .4rem; } }
.reflink-row .rl-name { font-weight: 800; }
.reflink-row .rl-url { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: .35em .6em; font-size: .82rem; color: var(--red-dark); overflow-wrap: anywhere; }
.reflink-row .rl-actions { display: flex; gap: .4rem; justify-content: flex-end; }

.archived-list { display: flex; flex-direction: column; }
.archived-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--border); }
.archived-row .ar-main { cursor: pointer; display: flex; flex-direction: column; gap: .15rem; }
.archived-row .ar-main b { font-weight: 800; }
.archived-row .ar-main span { color: var(--muted); font-size: .82rem; }
.archived-row .ar-actions { display: flex; gap: .4rem; flex: none; }

/* Zone managers roster */
.mgr-add { flex-wrap: wrap; }
.mgr-add .text-input { flex: 1; min-width: 130px; }
.mgr-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .8rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--border); }
@media (max-width: 560px) { .mgr-row { grid-template-columns: 1fr auto; } }
.mgr-row .mgr-contact { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

/* Zone lead line on the applicants board */
.zone-lead { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: .6rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.zone-lead .zl-label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); }
.zone-lead .zl-none { color: var(--muted); font-style: italic; }

/* --- Hiring roadmap (zone page stepper) --- */
.roadmap-section { margin: 2.6rem 0 1rem; }
.rm-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 4vw, 1.9rem); text-align: center; margin-bottom: 1.8rem; }
.roadmap { display: flex; align-items: flex-start; }
.rm-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .25rem; }
.rm-step::before { content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.rm-step:first-child::before { display: none; }
.rm-node { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .6rem; box-shadow: 0 4px 12px rgba(193,31,31,.25); }
.rm-step:last-child .rm-node { background: #1f8a3a; box-shadow: 0 4px 12px rgba(31,138,58,.28); }
.rm-label { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.rm-time { color: var(--muted); font-size: .8rem; margin-top: .25rem; line-height: 1.25; }
@media (max-width: 640px) {
  .roadmap { flex-direction: column; align-items: stretch; }
  .rm-step { flex-direction: row; align-items: flex-start; gap: 1rem; text-align: left; padding: .5rem 0; }
  .rm-step::before { top: 0; left: 20px; width: 2px; height: 100%; }
  .rm-node { margin-bottom: 0; flex: none; }
  .rm-text { padding-top: .35rem; }
}
