/* ============================================================
   LINGUIFY ANKI DECKS — styles.css
   Design tokens derived from the Linguify brand mark:
   deep navy, gold "FY" accent, dotted world-map motif.
   ============================================================ */

:root {
  /* ---- Color tokens ---- */
  --navy-950: #060d1f;
  --navy-900: #0a1730;
  --navy-850: #0d1c3c;
  --navy-800: #122a52;
  --navy-700: #1b3868;
  --navy-600: #274a83;
  --gold-500: #f2a93b;
  --gold-400: #ffc65c;
  --gold-300: #ffe0a3;
  --white: #f7f8fc;
  --ink-200: #c7d3ea;
  --ink-300: #9fb0d1;
  --ink-500: #6c7fa6;

  /* level pill tints (soft / pastel, sit as translucent chips on navy) */
  --level-a: #bfe8ce;
  --level-b: #f2c879;
  --level-c: #e7b6e8;

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* ---- Radii / shadow / motion ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px -18px rgba(3, 8, 20, 0.65);
  --shadow-modal: 0 30px 90px -20px rgba(2, 5, 14, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 76px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }

body {
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Visible focus ring everywhere, keyboard-first */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Dotted world-map signature texture
   (echoes the Linguify logo background)
   ============================================================ */
.map-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--navy-600) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500'><path fill='white' d='M60 180c40-30 90-10 120 10s70 10 100-10 80-30 120-5 40 40 90 30 70-40 120-25 60 35 110 20 55-35 100-15 70 45 120 25v90c-50 25-80-15-130 5s-60 40-110 20-70-45-120-20-55 35-100 10-80-20-120 5-70 35-110 5-40-45-90-25-80 15-120-10-90-20-100-60c-8-30 10-45 20-60z'/><path fill='white' d='M600 90c60-20 110 10 150 30s90 5 130-15 90-20 130 10 30 55 80 60 90-25 130 0 40 50 30 90c-10 35-60 30-100 45s-70 40-120 20-60-40-110-25-70 30-120 5-90-25-110-65c-15-30 0-55 20-75z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500'><path fill='white' d='M60 180c40-30 90-10 120 10s70 10 100-10 80-30 120-5 40 40 90 30 70-40 120-25 60 35 110 20 55-35 100-15 70 45 120 25v90c-50 25-80-15-130 5s-60 40-110 20-70-45-120-20-55 35-100 10-80-20-120 5-70 35-110 5-40-45-90-25-80 15-120-10-90-20-100-60c-8-30 10-45 20-60z'/><path fill='white' d='M600 90c60-20 110 10 150 30s90 5 130-15 90-20 130 10 30 55 80 60 90-25 130 0 40 50 30 90c-10 35-60 30-100 45s-70 40-120 20-60-40-110-25-70 30-120 5-90-25-110-65c-15-30 0-55 20-75z'/></svg>");
  -webkit-mask-size: cover;
  mask-size: cover;
  opacity: 0.55;
  pointer-events: none;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(6,13,31,0.96) 0%, rgba(6,13,31,0.86) 70%, rgba(6,13,31,0) 100%);
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease);
}

.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--white);
}
.brand-wordmark .fy { color: var(--gold-500); }
/* .brand-bubble removido 2026-09-09 — a identidade oficial (capas 3:4)
   usa o wordmark limpo, sem os 3 pontos. O <span> foi retirado do HTML. */

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-200);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  width: 230px;
  transition: width 0.25s var(--ease), border-color 0.2s var(--ease);
}
.search-wrap:focus-within {
  width: 300px;
  border-color: var(--gold-500);
}
.search-wrap svg { flex-shrink: 0; opacity: 0.7; width: 16px; height: 16px; }
.search-wrap input {
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  width: 100%;
}
.search-wrap input::placeholder { color: var(--ink-500); }
.search-wrap input:focus { outline: none; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mobile nav */
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .search-wrap { width: 0; padding: 8px; border-color: transparent; background: transparent; }
  .search-wrap svg { display: none; }
  .search-wrap input { display: none; }
  .search-wrap.mobile-open {
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 8px);
    width: auto; background: var(--navy-850); border: 1px solid var(--navy-700); padding: 10px 14px;
    z-index: 56;
  }
  .search-wrap.mobile-open svg { display: block; }
  .search-wrap.mobile-open input { display: block; }
  .menu-toggle { display: flex; }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy-950);
    z-index: 55;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--navy-800);
  }
}
@media (min-width: 861px) {
  .mobile-nav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  padding: clamp(96px, 12vh, 140px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 80px);
  margin-top: calc(var(--header-h) * -1);
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 15%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
.hero .map-texture { opacity: 0.35; }

/* Layout do hero: texto à esquerda, Anki Deck Preview à direita. */
.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 468px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.hero-preview { min-width: 0; }

@media (max-width: 980px) {
  .hero { align-items: flex-start; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 6vw, 44px);
  }
  .hero-preview { max-width: 460px; }
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  mix-blend-mode: normal;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--navy-950) 0%, rgba(6,13,31,0.55) 45%, rgba(6,13,31,0.15) 75%),
    linear-gradient(90deg, var(--navy-950) 0%, rgba(6,13,31,0.35) 45%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold-500);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-title .accent { color: var(--gold-500); }

.hero-text {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-200);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  width: fit-content;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(242,169,59,0.55); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }

/* ============================================================
   Language filter bar
   ============================================================ */
.filter-bar {
  position: relative;
  z-index: 5;
  padding: 22px clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--navy-800);
  background: var(--navy-950);
}
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-row .filter-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin-right: 4px;
  flex-shrink: 0;
}
.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--navy-700);
  background: var(--navy-850);
  color: var(--ink-200);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--gold-500); color: var(--white); }
.chip[aria-pressed="true"] {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.filter-toggle-more {
  font-size: 13px;
  color: var(--gold-400);
  font-weight: 600;
  padding: 6px 4px;
  flex-shrink: 0;
}

.active-filters-summary {
  font-size: 13px;
  color: var(--ink-500);
  min-height: 18px;
}
.active-filters-summary strong { color: var(--gold-400); font-weight: 600; }

/* ============================================================
   Content sections & carousels
   ============================================================ */
.catalog { padding: 8px clamp(16px, 4vw, 48px) 40px; }

.content-section { margin: 46px 0; }
.content-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.content-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 25px);
}
.content-section-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
}

.category-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  padding-top: 50px;
  margin-bottom: 4px;
  scroll-margin-top: calc(var(--header-h) + 90px);
}
.category-subheading {
  color: var(--ink-300);
  font-size: 14.5px;
  max-width: 620px;
  margin-bottom: 6px;
}

.carousel-wrap { position: relative; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
  padding: 6px 4px 14px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(6,13,31,0.85);
  border: 1px solid var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.carousel-wrap:hover .carousel-nav { opacity: 1; }
.carousel-nav:hover { background: var(--navy-800); }
.carousel-nav.prev { left: -6px; }
.carousel-nav.next { right: -6px; }
.carousel-nav svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .carousel-nav { display: none; } }

/* ============================================================
   Card
   ============================================================ */
.card {
  position: relative;
  flex: 0 0 auto;
  width: 186px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.28s var(--ease);
}
.card:hover, .card:focus-visible { transform: translateY(-6px) scale(1.035); z-index: 3; }

.card-poster {
  position: relative;
  width: 100%;
  /* 3:4 = proporcao oficial das capas Linguify (896x1200). A capa preenche
     o slot exatamente, sem crop. */
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-card);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-poster-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  color: rgba(255,255,255,0.92);
}

.card-badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.badge-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(6,13,31,0.75);
  backdrop-filter: blur(4px);
}
.badge-new { color: var(--gold-400); border: 1px solid var(--gold-500); }
.badge-popular { color: #ffb7a6; border: 1px solid #ffb7a6; }
.badge-free { color: var(--level-a); border: 1px solid var(--level-a); }
.badge-updated { color: var(--ink-200); border: 1px solid var(--ink-300); }

.level-pill {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(6,13,31,0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}
.level-pill[data-band="a"] { color: var(--level-a); }
.level-pill[data-band="b"] { color: var(--level-b); }
.level-pill[data-band="c"] { color: var(--level-c); }

.card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,13,31,0.95) 0%, rgba(6,13,31,0.15) 55%, transparent 75%);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.card:hover .card-scrim, .card:focus-visible .card-scrim { opacity: 1; }
.card-scrim-action {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-meta { padding: 10px 2px 0; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-400, var(--ink-300));
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .card { width: 130px; }
  .card:hover, .card:focus-visible { transform: none; }
  .card-scrim { display: none; }
  /* A grade de resultados filtrados/busca quebra linha (ao contrário dos
     carrosséis, que rolam horizontalmente) — em largura de card fixa (130px)
     sobra um vão à direita em telas maiores que 2 cards + gap. Usar 50% da
     linha por card preenche a largura toda, igual à grade do hub /anki/. */
  .filtered-grid .card { width: calc(50% - 9px); }
}

/* Video / tutorial card variant */
.video-card { width: 260px; }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-card);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,13,31,0.28);
}
.play-badge svg {
  width: 46px; height: 46px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  transition: transform 0.2s var(--ease);
}
.video-card:hover .play-badge svg, .video-card:focus-visible .play-badge svg { transform: scale(1.1); }
@media (max-width: 700px) { .video-card { width: 210px; } }

/* ============================================================
   Empty / no-results state
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-300);
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
}
.empty-state button { color: var(--gold-400); font-weight: 600; margin-top: 14px; }

/* ============================================================
   How it works
   ============================================================ */
.how-section {
  padding: 70px clamp(16px, 4vw, 48px);
  background: var(--navy-900);
  border-top: 1px solid var(--navy-800);
  border-bottom: 1px solid var(--navy-800);
  position: relative;
}
.how-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  max-width: 620px;
  margin-bottom: 40px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--navy-850);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}
.step-text { font-size: 14px; color: var(--ink-300); }

/* ---- Combos (bundles) ---- */
.combos-section {
  padding: 70px clamp(16px, 4vw, 48px);
  background: var(--navy-950);
  border-top: 1px solid var(--navy-800);
}
.combos-inner { max-width: 1140px; margin: 0 auto; }
.combos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.combos-grid > .combo-card { flex: 1 1 200px; }
@media (max-width: 940px) { .combos-grid > .combo-card { flex-basis: calc(50% - 10px); } }
@media (max-width: 520px) { .combos-grid > .combo-card { flex-basis: 100%; } }

.combo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--navy-850);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.combo-card:hover, .combo-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold-500);
}
.combo-card-cover {
  width: 100%;
  height: auto;          /* fonte já é 3:4 (800x1067) — sem aspect-ratio/cover */
  display: block;
  border-bottom: 1px solid var(--navy-800);
}
.combo-card > :not(.combo-card-cover) { margin-left: 22px; margin-right: 22px; }
.combo-card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 18px;
  margin-bottom: 10px;
}
.combo-card-go { margin-bottom: 22px; }
.combo-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.combo-card-name .accent { color: var(--gold-500); }
.combo-card-desc { font-size: 13.5px; color: var(--ink-300); flex: 1; }
.combo-card-price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.combo-card-price .old {
  color: var(--ink-500);
  text-decoration: line-through;
  font-size: 13px;
}
.combo-card-price .now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--gold-400);
}
.combo-card-save {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--level-a);
}
.combo-card-go {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.combo-card-go svg { width: 15px; height: 15px; }

/* Anki explainer + philosophy */
.split-section {
  padding: 70px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 820px) { .split-section { grid-template-columns: 1fr; gap: 40px; } }

.info-block .section-kicker { margin-bottom: 10px; }
.info-block h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  margin-bottom: 14px;
}
.info-block p { color: var(--ink-300); font-size: 15px; margin-bottom: 18px; max-width: 480px; }
.text-link {
  color: var(--gold-400);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover { color: var(--gold-300); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 50px clamp(16px, 4vw, 48px) 34px;
  border-top: 1px solid var(--navy-800);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-300); }
.footer-links a:hover { color: var(--gold-400); }
.footer-copy { font-size: 12.5px; color: var(--ink-500); width: 100%; margin-top: 20px; }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,8,20,0.72);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-panel {
  width: min(760px, 100%);
  max-height: min(88vh, 880px);
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-shadow: var(--shadow-modal);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--navy-600) transparent;
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
/* Scrollbar fino e temático — não encosta nos cantos arredondados. */
.modal-panel::-webkit-scrollbar { width: 10px; }
.modal-panel::-webkit-scrollbar-track { background: transparent; }
.modal-panel::-webkit-scrollbar-thumb {
  background: var(--navy-600);
  border-radius: 999px;
  border: 3px solid var(--navy-900);
}
.modal-panel::-webkit-scrollbar-thumb:hover { background: var(--navy-700); }

@media (max-width: 700px) {
  .modal-overlay { padding: 0; }
  .modal-panel { width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
}

.modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
  background: var(--navy-800);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
/* Quando a mídia é a CAPA 3:4 (arte fechada): mostra inteira sobre o navy. */
.modal-media.is-cover {
  aspect-ratio: auto;
  height: clamp(240px, 42vh, 320px);
  background:
    radial-gradient(120% 80% at 50% 30%, var(--navy-800), var(--navy-950));
}
.modal-media.is-cover img { object-fit: contain; padding: 20px 0; }
/* Backdrop 16:9 temático (Fase 8V): mostra a arte quase inteira e funde
   suavemente no corpo do modal. No mobile troca para um recorte 4:5
   (art-direction via <picture> no modal.js). */
.modal-media.has-backdrop { aspect-ratio: 16 / 9; }
.modal-media.has-backdrop picture,
.modal-media.has-backdrop img { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 700px) {
  .modal-media.has-backdrop { aspect-ratio: 4 / 5; }
}
.modal-media-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--navy-900) 0%, rgba(10,23,48,0.15) 65%, rgba(10,23,48,0.35) 100%);
}
.modal-media.is-cover .modal-media-scrim {
  background: linear-gradient(0deg, var(--navy-900) 0%, transparent 40%);
}
.modal-media.has-backdrop .modal-media-scrim {
  background: linear-gradient(0deg, var(--navy-900) 0%, rgba(10,23,48,0.35) 24%, transparent 58%);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(6,13,31,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.modal-close:hover { background: rgba(6,13,31,0.9); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 4px 30px 34px; }
@media (max-width: 700px) { .modal-body { padding: 4px 20px 30px; } }

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 10px;
}
.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.modal-meta .lang-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  color: var(--ink-200);
  letter-spacing: 0.04em;
}
.modal-meta .level-pill { position: static; }
.modal-meta .category-tag {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.modal-desc { color: var(--ink-200); font-size: 15px; max-width: 620px; margin-bottom: 24px; }

.modal-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.buy-btn {
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  width: fit-content;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.buy-btn:hover { background: var(--gold-400); transform: translateY(-1px); }
.buy-btn.is-free { background: var(--level-a); }

/* Abas do modal — [ Sobre o deck | Preview ] (substituem o "Ver mais") */
.modal-tabwrap { margin-top: 22px; border-top: 1px solid var(--navy-800); }
.modal-tabwrap--solo { padding-top: 4px; }
.modal-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-200);
  margin: 18px 0 -4px;
}
.modal-tabs {
  display: flex;
  gap: 4px;
  margin: 14px 0 4px;
}
.modal-tab {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-300);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.modal-tab:hover { color: var(--ink-100, #eef2fb); }
.modal-tab.is-active {
  color: var(--gold-400);
  border-bottom-color: var(--gold-500);
}
.modal-tabpanel { padding-top: 4px; }
.modal-tabpanel[hidden] { display: none; }
.ankp-modal-mount { padding: 18px 0 6px; }

/* Aviso discreto de preview demonstrativo/fallback (Fase 4P.2).
   Some sozinho quando o produto ganha dataset real. */
.modal-preview-note {
  margin: 14px 0 2px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-300);
  background: rgba(242, 169, 59, 0.06);
  border: 1px solid rgba(242, 169, 59, 0.16);
  border-radius: 10px;
}
.modal-preview-note strong { color: var(--ink-100, #eef2fb); font-weight: 600; }

.expand-block { padding-top: 22px; }
.modal-about .expand-block:first-child { padding-top: 8px; }
.expand-block h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.expand-block p { color: var(--ink-300); font-size: 14.5px; margin-bottom: 8px; }
.included-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.included-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-200);
}
.included-list svg { width: 15px; height: 15px; color: var(--gold-500); flex-shrink: 0; }

.gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 auto;
  width: 150px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--navy-800);
  cursor: zoom-in;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.gallery-thumb:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(2,4,10,0.92);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 18px; height: 18px; }

/* Video modal (tutorials) */
.video-modal-panel { width: min(920px, 100%); background: #000; }
.video-embed-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-modal-info { padding: 20px 26px 26px; }
.video-modal-info h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.video-modal-info p { color: var(--ink-300); font-size: 14px; }

/* ============================================================
   Placeholder poster art (used for example/demo content only)
   ============================================================ */
/* Placeholder no sistema das capas: navy + mapa de pontos + borda + wordmark. */
.poster-ph {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 60% 30%, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(242, 169, 59, 0.28);
  border-radius: inherit;
  padding: 18px;
  text-align: center;
}
.poster-ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(200, 214, 240, 0.14) 1px, transparent 1.3px);
  background-size: 13px 13px;
  opacity: 0.6;
}
.poster-ph-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: rgba(255,255,255,0.95);
}
.poster-ph-brand {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--white);
}
.poster-ph-brand span { color: var(--gold-500); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
