/* ============================================================================
   Tyre Route, Design System
   Implements tyreroute-design-reference.html: signal amber (the one action
   color), route blue (links/info/secondary), neutral ink on canvas/surface.
   Display = Space Grotesk, body = Inter, data = JetBrains Mono (all loaded via
   Google Fonts in the layout). Scoped to .th-root so it never bleeds into
   Metronic-styled pages elsewhere on the site.

   Legacy token names are kept to avoid a churn pass across ~1000 selectors:
   "--th-orange" now carries the signal amber (not red), and "--th-cream-2"
   carries the canvas grey. Substitute mentally when reading old rules.
   ============================================================================ */

.th-root {
  /* ----- Neutrals ----- */
  --th-ink: #14171C;
  --th-ink-2: #2A2F38;
  --th-ink-3: #3A404B;
  --th-graphite: #2A2F38;
  --th-slate: #5A6472;
  --th-mist: #8E97A4;
  --th-cream: #FFFFFF;
  --th-cream-2: #F6F7F9;
  --th-canvas: #F6F7F9;
  --th-paper: #FFFFFF;
  --th-surface: #FFFFFF;
  --th-silver: #8E97A4;
  --th-line: #E4E7EC;
  --th-line-soft: #EEF0F3;
  --th-line-strong: #CDD2D9;
  --th-muted: #5A6472;

  /* ----- Signal amber, primary accent (action) ----- */
  --th-orange: #C50022;
  --th-orange-2: #9D0013;
  --th-signal: #9D0013;
  --th-signal-tint: #FBE9EC;

  /* ----- Route blue, trust + links + secondary ----- */
  --th-route: #1F6FEB;
  --th-route-tint: #EAF1FE;

  /* ----- Semantic state ----- */
  --th-success: #1F9D55;  --th-success-tint: #E7F6EE;
  --th-warn: #E8A400;     --th-warn-tint: #FFF6E0;
  --th-danger: #D64545;   --th-danger-tint: #FBEAEA;
  --th-info: #1F6FEB;

  /* ----- EU label scale, regulated (official label colors) ----- */
  --eu-a: #00A651;
  --eu-b: #52B847;
  --eu-c: #BFD730;
  --eu-d: #FFF200;
  --eu-e: #FDB913;
  --eu-f: #F37021;
  --eu-g: #ED1C24;

  /* ----- Type ----- */
  --th-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --th-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --th-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* ----- Radius ----- */
  --th-r-sm: 6px;
  --th-r-md: 10px;
  --th-r-lg: 16px;
  --th-r-xl: 24px;

  /* ----- Elevation ----- */
  --th-sh-1: 0 1px 2px rgba(20,23,28,.06), 0 1px 3px rgba(20,23,28,.04);
  --th-sh-2: 0 4px 12px rgba(20,23,28,.08);
  --th-sh-3: 0 12px 32px rgba(20,23,28,.12);

  background: var(--th-canvas);
  color: var(--th-ink);
  font-family: var(--th-font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.th-root *,
.th-root *::before,
.th-root *::after { box-sizing: border-box; }

/* ------- Type primitives ------- */
.th-root .th-display {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
.th-root .th-display-tight {
  font-family: var(--th-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.th-root .th-overline {
  font-family: var(--th-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--th-muted);
  display: inline-block;
}
.th-root .th-mono { font-family: var(--th-font-mono); }

/* ------- Layout helpers ------- */
.th-root .th-wrap { width: min(100% - 32px, 1400px); margin-inline: auto; }
.th-root .th-stretch { width: 100%; }

/* ------- Buttons ------- */
.th-root .th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--th-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid var(--th-line);
  border-radius: var(--th-r-sm);
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
  color: var(--th-ink);
  background: var(--th-surface);
}
.th-root .th-btn:active { transform: translateY(1px); }
.th-root .th-btn-primary { background: var(--th-orange); color: #fff; border-color: transparent; }
.th-root .th-btn-primary:hover { background: var(--th-orange-2); color: #fff; }
.th-root .th-btn-dark { background: var(--th-ink); color: #fff; border-color: transparent; }
.th-root .th-btn-dark:hover { background: var(--th-graphite); color: #fff; }
.th-root .th-btn-secondary { background: var(--th-surface); color: var(--th-ink); border-color: var(--th-line); }
.th-root .th-btn-secondary:hover { border-color: var(--th-mist); }
.th-root .th-btn-outline {
  background: transparent;
  color: var(--th-ink);
  border: 1px solid var(--th-ink);
}
.th-root .th-btn-outline:hover { background: var(--th-ink); color: #fff; }
.th-root .th-btn-ghost {
  background: transparent;
  color: var(--th-route);
  border-color: transparent;
}
.th-root .th-btn-ghost:hover { background: var(--th-route-tint); color: var(--th-route); border-color: transparent; }
.th-root .th-btn-onink {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.th-root .th-btn-onink:hover { background: rgba(255,255,255,.10); color: #fff; }
.th-root .th-btn-sm { padding: 7px 12px; font-size: 13px; }
.th-root .th-btn-lg { padding: 13px 24px; font-size: 15px; }

/* ------- Form controls ------- */
.th-root .th-input,
.th-root .th-select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--th-font-mono);
  font-size: 14px;
  background: var(--th-surface);
  color: var(--th-ink);
  border: 1px solid var(--th-line);
  border-radius: var(--th-r-md);
  outline: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.th-root .th-input::placeholder { color: var(--th-mist); }
.th-root .th-input:focus,
.th-root .th-select:focus {
  border-color: var(--th-route);
  box-shadow: 0 0 0 3px var(--th-route-tint);
}
.th-root .th-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230E1013' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ------- Stickers & chips ------- */
.th-root .th-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--th-ink);
  color: var(--th-cream);
  font-family: var(--th-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}
.th-root .th-sticker-orange { background: var(--th-orange); color: var(--th-ink); }

/* ------- EU label tiles ------- */
.th-root .th-eu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--th-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--th-ink);
  border-radius: 3px;
}
.th-root .th-eu[data-g="A"] { background: var(--eu-a); color: #fff; }
.th-root .th-eu[data-g="B"] { background: var(--eu-b); color: #fff; }
.th-root .th-eu[data-g="C"] { background: var(--eu-c); }
.th-root .th-eu[data-g="D"] { background: var(--eu-d); }
.th-root .th-eu[data-g="E"] { background: var(--eu-e); }

/* ------- Cards ------- */
.th-root .th-card {
  background: var(--th-paper);
  border: 1px solid var(--th-line);
  border-radius: var(--th-r-lg);
  box-shadow: var(--th-sh-1);
}

/* ============================================================================
   TyreHub chrome
   ============================================================================ */

/* ------- Header ------- */
.th-root .th-header {
  position: static;
  background: var(--th-cream);
}
.th-root .th-header-strip {
  position: static;
  background: var(--th-ink);
  color: var(--th-cream);
}
.th-root .th-header-bar-wrap {
  position: static;
  background: var(--th-cream);
  border-bottom: 1px solid var(--th-line);
}
.th-root .th-header-bar-wrap.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(14, 16, 19, 0.06);
}
.th-root .th-header-bar-placeholder {
  display: none;
}
.th-root .th-header-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}
.th-root .th-header-strip-inner > div {
  display: flex;
  gap: 18px;
  font-family: var(--th-font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.th-root .th-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.th-root .th-lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s ease, color 0.15s ease;
  padding: 0 2px;
}
.th-root .th-lang-switch a:hover {
  opacity: 1;
}
.th-root .th-lang-switch a.is-active {
  color: var(--th-orange);
  opacity: 1;
  font-weight: 700;
}
.th-root .th-lang-switch .sep {
  opacity: 0.35;
}
.th-root .th-header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.th-root .th-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.th-root .th-logo-word {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1;
}
.th-root .th-logo-word span { color: var(--th-orange); }
.th-root .th-nav {
  display: flex;
  gap: 4px;
  margin-left: 24px;
  list-style: none;
  padding: 0;
}
.th-root .th-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--th-font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--th-ink);
  text-decoration: none;
}
.th-root .th-nav a.is-active { color: var(--th-orange); }
.th-root .th-nav a:hover { color: var(--th-orange); }
.th-root .th-header-search {
  flex: 1;
  max-width: 480px;
  margin-left: auto;
  position: relative;
}
.th-root .th-header-search input {
  padding-left: 42px;
  font-family: var(--th-font-body);
}
.th-root .th-header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--th-muted);
}
.th-root .th-header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.th-root .th-icon-btn {
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--th-ink);
  border-radius: 4px;
  text-decoration: none;
  transition: background .12s ease;
}
.th-root .th-icon-btn:hover { background: rgba(0,0,0,.05); }

/* ------- Footer ------- */
.th-root .th-footer {
  background: var(--th-ink);
  color: var(--th-cream);
  margin-top: 0;
}
.th-root .th-footer-inner { padding: 64px 0 24px; }
.th-root .th-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.th-root .th-footer-col h3 {
  font-family: var(--th-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--th-cream);
  margin: 0 0 18px;
}
.th-root .th-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.th-root .th-footer-col a {
  color: var(--th-cream);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
}
.th-root .th-footer-col a:hover { opacity: 1; }
.th-root .th-footer-drivers-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.th-root .th-footer-drivers-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.th-root .th-footer-tagline {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: 28px;
  margin: 24px 0 0;
}
.th-root .th-footer-contact {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--th-font-mono);
  font-size: 12px;
  opacity: 0.7;
}
.th-root .th-footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--th-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.th-root .th-footer-bottom a { color: var(--th-cream); text-decoration: none; margin-left: 18px; }

/* ============================================================================
   Home page sections
   ============================================================================ */

/* Hero */
.th-root .th-hero {
  background: var(--th-ink);
  color: var(--th-cream);
  position: relative;
  overflow: hidden;
}
.th-root .th-hero-watermark {
  position: absolute;
  inset: 0;
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: min(40vw, 580px);
  line-height: 0.85;
  opacity: 0.06;
  pointer-events: none;
  top: -40px;
  left: -30px;
  white-space: nowrap;
  text-transform: uppercase;
}
.th-root .th-hero-grid {
  position: relative;
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.th-root .th-hero-stickers {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.th-root .th-hero h1 {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  font-size: clamp(48px, 7.6vw, 116px);
  margin: 0;
}
.th-root .th-hero h1 span { color: var(--th-orange); }
.th-root .th-hero p {
  font-size: 19px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 520px;
  margin-top: 24px;
}
.th-root .th-hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.th-root .th-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.th-root .th-hero-stats .th-stat-num {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 38px;
  color: var(--th-orange);
}
.th-root .th-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 520px;
}
.th-root .th-hero-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.th-root .th-hero-glow > div {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,0,34,.20) 0%, transparent 65%);
}
.th-root .th-hero-tyre {
  transform: rotate(-12deg);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.5));
}
.th-root .th-hero-tyre-img {
  width: 380px;
  height: 380px;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  border: 1px solid var(--th-line);
  border-radius: 14px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, .45);
  transform: rotate(-3deg);
}
.th-root .th-hero-tag-2-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 4px;
  max-width: 132px;
}
.th-root .th-hero-tag-1 {
  position: absolute;
  top: 50px;
  right: 20px;
  background: var(--th-orange);
  color: var(--th-ink);
  padding: 12px 16px;
  border-radius: 6px;
  transform: rotate(6deg);
  border: 2px solid var(--th-ink);
}
.th-root .th-hero-tag-2 {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: var(--th-cream);
  color: var(--th-ink);
  padding: 10px 14px;
  border-radius: 6px;
  transform: rotate(-4deg);
  border: 2px solid var(--th-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero finder strip */
.th-root .th-hero-finder-wrap { position: relative; padding-bottom: 56px; }
.th-root .th-hero-finder {
  background: var(--th-cream);
  color: var(--th-ink);
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.th-root .th-hero-finder-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}
.th-root .th-hero-finder-tab {
  padding: 8px 14px;
  font-family: var(--th-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--th-ink);
  border: 1.5px solid var(--th-line);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}
.th-root .th-hero-finder-tab.is-active {
  background: var(--th-ink);
  color: var(--th-cream);
  border-color: var(--th-ink);
}
.th-root .th-hero-finder-tip {
  margin-left: auto;
  font-size: 12px;
  color: var(--th-muted);
}
.th-root .th-hero-finder-tip a { color: var(--th-orange); font-weight: 600; text-decoration: none; }
.th-root .th-hero-finder-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
}

/* Brand wall */
.th-root .th-brand-wall {
  background: var(--th-cream);
  border-bottom: 1px solid var(--th-line);
}
.th-root .th-brand-wall .th-wrap {
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.th-root .th-brand-wall-list {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.th-root .th-brand-wall-list span {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
  opacity: 0.7;
}

/* Categories */
.th-root .th-section {
  padding: 80px 0 32px;
}
.th-root .th-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.th-root .th-section-head h2 {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  font-size: 56px;
  margin: 8px 0 0;
}
.th-root .th-section-head .th-overline { color: var(--th-orange); }
.th-root .th-section-head-link {
  font-family: var(--th-font-mono);
  color: var(--th-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-root .th-categories {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 540px;
}
.th-root .th-cat-tile {
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.th-root .th-cat-tile:hover { transform: translateY(-2px); }
.th-root .th-cat-tile-big {
  grid-row: 1 / 3;
  padding: 32px;
  background: var(--th-orange);
  color: var(--th-ink);
}
.th-root .th-cat-tile-big:hover { background: var(--th-ink); color: var(--th-cream); }
.th-root .th-cat-tile-ink { background: var(--th-ink); color: var(--th-cream); }
.th-root .th-cat-tile-ink-2 { background: var(--th-ink-2); color: var(--th-cream); }
.th-root .th-cat-tile-ink:hover,
.th-root .th-cat-tile-ink-2:hover { background: var(--th-cream); color: var(--th-ink); }
.th-root .th-cat-tile-cream-2 { background: var(--th-cream-2); color: var(--th-ink); }
.th-root .th-cat-tile-cream-2:hover { background: var(--th-ink); color: var(--th-cream); }
.th-root .th-cat-tile-paper { background: var(--th-paper); color: var(--th-ink); border: 1.5px solid var(--th-line); }
.th-root .th-cat-tile-paper:hover { background: var(--th-signal); color: var(--th-cream); border-color: var(--th-signal); }
.th-root .th-cat-tile-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--th-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.6;
}
.th-root .th-cat-tile-title {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: 40px;
}
.th-root .th-cat-tile-big .th-cat-tile-title { font-size: 88px; }
.th-root .th-cat-tile-caption {
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.8;
  max-width: 320px;
}
.th-root .th-cat-tile-big .th-cat-tile-caption { font-size: 16px; }
.th-root .th-cat-tile-link {
  font-family: var(--th-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-end;
}

/* How it works */
.th-root .th-how {
  background: var(--th-ink);
  color: var(--th-cream);
  margin-top: 24px;
}
.th-root .th-how-inner { padding: 80px 0; }
.th-root .th-how h2 {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  font-size: 64px;
  margin: 8px 0 56px;
  color: var(--th-cream);
}
.th-root .th-how h2 span { color: var(--th-orange); }
.th-root .th-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.th-root .th-how-step {
  border-top: 2px solid var(--th-orange);
  padding-top: 18px;
}
.th-root .th-how-step .th-step-num {
  font-family: var(--th-font-mono);
  font-size: 12px;
  color: var(--th-orange);
  letter-spacing: 0.06em;
}
.th-root .th-how-step h3 {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: 24px;
  margin: 10px 0 8px;
  color: var(--th-cream);
}
.th-root .th-how-step p {
  margin: 0;
  opacity: 0.75;
  font-size: 14px;
  line-height: 1.55;
}

/* Why TyreHub + receipt */
.th-root .th-why { padding: 80px 0; }
.th-root .th-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.th-root .th-why-grid > div { max-width: 1100px; }
.th-root .th-why h2 {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  font-size: 64px;
  margin: 8px 0 24px;
}
.th-root .th-why p.th-why-lede {
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.8;
  max-width: 480px;
  margin: 0;
}
.th-root .th-why-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: none;
}
.th-root .th-why-feat {
  padding-left: 14px;
  border-left: 3px solid var(--th-orange);
}
.th-root .th-why-feat h4 {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  margin: 0;
}
.th-root .th-why-feat p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--th-muted);
}
.th-root .th-receipt-wrap { position: relative; }
.th-root .th-receipt {
  background: var(--th-paper);
  border: 1.5px solid var(--th-ink);
  padding: 28px;
  border-radius: 6px;
  font-family: var(--th-font-mono);
}
.th-root .th-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--th-line-strong);
}
.th-root .th-receipt-head .th-display {
  font-size: 22px;
}
.th-root .th-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--th-line);
}
.th-root .th-receipt-total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  align-items: baseline;
}
.th-root .th-receipt-total .th-display { font-size: 32px; }
.th-root .th-receipt-foot {
  margin-top: 12px;
  font-size: 11px;
  color: var(--th-muted);
  text-align: center;
}
.th-root .th-receipt-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--th-orange);
  color: var(--th-ink);
  padding: 8px 14px;
  border-radius: 4px;
  transform: rotate(8deg);
  border: 2px solid var(--th-ink);
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 14px;
  text-transform: uppercase;
}

/* Newsletter strip */
.th-root .th-newsletter {
  background: var(--th-orange);
  color: var(--th-ink);
}
.th-root .th-newsletter .th-wrap {
  padding: 40px 0;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.th-root .th-newsletter h2 {
  font-family: var(--th-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 32px;
  margin: 0;
  text-transform: uppercase;
  line-height: 0.95;
}
.th-root .th-newsletter form {
  display: flex;
  gap: 8px;
}
.th-root .th-newsletter input { background: var(--th-cream); min-width: 320px; }

/* Selection */
.th-root ::selection { background: var(--th-orange); color: var(--th-ink); }

/* ------- Responsive smushes ------- */
@media (max-width: 1024px) {
  .th-root .th-hero-grid { grid-template-columns: 1fr; }
  .th-root .th-hero-visual { height: 360px; }
  .th-root .th-hero-tyre-img { width: 320px; height: 320px; }
  .th-root .th-why-grid { grid-template-columns: 1fr; gap: 32px; }
  .th-root .th-why-feats { grid-template-columns: repeat(2, 1fr); }
  .th-root .th-how-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .th-root .th-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .th-root .th-categories { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .th-root .th-cat-tile-big { grid-row: auto; min-height: 280px; }
}

@media (max-width: 720px) {
  .th-root .th-nav { display: none; }
  .th-root .th-header-search { display: none; }
  .th-root .th-hero-grid { padding: 48px 0 32px; }
  .th-root .th-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .th-root .th-categories { grid-template-columns: 1fr; }
  .th-root .th-how-grid { grid-template-columns: 1fr; gap: 20px; }
  .th-root .th-why-feats { grid-template-columns: 1fr; }
  .th-root .th-footer-grid { grid-template-columns: 1fr; }
  .th-root .th-footer-bottom { flex-direction: column; gap: 12px; }
  .th-root .th-hero-finder-form { grid-template-columns: 1fr; }
}

/* ============================================================================
   Reference component library (tyreroute-design-reference.html)
   Badge pills, EU-grade dot, tyre product card, catalog filter rail,
   stat cards, data table, trust strip. Shared with Web.Public.
   ============================================================================ */

/* ------- Badge pills (status / feature) ------- */
.th-root .th-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--th-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 11px;
  border-radius: 999px;
}
.th-root .th-badge-ok { background: var(--th-success-tint); color: var(--th-success); }
.th-root .th-badge-warn { background: var(--th-warn-tint); color: #9A6F00; }
.th-root .th-badge-err { background: var(--th-danger-tint); color: var(--th-danger); }
.th-root .th-badge-info { background: var(--th-route-tint); color: var(--th-route); }
.th-root .th-badge-neutral { background: var(--th-canvas); color: var(--th-slate); border: 1px solid var(--th-line); }
.th-root .th-badge-signal { background: var(--th-signal-tint); color: var(--th-orange-2); }

/* ------- EU-grade dot (fuel / wet grip) ------- */
.th-root .th-eu-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-family: var(--th-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--th-ink);
}
.th-root .th-eu-dot[data-g="A"] { background: var(--eu-a); color: #fff; }
.th-root .th-eu-dot[data-g="B"] { background: var(--eu-b); color: #fff; }
.th-root .th-eu-dot[data-g="C"] { background: var(--eu-c); }
.th-root .th-eu-dot[data-g="D"] { background: var(--eu-d); }
.th-root .th-eu-dot[data-g="E"] { background: var(--eu-e); }
.th-root .th-eu-dot[data-g="F"] { background: var(--eu-f); color: #fff; }
.th-root .th-eu-dot[data-g="G"] { background: var(--eu-g); color: #fff; }

/* ------- Spec chip ------- */
.th-root .th-spec-chip { flex: 1; text-align: center; border: 1px solid var(--th-line); border-radius: var(--th-r-sm); padding: 6px 4px; }
.th-root .th-spec-chip .th-v { font-family: var(--th-font-display); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.th-root .th-spec-chip .th-l { font-size: 10px; color: var(--th-mist); text-transform: uppercase; letter-spacing: .05em; }

/* ------- Tyre product card ------- */
.th-root .th-tyre-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--th-line); border-radius: var(--th-r-lg);
  background: var(--th-surface); overflow: hidden;
  box-shadow: var(--th-sh-1);
  transition: box-shadow .18s ease, transform .18s ease;
  text-decoration: none; color: inherit;
}
.th-root .th-tyre-card:hover { box-shadow: var(--th-sh-3); transform: translateY(-2px); }
.th-root .th-tc-top { position: relative; background: linear-gradient(160deg, #F6F7F9, #EDEFF2); padding: 22px; text-align: center; }
.th-root .th-tc-tag { position: absolute; top: 12px; left: 12px; font-family: var(--th-font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--th-orange); color: #fff; padding: 3px 8px; border-radius: 4px; }
.th-root .th-tc-wishlist { position: absolute; top: 10px; right: 12px; font-size: 18px; line-height: 1; color: var(--th-mist); background: none; border: none; cursor: pointer; }
.th-root .th-tc-img { width: 100%; max-width: 150px; height: 150px; object-fit: contain; margin: 0 auto; display: block; mix-blend-mode: multiply; }
.th-root .th-tc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.th-root .th-tc-brand { font-family: var(--th-font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--th-slate); }
.th-root .th-tc-model { font-family: var(--th-font-display); font-size: 17px; font-weight: 600; margin: 2px 0 8px; }
.th-root .th-tc-size { font-family: var(--th-font-mono); font-size: 14px; font-weight: 700; background: var(--th-canvas); border: 1px solid var(--th-line); border-radius: var(--th-r-sm); padding: 5px 10px; display: inline-block; align-self: flex-start; margin-bottom: 12px; }
.th-root .th-tc-specrow { display: flex; gap: 6px; margin-bottom: 12px; }
.th-root .th-tc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.th-root .th-tc-stock { font-size: 12px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; color: var(--th-success); }
.th-root .th-tc-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.th-root .th-tc-stock.is-low { color: var(--th-warn); }
.th-root .th-tc-stock.is-out { color: var(--th-danger); }
.th-root .th-tc-pricerow { display: flex; align-items: flex-end; justify-content: space-between; margin: auto 0 12px; }
.th-root .th-tc-price { font-family: var(--th-font-display); font-size: 26px; font-weight: 700; line-height: 1; }
.th-root .th-tc-price small { font-size: 13px; color: var(--th-slate); font-weight: 500; }
.th-root .th-tc-each { font-size: 11px; color: var(--th-mist); margin-top: 4px; }

/* ------- Catalog layout + filter rail ------- */
.th-root .th-catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.th-root .th-frail { border: 1px solid var(--th-line); border-radius: var(--th-r-md); background: var(--th-surface); padding: 16px; font-size: 13px; position: sticky; top: 16px; }
.th-root .th-frail .th-fg { margin-bottom: 16px; }
.th-root .th-frail .th-fg:last-child { margin-bottom: 0; }
.th-root .th-frail .th-ft { font-family: var(--th-font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; color: var(--th-graphite); }
.th-root .th-frail .th-fo { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--th-slate); cursor: pointer; text-decoration: none; }
.th-root .th-frail .th-fo:hover { color: var(--th-ink); }
.th-root .th-frail .th-cb { width: 15px; height: 15px; border: 1.5px solid var(--th-mist); border-radius: 4px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.th-root .th-frail .th-fo.is-on { color: var(--th-ink); font-weight: 600; }
.th-root .th-frail .th-fo.is-on .th-cb { background: var(--th-orange); border-color: var(--th-orange); }
.th-root .th-frail .th-ct { margin-left: auto; font-family: var(--th-font-mono); font-size: 11px; color: var(--th-mist); }
.th-root .th-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.th-root .th-filter-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--th-font-body); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--th-route-tint); color: var(--th-route); border: none; cursor: pointer; text-decoration: none; }
.th-root .th-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.th-root .th-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

/* ------- Stat card ------- */
.th-root .th-stat-card { background: var(--th-surface); border: 1px solid var(--th-line); border-radius: var(--th-r-md); padding: 16px; }
.th-root .th-stat-card .th-sv { font-family: var(--th-font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.th-root .th-stat-card .th-sv.is-mono { font-family: var(--th-font-mono); }
.th-root .th-stat-card .th-sl { font-size: 11px; color: var(--th-mist); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

/* ------- Data table ------- */
.th-root .th-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.th-root .th-table th { text-align: left; font-family: var(--th-font-display); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--th-mist); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--th-line); }
.th-root .th-table td { padding: 11px 12px; border-bottom: 1px solid var(--th-line-soft); vertical-align: middle; }
.th-root .th-table tbody tr:hover td { background: var(--th-canvas); }
.th-root .th-table .th-num { text-align: right; font-family: var(--th-font-mono); }

/* ------- Trust strip ------- */
.th-root .th-trust { display: flex; flex-wrap: wrap; gap: 32px; }
.th-root .th-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--th-slate); }
.th-root .th-trust-item strong { font-family: var(--th-font-mono); color: var(--th-ink); }

@media (max-width: 1024px) { .th-root .th-result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .th-root .th-catalog-layout { grid-template-columns: 1fr; } .th-root .th-frail { position: static; } }
@media (max-width: 560px) { .th-root .th-result-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .th-root *, .th-root *::before, .th-root *::after { transition: none !important; animation: none !important; }
  .th-root .th-tyre-card:hover { transform: none; }
}
