/* ==========================================================================
   HUAKA'I — Escola de Idiomas
   global.css — Folha de estilo única para todas as páginas
   Paleta: Branco · Bege · Preto  |  Fonte: League Spartan
   ========================================================================== */

/* ------------------------------- Tokens --------------------------------- */
:root {
  /* Cores base */
  --ink: #0c0b0a;
  --ink-soft: #1a1816;
  --paper: #faf7f1;
  --paper-2: #f3ede2;
  --sand: #e9dfcd;
  --sand-deep: #ddcfb6;
  --beige: #cdb79a;
  --white: #ffffff;

  /* Texto */
  --tx: #14110d;
  --tx-2: #4a443c;
  --tx-3: #837a6c;
  --tx-inv: #f7f2e9;

  /* Linhas / acentos */
  --line: rgba(20, 17, 13, 0.12);
  --line-2: rgba(20, 17, 13, 0.07);
  --gold: #b89b6a;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-dark: rgba(18, 16, 13, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.6);
  --glass-brd-dark: rgba(255, 255, 255, 0.08);
  --blur: 18px;

  /* Sombras suaves e em camadas (luz quente) */
  --sh-1: 0 1px 2px rgba(20, 17, 13, 0.04), 0 2px 6px rgba(20, 17, 13, 0.05);
  --sh-2: 0 6px 18px rgba(20, 17, 13, 0.07), 0 2px 6px rgba(20, 17, 13, 0.05);
  --sh-3: 0 24px 60px -18px rgba(20, 17, 13, 0.22), 0 8px 20px -10px rgba(20, 17, 13, 0.14);
  --sh-glass: 0 8px 32px rgba(20, 17, 13, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.5);

  /* Geometria */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Ritmo / layout */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 160px);

  /* Tipografia fluida */
  --fs-display: clamp(2.9rem, 8.5vw, 7.2rem);
  --fs-h1: clamp(2.3rem, 5.5vw, 4.4rem);
  --fs-h2: clamp(1.9rem, 3.8vw, 3.2rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body: 1.02rem;
  --fs-sm: 0.86rem;
  --fs-xs: 0.74rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* { margin: 0; padding: 0; }

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

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

body {
  font-family: "League Spartan", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--tx);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 430;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Textura/atmosfera quente de fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(205, 183, 154, 0.30), transparent 60%),
    radial-gradient(55% 45% at 0% 100%, rgba(221, 207, 182, 0.35), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* Grão sutil (premium, anti "cara de IA") */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

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

/* ----------------------------- Tipografia ------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead { font-size: var(--fs-lead); color: var(--tx-2); font-weight: 400; }
.muted { color: var(--tx-3); }
.italic { font-style: italic; }

/* ------------------------------ Layout ---------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; padding-block: var(--section-y); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.4rem, 5vw, 4.4rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
}

/* ------------------------------- Glass ---------------------------------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-glass);
}
.glass-dark {
  background: var(--glass-bg-dark);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--glass-brd-dark);
  color: var(--tx-inv);
}

/* ------------------------------ Botões ---------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.02em 1.9em;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
  will-change: transform;
  overflow: hidden;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--tx-inv);
  box-shadow: var(--sh-2);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--sh-2); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }

.btn-lg { padding: 1.2em 2.4em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.72; pointer-events: none; transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link:hover { border-color: var(--ink); gap: 0.75em; }

/* ------------------------------ Navbar ---------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--ink));
  z-index: 1001;
  transition: width 0.12s linear;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: padding 0.45s var(--ease), background 0.45s var(--ease);
  padding-block: clamp(14px, 2vw, 22px);
}
.nav.scrolled { padding-block: 10px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-pill);
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
  border: 1px solid transparent;
}
.nav.scrolled .nav-inner {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border-color: var(--glass-brd);
  box-shadow: var(--sh-glass);
}

/* Logotipo (sempre no topo superior esquerdo) */
.brand { display: inline-flex; align-items: center; gap: 0.62rem; flex-shrink: 0; }
.brand .mark { width: 34px; height: 34px; color: var(--ink); flex-shrink: 0; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .word {
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
/* Logotipo a partir do arquivo de imagem oficial */
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.nav.scrolled .brand-logo { height: 28px; }
/* Inverte para branco quando sobre fundo escuro */
.brand-logo--light { filter: brightness(0) invert(1); }

/* Ornamento (ícone da flor) a partir do arquivo oficial.
   A arte é preta; invertemos para branco e usamos baixa opacidade
   para o efeito de marca d'água sobre os painéis escuros. */
.bloom-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.09;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
}
.nav-links a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--tx-2);
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-entrar {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--tx-2);
  transition: color 0.3s var(--ease);
}
.nav-entrar:hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: 0.3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* --------------------------- Reveal (UX) -------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }

/* -------------------------------- Hero ---------------------------------- */
.hero { padding-top: clamp(130px, 17vw, 220px); padding-bottom: clamp(60px, 9vw, 120px); overflow: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-title { margin: 1.4rem 0 0; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-title em {
  font-style: italic;
  font-weight: 500;
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.14em;
  background: var(--beige);
  opacity: 0.6;
  z-index: -1;
  border-radius: 2px;
}
@keyframes rise { to { transform: translateY(0); } }

.hero p.lead { margin-top: 1.8rem; max-width: 30em; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-stats {
  margin-top: 3.2rem;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.stat .n { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.stat .l { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); margin-top: 0.5rem; }

/* Hero visual — composição glass */
.hero-visual { position: relative; aspect-ratio: 3 / 3.7; }
.hero-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 0%, #f0e7d6, transparent 55%),
    linear-gradient(155deg, #1b1815, #2c2620 55%, #14110d);
  box-shadow: var(--sh-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-frame .bloom {
  position: absolute;
  width: 78%;
  bottom: -8%;
  right: -10%;
  color: rgba(233, 223, 205, 0.10);
  transform: rotate(-12deg);
}
.hero-frame .bloom svg { width: 100%; height: auto; }
.hero-kicker {
  position: absolute;
  top: 7%;
  left: 7%;
  right: 14%;
  color: var(--tx-inv);
}
.hero-kicker .big {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-kicker .sub { margin-top: 0.8rem; font-size: var(--fs-sm); color: rgba(247, 242, 233, 0.7); max-width: 22em; }

/* Cartões flutuantes de glass */
.float-card {
  position: absolute;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sand-deep); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.float-card .t { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.1; }
.float-card .s { font-size: var(--fs-xs); color: var(--tx-3); }
.float-card.fc-1 { left: -8%; top: 24%; animation-delay: 0s; }
.float-card.fc-2 { right: -6%; bottom: 16%; animation-delay: 1.2s; }
.float-card.fc-3 { left: 6%; bottom: -4%; animation-delay: 2.1s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  margin-top: 3.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.scroll-cue .dot { width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: var(--r-pill); position: relative; }
.scroll-cue .dot::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: var(--tx-3); border-radius: 2px; transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } }

/* ------------------------------ Marquee --------------------------------- */
.marquee {
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--tx-inv);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollx 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  opacity: 0.92;
}
.marquee-track .sep { color: var(--gold); font-size: 1.2em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------------------------- Pra quem é -------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: stretch;
}
.check-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.check-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-md);
}
.check-item .ic {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
}
.check-item .ic svg { width: 16px; height: 16px; }
.check-item h4 { font-size: 1.1rem; }
.check-item p { font-size: var(--fs-sm); color: var(--tx-2); margin-top: 0.2rem; }

.audience-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(184, 155, 106, 0.18), transparent 60%),
    linear-gradient(160deg, #1b1815, #14110d);
  color: var(--tx-inv);
  position: relative;
  overflow: hidden;
}
.audience-note .bloom { position: absolute; right: -12%; bottom: -16%; width: 60%; color: rgba(233, 223, 205, 0.07); }
.audience-note h3 { color: var(--tx-inv); font-size: var(--fs-h3); }
.audience-note p { color: rgba(247, 242, 233, 0.74); margin-top: 1rem; }
.audience-note .pill-x {
  margin-top: 1.6rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------- Por que você trava ------------------------- */
.trava { background: var(--ink); color: var(--tx-inv); overflow: clip; }
.trava::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 20% 0%, rgba(184, 155, 106, 0.18), transparent 60%);
  pointer-events: none;
}
.trava .eyebrow, .trava .muted { color: rgba(247, 242, 233, 0.6); }
.trava h2 { color: var(--tx-inv); }
.trava-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.trava-card {
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.trava-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.07); border-color: rgba(184, 155, 106, 0.4); }
.trava-card .num { font-size: 0.85rem; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; }
.trava-card h4 { color: var(--tx-inv); font-size: 1.3rem; margin-top: 0.9rem; }
.trava-card p { color: rgba(247, 242, 233, 0.66); font-size: var(--fs-sm); margin-top: 0.7rem; }
.trava-cta { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ------------------------------ Método ---------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1rem;
}
.m-card {
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.m-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.m-card .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  margin-bottom: 1.3rem;
}
.m-card .ic svg { width: 24px; height: 24px; }
.m-card h3 { font-size: var(--fs-h3); }
.m-card p { font-size: var(--fs-sm); color: var(--tx-2); margin-top: 0.7rem; }
.m-card .tag {
  margin-top: auto;
  padding-top: 1.3rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.m-card a.tag {
  color: inherit;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.m-card a.tag:hover { color: var(--ink); border-color: var(--ink); }
.m-card.feature a.tag:hover { color: var(--gold); border-color: var(--gold); }
.m-card.span-7 { grid-column: span 7; }
.m-card.span-5 { grid-column: span 5; }
.m-card.span-4 { grid-column: span 4; }
.m-card.span-8 { grid-column: span 8; }
.m-card.feature {
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(184, 155, 106, 0.22), transparent 55%),
    linear-gradient(155deg, #1c1916, #14110d);
  color: var(--tx-inv);
  min-height: 240px;
}
.m-card.feature h3 { color: var(--tx-inv); }
.m-card.feature p { color: rgba(247, 242, 233, 0.7); }
.m-card.feature .ic { background: var(--paper); color: var(--ink); }
.m-card.feature .tag { color: rgba(247, 242, 233, 0.6); }
.m-card.feature .bloom { position: absolute; right: -10%; bottom: -22%; width: 50%; color: rgba(233, 223, 205, 0.08); }
.m-card.tinted { background: var(--paper-2); border: 1px solid var(--line-2); }
.m-card.outline { background: var(--white); border: 1px solid var(--line); }

/* ------------------------------ Planos ---------------------------------- */
.pricing { overflow: clip; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: stretch;
}
.price-card {
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.price-card.simple { background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.price-card.highlight {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(184, 155, 106, 0.25), transparent 55%),
    linear-gradient(160deg, #1d1a16, #14110d);
  color: var(--tx-inv);
  box-shadow: var(--sh-3);
}
.price-card.highlight .bloom { position: absolute; right: -12%; top: -18%; width: 52%; color: rgba(233, 223, 205, 0.08); transform: rotate(15deg); }
.price-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.price-card.simple .price-badge { background: var(--paper-2); color: var(--tx-2); }
.price-card.highlight .price-badge { background: rgba(255, 255, 255, 0.1); color: var(--gold); border: 1px solid rgba(184, 155, 106, 0.4); }
.price-card h3 { font-size: var(--fs-h3); margin-top: 1.4rem; }
.price-card.highlight h3 { color: var(--tx-inv); }
.price-card .price-desc { font-size: var(--fs-sm); margin-top: 0.5rem; }
.price-card.simple .price-desc { color: var(--tx-2); }
.price-card.highlight .price-desc { color: rgba(247, 242, 233, 0.7); }

.price-amount { display: flex; align-items: baseline; gap: 0.4rem; margin: 1.8rem 0 0.3rem; }
.price-amount .cur { font-size: 1.2rem; font-weight: 600; opacity: 0.7; }
.price-amount .val { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; }
.price-card.highlight .price-amount .val { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.price-amount .per { font-size: var(--fs-sm); opacity: 0.7; }
.price-note { font-size: var(--fs-sm); }
.price-card.simple .price-note { color: var(--tx-3); }
.price-card.highlight .price-note { color: rgba(247, 242, 233, 0.6); }

.feat-list { margin: 1.8rem 0; display: grid; gap: 0.85rem; }
.feat-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-sm); }
.feat-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.price-card.simple .feat-list li { color: var(--tx-2); }
.price-card.simple .feat-list li svg { color: var(--ink); }
.price-card.highlight .feat-list li { color: rgba(247, 242, 233, 0.82); }
.price-card.highlight .feat-list li svg { color: var(--gold); }
.price-card .btn { margin-top: auto; }

.guarantee-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.price-card.simple .guarantee-row { color: var(--tx-3); }
.price-card.highlight .guarantee-row { color: rgba(247, 242, 233, 0.6); }
.guarantee-row svg { width: 16px; height: 16px; }

/* --------------------------- Certificado -------------------------------- */
.cert { overflow: clip; }
.cert-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cert-points { display: grid; gap: 1.4rem; margin-top: 2rem; }
.cert-point { display: flex; gap: 1rem; align-items: flex-start; }
.cert-point .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.cert-point .ic svg { width: 20px; height: 20px; color: var(--ink); }
.cert-point h4 { font-size: 1.1rem; }
.cert-point p { font-size: var(--fs-sm); color: var(--tx-2); margin-top: 0.2rem; }

/* Preview do certificado — protegido contra plágio */
.cert-stage {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(160deg, var(--sand), var(--paper-2));
  box-shadow: var(--sh-3);
  user-select: none;
  -webkit-user-select: none;
}
.cert-doc {
  position: relative;
  aspect-ratio: 1.414 / 1;
  background: #fdfcf9;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--sh-2);
  padding: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  filter: blur(3px);
  transition: filter 0.6s var(--ease);
  -webkit-user-drag: none;
}
.cert-stage:hover .cert-doc { filter: blur(1.5px); }
.cert-doc::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cert-doc .c-ribbon { width: 44px; height: 44px; color: var(--ink); margin-bottom: 0.5rem; }
.cert-doc .c-title { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.cert-doc .c-sub { font-size: var(--fs-xs); letter-spacing: 0.3em; text-transform: uppercase; color: var(--tx-3); margin-top: 0.3rem; }
.cert-doc .c-body { margin-top: auto; margin-bottom: auto; }
.cert-doc .c-line1 { font-size: var(--fs-sm); color: var(--tx-2); }
.cert-doc .c-name { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 700; border-bottom: 1.5px solid var(--ink); padding: 0.2rem 1.4rem; margin: 0.5rem auto; display: inline-block; }
.cert-doc .c-text { font-size: var(--fs-xs); color: var(--tx-2); max-width: 32em; margin: 0.4rem auto 0; }
.cert-doc .c-sign { margin-top: auto; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--tx-3); border-top: 1px solid var(--ink); padding-top: 0.4rem; }
/* Marca d'água repetida — impede uso/plágio */
.cert-doc .c-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cert-doc .c-watermark span {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(20, 17, 13, 0.06);
  transform: rotate(-18deg);
  white-space: nowrap;
}
.cert-tiles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(-30deg, transparent 0 80px, rgba(20,17,13,0.02) 80px 81px);
  border-radius: var(--r-sm);
}
.cert-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.cert-lock .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.cert-lock .badge svg { width: 18px; height: 18px; }
.cert-lock small { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-2); }

/* ----------------------------- Professora ------------------------------- */
.teacher { overflow: clip; }
.teacher-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.teacher-portrait {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #f1e8d7, transparent 60%),
    linear-gradient(160deg, #211d18, #14110d);
  box-shadow: var(--sh-3);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.teacher-portrait .mono {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(247, 242, 233, 0.92);
  line-height: 0.85;
  text-align: center;
}
.teacher-portrait .mono small { display: block; font-size: 0.18em; letter-spacing: 0.4em; font-weight: 600; color: rgba(247,242,233,0.55); margin-top: 1rem; }

/* Retrato com foto real */
.teacher-portrait.has-photo { display: block; }
.teacher-portrait .teacher-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}
.teacher-portrait.has-photo:hover .teacher-photo { transform: scale(1.06); }
.teacher-portrait.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,11,10,0.28) 0%, transparent 22%),
    linear-gradient(0deg, rgba(12,11,10,0.55) 0%, transparent 38%);
}
.teacher-portrait.has-photo .flag,
.teacher-portrait.has-photo .teacher-badge { z-index: 2; }
.teacher-portrait .bloom { position: absolute; right: -14%; bottom: -10%; width: 62%; color: rgba(233, 223, 205, 0.08); }
.teacher-portrait .flag {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,242,233,0.7);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.teacher-badge {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
}
.teacher-badge .t { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.teacher-badge .s { font-size: var(--fs-xs); color: var(--tx-2); }

.teacher h2 { font-size: var(--fs-h2); margin: 1rem 0; }
.teacher .name { color: var(--gold); font-weight: 700; }
.teacher .creds { display: grid; gap: 1rem; margin-top: 2rem; }
.cred {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: var(--r-md);
}
.cred svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink); margin-top: 2px; }
.cred span { font-size: var(--fs-sm); color: var(--tx-2); }
.cred b { color: var(--ink); font-weight: 700; }

/* ---------------------------- Depoimentos ------------------------------- */
.testi { background: var(--paper-2); }
.testi-masonry {
  columns: 3;
  column-gap: 1.4rem;
  margin-top: 1rem;
}
.testi-card {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-1);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.testi-card .quote-mark { font-size: 2.4rem; line-height: 0.6; color: var(--beige); font-weight: 800; }
.testi-card p { font-size: var(--fs-sm); color: var(--tx); margin-top: 0.6rem; }
.testi-card .who { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.testi-card .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--sand-deep); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.testi-card .who .nm { font-size: var(--fs-sm); font-weight: 700; }
.testi-card .who .rl { font-size: var(--fs-xs); color: var(--tx-3); }
.testi-card.win {
  background: var(--ink);
  color: var(--tx-inv);
  text-align: center;
  padding-block: 1.8rem;
}
.testi-card.win .big { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--tx-inv); }
.testi-card.win .sm { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 0.5rem; }
.testi-card.print {
  padding: 0;
  overflow: hidden;
  background: var(--white);
}
.testi-card.print img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* ----------------------------- Garantia --------------------------------- */
.guarantee {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(184, 155, 106, 0.16), transparent 55%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.guarantee .seal {
  width: clamp(96px, 14vw, 132px);
  height: clamp(96px, 14vw, 132px);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--sh-2);
}
.guarantee .seal .d { font-size: 2.2rem; font-weight: 800; line-height: 0.8; }
.guarantee .seal .u { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 0.3rem; }
.guarantee .seal::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(247,242,233,0.35); border-radius: 50%; }
.guarantee .gt h3 { font-size: var(--fs-h3); }
.guarantee .gt p { color: var(--tx-2); margin-top: 0.6rem; max-width: 46em; }

/* -------------------------------- FAQ ----------------------------------- */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.faq-item.open { border-color: var(--ink); box-shadow: var(--sh-2); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .pm { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease); }
.faq-q .pm::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-q .pm::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-q .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.faq-a > div { padding: 0 1.5rem 1.4rem; color: var(--tx-2); font-size: var(--fs-sm); }

/* ------------------------------ CTA final ------------------------------- */
.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.6rem, 6vw, 5.5rem);
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(184, 155, 106, 0.22), transparent 55%),
    linear-gradient(160deg, #1d1a16, #14110d);
  color: var(--tx-inv);
  box-shadow: var(--sh-3);
}
.final-cta .bloom { position: absolute; left: -10%; bottom: -30%; width: 40%; color: rgba(233, 223, 205, 0.07); }
.final-cta .bloom.r { left: auto; right: -10%; bottom: auto; top: -30%; transform: rotate(180deg); }
.final-cta h2 { color: var(--tx-inv); font-size: clamp(2rem, 5vw, 3.6rem); max-width: 16em; margin-inline: auto; }
.final-cta p { color: rgba(247, 242, 233, 0.74); margin: 1.4rem auto 0; max-width: 40em; }
.final-cta .actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ------------------------------ Footer ---------------------------------- */
.footer { padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer .brand .word { font-size: 1.6rem; }
.footer .brand-logo { height: 42px; }
.footer-top p { color: var(--tx-2); font-size: var(--fs-sm); margin-top: 1.2rem; max-width: 28em; }
.foot-col h5 { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 1.1rem; }
.foot-col a { display: block; font-size: var(--fs-sm); color: var(--tx-2); padding: 0.35rem 0; transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); }
.foot-col a:hover { color: var(--ink); padding-left: 5px; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--tx-3);
  letter-spacing: 0.04em;
}

/* ------------------------- Avatar da Kai -------------------------------- */
.kai-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(80% 80% at 30% 20%, #f7f1e6, #e4d4b6 58%, var(--sand-deep));
  display: grid;
  place-items: center;
  box-shadow: var(--sh-2), 0 0 0 6px rgba(184, 155, 106, 0.12);
  animation: kaiPulse 3.6s ease-in-out infinite;
}
.kai-avatar img {
  width: 58%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.kai-avatar-lg {
  width: 112px;
  height: 112px;
  box-shadow: var(--sh-3), 0 0 0 10px rgba(184, 155, 106, 0.14);
}
.kai-avatar-lg img { width: 62%; }
@keyframes kaiPulse {
  0%, 100% { transform: scale(1); box-shadow: var(--sh-2), 0 0 0 6px rgba(184, 155, 106, 0.12); }
  50% { transform: scale(1.04); box-shadow: var(--sh-2), 0 0 0 14px rgba(184, 155, 106, 0); }
}

.kai-name {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

/* -------------------- CTA de nivelamento (landing) ---------------------- */
.kai-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(184, 155, 106, 0.26), transparent 55%),
    linear-gradient(160deg, #1d1a16, #14110d);
  color: var(--tx-inv);
  box-shadow: var(--sh-3);
}
.kai-cta .bloom {
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: 42%;
  pointer-events: none;
}
.kai-cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
}
.kai-cta-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  min-width: 0;
}
.kai-cta-copy { min-width: 0; }
.kai-bubble {
  max-width: 32em;
  padding: 1.1rem 1.25rem;
  border-radius: 6px var(--r-md) var(--r-md) var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.kai-bubble p { color: rgba(247, 242, 233, 0.88); font-size: var(--fs-sm); }
.kai-cta-copy h2 {
  color: var(--tx-inv);
  font-size: var(--fs-h2);
  margin-top: 1rem;
}
.kai-cta-copy p {
  color: rgba(247, 242, 233, 0.74);
  margin-top: 1rem;
}
.kai-cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.kai-cta-meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, 0.55);
}

/* ---------------------- Página do nivelamento --------------------------- */
.place-body { min-height: 100vh; }
.place-body .nav-inner {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border-color: var(--glass-brd);
  box-shadow: var(--sh-glass);
}
.place-page {
  padding-top: clamp(120px, 16vw, 168px);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.place-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: stretch;
  min-height: calc(100vh - 220px);
}
.place-aside {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(184, 155, 106, 0.22), transparent 55%),
    linear-gradient(160deg, #1d1a16, #14110d);
  color: var(--tx-inv);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-3);
  align-self: stretch;
}
.place-aside .bloom {
  position: absolute;
  right: -18%;
  bottom: -16%;
  width: 70%;
  pointer-events: none;
}
.place-aside-kicker {
  margin-top: 1.4rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.place-aside-name {
  color: var(--tx-inv);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: 0.25rem;
}
.place-aside-lead {
  color: rgba(247, 242, 233, 0.7);
  font-size: var(--fs-sm);
  margin-top: 0.8rem;
  max-width: 28em;
}
.place-steps {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 2.4rem;
  display: grid;
  gap: 0.55rem;
  list-style: none;
  counter-reset: step;
}
.place-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: rgba(247, 242, 233, 0.42);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.35s var(--ease);
}
.place-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(247, 242, 233, 0.55);
}
.place-steps li.is-active { color: var(--tx-inv); }
.place-steps li.is-active::before {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.place-steps li.is-done { color: rgba(247, 242, 233, 0.7); }
.place-steps li.is-done::before {
  background: rgba(184, 155, 106, 0.35);
  border-color: var(--gold);
  color: var(--paper);
}

.place-board {
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 3.2vw, 2.6rem);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-glass);
  display: flex;
  flex-direction: column;
}
#kaiApp { display: flex; flex-direction: column; gap: 1.6rem; min-height: 100%; width: 100%; }
.kai-speaker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
}
.kai-speech {
  font-size: var(--fs-lead);
  color: var(--tx);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.kai-speech.is-in { opacity: 1; transform: none; }
.kai-speech strong { font-weight: 700; color: var(--ink); }

#kaiStage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  margin-top: auto;
  width: 100%;
}
#kaiStage .btn,
#kaiStage .text-link { align-self: flex-start; }
.place-kicker {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-3);
  font-weight: 600;
}
.place-lead { color: var(--tx-2); font-size: var(--fs-sm); max-width: 42em; }
.place-meta, .place-note {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--tx-3);
}
.place-note { letter-spacing: 0.02em; max-width: 42em; }
.place-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.place-input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.place-input-lg { font-size: 1.15rem; font-weight: 500; }
.place-area {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.5;
  font-weight: 500;
}
.listen-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--tx-inv);
}
.listen-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.listen-play svg { display: block; }
.listen-play:hover { transform: translateY(-2px); }
.listen-play:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.listen-meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, 0.6);
}
.place-input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(20, 17, 13, 0.05);
}
.place-error {
  font-size: var(--fs-sm);
  color: #8a3a2a;
  font-weight: 600;
}
.kai-chips {
  display: grid;
  gap: 0.65rem;
  width: 100%;
}
.kai-chip {
  text-align: left;
  padding: 0.95rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.kai-chip:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--sh-1);
}
.kai-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--tx-inv);
  box-shadow: var(--sh-2);
}
.kai-chip-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
}
.kai-chip-opt .opt-ltr {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--paper-2);
  color: var(--ink);
}
.kai-chip-opt[aria-pressed="true"] .opt-ltr {
  background: var(--gold);
  color: var(--ink);
}
.place-prompt {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.25;
}
.place-passage {
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--tx-2);
  font-size: var(--fs-sm);
  font-style: italic;
}
.place-progress {
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--sand);
  overflow: hidden;
}
.place-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--ink));
  border-radius: inherit;
  transition: width 0.45s var(--ease);
}
.place-result { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; width: 100%; }
.place-level-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1.1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--tx-inv);
  width: 100%;
}
.place-level-code {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--gold);
}
.place-level-label { font-size: 1.15rem; font-weight: 700; }
.place-level-score {
  margin-left: auto;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, 0.6);
}
.place-reco-title { font-size: var(--fs-h3); margin-top: 0.4rem; }
.place-reco { display: grid; gap: 0.75rem; width: 100%; }
.place-reco-card {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.place-reco-card h4 { font-size: 1.05rem; }
.place-reco-card p { font-size: var(--fs-sm); color: var(--tx-2); margin-top: 0.3rem; }

.share-block {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}
.share-phone {
  width: min(220px, 46vw);
  flex-shrink: 0;
  padding: 10px 10px 16px;
  border-radius: 32px;
  background: #1a1816;
  box-shadow: var(--sh-3);
  border: 1px solid rgba(20, 17, 13, 0.35);
}
.share-phone canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #14110d;
}
.share-panel {
  flex: 1;
  min-width: min(100%, 220px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  width: 100%;
}
#kaiStage .share-actions .btn { align-self: auto; }
.share-hint {
  font-size: var(--fs-sm);
  color: var(--tx-2);
  max-width: 36em;
}
#kaiStage .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ------------------------------ Login ----------------------------------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(184, 155, 106, 0.22), transparent 55%),
    linear-gradient(160deg, #1d1a16, #14110d);
  color: var(--tx-inv);
}
.auth-aside .bloom { position: absolute; right: -12%; bottom: -10%; width: 60%; color: rgba(233, 223, 205, 0.08); }
.auth-aside .brand .word, .auth-aside .brand .mark { color: var(--tx-inv); }
.auth-aside .pitch { max-width: 18em; }
.auth-aside .pitch h2 { color: var(--tx-inv); font-size: clamp(1.8rem, 3vw, 2.8rem); }
.auth-aside .pitch p { color: rgba(247, 242, 233, 0.72); margin-top: 1rem; font-size: var(--fs-sm); }
.auth-aside .mini-stats { display: flex; gap: 2rem; }
.auth-aside .mini-stats .n { font-size: 1.6rem; font-weight: 800; color: var(--tx-inv); }
.auth-aside .mini-stats .l { font-size: var(--fs-xs); color: rgba(247,242,233,0.6); letter-spacing: 0.1em; text-transform: uppercase; }

.auth-main {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--r-lg);
}
.auth-card .top-link { font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--tx-3); margin-bottom: 1.6rem; display: inline-flex; gap: 0.4rem; }
.auth-card h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.auth-card .sub { color: var(--tx-2); font-size: var(--fs-sm); margin-top: 0.5rem; margin-bottom: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 0.5rem; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg { position: absolute; left: 1rem; width: 18px; height: 18px; color: var(--tx-3); pointer-events: none; }
.field input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder { color: var(--tx-3); }
.field input:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(20,17,13,0.05); }
.field .toggle-pw { position: absolute; right: 0.6rem; padding: 0.4rem; color: var(--tx-3); }
.field .toggle-pw svg { position: static; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); margin-bottom: 1.6rem; }
.auth-row label { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--tx-2); text-transform: none; letter-spacing: 0; cursor: pointer; }
.auth-row input { accent-color: var(--ink); }
.auth-row a { color: var(--ink); border-bottom: 1px solid var(--line); }
.auth-sep { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; color: var(--tx-3); font-size: var(--fs-xs); }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; font-size: var(--fs-sm); color: var(--tx-2); margin-top: 1.6rem; }
.auth-alt a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }

.auth-card--form { max-width: 460px; }
.field input.is-invalid {
  border-color: #9a3d32;
  box-shadow: 0 0 0 4px rgba(154, 61, 50, 0.08);
}
.field-error {
  min-height: 0.9rem;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: #9a3d32;
}
.auth-alert {
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.auth-alert.is-error {
  background: rgba(154, 61, 50, 0.08);
  color: #6e2b24;
  border: 1px solid rgba(154, 61, 50, 0.18);
}
.auth-alert.is-ok {
  background: rgba(46, 92, 58, 0.08);
  color: #234a30;
  border: 1px solid rgba(46, 92, 58, 0.16);
}

.pw-meter {
  display: flex;
  height: 4px;
  margin-top: 0.7rem;
  border-radius: var(--r-pill);
  background: var(--sand);
  overflow: hidden;
}
.pw-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #9a3d32;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.pw-meter[data-score="1"] span { width: 20%; background: #9a3d32; }
.pw-meter[data-score="2"] span { width: 40%; background: #b7783a; }
.pw-meter[data-score="3"] span { width: 60%; background: #b89b6a; }
.pw-meter[data-score="4"] span { width: 80%; background: #6e8a4a; }
.pw-meter[data-score="5"] span { width: 100%; background: #3d6b45; }

.pw-rules {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.8rem;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--tx-3);
}
.pw-rules li.is-ok { color: #3d6b45; }

.otp-row {
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
}
.field .otp-row input {
  width: 2.7rem;
  height: 3.1rem;
  padding: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-sair {
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--tx-2);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s var(--ease);
}
.nav-sair:hover { color: var(--ink); }

.account {
  min-height: 100vh;
  padding: calc(88px + 2.5rem) var(--gut) 4rem;
  background:
    radial-gradient(70% 50% at 90% 0%, rgba(184, 155, 106, 0.16), transparent 60%),
    var(--paper);
}
.account-inner { max-width: 720px; }
.account h1 { margin-top: 0.8rem; font-size: clamp(2rem, 4vw, 3rem); }
.account-lead { margin-top: 0.8rem; color: var(--tx-2); max-width: 34em; }
.account-card {
  margin-top: 2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
}
.account-card h2 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.account-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}
.account-dl dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 0.3rem;
}
.account-dl dd { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

/* ----------------------------- Utilities -------------------------------- */
.center { text-align: center; }
.mt-s { margin-top: 1rem; }
.hide { display: none !important; }
.only-mobile { display: none; }
.flower-svg { display: block; }

/* ---------------------------- Responsivo -------------------------------- */
@media (max-width: 1024px) {
  .method-grid .m-card.span-7, .method-grid .m-card.span-5,
  .method-grid .m-card.span-4, .method-grid .m-card.span-8 { grid-column: span 6; }
  .testi-masonry { columns: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .kai-cta-grid,
  .place-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn, .nav-entrar, .nav-cta .nav-sair { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gut); right: var(--gut);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: var(--r-lg);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-brd);
    box-shadow: var(--sh-2);
  }
  .nav.open .nav-links a { padding: 0.7rem 0.5rem; }
  .nav.open .nav-links .only-mobile { display: block; border-top: 1px solid var(--line); margin-top: 0.2rem; padding-top: 0.9rem; font-weight: 600; color: var(--ink); }
  .nav.open .nav-links .nav-sair { width: 100%; padding: 0.7rem 0.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-top: 1rem; }
  .audience-grid,
  .pricing-grid,
  .cert-grid,
  .teacher-grid,
  .trava-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .trava-grid { gap: 1rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  /* Sem o painel escuro, a logo volta a ser escura sobre o fundo claro */
  .brand-logo--light { filter: none; }
  .place-aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
    padding: 1.3rem 1.4rem;
  }
  .place-aside .kai-avatar-lg { width: 72px; height: 72px; }
  .place-aside-kicker { margin-top: 0; }
  .place-aside-name { font-size: 1.8rem; }
  .place-aside-lead { display: none; }
  .place-steps {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 0.6rem;
    gap: 0.4rem;
  }
  .place-steps li { font-size: var(--fs-xs); }
  .place-level-score { margin-left: 0; }
}

@media (max-width: 600px) {
  .account-dl { grid-template-columns: 1fr; }
  .pw-rules { grid-template-columns: 1fr; }
  .field .otp-row input { width: 2.35rem; height: 2.8rem; font-size: 1.15rem; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid .m-card { grid-column: span 1 !important; }
  .testi-masonry { columns: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .float-card.fc-1 { left: 0; }
  .float-card.fc-2 { right: 0; }
  .place-steps { grid-template-columns: 1fr 1fr; }
  .kai-speech { font-size: 1.12rem; }
  .share-block { flex-direction: column; align-items: flex-start; }
  .share-phone { width: min(200px, 58vw); }
  .share-actions .btn { width: 100%; }
}
