/* =========================================================
   GWT — Pocket-scale RC drift cars
   Design tokens
   ========================================================= */
:root {
  /* Color: asphalt-and-livery palette */
  --ink: #1b1d21;         /* asphalt — dark surfaces */
  --ink-soft: #26292f;    /* raised dark surface */
  --paper: #eef0ec;       /* track chalk — light surfaces */
  --paper-soft: #e3e6df;  /* recessed light surface */
  --white: #ffffff;
  --orange: #ff6a1f;      /* flag orange — primary accent */
  --orange-dim: #e35b16;
  --blue: #2454ff;        /* pit blue — secondary accent */
  --graphite: #5a5f68;    /* muted text */
  --line: rgba(27, 29, 33, 0.12);
  --line-on-dark: rgba(238, 240, 236, 0.14);

  /* Type */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Rhythm */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --max: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--ink);
  padding: 0.8em 1.2em;
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dim);
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  max-width: 620px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.section-head p {
  color: var(--graphite);
  font-size: 1.02rem;
  max-width: 46ch;
}
.section-head.on-dark p { color: #b9bdc4; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 999px;
  padding: 0.9em 1.6em;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover { background: var(--white); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: var(--line-on-dark); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Kerb-stripe motif — signature device, used sparingly */
.kerb-stripe {
  height: 10px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 10px,
    var(--orange) 10px 20px
  );
}
.kerb-stripe.thin { height: 5px; }

/* Scale-ruler motif — literal wayfinding by model scale */
.ruler {
  display: flex;
  align-items: stretch;
  border-top: 1.5px solid var(--line-on-dark);
  overflow-x: auto;
  scrollbar-width: none;
}
.ruler::-webkit-scrollbar { display: none; }
.ruler a {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.4rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #9aa0a6;
  border-right: 1px solid var(--line-on-dark);
  transition: color 0.2s var(--ease);
  position: relative;
}
.ruler a:hover, .ruler a:focus-visible { color: var(--white); }
.ruler a::before {
  content: '';
  width: 1.5px;
  height: 10px;
  background: currentColor;
}
.ruler a span.ratio {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 240, 236, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo .dot { color: var(--orange); }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.2rem);
}
.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover { border-color: var(--orange); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 3px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .main-nav { 
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 90;
  }
  .main-nav a { font-size: 1.3rem; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 78vh, 760px);
  display: flex;
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 640px);
  align-items: center;
  padding-block: clamp(4rem, 12vw, 7rem) clamp(3.5rem, 9vw, 6rem);
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(255, 106, 31, 0.25), transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.hero-copy .eyebrow { color: #ffb385; }
.hero-copy .eyebrow::before { background: var(--orange); }
.hero-slides { position: relative; min-height: 210px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.hero-slide h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin-top: 0.6rem;
}
.hero-slide h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-slide p {
  font-size: 1.05rem;
  color: #c7cad0;
  max-width: 48ch;
  margin-top: 1rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}
.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.2rem;
}
.hero-dots button {
  width: 26px;
  height: 4px;
  background: var(--line-on-dark);
  border: none;
  border-radius: 2px;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.hero-dots button[aria-current="true"] {
  background: var(--orange);
  width: 42px;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ink);
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(27,29,33,0.94) 0%, rgba(27,29,33,0.82) 32%, rgba(27,29,33,0.45) 62%, rgba(27,29,33,0.25) 100%),
    linear-gradient(0deg, rgba(27,29,33,0.55) 0%, rgba(27,29,33,0) 35%);
  pointer-events: none;
}
.hero-slide-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 6s linear;
}
.hero-slide-image.active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.stat-bar {
  background: var(--ink-soft);
  color: var(--paper);
  border-top: 1px solid var(--line-on-dark);
}
.stat-bar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 1.7rem;
}
.stat-bar .stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-bar .stat b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}
.stat-bar .stat span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .stat-bar .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Category picker
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -18px rgba(27,29,33,0.35);
  border-color: var(--orange);
}
.category-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card .icon svg { width: 24px; height: 24px; }
.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.category-card .ratio {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--graphite);
}
.category-card.soon { opacity: 0.6; }
.category-card .badge-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.25em 0.6em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Product grid
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover {
  box-shadow: 0 22px 40px -24px rgba(27,29,33,0.4);
  transform: translateY(-4px);
}
.product-media {
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.3em 0.65em;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.product-discount {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--orange);
  color: var(--ink);
  padding: 0.3em 0.65em;
  border-radius: 999px;
}
.product-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.product-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.swatches {
  display: flex;
  gap: 0.4rem;
}
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--white);
  outline: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.swatch[aria-pressed="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
}
.price-row .now { font-size: 1.3rem; font-weight: 700; }
.price-row .mrp { font-size: 0.85rem; color: var(--graphite); text-decoration: line-through; }
.product-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  padding-top: 0.6rem;
}
.product-actions .btn { flex: 1; }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Bundles
   ========================================================= */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.bundle-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  border: 1px solid transparent;
}
.bundle-card.featured {
  border-color: var(--orange);
  background: linear-gradient(165deg, #23252b, #17181c);
}
.bundle-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--ink);
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-weight: 700;
}
.bundle-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.bundle-card .save {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.bundle-card p { color: #b9bdc4; font-size: 0.92rem; }
@media (max-width: 900px) {
  .bundle-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Drift showcase (signature motion moment)
   ========================================================= */
.showcase {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding-block: var(--section-y);
}
.showcase-copy p { color: #b9bdc4; margin-top: 0.8rem; max-width: 42ch; }
.track {
  position: relative;
  background: radial-gradient(ellipse at center, #26292f, #17181c 70%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
}
.track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   Testimonials marquee
   ========================================================= */
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.review-card {
  width: 300px;
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; }
.review-meta b { font-size: 0.92rem; }
.review-meta span { font-size: 0.78rem; color: var(--graphite); }
.review-card q { font-size: 0.95rem; line-height: 1.5; quotes: '"' '"'; }
.stars { color: var(--orange); font-size: 0.85rem; letter-spacing: 0.1em; }

/* =========================================================
   Why buy
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.why-card {
  padding: 1.5rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.why-card .icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card .icon svg { width: 26px; height: 26px; }
.why-card h3 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.01em; }
.why-card p { font-size: 0.9rem; color: var(--graphite); }
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Community strip
   ========================================================= */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.community-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: block;
}
.community-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-tile .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.community-tile .play span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(238,240,236,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease);
}
.community-tile:hover .play span { transform: scale(1.12); }
.community-tile .play svg { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Build-your-own teaser
   ========================================================= */
.build-section {
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.notify-form label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.notify-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.notify-row input {
  flex: 1 1 200px;
  padding: 0.85em 1em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
}
.notify-row input:invalid:not(:placeholder-shown) { border-color: var(--orange); }
.form-note { font-size: 0.8rem; color: var(--graphite); }
@media (max-width: 820px) {
  .build-section { grid-template-columns: 1fr; }
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
.final-cta p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #9aa0a6;
  margin-top: 0.9rem;
}
.final-cta .btn { margin-top: 1.8rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #b9bdc4;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand .logo { color: var(--paper); }
.footer-brand p { margin-top: 0.9rem; max-width: 34ch; font-size: 0.92rem; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover { background: var(--orange); border-color: var(--orange); }
.social-row svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.92rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-block: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #797d85;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Cart drawer
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,29,33,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: 150;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--paper);
  z-index: 160;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-family: var(--font-display); font-size: 1.5rem; }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.cart-close svg { width: 14px; height: 14px; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cart-empty {
  color: var(--graphite);
  font-size: 0.92rem;
  text-align: center;
  padding-top: 2rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
}
.cart-item .thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item .thumb img { width: 70%; height: 70%; object-fit: contain; }
.cart-item h4 { font-size: 0.9rem; }
.cart-item .cart-price { font-family: var(--font-mono); font-size: 0.85rem; color: var(--graphite); }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.qty-control button {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  line-height: 1;
}
.cart-item .remove {
  align-self: start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--graphite);
  text-decoration: underline;
}
.cart-foot {
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.4rem 1.4rem;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  border: 1px solid var(--orange);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Section spacing */
.section { padding-block: var(--section-y); }
.section.on-dark { background: var(--ink); color: var(--paper); }
.section.tinted { background: var(--paper-soft); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
