/* ---------------------------------------------------------
   Fixes & Findings — brand tokens
   Gunmetal black panel #17181B, repair red #D8362B, white type, Inter.
   Matches the channel's wrench + magnifying glass badge.
--------------------------------------------------------- */
:root {
  --black: #17181B;
  --black-92: rgba(23, 24, 27, 0.92);
  --black-deep: #0c0d0f;
  --steel: #2a2c2f;
  --red: #D8362B;
  --red-deep: #7a1f19;
  --red-bright: #ef4438;
  --warn: #F5B90A;
  --money-green: #2E9E5B;
  --white: #ffffff;
  --paper: #f3f1ee;
  --ink: #201f1d;
  --max-width: 1180px;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  border-bottom: 2px solid rgba(216,54,43,0.35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.brand__mark--small { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; margin-bottom: 8px; }
.brand__name {
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--red);
}
.site-nav a.is-active {
  color: var(--red-bright);
  border-color: var(--red);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white); display: block;
}

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 28px 0 40px;
  background-image: radial-gradient(circle at 82% -10%, rgba(216,54,43,0.18), transparent 55%);
}
.hero__intro { max-width: 820px; margin-bottom: 32px; }
.hero__kicker {
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.1;
}
.hero__desc { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin: 0 0 22px; }

.hero--slim { padding: 28px 0; }
.hero-slim__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-slim__title { font-size: 1.3rem; font-weight: 700; margin: 0; line-height: 1.3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--red-bright); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(216,54,43,0.35); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--red);
  padding: 10px 20px;
}
.btn--sm { padding: 7px 16px; font-size: 0.82rem; }

/* ---------- Section shells ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--half { padding: 20px 0; }
.section--half-bottom { padding-bottom: 20px; }
.section__head { max-width: 640px; margin-bottom: 28px; }
.section__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--red);
}
.section__desc { color: #5a5652; margin: 0; }

/* ---------- Category tiles (home) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 9;
  display: block;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__label {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(12,13,15,0.9));
  color: var(--white);
  font-weight: 700;
  padding: 34px 14px 12px;
}
.tile--soon {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.tile--soon img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.tile--soon .tile__label {
  position: static;
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.tile--soon .tile__label strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- Coming soon (category empty state) ---------- */
.coming-soon {
  background: var(--black);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
}
.coming-soon__mark { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; }
.coming-soon__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.coming-soon__desc { color: rgba(255,255,255,0.75); margin: 0 0 20px; }

/* ---------- Video cards ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23,24,27,0.1);
  border: 1px solid rgba(23,24,27,0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,24,27,0.14); }
.video-card__thumb-wrap { position: relative; }
.video-card__thumb { aspect-ratio: 16/9; object-fit: cover; }
.video-card__thumb--soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: var(--black); color: rgba(255,255,255,0.75);
}
.video-card__thumb--soon img { width: 36px; height: 36px; border-radius: 50%; }
.video-card__thumb--soon span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.video-card__body { padding: 16px 18px 20px; }
.video-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--black);
}
.video-card__desc { font-size: 0.92rem; color: #5a5652; margin: 0; }
.tag {
  display: inline-block;
  background: var(--black);
  color: var(--red-bright);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Vehicle badge ---------- */
.vehicle-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ece9e4;
  color: var(--black);
  border: 1px solid rgba(23,24,27,0.15);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  margin: 0 0 10px 6px;
  vertical-align: middle;
}
.vehicle-badge svg { width: 13px; height: 13px; flex: none; }
.vehicle-badge--on-dark {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  margin: 0 0 16px;
}
.vehicle-badge--lg {
  font-size: 0.8rem;
  padding: 6px 14px 6px 10px;
}
.vehicle-badge--lg svg { width: 15px; height: 15px; }
.vehicle-badge--standalone { margin: 0 0 14px; }

/* ---------- Video detail page ---------- */
.video-hero {
  background: var(--black);
  color: var(--white);
  padding: 44px 0;
  background-image: radial-gradient(circle at 85% 0%, rgba(216,54,43,0.18), transparent 55%);
}
.video-hero__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin: 10px 0 14px; }
.video-hero__desc { color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 0 20px; }
.video-embed {
  display: block;
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-deep);
}
.video-embed img,
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}
.video-embed__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-embed__play span {
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(216,54,43,0.85);
  display: flex; align-items: center; justify-content: center;
}
.video-embed__play svg { width: 26px; height: 26px; }
.video-embed--soon { background: var(--black); }
.video-embed__soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--white);
}
.video-embed__soon img.video-embed__soon-mark {
  position: static; width: 48px; height: 48px; object-fit: cover; border-radius: 50%; margin-bottom: 14px; flex: none;
}
.video-embed__soon-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.video-embed__soon-desc { color: rgba(255,255,255,0.75); margin: 0 0 18px; max-width: 420px; }

.video-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 560px) {
  .video-pager { flex-direction: column; }
}

/* ---------- Tools Needed (video page) ---------- */
.tools-needed:target { scroll-margin-top: 20px; }
.tools-needed:target .wrap {
  outline: 2px solid var(--red);
  outline-offset: 14px;
  border-radius: var(--radius);
  background: rgba(216,54,43,0.05);
}
.tools-needed__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tools-needed__icon {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--red);
}
.tools-needed__icon svg { width: 100%; height: 100%; display: block; }
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid rgba(23,24,27,0.15);
  color: var(--black);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.tool-chip:hover { border-color: var(--red); transform: translateY(-1px); }
.tool-chip svg { width: 13px; height: 13px; flex: none; color: var(--red); }
.tool-chip--fail { border-color: var(--red); background: rgba(216,54,43,0.06); }
.tool-chip__flag {
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ---------- Verdict card (video page) ---------- */
.verdict-card {
  position: relative;
  background: var(--black);
  border-radius: var(--radius);
  padding: 22px 26px 24px 32px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.verdict-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--red);
}
.verdict-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.verdict-card__title {
  color: var(--red-bright);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.verdict-card__logo { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.verdict-card__row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.verdict-card__row:last-child { margin-bottom: 0; }
.verdict-card__label {
  color: rgba(255,255,255,0.55);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 90px;
  flex: none;
}
.verdict-card__chips, .verdict-card__bars { display: flex; gap: 8px; }
.verdict-chip {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}
.verdict-chip.is-active { background: var(--money-green); color: var(--white); }
.verdict-bar {
  width: 44px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}
.verdict-bar.is-active { background: var(--red); }
.verdict-card__row--note { align-items: flex-start; }
.verdict-card__note {
  color: #F5F3F0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}
@media (max-width: 480px) {
  .verdict-card__label { width: 100%; }
  .verdict-card__row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.gallery img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Store ---------- */
.disclosure {
  background: #fdeceb;
  border: 1px solid rgba(216,54,43,0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #6b2b25;
  margin-bottom: 32px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(23,24,27,0.08);
  box-shadow: 0 1px 3px rgba(23,24,27,0.08);
  display: flex;
  flex-direction: column;
}
.product-card__img-link { display: block; }
.product-card__img { aspect-ratio: 4/2.7; object-fit: cover; object-position: top; background: #ece9e4; }
.product-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__title { font-weight: 700; font-size: 1.02rem; margin: 0; color: var(--black); }
.product-card__desc { font-size: 0.9rem; color: #5a5652; margin: 0; flex: 1; }

/* Reviewed products carry the on-video verdict badge — same black/red kit as the end-of-video cards. */
.product-card--reviewed {
  border-color: var(--black);
  box-shadow: 0 4px 16px rgba(23,24,27,0.18);
}
.product-card--fail {
  border: 2px solid var(--red);
  box-shadow: 0 4px 16px rgba(216,54,43,0.25);
}
.product-card--recommended {
  border: 2px solid var(--warn);
  box-shadow: 0 4px 16px rgba(245,185,10,0.25);
}
.verdict-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
  transition: filter 0.12s ease;
}
a.verdict-strip:hover { filter: brightness(1.15); }
.verdict-strip__icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--red-bright);
}
.verdict-strip__icon svg { width: 100%; height: 100%; display: block; }
.verdict-strip__label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Fail verdict — hazard stripes so a "don't buy" card is unmistakable at a glance. */
.verdict-strip--fail {
  background: repeating-linear-gradient(
    135deg,
    var(--black),
    var(--black) 10px,
    var(--warn) 10px,
    var(--warn) 20px
  );
  padding: 8px 16px;
}
.verdict-strip--fail .verdict-strip__icon {
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 0 0 2px var(--black);
}
.verdict-strip--fail .verdict-strip__label {
  background: var(--black);
  color: var(--warn);
  padding: 4px 10px;
  border-radius: 4px;
}

.verdict-strip--caution .verdict-strip__icon { color: var(--warn); }

/* User-recommended verdict — gear a viewer suggested, not something the channel used on camera. */
.verdict-strip--recommended {
  background: var(--warn);
  color: var(--black);
}
.verdict-strip--recommended .verdict-strip__icon { color: var(--black); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black-deep);
  color: rgba(255,255,255,0.8);
  margin-top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.2s ease;
}
.site-footer.is-floating {
  position: fixed;
  margin-top: 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
}
.site-footer__inner {
  padding: 18px 0 14px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 12px;
}
.site-footer__tagline { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.82rem; max-width: 340px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; align-content: start; }
.site-footer__links a { text-decoration: none; font-weight: 600; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.site-footer__links a:hover { color: var(--red-bright); }
.site-footer__cta { justify-self: end; }
.site-footer__legal {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 8px;
  margin: 3px 0 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--red);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 41;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.15s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--red-bright); }
.back-to-top svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; inset: 62px 0 auto 0; background: var(--black); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .site-nav a { display: block; padding: 12px 0; }
  .site-header { position: relative; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__cta { justify-self: start; }
}
