/* ===========================================
   Globals — base + classes utility do DS
   Tudo aqui referencia tokens.css
   =========================================== */

/* ------- Reset mínimo ------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--map-font-sans);
  font-size: var(--map-text-base);
  line-height: var(--map-leading-relaxed);
  color: var(--map-ink-700);
  background: var(--map-base-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------- Container ------- */
.map-container {
  width: 100%;
  max-width: var(--map-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px)  { .map-container { padding: 0 2rem; } }
@media (min-width: 1024px) { .map-container { padding: 0 3rem; } }

/* ------- Tipografia ------- */
.map-h1 { font-family: var(--map-font-serif); font-size: var(--map-text-4xl); line-height: var(--map-leading-tight); font-weight: var(--map-weight-medium); color: var(--map-ink-700); }
.map-h2 { font-family: var(--map-font-serif); font-size: var(--map-text-3xl); line-height: var(--map-leading-tight); font-weight: var(--map-weight-medium); color: var(--map-ink-700); }
.map-h3 { font-family: var(--map-font-sans);  font-size: var(--map-text-2xl); line-height: var(--map-leading-snug);  font-weight: var(--map-weight-medium); color: var(--map-ink-700); }
.map-h4 { font-family: var(--map-font-sans);  font-size: var(--map-text-xl);  line-height: var(--map-leading-snug);  font-weight: var(--map-weight-medium); color: var(--map-ink-700); }

.map-body { font-family: var(--map-font-sans); font-size: var(--map-text-base); line-height: var(--map-leading-relaxed); }
.map-lead { font-family: var(--map-font-sans); font-size: var(--map-text-lg);   line-height: var(--map-leading-normal);  }

.map-caption {
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.08em;
  color: var(--map-text-muted);
}

.map-tag {
  font-family: var(--map-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.map-coord {
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.1em;
  color: var(--map-text-muted);
}

.map-highlight {
  color: var(--map-amber-500);
  font-style: normal;
}

@media (min-width: 768px) {
  .map-h1 { font-size: var(--map-text-5xl); }
  .map-h2 { font-size: var(--map-text-4xl); }
  .map-h3 { font-size: var(--map-text-3xl); }
}

@media (min-width: 1024px) {
  .map-h1 { font-size: var(--map-text-6xl); }
}

/* Texto inverso (sobre fundo escuro) */
.map-text-inverse  { color: var(--map-text-inverse); }
.map-h1.map-text-inverse, .map-h2.map-text-inverse, .map-h3.map-text-inverse, .map-h4.map-text-inverse { color: var(--map-text-inverse); }

/* ------- Botões ------- */
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--map-space-2);
  padding: 0.875rem 1.375rem;
  font-family: var(--map-font-sans);
  font-size: var(--map-text-sm);
  font-weight: var(--map-weight-medium);
  letter-spacing: 0.02em;
  border-radius: var(--map-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.map-btn:focus-visible { outline: 2px solid var(--map-amber-500); outline-offset: 2px; }
.map-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.map-btn--primary   { background: var(--map-amber-500); color: var(--map-text-inverse); }
.map-btn--primary:hover { background: var(--map-amber-700); }

.map-btn--secondary { background: var(--map-ink-700); color: var(--map-text-inverse); }
.map-btn--secondary:hover { background: var(--map-ink-900); }

.map-btn--ghost     { background: transparent; color: var(--map-ink-700); border-color: var(--map-ink-700); }
.map-btn--ghost:hover { background: var(--map-ink-700); color: var(--map-text-inverse); }

.map-btn--lg { padding: 1.125rem 1.75rem; font-size: var(--map-text-base); }
.map-btn--sm { padding: 0.625rem 1rem;    font-size: var(--map-text-xs);  }
.map-btn--full { width: 100%; }

/* Seta wayfinding (svg dentro de btn vira herda currentColor) */
.map-btn svg { flex-shrink: 0; }

/* ------- Cards ------- */
.map-card {
  background: var(--map-base-100);
  border: 1px solid var(--map-border);
  border-radius: var(--map-radius-md);
  padding: var(--map-space-6);
}
.map-card--dark     { background: var(--map-ink-700);  border-color: var(--map-border-inverse); color: var(--map-text-inverse); }
.map-card--bordered { background: transparent;         border: 1px solid var(--map-ink-700); }

/* Card com trilhas tracejadas em volta no lugar de borda reta */
.map-card--trails {
  background: transparent;
  border: none;
  padding: var(--map-space-6) var(--map-space-6);
  position: relative;
  background-image:
    linear-gradient(90deg, var(--map-ink-700) 50%, transparent 50%),
    linear-gradient(90deg, var(--map-ink-700) 50%, transparent 50%),
    linear-gradient(0deg, var(--map-ink-700) 50%, transparent 50%),
    linear-gradient(0deg, var(--map-ink-700) 50%, transparent 50%);
  background-position: top, bottom, left, right;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 12px 1.5px, 12px 1.5px, 1.5px 12px, 1.5px 12px;
}

.map-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--map-space-4);
  padding-bottom: var(--map-space-3);
  border-bottom: 1px solid var(--map-border);
}
.map-card__tag {
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.1em;
  color: var(--map-text-muted);
}

/* ------- Inputs ------- */
.map-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--map-font-sans);
  font-size: var(--map-text-base);
  color: var(--map-ink-700);
  background: var(--map-base-50);
  border: 1px solid var(--map-border-strong);
  border-radius: var(--map-radius-md);
  transition: border-color 180ms ease;
}
.map-input:focus { outline: none; border-color: var(--map-amber-500); }
.map-input::placeholder { color: var(--map-text-muted); }
.map-input[aria-invalid="true"] { border-color: var(--map-danger); }

.map-label {
  display: block;
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.1em;
  color: var(--map-ink-700);
  margin-bottom: var(--map-space-2);
  text-transform: lowercase;
}

.map-field { display: grid; gap: var(--map-space-2); }
.map-field__error {
  font-family: var(--map-font-sans);
  font-size: var(--map-text-sm);
  color: var(--map-danger);
  min-height: 1.2em;
}

/* ------- Marcadores numerados ------- */
.map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--map-amber-500);
  border-radius: 50%;
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  color: var(--map-amber-500);
  font-weight: var(--map-weight-medium);
  flex-shrink: 0;
}
.map-marker--filled  { background: var(--map-amber-500); color: var(--map-text-inverse); }
.map-marker--ink     { border-color: var(--map-ink-700); color: var(--map-ink-700); }
.map-marker--inverse { border-color: var(--map-base-100); color: var(--map-base-100); }

.map-checkpoint-list { display: grid; gap: var(--map-space-4); }
.map-checkpoint-list li {
  display: flex;
  gap: var(--map-space-4);
  align-items: baseline;
  font-family: var(--map-font-sans);
  font-size: var(--map-text-base);
  line-height: var(--map-leading-relaxed);
}

/* ------- Badges ------- */
.map-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--map-space-2);
  padding: 0.25rem 0.625rem;
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.08em;
  background: var(--map-base-200);
  color: var(--map-ink-700);
  border-radius: var(--map-radius-sm);
  text-transform: lowercase;
}
.map-badge--amber { background: var(--map-amber-200); color: var(--map-amber-700); }
.map-badge--teal  { background: var(--map-teal-300);  color: var(--map-teal-700); }
.map-badge--ink   { background: var(--map-ink-700);   color: var(--map-text-inverse); }
.map-badge svg    { width: 14px; height: 14px; flex-shrink: 0; }

/* ------- Grade milimetrada ------- */
.map-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 43, 76, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 43, 76, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.map-bg-grid--inverse {
  background-image:
    linear-gradient(rgba(247, 245, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 245, 240, 0.04) 1px, transparent 1px);
}

/* ------- Progress ------- */
.map-progress {
  display: flex;
  align-items: center;
  gap: var(--map-space-3);
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.1em;
  color: var(--map-text-muted);
}
.map-progress__track { flex: 1; height: 1px; background: var(--map-border-strong); position: relative; }
.map-progress__fill  { position: absolute; top: 0; left: 0; height: 100%; background: var(--map-amber-500); }
.map-progress__pin   { position: absolute; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--map-amber-500); transform: translateX(-50%); }

/* ------- Skip link / sr-only ------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--map-ink-700);
  color: var(--map-text-inverse);
  padding: 8px 12px;
  border-radius: var(--map-radius-md);
  font-family: var(--map-font-sans);
  font-size: var(--map-text-sm);
  font-weight: var(--map-weight-medium);
  transform: translateY(-200%);
  transition: transform 180ms ease;
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }


/* ===========================================
   SEÇÕES DA PÁGINA
   =========================================== */

/* Wrapper de seção */
.section {
  position: relative;
  padding-block: var(--map-space-8);
  overflow: hidden;
}
@media (min-width: 768px)  { .section { padding-block: var(--map-space-10); } }
@media (min-width: 1024px) { .section { padding-block: var(--map-space-12); } }

.section--light { background: var(--map-base-100); }
.section--soft  { background: var(--map-base-200); }
.section--dark  { background: var(--map-ink-700); color: var(--map-text-inverse); }

.section > .map-container { position: relative; z-index: 1; }


/* ===========================================
   HERO — mobile-first
   Foto da Karol como background (right-bottom).
   Grade milimetrada limitada à esquerda (mask gradient).
   =========================================== */
.hero {
  position: relative;
  padding: var(--map-space-4) 0 var(--map-space-5);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--map-base-100);
  overflow: hidden;
}

/* Esconde coord do nav no mobile (espaço pra foto) */
.hero__nav .map-coord { display: none; }

/* Foto inline da Karol — só mobile (desktop usa background) */
.hero__photo {
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--map-space-2);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero > .map-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Grade milimetrada da hero: só na metade esquerda */
.hero .map-bg-grid {
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 70%);
          mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 70%);
}

/* Selo cartográfico sobreposto (escondido no mobile pra não bater no rosto) */
.hero__seal {
  position: absolute;
  top: var(--map-space-4);
  right: var(--map-space-4);
  width: 56px;
  height: 56px;
  z-index: 3;
  pointer-events: none;
  display: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--map-space-4);
  flex: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--map-space-3);
  height: 100%;
}

.hero__form { margin-top: auto; }

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--map-space-3);
  margin-bottom: var(--map-space-4);
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--map-space-2);
  text-decoration: none;
  color: var(--map-ink-700);
}
.hero__brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.hero__brand-text {
  font-family: var(--map-font-serif);
  font-size: var(--map-text-base);
  font-weight: var(--map-weight-medium);
  line-height: 1.05;
  color: var(--map-ink-700);
}
.hero__brand-sub {
  display: block;
  font-family: var(--map-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--map-text-muted);
  margin-top: 2px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--map-space-2);
  margin-bottom: var(--map-space-3);
}

.hero__title {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: var(--map-space-2);
  text-align: center;
}

.hero__subtitle {
  color: var(--map-text-secondary);
  font-size: var(--map-text-base);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--map-space-4);
  text-align: center;
}

.hero__form {
  display: grid;
  gap: var(--map-space-2);
  max-width: 460px;
}

.hero__form .map-field { margin: 0; gap: var(--map-space-1); }

.hero__form .map-label { font-size: 0.65rem; margin-bottom: 0; }

.hero__form .map-input { padding: 0.625rem 0.875rem; font-size: var(--map-text-sm); }

.hero__form .map-field__error { font-size: var(--map-text-xs); min-height: 0; }
.hero__form .map-field__error:empty { display: none; }

.hero__form .map-btn { padding: 0.875rem 1.25rem; font-size: var(--map-text-sm); margin-top: var(--map-space-1); }

.hero__form-microcopy {
  font-family: var(--map-font-sans);
  font-size: var(--map-text-xs);
  color: var(--map-text-muted);
  margin-top: var(--map-space-1);
  text-align: center;
}

/* Mobile-only: aperta a hero pra caber tudo na primeira dobra */
@media (max-width: 599px) {
  .karol__photo { order: -1; }

  .hero { padding: var(--map-space-3) 0 var(--map-space-3); min-height: 0; }
  .hero__content { gap: var(--map-space-2); }
  .hero__nav { margin-bottom: var(--map-space-2); }
  .hero__chips { gap: var(--map-space-1); margin-bottom: var(--map-space-1); }
  .hero__chips .map-badge { font-size: 0.625rem; padding: 0.25rem 0.5rem; }
  .hero__title {
    font-size: clamp(1.6rem, 7.2vw, 2.1rem);
    line-height: 1.1;
    max-width: 18ch;
    margin-bottom: var(--map-space-1);
  }
  .hero__subtitle {
    font-size: var(--map-text-base);
    line-height: 1.4;
    margin-bottom: var(--map-space-2);
  }
  .hero__form { gap: var(--map-space-1); margin-inline: auto; margin-top: 0; width: 100%; }
  .hero__form .map-field { gap: 2px; }
  .hero__form .map-label { font-size: 0.6rem; }
  .hero__form .map-input { padding: 0.45rem 0.75rem; }
  .hero__form .map-btn { padding: 0.625rem 1rem; margin-top: 2px; }
  .hero__form-microcopy { font-size: 0.65rem; margin-top: 2px; }
}

/* Tablet: layout ainda compacto */
@media (min-width: 600px) {
  .hero {
    background-image: url('/mapa-aprovacao/assets/photos/karoline-hero.webp');
    background-repeat: no-repeat;
    background-size: auto 65%;
    background-position: 100% 0;
  }
  .hero__photo { display: none; }
  .hero__nav { justify-content: space-between; }
  .hero__nav .map-coord { display: inline-flex; }
  .hero__chips { justify-content: flex-start; }
  .hero__title { font-size: clamp(2rem, 5vw, 2.75rem); text-align: left; margin-inline: 0; max-width: 11ch; }
  .hero__subtitle { font-size: var(--map-text-lg); text-align: left; margin-inline: 0; }
  .hero__form .map-label { font-size: var(--map-text-xs); }
  .hero__form .map-input { padding: 0.75rem 1rem; font-size: var(--map-text-base); }
  .hero__form .map-btn { padding: 1rem 1.5rem; font-size: var(--map-text-base); }
  .hero__seal { display: block; width: 72px; height: 72px; top: var(--map-space-6); right: var(--map-space-6); }
}

/* Desktop: foto bg maior à direita, conteúdo limitado à esquerda */
@media (min-width: 1024px) {
  .hero {
    padding-block: var(--map-space-5);
    background-image: url('/mapa-aprovacao/assets/photos/karoline-hero.webp');
    background-position: 100% center;
    background-size: auto 100%;
  }
  .hero__content { height: auto; }
  .hero__form { margin-top: 0; }
  .hero__nav { margin-bottom: var(--map-space-4); }
  .hero__brand-mark { width: 32px; height: 32px; }
  .hero__brand-text { font-size: var(--map-text-base); }
  .hero__brand-sub { font-size: 0.625rem; }

  .hero__grid {
    grid-template-columns: minmax(0, 600px);
    gap: var(--map-space-8);
    align-items: center;
  }
  .hero__title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.05;
    max-width: 16ch;
    margin-bottom: var(--map-space-3);
  }
  .hero__subtitle { font-size: var(--map-text-base); margin-bottom: var(--map-space-4); }
  .hero__form { gap: var(--map-space-2); }
  .hero__form .map-input { padding: 0.625rem 0.875rem; font-size: var(--map-text-sm); }
  .hero__form .map-label { font-size: 0.65rem; }
  .hero__form .map-btn { padding: 0.875rem 1.25rem; font-size: var(--map-text-sm); }
  .hero__seal { width: 96px; height: 96px; top: var(--map-space-8); right: var(--map-space-8); }

  /* Grade vai um pouco mais à direita no desktop */
  .hero .map-bg-grid {
    -webkit-mask-image: linear-gradient(90deg, black 0%, black 50%, transparent 78%);
            mask-image: linear-gradient(90deg, black 0%, black 50%, transparent 78%);
  }
}

/* Desktop largo: bg ainda mais à direita pra dar peso.
   Obs.: o salto de fonte do H1 (4rem) foi removido — grande demais para
   as variantes longas do A/B na coluna de 600px (virava 6 linhas). O H1
   fica no tamanho do breakpoint 1024px (~52px), que comporta bem A2/A5. */
@media (min-width: 1280px) and (min-height: 900px) {
  .hero__subtitle { font-size: var(--map-text-lg); }
}

/* ── A/B headline — largura solta + entrelinha aberta ──────────────
   Substitui os caps estreitos (11-18ch) que afunilavam o H1 numa coluna
   fina; agora ele espalha pras laterais. Entrelinha 1.15 (padrão 1.05).
   Vem depois das regras .hero__title acima, então prevalece. */
.hero__title { max-width: none; line-height: 1.15; }
@media (max-width: 599px)  { .hero__title { max-width: none; line-height: 1.15; } }
@media (min-width: 600px)  { .hero__title { max-width: none; } }
@media (min-width: 1024px) { .hero__title { max-width: none; line-height: 1.15; } }

/* ── Fix tablet (600–1023px) ───────────────────────────────────────
   Nessa faixa a foto-background se sobrepunha à headline e ao form:
   o layout em coluna (conteúdo à esquerda, foto à direita) só existe
   no desktop ≥1024px. Aqui não há largura para o lado a lado — então
   nessa faixa volta ao layout empilhado e centrado: foto inline no
   topo, conteúdo abaixo, igual ao mobile porém em escala maior. */
@media (min-width: 600px) and (max-width: 1023px) {
  .hero { background-image: none; }
  .hero__photo {
    display: block;
    max-width: 340px;
  }
  .hero__chips { justify-content: center; }
  .hero__title,
  .hero__subtitle { text-align: center; margin-inline: auto; }
  .hero__form,
  .hero__form-brevo { margin-inline: auto; }
  .hero__seal { display: none; }
}


/* ------- Transição de dobra: trilha cartográfica até o X ------- */
.route-transition {
  background: var(--map-base-100);
  padding-block: var(--map-space-5);
  position: relative;
  overflow: hidden;
}
.route-transition > .map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--map-space-2);
}
.route-transition__label {
  color: var(--map-text-muted);
}
.route-transition__svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}
.route-transition__start { fill: var(--map-ink-700); }
.route-transition__path {
  stroke: var(--map-ink-700);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  fill: none;
  opacity: 0.85;
}
.route-transition__x line {
  stroke: var(--map-amber-500);
  stroke-width: 2.2;
}

/* Variantes do marcador final */
.route-transition__target circle {
  stroke: var(--map-amber-500);
  fill: none;
}
.route-transition__target circle:last-of-type {
  fill: var(--map-amber-500);
  stroke: none;
}

.route-transition__cross line {
  stroke: var(--map-amber-500);
  stroke-width: 2;
}
.route-transition__cross circle {
  fill: var(--map-amber-500);
}

.route-transition__compass circle {
  stroke: var(--map-amber-500);
  fill: none;
}
.route-transition__compass path {
  fill: var(--map-amber-500);
}
.route-transition__compass circle:last-of-type {
  fill: var(--map-ink-700);
  stroke: none;
}

.route-transition__pin path {
  fill: var(--map-amber-500);
}

/* Anima a trilha quando entra no viewport */
.route-transition__path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1600ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
.route-transition.is-visible .route-transition__path {
  stroke-dashoffset: 0;
  /* Após desenhar, volta ao tracejado */
  animation: route-dasharray 0ms 1600ms forwards;
}
@keyframes route-dasharray {
  to { stroke-dasharray: 4 6; stroke-dashoffset: 0; }
}
.route-transition__start,
.route-transition__x {
  opacity: 0;
  transition: opacity 400ms ease-out;
}
.route-transition.is-visible .route-transition__start { opacity: 1; transition-delay: 100ms; }
.route-transition.is-visible .route-transition__x { opacity: 1; transition-delay: 1500ms; }

@media (min-width: 768px) {
  .route-transition { padding-block: var(--map-space-8); }
  .route-transition__svg { max-width: 680px; }
}


/* ===========================================
   SCHEDULE — cronograma das 3 aulas (rota de checkpoints)
   =========================================== */
.schedule__head { margin-bottom: var(--map-space-7); }

.schedule__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--map-space-5);
}
/* trilha tracejada contínua ligando os 3 checkpoints.
   grid-auto-rows:1fr deixa as 3 linhas com altura igual (H), então o
   centro de cada marcador fica a H/2, 1.5H+gap e 2.5H+2gap — a trilha
   vai do 1º ao 3º marcador com top/bottom = H/2 = (lista - 2gap)/6. */
.schedule__list::before {
  content: '';
  position: absolute;
  left: 13px;
  top: calc((100% - 2 * var(--map-space-5)) / 6);
  bottom: calc((100% - 2 * var(--map-space-5)) / 6);
  border-left: 1.6px dashed var(--map-ink-700);
  z-index: 0;
}

/* cada parada da rota: marcador + card */
.schedule__stop {
  display: flex;
  gap: var(--map-space-4);
  align-items: center;
}

.schedule__marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--map-amber-500);
  color: var(--map-base-100);
}
.schedule__marker svg { display: block; }

.schedule__card {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: var(--map-space-4);
  background: var(--map-base-100);
  border: 1px solid var(--map-border);
  border-radius: var(--map-radius-md);
  padding: var(--map-space-5);
}

.schedule__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  padding-right: var(--map-space-4);
  border-right: 1px solid var(--map-border);
  font-family: var(--map-font-mono);
  text-align: center;
}
.schedule__day {
  font-size: var(--map-text-3xl);
  font-weight: var(--map-weight-medium);
  color: var(--map-ink-700);
  line-height: 1;
}
.schedule__month {
  font-size: var(--map-text-xs);
  letter-spacing: 0.12em;
  color: var(--map-text-muted);
  margin-top: var(--map-space-1);
}
.schedule__time {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--map-amber-700);
  margin-top: var(--map-space-2);
}

.schedule__body {
  display: flex;
  flex-direction: column;
  gap: var(--map-space-1);
  min-width: 0;
}
.schedule__stage {
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.1em;
  color: var(--map-amber-700);
}
.schedule__title {
  font-family: var(--map-font-serif);
  font-size: var(--map-text-xl);
  line-height: var(--map-leading-snug);
  font-weight: var(--map-weight-medium);
  color: var(--map-ink-700);
  margin-top: var(--map-space-2);
}

@media (min-width: 768px) {
  .schedule__stop { gap: var(--map-space-5); }
  .schedule__card { gap: var(--map-space-6); padding: var(--map-space-6); align-items: center; }
  .schedule__date { width: 84px; padding-right: var(--map-space-6); }
  .schedule__day { font-size: var(--map-text-4xl); }
  .schedule__title { font-size: var(--map-text-2xl); }
}

/* Revelação em sequência no scroll — trilha → marcador → card.
   Estado inicial só é aplicado quando há tolerância a movimento;
   com prefers-reduced-motion tudo já nasce visível. */
@media (prefers-reduced-motion: no-preference) {
  .schedule__list::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 900ms ease-out;
  }
  .schedule__list.is-visible::before { transform: scaleY(1); }

  .schedule__marker {
    opacity: 0;
    transform: scale(0);
    transition: opacity 360ms ease-out, transform 380ms cubic-bezier(0.34, 1.3, 0.64, 1);
  }
  .schedule__card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 520ms ease-out, transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .schedule__stop.is-visible .schedule__marker {
    opacity: 1;
    transform: none;
    transition-delay: 240ms;
  }
  .schedule__stop.is-visible .schedule__card {
    opacity: 1;
    transform: none;
    transition-delay: 340ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-transition__path { stroke-dasharray: 4 6; stroke-dashoffset: 0; transition: none; animation: none; }
  .route-transition__start, .route-transition__x { opacity: 1; transition: none; }
}


/* ------- Flight track (avião + rastro de scroll) ------- */
.flight-track {
  position: fixed;
  top: 0;
  right: max(var(--map-space-3), calc((100vw - 1200px) / 2 - var(--map-space-6)));
  height: 100vh;
  width: 18px;
  pointer-events: none;
  z-index: 20;
  --flight-progress: 0%;
}
.flight-track__trail {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: var(--flight-progress);
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, var(--map-ink-700) 50%, transparent 50%);
  background-size: 1px 6px;
  background-repeat: repeat-y;
  opacity: 0.55;
}
.flight-track__plane {
  position: absolute;
  left: 50%;
  top: var(--flight-progress);
  transform: translate(-50%, -50%) rotate(180deg);
  width: 14px;
  height: auto;
  fill: var(--map-amber-500);
  filter: drop-shadow(0 0 0 var(--map-base-100));
}

@media (max-width: 599px) {
  .flight-track { right: var(--map-space-2); width: 14px; }
  .flight-track__plane { width: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .flight-track { display: none; }
}


/* ------- Seções texto-heavy (About/Belief/Reflection) ------- */
.text-section { max-width: 760px; margin: 0 auto; }
.text-section > * + * { margin-top: var(--map-space-5); }
.text-section .map-coord { margin: 0 0 var(--map-space-2); }
.text-section .map-h2 { margin-bottom: var(--map-space-4); }

.section__cta { margin-top: var(--map-space-8); text-align: center; }


/* ------- Highlight com sublinhado cartográfico ------- */
.map-underline-cartographic {
  color: var(--map-amber-500);
  font-style: normal;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.map-underline-cartographic::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -4px;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 6' preserveAspectRatio='none'><path d='M2 3 Q 50 1 100 3 T 198 3' fill='none' stroke='%23E8801A' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}


/* ------- Pain (seção dark com foto) ------- */
.pain__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--map-space-6);
  align-items: center;
}
.pain__photo {
  background: var(--map-base-200);
  border: 1px solid var(--map-border-inverse);
  border-radius: var(--map-radius-md);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.pain__photo img { width: 100%; height: 100%; object-fit: cover; }
.pain__content { display: grid; gap: var(--map-space-4); }
.pain__content .map-h2 { max-width: 18ch; }

@media (min-width: 768px) {
  .pain__grid { grid-template-columns: 1fr 1.3fr; gap: var(--map-space-10); }
}


/* ------- Karol (autoridade) ------- */
.karol__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--map-space-6);
  align-items: center;
}
.karol__content { display: grid; gap: var(--map-space-4); }
.karol__photo { position: relative; }
.karol__photo-frame {
  background: var(--map-base-200);
  border: 1px solid var(--map-border-strong);
  border-radius: var(--map-radius-md);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-width: 480px;
  margin-inline: auto;
}
.karol__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.karol__seal {
  position: absolute;
  bottom: -16px; left: 16px;
  width: 60px; height: 60px;
}

@media (min-width: 768px) {
  .karol__grid {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--map-space-10);
  }
  .karol__photo-frame {
    background-color: var(--map-base-200);
    background-image: url('/mapa-aprovacao/assets/photos/karoline-quem-sou.webp');
    background-repeat: no-repeat;
    background-size: 180% auto;
    background-position: 50% 22%;
  }
  .karol__photo-frame img {
    display: none;
  }
}

@media (max-width: 599px) {
  .karol__cta { text-align: center; }

  .karol__photo-frame {
    aspect-ratio: 3 / 4;
    max-width: none;
    width: calc(100% + 2 * var(--map-space-4));
    margin-inline: calc(-1 * var(--map-space-4));
    border-radius: 0;
    border: none;
    background-color: var(--map-base-200);
    background-image: url('/mapa-aprovacao/assets/photos/karoline-quem-sou.webp');
    background-repeat: no-repeat;
    background-size: 180% auto;
    background-position: 50% 18%;
  }
  .karol__photo-frame img {
    display: none;
  }
}


/* ------- Frase-âncora (Belief) ------- */
.anchor-phrase {
  text-align: center;
  font-family: var(--map-font-serif);
  font-size: var(--map-text-3xl);
  line-height: var(--map-leading-snug);
  font-weight: var(--map-weight-medium);
  color: var(--map-ink-700);
  margin-top: var(--map-space-7);
}
@media (min-width: 768px) {
  .anchor-phrase { font-size: var(--map-text-4xl); }
}

.strike {
  text-decoration: line-through;
  text-decoration-color: var(--map-danger);
  text-decoration-thickness: 2px;
  opacity: 0.6;
}


/* ------- Footer ------- */
.site-footer {
  padding-block: var(--map-space-6);
  background: var(--map-base-200);
  color: var(--map-text-muted);
  font-family: var(--map-font-mono);
  font-size: var(--map-text-xs);
  letter-spacing: 0.1em;
  text-align: center;
}
.site-footer a { color: var(--map-ink-700); }
