/* Estilo baseado em DESIGN.md (referência aave.com). Inter substitui a Aave Repro. */
@font-face {
  font-family: "Inter";
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --violet: #998eff;
  --obsidian: #221d1d;
  --obsidian-2: #2c2626;
  --inkwell: #0f0f10;
  --iron: #636161;
  --graphite: #858387;
  --ash: #bcbbbb;
  --bone: #f6f7f4;
  --paper: #ffffff;
  --lavender: #ece6ff;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: 20px;
  --radius-card: 20px;
  --radius-featured: 24px;
  --radius-badge: 8px;
  --shadow-float: rgba(0, 0, 0, 0.05) 0 6px 20px 0, rgba(0, 0, 0, 0.06) 0 0 0 1px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "ss07", "cv11";
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--obsidian);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--inkwell); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-badge);
}
.skip:focus { top: 12px; }

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

.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px;
  font: 500 16px/1 var(--font); letter-spacing: -0.16px;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 1584px;
  cursor: pointer; touch-action: manipulation;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-violet { background: var(--violet); color: var(--inkwell); }
.btn-violet:hover { background: #8a7ef5; }
.btn-dark { background: var(--inkwell); color: var(--paper); }
.btn-dark:hover { background: #2a2a2d; }
.btn-light { background: var(--paper); color: var(--obsidian); border-radius: 50px; }
.btn-light:hover { background: var(--lavender); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; border-radius: 50px; }
.btn-ghost:hover { background: rgba(34, 29, 29, 0.06); }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 14px; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 500; font-size: 17px; letter-spacing: -0.4px; text-decoration: none; }
.nav-links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 10px; border-radius: var(--radius-badge); font-size: 14px; font-weight: 450; text-decoration: none; }
.nav-links a:hover { background: rgba(34, 29, 29, 0.06); }
.nav.is-scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-float); }
.nav.on-dark { color: var(--paper); background: rgba(34, 29, 29, 0.86); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nav.on-dark .nav-links a:hover { background: rgba(255, 255, 255, 0.08); }
.nav.on-dark .btn-dark { background: var(--paper); color: var(--obsidian); }
.nav-cta .label-long { display: none; }

/* ---------- Topo (lavanda) ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--lavender) 62%, var(--lavender) 100%);
  padding: 112px 0 64px;
  text-align: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-badge);
  background: var(--bone); color: var(--obsidian);
  font-size: 14px; font-weight: 450; letter-spacing: -0.084px;
}
.hero .badge { background: var(--paper); }
.badge-mark { width: 10px; height: 10px; border-radius: 3px; background: var(--violet); }
.hero h1 {
  margin: 20px auto 0; max-width: 14ch;
  font-size: clamp(40px, 10.4vw, 72px); line-height: 1.02; letter-spacing: -0.05em;
}
.hero-sub { margin: 20px auto 0; max-width: 34rem; font-size: 17px; color: var(--iron); }
.hero-ctas { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 360px; margin-inline: auto; }

/* Vídeo */
.video-card {
  margin: 48px auto 0; max-width: 960px;
  background: var(--paper); border-radius: var(--radius-featured); padding: 8px;
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px; background: var(--obsidian); color: var(--paper);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; align-items: end; text-align: left; }
.video-poster img { position: absolute; right: 0; top: 0; height: 100%; width: auto; opacity: .9; mask-image: linear-gradient(90deg, transparent 0%, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.video-copy { position: relative; padding: 16px 18px; max-width: 60%; }
.play {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--violet); color: var(--inkwell); margin-bottom: 12px;
}
.play svg { width: 18px; height: 18px; margin-left: 3px; fill: currentColor; }
.video-copy strong { display: block; font-weight: 500; font-size: 16px; letter-spacing: -0.3px; line-height: 1.25; }
.video-copy .sub { display: block; margin-top: 4px; font-size: 13px; color: var(--ash); }

/* ---------- Seções claras ---------- */
.section { padding: 80px 0; }
.section-title { font-size: clamp(32px, 7vw, 40px); line-height: 1.05; letter-spacing: -1.24px; max-width: 18ch; }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--iron); max-width: 36rem; }

/* Pra quem é */
.who-grid { display: grid; gap: 32px; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.who-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 20px; border-radius: var(--radius-card); background: var(--bone);
}
.who-list svg { width: 24px; height: 24px; stroke: var(--violet); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.who-list strong { display: block; font-weight: 500; font-size: 18px; letter-spacing: -0.3px; line-height: 1.3; }
.who-list span { display: block; margin-top: 4px; color: var(--iron); font-size: 15px; }

/* A dor */
.pain { background: var(--bone); }
.pain-list { margin-top: 40px; display: grid; }
.pain-item { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--ash); }
.pain-item:last-child { border-bottom: 1px solid var(--ash); }
.pain-item h3 { font-size: clamp(24px, 5.6vw, 32px); line-height: 1.1; letter-spacing: -0.96px; }
.pain-item p { color: var(--iron); max-width: 34rem; }

/* O que eu ensino (bento) */
.bento { margin-top: 40px; display: grid; gap: 12px; }
.tile { border-radius: var(--radius-card); padding: 24px; background: var(--bone); display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.tile.lav { background: var(--lavender); }
.tile-label { font-size: 14px; font-weight: 500; color: #6f63e0; letter-spacing: -0.084px; }
.tile h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.6px; }
.tile p { color: var(--iron); font-size: 15px; max-width: 32rem; }
.tags { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding-left: 0; margin-bottom: 0; }
.tags li { padding: 6px 12px; border-radius: var(--radius-badge); background: var(--paper); font-size: 14px; font-weight: 450; }

/* ---------- Parte escura ---------- */
.dark { background: var(--obsidian); color: var(--paper); }
.dark .section-lead, .dark p { color: var(--ash); }
.dark .badge { background: var(--obsidian-2); color: var(--paper); }

.paths-head { text-align: center; }
.paths-head .section-title { margin: 20px auto 0; max-width: 16ch; }
.paths-head .section-lead { margin-inline: auto; }
.paths { margin-top: 48px; display: grid; gap: 12px; }
.path { background: var(--obsidian-2); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.path-label { font-size: 14px; font-weight: 500; color: var(--violet); }
.path h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.6px; color: var(--paper); }
.path p { font-size: 15px; }
.path .btn { margin-top: auto; align-self: stretch; }
.path-body { flex: 1; }

/* Sobre */
.about { display: grid; gap: 32px; align-items: center; }
.about-photo { border-radius: var(--radius-featured); overflow: hidden; aspect-ratio: 1; max-width: 420px; background: var(--inkwell); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(32px, 7vw, 40px); line-height: 1.05; letter-spacing: -1.24px; }
.about p { margin-top: 16px; font-size: 17px; max-width: 34rem; }
.about p + p { margin-top: 12px; }

/* Prova */
.proof-grid { margin-top: 40px; display: grid; gap: 12px; }
.proof { margin: 0; border-radius: var(--radius-card); padding: 24px; background: var(--obsidian-2); display: flex; flex-direction: column; gap: 16px; }
.proof.is-empty { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.2); }
.proof-stat { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -1.24px; color: var(--paper); }
.proof-stat small { display: block; margin-top: 8px; font-size: 14px; letter-spacing: -0.084px; color: var(--violet); }
.proof blockquote { margin: 0; font-size: 16px; color: var(--paper); }
.proof figcaption { margin-top: auto; font-size: 14px; color: var(--ash); }
.proof figcaption strong { display: block; color: var(--paper); font-weight: 500; }

/* Chamada final */
.closing { text-align: center; padding: 96px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.closing h2 { font-size: clamp(32px, 8vw, 56px); line-height: 1.02; letter-spacing: -0.045em; max-width: 16ch; margin: 0 auto; }
.closing .hero-ctas { margin-top: 32px; }

/* Rodapé */
.footer { background: var(--inkwell); color: var(--ash); padding: 40px 0; font-size: 14px; }
.footer-inner { display: grid; gap: 20px; }
.footer .brand { color: var(--paper); }
.footer-links { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 32px; }
.footer-links a:hover { color: var(--paper); }
.footer-links .icon { width: 16px; height: 16px; }

/* Entrada do topo (único movimento automático) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero-ctas { flex-direction: row; justify-content: center; max-width: none; }
  .nav-cta .label-long { display: inline; }
  .nav-cta .label-short { display: none; }
  .video-copy { padding: 28px 32px; }
  .video-copy strong { font-size: 20px; }
  .video-copy .sub { font-size: 14px; }
  .play { width: 56px; height: 56px; }
  .footer-links { flex-direction: row; gap: 24px; flex-wrap: wrap; }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile.wide { grid-column: span 2; }
  .paths, .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .pain-item { grid-template-columns: 1fr 1fr; gap: 32px; align-items: baseline; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .nav-inner { height: 72px; }
  .nav-links { display: flex; }
  .hero { padding: 136px 0 88px; }
  .hero h1 { max-width: 1100px; }
  .closing h2 { max-width: 22ch; }
  .video-card { max-width: 880px; }
  .hero-sub { font-size: 18px; }
  .section { padding: 120px 0; }
  .who-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .tile { padding: 32px; min-height: 260px; }
  .path { padding: 32px; }
  .about { grid-template-columns: 5fr 6fr; gap: 80px; }
  .about-photo { max-width: none; }
  .closing { padding: 120px 0; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Formulário ---------- */
.closing { text-align: left; }
.closing-grid { display: grid; gap: 40px; align-items: start; }
.closing-copy h2 { margin: 0; max-width: 14ch; }
.closing-copy p { margin-top: 16px; font-size: 18px; max-width: 30rem; }
.closing-ctas { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.form-card { background: var(--obsidian-2); border-radius: var(--radius-featured); padding: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--paper); letter-spacing: -0.084px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font: 400 16px/1.3 var(--font); color: var(--obsidian);
  background: var(--paper); border: 1px solid var(--ash); border-radius: 20px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636161' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field input::placeholder { color: var(--graphite); }
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(153, 142, 255, 0.35); }
.field input[aria-invalid="true"] { border-color: #ff9a8f; }
.dark .field-error { font-size: 14px; color: #ffb4ab; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; margin-top: 8px; }
.form-submit[disabled] { opacity: .6; cursor: progress; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--ash); }
.dark .form-status { margin-top: 8px; font-size: 14px; color: #ffb4ab; }
.form-status:empty { display: none; }
.form-status a { color: var(--paper); }
.form-done h3 { font-size: 24px; letter-spacing: -0.6px; color: var(--paper); }
.form-done p { margin-top: 12px; }
.form-done .btn { margin-top: 24px; width: 100%; }
.form-done:focus { outline: none; }

@media (min-width: 640px) {
  .closing-ctas { flex-direction: row; flex-wrap: wrap; }
  .form-card { padding: 32px; }
}
@media (min-width: 1024px) {
  .closing-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .closing-copy { position: sticky; top: 120px; }
}
