/* Teacher Romulo: mesma marca da After Class. Branco e cinza quente, o bordô do selo (#741C21)
   suavizado em rosa (#E2A4A9) para botões e destaques, o creme do selo (#F0D4B0) para avisos.
   Inter Tight nos títulos, Inter no resto, Cinzel só no nome. Botões com contorno escuro. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/inter-tight-latin.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/cinzel-700-latin.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f1ef;
  --ink: #1f1718;
  --muted: #6b5f60;
  --line: #e6dedc;
  --brand: #741c21;
  --primary: #a9545b;
  --primary-strong: #7f3439;
  --rose: #e2a4a9;
  --rose-hover: #d8949a;
  --rose-soft: #f6dadc;
  --rose-line: #c9767d;
  --accent-soft: #fcf2e4;
  --cream-line: #ecd6b6;
  --good: #2f7d55;
  --good-soft: #e0f3e8;
  --bad: #c2453a;
  --bad-soft: #fde6e2;
  --radius: 8px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  color-scheme: light;
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.1; }
h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); letter-spacing: -0.02em; }
h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--primary); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- topo ---------- */

/* Nome em cima e selo embaixo, centralizados. Mais alto que uma barra comum, então rola junto com a página. */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 960px; margin: 0 auto; padding: 16px 16px 14px; display: flex; justify-content: center; }
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.seal { display: block; border-radius: 50%; object-fit: cover; }
.lockup .seal { width: 64px; height: 64px; }
.wordmark { white-space: nowrap; font-family: var(--font-brand); font-weight: 700; letter-spacing: 0.04em; line-height: 1; color: var(--brand); }
.lockup .wordmark { font-size: 1.45rem; }
@media (max-width: 420px) {
  .lockup { gap: 8px; }
  .lockup .seal { width: 56px; height: 56px; }
  .lockup .wordmark { font-size: 1.3rem; }
}

/* ---------- botões e chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--ink);
  background: var(--rose); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:hover { background: var(--rose-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }
.btn.big { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn.secondary { background: #fff; }
.btn.secondary:hover { background: var(--surface-2); }

.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 6px; background: var(--surface-2); font-size: 0.85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip.primary { background: #fff; color: var(--primary-strong); }

/* ---------- apresentação ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--rose-soft); border-bottom: 1px solid #efc9cc; }
.hero-inner { max-width: 1040px; margin: 0 auto; padding: 40px 16px 300px; display: grid; gap: 16px; }

/* Fundo do topo: as fotos espalhadas atrás de tudo, inclinadas e desfocadas, como fotos sobre a mesa.
   A da montanha é a maior e a mais visível. Um véu rosa por cima suaviza o conjunto. No computador,
   ao rolar, cada foto anda num ritmo (data-p no HTML, script.js), dando a sensação de camadas. */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgb(246 218 220 / 62%), rgb(246 218 220 / 28%)); }
.bg { position: absolute; display: block; height: auto; border-radius: 16px; filter: blur(3px); opacity: 0.6; box-shadow: 0 12px 32px rgb(31 23 24 / 20%); }
.bg-0 { z-index: 1; width: 86%; bottom: 2%; left: 7%; transform: rotate(-2deg); filter: blur(1.5px); opacity: 0.95; }
.bg-1 { width: 78%; top: -2%; right: -30%; transform: rotate(5deg); }
.bg-2 { width: 46%; top: 22%; left: -22%; transform: rotate(-6deg); }
.bg-3 { width: 70%; top: 40%; right: -34%; transform: rotate(-4deg); }
.bg-4 { width: 40%; bottom: 8%; left: -18%; transform: rotate(5deg); }
/* O texto e o "Como eu ensino" ficam em cartões claros, por cima do fundo. */
.hero-text, .hero-method { background: rgb(255 255 255 / 84%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 14px; padding: 22px 18px; box-shadow: 0 10px 30px rgb(31 23 24 / 14%); }
.hero-text .chip { background: var(--rose-soft); }

@media (min-width: 760px) {
  .hero-inner { padding: 72px 24px 80px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 28px; }
  .hero-text { justify-items: stretch; padding: 30px 28px; }
  .hero-method { padding: 26px 24px; }
  .hero-text .chip { justify-self: start; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .hero-bg::after { background: radial-gradient(ellipse 60% 80% at 24% 50%, rgb(246 218 220 / 80%), rgb(246 218 220 / 40%) 70%, rgb(246 218 220 / 22%)); }
  .bg { filter: blur(4px); }
  .bg-0 { width: auto; height: 90%; aspect-ratio: 3 / 4; top: 5%; bottom: auto; left: auto; right: 4%; transform: rotate(3deg); filter: blur(1.5px); }
  .bg-1 { width: 34%; top: -8%; left: -5%; right: auto; }
  .bg-2 { width: 15%; top: -10%; left: 40%; transform: rotate(6deg); }
  .bg-3 { width: 32%; top: auto; bottom: -12%; left: 22%; right: auto; }
  .bg-4 { width: 16%; bottom: -10%; left: -3%; transform: rotate(-5deg); }
}
.hero-text { display: grid; gap: 16px; justify-items: start; }
.lead { font-size: 1.1rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Como eu ensino, no topo: só os títulos; cada um abre ao tocar. O primeiro é o principal. */
.hero-method { display: grid; gap: 12px; align-content: start; }
.hero-method h2 { font-size: 1.35rem; }
.method-list { display: grid; gap: 8px; margin-top: 4px; }
.method-list details { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.method-list details[open] { border-color: var(--rose-line); }
.method-list .destaque { border: 2px solid var(--ink); }
.method-list summary { list-style: none; cursor: pointer; min-height: 58px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 12px; }
.method-list summary::-webkit-details-marker { display: none; }
.method-list summary::after { content: "+"; flex: none; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--primary-strong); }
.method-list details[open] summary::after { content: "−"; }
.method-list summary b { display: block; font-family: var(--font-head); font-size: 1rem; letter-spacing: -0.01em; line-height: 1.25; }
.method-list summary small { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 5px; background: var(--rose-soft); color: var(--primary-strong); font-size: 0.75rem; font-weight: 600; }
.method-list details p { padding: 0 14px 14px 58px; color: var(--muted); }
@media (max-width: 419px) { .method-list details p { padding-left: 14px; } }
@media (max-width: 559px) { .hero-text { justify-items: stretch; } .hero-text .chip { justify-self: start; } .cta-row .btn { flex: 1 1 100%; } }


/* ---------- corpo ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; display: grid; gap: 44px; }
.section { display: grid; gap: 18px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .features li:last-child { grid-column: 1 / -1; } }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features p { color: var(--muted); margin-top: 2px; }
.icon { flex: none; width: 42px; height: 42px; border-radius: 8px; background: var(--rose-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary-strong); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.about { display: grid; gap: 12px; background: var(--surface-2); border-color: transparent; padding: 22px 20px; }
.about-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.about-head .photo { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rose); }
@media (min-width: 620px) { .about-head .photo { width: 104px; height: 104px; } }
.about-head .wordmark { font-size: 1.2rem; }
.about-head p { font-size: 0.9rem; margin-top: 4px; }
/* Fatos do professor: bandeiras e números em cartõezinhos, para ler de relance. */
.facts { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; }
.facts .flag { flex: none; font-size: 1.5rem; line-height: 1; }
.facts b { display: block; font-family: var(--font-head); font-size: 0.98rem; letter-spacing: -0.01em; line-height: 1.2; }
.facts span:not(.flag) { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
/* No celular a bandeira sobe, para o texto caber na largura do cartãozinho. */
@media (max-width: 479px) {
  .facts li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .facts b { font-size: 0.92rem; }
}
.insta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-weight: 600; color: var(--primary-strong); text-decoration: none; }
.insta:hover span:last-child { text-decoration: underline; }
.icon.small { width: 36px; height: 36px; }
.icon.small svg { width: 21px; height: 21px; }


.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--rose); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.steps b { display: block; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: -0.015em; }
.steps span { color: var(--muted); }

/* Perguntas frequentes: abre e fecha sem script. */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--rose-line); }
.faq summary { list-style: none; cursor: pointer; min-height: 52px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--primary-strong); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

/* ---------- formulário ---------- */

.form-card { padding: 24px 18px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
@media (min-width: 620px) { .form-card { padding: 32px; } }
.form-card .intro { margin: 6px 0 22px; }
form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.hint { font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-left: 4px; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--ink); outline: none; }
.field.invalid .input, .input.invalid { border-color: var(--bad); }
.field.invalid legend, .field.invalid > label { color: var(--bad); }
#objetivo-outro { margin-top: 4px; }

/* País do WhatsApp: o select nativo fica invisível por cima, e aparece só a bandeira com o código. */
.phone { display: flex; gap: 8px; }
.phone .input { flex: 1; min-width: 0; }
.ddi { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 10px 0 12px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); font-weight: 500; white-space: nowrap; }
.ddi:hover { border-color: var(--rose-line); }
.ddi:focus-within { border-color: var(--ink); }
.ddi:has(select:focus-visible) { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.ddi select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.caret { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); font-weight: 500; transition: background 0.15s ease, border-color 0.15s ease; }
.opt:hover span { border-color: var(--rose-line); }
.opt input:checked + span { background: var(--rose-soft); border-color: var(--ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

.status:empty { display: none; }
.status { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 10px 14px; font-weight: 500; }

.done { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 16px 0; }
.done:focus { outline: none; }
.done .seal { width: 72px; height: 72px; }
.done p { max-width: 28em; }

/* ---------- rodapé ---------- */

/* Botão do WhatsApp que acompanha a rolagem. O rodapé ganha espaço embaixo para o botão não cobrir o texto. */
.whats-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 4px 14px rgb(0 0 0 / 22%); transition: transform 0.15s ease; }
.whats-float:hover { transform: scale(1.06); }
.whats-float svg { width: 32px; height: 32px; fill: #fff; }
@media (min-width: 760px) { .whats-float { right: 24px; bottom: 24px; } }

.site-footer { border-top: 1px solid var(--line); padding: 28px 16px 96px; text-align: center; color: var(--muted); font-size: 0.9rem; display: grid; gap: 6px; }
.site-footer .wordmark { font-size: 1.1rem; }
/* Instagram no fim da página: o ícone e o nome juntos são o link. */
.insta-rodape { justify-self: center; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.insta-rodape:hover .wordmark { text-decoration: underline; }
