:root {
  --green: #0b6e4f;
  --green-dark: #084d38;
  --green-pale: #e6f4ee;
  --accent: #ff7a45;
  --accent-dark: #e0602c;
  --ink: #10231c;
  --bg: #f6f7f5;
  --card: #ffffff;
  --text: #1b1f1d;
  --muted: #6b7570;
  --border: #e1e5e2;
  --error: #b3261e;
}

* { box-sizing: border-box; }

/* Visually hidden until focused — lets keyboard/screen-reader users jump
   straight past the repeated brand bar and nav to the actual page content. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* ---- Brand bar ---- */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Now also the home link (top-left logo/brand) — .brand is an <a> on every
   page, including index.html itself (clicking it there just reloads home,
   which is harmless and keeps the behavior consistent everywhere). Pinning
   color on :link/:visited stops the browser's default blue/purple link
   colors from overriding the class once it's an anchor. */
.brand,
.brand:link,
.brand:visited {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand:hover { color: var(--green-dark); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-pale);
  font-size: 15px;
}

.brand-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
}

.brand-nav a:hover { color: var(--green-dark); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-pale);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero-copy h1 .hl {
  color: var(--green);
}

.lede {
  color: #3a3f3c;
  font-size: 16px;
  margin: 0 0 28px;
  max-width: 46ch;
}

.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.steps li div { color: #3a3f3c; font-size: 14px; }
.steps li strong { color: var(--ink); font-size: 15px; }

.step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disclaimer {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

/* ---- Signup card ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(16, 35, 28, 0.04);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.field {
  margin-bottom: 22px;
}

input[type="email"],
input[type="tel"],
input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  /* 16px, not 15px: iOS Safari auto-zooms the whole page when a focused
     field's font is under 16px, which is a jarring surprise on a form
     that's mostly filled in on a phone. */
  font-size: 16px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}

input:focus,
select:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.centre-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.centre-field-head label { margin-bottom: 0; }

.chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-pale);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.centre-search {
  margin-bottom: 8px;
}

.centre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfbfa;
}

.centre-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.centre-option:hover { background: #f0f2f0; }

.centre-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green);
  flex: none;
}

.centre-option .centre-name-wrap { display: flex; flex-direction: column; line-height: 1.25; }
.centre-option .centre-county { color: var(--muted); font-size: 12.5px; }
.centre-option.is-hidden { display: none; }

.hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.hint-inline { font-weight: 400; color: var(--muted); }

.whatsapp-field,
.code-field {
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.whatsapp-field summary,
.code-field summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.whatsapp-field[open] summary,
.code-field[open] summary { margin-bottom: 4px; }

/* ---- Plan selector ---- */
.plan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.plan-option {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 400;
}

.plan-option:hover { background: #f0f2f0; }

.plan-option.is-selected {
  border-color: var(--green);
  background: var(--green-pale);
}

.plan-option input[type="radio"] {
  accent-color: var(--green);
  margin-right: 6px;
}

.plan-option .plan-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.plan-option .plan-price {
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 0 22px;
}

.garage-interval-field {
  margin: 10px 0 0;
}

.interval-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.interval-option {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.interval-option:hover { background: #f0f2f0; }

.interval-option.is-selected {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
}

.interval-option input[type="radio"] {
  accent-color: var(--green);
  margin-right: 5px;
}

button {
  appearance: none;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

button:hover { background: var(--green-dark); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
}

.status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.status.show { display: block; }
.status.success { background: var(--green-pale); color: var(--green-dark); }
.status.error { background: #fbebea; color: var(--error); }

.status-page .wrap { max-width: 640px; }
.status-page .card { text-align: center; }

.status-page .icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* ---- Live availability page ---- */
.avail-header { max-width: 640px; margin-bottom: 28px; }
.avail-header h1 { font-size: 28px; margin: 0 0 10px; color: var(--ink); }
.avail-header .eyebrow { margin-bottom: 12px; }
.avail-header .lede { margin: 0; }

.avail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.avail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.avail-card h3 { font-size: 15px; margin: 0 0 10px; color: var(--ink); }

.avail-dates { display: flex; flex-direction: column; gap: 8px; }

.avail-date-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.avail-date-row:first-child { border-top: none; padding-top: 0; }

.avail-date { color: var(--ink); font-weight: 600; }
.avail-times { color: var(--muted); text-align: right; }

/* On a narrow phone a long comma-separated time list squeezed into ~50%
   of the row width just wraps into ragged right-aligned lines, which is
   hard to scan. Stack date above times, both left-aligned, instead. */
@media (max-width: 480px) {
  .avail-date-row {
    flex-direction: column;
    gap: 2px;
  }
  .avail-times { text-align: left; }
}

.no-avail-heading {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  margin: 32px 0 12px;
}

.no-avail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.no-avail-pill {
  font-size: 12.5px;
  color: var(--muted);
  background: #eef0ee;
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

.cta-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.cta-link:hover { text-decoration: underline; }

/* ---- Urgent / short-notice section ---- */
.urgent-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff3ec;
  border: 1px solid #ffd2b8;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}

.urgent-cta:hover { background: #ffe6d8; }

.urgent-section {
  margin-bottom: 32px;
  scroll-margin-top: 20px;
}

.urgent-heading {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--accent-dark);
}

.urgent-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.urgent-card {
  background: #fffaf7;
  border: 1px solid #ffd2b8;
  border-radius: 12px;
  padding: 14px 16px;
}

.urgent-card h4 { font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.urgent-card .urgent-when { color: var(--accent-dark); font-weight: 600; font-size: 13px; }
.urgent-card .avail-times { color: var(--muted); font-size: 13px; }

.urgent-empty {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---- Stats page ---- */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--muted);
}

.stats-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* The table is wider than a phone screen (it has 4 columns of real data),
   so on narrow viewports it scrolls sideways inside its border — but
   nothing about a bordered box says "swipe me", so on desktop this hint
   would just be noise next to a table that already fits. Shown only
   below the width where the table actually needs to scroll. */
.swipe-hint {
  display: none;
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 8px;
}

@media (max-width: 760px) {
  .swipe-hint { display: block; }
}

table.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.stats-table th,
table.stats-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.stats-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

table.stats-table tr:last-child td { border-bottom: none; }

.stats-bar-track {
  display: inline-block;
  width: 80px;
  height: 6px;
  border-radius: 999px;
  background: #eef0ee;
  vertical-align: middle;
  margin-right: 8px;
  overflow: hidden;
}

.stats-bar-fill {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}

.stats-note {
  background: var(--green-pale);
  border: 1px solid #cfe9dd;
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--green-dark);
  font-size: 13.5px;
  margin-bottom: 24px;
}

/* ---- About / how it works / FAQ ---- */
.about {
  margin-top: 56px;
  padding: 4px 4px 0;
  scroll-margin-top: 20px;
}

.about h2 {
  font-size: 21px;
  margin: 0 0 20px;
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.feature-icon { font-size: 22px; margin-bottom: 8px; }
.feature h3 { font-size: 15px; margin: 0 0 6px; color: var(--ink); }
.feature p { font-size: 13.5px; color: #3a3f3c; margin: 0; }

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.faq-item p { margin: 0; font-size: 14px; color: #3a3f3c; }
.faq-q { font-weight: 600; color: var(--ink); margin-bottom: 6px !important; }

footer {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer a { color: var(--green-dark); }
