/* MediCab marketing site — plain CSS, mobile-first. Design tokens mirror the app. */

:root {
  --robin: #5DC1C8;        /* primary brand */
  --blueberry: #106470;    /* dark / primary action + section headings */
  --amber: #EF9F27;        /* warning accent */
  --green: #639922;        /* success / "is" accent */
  --red: #E24B4A;          /* danger / "is not" accent */

  --text: #1A2B33;         /* body — dark blue-gray, not pure black */
  --text-muted: #52646D;   /* secondary text (AA on light bg) */
  --bg: #FAFBFC;           /* page background — cool near-white */
  --tint: #E8F6F7;         /* light teal section accent */
  --surface: #FFFFFF;      /* cards */
  --border: #E2EAEB;       /* hairline card borders */
  --divider: rgba(16, 100, 112, 0.10);   /* 1px low-opacity Blueberry band edges */

  --radius-card: 24px;
  --radius-pill: 9999px;
  --maxw: 680px;           /* readable text column */
  --maxw-wide: 960px;      /* feature / persona / compare grids */
  --shadow-card: 0 1px 2px rgba(16, 100, 112, 0.04), 0 8px 24px rgba(16, 100, 112, 0.06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container--wide { max-width: var(--maxw-wide); }

a { color: var(--blueberry); }

/* Visible keyboard focus everywhere. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--robin);
  outline-offset: 2px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner { display: flex; align-items: center; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--blueberry);
  text-decoration: none;
}
.wordmark-icon { height: 36px; width: 36px; display: block; flex-shrink: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn-primary {
  background: var(--blueberry);   /* white-on-blueberry = WCAG AA */
  color: #fff;
}
.btn-primary:hover { background: #0c515b; }
.btn-primary:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ── Section bands + headings ─────────────────────────────────────────────── */
/* Alternating bands give each section a defined block; a 1px Blueberry hairline
   sharpens the band edge. */
.section { padding: 54px 0; border-top: 1px solid var(--divider); }
.section--bg { background: var(--bg); }
.section--tint { background: var(--tint); }

.section-head { text-align: center; max-width: 62ch; margin: 0 auto 34px; }
.section-h {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blueberry);
  margin: 0;
}
/* Short, crisp accent under each heading — a defined anchor, not decoration. */
.section-h::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--robin);
  margin: 16px auto 0;
}
.section-lead { color: var(--text-muted); margin: 16px auto 0; font-size: 17px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 60px; }
.hero-inner { text-align: center; }
.hero-title {
  font-size: 31px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  max-width: 16ch;
  color: var(--text);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 auto 30px;
  max-width: 54ch;
}
#hero-cta { min-width: 220px; }

/* Post-launch download block. */
.download-block { margin-top: 8px; }
.download-lead { font-weight: 500; color: var(--text-muted); margin: 0 0 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0d1b1f;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 14px;
  min-width: 168px;
}
.store-badge:hover { background: #000; }
.store-glyph { width: 24px; height: 24px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-line1 { font-size: 11px; opacity: 0.85; }
.store-line2 { font-size: 17px; font-weight: 700; }

/* ── Prose (The problem) ──────────────────────────────────────────────────── */
.prose { max-width: 58ch; margin: 0 auto; text-align: center; }
.prose p { font-size: 18px; color: var(--text); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose p.prose-turn { color: var(--blueberry); font-weight: 700; }

/* ── How it works (steps) ─────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 560px;
}
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--blueberry);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-title { font-size: 18px; font-weight: 700; margin: 4px 0 4px; color: var(--text); }
.step-body { margin: 0; color: var(--text-muted); font-size: 16px; }

/* ── Feature / value cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.feature-grid,
.persona-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.value-card { padding: 24px; }
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--blueberry);
  margin-bottom: 14px;
}
.value-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.value-body { margin: 0; color: var(--text-muted); font-size: 16px; }

/* ── Who it's for (personas) ──────────────────────────────────────────────── */
.persona-card { padding: 24px; border-left: 3px solid var(--robin); }
.persona-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--blueberry);
}
.persona-title svg { color: var(--blueberry); flex-shrink: 0; }
.persona-body { margin: 0; color: var(--text-muted); font-size: 16px; }

/* ── What MediCab is / is not ─────────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: var(--maxw-wide);
  margin: 0 auto;
}
.compare-col { padding: 24px 26px; border-top: 3px solid var(--border); }
.compare-is { border-top-color: var(--green); }
.compare-isnot { border-top-color: var(--red); }
.compare-h { font-size: 18px; font-weight: 700; margin: 0 0 14px; color: var(--text); }
.compare-list { list-style: none; margin: 0; padding: 0; }
.compare-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 16px;
}
.compare-list li:last-child { margin-bottom: 0; }
.compare-list li svg { flex-shrink: 0; margin-top: 3px; }
.compare-is li svg { color: var(--green); }
.compare-isnot li svg { color: var(--red); }

/* ── Privacy & trust ──────────────────────────────────────────────────────── */
.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.trust-item { padding: 22px 24px; }
.trust-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.trust-title svg { color: var(--blueberry); flex-shrink: 0; }
.trust-body { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ── Service-area note ────────────────────────────────────────────────────── */
.service-note {
  text-align: center;
  color: var(--text);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
}
.service-note strong { color: var(--blueberry); }

/* ── Waitlist ─────────────────────────────────────────────────────────────── */
/* Sits on the plain band (its white card + hairline edge define it). */
.waitlist { background: var(--bg); border-top: 1px solid var(--divider); padding: 54px 0 60px; }
.waitlist-card { padding: 30px 24px; max-width: 520px; margin: 0 auto; }
.section-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; text-align: center; color: var(--blueberry); }
.section-sub { margin: 0 0 24px; text-align: center; color: var(--text-muted); }

.waitlist-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.optional { color: var(--text-muted); font-weight: 400; }
.field input {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #CBD8DA;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  width: 100%;
}
.field input::placeholder { color: #93A3AA; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-error { margin: 2px 0 0 4px; font-size: 13px; color: var(--red); }

/* Honeypot — removed from layout + assistive tech. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success / error states. */
.waitlist-success { text-align: center; padding: 8px 0; }
.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: rgba(99, 153, 34, 0.12);
  color: var(--green);
  margin-bottom: 12px;
}
.waitlist-success p { margin: 0; font-size: 17px; font-weight: 500; color: var(--text); }
.waitlist-error { margin-top: 16px; text-align: center; color: var(--red); }
.waitlist-error p { margin: 0; }
.waitlist-error a { color: var(--red); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  background: var(--bg);
}
.footer-inner { text-align: center; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-links a { font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-entity { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.footer-contact { margin: 0; font-size: 14px; color: var(--text-muted); }
.footer-contact a { color: var(--blueberry); }

/* ── Legal page (shared shell) ────────────────────────────────────────────── */
.legal { padding: 40px 0 56px; }
.legal .container { max-width: 680px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover { text-decoration: underline; }
.legal h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 30px 0 8px; color: var(--text); }
.legal p {
  color: var(--text-muted);
  margin: 0 0 14px;
  /* Justify long-form legal prose; hyphens prevent large inter-word "rivers".
     Applies to paragraphs only — headings, lists, back-link, footer, and the
     "Last updated" line are left as-is. */
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.legal p.lead { color: var(--text); font-weight: 500; }
.legal p.operator { font-size: 15px; margin: 0 0 22px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-muted); }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--blueberry); }
.legal address { font-style: normal; color: var(--text-muted); line-height: 1.6; }

.last-updated { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; text-align: left; }

/* Draft-review flag (amber info box) shown on the not-yet-reviewed legal pages. */
.draft-flag {
  background: rgba(239, 159, 39, 0.10);
  border: 1px solid var(--amber);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 14px;
  color: #7A5410;
}

/* ── Larger screens ───────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  body { font-size: 18px; }

  .section { padding: 84px 0; }
  .section-h { font-size: 34px; }
  .section-lead { font-size: 19px; }

  .hero { padding: 84px 0 92px; }
  .hero-title { font-size: 45px; max-width: 18ch; }
  .hero-sub { font-size: 21px; }

  .prose p { font-size: 20px; }

  /* Steps go 3-up, features / personas / compare go 2-up, trust 2-up. */
  .steps { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 24px; }
  .step { flex-direction: column; text-align: center; align-items: center; gap: 12px; }
  .step-body { max-width: 30ch; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .compare { grid-template-columns: 1fr 1fr; gap: 18px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .value-card { padding: 26px; }
  .btn-block { width: auto; align-self: center; min-width: 240px; }
}

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
