/* =========================================================
   anate milhas · V3 "Janela"
   Paleta oficial (sem cor nova): areia, oceano, céu, carvão, cinza, berry
   ========================================================= */

@font-face {
  font-family: "Kollektif";
  src: url("../fonts/Kollektif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Kollektif";
  src: url("../fonts/Kollektif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --areia: #FCFAF5;
  --oceano: #4C97B1;
  --ceu: #9CC6D2;
  --carvao: #3B3B3B;
  --cinza: #9E9E9C;
  --berry: #BA4A6B;
  --branco: #FFFFFF;

  --f-display: "Gabarito", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, monospace;
  --f-brand: "Kollektif", "Instrument Sans", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --sec: clamp(96px, 13vw, 200px);
  --r-lg: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--areia);
  color: var(--carvao);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--berry); color: var(--areia); }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
.tone-ocean :focus-visible, .tone-berry :focus-visible, .tone-ink :focus-visible,
.routes :focus-visible, .lesson :focus-visible { outline-color: var(--areia); }

.sr-only, .sr-only-img {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--carvao); color: var(--areia); padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Tipografia ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oceano);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.note { font-size: .875rem; color: var(--carvao); }

/* palavras divididas para reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Botões e links ---------- */
.btn {
  --bg: var(--carvao); --fg: var(--areia); --bg-h: var(--oceano); --fg-h: var(--areia);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 26px 0 28px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: color .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-h);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover { color: var(--fg-h); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: rotate(45deg); }
.btn-sand { --bg: var(--areia); --fg: var(--carvao); --bg-h: var(--ceu); --fg-h: var(--carvao); }

.link-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .5s var(--ease-out);
}
.link-line:hover { background-size: 0% 2px; background-position: 100% 100%; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 16px var(--pad) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(252, 250, 245, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand-mark { width: 44px; height: 32px; color: var(--oceano); overflow: visible; }
.brand-word {
  display: flex; flex-direction: column;
  font-family: var(--f-brand); font-weight: 700;
  font-size: 1.02rem; line-height: .92; letter-spacing: -.01em;
  color: var(--carvao);
}
.brand-word span:last-child { color: var(--oceano); }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(252, 250, 245, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-links a {
  padding: 10px 16px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .3s, color .3s;
}
.nav-links a:hover { background: var(--ceu); }
.nav-links .nav-cta { background: var(--carvao); color: var(--areia); }
.nav-links .nav-cta:hover { background: var(--berry); }

.nav-toggle {
  display: none;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--carvao); cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 2px var(--areia);
}
.nav-toggle i {
  position: absolute; left: 16px; right: 16px; height: 2px; background: var(--areia); border-radius: 2px;
  transition: transform .5s var(--ease-out);
}
.nav-toggle i:first-of-type { top: 21px; }
.nav-toggle i:last-of-type { top: 29px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--oceano);
  display: flex; align-items: flex-end;
  padding: 120px var(--pad) 48px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu a {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 9.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em;
  color: var(--areia); text-decoration: none;
}

/* =========================================================
   HERO · janela do avião
   ========================================================= */
.hero {
  --ww: clamp(250px, 25vw, 380px);
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--areia);
}
.hero-view {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  clip-path: inset(50% 50% 50% 50% round 0px);
  background: var(--ceu);
}
.hero-img {
  position: absolute; inset: -3%;
  background-size: cover; background-position: 50% 50%;
  will-change: transform;
}
.hero-view::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59, 59, 59, 0) 45%, rgba(59, 59, 59, .62) 100%);
  opacity: var(--veil, 0);
}
.hero-shade {
  position: absolute; z-index: 1;
  background:
    repeating-linear-gradient(180deg, var(--branco) 0 22px, #F6F3EC 22px 24px);
  will-change: transform;
}
.hero-shade i {
  position: absolute; left: 50%; bottom: 14px;
  width: 42%; height: 8px; border-radius: 8px;
  transform: translateX(-50%);
  background: var(--ceu);
}
.hero-caption {
  position: absolute; z-index: 2;
  left: var(--pad); right: var(--pad); bottom: clamp(32px, 6vh, 72px);
  display: grid; gap: 6px;
  color: var(--areia);
}
.hero-caption > * { display: block; opacity: 0; }
.hero-caption strong {
  font-family: var(--f-display); font-weight: 700;
  font-weight: 800; font-size: clamp(3rem, 9.4vw, 9.6rem); line-height: .92; letter-spacing: -.04em;
}
.hero-caption-sign { font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 500; }

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 40px;
}
.hero-copy { position: relative; z-index: 1; max-width: 780px; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-weight: 800;
  font-size: clamp(2.9rem, 6.6vw, 7rem);
  line-height: .95;
  letter-spacing: -.035em;
  margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.is-ocean { color: var(--oceano); }
.hero-lead { max-width: 30em; font-size: clamp(1.05rem, 1.25vw, 1.2rem); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-bottom: 40px; }

.ana { display: inline-flex; align-items: center; gap: 12px; }
.ana-avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--ceu);
  font-family: var(--f-brand); font-weight: 700; font-size: .8rem; color: var(--oceano);
}
.ana-text { display: grid; line-height: 1.3; font-size: .9375rem; }
.ana-text a { color: var(--oceano); font-weight: 500; text-decoration: none; }
.ana-text a:hover { text-decoration: underline; }

.hero-window {
  position: relative;
  justify-self: center;
  width: var(--ww);
  height: calc(var(--ww) * 1.42);
}
.window-bezel {
  position: absolute; inset: -18px; z-index: 2;
  border-radius: calc(var(--ww) * .42 + 18px);
  background: var(--branco);
  box-shadow:
    0 1px 0 rgba(59, 59, 59, .06),
    0 40px 80px -30px rgba(59, 59, 59, .35),
    inset 0 0 0 1px rgba(156, 198, 210, .7);
}
.hero-scrollcue {
  position: absolute; z-index: 4; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--carvao);
}
.hero-scrollcue i { width: 2px; height: 36px; background: var(--ceu); position: relative; overflow: hidden; border-radius: 2px; }
.hero-scrollcue i::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: var(--oceano);
  animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }

/* =========================================================
   CAMINHOS · acordeão horizontal
   ========================================================= */
.paths { padding: var(--sec) 0 calc(var(--sec) * .8); position: relative; z-index: 2; background: var(--areia); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end; gap: 32px 64px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); max-width: 26em; justify-self: end; }

.acc { display: flex; gap: 12px; height: clamp(480px, 64vh, 620px); }
.acc-panel {
  --fg: var(--areia);
  position: relative; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 36px);
  color: var(--fg);
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
  transition: flex-grow .9s var(--ease-io);
}
.acc-panel.is-open { flex-grow: 3.1; cursor: default; }
.tone-ocean { background: var(--oceano); }
.tone-sky { background: var(--ceu); --fg: var(--carvao); }
.tone-berry { background: var(--berry); }
.tone-ink { background: var(--carvao); }

.acc-icon { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.acc-top { display: flex; flex-direction: column; gap: 28px; }
.acc-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 3.1rem); line-height: 1; letter-spacing: -.03em;
  white-space: nowrap;
}
.acc-panel:not(.is-open) .acc-title {
  position: absolute; left: clamp(24px, 2.4vw, 36px); bottom: clamp(24px, 2.4vw, 36px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(1.5rem, 1.9vw, 2rem);
  animation: fadeIn .7s .25s both;
}
.acc-panel.is-open .acc-title { animation: riseIn .8s .3s var(--ease-out) both; white-space: normal; max-width: 9em; }
.acc-body { width: min(460px, 100%); min-width: 280px; }
.acc-body p { font-size: clamp(1.05rem, 1.3vw, 1.25rem); margin-bottom: 24px; }
.acc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-links a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 2px solid currentColor;
  font-weight: 600; text-decoration: none;
  transition: background-color .3s, color .3s;
}
.acc-links a::after { content: "↗"; font-size: 1.05em; }
.acc-links a:hover { background: var(--fg); color: var(--carvao); }
.tone-sky .acc-links a:hover, .tone-ink .acc-links a:hover { color: var(--areia); }
.tone-ink .acc-links a:hover { color: var(--carvao); }
.acc-panel:not(.is-open) .acc-body { opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.acc-panel.is-open .acc-body { opacity: 1; transform: none; transition: opacity .6s .35s, transform .8s .35s var(--ease-out); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   MILHAS DO ZERO · o livro
   ========================================================= */
.guide { background: var(--ceu); padding: var(--sec) 0; position: relative; overflow: hidden; }
.guide .eyebrow { color: var(--carvao); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.guide-figure { display: grid; justify-items: center; gap: 36px; }
.guide-figure figcaption { color: var(--carvao); }

.book-stage { --bw: clamp(250px, 25vw, 360px); --bd: 38px; perspective: 1800px; position: relative; padding: 30px 0 60px; }
.book {
  position: relative;
  width: var(--bw); height: calc(var(--bw) * 1.38);
  transform-style: preserve-3d;
  transform: rotateY(-26deg) rotateX(6deg);
  will-change: transform;
}
.book-face { position: absolute; top: 0; left: 0; height: 100%; backface-visibility: hidden; }
.book-front {
  width: 100%;
  transform: translateZ(calc(var(--bd) / 2));
  background: var(--oceano);
  color: var(--areia);
  border-radius: 3px 14px 14px 3px;
  padding: 26px 26px 24px 32px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: inset 12px 0 14px -10px rgba(59, 59, 59, .45);
}
.book-front::before {
  content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(252, 250, 245, .25);
}
.book-spine {
  width: var(--bd);
  left: calc(var(--bd) / -2);
  transform: rotateY(-90deg);
  background: #3F86A0;
  background: color-mix(in srgb, var(--oceano) 85%, var(--carvao));
  display: grid; place-items: center;
  border-radius: 4px 0 0 4px;
}
.book-spine span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-brand); font-weight: 700; font-size: .8rem; color: var(--areia); letter-spacing: .04em;
}
.book-pages {
  width: var(--bd);
  left: calc(var(--bw) - var(--bd) / 2 - 2px);
  top: 6px; height: calc(100% - 12px);
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, var(--branco) 0 2px, #EDEAE2 2px 3px);
}
.book-back {
  width: 100%;
  transform: rotateY(180deg) translateZ(calc(var(--bd) / 2));
  background: var(--oceano); border-radius: 14px 3px 3px 14px;
}
.book-shadow {
  position: absolute; left: 50%; bottom: 10px;
  width: 90%; height: 40px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59, 59, 59, .42), rgba(59, 59, 59, 0) 70%);
  filter: blur(6px);
}
.cover-brand { display: flex; flex-direction: column; font-family: var(--f-brand); font-weight: 700; font-size: .9rem; line-height: .95; }
.cover-arc { width: 78%; height: auto; aspect-ratio: 1280 / 939; color: var(--areia); margin: auto 0 0 -4%; }
.cover-kicker { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ceu); margin: 6px 0 8px; }
.cover-title { font-family: var(--f-brand); font-weight: 700; font-size: calc(var(--bw) * .17); line-height: .9; letter-spacing: -.02em; }
.cover-sub { font-size: calc(var(--bw) * .043); line-height: 1.35; margin: 12px 0 auto; }
.cover-tag {
  align-self: flex-start; margin-top: 18px;
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1.5px solid var(--areia); border-radius: 999px; padding: 6px 10px;
}

.guide-copy .h2 { margin-bottom: 32px; }
.is-berry { color: var(--berry); }
.guide-lead { font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.45; font-weight: 500; max-width: 30em; margin-bottom: 40px; }
.guide-lead .sw { transition: none; }
.checks { display: grid; gap: 0; margin-bottom: 44px; border-top: 2px solid var(--carvao); }
.checks li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-bottom: 2px solid var(--carvao);
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem); letter-spacing: -.02em;
}
.checks svg { width: 38px; height: 28px; flex: none; color: var(--oceano); }
.guide .checks svg { color: var(--carvao); }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* =========================================================
   INDICAÇÕES
   ========================================================= */
.finds { padding: var(--sec) 0 0; background: var(--areia); }
.finds-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); margin-bottom: var(--sec); perspective: 1600px; }
.find {
  position: relative;
  border-radius: var(--r-lg);
  display: grid; grid-template-rows: auto 1fr;
  min-height: 600px;
}
.find-coupon { background: var(--oceano); color: var(--areia); }
.find-bag { background: var(--ceu); color: var(--carvao); margin-top: clamp(0px, 8vw, 120px); }
.find-art { height: 270px; display: grid; place-items: center; overflow: hidden; position: relative; }
.find-body { padding: 34px clamp(26px, 3vw, 44px) 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.find-body h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 2.8vw, 2.9rem); line-height: 1; letter-spacing: -.03em;
}
.find-body > p:not(.mono):not(.note) { font-size: 1.125rem; max-width: 24em; margin-bottom: 8px; }
.find-body .note { margin-top: auto; padding-top: 18px; color: inherit; }
.find-coupon .find-body { border-top: 3px dashed var(--areia); }
.find-coupon::before, .find-coupon::after {
  content: ""; position: absolute; top: 270px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--areia); transform: translateY(-50%);
}
.find-coupon::before { left: -20px; }
.find-coupon::after { right: -20px; }
.find-pct {
  font-family: var(--f-display); font-weight: 800;
  font-size: 260px; line-height: 1; color: var(--ceu);
  transform: translateY(6%) rotate(-8deg);
  transition: transform 1s var(--ease-out);
}
.find-coupon:hover .find-pct { transform: translateY(2%) rotate(6deg) scale(1.05); }
.tag-svg {
  height: 230px; width: auto; fill: none; stroke: var(--carvao); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  transform-origin: 50% 23%;
  transform: rotate(-9deg) translateY(16px);
  transition: transform 1.2s var(--ease-out);
}
.tag-svg path:first-child { fill: var(--areia); }
.find-bag:hover .tag-svg { transform: rotate(7deg) translateY(16px); }

.marquee { background: var(--berry); color: var(--areia); overflow: hidden; padding: clamp(18px, 2.4vw, 34px) 0; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--f-display); font-weight: 700;
  font-weight: 800; font-size: clamp(3rem, 7.6vw, 8rem); line-height: 1.05; letter-spacing: -.035em;
  white-space: nowrap; padding: 0 .3em;
}
.marquee-track svg { width: clamp(70px, 8vw, 130px); height: auto; aspect-ratio: 1280 / 939; color: var(--areia); flex: none; }

/* =========================================================
   ROTEIROS · scroll horizontal
   ========================================================= */
.routes { background: var(--carvao); color: var(--areia); position: relative; }
.routes .eyebrow { color: var(--ceu); }
.routes-pin { height: 100vh; height: 100svh; position: relative; overflow: hidden; display: flex; align-items: center; }
.routes-track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding-inline: var(--pad) clamp(40px, 8vw, 140px);
  width: max-content;
  will-change: transform;
}
.routes-intro { width: min(540px, 42vw); flex: none; padding-right: 2vw; }
.routes-intro .h2 { font-size: clamp(2.8rem, 5.2vw, 5.4rem); margin-bottom: 26px; }
.routes-intro p { font-size: clamp(1.1rem, 1.35vw, 1.3rem); max-width: 22em; }
.routes-hint { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; color: var(--ceu); }
.routes-hint i { width: 56px; height: 2px; background: currentColor; position: relative; }
.routes-hint i::after { content: ""; position: absolute; right: -1px; top: -4px; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

.route-card {
  position: relative; flex: none;
  width: clamp(300px, 29vw, 460px);
  height: min(72vh, 680px);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: var(--areia);
  background: var(--oceano);
}
.route-card--low { transform: translateY(7vh); }
.route-media { position: absolute; inset: 0; overflow: hidden; }
.route-media img {
  position: absolute; top: 0; left: -10%; width: 120%; height: 100%; max-width: none;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}
.route-card:hover .route-media img { scale: 1.06; }
.route-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59, 59, 59, 0) 40%, rgba(59, 59, 59, .82) 100%);
}
.badge {
  position: absolute; z-index: 2; top: 20px; left: 20px;
  background: var(--berry); color: var(--areia);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
}
.route-info { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; display: grid; gap: 10px; }
.route-info .mono { color: var(--ceu); }
.route-info h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 2.7vw, 2.8rem); line-height: 1; letter-spacing: -.03em;
}
.route-go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 6px; }
.route-go::after { content: "↗"; transition: transform .5s var(--ease-out); }
.route-card:hover .route-go::after { transform: translate(3px, -3px); }

.routes-end { flex: none; width: 340px; display: grid; gap: 28px; justify-items: start; }
.routes-end .note { color: var(--areia); font-size: 1rem; }
.routes-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 4vh; height: 40px; }
.routes-progress svg { width: 100%; height: 100%; overflow: visible; }
.routes-progress path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rp-base { stroke: var(--cinza); stroke-dasharray: 2 8; }
.rp-fill { stroke: var(--ceu); }

/* =========================================================
   AULA · a dois
   ========================================================= */
.lesson { background: var(--oceano); color: var(--areia); padding: var(--sec) 0; overflow: hidden; }
.lesson .eyebrow { color: var(--areia); }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.lesson .h2 { margin-bottom: 30px; }
.lesson-lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); max-width: 30em; margin-bottom: 36px; }
.lesson-list { display: grid; margin-bottom: 44px; border-top: 2px solid var(--areia); }
.lesson-list li {
  padding: 16px 0; border-bottom: 2px solid var(--areia);
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem); letter-spacing: -.02em;
  display: flex; align-items: center; gap: 14px;
}
.lesson-list li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ceu); flex: none; }
.lesson-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lesson-cta .note { color: var(--areia); }
.duo svg { width: 100%; height: auto; overflow: visible; }
.duo-c { fill: none; stroke-width: 2.5; }
.duo-a { stroke: var(--areia); }
.duo-b { stroke: var(--ceu); }
.duo-lens { fill: var(--berry); }

/* =========================================================
   INSTAGRAM + RODAPÉ
   ========================================================= */
.social { padding: var(--sec) 0 0; background: var(--areia); overflow: hidden; }
.social-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.social-side { display: grid; gap: 28px; justify-items: start; }
.social-side p { font-size: clamp(1.1rem, 1.35vw, 1.3rem); max-width: 26em; }
.handle {
  display: block; text-decoration: none; color: var(--oceano);
  margin-top: clamp(40px, 6vw, 90px);
  padding: 0 0 .04em;
  text-align: center;
}
.handle-text {
  display: inline-block;
  font-family: var(--f-display); font-weight: 800;
  font-weight: 900; font-size: 15.2vw; line-height: .9; letter-spacing: -.045em;
  white-space: nowrap;
}
.handle .ch { display: inline-block; transition: color .3s; }
.handle:hover .ch { color: var(--berry); animation: wave .9s var(--ease-out) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes wave { 40% { transform: translateY(-8%); } 100% { transform: none; } }
.handle .chw { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .16em; }

.footer { background: var(--areia); padding: 48px 0 40px; border-top: 2px solid var(--ceu); }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.brand--foot { background: transparent; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.footer-sign { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.02em; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px;
  font-size: .875rem; padding-top: 24px; border-top: 1px solid var(--ceu);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--oceano); }
.credits summary { cursor: pointer; font-weight: 600; }
.credits ul { display: grid; gap: 6px; margin-top: 10px; }
.credits a { text-decoration: none; }
.credits a:hover { text-decoration: underline; }

/* ---------- Estados iniciais (só com JS e sem reduced motion) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-motion [data-checks] li { opacity: 0; transform: translateY(22px); }
.js-motion .hero-title [data-line] { transform: translateY(110%); }
.js-motion [data-load] { opacity: 0; transform: translateY(22px); }
.js-motion .window-bezel { opacity: 0; transform: scale(.92); }
.js-motion .brand-arc { stroke-dasharray: 1600; stroke-dashoffset: 1600; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .sec-head, .social-head, .guide-grid, .lesson-grid, .finds-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-lead { justify-self: start; }

  .hero { --ww: clamp(118px, 30vw, 200px); min-height: 620px; }
  .hero-inner { display: block; padding-top: 104px; }
  .hero-title { font-size: clamp(2.5rem, 11.4vw, 5rem); margin-bottom: 22px; }
  .hero-lead { margin-bottom: 26px; font-size: 1.02rem; }
  .hero-actions { margin-bottom: 0; }
  .hero-copy { max-width: none; }
  .ana { margin-top: 28px; }
  .hero-window { position: absolute; right: var(--pad); bottom: 56px; margin: 0; }
  .window-bezel { inset: -10px; border-radius: calc(var(--ww) * .42 + 10px); }
  .hero-scrollcue { display: none; }

  .acc { flex-direction: column; height: auto; }
  .acc-panel, .acc-panel.is-open { flex: none; cursor: default; gap: 40px; min-height: 0; }
  .acc-panel:not(.is-open) .acc-title {
    position: static; writing-mode: horizontal-tb; transform: none;
    font-size: clamp(2rem, 8vw, 2.6rem); animation: none;
  }
  .acc-panel .acc-title, .acc-panel.is-open .acc-title { white-space: normal; animation: none; }
  .acc-panel:not(.is-open) .acc-body, .acc-panel.is-open .acc-body { opacity: 1; transform: none; transition: none; }
  .acc-body { min-width: 0; }
  .acc-top { gap: 20px; }

  .guide-figure { order: 2; }
  .book-stage { --bw: min(62vw, 300px); }

  .find { min-height: 0; }
  .find-bag { margin-top: 0; }
  .find-art { height: 220px; }
  .find-coupon::before, .find-coupon::after { top: 220px; }
  .find-pct { font-size: 240px; }
  .tag-svg { height: 190px; }

  .routes-pin { height: auto; display: block; padding: var(--sec) 0; }
  .routes-track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 12px; scrollbar-width: none;
    align-items: stretch;
  }
  .routes-track::-webkit-scrollbar { display: none; }
  .routes-intro { width: 84vw; padding-right: 0; align-self: center; }
  .routes-intro, .route-card, .routes-end { scroll-snap-align: start; scroll-margin-left: var(--pad); }
  .route-card { width: 78vw; height: 118vw; max-height: 560px; }
  .route-card--low { transform: none; }
  .routes-end { width: 78vw; align-self: center; }
  .routes-progress { display: none; }
  .routes-hint { display: none; }

  .duo { max-width: 420px; justify-self: center; width: 100%; }
}

@media (max-width: 520px) {
  .brand { padding: 6px 12px 6px 10px; }
  .brand-mark { width: 38px; height: 28px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-window { bottom: 40px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
