/* =========================================================================
   Tireweb.com · Site styles (marketing)
   Sits on top of colors_and_type.css — adds nav, footer, sections, components.
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tw-font-sans);
  font-weight: 400;
  font-size: var(--tw-text-md);
  line-height: var(--tw-leading-normal);
  color: var(--tw-fg-1);
  background: var(--tw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--tw-action); outline-offset: 2px; border-radius: 2px; }

/* ---------- Density variable (tweakable) ---------- */
:root {
  --site-density: 1;        /* 0.85 compact · 1 default · 1.15 airy */
  --accent-mix: 0.5;        /* 0 = navy-leaning · 1 = gold-leaning */
  --section-py: calc(var(--tw-space-24) * var(--site-density));
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--tw-space-6);
}
.container-tight { max-width: 1100px; }
.container-narrow { max-width: 880px; }

/* ===========================================================
   NAVIGATION
   =========================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tw-dur-base) var(--tw-ease),
              background var(--tw-dur-base) var(--tw-ease);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--tw-border);
  background: rgba(255,255,255,0.98);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--tw-space-8);
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.nav-brand img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-brand .product-tag {
  font-size: 11px;
  letter-spacing: var(--tw-tracking-caps);
  color: var(--tw-navy);
  font-weight: 700;
  display: none;
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--tw-border-2);
  line-height: 1;
}
.footer-brand img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 18px;
  filter: brightness(1.1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--tw-space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li > a,
.nav-links > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tw-fg-1);
  padding: 8px 4px;
  position: relative;
  transition: color var(--tw-dur-fast) var(--tw-ease);
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--tw-navy-600); }
.nav-links > li > a.is-active::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: -4px;
  height: 2px;
  background: var(--tw-gold);
  border-radius: 2px;
}
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-login {
  font-size: 14px; font-weight: 500; color: var(--tw-fg-1);
  padding: 8px 12px;
}
.nav-login:hover { color: var(--tw-navy-600); }
.nav-login.is-active { color: var(--tw-navy); font-weight: 700; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-4px);
  width: 980px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-6);
  box-shadow: var(--tw-shadow-4);
  padding: 24px;
  margin-top: 8px;     /* visual gap between trigger and panel */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tw-dur-base) var(--tw-ease),
              transform var(--tw-dur-base) var(--tw-ease);
}
/* Bridge over the visual gap so the hover chain doesn't break.
   Sits invisibly between trigger and panel — keeps :hover alive. */
.mega::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0; height: 16px;
  background: transparent;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.is-open .mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.has-mega > button { cursor: pointer; }
.has-mega > button svg {
  transition: transform var(--tw-dur-fast) var(--tw-ease);
}
.has-mega:hover > button svg,
.has-mega.is-open > button svg { transform: rotate(180deg); }
.mega-header {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tw-bg-3);
  margin-bottom: 6px;
}
.mega-header .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase; color: var(--tw-fg-3);
}
.mega-header a { color: var(--tw-action); font-size: 13px; font-weight: 500; }
.mega-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--tw-radius-3);
  align-items: start;
  transition: background var(--tw-dur-fast) var(--tw-ease);
  color: var(--tw-fg-1);
}
.mega-item:hover { background: var(--tw-navy-050); }
.mega-item .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--tw-navy-050);
  display: flex; align-items: center; justify-content: center;
  color: var(--tw-navy);
  flex-shrink: 0;
}
.mega-item .icon svg { width: 16px; height: 16px; }
.mega-item.is-featured .icon { background: var(--tw-gold-100); color: var(--tw-gold-900); }
.mega-item h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tw-navy);
  display: flex; gap: 6px; align-items: baseline;
}
.mega-item h4 .tag {
  font-size: 9px;
  letter-spacing: var(--tw-tracking-caps);
  font-weight: 800;
  color: var(--tw-navy-600);
}
.mega-item p {
  margin: 0;
  font-size: 11.5px;
  color: var(--tw-fg-3);
  line-height: 1.4;
}

/* Grouped mega menu — 3 audience columns + footer */
.mega.mega-grouped {
  width: 1020px;
  padding: 24px 24px 16px;
  gap: 4px 24px;
}
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-col-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--tw-bg-3);
}
.mega-col-head .num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tw-gold-800);
  font-variant-numeric: tabular-nums;
}
.mega-col-head .title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase;
  color: var(--tw-navy);
}
.mega-footer {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 12px 0;
  margin-top: 8px;
  border-top: 1px solid var(--tw-bg-3);
}
.mega-footer .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase; color: var(--tw-fg-3);
}
.mega-footer a { color: var(--tw-action); font-size: 13px; font-weight: 500; }

/* ─── Product family groups (audience-based) ─── */
.product-groups {
  position: relative;
  display: grid;
  gap: 72px;
}
.product-group {
  position: relative;
}
.product-group-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tw-border);
}
.product-group-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tw-navy);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.product-group-title .num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tw-gold-800);
  font-variant-numeric: tabular-nums;
}
.product-group-lede {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tw-fg-2);
  font-weight: 350;
  margin: 0;
  max-width: 460px;
  justify-self: end;
  text-align: right;
}
@media (max-width: 1100px) {
  .product-group-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-group-lede {
    justify-self: start;
    text-align: left;
  }
}
@media (max-width: 1100px) {
  .mega.mega-grouped {
    width: min(720px, calc(100vw - 32px));
    grid-template-columns: 1fr 1fr;
  }
  .mega-footer { grid-column: 1 / -1; }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--tw-radius-3);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  transition: background var(--tw-dur-fast) var(--tw-ease),
              color var(--tw-dur-fast) var(--tw-ease),
              border-color var(--tw-dur-fast) var(--tw-ease),
              transform var(--tw-dur-fast) var(--tw-ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--tw-action);
  color: #fff;
}
.btn-primary:hover { background: var(--tw-action-hover); }
.btn-primary:active { background: var(--tw-action-press); }

.btn-gold {
  background: var(--tw-gold);
  color: var(--tw-navy);
}
.btn-gold:hover { background: var(--tw-gold-500); }

.btn-ghost {
  background: transparent;
  color: var(--tw-navy);
  border-color: var(--tw-border-2);
}
.btn-ghost:hover { background: var(--tw-navy-050); border-color: var(--tw-navy-300); }

.btn-dark {
  background: var(--tw-navy);
  color: #fff;
}
.btn-dark:hover { background: var(--tw-navy-800); }

.btn-link {
  padding: 0;
  background: none;
  color: var(--tw-action);
  font-weight: 500;
  font-size: 14px;
}
.btn-link:hover { color: var(--tw-action-hover); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ===========================================================
   SECTION RHYTHM
   =========================================================== */
section { padding: var(--section-py) 0; }
section.tight { padding: calc(var(--section-py) * 0.6) 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase;
  color: var(--tw-navy-600);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--tw-gold-800); }

.section-title {
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tw-navy);
  margin: 0 0 16px;
}
.section-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--tw-fg-2);
  font-weight: 350;
  max-width: 640px;
  margin: 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head > .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
.section-head > .section-title { grid-column: 1; grid-row: 2; }
.section-head > .section-lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
@media (max-width: 880px) {
  .section-head > .eyebrow,
  .section-head > .section-title,
  .section-head > .section-lede { grid-column: 1; grid-row: auto; }
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  margin-bottom: 64px;
}
.section-head.center .section-lede { margin: 0 auto; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* warm-gold glow top-left */
  content: '';
  position: absolute;
  top: -200px; left: -240px;
  width: 720px; height: 720px;
  background: radial-gradient(circle at center, rgba(243,179,0,calc(0.18 * (1 - var(--accent-mix) + 0.3))), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  /* cool-navy glow bottom-right */
  content: '';
  position: absolute;
  bottom: -240px; right: -240px;
  width: 800px; height: 800px;
  background: radial-gradient(circle at center, rgba(30,58,107,0.16), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--tw-navy);
  margin: 0 0 22px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero h1 .gold { color: var(--tw-gold); }
.hero h1 .it {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--tw-gold-800);
  letter-spacing: -0.02em;
}
.hero h1 .underline {
  display: inline-block;
  position: relative;
}
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 14px;
  background: var(--tw-gold);
  opacity: 0.35;
  z-index: -1;
  border-radius: 2px;
}
.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--tw-fg-2);
  font-weight: 350;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 13px;
  color: var(--tw-fg-3);
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tw-success); display: inline-block; margin-right: 6px; vertical-align: middle; }

/* Eyebrow with leading rule (combo with E's photo direction) */
.eyebrow.with-rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow.with-rule::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Hero stat badges (combo with E's photo direction) */
.hero-badges {
  margin-top: 44px;
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--tw-border);
  max-width: 540px;
}
.hero-badge .v {
  font-size: 28px;
  font-weight: 800;
  color: var(--tw-navy);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.hero-badge .v .u {
  color: var(--tw-gold-800);
  font-size: 0.72em;
  margin-left: 1px;
}
.hero-badge .l {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tw-fg-3);
  font-weight: 700;
}

/* hero device collage */
.hero-collage {
  position: relative;
  height: 580px;
}
.hero-collage img {
  position: absolute;
  filter: drop-shadow(0 30px 60px rgba(15,23,42,0.18));
}
.hero-collage .desktop {
  width: 88%;
  top: 20px;
  right: -40px;
  transform: rotate(-3deg);
}
.hero-collage .phone {
  width: 38%;
  bottom: 20px;
  left: -10px;
  transform: rotate(4deg);
  z-index: 2;
}
/* Floating cards over hero collage */
.hero-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-4);
  box-shadow: var(--tw-shadow-3);
  padding: 12px 14px;
  font-size: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-float .ic {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-float .ic svg { width: 14px; height: 14px; }
.hero-float .label { font-size: 10px; color: var(--tw-fg-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
.hero-float .value { font-size: 14px; color: var(--tw-navy); font-weight: 700; line-height: 1.1; }
.hero-float.f-orders {
  top: 50px; left: -20px;
}
.hero-float.f-orders .ic { background: var(--tw-success-tint); color: var(--tw-success); }
.hero-float.f-stock {
  top: 250px; right: -20px;
}
.hero-float.f-stock .ic { background: var(--tw-action-tint); color: var(--tw-action); }

/* ===========================================================
   LOGO MARQUEE
   =========================================================== */
.logo-strip {
  border-top: 1px solid var(--tw-border);
  border-bottom: 1px solid var(--tw-border);
  padding: 32px 0;
  background: var(--tw-bg);
}
.logo-strip .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase;
  color: var(--tw-fg-3);
  text-align: center;
  margin-bottom: 24px;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  gap: 20px;
}
.logo-row .item {
  display: flex; align-items: center; justify-content: center;
  height: 72px;
  padding: 8px;
  background: transparent;
  border-radius: 8px;
  transition: opacity var(--tw-dur-base) var(--tw-ease),
              filter var(--tw-dur-base) var(--tw-ease);
}
.logo-row .item img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--tw-dur-base) var(--tw-ease),
              opacity var(--tw-dur-base) var(--tw-ease);
}
.logo-row .item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
/* Light-background logos (Express/BJ's) get a soft grey backdrop to match the dark tiles' visual weight */
.logo-row .item.is-light {
  background: #e8ecf2;
}
@media (max-width: 1100px) {
  .logo-row { grid-template-columns: repeat(4, 1fr); row-gap: 16px; }
}
@media (max-width: 600px) {
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .logo-row .item { height: 64px; }
}

/* ===========================================================
   PRODUCTS GRID — supply-chain inspired layout
   =========================================================== */
.products {
  background: var(--tw-bg-2);
  position: relative;
}
.products::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/tire-track-pattern.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
.product-card {
  background: #fff;
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-4);
  padding: 28px 24px 24px;
  position: relative;
  transition: transform var(--tw-dur-base) var(--tw-ease),
              box-shadow var(--tw-dur-base) var(--tw-ease),
              border-color var(--tw-dur-base) var(--tw-ease);
  display: flex; flex-direction: column;
  min-height: 240px;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--tw-navy));
  transform: scaleX(0.15);
  transform-origin: left;
  transition: transform var(--tw-dur-slow) var(--tw-ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tw-shadow-3);
  border-color: transparent;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card .pc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.product-card .pc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase;
  color: var(--tw-fg-3);
}
.product-card .pc-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--tw-radius-3);
  background: var(--tw-navy-050);
  color: var(--tw-navy);
}
.product-card .pc-icon svg { width: 20px; height: 20px; }
.product-card.gold .pc-icon { background: var(--tw-gold-100); color: var(--tw-gold-900); }
.product-card .pc-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--tw-navy);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}
.product-card .pc-name .sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tw-tracking-caps);
  color: var(--tw-fg-3);
  margin-top: 4px;
}
.product-card .pc-desc {
  font-size: 14px;
  color: var(--tw-fg-2);
  line-height: 1.5;
  margin: 12px 0 24px;
  flex: 1;
}
.product-card .pc-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--tw-action);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.product-card .pc-link svg {
  width: 14px; height: 14px;
  transition: transform var(--tw-dur-fast) var(--tw-ease);
}
.product-card:hover .pc-link svg { transform: translateX(3px); }

/* product card variants: subtle accent */
/* Card accent is owned by the audience group, not the individual product.
   01 Wholesalers & Distributors → navy, 02 Retailers & Dealers → gold,
   03 Platform & Data → action blue. */
.product-groups > .product-group:nth-child(1) .product-card { --card-accent: var(--tw-navy); }
.product-groups > .product-group:nth-child(2) .product-card { --card-accent: var(--tw-gold); }
.product-groups > .product-group:nth-child(3) .product-card { --card-accent: var(--tw-action); }

/* ===========================================================
   FEATURE / DEEP DIVE
   =========================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row.flip { grid-template-columns: 1fr 1fr; }
.feature-row.flip .copy { order: 2; }
.feature-row.flip .visual { order: 1; }
.feature-row .copy h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--tw-navy);
  margin: 0 0 16px;
}
.feature-row .copy p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--tw-fg-2);
  font-weight: 350;
  margin: 0 0 24px;
}
.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  color: var(--tw-fg-1);
  line-height: 1.55;
}
.feature-list li code {
  font-family: var(--tw-font-mono);
  font-size: 0.88em;
  background: var(--tw-bg-3);
  color: var(--tw-navy);
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1;
  vertical-align: baseline;
}
.feature-list li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tw-action-tint);
  color: var(--tw-action);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B7BF0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.feature-visual {
  position: relative;
  border-radius: var(--tw-radius-8);
  background: var(--tw-bg-2);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  border: 1px solid var(--tw-border);
}
.feature-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===========================================================
   STATS
   =========================================================== */
.stats {
  background: var(--tw-bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(243,179,0,0.10), transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(43,123,240,0.10), transparent 55%);
  pointer-events: none;
}
.stats .container { position: relative; }
.stats .eyebrow { color: var(--tw-gold); }
.stats .section-title { color: #fff; }
.stats .section-lede { color: var(--tw-fg-onDark-2); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.stat {
  padding: 32px 18px 28px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--tw-gold);
  line-height: 1;
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.stat .num .unit { color: #fff; font-size: 0.55em; vertical-align: top; margin-left: 2px; font-weight: 700; }
.stat .label {
  font-size: 14px;
  color: var(--tw-fg-onDark-2);
  line-height: 1.45;
  margin: 0;
  max-width: 220px;
}

/* ===========================================================
   INTEGRATIONS
   =========================================================== */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.integ {
  background: #fff;
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-3);
  padding: 18px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--tw-fg-2);
  transition: all var(--tw-dur-fast) var(--tw-ease);
}
.integ:hover { border-color: var(--tw-navy-300); color: var(--tw-navy); transform: translateY(-2px); }
.integ .name { display: block; font-size: 13px; color: var(--tw-navy); font-weight: 700; margin-bottom: 2px; letter-spacing: -0.01em;}
.integ .kind { font-size: 10px; color: var(--tw-fg-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;}

/* ===========================================================
   TESTIMONIAL
   =========================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-4);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.testimonial.featured {
  background: var(--tw-navy);
  color: #fff;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.testimonial.featured::before {
  content: '"';
  position: absolute;
  top: -40px; right: 0;
  font-size: 240px;
  font-family: Georgia, serif;
  color: var(--tw-gold);
  opacity: 0.4;
  line-height: 1;
}
.testimonial blockquote {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--tw-navy);
  text-wrap: pretty;
  flex: 1;
}
.testimonial.featured blockquote { color: #fff; font-size: 22px; }
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--tw-bg-3);
}
.testimonial.featured .who { border-top-color: rgba(255,255,255,0.12); }
.testimonial .who .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--tw-navy-100);
  color: var(--tw-navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.testimonial.featured .who .avatar { background: var(--tw-gold); color: var(--tw-navy); }
.testimonial .who .name { font-size: 13px; font-weight: 700; color: var(--tw-navy); margin: 0; }
.testimonial.featured .who .name { color: #fff; }
.testimonial .who .role { font-size: 12px; color: var(--tw-fg-3); margin: 0; }
.testimonial.featured .who .role { color: var(--tw-fg-onDark-2); }

/* ===========================================================
   CTA BLOCK
   =========================================================== */
.cta-block {
  background: var(--tw-navy);
  color: #fff;
  border-radius: var(--tw-radius-8);
  padding: 64px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(243,179,0,0.18), transparent 65%);
  pointer-events: none;
}
.cta-block h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}
.cta-block p {
  font-size: 17px;
  color: var(--tw-fg-onDark-2);
  font-weight: 350;
  margin: 0;
  line-height: 1.5;
}
.cta-block .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end;}
.cta-block .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.cta-block .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
@media (max-width: 880px) { .cta-block .actions { justify-content: flex-start; } }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--tw-bg-darkbar);
  color: var(--tw-fg-onDark-2);
  padding: 80px 0 28px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--tw-fg-onDark-2);
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.footer-col a {
  font-size: 13px;
  color: var(--tw-fg-onDark-2);
  transition: color var(--tw-dur-fast) var(--tw-ease);
}
.footer-col a:hover { color: var(--tw-gold); }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  color: var(--tw-fg-onDark-2);
}
.footer-bar .links { display: flex; gap: 24px; }
.footer-bar .links a:hover { color: var(--tw-gold); }

/* socials */
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--tw-fg-onDark-2);
  transition: all var(--tw-dur-fast) var(--tw-ease);
}
.socials a:hover { background: var(--tw-gold); color: var(--tw-navy); }
.socials svg { width: 14px; height: 14px; }

/* ===========================================================
   TIRESEARCH EMBED — code snippet + live-preview composite
   used on the home Retail section to show the widget concept.
   =========================================================== */
.ts-embed {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.ts-embed::before {
  /* subtle gold glow */
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(243,179,0,0.16), transparent 60%);
  pointer-events: none;
}
.ts-code {
  position: absolute;
  top: 28px; left: 28px; right: 80px;
  background: #0a1426;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  z-index: 1;
}
.ts-code-bar {
  background: rgba(255,255,255,0.04);
  padding: 8px 12px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ts-code-bar .d {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.ts-code-bar .d.r { background: #ff5f57; }
.ts-code-bar .d.y { background: #febc2e; }
.ts-code-bar .d.g { background: #28c840; }
.ts-code-bar .f {
  margin-left: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.ts-code-body {
  margin: 0;
  padding: 16px 18px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #e6edf3;
  white-space: pre-wrap;
  word-break: break-word;
}
.ts-code-body .c { color: #7a8aa3; font-style: italic; }
.ts-code-body .t { color: #ff7b72; }
.ts-code-body .a { color: #d2a8ff; }
.ts-code-body .s { color: #a5d6ff; }

.ts-preview {
  position: absolute;
  bottom: 28px; right: 28px;
  width: 60%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 2;
  overflow: hidden;
}
.ts-prev-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--tw-bg-2);
  border-bottom: 1px solid var(--tw-border);
  font-size: 10.5px;
  color: var(--tw-fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.ts-prev-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tw-success);
  box-shadow: 0 0 0 2px rgba(27,158,90,0.18);
}
.ts-prev-card {
  padding: 14px;
}
.ts-prev-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--tw-bg-2);
  border: 1px solid var(--tw-border);
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--tw-fg-1);
  font-weight: 500;
}
.ts-prev-search svg { width: 14px; height: 14px; color: var(--tw-fg-3); }
.ts-prev-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--tw-bg-3);
}
.ts-prev-tire {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #0F172A;
  background-image: radial-gradient(circle at center, #93A0B8 0 16%, #0F172A 17%);
}
.ts-prev-name { font-size: 13px; font-weight: 700; color: var(--tw-navy); }
.ts-prev-spec { font-size: 11px; color: var(--tw-fg-3); margin-top: 2px; }
.ts-prev-price { font-size: 16px; font-weight: 800; color: var(--tw-price); letter-spacing: -0.01em; }

/* ===========================================================
   ANIMATIONS — scroll reveal (data-reveal)
   =========================================================== */
/* Note: no opacity:0 starting state. Lighthouse/SEO bots need to detect
   First Contentful Paint immediately; hiding content until JS reveals it
   produces NO_FCP warnings. We animate transform only. */
[data-reveal] {
  transform: translateY(14px);
  transition: transform 600ms var(--tw-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform;
}
[data-reveal].is-visible {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 16px; }
  .nav-links > li > a, .nav-links > li > button { font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-collage { height: 460px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip .copy { order: 1; }
  .feature-row.flip .visual { order: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial.featured { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .integrations-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-block { grid-template-columns: 1fr; padding: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .mega { width: 600px; grid-template-columns: repeat(2, 1fr); }
}

/* ===== Mobile nav (≤ 900px) ===== */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none !important; }
  .nav-mobile-toggle { display: inline-flex !important; margin-left: auto; }
  .nav-inner { gap: 12px; }
  .nav-brand img { height: 28px; }
}

@media (max-width: 720px) {
  :root { --section-py: var(--tw-space-16); }
  .product-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 36px; }
  .hero-collage { height: 380px; }
  .cta-block { padding: 32px 24px; }
  .footer-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
  section { padding: var(--section-py) 0; }
  .container { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero h1 { font-size: 30px; }
  .section-title { font-size: clamp(28px, 7vw, 36px); }
}

/* ===== Hamburger button ===== */
.nav-mobile-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 0; padding: 0;
  cursor: pointer; border-radius: 8px;
  transition: background var(--tw-dur-fast) var(--tw-ease);
}
.nav-mobile-toggle:hover { background: var(--tw-navy-050); }
.nav-mobile-toggle .bar {
  display: block; position: absolute;
  width: 22px; height: 2px;
  background: var(--tw-navy); border-radius: 2px;
  transition: transform var(--tw-dur-base) var(--tw-ease),
              opacity var(--tw-dur-fast) var(--tw-ease);
}
.nav-mobile-toggle { position: relative; }
.nav-mobile-toggle .bar:nth-child(1) { transform: translateY(-7px); }
.nav-mobile-toggle .bar:nth-child(3) { transform: translateY(7px); }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: rotate(-45deg); }

/* ===== Mobile drawer ===== */
.nav-mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 22, 48, 0.5);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--tw-dur-base) var(--tw-ease);
}
.nav-mobile-backdrop.is-open { opacity: 1; }

.nav-mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--tw-bg);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--tw-dur-base) var(--tw-ease);
  box-shadow: -8px 0 32px rgba(8, 22, 48, 0.15);
  overflow-y: auto;
}
.nav-mobile-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--tw-border);
  position: sticky; top: 0; background: var(--tw-bg); z-index: 2;
}
.drawer-brand img { height: 28px; display: block; }
.drawer-close {
  width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer;
  border-radius: 8px;
  color: var(--tw-fg-1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tw-dur-fast) var(--tw-ease);
}
.drawer-close:hover { background: var(--tw-navy-050); color: var(--tw-navy); }
.drawer-close svg { width: 22px; height: 22px; }

.drawer-nav {
  padding: 12px 12px 24px;
  flex: 1;
  display: flex; flex-direction: column;
}

.drawer-link {
  display: block;
  padding: 14px 16px;
  font-size: 16px; font-weight: 600;
  color: var(--tw-fg-1);
  border-radius: 8px;
  transition: background var(--tw-dur-fast) var(--tw-ease),
              color var(--tw-dur-fast) var(--tw-ease);
}
.drawer-link:hover { background: var(--tw-navy-050); color: var(--tw-navy); }
.drawer-link.is-active { background: var(--tw-navy-050); color: var(--tw-navy); }

.drawer-group { padding: 0; }
.drawer-group summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: 16px; font-weight: 600;
  color: var(--tw-fg-1);
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary:hover { background: var(--tw-navy-050); color: var(--tw-navy); }
.drawer-group summary svg {
  width: 16px; height: 16px;
  transition: transform var(--tw-dur-base) var(--tw-ease);
}
.drawer-group[open] summary svg { transform: rotate(180deg); }

.drawer-products {
  padding: 4px 4px 8px;
  display: flex; flex-direction: column; gap: 14px;
}
.drawer-group-col {
  padding: 12px 12px 6px;
  background: var(--tw-bg-2);
  border-radius: 8px;
}
.drawer-group-title {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: var(--tw-tracking-caps);
  text-transform: uppercase;
  color: var(--tw-navy);
}
.drawer-group-title .num {
  color: var(--tw-gold-800);
  margin-right: 6px;
}
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--tw-fg-1);
  transition: background var(--tw-dur-fast) var(--tw-ease);
}
.drawer-item:hover { background: var(--tw-bg); color: var(--tw-navy); }
.drawer-item .i {
  width: 28px; height: 28px;
  background: var(--tw-bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--tw-navy);
  flex-shrink: 0;
}
.drawer-item .i svg { width: 14px; height: 14px; }

.drawer-cta {
  padding: 20px 22px 28px;
  border-top: 1px solid var(--tw-border);
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; bottom: 0;
  background: var(--tw-bg);
}
.drawer-phone {
  text-align: center;
  font-size: 14px; font-weight: 600;
  color: var(--tw-fg-2);
}
.drawer-phone:hover { color: var(--tw-action); }
