/* ============================================================
   TESLA-ESSENTIALS.COM — QUIET SHOWROOM MINIMALISM
   Manrope (display + body) · JetBrains Mono (eyebrow labels)
   Pure white / true black · Tesla red as a single sharp accent
   Generous whitespace · Hairline borders · Soft elevation
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Surface */
  --bg:              #ffffff;
  --bg-soft:         #fafafa;
  --bg-panel:        #f4f4f6;
  --bg-elevated:     #ffffff;

  /* Ink */
  --ink:             #0a0a0a;
  --ink-soft:        #4a4a4f;
  --ink-mute:        #8a8a90;
  --ink-faint:       #b8b8be;

  /* Edges */
  --edge:            #ececef;
  --edge-strong:     #d8d8de;

  /* Accent — Tesla red (used SPARINGLY) */
  --accent:          #cc0000;
  --accent-hover:    #a30000;
  --accent-soft:     rgba(204, 0, 0, 0.08);

  /* Shadows — soft, layered, premium */
  --shadow-sm:       0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md:       0 1px 3px rgba(10, 10, 10, 0.04), 0 4px 12px rgba(10, 10, 10, 0.05);
  --shadow-lg:       0 1px 4px rgba(10, 10, 10, 0.05), 0 12px 32px rgba(10, 10, 10, 0.08);
  --shadow-accent:   0 1px 3px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(204, 0, 0, 0.12);

  /* Typography */
  --font-display:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-body:       'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --max-width:       1240px;
  --max-content:     820px;
  --nav-h:           56px;

  /* Radii */
  --r-sm:            6px;
  --r-md:            12px;
  --r-lg:            20px;
  --r-pill:          999px;

  /* Motion */
  --ease:            cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #000000;
    --bg-soft:       #0a0a0a;
    --bg-panel:      #131316;
    --bg-elevated:   #18181c;

    --ink:           #f5f5f7;
    --ink-soft:      #c8c8cd;
    --ink-mute:      #8a8a90;
    --ink-faint:     #5a5a60;

    --edge:          #232328;
    --edge-strong:   #34343a;

    --accent:        #ff3838;
    --accent-hover:  #ff5252;
    --accent-soft:   rgba(255, 56, 56, 0.10);

    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:     0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg:     0 1px 4px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(255, 56, 56, 0.18);
  }
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

p {
  color: var(--ink-soft);
}

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

/* --- Container utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(540px, 88vh, 880px);
  display: flex;
  align-items: flex-end;
  padding: 96px 24px 80px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-soft);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.05);
}

/* Soft fade for legibility — light mode keeps the photo bright at top, fades to white at bottom for text */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.5) 65%,
    var(--bg) 100%
  );
}

@media (prefers-color-scheme: dark) {
  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.85) 80%,
      var(--bg) 100%
    );
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  animation: heroIn 1s var(--ease-out) both;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: heroEyebrow 0.9s 0.1s var(--ease-out) both;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  margin-bottom: 24px;
  animation: heroIn 1s 0.15s var(--ease-out) both;
}

.hero h1 span {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.04em;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
  animation: heroIn 1s 0.3s var(--ease-out) both;
}

.hero .cta-button {
  animation: heroIn 1s 0.45s var(--ease-out) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroEyebrow {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FTC BANNER
   ============================================================ */
.ftc-banner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--edge);
}

.ftc-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-mute);
  text-align: center;
}

.ftc-banner__inner strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ============================================================
   OWNER BAR
   ============================================================ */
.owner-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--edge);
}

.owner-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

.owner-bar a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--edge-strong);
  padding-bottom: 1px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.owner-bar a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.owner-bar a span {
  color: inherit;
}

@media (max-width: 639px) {
  .owner-bar__inner {
    padding: 12px 20px;
    font-size: 0.78rem;
    text-align: left;
  }
}

/* ============================================================
   STICKY CATEGORY NAV
   ============================================================ */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--edge);
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow 250ms var(--ease);
}

@media (prefers-color-scheme: dark) {
  .category-nav {
    background: var(--bg);
  }
}

.category-nav.is-stuck {
  box-shadow: var(--shadow-sm);
}

.category-nav__inner {
  display: flex;
  gap: 4px;
  padding: 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.category-nav__inner::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  position: relative;
  transition: color 180ms var(--ease), background 180ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.nav-pill:hover {
  color: var(--ink);
  background: var(--bg-panel);
}

.nav-pill.active {
  color: var(--bg);
  background: var(--ink);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .nav-pill.active {
    color: var(--bg);
    background: var(--ink);
  }
}

/* External nav pill — visually distinct (Cybertruck cross-link) */
.nav-pill--external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  border: 1px solid var(--edge-strong);
}

.nav-pill--external span {
  font-size: 0.8em;
  opacity: 0.6;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease);
  display: inline-block;
}

.nav-pill--external:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.nav-pill--external:hover span {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
  padding: 96px 0;
  border-top: 1px solid transparent;
}

.section + .section {
  border-top: 1px solid var(--edge);
}

.section--alt {
  background: var(--bg-soft);
}

.section__header {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  padding: 0 24px;
}

.section__header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.section__header h2::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.section.in-view .section__header h2::before {
  opacity: 1;
}

.section__intro {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 580px;
}

/* Screen-size guide pinned under section intro */
.section__guide {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 14px 10px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--ink);
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
}

.section__guide strong {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.section__guide-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-shrink: 0;
  padding-top: 3px;
}

/* ============================================================
   PRODUCT GRID + CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Empty grid placeholder — visible only when no products yet */
.product-grid:empty {
  min-height: 200px;
  border: 1px dashed var(--edge-strong);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 24px;
}

.product-grid:empty::after {
  content: 'Products coming soon';
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    transform 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out),
    border-color 250ms var(--ease);
  opacity: 0;
  transform: translateY(20px);
  will-change: transform;
}

.product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback so cards never stay invisible if JS fails */
@keyframes cardFallback {
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: cardFallback 0.5s 1.6s forwards;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--edge-strong);
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 600ms var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.product-card__fit {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.product-card h3 {
  margin-top: 2px;
}

.product-card__review {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex-grow: 1;
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #fff;
  background: var(--accent);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  min-height: 48px;
  position: relative;
  overflow: hidden;
  transition:
    background 200ms var(--ease),
    transform 200ms var(--ease),
    box-shadow 250ms var(--ease);
  -webkit-tap-highlight-color: transparent;
  align-self: flex-start;
}

.cta-button::after {
  content: '→';
  display: inline-block;
  transition: transform 220ms var(--ease-out);
  font-weight: 500;
}

.cta-button:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.cta-button:hover::after {
  transform: translateX(4px);
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* In-card CTA — full-width, slightly less prominent */
.product-card .cta-button {
  width: 100%;
  align-self: stretch;
  margin-top: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.86rem;
  padding: 12px 22px;
  min-height: 44px;
}

.product-card .cta-button:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

/* External link indicator on product CTAs */
.product-card .cta-button::after {
  content: '↗';
  font-size: 0.95em;
  transform: none;
}

.product-card .cta-button:hover::after {
  transform: translate(2px, -2px);
}

/* ============================================================
   CYBERTRUCK CROSS-PROMO
   ============================================================ */
.section--feature {
  padding: 96px 24px;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .section--feature {
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-elevated) 100%);
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
  }
}

/* Subtle diagonal accent line — angular nod to Cybertruck without going full brutalism */
.section--feature::before {
  content: '';
  position: absolute;
  top: 0;
  right: -120px;
  width: 360px;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, transparent 48%, var(--accent) 48%, var(--accent) 50%, transparent 50%);
  opacity: 0.4;
  pointer-events: none;
}

.cybertruck-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.cybertruck-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}

.cybertruck-card h2 {
  color: var(--bg);
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.03em;
}

@media (prefers-color-scheme: dark) {
  .cybertruck-card h2 { color: var(--ink); }
}

.cybertruck-card__lede {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-color-scheme: dark) {
  .cybertruck-card__lede { color: var(--ink-soft); }
}

.cybertruck-card .cta-button {
  align-self: center;
  margin: 0 auto;
}

@media (max-width: 639px) {
  .section--feature { padding: 72px 20px; }
}

/* ============================================================
   CALLOUTS
   ============================================================ */
.warning-callout,
.info-callout {
  max-width: var(--max-content);
  margin: 24px auto;
  padding: 16px 20px 16px 24px;
  border-radius: var(--r-md);
  border-left: 3px solid;
}

.warning-callout {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.info-callout {
  background: var(--bg-panel);
  border-color: var(--ink-soft);
}

.warning-callout__label,
.info-callout__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.warning-callout__label { color: var(--accent); }
.info-callout__label    { color: var(--ink-soft); }

.warning-callout p,
.info-callout p {
  font-size: 0.9rem;
  color: var(--ink);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  box-shadow: var(--shadow-md);
  z-index: 60;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--edge);
  padding: 80px 24px 40px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--edge);
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.site-footer__tagline {
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.site-footer__links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 160ms var(--ease);
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__disclaimer {
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__disclaimer p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 760px;
}

.site-footer__disclaimer strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.site-footer__copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 20px;
  border-top: 1px solid var(--edge);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (min-width: 768px) {
  .container,
  .section__header,
  .product-grid,
  .ftc-banner__inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .category-nav__inner {
    padding: 12px 40px;
  }

  .section {
    padding: 120px 0;
  }

  .section__header {
    margin-bottom: 64px;
  }

  .hero {
    padding: 120px 40px 100px;
  }

  .site-footer {
    padding: 100px 40px 48px;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
  }

  .site-footer__links {
    justify-content: flex-end;
  }
}

/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .hero__content {
    max-width: 820px;
  }

  .section__header h2::before {
    left: -28px;
    width: 10px;
    height: 10px;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    gap: 28px;
  }
}

/* ============================================================
   MOBILE FINE-TUNING
   ============================================================ */
@media (max-width: 639px) {
  body { line-height: 1.65; }

  .hero {
    min-height: 78vh;
    padding: 80px 20px 64px;
  }

  .hero__sub {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .section { padding: 72px 0; }
  .section__header { margin-bottom: 40px; padding: 0 20px; }
  .section__header h2::before { display: none; }

  .product-grid { padding: 0 20px; gap: 16px; }
  .product-grid:empty { margin: 0 20px; }

  .ftc-banner__inner { padding: 12px 20px; font-size: 0.74rem; }

  .nav-pill { padding: 9px 14px; font-size: 0.8rem; }

  .site-footer { padding: 64px 20px 32px; }
  .back-to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   FALLBACKS / A11Y
   ============================================================ */
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .category-nav {
    background: var(--bg);
  }
  @media (prefers-color-scheme: dark) {
    .category-nav { background: var(--bg); }
  }
  .hero__eyebrow { backdrop-filter: none; }
}

@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;
  }
  .product-card { opacity: 1; transform: none; }
}

/* Focus styles — visible without being ugly */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

a.nav-pill:focus-visible,
.cta-button:focus-visible {
  outline-offset: 3px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FOCUS STYLES (keyboard accessibility)
   Adapted from sister site with this project's softer aesthetic.
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* For elements where outline would look out of place with the design */
.cta-button:focus-visible,
.nav-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}
