/* ==========================================================================
   Grippy Tire — site styles
   Colours come from the shop floor: fresh rubber, Edmonton snowbanks,
   and the yellow crayon techs use to mark tires.
   ========================================================================== */

:root {
  --rubber: #232427;       /* text, dark surfaces */
  --rubber-soft: #2e3034;  /* raised surfaces on dark */
  --sidewall: #585c63;     /* secondary text on light */
  --sidewall-light: #aab0b7; /* secondary text on dark */
  --snow: #f3f5f6;         /* page background */
  --white: #ffffff;
  --frost: #d9dfe3;        /* rules and borders */
  --frost-deep: #b9c1c8;   /* rules */
  --field: #848c94;        /* form control borders, 3:1 on white */
  --crayon: #f6c343;       /* actions */
  --crayon-deep: #e8ae17;
  --ice: #e3eef4;          /* cold-weather band */
  --ice-deep: #a9cde0;
  --warm: #f6dfa0;
  --alert: #b42318;
  --go: #2b7049;           /* in stock */
  --low: #93550a;          /* low stock */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2rem, 3.6vw, 2.75rem);
  --step-5: clamp(2.4rem, 5.4vw, 4.25rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 7vw, 96px);
}

/* ---------- Base ---------- */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-stretch: 100%;
  color: var(--rubber);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible {
  outline: 3px solid var(--rubber);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--crayon); }

h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.005em;
  margin-bottom: 0.4em;
}

p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }

::selection { background: var(--crayon); color: var(--rubber); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--sidewall);
  max-width: 50ch;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--white { background: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--rubber);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.text-link {
  color: var(--rubber);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.7em 1.4em;
  border: 2px solid var(--rubber);
  border-radius: 999px;
  background: transparent;
  color: var(--rubber);
  font: inherit;
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--rubber); color: var(--white); }

.btn--crayon {
  background: var(--crayon);
  border-color: var(--crayon);
  color: var(--rubber);
}
.btn--crayon:hover {
  background: var(--crayon-deep);
  border-color: var(--crayon-deep);
  color: var(--rubber);
}

.btn--small { min-height: 44px; padding: 0.5em 1.1em; font-size: var(--step--1); }

.on-dark .btn:not(.btn--crayon) { border-color: var(--white); color: var(--white); }
.on-dark .btn:not(.btn--crayon):hover { background: var(--white); color: var(--rubber); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 246, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--frost);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--rubber);
  flex-shrink: 0;
}
.brand__mark { width: 38px; height: 38px; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.brand__name small {
  font-size: 0.56em;
  font-weight: 700;
  letter-spacing: 0.42em;
  margin-top: 3px;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--frost); }
.site-nav a[aria-current="page"] { background: var(--rubber); color: var(--white); }
.site-nav .nav-book { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rubber);
  border-radius: 999px;
  background: transparent;
  color: var(--rubber);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1260px) {
  .header-phone span { display: none; }
  .header-phone {
    width: 44px; height: 44px;
    justify-content: center;
    border-radius: 999px;
    background: var(--rubber);
    color: var(--white);
  }
}

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--snow);
    border-bottom: 1px solid var(--frost);
    padding: 8px var(--gutter) 20px;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 14px 16px; border-radius: 10px; font-size: var(--step-1); }
  .header-actions { margin-left: auto; }
}

@media (max-width: 520px) {
  .header-actions .btn { display: none; }
  .site-nav .nav-book { display: block; }
  .site-nav .nav-book a { background: var(--crayon); margin-top: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px);
}

.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 600px; }
.hero h1 { margin-bottom: 0.35em; }

.hero__tire {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  width: 960px;
  aspect-ratio: 1;
  translate: 46% -50%;
}
.hero.is-rolling .hero__tire { animation: roll-in 1.6s cubic-bezier(0.16, 0.84, 0.3, 1) 0.1s both; }
.js .hero:not(.is-rolling):not(.has-rolled) .hero__tire { visibility: hidden; }
.hero.has-rolled .hero__tire { animation: none; }

/* Wide screens: keep the tire near the content instead of the window edge */
@media (min-width: 1500px) {
  .hero__tire { right: calc((100vw - 1440px) / 2); }
}

@keyframes roll-in {
  from { translate: calc(46% + 46vw) -50%; rotate: 110deg; }
  to   { translate: 46% -50%; rotate: 0deg; }
}

@media (max-width: 1180px) {
  .hero__tire { width: 760px; translate: 58% -50%; }
  @keyframes roll-in {
    from { translate: calc(58% + 46vw) -50%; rotate: 110deg; }
    to   { translate: 58% -50%; rotate: 0deg; }
  }
}

@media (max-width: 980px) {
  .hero { padding-bottom: 0; }
  .hero__copy { max-width: none; }
  .hero__tire-wrap {
    position: relative;
    height: clamp(200px, 46vw, 340px);
    overflow: hidden;
    margin-top: 40px;
  }
  .hero__tire {
    top: 0;
    left: 50%;
    right: auto;
    width: clamp(520px, 120vw, 860px);
    translate: -50% 0;
    rotate: 90deg;
  }
  .hero.is-rolling .hero__tire { animation-name: roll-in-small; }
  @keyframes roll-in-small {
    from { translate: calc(-50% + 110vw) 0; rotate: 270deg; }
    to   { translate: -50% 0; rotate: 90deg; }
  }
}

.tire__brand {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 46px;
  letter-spacing: 5px;
  fill: #e8ebee;
  stroke: #141518;
  stroke-width: 2px;
  paint-order: stroke;
}
.tire__snow { stroke: #55585e; }
.tire__mark {
  font-family: var(--font);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3px;
  fill: #4a4d53;
  stroke: #1c1d20;
  stroke-width: 1px;
  paint-order: stroke;
}

/* Size picker: set like the size code moulded into a sidewall */

.sizer {
  container-type: inline-size;
  margin-top: 28px;
  padding: 22px 24px 24px;
  max-width: 540px;
  display: grid;
  gap: 18px;
  background: var(--rubber);
  color: var(--white);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -24px rgba(35, 36, 39, 0.55);
}

.sizer__title {
  margin: 0;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--sidewall-light);
}

.sizer__code {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 0.16em;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.75rem, 11cqi, 3.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sizer__field { display: grid; justify-items: start; gap: 8px; }

.sizer select,
.size-select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 0.04em 6px;
  border: 0;
  padding-right: 0.42em;
  border-bottom: 2px solid rgba(246, 195, 67, 0.7);
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f6c343' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.02em center / 0.26em;
  color: var(--white);
  font: inherit;
  cursor: pointer;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.16);
}
.sizer select:hover, .size-select:hover { border-bottom-color: var(--crayon); }
.sizer__help { margin: -4px 0 0; font-size: var(--step--1); color: var(--sidewall-light); max-width: 44ch; }
.sizer select:focus-visible { outline-color: var(--crayon); outline-offset: 4px; }
.sizer option, .size-select option { color: var(--rubber); background: var(--white); text-shadow: none; }

.sizer__label {
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--sidewall-light);
}

.sizer__sep { color: #8e949b; }

@media (max-width: 480px) {
  .sizer { padding: 18px 18px 20px; }
  .sizer__label { font-size: 0.75rem; }
}

/* Tabs: search by size or by vehicle */
.sizer__tabs {
  display: flex;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 999px;
}
.sizer__tabs [role="tab"] {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sidewall-light);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}
.sizer__tabs [role="tab"]:hover { color: var(--white); }
.sizer__tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--rubber); }
.sizer__tabs [role="tab"]:focus-visible { outline: 3px solid var(--crayon); outline-offset: 2px; }

.sizer__panel { display: grid; gap: 18px; align-content: start; }
.sizer.is-tabbed .sizer__panel { grid-row: 2; grid-column: 1; }
.sizer.is-tabbed .sizer__panel[hidden] { display: grid !important; visibility: hidden; }

.vehicle-error {
  margin: -6px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(246, 195, 67, 0.14);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 600;
}

.vehicle-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
}
.vfield { display: grid; gap: 6px; min-width: 0; }
.vfield label { font-size: 0.8125rem; font-weight: 600; color: var(--sidewall-light); }
.vfield select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 36px 12px 14px;
  border: 1.5px solid #7a7f86;
  border-radius: 10px;
  background: var(--rubber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-overflow: ellipsis;
  cursor: pointer;
}
.vfield select:hover:not(:disabled) { border-color: #9aa0a7; }
.vfield select:disabled { opacity: 0.45; cursor: not-allowed; }
.vfield select:focus-visible { outline: 3px solid var(--crayon); outline-offset: 2px; }
.vfield option { color: var(--rubber); background: var(--white); }

@container (max-width: 440px) {
  .vehicle-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vfield:last-child { grid-column: 1 / -1; }
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.sizer__foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.sizer__hint { margin: 0; font-size: var(--step--1); color: var(--sidewall-light); max-width: 30ch; }
.sizer__hint a { color: var(--white); }

.hero__alt { margin-top: 22px; color: var(--sidewall); }
.hero__alt a { color: var(--rubber); font-weight: 700; }

/* ---------- Swap check (live Edmonton temperature) ---------- */

.swapcheck {
  background: var(--ice);
  padding-block: clamp(40px, 5vw, 64px);
  border-block: 1px solid #cfdfe8;
}

.swapcheck__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 56px;
  align-items: start;
}

.swapcheck h2 { font-size: var(--step-3); margin-bottom: 0.3em; }

.swapcheck__now { margin: 0; font-size: var(--step-1); }
.swapcheck__now strong {
  font-stretch: 125%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.swapcheck__now strong { font-weight: 800; }
.swapcheck__msg { margin: 22px 0 18px; }
.scale__range {
  position: absolute;
  top: 50%;
  height: 12px;
  translate: 0 -50%;
  border-radius: 999px;
  background: var(--rubber);
  opacity: 0.55;
}
.scale__key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: var(--sidewall);
}
.scale__key-now, .scale__key-range { display: inline-block; flex-shrink: 0; background: var(--rubber); }
.scale__key-now { width: 12px; height: 12px; border-radius: 50%; }
.scale__key-range { width: 22px; height: 8px; border-radius: 999px; opacity: 0.55; margin-left: 8px; }
.swapcheck__src { margin: 14px 0 0; font-size: 0.8125rem; color: var(--sidewall); }

.scale { position: relative; padding-top: 30px; }
.scale__bar {
  position: relative;
  display: flex;
  height: 44px;
  border-radius: 999px;
  overflow: visible;
  font-size: 0.8125rem;
  font-weight: 700;
}
.scale__zone {
  display: flex;
  align-items: center;
  padding-inline: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.scale__zone--winter {
  flex: 0 0 61.67%;
  background: var(--ice-deep);
  border-radius: 999px 0 0 999px;
}
.scale__zone--summer {
  flex: 1;
  justify-content: flex-end;
  background: var(--warm);
  border-radius: 0 999px 999px 0;
}
.scale__threshold {
  position: absolute;
  left: 61.67%;
  top: -30px;
  bottom: -6px;
  width: 2px;
  background: var(--rubber);
}
.scale__threshold span {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step--1);
  line-height: 1;
  white-space: nowrap;
  background: var(--ice);
  padding: 0 6px;
}
.scale__marker {
  position: absolute;
  top: 50%;
  left: calc(var(--pos, 0.5) * 100%);
  width: 26px; height: 26px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--rubber);
  box-shadow: 0 0 0 4px var(--white);
}
.scale__ticks {
  position: relative;
  height: 22px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--sidewall);
  font-variant-numeric: tabular-nums;
}
.scale__ticks span { position: absolute; top: 0; }
.scale__ticks span:nth-child(1) { left: 0; }
.scale__ticks span:nth-child(2) { left: 50%; translate: -50% 0; }
.scale__ticks span:nth-child(3) { right: 0; }

@media (max-width: 820px) {
  .swapcheck__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .scale__zone { font-size: 0.75rem; padding-inline: 12px; }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { margin-bottom: 18px; font-size: var(--step--1); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--sidewall); }
.breadcrumbs li + li::before {
  content: "";
  width: 6px; height: 6px;
  margin: 0 12px 0 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  rotate: 45deg;
}
.breadcrumbs a { color: var(--rubber); font-weight: 600; }
.breadcrumbs [aria-current] { color: var(--sidewall); }

/* ---------- Task strip: the four most common jobs, right under the search ---------- */

.tasks { background: var(--rubber); color: var(--white); }
.tasks__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.tasks__list li + li { border-left: 1px solid #3d4045; }
.task {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  height: 100%;
  padding: 26px 22px;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.task:hover { background: var(--rubber-soft); }
.task:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.task__icon { grid-row: 1 / span 2; width: 34px; height: 34px; color: var(--crayon); }
.task strong { font-stretch: 112%; font-weight: 800; font-size: var(--step-1); line-height: 1.2; }
.task span { font-size: var(--step--1); color: var(--sidewall-light); }
.tasks .wrap { width: min(100%, var(--wrap) + 2 * var(--gutter)); }

@media (max-width: 860px) {
  .tasks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tasks__list li:nth-child(3) { border-left: 0; }
  .tasks__list li:nth-child(n + 3) { border-top: 1px solid #3d4045; }
  .task { padding: 20px 16px; column-gap: 12px; }
  .task__icon { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  .task { grid-template-columns: 1fr; row-gap: 8px; }
  .task__icon { grid-row: auto; }
}

/* ---------- Tread drawings ---------- */

.tread { display: block; width: 100%; height: 64px; border-radius: 10px; margin-bottom: 18px; }
.tread .tg { fill: #1b1c1f; }
.tread .tb { fill: #3a3d42; }
.tread .ts { fill: none; stroke: #232427; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- About ---------- */

.about-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 136px);
}
.about-band__inner { position: relative; z-index: 1; }
.about-band__copy { max-width: 620px; }
.about-band h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); margin-bottom: 0.4em; }
.nowrap { white-space: nowrap; }
.about-band__lead {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.45;
  max-width: 34ch;
}
.about-band__tire {
  position: absolute;
  top: 50%;
  right: 0;
  width: clamp(640px, 60vw, 900px);
  aspect-ratio: 1;
  translate: 54% -50%;
}
.sidewall { width: 100%; height: 100%; }
@media (min-width: 1500px) {
  .about-band__tire { right: calc((100vw - 1440px) / 2); }
}
@media (max-width: 1100px) {
  .about-band__tire { translate: 64% -50%; }
}
@media (max-width: 860px) {
  .about-band { padding-bottom: 0; }
  .about-band__tire {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    aspect-ratio: auto;
    height: clamp(170px, 42vw, 300px);
    translate: none;
    margin-top: 36px;
    overflow: hidden;
  }
  .sidewall {
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(520px, 120vw, 860px);
    height: auto;
    aspect-ratio: 1;
    translate: -50% 0;
    rotate: 90deg;
  }
}

.prose p { font-size: var(--step-1); line-height: 1.55; }

.link-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--frost-deep); }
.link-list a {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--frost-deep);
  text-decoration: none;
}
.link-list strong { font-stretch: 112%; font-weight: 800; font-size: var(--step-1); }
.link-list span { color: var(--sidewall); }
.link-list a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ---------- Winter or all-weather ---------- */

.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px); }
.versus p { color: var(--sidewall); }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--rubber);
  border-bottom: 2.5px solid var(--rubber);
  rotate: -45deg;
}
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

.section--flush { padding-top: 0; padding-bottom: var(--section); }
.types__more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }

/* ---------- Section heads & split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}
.split__head p { color: var(--sidewall); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--sidewall); }

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

/* ---------- Price board ---------- */

.priceboard {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--frost-deep);
}
.priceboard li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--frost-deep);
}
.priceboard h3 { margin-bottom: 0.25em; }
.priceboard p { margin: 0; color: var(--sidewall); }
.priceboard .price {
  text-align: right;
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--rubber);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.priceboard .price small {
  display: block;
  margin-top: 6px;
  font-stretch: 100%;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--sidewall);
}
.priceboard .price--text { font-size: var(--step-1); line-height: 1.2; }
.priceboard .row-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: var(--step--1); color: var(--rubber); }

.priceboard-note { margin-top: 18px; font-size: var(--step--1); color: var(--sidewall); }

@media (max-width: 520px) {
  .priceboard li { grid-template-columns: 1fr; }
  .priceboard .price { text-align: left; margin-top: 10px; }
}

/* ---------- Tire types on the home page: tread faces on dark rubber ---------- */

.treads { background: var(--rubber); color: var(--white); }
.treads .section-head p { color: var(--sidewall-light); }
.treads__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.treads__item { position: relative; display: flex; flex-direction: column; }
.tread-face {
  position: relative;
  height: clamp(150px, 15vw, 210px);
  margin-bottom: 24px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #1b1c1f;
  background-image: var(--tread);
  background-size: var(--tread-w) var(--tread-h);
  background-position: 50% 0;
  box-shadow: 0 22px 30px -20px rgba(0, 0, 0, 0.9);
  transition: background-position 1.4s cubic-bezier(0.16, 0.84, 0.3, 1);
}
/* the shoulders curve away from you, like the tread of a real tire */
.tread-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(12, 12, 14, 0.82) 0%, rgba(12, 12, 14, 0) 24%, rgba(255, 255, 255, 0.06) 50%, rgba(12, 12, 14, 0) 76%, rgba(12, 12, 14, 0.82) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.treads__item:hover .tread-face,
.treads__item:focus-within .tread-face { background-position: 50% calc(var(--tread-h) * 4); }
.treads h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); margin-bottom: 0.35em; }
.treads p { color: var(--sidewall-light); }
.treads .rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--crayon);
}
.treads .rating svg { width: 28px; height: 28px; flex-shrink: 0; }
.treads .rating--no { color: var(--sidewall-light); }
.treads .rating--no svg { opacity: 0.5; }
.treads__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  color: var(--white);
  text-decoration-color: var(--crayon);
  text-decoration-thickness: 2px;
}
.treads__link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 20px;
  border: 2px solid var(--rubber-soft);
  border-radius: 12px;
  max-width: 720px;
  color: var(--white);
}
.legend svg { width: 36px; height: 36px; flex-shrink: 0; color: var(--crayon); }
.legend p { margin: 0; font-size: var(--step--1); color: var(--white); }
.treads .text-link { color: var(--white); }

@media (max-width: 1000px) {
  .treads__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treads h3 { font-size: var(--step-3); }
}
@media (max-width: 560px) {
  .treads__list { grid-template-columns: 1fr; gap: 40px; }
  .tread-face { height: 120px; margin-bottom: 18px; }
}

/* ---------- Steps (a real sequence) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 3px dashed var(--rubber);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-2);
}
.steps p { color: var(--sidewall); }

@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.journey { position: relative; margin-bottom: 40px; }
.journey .steps { position: relative; margin-bottom: 0; }
.journey .steps li::before {
  position: relative;
  background: var(--white);
  box-shadow: 0 8px 16px -10px rgba(35, 36, 39, 0.6);
}
.journey__track {
  position: absolute;
  top: 2px;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  height: 52px;
  border-block: 3px solid var(--ice);
  background-color: var(--white);
  background-image: var(--track);
  background-size: var(--track-w) var(--track-h);
  background-position: 0 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 85%, transparent);
}
@supports (animation-timeline: view()) {
  .journey__track {
    animation: track-across linear both;
    animation-timeline: view();
    animation-range: entry 100% cover 40%;
  }
}
@keyframes track-across {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes track-down {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (max-width: 760px) {
  .journey .steps li { position: relative; padding-left: 80px; min-height: 56px; }
  .journey .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .journey__track {
    top: -12px;
    bottom: -12px;
    left: 4px;
    right: auto;
    width: 52px;
    height: auto;
    border-block: 0;
    border-inline: 3px solid var(--ice);
    background-image: var(--track-down);
    background-size: var(--track-down-w) var(--track-down-h);
    background-position: 50% 0;
    animation-name: track-down;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent);
  }
}

/* ---------- Visit ---------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 6vw, 80px);
  align-items: stretch;
}
.visit address { font-style: normal; font-size: var(--step-1); line-height: 1.45; margin-bottom: 24px; }
.visit h3 { font-size: var(--step-0); font-stretch: 100%; font-weight: 700; margin-top: 28px; }

.hours { border-collapse: collapse; width: 100%; max-width: 360px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--frost); }
.hours th { font-weight: 600; padding-right: 24px; }

.contact-lines { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-lines li { margin-bottom: 6px; }
.contact-lines a { font-weight: 700; }

.tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid #ead28a;
  border-radius: 12px;
  background: #fdf5dc;
  font-size: var(--step--1);
}
.tip__icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; color: #8a6a12; }

.map {
  position: relative;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--frost);
}
.map iframe { position: relative; width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  max-width: none;
  padding: 24px;
  text-align: center;
  color: var(--sidewall);
  font-weight: 600;
}
@media (max-width: 760px) {
  .map, .map iframe { min-height: 260px; }
}

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

/* ---------- Dark CTA band ---------- */

.cta-band {
  background: var(--rubber);
  color: var(--white);
  padding-block: clamp(56px, 7vw, 96px);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { margin: 0 0 0.3em; }
.cta-band p { margin: 0; color: var(--sidewall-light); }

.cta-band--mark { position: relative; overflow: hidden; }
.cta-band--mark .cta-band__inner { position: relative; z-index: 1; padding-right: clamp(0px, 15vw, 230px); }
.cta-band__mark {
  position: absolute;
  top: 50%;
  right: 0;
  width: clamp(200px, 20vw, 290px);
  translate: 38% -50%;
}
@media (min-width: 1500px) {
  .cta-band__mark { right: calc((100vw - 1440px) / 2); }
}
@media (max-width: 760px) {
  .cta-band--mark { padding-bottom: 132px; }
  .cta-band--mark .cta-band__inner { padding-right: 0; }
  .cta-band__mark { top: auto; bottom: 0; width: 180px; translate: 28% 34%; }
}

/* ---------- Inner page hero ---------- */

.page-hero { padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.page-hero h1 { max-width: 16ch; }

/* ---------- Comparison table ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--frost);
}
.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--frost);
}
.compare thead th {
  background: var(--rubber);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 700;
}
.compare tbody th { font-stretch: 125%; font-weight: 800; font-size: var(--step-1); line-height: 1.15; width: 18%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td { color: var(--sidewall); }
.compare .good { color: var(--rubber); font-weight: 700; }
.compare .snow-yes { display: inline-flex; align-items: center; gap: 8px; color: var(--rubber); font-weight: 700; }
.compare .snow-yes svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare { background: transparent; box-shadow: none; border-radius: 0; }
  .compare tr {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--frost);
    margin-bottom: 16px;
    padding: 6px 0;
  }
  .compare tbody th { width: auto; border-bottom: 1px solid var(--frost); }
  .compare td { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 20px; }
  .compare td::before { content: attr(data-label); font-weight: 700; color: var(--rubber); font-size: var(--step--1); }
  .compare tbody tr:last-child > td { border-bottom: 1px solid var(--frost); }
  .compare tbody tr > td:last-child { border-bottom: 0; }
}

/* ---------- Sidewall decoder ---------- */

.decoder {
  background: var(--rubber);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
}
.decoder__code {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.12em;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  line-height: 1;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-variant-numeric: tabular-nums;
}
.decoder__code .seg { display: grid; justify-items: start; gap: 10px; }
.decoder__code .seg--gap { margin-left: 0.3em; }
.decoder__code b {
  font-weight: inherit;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.16);
  border-bottom: 3px solid var(--crayon);
  padding-bottom: 6px;
}
.decoder__code .sep b { border-bottom-color: transparent; color: #8e949b; }
.decoder__code i {
  font-style: normal;
  font-stretch: 100%;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--sidewall-light);
}
.decoder__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 0;
}
.decoder__list div { border-top: 1px solid #44474d; padding-top: 14px; }
.decoder__list dt { font-weight: 700; margin-bottom: 4px; }
.decoder__list dd { margin: 0; color: var(--sidewall-light); font-size: var(--step--1); line-height: 1.55; }

@media (max-width: 900px) { .decoder__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .decoder__list { grid-template-columns: 1fr; } }

/* ---------- Notes grid ---------- */

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
}
.notes > div { border-top: 1px solid var(--frost-deep); padding-top: 20px; }
.notes p { color: var(--sidewall); }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { border-bottom: 1px solid var(--frost-deep); max-width: 820px; }
.faq details { border-top: 1px solid var(--frost-deep); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 6px;
  border-right: 3px solid var(--rubber);
  border-bottom: 3px solid var(--rubber);
  rotate: 45deg;
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 225deg; margin-top: 12px; }
.faq details > div { padding-bottom: 20px; color: var(--sidewall); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Booking form ---------- */

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 960px) { .book-layout { grid-template-columns: 1fr; } }

.form fieldset {
  margin: 0 0 28px;
  padding: clamp(20px, 3vw, 32px);
  border: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--frost);
  min-width: 0;
}
.form fieldset[hidden] { display: none; }
.form legend {
  float: left;
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.15;
}
.form legend + * { clear: both; }

.field { display: grid; gap: 8px; margin-bottom: 20px; align-content: start; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label { font-weight: 700; }
.field .optional { font-weight: 500; color: var(--sidewall); }
.field .help { font-size: var(--step--1); color: var(--sidewall); margin: 0; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.field-row .field:last-child { margin-bottom: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="date"],
.form select:not(.size-select),
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: var(--white);
  color: var(--rubber);
  font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:hover, .form select:not(.size-select):hover, .form textarea:hover { border-color: var(--sidewall); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--rubber);
  outline-offset: 1px;
  border-color: var(--rubber);
}
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--alert); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .choices, .choices--3, .choices--4 { grid-template-columns: 1fr; }
}

.choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  line-height: 1.35;
}
.choice:hover { border-color: var(--sidewall); }
.choice input {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--rubber);
}
.choice strong { display: block; font-weight: 700; }
.choice span span { display: block; font-size: var(--step--1); color: var(--sidewall); margin-top: 2px; }
.choice:has(input:checked) {
  border-color: var(--rubber);
  box-shadow: inset 0 0 0 1px var(--rubber);
  background: #fbfbf8;
}
.choice:has(input:focus-visible) { outline: 3px solid var(--rubber); outline-offset: 2px; }

/* Light version of the sidewall size code, used in the form */
.size-code {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 0.2em;
  padding: 18px 20px;
  background: var(--rubber);
  border-radius: 12px;
  color: var(--white);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.75rem, 7.6vw, 2.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.size-code .sizer__field { gap: 8px; }
.size-code[aria-disabled="true"] { opacity: 0.4; }
.size-select:focus-visible { outline-color: var(--crayon) !important; outline-offset: 4px; }

.check {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; accent-color: var(--rubber); margin: 0; }

.form-submit { display: grid; gap: 14px; justify-items: start; }
.form-submit p { margin: 0; font-size: var(--step--1); color: var(--sidewall); }

.honeypot { position: absolute; left: -9999px; }

.aside-card {
  position: sticky;
  top: 96px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--rubber);
  color: var(--white);
  border-radius: 16px;
}
.aside-card h2 { font-size: var(--step-2); }
.aside-card h3 { font-size: var(--step-0); font-stretch: 100%; font-weight: 700; margin-top: 24px; }
.aside-card p, .aside-card li { color: var(--sidewall-light); font-size: var(--step--1); }
.aside-card a { color: var(--white); font-weight: 700; }
.aside-card ul { padding-left: 1.1em; margin: 0; }
.aside-card li { margin-bottom: 6px; }
.aside-card .big-phone {
  display: inline-block;
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-2);
  text-decoration: none;
  color: var(--crayon);
  margin-bottom: 4px;
}
.aside-card .hours th, .aside-card .hours td { border-color: #44474d; font-size: var(--step--1); }
.aside-card .hours th { color: var(--white); }
.aside-card .hours td { color: var(--sidewall-light); }

@media (max-width: 960px) { .aside-card { position: static; } }

/* ---------- Find tires ---------- */

.page-hero--tight { padding-bottom: clamp(24px, 3vw, 40px); }

.find-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 5vw, 64px);
  align-items: start;
}
.find-search { position: sticky; top: 96px; }
.find-search .sizer { margin-top: 0; max-width: none; }
.find-help { margin: 16px 0 0; font-size: var(--step--1); color: var(--sidewall); }

@media (max-width: 960px) {
  .find-layout { grid-template-columns: 1fr; }
  .find-search { position: static; }
  .find-search .sizer { max-width: 540px; }
  /* With a search on screen, show the results before the search box. */
  .find-layout.has-search .results { order: -1; }
}

.results__head h2 { font-size: var(--step-3); margin-bottom: 0.35em; }
.results__head h2:focus { outline: none; }
.results__head p { color: var(--sidewall); }
.results__head .results__lt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--frost-deep);
  border-radius: 12px;
  background: var(--white);
  font-size: var(--step--1);
  color: var(--rubber);
}
.lt-badge--inline { display: inline-block; margin-right: 10px; vertical-align: 0.2em; font-size: 0.6em; }
.lt-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--rubber);
  color: var(--white);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1.4;
}

.results__sample {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 14px;
  background: var(--warm);
  border-radius: 8px;
  font-size: var(--step--1);
  font-weight: 600;
}

.results__filters { display: grid; gap: 12px; margin: 4px 0 28px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-row__label { min-width: 5.5em; font-size: var(--step--1); font-weight: 700; }

.chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  background: var(--white);
  color: var(--rubber);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--rubber); }
.chip[aria-pressed="true"] { background: var(--rubber); border-color: var(--rubber); color: var(--white); }
.chip--size { font-stretch: 115%; font-weight: 800; font-variant-numeric: tabular-nums; }

.size-group { margin-bottom: 36px; }
.size-group__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--rubber);
}
.size-group__size { font-stretch: 125%; font-weight: 800; font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.size-group__count { font-stretch: 100%; font-size: var(--step--1); font-weight: 600; color: var(--sidewall); }
.size-group__empty { padding: 20px 0; border-bottom: 1px solid var(--frost-deep); }
.size-group__empty p { color: var(--sidewall); }

.stock-list { list-style: none; margin: 0; padding: 0; }
.stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--frost-deep);
}
.stock-row p { margin: 0; }
.stock-row__brand { font-size: var(--step--1); font-weight: 600; color: var(--sidewall); }
.stock-row__name { margin-bottom: 8px !important; font-size: var(--step-1); font-weight: 750; line-height: 1.25; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--frost-deep);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}
.tag__snow svg { width: 18px; height: 18px; }

.stock-row__price { text-align: right; }
.stock-row__each {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stock-row__each small { font-stretch: 100%; font-size: 0.8125rem; font-weight: 600; color: var(--sidewall); }
.stock-row__set { font-size: 0.8125rem; color: var(--sidewall); white-space: nowrap; }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step--1);
  font-weight: 700;
  white-space: nowrap;
}
.qty::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.qty--ok { color: var(--go); }
.qty--low { color: var(--low); }
.qty--out { color: var(--sidewall); }
.qty--out::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }

.results__note, .results__loading, .results__empty { font-size: var(--step--1); color: var(--sidewall); }

@media (max-width: 700px) {
  .stock-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .stock-row__tire { grid-column: 1 / -1; }
  .stock-row__price { text-align: left; }
  .stock-row .qty { justify-self: end; }
  .stock-row .btn { grid-column: 1 / -1; }
}

/* ---------- Simple message pages (thanks, 404) ---------- */

.message-page { padding-block: clamp(72px, 12vw, 160px); }
.message-page h1 { max-width: 14ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--rubber);
  color: var(--white);
  padding-block: 64px 32px;
  font-size: var(--step--1);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin-bottom: 8px; }
.site-footer nav a { text-decoration: none; color: var(--sidewall-light); }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; }
.site-footer address + p, .site-footer p + p { margin-top: 10px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3d4045;
}
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer p, .site-footer address { color: var(--sidewall-light); font-style: normal; margin: 0; }
.site-footer h2 {
  font-stretch: 100%;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 10px;
  color: var(--white);
}
.site-footer a { color: var(--white); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-top: 24px;
  color: var(--sidewall-light);
}
.site-footer__base p { font-size: 0.8125rem; }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Phone action bar ---------- */

.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed;
    z-index: 60;
    left: 0; right: 0; bottom: 0;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(35, 36, 39, 0.96);
    box-shadow: 0 -8px 24px -12px rgba(35, 36, 39, 0.6);
    translate: 0 110%;
    transition: translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .action-bar.is-visible { translate: 0 0; }
  .action-bar__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 2px solid var(--white);
    border-radius: 999px;
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
  }
  .action-bar__call svg { width: 18px; height: 18px; }
  .action-bar__book { flex: 1; min-height: 48px; }
  .has-action-bar .site-footer { padding-bottom: 104px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__tire { animation: none; }
  .journey__track { animation: none; }
  .tread-face { transition: none; }
}
