@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

/* Bair Cars — Landing Page Styles
   Palette (built from the app's own Material seed color, #2E5A47 — deep automotive green):
   - Background:  #2E3E31  (Bair Development green)
   - Surface:     #1E3428  (raised card)
   - Ink:         #F1F5EF  (headlight white)
   - Muted:       #AABFAE  (subdued text)
   - Accent:      #D5A873  (Bair Development brass)
*/

:root {
  --bg:         #2E3E31;
  --surface:    #364b3c;
  --surface2:   #3d5443;
  --ink:        #F7EBDF;
  --muted:      #D5CBB3;
  --accent:     #D5A873;
  --accent-ink: #2B200F;
  --ring:       rgba(213,168,115,.5);
  --border:     rgba(255,255,255,.07);
  --shadow:     0 10px 30px rgba(0,0,0,.35);
  --radius:     16px;

  /* Reminder status colors, matching the app's own color-coding */
  --status-red:    #E0684F;
  --status-orange: #E0A64F;
  --status-green:  #4FB37E;
  --status-gray:   #7C8C80;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 20% -10%, #1c3327 0%, var(--bg) 55%), var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; text-decoration: underline; }

/* ── Layout ── */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }

.brand strong { display: block; font-size: 17px; line-height: 1.2; }
.brand .kicker {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.topnav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.topnav a {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 14px;
  transition: color .15s, border-color .15s;
}
.topnav a:hover { color: var(--ink); border-color: rgba(255,255,255,.18); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, opacity .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); opacity: 1; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost   { border-color: rgba(241,245,239,.2); color: var(--ink); background: rgba(255,255,255,.04); }
.btn.subtle  { border-color: rgba(213,168,115,.35); color: var(--accent); background: transparent; font-size: 14px; }
.btn.static  { cursor: default; }
.btn.static:hover { transform: none; }

/* ── Cards ── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.45); border-color: rgba(255,255,255,.12); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(213,168,115,.4);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}

.hero-copy .lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.note { font-size: 13px; color: var(--muted); margin: 0; }
.note a { color: var(--muted); text-decoration: underline; }

/* ── Demo card — fleet snapshot mock ── */
.demo-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-card .demo-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 2px;
}

.fleet-panel {
  padding: 16px;
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.car-row { display: flex; flex-direction: column; gap: 6px; }
.car-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
}
.car-row-top .car-name { color: var(--ink); font-weight: 600; }
.car-row-top .car-cpm { color: var(--accent); font-weight: 700; }

.cost-bar-track {
  height: 7px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.cost-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7fd6ab);
  border-radius: 999px;
}

.next-up-panel {
  padding: 14px 16px;
  background: rgba(0,0,0,.15);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.next-up-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.next-up-item .status-label { display: flex; align-items: center; gap: 8px; color: var(--ink); }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red    { background: var(--status-red); }
.dot.orange { background: var(--status-orange); }
.dot.green  { background: var(--status-green); }
.dot.gray   { background: var(--status-gray); }

/* ── Promise bar ── */
.promise-bar {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: rgba(213,168,115,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
}
.promise-bar p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.promise-bar strong { color: var(--accent); }

/* ── Airgap banner ── */
.airgap-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.airgap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 12px;
  background: rgba(0,0,0,.15);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.airgap-icon {
  font-size: 26px;
  line-height: 1;
}

.airgap-item strong {
  font-size: 14px;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}

.airgap-item span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Sections ── */
.section { margin-bottom: 28px; }
.section-title {
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin: -10px 0 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card { display: flex; flex-direction: column; gap: 8px; }
.feature-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}
.feature-card h3 { margin: 0; font-size: 16px; }
.feature-card p  { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── Chip grid (reminder templates, legend, etc.) ── */
.chips-card { text-align: center; }
.chips-card h3 { margin: 0 0 6px; font-size: 18px; }
.chips-card .chips-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.chip-group { margin-bottom: 16px; }
.chip-group:last-child { margin-bottom: 0; }
.chip-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin: 0 0 10px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .03em;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legend-row .legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ── Privacy page ── */
.prose h1 { font-size: 30px; margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-style: italic; margin: 0 0 24px; font-size: 14px; }
.prose h2 { font-size: 18px; margin: 24px 0 8px; color: var(--accent); }
.prose p  { margin: 0 0 12px; color: var(--muted); line-height: 1.65; }
.prose ul { margin: 0 0 12px; padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 6px; line-height: 1.55; }
.prose strong { color: var(--ink); }

/* ── Responsive ── */
/* ── Pricing ── */
.price-card { position: relative; gap: 10px; }
.price-card h3 { margin: 0; font-size: 16px; color: var(--muted); font-weight: 600; }
.price-card .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price-card .price span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.price-card p strong { color: var(--ink); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-badge {
  position: absolute; top: -11px; right: 16px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.price-card { display: flex; flex-direction: column; }

@media (max-width: 820px) {
  .hero             { grid-template-columns: 1fr; }
  .grid-3           { grid-template-columns: repeat(2, 1fr); }
  .airgap-banner    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-3, .grid-2  { grid-template-columns: 1fr; }
  .airgap-banner    { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1     { font-size: 30px; }
  header            { flex-direction: column; align-items: flex-start; }
}
