/* ==========================================================================
   Mass Speeding Ticket — shared design system ("Redline" theme)
   One stylesheet for every page. Tokens → base → layout → components.
   ========================================================================== */

:root {
  --bg: #0E0E11;
  --bg-alt: #131318;
  --surface: #17171C;
  --surface-2: #1E1E25;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #F5F5F3;
  --muted: #9A9AA3;
  --muted-2: #6E6E78;
  --red: #FF2D2D;
  --red-deep: #D81F1F;
  --red-soft: rgba(255,45,45,0.12);
  --amber: #FFB020;
  --amber-soft: rgba(255,176,32,0.12);
  --green: #39D98A;
  --green-soft: rgba(57,217,138,0.14);
  --display: 'Saira Condensed', sans-serif;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 24px 60px rgba(0,0,0,0.5);
  --maxw: 1140px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.display { font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 14px; }
.section-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.section-title { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.section-title .red { color: var(--red); }
.section-sub { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 14px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(14,14,17,0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; height: 66px; position: relative; }
.nav .nav-links { justify-self: start; }
.nav .brand { justify-self: center; }
.nav .nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.brand { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 23px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand .red { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 140ms; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); padding: 8px 10px; cursor: pointer; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line-strong); padding: 12px 24px 18px; }
  .nav.open .nav-links a { padding: 8px 0; font-size: 15px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; font-family: var(--sans); font-weight: 800; font-size: 15px; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 140ms, background 140ms, box-shadow 140ms; white-space: nowrap; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,45,45,0.28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-light { background: var(--text); color: #14141a; }
.btn-light:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero h1 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 72px; line-height: 0.9; letter-spacing: -0.015em; }
.hero h1 .red { color: var(--red); }
.hero-desc { color: var(--muted); font-size: 17px; margin: 20px 0 26px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 13px; color: var(--muted-2); }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 54px; }
}

/* ---------- chat (inline Allie) ---------- */
.chat { display: flex; flex-direction: column; height: 540px; max-height: 76vh; background: var(--surface-2); border: 1px solid rgba(255,45,45,0.40); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 48px rgba(255,45,45,0.12); overflow: hidden; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(180deg, rgba(255,45,45,0.22), rgba(255,45,45,0.05)); border-bottom: 1px solid rgba(255,45,45,0.28); }
.ch-id { display: flex; align-items: center; gap: 11px; }
.ch-av { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 16px; box-shadow: 0 0 0 3px rgba(255,45,45,0.25); }
.chat-header h4 { font-size: 14.5px; font-weight: 800; }
.ch-status { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.ch-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ch-window { font-size: 11.5px; color: var(--text); white-space: nowrap; }
.ch-window b { color: var(--red); }
.chat-messages { flex-grow: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.45; animation: slideIn 200ms ease-out; }
@keyframes slideIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.msg-bot { background: var(--surface-2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--line-strong); }
.msg-bot strong { color: var(--red); }
.msg-user { background: var(--red); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: none; align-self: flex-start; background: var(--surface-2); padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); }
.typing-dots { display: flex; gap: 4px; }
.typing-dots span { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: blink 1.4s infinite both; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0% { opacity: .2; } 20% { opacity: 1; } 100% { opacity: .2; } }
.chat-input { padding: 12px; background: var(--surface-2); border-top: 1px solid var(--line); }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-opt { background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); padding: 8px 13px; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--sans); transition: background 140ms, border-color 140ms; }
.chat-opt:hover { background: var(--red-soft); border-color: var(--red); }
.chat-email { display: flex; gap: 8px; width: 100%; }
.chat-email input { flex: 1; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--sans); background: var(--bg); color: var(--text); }
@media (max-width: 920px) { .chat { height: 480px; } }

/* ---------- CTA strip ---------- */
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 22px 24px; flex-wrap: wrap; }
.cta-strip-msg { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--muted); line-height: 1.4; max-width: 700px; }
@media (max-width: 760px) { .cta-strip { justify-content: center; text-align: center; } .cta-strip-msg { justify-content: center; } }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.card h3 { font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.card .go { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 700; font-size: 13.5px; }
a.card { text-decoration: none; color: inherit; transition: border-color 140ms, transform 140ms; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.step-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; color: var(--red); line-height: 1; }
.tag { display: inline-block; font-weight: 800; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.tag-red { background: var(--red-soft); color: var(--red); border: 1px solid rgba(255,45,45,0.35); }
.tag-green { background: var(--green-soft); color: var(--green); border: 1px solid rgba(57,217,138,0.35); }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 7px; line-height: 1.45; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: var(--sans); font-size: 14.5px; background: var(--bg); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
select { cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9AA3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.money-input { position: relative; }
.money-input::before { content: '$'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money-input input { padding-left: 28px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--line-strong); outline: none; accent-color: var(--red); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); cursor: pointer; border: 3px solid var(--surface); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 24px 60px rgba(0,0,0,0.5); }
.price-card .amt { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 48px; color: var(--red); line-height: 1; margin: 6px 0 12px; }
.price-card ul { list-style: none; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.price-card li { font-size: 13.5px; color: var(--muted); padding-left: 24px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-family: var(--sans); font-size: 16.5px; font-weight: 700; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq-q::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 240ms ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { color: var(--muted); font-size: 14.5px; line-height: 1.6; padding-bottom: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 50px 0 40px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-bottom: 28px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 22px; color: var(--text); text-decoration: none; }
.footer-brand .red { color: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.legal { border-top: 1px solid var(--line); padding-top: 22px; font-size: 12.5px; color: var(--muted-2); line-height: 1.75; }
.legal strong { color: var(--text); }
.legal + .legal { margin-top: 12px; }
.legal a { color: var(--muted); }

/* ---------- utilities ---------- */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.muted { color: var(--muted); }
.disclaimer { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; max-width: 860px; }
.disclaimer a { color: var(--muted); }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 15px; border-radius: 100px; }
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
