/* QuotePlug marketing landing page (redesign 2026-09) — self-contained.
   Loaded only by landing.html; other pages use styles.css. */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f5f8;
  --ink: #0e1218;
  --body: #3b424d;
  --muted: #5c6470;
  --muted-light: #8a919c;
  --on-dark: #b3b9c3;
  --line: #dfe3e9;
  --btn-border: #cfd4dc;
  --dark: #12161d;
  --dark-line: #2a3039;
  --dark-inner: #1f242c;
  --brand: #e11d2e;
  --brand-hover: #c81628;
  --brand-on-dark: #ff6b78;
  --pale-red: #ffd3d7;
  --hero-glow: #fee2e2;
  --sms: #26282b;
  --sms-link: #4f9cff;
  --code-str: #9fd6ff;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body.landing {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* hero glow intentionally bleeds past the viewport edge */
}

/* Prose links inherit their section's color; buttons and brand/nav pills
   must keep their own explicit colors (a blanket `.landing a` rule would
   outrank the single-class button colors and render them invisible). */
.landing a:not(.btn):not(.nav-cta):not(.brand) { color: inherit; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}
.eyebrow.on-dark { color: var(--brand-on-dark); }
.eyebrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 10px;
}

h1, h2, h3 { margin: 0; }
.landing h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.landing h1 .sub { color: var(--muted-light); }
.landing h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lead { color: var(--body); margin: 0; }
.lead.on-dark { color: var(--on-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.28);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--btn-border);
  font-weight: 700;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--dark); color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-dark:hover { border-color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 245, 248, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 8px; }
.nav-center { display: flex; gap: 28px; }
.nav-center a {
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-center a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .signin {
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-right .signin:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--brand); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 72px;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-copy .lead { font-size: 20px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-fine { font-size: 14px; color: var(--muted); margin: 0; }

/* phone mockup */
.phone-wrap { position: relative; display: grid; justify-items: center; }
.phone-glow {
  position: absolute;
  inset: 10% -8%;
  background: radial-gradient(ellipse at center, var(--hero-glow) 0, transparent 68%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: 318px;
  background: var(--dark);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(14, 18, 24, 0.28), inset 0 0 0 2px var(--dark-line);
}
.phone-screen {
  background: #000;
  border-radius: 36px;
  min-height: 620px;
  color: #fff;
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px 10px;
  font-size: 14px;
  font-weight: 600;
}
.phone-notch {
  width: 100px;
  height: 28px;
  background: var(--dark);
  border-radius: 999px;
}
.phone-bars { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; }
.phone-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 12px;
  border-bottom: 1px solid var(--dark-inner);
}
.phone-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-avatar img { border-radius: 6px; }
.phone-contact .name { font-size: 15px; font-weight: 600; }
.phone-contact .kind { font-size: 12px; color: var(--muted-light); }
.phone-time {
  text-align: center;
  font-size: 11px;
  color: var(--muted-light);
  padding: 14px 0 10px;
}
.sms-bubble {
  background: var(--sms);
  border-radius: 20px 20px 20px 6px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.42;
  max-width: 262px;
  white-space: pre-line;
  align-self: flex-start;
}
.sms-bubble a { color: var(--sms-link); }
.sms-reply {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  margin-top: 12px;
  box-shadow: 0 6px 18px rgba(225, 29, 46, 0.4);
}
.phone-caption {
  font-size: 11px;
  color: var(--muted-light);
  text-align: center;
  padding-top: 12px;
}

/* ---------- dark sections ---------- */
.section-dark { background: var(--dark); color: #fff; }

/* problem */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
}
.problem-copy { display: grid; gap: 20px; align-content: start; }
.compare-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--dark-line);
}
.compare-row:last-child { border-bottom: 1px solid var(--dark-line); }
.compare-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-light);
  padding-top: 3px;
}
.compare-label.win { color: #fff; }
.compare-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.compare-lines li { color: var(--on-dark); font-size: 16px; }
.compare-row.win .compare-lines li { color: #fff; }
.compare-lines li.kicker { color: var(--brand-on-dark); font-weight: 700; }

/* ---------- how it works ---------- */
.how { padding: 96px 0; }
.section-intro { max-width: 640px; margin-bottom: 56px; display: grid; gap: 16px; }
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.how-num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--brand);
  line-height: 1;
}
.how-card h3 { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.how-card p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- built for towing ---------- */
.built {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.built-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  padding: 96px 0;
}
.built-sticky { position: sticky; top: 100px; align-self: start; display: grid; gap: 20px; justify-items: start; }
.built-sticky .lead { font-size: 18px; }
.demo-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.demo-link:hover { text-decoration: underline; }
.built-cards { display: grid; gap: 16px; }
.built-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 14px;
}
.built-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.built-card p { color: var(--muted); font-size: 16px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- install ---------- */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0;
}
.install-copy { display: grid; gap: 20px; }
.install-copy .fine { color: var(--muted); font-size: 16px; margin: 0; }
.code-block {
  background: var(--dark);
  color: #e5e7eb;
  border-radius: 18px;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: 0 24px 60px rgba(14, 18, 24, 0.18);
  margin: 0;
}
.code-block .tag { color: var(--muted-light); }
.code-block .kw { color: var(--brand-on-dark); }
.code-block .str { color: var(--code-str); }
.platform-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.platform-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 96px 0;
  align-items: center;
}
.pricing-copy { display: grid; gap: 20px; }
.spots-line { font-family: var(--mono); font-size: 15px; color: var(--muted-light); margin: 0; }
.price-card {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 36px;
  display: grid;
  gap: 22px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-amount { font-size: 64px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.price-per { font-size: 20px; font-weight: 600; color: var(--muted); }
.price-under { font-size: 15px; color: var(--muted); margin: 0; }
.price-checks {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.price-checks li { display: flex; gap: 10px; font-size: 16px; }
.price-checks .tick { color: var(--brand); font-weight: 900; }
.price-card .btn { width: 100%; }
.price-fine { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; }
.faq h2 { max-width: 44rem; }
.faq .section-intro { margin-bottom: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq-icon {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 400;
  color: var(--muted-light);
  line-height: 1;
}
.faq-a {
  color: var(--body);
  font-size: 17px;
  padding: 0 40px 24px 0;
  margin: 0;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ---------- final CTA ---------- */
.final-panel {
  background: var(--brand);
  border-radius: 28px;
  padding: 72px 64px;
  margin-bottom: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  color: #fff;
}
.final-panel h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
}
.final-panel .sub { color: var(--pale-red); font-size: 18px; margin: 14px 0 0; }
.final-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.site-footer .left { display: inline-flex; align-items: center; gap: 10px; }
.site-footer img { border-radius: 5px; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero, .problem-grid, .built-grid, .install-grid, .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  /* Grid items default to min-width:auto; long code lines would otherwise
     force the single column wider than the viewport. */
  .hero > *, .problem-grid > *, .built-grid > *, .install-grid > *, .pricing-grid > * {
    min-width: 0;
  }
  .hero { padding: 56px 0 56px; }
  .phone-glow { inset: 10% 0; } /* no horizontal bleed on narrow screens */
  .phone-wrap { justify-items: center; }
  .how-cards { grid-template-columns: 1fr; }
  .built-sticky { position: static; }
  .nav-center { display: none; }
  .nav-right .signin { display: none; }
  .final-panel {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
  .pricing-copy { order: -1; }
  .problem-grid { padding: 64px 0; }
  .how, .built-grid, .install-grid, .pricing-grid, .faq { padding-top: 64px; padding-bottom: 64px; }
}
