/* The Belt Saver — shared styles
   VOICE: trail-buddy banter; confident, cheeky, never cringey.
   IDEA: the page behaves like a belt warming up: icy pastels up top, warmer bands as you scroll, a gauge that climbs.
   PICTURE: a CVT belt looping two clutches behind the mascot, plus a live handlebar display ticking temps.
   COLOUR + TYPE: snow ground, night-trail ink, glacier/mint/lilac/peach bands, one racing-coral accent. Archivo, wide-italic-heavy for headlines.
   LAYOUT: full-bleed colour bands, 1240px content, headlines big and left, pictures that break their boxes. */

:root {
  color-scheme: light;
  --snow: #f6f8ff;
  --ink: #161a3d;
  --ink-2: #2b3166;
  --muted: #565d8a;
  --glacier: #c4e4ff;
  --mint: #c2f2de;
  --lilac: #dcd2ff;
  --peach: #ffd6bd;
  --lemon: #fff3a8;
  --heat: #ff4f5a;
  --heat-dk: #e23744;
  --line: rgba(22, 26, 61, .14);
  --shadow: 0 22px 60px rgba(22, 26, 61, .16);
  --max: 1240px;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 2 * max(5vw, 18px)); margin-inline: auto; }
.band { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 12px; }

/* Type scale */
.display, h1, h2, h3 { font-family: var(--display); margin: 0; }
h1, .display {
  font-weight: 900; font-stretch: 112%; font-style: italic; text-transform: uppercase;
  font-size: clamp(44px, 8vw, 112px); line-height: .9; letter-spacing: -.02em; text-wrap: balance;
}
h2 {
  font-weight: 900; font-stretch: 110%; font-style: italic; text-transform: uppercase;
  font-size: clamp(32px, 4.8vw, 62px); line-height: .95; letter-spacing: -.015em; text-wrap: balance;
}
h3 { font-weight: 800; font-stretch: 110%; font-size: 23px; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.small { font-size: 14px; color: var(--muted); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-stretch: 115%; font-style: italic; font-size: 19px; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 38px; height: 38px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  font: 800 16px/1 var(--display); font-stretch: 112%; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -4px rgba(22, 26, 61, .25); }
.btn.hot { background: var(--heat); border-color: var(--heat); }
.btn.hot:hover { background: var(--heat-dk); border-color: var(--heat-dk); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Pill */
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 11px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font-weight: 700; font-size: 15px; }
.pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 0 rgba(255, 79, 90, .6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(255, 79, 90, 0); } }

/* Speed stripes (sled-hood decal) */
.stripes { position: absolute; pointer-events: none; width: 340px; height: 120px; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .7) 22px 34px); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }

/* ---------- Mascot stage + motion ---------- */
.stage { position: relative; display: grid; place-items: center; isolation: isolate; }
.beltloop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.beltloop .belt { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linejoin: round; stroke-dasharray: 26 16; animation: belt-run 1.1s linear infinite; }
.beltloop .belt-under { fill: none; stroke: #fff; stroke-width: 26; stroke-linejoin: round; opacity: .8; }
.beltloop .sheave { fill: #fff; stroke: var(--ink); stroke-width: 6; }
.beltloop .spokes { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: spin 2.2s linear infinite; }
.beltloop .spokes.slow { animation-duration: 3.4s; }
@keyframes belt-run { to { stroke-dashoffset: -42; } }
@keyframes spin { to { transform: rotate(360deg); } }

.mascot { pointer-events: none; will-change: transform; margin: 0; }
.mascot img { width: 100%; height: auto; filter: drop-shadow(0 26px 22px rgba(22, 26, 61, .22)); }
.pose-rev img   { animation: mascot-rev 1.25s ease-in-out infinite alternate; transform-origin: 50% 92%; }
.pose-sniff img { animation: mascot-sniff 2.8s ease-in-out infinite; transform-origin: 46% 80%; }
.pose-think img { animation: mascot-float 2.6s ease-in-out infinite alternate; }
.pose-wave img  { animation: mascot-wave 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.pose-ride      { animation: mascot-patrol 11s ease-in-out infinite; }
.pose-ride img  { animation: mascot-bump .42s ease-in-out infinite alternate; }

@keyframes mascot-rev {
  0%   { transform: translateY(0) rotate(-3deg) scale(1, 1); }
  40%  { transform: translateY(-14px) rotate(2deg) scale(.98, 1.03); }
  70%  { transform: translateY(-6px) rotate(4deg) scale(1.01, .99); }
  100% { transform: translateY(0) rotate(-1deg) scale(1.03, .97); }
}
@keyframes mascot-sniff {
  0%, 100% { transform: rotate(0) translateX(0); }
  25% { transform: rotate(-6deg) translateX(-8px); }
  50% { transform: rotate(3deg) translateX(10px) translateY(-6px); }
  75% { transform: rotate(-2deg) translateX(4px); }
}
@keyframes mascot-float { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-18px) rotate(3deg); } }
@keyframes mascot-wave {
  0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); }
}
@keyframes mascot-patrol {
  0%   { transform: translateX(-12vw) scaleX(1); }
  45%  { transform: translateX(62vw) scaleX(1); }
  50%  { transform: translateX(62vw) scaleX(-1); }
  95%  { transform: translateX(-12vw) scaleX(-1); }
  100% { transform: translateX(-12vw) scaleX(1); }
}
@keyframes mascot-bump { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-5px) rotate(1.5deg); } }

/* Speech sticker */
.sticker {
  position: absolute; z-index: 4; background: var(--lemon); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px;
  padding: 12px 16px; font: 800 15px/1.25 var(--display); font-stretch: 108%; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-3deg); max-width: 230px;
}

/* ---------- Handlebar display (the Bridge) ---------- */
.bridge {
  position: relative; z-index: 3; width: min(300px, 78vw); border-radius: 30px; padding: 12px; background: var(--ink);
  box-shadow: 0 30px 60px rgba(22, 26, 61, .35), inset 0 0 0 2px #3a4180; transform: rotate(-4deg);
}
.bridge .screen { border-radius: 20px; background: radial-gradient(120% 90% at 20% 0%, #232a63 0%, #0b0e26 70%); color: #fff; padding: 16px 18px 18px; overflow: hidden; }
.bridge .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #aab3ff; font-weight: 600; }
.bridge .dot { width: 9px; height: 9px; border-radius: 50%; background: #48f0b0; display: inline-block; margin-right: 6px; animation: ping-g 1.6s ease-out infinite; }
@keyframes ping-g { 0% { box-shadow: 0 0 0 0 rgba(72, 240, 176, .7); } 100% { box-shadow: 0 0 0 9px rgba(72, 240, 176, 0); } }
.bridge .temp { font: 900 76px/1 var(--display); font-stretch: 115%; font-style: italic; font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 8px 0 2px; color: var(--zone, #9fe9ff); transition: color .4s; }
.bridge .temp { white-space: nowrap; }
.bridge .temp sup { font-size: .38em; vertical-align: .9em; margin-left: 3px; font-style: normal; }
.bridge .zone { font-weight: 800; font-size: 15px; color: var(--zone, #9fe9ff); transition: color .4s; }
.bridge .bar { position: relative; height: 10px; border-radius: 99px; margin-top: 12px; background: linear-gradient(90deg, #9fe9ff, #b4f5d8 30%, #fff09a 58%, #ffb08a 78%, #ff4f5a); }
.bridge .bar b { position: absolute; top: -5px; width: 6px; height: 20px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px var(--ink); left: var(--pos, 20%); transition: left .5s cubic-bezier(.3, 1.4, .5, 1); }

/* ---------- Fitment chips ---------- */
.fit-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 26px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip.first { background: var(--ink); color: #fff; }
.chip.next { background: transparent; border-style: dashed; }
.fit-chips .lbl { font-weight: 800; font-size: 14px; margin-right: 2px; }
.tm { font-size: 13px; opacity: .75; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 400 16px/1.4 "Archivo", system-ui, sans-serif; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 79, 90, .22); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.form-msg { font-weight: 700; min-height: 1.5em; margin: 0; }
.form-msg.ok { color: #0f7a55; } .form-msg.err { color: var(--heat-dk); }
.form.sent .fields { display: none; }
.thanks { display: none; text-align: left; }
.form.sent + .thanks, .thanks.show { display: block; }

/* ---------- Review-only bar (never shows on thebeltsaver.com) ---------- */
.review-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font: 700 13px/1 "Archivo", sans-serif; }
.review-bar span { padding: 0 10px; opacity: .7; white-space: nowrap; }
.review-bar a { text-decoration: none; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.review-bar a[aria-current] { background: #fff; color: var(--ink); }
@media (max-width: 520px) { .review-bar span { display: none; } }

@media (max-width: 640px) { .form .two { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
