/* ======================================
   TREADFLEET — Landing Page Styles
   High-converting email capture page.
   Distinct from the main store aesthetic:
   darker, more urgent, frictionless.
   ====================================== */

:root {
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --bg: #0d0d0d;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --fg: #f0ede6;
  --fg-muted: #888;
  --fg-dim: #555;
  --accent: #FF5A1F;
  --accent-dim: rgba(255,90,31,0.12);
  --border: rgba(255,255,255,0.07);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* — Topbar — */
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}
.landing-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.landing-logo span { color: var(--accent); }
.landing-topbar-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.landing-topbar-nav a {
  font-size: 0.82rem;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.landing-topbar-nav a:hover { color: var(--fg); }
.landing-topbar-nav .btn-ghost {
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s;
}
.landing-topbar-nav .btn-ghost:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
}

/* — Main — */
.landing-main { flex: 1; }

/* — Hero Section — */
.hero-lp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 73px);
  position: relative;
  overflow: hidden;
}

/* background: dark asphalt with subtle noise grain */
.hero-lp::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(255,90,31,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(255,90,31,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-lp__content {
  padding: clamp(60px, 8vw, 100px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-lp__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,90,31,0.2);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  width: fit-content;
}
.hero-lp__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-lp__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-lp__headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-lp__sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 44px;
}

/* — Email Form — */
.landing-form {
  max-width: 420px;
}
.landing-form__label {
  display: block;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.landing-form__row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.landing-form__row:focus-within {
  border-color: rgba(255,90,31,0.4);
}
.landing-form__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
}
.landing-form__input::placeholder { color: var(--fg-dim); }
.landing-form__btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.landing-form__btn:hover { background: #e04e15; }
.landing-form__error {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #ff6b4a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-form__fine {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--fg-dim);
  line-height: 1.5;
}
.landing-form__label--sms {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-top: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.landing-form__row--phone {
  margin-top: 0;
}

/* — Social proof — */
.hero-lp__proof {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-lp__proof-avatars {
  display: flex;
}
.hero-lp__proof-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--bg-card);
  margin-left: -8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--fg-muted);
}
.hero-lp__proof-avatar:first-child { margin-left: 0; }
.hero-lp__proof-text {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.hero-lp__proof-text strong {
  color: var(--fg);
  font-weight: 600;
}

/* — Right visual panel — */
.hero-lp__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* CSS tire illustration */
.tire-hero {
  position: relative;
  width: 380px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tire-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 14px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tire-hero__ring--outer {
  width: 420px; height: 420px;
  border-color: #1c1c1c;
  box-shadow: 0 0 80px rgba(255,90,31,0.06), inset 0 0 40px rgba(0,0,0,0.5);
  animation: tire-spin 20s linear infinite;
}
.tire-hero__ring--inner {
  width: 300px; height: 300px;
  border-color: #222;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  animation: tire-spin 15s linear infinite reverse;
}
.tire-hero__hub {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a2a2a, #0d0d0d);
  border: 6px solid #1a1a1a;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tire-hero__hub::after {
  content: '';
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #111;
  border: 3px solid rgba(255,90,31,0.2);
}
/* tread marks on outer ring */
.tire-hero__ring--outer::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255,255,255,0.02) 0deg 6deg,
    transparent 6deg 18deg
  );
}
@keyframes tire-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* stat cards floating around tire */
.tire-hero__stat {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 140px;
}
.tire-hero__stat--1 { top: 10%; left: -20px; }
.tire-hero__stat--2 { bottom: 20%; left: -30px; }
.tire-hero__stat--3 { top: 25%; right: -10px; }
.tire-hero__stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.tire-hero__stat-lbl {
  font-size: 0.68rem;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* — Benefits Strip — */
.benefits-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px clamp(24px, 5vw, 80px);
}
.benefits-strip__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.benefit-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.benefit-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}
.benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.2;
}
.benefit-card__body {
  font-size: 0.83rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* — Social Proof Section — */
.social-proof {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 80px);
  max-width: 1300px;
  margin: 0 auto;
}
.social-proof__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.social-proof__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.15;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: background 0.2s, border-color 0.2s;
}
.testimonial:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.12);
}
.testimonial__stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial__quote {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial__author {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* — Final CTA — */
.cta-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 80px);
  text-align: center;
}
.cta-section__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.05;
}
.cta-section__sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.cta-section .landing-form {
  margin: 0 auto;
  max-width: 460px;
}
.cta-section .landing-form__fine {
  text-align: center;
}

/* — Footer — */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 28px clamp(24px, 5vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.landing-footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.landing-footer__logo span { color: var(--accent); }
.landing-footer__copy {
  font-size: 0.72rem;
  color: var(--fg-dim);
}

/* — Captured State (success overlay) — */
.captured-banner {
  background: rgba(255,90,31,0.08);
  border: 1px solid rgba(255,90,31,0.25);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--fg);
}
.captured-banner__icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* — Responsive — */
@media (max-width: 900px) {
  .hero-lp { grid-template-columns: 1fr; }
  .hero-lp__visual { display: none; }
  .benefits-strip__inner { grid-template-columns: 1fr; gap: 28px; }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .landing-topbar-nav a:not(.btn-ghost) { display: none; }
  .landing-form__row { flex-direction: column; }
  .landing-form__btn { padding: 14px; text-align: center; }
  .landing-footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* — Stats Panel (drivedeal-plus hero visual) — */
.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(40px, 6vw, 80px);
}
.stats-panel .tire-hero__stat {
  position: static;
  min-width: 220px;
}

/* — Tiers Section — */
.tiers-section {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 80px);
  max-width: 1300px;
  margin: 0 auto;
}
.tiers-section__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.tiers-section__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.15;
}

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.tier-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(255,90,31,0.1);
}

.tier-card__badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255,90,31,0.2);
  border-radius: var(--radius);
  padding: 4px 10px;
  width: fit-content;
  margin-bottom: 16px;
}
.tier-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.tier-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}
.tier-card__price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--fg);
  line-height: 1;
}
.tier-card__price-period {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.tier-card__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tier-card__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.tier-card__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.tier-card__check--off {
  color: var(--fg-dim);
  font-size: 1rem;
}

.tier-card__cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s;
  text-decoration: none;
}
.tier-card__cta:hover { background: #e04e15; }
.tier-card__cta--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.tier-card__cta--secondary:hover {
  background: var(--bg-card-hover);
  color: var(--fg);
}

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

/* Referral section */
.referral-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 80px);
}
.referral-section__label {
  color: var(--accent);
  font-size: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.referral-section__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.15;
}
.referral-section__sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.referral-section__btn {
  display: inline-block;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}
.referral-section__btn:hover { background: #e04e15; }
.referral-section__confirm {
  display: none;
  margin-left: 12px;
  font-size: 0.82rem;
  color: var(--accent);
  vertical-align: middle;
}

@media (max-width: 600px) {
  .referral-section__btn { display: block; width: 100%; }
}