/* ================================================================
   USADOS DE QUALIDADE — v2 Design System
   Modern · Performant · Accessible · SEO-Ready
   ================================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  color-scheme: dark;

  /* Backgrounds */
  --bg: #080412;
  --bg-2: #0d0618;
  --surface: rgba(18, 8, 30, 0.88);
  --surface-strong: #130920;
  --surface-alt: rgba(42, 20, 68, 0.65);
  --surface-hover: rgba(55, 28, 88, 0.72);

  /* Brand Colors */
  --accent: #a070ff;
  --accent-strong: #7340e8;
  --accent-soft: rgba(160, 112, 255, 0.12);
  --accent-glow: rgba(160, 112, 255, 0.28);
  --accent-2: #c084fc;

  /* AWS Orange (featured product) */
  --aws: #FF9900;
  --aws-soft: rgba(255, 153, 0, 0.12);
  --aws-glow: rgba(255, 153, 0, 0.25);

  /* Semantic */
  --success: #7ee8b8;
  --success-dark: #22c472;
  --focus: #f9d66c;
  --muted: #9988bb;
  --muted-strong: #c4b4e0;

  /* Borders */
  --border: rgba(180, 140, 255, 0.14);
  --border-strong: rgba(180, 140, 255, 0.28);
  --border-glow: rgba(160, 112, 255, 0.45);

  /* Shadows */
  --shadow: 0 32px 80px rgba(5, 2, 14, 0.55);
  --shadow-card: 0 8px 36px rgba(5, 2, 14, 0.35);
  --shadow-glow: 0 0 40px rgba(160, 112, 255, 0.18);

  /* Layout */
  --max: 1180px;
  --radius: 1.75rem;
  --radius-sm: 1rem;
  --radius-xs: .625rem;

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f0ebff;
  --bg-2: #e8dffc;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-alt: rgba(234, 224, 255, 0.88);
  --surface-hover: rgba(220, 208, 252, 0.90);
  --text: #16083a;
  --muted: #5c4880;
  --muted-strong: #3a2860;
  --accent: #6820d8;
  --accent-strong: #5010c0;
  --accent-soft: rgba(104, 32, 216, 0.10);
  --accent-glow: rgba(104, 32, 216, 0.18);
  --accent-2: #9044f0;
  --border: rgba(100, 60, 180, 0.15);
  --border-strong: rgba(100, 60, 180, 0.28);
  --border-glow: rgba(104, 32, 216, 0.40);
  --shadow: 0 24px 60px rgba(60, 40, 110, 0.14);
  --shadow-card: 0 8px 28px rgba(60, 40, 110, 0.10);
  --shadow-glow: 0 0 40px rgba(104, 32, 216, 0.14);
  --success: #0c7a48;
  --success-dark: #095c35;
  --aws: #d47800;
  --aws-soft: rgba(212, 120, 0, 0.10);
  --aws-glow: rgba(212, 120, 0, 0.20);
}

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes aurora {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .7; }
  33% { transform: translate(30px, -20px) scale(1.05); opacity: .9; }
  66% { transform: translate(-20px, 10px) scale(.98); opacity: .75; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow), 0 4px 18px var(--accent-glow); }
  50% { box-shadow: 0 0 40px rgba(160, 112, 255, 0.45), 0 4px 28px rgba(160, 112, 255, 0.35); }
}

@keyframes pulseAwsGlow {
  0%, 100% { box-shadow: 0 0 20px var(--aws-glow), 0 4px 18px var(--aws-glow); }
  50% { box-shadow: 0 0 50px rgba(255, 153, 0, 0.45), 0 4px 32px rgba(255, 153, 0, 0.35); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes gradientText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(160, 112, 255, 0.25); }
  50% { border-color: rgba(160, 112, 255, 0.55); }
}

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

@keyframes border-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== REVEAL ANIMATIONS (JS adds .revealed class) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text, #f0e8ff);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Aurora background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% -5%, rgba(140, 80, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(40, 180, 160, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(100, 50, 200, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: aurora 18s ease-in-out infinite;
}

body > * { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
p { line-height: 1.7; }
ul { list-style: none; padding: 0; margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: 1rem; left: 1rem;
  transform: translateY(-200%);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .9rem;
  z-index: 999;
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

/* ===== LAYOUT ===== */
.hero,
.featured-ebook,
.benefits,
.catalog-section,
.product-detail,
.site-footer__inner,
.footer-bottom,
.product-nav {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 4, 18, 0.94);
  border-bottom: 1px solid var(--border);
}

:root[data-theme='light'] .site-header {
  background: rgba(240, 235, 255, 0.94);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}

/* ===== BRAND LOGO ===== */
.brand-logo-svg {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.brand-logo-img {
  width: clamp(7rem, 18vw, 16rem);
  height: auto;
  object-fit: contain;
}
.brand-slogan { display: none; }

/* ===== HEADER ACTIONS ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.primary-button,
.ghost-button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .88rem;
  font-family: var(--font-body);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(140, 80, 255, 0.50);
}
.primary-button:active { transform: translateY(0); }

/* WhatsApp */
.primary-button--whatsapp {
  background: linear-gradient(135deg, #4ade9a, #22c472) !important;
  color: #062212 !important;
  box-shadow: 0 4px 20px rgba(126, 232, 184, 0.32) !important;
}
.primary-button--whatsapp:hover {
  box-shadow: 0 8px 32px rgba(126, 232, 184, 0.50) !important;
}

/* AWS eBook CTA */
.primary-button--aws {
  background: linear-gradient(135deg, #FF9900, #FF6B00) !important;
  color: #1a0800 !important;
  box-shadow: 0 4px 22px rgba(255, 153, 0, 0.35) !important;
  animation: pulseAwsGlow 2.5s ease-in-out infinite;
  font-size: .95rem !important;
  padding: .75rem 1.75rem !important;
}
.primary-button--aws:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 40px rgba(255, 153, 0, 0.55) !important;
}

/* Ghost */
.ghost-button,
.theme-toggle {
  background: var(--surface-alt);
  color: var(--text, #f0e8ff);
  border-color: var(--border);
}
.ghost-button:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Ícone do botão SantosQA — some no desktop, substitui o texto no mobile */
.ghost-button__icon { display: none; align-items: center; justify-content: center; }
.ghost-button__icon svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* Share button */
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--text, #f0e8ff);
  font-weight: 600;
  font-size: .88rem;
  font-family: var(--font-body);
  width: 100%;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.share-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Mesmo efeito do card do eBook (borda pulsante + linha de brilho) — chama atenção para o botão */
.share-button-wrap {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(160, 112, 255, 0.35);
  animation: borderGlow 4s ease-in-out infinite;
}
.share-button-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #c9a6ff, var(--accent), transparent);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.share-button-wrap .share-button {
  position: relative;
  z-index: 1;
  width: 100%;
  border: none;
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--success);
  font-weight: 700;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 40%, var(--success) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s linear infinite;
}

.gradient-text-aws {
  background: linear-gradient(135deg, #FF9900, #FFD000, #FF6B00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 3s linear infinite;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 2.5rem 0 1.5rem;
}

/* Glassmorphism card base */
.glass-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

.hero-copy,
.hero-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: .9rem;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: .96rem;
  line-height: 1.7;
}

/* Hero slogan block */
.hero-slogan-block {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(160, 112, 255, 0.10), rgba(42, 20, 68, 0.50));
  border: 1px solid rgba(160, 112, 255, 0.24);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  animation: borderGlow 3s ease-in-out infinite;
}
.hero-slogan-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}
:root[data-theme='light'] .hero-slogan-block {
  background: linear-gradient(135deg, rgba(104, 32, 216, 0.08), rgba(230, 220, 252, 0.75));
}

.hero-slogan-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.hero-slogan-text {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.8vw, 1.12rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text, #f0e8ff);
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-meta {
  margin-top: .85rem;
  font-size: .77rem;
  color: var(--muted);
  letter-spacing: .01em;
}
.metro-tag {
  color: #4a9bd4;
  font-weight: 600;
}

/* Hero right panel */
.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-panel__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(160, 112, 255, 0.16), transparent 65%);
  pointer-events: none;
}

/* Stats */
.hero-stats {
  position: relative; z-index: 1;
  display: grid;
  gap: .65rem;
}
.hero-stats span {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.hero-stats span:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.stat-icon { font-size: 1.1rem; }

/* Hero badge */
.hero-badge {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(160, 112, 255, 0.20), rgba(42, 20, 68, 0.70));
  border: 1px solid rgba(160, 112, 255, 0.35);
}
:root[data-theme='light'] .hero-badge {
  background: linear-gradient(135deg, rgba(104, 32, 216, 0.10), rgba(230, 220, 252, 0.88));
  border-color: rgba(104, 32, 216, 0.28);
}
.badge-icon {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}
.hero-badge strong { display: block; font-size: .88rem; line-height: 1.25; }
.hero-badge small { font-size: .74rem; color: var(--muted); }

/* ===== FEATURED EBOOK SECTION ===== */
.featured-ebook {
  padding: 2rem 0;
}

.featured-ebook-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 153, 0, 0.35);
  background: linear-gradient(135deg, rgba(18, 8, 30, 0.92), rgba(255, 100, 0, 0.06));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(255, 153, 0, 0.12), var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  animation: borderGlow 4s ease-in-out infinite;
}

.featured-ebook-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(255, 153, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 50%, rgba(160, 112, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.featured-ebook-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF9900, #ffd000, #FF9900, transparent);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

:root[data-theme='light'] .featured-ebook-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 153, 0, 0.05));
}

.featured-ebook__label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid rgba(255, 153, 0, 0.35);
  color: #FF9900;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.featured-ebook__content { position: relative; z-index: 1; }

.featured-ebook__content h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.featured-ebook__desc {
  color: var(--muted-strong, #c4b4e0);
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-ebook__benefits {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.featured-benefit {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text, #f0e8ff);
}
.featured-benefit-icon {
  width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: #062212;
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.featured-ebook__cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.featured-price {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--success);
  line-height: 1;
}
.featured-price-sub {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .15rem;
}

.featured-ebook__visual {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.featured-ebook__img-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 153, 0, 0.25);
  box-shadow: 0 16px 48px rgba(255, 153, 0, 0.18), 0 4px 16px rgba(0,0,0,0.4);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: float 4s ease-in-out infinite;
}
.featured-ebook__img-wrap:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 64px rgba(255, 153, 0, 0.30), 0 8px 24px rgba(0,0,0,0.4);
  animation: none;
}
.featured-ebook__img-wrap img { width: 100%; display: block; }

.featured-ebook__badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ebook-badge {
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--aws-soft);
  border: 1px solid rgba(255, 153, 0, 0.25);
  color: var(--aws);
  font-size: .73rem;
  font-weight: 600;
}

/* ===== BENEFITS ===== */
.benefits,
.catalog-section {
  padding: 2rem 0;
}

.section-heading { margin-bottom: 1.75rem; }
.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: .25rem;
  letter-spacing: -.02em;
}
.section-heading--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(5, 2, 14, 0.45), 0 0 0 1px rgba(160, 112, 255, 0.18);
  border-color: var(--border-strong);
}

.benefit-icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: .9rem;
  transition: background .2s, border-color .2s;
}
.benefit-card:hover .benefit-icon {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.benefit-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.benefit-card p { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.6; }

/* ===== CATEGORY FILTERS ===== */
.category-filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.category-filter {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all .22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.category-filter:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text, #f0e8ff);
  transform: translateY(-1px);
}
.category-filter.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 16px rgba(140, 80, 255, 0.35);
}
.category-icon { font-size: .95rem; }

/* ===== CARD WRAPPER — border runner ===== */
.card-wrapper {
  position: relative;
  border-radius: var(--radius);
  /* passa sizing do grid para o filho */
  min-height: 0;
  height: 100%;
}

/* Camada giratória por trás do card */
.card-border-runner {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s;
}

/* Ativado no hover do wrapper */
.card-wrapper:hover .card-border-runner { opacity: 1; }

/* Também ativo para o card do ebook (sempre visível) */
.card-wrapper--featured .card-border-runner { opacity: 1; }

.card-border-runner::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    transparent 0deg 300deg,
    rgba(160, 112, 255, 1) 300deg 318deg,
    rgba(192, 132, 252, .7) 318deg 330deg,
    transparent 330deg 360deg
  );
  animation: border-spin 3s linear infinite;
}

/* Variação laranja para o card do ebook (catálogo e seção destaque) */
.card-wrapper--featured .card-border-runner::before,
.card-wrapper--ebook .card-border-runner::before {
  background: conic-gradient(
    transparent 0deg 290deg,
    rgba(255, 153, 0, 1) 290deg 310deg,
    rgba(255, 200, 80, .7) 310deg 325deg,
    transparent 325deg 360deg
  );
  animation-duration: 2.5s;
}

/* Card grande do ebook — runner sempre visível */
.card-wrapper--ebook { border-radius: var(--radius); }
.card-wrapper--ebook .card-border-runner {
  opacity: 1;
  inset: -2px;
}

/* O article fica sobre a camada de borda */
.card-wrapper > article {
  position: relative;
  z-index: 1;
  height: 100%;
}

/* ===== PRODUCT GRID ===== */
.product-grid.catalog-carousels {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  align-items: start;
}
.product-carousel { display: contents; }
.product-carousel__track { display: contents; }

/* ===== PRODUCT CARD ===== */
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: .85rem;
  min-height: 26rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(160, 112, 255, 0.06), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 72px rgba(5, 2, 14, 0.55), 0 0 0 1px rgba(160, 112, 255, 0.25);
  border-color: var(--border-strong);
}

/* Featured card (ebook) gets AWS styling */
.product-card--featured {
  border-color: rgba(255, 153, 0, 0.30);
  background: linear-gradient(160deg, var(--surface), rgba(255, 80, 0, 0.04));
}
.product-card--featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF9900, transparent);
}
.product-card--featured:hover {
  border-color: rgba(255, 153, 0, 0.50);
  box-shadow: 0 28px 72px rgba(5, 2, 14, 0.55), 0 0 0 1px rgba(255, 153, 0, 0.30);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
}
.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-card__image img {
  transform: scale(1.06);
}

/* Badges */
.product-badge {
  position: absolute;
  top: .7rem; right: .7rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: 0 2px 10px rgba(140, 80, 255, 0.40);
}
.product-badge--aws {
  background: linear-gradient(135deg, #FF9900, #FF6B00) !important;
  color: #1a0800 !important;
  box-shadow: 0 2px 10px rgba(255, 153, 0, 0.40) !important;
}
.product-badge--digital {
  top: auto; bottom: .7rem; left: .7rem; right: auto;
  background: linear-gradient(135deg, var(--success), var(--success-dark)) !important;
  color: #062212 !important;
}

/* Card content */
.product-card__content {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: .5rem;
  min-height: 0;
  min-width: 0;
}
.product-card__content h3 {
  font-size: 1rem;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.3;
  min-height: 2.6em;
}
.product-short-desc {
  color: var(--muted);
  font-size: .85rem;
  margin: 0;
  line-height: 1.5;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.55em;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.price {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}
.price--aws { color: var(--aws) !important; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 500;
  white-space: nowrap;
}
.product-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Card actions */
.product-actions--card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: auto;
  padding-top: .25rem;
}
.product-actions--card .ghost-button,
.product-actions--card .primary-button {
  width: 100%;
  padding: .6rem .75rem;
  font-size: .82rem;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
  align-items: start;
  padding: 3rem 0 2rem;
}
.product-detail__media,
.product-detail__content {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.detail-main-image {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.detail-main-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.detail-main-image:hover img { transform: scale(1.03); }

.thumbnail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .65rem;
}
.thumbnail-button {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.thumbnail-button[aria-current='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.thumbnail-button:hover { border-color: var(--accent); }
.thumbnail-button img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.product-detail__content h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.detail-meta {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  display: grid; gap: .65rem;
}
.detail-meta li {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: .88rem;
  line-height: 1.5;
}

.size-list {
  padding: 0; margin: .75rem 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .5rem;
}
.size-list li {
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: .86rem;
}
.product-detail__content h2 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
}

/* Product actions detail */
.product-actions--detail {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.product-actions-row {
  display: flex;
  gap: .75rem;
}
.product-actions-row .primary-button,
.product-actions-row .ghost-button {
  flex: 1;
  padding: .9rem 1rem;
  font-size: .92rem;
  justify-content: center;
}
.product-actions--detail .primary-button {
  width: 100%;
  padding: .9rem 1.5rem;
  font-size: .98rem;
  justify-content: center;
}
.product-actions--detail .ghost-button {
  width: 100%;
  padding: .78rem 1.5rem;
  justify-content: center;
  font-size: .9rem;
}

/* ===== PRODUCT NAV ===== */
.product-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: .6rem;
  padding: .6rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  margin: 1.5rem auto 0;
}
.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 4.5rem;
  padding: .85rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: center;
  transition: all .22s var(--ease);
  cursor: pointer;
  text-decoration: none;
  min-width: 0;
}
.nav-button:not([aria-disabled='true']):hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-button[aria-disabled='true'] {
  opacity: .25;
  cursor: not-allowed;
  pointer-events: none;
}
.nav-button__direction {
  display: block; width: 100%;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
  line-height: 1.15; text-align: center;
}
.nav-button__label {
  display: block; width: 100%;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .75rem; font-weight: 400;
  line-height: 1.2; color: var(--text, #f0e8ff);
  opacity: .45; text-align: center; margin-top: .1rem;
}
.nav-button--home {
  min-width: 8rem; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(160, 112, 255, 0.16), rgba(42, 20, 68, 0.80));
  border-color: var(--border-strong);
}
.nav-button--home .nav-button__direction {
  font-size: .74rem; letter-spacing: .11em; color: var(--muted);
}
.nav-button--home .nav-button__label {
  font-size: .88rem; font-weight: 600;
  color: var(--accent); opacity: 1;
  white-space: normal; text-overflow: unset; overflow: visible;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 1rem 0 0;
  margin-top: 3rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(380px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: 2.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  border: 1px solid var(--border);
  border-bottom: none;
  background:
    linear-gradient(135deg, rgba(126, 232, 184, 0.07) 0%, rgba(160, 112, 255, 0.06) 40%, transparent 70%),
    var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(126, 232, 184, 0.16);
  box-shadow: var(--shadow-card);
}
:root[data-theme='light'] .site-footer__inner {
  background:
    linear-gradient(135deg, rgba(12, 122, 72, 0.05) 0%, rgba(104, 32, 216, 0.04) 40%, transparent 70%),
    var(--surface);
  border-top: 1px solid rgba(12, 122, 72, 0.18);
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo-img {
  width: clamp(9rem, 18vw, 18rem);
  height: auto;
  margin-top: -1rem;
  margin-left: -.7rem;
  object-fit: contain;
  object-position: left;
}
.footer-slogan { color: var(--muted); font-size: .88rem; line-height: 1.65; margin: 0; max-width: 28ch; }
.footer-slogan em { font-style: normal; color: var(--accent); }

.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .85rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px;
  border: 1px solid rgba(126, 232, 184, 0.28);
  background: rgba(126, 232, 184, 0.07);
  color: var(--success);
  white-space: nowrap;
}
:root[data-theme='light'] .footer-badge {
  border-color: rgba(12, 122, 72, 0.22);
  background: rgba(12, 122, 72, 0.06);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-col-title {
  font-size: .73rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--success);
  margin-bottom: .75rem; font-weight: 700;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a, .footer-links span {
  font-size: .86rem; color: var(--muted);
  transition: color .2s; display: flex; align-items: center; gap: .4rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-location { font-size: .86rem; color: var(--muted); }

.footer-bottom {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem 0 2.5rem;
}
.footer-social-dock {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-inline: auto; padding: .4rem .6rem;
  border: 1px solid rgba(180, 140, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #2b2140;
  box-shadow: 0 10px 32px rgba(5, 2, 14, 0.20);
}
:root[data-theme='light'] .footer-social-dock { background: rgba(255, 255, 255, 0.98); }
.footer-profile-mark, .icon-link {
  width: 2rem; height: 2rem;
  display: inline-grid; place-items: center;
  flex: 0 0 auto; border-radius: 999px;
}
.footer-profile-mark {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #a855f7);
  font-size: .9rem;
}
.footer-profile {
  display: grid; line-height: 1.05;
  padding: 0 .5rem 0 .1rem;
  border-right: 1px solid rgba(43, 33, 64, 0.12);
  margin-right: .15rem;
}
.footer-profile strong { font-size: .76rem; color: #57408d; }
.footer-profile small { color: #8d829d; font-size: .7rem; }
.icon-link {
  color: #5b46a2; background: #f2eeff;
  transition: transform .2s, background .2s, color .2s;
}
.icon-link:hover { transform: translateY(-2px); background: #e5d8ff; color: var(--accent-strong); }
.icon-link svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ===== EMPTY STATE ===== */
.empty-state {
  padding: 3rem; text-align: center;
  border: 1px dashed var(--border);
  border-radius: 1.5rem; background: var(--surface);
  color: var(--muted); font-size: .95rem;
}

/* ===== CUSTOM ELEMENTS ===== */
success { color: var(--success); }
metro-azul { color: #4a9bd4; font-weight: 600; }
roxo { color: var(--accent); }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .featured-ebook-card { grid-template-columns: 1fr; }
  .featured-ebook__visual { order: -1; }
  .featured-ebook__img-wrap { max-width: 360px; }
  .product-detail { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; border-radius: var(--radius); }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }
  .section-heading--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 640px) {
  body { font-size: .94rem; }

  .header-inner { width: calc(100% - 1.5rem); padding: .6rem 0; }

  /* Logo não pode ser espremida pelos botões — tamanho protegido e legível */
  .brand-logo-svg { flex-shrink: 0; }
  .brand-logo-img { width: clamp(7.5rem, 40vw, 11rem); }

  .header-actions { gap: .35rem; }
  .header-actions .ghost-button,
  .header-actions .theme-toggle { font-size: .8rem; padding: .55rem .9rem; }

  /* Botão SantosQA vira ícone-only no mobile (mesmo padrão do alternador de tema) */
  .header-actions a[href="https://santosqa.github.io/"] { padding: .55rem .8rem; }
  .header-actions a[href="https://santosqa.github.io/"] .ghost-button__label { display: none; }
  .header-actions a[href="https://santosqa.github.io/"] .ghost-button__icon { display: inline-flex; }

  /* Alternador de tema vira ícone-only no mobile (aria-label mantém acessibilidade) */
  .theme-toggle__label { display: none; }
  .header-actions .theme-toggle { padding: .55rem .8rem; }

  .hero, .featured-ebook, .benefits,
  .catalog-section, .product-detail,
  .footer-bottom {
    width: calc(100% - 1.5rem);
  }

  .hero { padding: 1.5rem 0 1rem; }
  .hero-panel { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .primary-button,
  .hero-actions .ghost-button { width: 100%; }

  .featured-ebook-card { padding: 1.5rem; gap: 1.25rem; }
  .featured-ebook__img-wrap { max-width: 100%; }

  /* Category filters: horizontal scroll */
  .category-filters {
    flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: .75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-filters::-webkit-scrollbar { display: none; }
  .category-filter { flex: 0 0 auto; scroll-snap-align: start; }

  /* Carousel on mobile */
  .product-grid.catalog-carousels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .product-carousel { display: block; }
  .product-carousel__track {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: .25rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-carousel__track::-webkit-scrollbar { display: none; }
  .product-carousel .card-wrapper {
    flex: 0 0 85%;
    max-width: 18rem;
    scroll-snap-align: start;
  }
  .product-carousel .product-card {
    min-height: 24rem;
  }

  /* Card actions: stack */
  .product-actions--card { grid-template-columns: 1fr; gap: .45rem; }

  /* Detail actions: stack */
  .product-actions-row { flex-direction: column; gap: .5rem; }
  .product-actions-row .primary-button,
  .product-actions-row .ghost-button { width: 100%; }

  /* Product nav: stack */
  .product-nav {
    grid-template-columns: 1fr;
    gap: .45rem; padding: .45rem;
    width: calc(100% - 1.5rem);
  }
  .nav-button--prev, .nav-button--next, .nav-button--home {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 3.25rem;
    padding: .65rem 1rem;
    gap: .75rem;
  }
  .nav-button--prev .nav-button__direction,
  .nav-button--next .nav-button__direction {
    text-align: left; flex-shrink: 0; white-space: nowrap; opacity: 1; width: auto;
  }
  .nav-button--prev .nav-button__label,
  .nav-button--next .nav-button__label {
    flex: 1; min-width: 0; width: auto;
    text-align: right; font-size: .78rem;
    opacity: .4; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis; margin-top: 0;
  }
  .nav-button--home { justify-content: center; gap: .6rem; }
  .nav-button--home .nav-button__direction,
  .nav-button--home .nav-button__label { text-align: center; }

  .site-footer__inner {
    width: calc(100% - 1.5rem);
    padding: 1.5rem;
    border-radius: var(--radius);
  }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }
  .footer-logo-img { width: clamp(8rem, 35vw, 14rem); }
  .footer-social-dock { width: fit-content; max-width: 100%; flex-wrap: wrap; border-radius: 1.25rem; justify-content: center; }
  .footer-profile { border-right: none; }

  .thumbnail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail__media, .product-detail__content { padding: 1rem; }
}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  body::before { animation: none; }
  .reveal, .reveal-scale, .reveal-left { opacity: 1; transform: none; transition: none; }
}
