/* Minha Primeira IA: site comercial (v2, tom mais humano)
   Papel branco, tinta azul-marinho, violeta só como destaque. Coluna de leitura estreita, como uma carta. */
:root {
  --paper: #ffffff;
  --paper-2: #f6f5fb;
  --ink: #141a46;
  --text: #33395c;
  --muted: #6b7091;
  --line: #e4e2ee;
  --violet: #6a3fe0;
  --violet-soft: #efeafd;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 19px; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--violet); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.section { padding-block: 80px; }
.section + .section { border-top: 1px solid var(--line); }
.tint { background: var(--paper-2); border-top: 0 !important; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 21px; color: var(--text); }
.hand { font-family: var(--font-hand); color: var(--violet); font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 17px; text-decoration: none; border-radius: 10px; padding: 14px 22px; border: 0; cursor: pointer; background: var(--ink); color: #fff; }
.btn:hover { background: var(--violet); }
.btn.light { background: transparent; color: var(--ink); padding-inline: 4px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.btn.light:hover { background: transparent; color: var(--violet); }

/* Cabeçalho */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 16px; }
.nav-links a:hover { color: var(--violet); }
.nav-links .btn { color: #fff; padding: 9px 16px; font-size: 15px; }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

/* Abertura */
.hero .wrap { padding-block: 72px 80px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 span { color: var(--violet); }
.hero .stack { gap: 26px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.note-card { background: var(--paper-2); border-radius: 14px; padding: 24px; font-size: 17px; display: flex; flex-direction: column; gap: 10px; transform: rotate(1.2deg); }
.note-card b { font-family: var(--font-head); color: var(--ink); font-size: 15px; }
.note-card .hand { font-size: 26px; line-height: 1.1; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; } .note-card { transform: none; } }

/* Carta */
.letter p + p { margin-top: 18px; }
.sign { margin-top: 26px; display: flex; flex-direction: column; }
.sign .hand { font-size: 34px; line-height: 1; }
.sign small { color: var(--muted); font-size: 15px; }
.pull { font-family: var(--font-head); font-size: 24px; color: var(--ink); font-weight: 600; line-height: 1.35; border-left: 3px solid var(--violet); padding-left: 18px; margin: 28px 0; }

/* Meses */
.months { list-style: none; margin: 36px 0 0; padding: 0; columns: 2; column-gap: 48px; }
.months li { break-inside: avoid; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.months small { font-family: var(--font-head); font-weight: 700; color: var(--violet); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.months b { color: var(--ink); font-weight: 600; display: block; }
.months span { font-size: 16px; color: var(--muted); }
@media (max-width: 720px) { .months { columns: 1; } }

/* Construir */
.builds { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; margin-top: 36px; }
.builds > div { display: flex; flex-direction: column; gap: 6px; }
.builds p { font-size: 17px; }
@media (max-width: 720px) { .builds { grid-template-columns: 1fr; } }
.small-note { margin-top: 28px; font-size: 16px; color: var(--muted); }

/* Escola */
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.how dl { margin: 0; display: grid; gap: 22px; }
.how dt { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 19px; }
.how dd { margin: 4px 0 0; font-size: 17px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 32px; } }

/* Professor */
.teacher { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.avatar { width: 200px; height: 200px; border-radius: 16px; background: var(--violet-soft); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 56px; color: var(--violet); object-fit: cover; }
.teacher ul { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
@media (max-width: 640px) { .teacher { grid-template-columns: 1fr; gap: 24px; } .avatar { width: 140px; height: 140px; font-size: 40px; } }

/* Perguntas */
.faq { display: flex; flex-direction: column; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; font-size: 17px; }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact .direct { margin-top: 8px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 17px; }
.contact .direct b { color: var(--ink); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.lead .full { grid-column: 1 / -1; }
form.lead label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); min-width: 0; }
form.lead input, form.lead select, form.lead textarea { font: inherit; font-weight: 400; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid #d6d3e4; border-radius: 10px; padding: 11px 13px; width: 100%; }
form.lead textarea { min-height: 110px; resize: vertical; }
form.lead .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; color: var(--text); }
form.lead .consent input { width: auto; margin-top: 5px; }
form.lead button { justify-self: start; }
.hidden-field { position: absolute; left: -9999px; }
@media (max-width: 560px) { form.lead { grid-template-columns: 1fr; } }

/* Rodapé */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 20px; }

/* Páginas de texto */
.doc { max-width: 720px; padding-block: 56px 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.thanks .wrap { max-width: 640px; padding-block: 96px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.thanks h1 { font-size: clamp(32px, 5vw, 46px); }
.direct b { white-space: nowrap; }

/* ---- Imagens (v3) ---- */
.hero { background-image: radial-gradient(circle at 1px 1px, #e3dcf8 1.2px, transparent 0); background-size: 22px 22px; }
.hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); }
.hero-note { font-size: 16px; color: var(--muted); }
.hero-note .hand { font-size: 24px; margin-right: 6px; }
.device { margin: 0; position: relative; background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(20, 26, 70, .45), 0 0 0 1px var(--line); min-width: 0; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2dfee; }
.device-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 320px; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.app-side b { font-family: var(--font-head); color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.app-side .on { color: var(--violet); font-weight: 600; background: var(--violet-soft); border-radius: 6px; padding: 4px 8px; margin-inline: -8px; }
.app-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.video { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #2b1f7a, #6a3fe0 60%, #b06ae8); color: #fff; display: flex; align-items: flex-end; }
.video::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, transparent 0); background-size: 14px 14px; }
.play { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -30px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.95); }
.play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 15px solid var(--violet); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video-meta { position: relative; padding: 10px 12px; display: flex; flex-direction: column; font-size: 12px; width: 100%; background: linear-gradient(transparent, rgba(10, 8, 40, .55)); }
.video-meta small { opacity: .85; }
.video-meta b { font-family: var(--font-head); font-size: 15px; }
.video-meta span { opacity: .8; }
.trail-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.trail-row b { color: var(--ink); }
.dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 6px; }
.dots i { height: 6px; border-radius: 3px; background: #ebe8f4; }
.dots .d { background: var(--violet); }
.dots .c { background: #b9a5f5; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shelf div { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text); min-width: 0; }
.shelf em { display: block; aspect-ratio: 16 / 10; border-radius: 6px; }
.shelf .t1 { background: linear-gradient(135deg, #dcf3e8, #7cc9a5); }
.shelf .t2 { background: linear-gradient(135deg, #e2eafc, #7fa0f0); }
.shelf .t3 { background: linear-gradient(135deg, #fde9d6, #f0a868); }
.chat { position: absolute; right: -18px; bottom: -34px; width: min(250px, 72%); background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13px; box-shadow: 0 20px 40px -20px rgba(20, 26, 70, .6); display: flex; flex-direction: column; gap: 6px; }
.chat b { font-family: var(--font-head); font-size: 12px; color: #c9b8ff; }
.chat p { margin: 0; padding: 7px 10px; border-radius: 10px; line-height: 1.35; }
.chat .me { background: rgba(255,255,255,.12); align-self: flex-end; }
.chat .bot { background: var(--violet); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .device { margin-bottom: 30px; } }
@media (max-width: 520px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } .chat { right: 8px; bottom: -40px; } }

.evo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 40px; }
.evo div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 12px; background: var(--paper-2); }
.evo svg { width: 34px; height: 34px; fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 6px; }
.evo b { font-family: var(--font-head); color: var(--ink); font-size: 15px; line-height: 1.2; }
.evo span { font-size: 13px; color: var(--muted); }
.evo .now { background: var(--violet); }
.evo .now svg { stroke: none; fill: #fff; }
.evo .now b, .evo .now span { color: #fff; }
@media (max-width: 560px) { .evo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ill { height: 150px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; padding: 16px; margin-bottom: 10px; overflow: hidden; }
.ill-chat { width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ill-chat p { margin: 0; padding: 8px 12px; border-radius: 12px; line-height: 1.35; }
.ill-chat .q { background: #fff; align-self: flex-end; border: 1px solid var(--line); }
.ill-chat .a { background: var(--violet); color: #fff; align-self: flex-start; }
.ill-phone { width: 140px; background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; box-shadow: 0 10px 20px -14px rgba(20,26,70,.4); }
.ill-phone b { font-family: var(--font-head); color: var(--ink); font-size: 14px; }
.ill-phone span { padding: 5px 8px; border-radius: 6px; background: var(--paper-2); }
.ill-phone .ok { background: #dcf3e8; text-decoration: line-through; color: #2f7a55; }
.ill-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 12px; }
.ill-flow span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 600; color: var(--ink); }
.ill-flow i { width: 18px; height: 2px; background: var(--violet); position: relative; }
.ill-flow i::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 6px solid var(--violet); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ill-chart { width: 100%; max-width: 260px; height: 110px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 2px solid var(--line); }
.ill-chart i { flex: 1; background: #cbbdf5; border-radius: 4px 4px 0 0; }
.ill-chart .hi { background: var(--violet); }

.dash { margin: 12px 0 0; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 20px 40px -26px rgba(20,26,70,.45), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; }
.dash-head b { font-family: var(--font-head); color: var(--ink); }
.dash-head span { color: var(--muted); font-size: 13px; }
.dash-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 40px; gap: 10px; align-items: center; }
.dash-row i { height: 8px; border-radius: 4px; background: #ebe8f4; overflow: hidden; }
.dash-row em { display: block; height: 100%; background: var(--violet); border-radius: 4px; }
.dash-row small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-row.warn em { background: #e0703c; }
.dash-row.warn small { color: #c2562a; font-weight: 600; }
.dash-alert { margin: 4px 0 0; font-size: 13px; color: #c2562a; background: #fdeee6; border-radius: 8px; padding: 8px 10px; }
.ill { height: 180px; }
.ill-chart i { flex: 0 0 26px; display: block; }
.ill-chart { justify-content: center; }
.ill-flow { flex-wrap: nowrap; gap: 4px; }
.ill-flow span { padding: 7px 8px; white-space: nowrap; font-size: 11px; }
.ill-flow i { flex: 0 0 14px; }
.nav-links .btn { white-space: nowrap; }
@media (max-width: 420px) { .logo span { font-size: 16px; } .nav-links .btn { padding: 8px 12px; font-size: 14px; } }
