/* ============================================================
   NANDO DESIGN — CAA 2026
   Dark + Gold + Sidebar
   Inspirado em hermes.fssdev.com.br e nandohermes.fssdev.com.br
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Backgrounds */
  --bg-0: #0a0a0a;          /* page base */
  --bg-1: #0f0f0f;          /* card */
  --bg-2: #161616;          /* hover/elevated */
  --bg-3: #1c1c1c;          /* sidebar */
  --bg-glass: rgba(15,15,15,.72);

  /* Borders */
  --line:        rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.14);
  --line-gold:   rgba(201,165,91,.30);

  /* Ink */
  --ink:        #f5f1e8;   /* off-white warm */
  --ink-soft:   #b8b3a4;
  --ink-mute:   #6b6760;
  --ink-faint:  #3a3833;

  /* Accent (gold) */
  --gold:        #c9a55b;
  --gold-bright: #d9b76b;
  --gold-deep:   #9c7d3f;
  --gold-glow:   rgba(201,165,91,.18);

  /* Semantic */
  --info:    #5b9bd4;
  --success: #6ab26c;
  --warn:    #d4a55b;
  --danger:  #d46a5b;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 4px 12px rgba(0,0,0,.5);
  --sh-3: 0 16px 40px rgba(0,0,0,.6);
  --sh-gold: 0 0 24px var(--gold-glow);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  min-height: 100vh;
  /* subtle radial gradient bg */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201,165,91,.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(91,155,212,.04), transparent 60%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-bright); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }
h4 { font-size: 18px; font-weight: 500; }
h5 { font-size: 15px; font-weight: 500; }
h6 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 64ch;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, #e8c97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-mute  { color: var(--ink-mute); }
.text-soft  { color: var(--ink-soft); }
.text-gold  { color: var(--gold); }
.text-mono  { font-family: var(--font-mono); }
.text-serif { font-family: var(--font-serif); font-style: italic; }

/* ---------- LAYOUT: LANDING (top nav, full width) ---------- */
.nav-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav-top-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #1a1408;
  font-family: var(--font-sans);
  box-shadow: var(--sh-gold);
}
.nav-brand-meta { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-meta small { font-size: 10.5px; color: var(--ink-mute); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-menu a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .15s;
}
.nav-menu a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav-menu a.active { color: var(--ink); background: rgba(201,165,91,.08); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--bg-0);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .15s;
}
.nav-cta:hover { background: var(--gold); color: #1a1408; box-shadow: var(--sh-gold); }

/* hero */
.hero {
  position: relative;
  padding: clamp(64px, 12vh, 140px) 28px clamp(80px, 14vh, 160px);
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, var(--gold-glow), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  margin: 18px auto 24px;
  max-width: 18ch;
}
.hero .lead {
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 60ch;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-eyebrow-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 32px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.hero-eyebrow-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

/* container generic */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* section header */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
}
.section-head h2 { letter-spacing: -0.028em; }
.section-head .lead { font-size: 16px; max-width: 60ch; }
.section-head.center { text-align: center; align-items: center; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .15s;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #1a1408; }
.btn-primary:hover { background: var(--gold-bright); box-shadow: var(--sh-gold); color: #1a1408; }
.btn-secondary { background: var(--ink); color: var(--bg-0); }
.btn-secondary:hover { background: #fff; color: var(--bg-0); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink-mute); color: var(--ink); }
.btn-gold-ghost { border-color: var(--line-gold); color: var(--gold); }
.btn-gold-ghost:hover { background: var(--gold-glow); border-color: var(--gold); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 24px;
  transition: all .2s;
  position: relative;
}
.card:hover {
  background: var(--bg-2);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.card h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* matéria card (specific) */
.materia-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 28px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.materia-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.materia-card:hover::before { opacity: 1; }
.materia-card:hover {
  background: var(--bg-2);
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.materia-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.materia-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.018em; line-height: 1.2; }
.materia-card .materia-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: -4px;
}
.materia-card .materia-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.materia-card .materia-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* grid helpers */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-materia { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- SECTIONS ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* KPIs row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--bg-1);
}
@media (max-width: 700px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi:last-child { border-right: 0; }
.kpi:nth-child(2) { border-right: 1px solid var(--line); }
@media (max-width: 700px) {
  .kpi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-last-child(-n+2) { border-bottom: 0; }
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi-label { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.kpi-detail { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- LANDING-SPECIFIC: hero chips ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 400;
}
.chip-gold {
  background: var(--gold-glow);
  border-color: var(--line-gold);
  color: var(--gold);
}
.chip-mono { font-family: var(--font-mono); font-size: 11.5px; }

/* ---------- PÁGINAS INTERNAS: sidebar layout ---------- */
.layout-side {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg-3);
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 900px) {
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
.side-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-brand .nav-brand-mark { width: 34px; height: 34px; }
.side-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.side-brand-text strong { font-size: 14px; color: var(--ink); font-weight: 500; }
.side-brand-text small { font-size: 10.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; }

.side-section { display: flex; flex-direction: column; gap: 2px; }
.side-label {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 8px;
}
.side a.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 400;
  transition: all .12s;
}
.side a.side-link:hover { background: var(--bg-2); color: var(--ink); }
.side a.side-link.active { background: var(--bg-2); color: var(--gold); border-left: 2px solid var(--gold); padding-left: 8px; }
.side a.side-link .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); width: 18px; }

.side-progress {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 14px;
  margin-top: auto;
}
.side-progress-label { font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.side-progress-bar { height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.side-progress-fill { height: 100%; background: var(--gold); width: 0%; transition: width .4s; }
.side-progress-text { font-size: 12px; color: var(--ink-soft); margin-top: 8px; font-family: var(--font-mono); }

/* main */
.main {
  padding: 48px 64px;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 900px) { .main { padding: 32px 20px; } }

.main-eyebrow { margin-bottom: 12px; }
.main h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 16px; }
.main h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 40px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.main h2:first-of-type { border-top: 0; padding-top: 0; }
.main h3 { font-size: 18px; font-weight: 500; margin: 24px 0 10px; color: var(--ink); }
.main p { font-size: 16px; line-height: 1.7; margin-bottom: 14px; max-width: 70ch; }
.main ul, .main ol { color: var(--ink-soft); line-height: 1.75; padding-left: 22px; margin-bottom: 14px; }
.main li { margin-bottom: 4px; }
.main strong { color: var(--ink); font-weight: 500; }
.main em { color: var(--ink); font-style: italic; }

.main blockquote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 17px;
}

.main code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--gold);
}
.main pre {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
}
.main pre code { background: none; border: 0; padding: 0; color: var(--ink-soft); }

.main hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* audio block (page header) */
.audio-block {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 20px 24px;
  margin: 24px 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.audio-block-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--gold-glow);
  border: 1px solid var(--line-gold);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.audio-block-text { flex: 1; min-width: 200px; }
.audio-block-text strong { display: block; font-size: 14px; color: var(--ink); font-weight: 500; }
.audio-block-text small { font-size: 12px; color: var(--ink-mute); }
.audio-block audio { height: 36px; max-width: 280px; }

/* action row */
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 28px;
  margin-top: 80px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer p { font-size: 13px; color: var(--ink-mute); margin: 0 auto 6px; }
.footer p + p { font-size: 12px; color: var(--ink-faint); }

/* ---------- UTILITIES ---------- */
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mb-1 { margin-bottom: var(--s-1); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }

.hidden { display: none; }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* selection */
::selection { background: var(--gold); color: #1a1408; }

/* ---------- ACCESSORIES / PAGES ---------- */
/* Mapas */
.mapa-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) { .mapa-shell { grid-template-columns: 1fr; } }
.mapa-canvas {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.mapa-canvas svg { width: 100%; height: 100%; display: block; }
.mapa-detail {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 20px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.mapa-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-mute);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.mapa-breadcrumb span { color: var(--ink-soft); }
.mapa-breadcrumb .sep { color: var(--ink-faint); }

/* Audiobook list */
.audiobook-list { display: flex; flex-direction: column; gap: 16px; }
.audiobook-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  transition: all .15s;
}
@media (max-width: 700px) { .audiobook-item { grid-template-columns: 1fr; } }
.audiobook-item:hover { background: var(--bg-2); border-color: var(--line-strong); }
.audiobook-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--gold);
  width: 60px;
}
.audiobook-text strong { display: block; font-size: 16px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.audiobook-text small { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.audiobook-item audio { height: 36px; }

/* Cronograma timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--line));
}
.timeline-item { position: relative; padding: 0 0 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--gold);
}
.timeline-item.done::before { background: var(--gold); }
.timeline-day {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.timeline-title { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; max-width: 65ch; }
.timeline-weight {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

/* Quiz */
.quiz-shell { max-width: 760px; margin: 0 auto; }
.quiz-progress {
  display: flex; gap: 6px; margin-bottom: 32px;
}
.quiz-progress span {
  flex: 1; height: 4px; background: var(--bg-2); border-radius: 2px;
}
.quiz-progress span.done { background: var(--gold); }
.quiz-progress span.current { background: var(--gold-bright); }
.quiz-question { font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  text-align: left;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--ink-soft);
  font-size: 15px;
  cursor: pointer;
  transition: all .15s;
}
.quiz-option:hover { background: var(--bg-2); border-color: var(--line-strong); color: var(--ink); }
.quiz-option.selected { background: var(--gold-glow); border-color: var(--gold); color: var(--ink); }
.quiz-option.correct { background: rgba(106,178,108,.12); border-color: var(--success); color: var(--ink); }
.quiz-option.wrong { background: rgba(212,106,91,.12); border-color: var(--danger); color: var(--ink); }
.quiz-timer {
  position: sticky; top: 70px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 24px;
  z-index: 10;
}

/* Flashcard */
.flashcard-stage { perspective: 1200px; max-width: 600px; margin: 0 auto; }
.flashcard {
  position: relative;
  width: 100%;
  min-height: 360px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .6s;
}
.flashcard.flipped { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute; inset: 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flashcard-face.back {
  transform: rotateY(180deg);
  background: var(--bg-2);
  border-color: var(--line-gold);
}
.flashcard-face .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute); margin-bottom: 20px;
}
.flashcard-face .text { font-size: 22px; line-height: 1.5; color: var(--ink); font-weight: 400; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.badge-gold { background: var(--gold-glow); border-color: var(--line-gold); color: var(--gold); }
.badge-success { background: rgba(106,178,108,.12); border-color: rgba(106,178,108,.3); color: var(--success); }

/* responsive nav top on small screens */
@media (max-width: 700px) {
  .nav-top-inner { padding: 0 16px; gap: 16px; }
  .nav-menu { display: none; }
  .hero { padding: 56px 16px 64px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
}
