/* ion Formação: pré-cadastro. Ver DESIGN.md para tokens e componentes. */

:root {
    --bg: #041629;
    --card: #0a2340;
    --card-2: #0f3058;
    --line: rgba(255, 255, 255, .12);
    --navy: #072C54;
    --navy-600: #1a4c8b;
    --paper: #f6f8fc;
    --ink: #ffffff;
    --ink-soft: rgba(255, 255, 255, .72);
    --navy-soft: #4b6484;
    --accent: #C3613F;
    --accent-hover: #A94F30;
    --accent-soft: #F2A183;
    --danger: #ff9b9b;

    --font-display: 'Outfit', 'Poppins', system-ui, sans-serif;
    --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-wide: 'Unbounded', 'Outfit', sans-serif;

    --r-panel: 36px;
    --r-card: 26px;
    --r-field: 14px;
    --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 8px; }

/* ---------- Ornamentos ---------- */
.spark { display: inline-block; width: 22px; height: 22px; flex: none; background: var(--accent); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.2;
    padding: 1rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(195, 97, 63, .32); }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--dark { background: var(--bg); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: var(--accent-soft); }
.btn--sm { padding: .6rem 1.15rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Título com chip ---------- */
.chip-word { display: inline; background: var(--accent); color: #fff; padding: 0 .26em .06em; border-radius: .28em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flow-root; background: var(--bg); color: var(--ink); z-index: 2; }

.nav { position: relative; z-index: 5; background: var(--bg); color: #fff; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.nav__logo { display: block; line-height: 0; }
.nav__logo img { height: 42px; width: auto; }

.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; padding-block: 56px 32px; }

.hero__copy { text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.9rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.24; color: var(--ink); }
.hero h1 .chip-word { font-weight: 600; }
.hero__sub { max-width: 30em; margin: 1.5rem auto 0; font-size: 1.08rem; color: var(--ink-soft); }

/* Foto da Ionara no hero */
.hero__photo-frame { position: relative; z-index: 1; width: 100%; margin: 8px 0 0; }
.hero__ring { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero__ring--a { width: 60%; aspect-ratio: 1; right: -14%; top: -12%; border: 1.5px solid var(--accent-soft); opacity: .6; }
.hero__ring--b { width: 46%; aspect-ratio: 1; left: -12%; bottom: -10%; border: 1.5px dashed rgba(255, 255, 255, .25); opacity: .7; }
.hero__photo {
    position: relative; z-index: 1; margin: 0; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden;
    background: linear-gradient(160deg, #eef1f7, #dfe6f2); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.mockup-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; gap: 10px; text-align: center;
    border: 1.5px dashed var(--accent-soft); color: var(--accent-soft); font-size: .9rem;
}
.mockup-placeholder i { font-size: 2.4rem; }
.hero__seal {
    position: absolute; left: -10px; bottom: -14px; z-index: 2; display: flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 8px; background: #fff; border-radius: 999px; box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}
.hero__seal i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; }
.hero__seal-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero__seal-text strong { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--navy); white-space: nowrap; }
.hero__seal-text small { font-size: .7rem; color: var(--navy-soft); }

/* Cartão de cadastro do hero */
.signup { position: relative; z-index: 3; }
.signup__box {
    position: relative; padding: 28px 26px 24px; border-radius: var(--r-panel); color: #fff;
    background: linear-gradient(160deg, var(--card-2), var(--card) 60%);
    border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(2, 12, 26, .38);
}

.signup__cta { display: grid; gap: 6px; }
.signup__cta[hidden] { display: none; }
.signup__cta-title { font-size: 1.35rem; font-weight: 500; margin: 0; color: #fff; }
.signup__cta-sub { margin: 0 0 10px; font-size: .92rem; color: var(--ink-soft); }
.signup__form-wrap[hidden] { display: none; }

/* ---------- Formulário ---------- */
.lead-form { display: grid; gap: 4px 14px; }
.lead-form__title { font-size: 1.45rem; font-weight: 500; margin-bottom: .9rem; }
.field { margin-bottom: .6rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.field input {
    width: 100%; height: 52px; padding: 0 1.1rem; font: inherit; font-size: .98rem; color: #fff;
    background: rgba(4, 22, 41, .72); border: 1.5px solid var(--line); border-radius: var(--r-field);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: rgba(255, 255, 255, .38); }
.field input:hover { border-color: rgba(255, 255, 255, .3); }
.field input:focus { outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 4px rgba(242, 161, 131, .18); background: var(--bg); }
.field.has-error input { border-color: var(--danger); }
.field__error { margin-top: .3rem; font-size: .78rem; color: var(--danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__status { font-size: .9rem; color: var(--danger); margin-bottom: .4rem; }
.lead-form__status:empty { display: none; }
.lead-form .btn { height: 52px; }
.lead-form__legal { margin-top: .7rem; font-size: .74rem; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.lead-form__legal a { color: var(--accent-soft); }

/* ---------- Seções escuras ---------- */
.section { padding: 84px 0; }
.head { display: grid; gap: 18px; align-items: end; }
.head h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.head p { color: var(--ink-soft); max-width: 30em; }

/* Painel com aba vertical (dores) */
.panel { position: relative; border-radius: var(--r-panel); background: var(--card); border: 1px solid var(--line); padding: 34px 20px 22px; }
.vtab { display: none; position: absolute; left: 0; top: 48px; padding: 18px 9px; border-radius: 0 12px 12px 0; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.panel__grid { display: grid; gap: 26px; }
.panel h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.panel__label { display: inline-block; margin-bottom: 1rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }

.rows { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 22px; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 999px; }
.row__n { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--accent-soft); }
.row h3 { flex: 1; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.row__go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); font-size: .8rem; }

.side { display: grid; gap: 14px; align-content: start; }
.tile { border-radius: var(--r-card); padding: 30px 26px; }
.tile--accent { position: relative; background: var(--accent); color: #fff; }
.tile__kicker { margin: 0 0 1rem; font-size: .95rem; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.tile__lead { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.32; letter-spacing: -.01em; }
.tile__lead strong { font-weight: 600; }
.go-round { display: grid; place-items: center; width: 52px; height: 52px; margin: 1.5rem 0 0 auto; border-radius: 50%; background: #fff; color: var(--accent); font-size: 1.1rem; text-decoration: none; transition: transform .2s; }
.go-round:hover { transform: rotate(-45deg); }

/* ---------- Fita inclinada ---------- */
.ribbon-wrap { padding: 30px 0 44px; overflow: hidden; }
.ribbon { transform: rotate(-1.6deg); margin-inline: -20px; background: #fff; color: var(--navy); padding: 20px 0; overflow: hidden; }
.ribbon__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: slide 34s linear infinite; padding-left: 30px; }
.ribbon__track span { font-family: var(--font-wide); font-weight: 700; font-size: clamp(1.05rem, 3vw, 1.7rem); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Quem ensina ---------- */
.teacher__grid { display: grid; gap: 30px; margin-top: 38px; }
.teacher__photo { margin: 0; width: 100%; max-width: 460px; justify-self: center; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.teacher__body h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.teacher__role { margin-top: .4rem; font-size: .95rem; font-weight: 600; color: var(--accent-soft); }
.teacher__short { margin-top: .9rem; color: var(--ink-soft); font-size: 1.02rem; }
.creds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 10px; }
.cred { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 22px; background: var(--paper); color: var(--navy); font-size: .88rem; line-height: 1.45; }
.cred i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .9rem; }
.cred b { display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin-bottom: 2px; }
.cred span { color: #3c5678; }

.more { margin-top: 1.4rem; }
.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .85rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary i { font-size: .7rem; transition: transform .25s; color: var(--accent-soft); }
.more[open] summary i { transform: rotate(180deg); }
.more p { margin-top: .9rem; font-size: .93rem; color: var(--ink-soft); }
.quote { margin: 1.6rem 0 0; padding: 22px 24px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; letter-spacing: -.01em; }

/* ---------- Urgência: barra de números ---------- */
.bar { display: grid; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-card); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); overflow: hidden; }
.bar__cell { padding: 26px 24px; text-align: center; border-bottom: 1px solid var(--line); }
.bar__cell:last-child { border-bottom: 0; }
.bar__big { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
.bar__cap { display: block; margin-top: .3rem; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Bloco final (terracota) ---------- */
.final { padding: 40px 0 96px; }
.final__box { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--accent); color: #fff; padding: 44px 22px 26px; display: grid; gap: 30px; }
.final__copy, .final__form { position: relative; z-index: 1; }
.final__label {
    display: inline-flex; align-items: center; margin-bottom: 1.1rem; padding: .4rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.final__copy h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.final__copy p:last-child { margin-top: 1.1rem; max-width: 30em; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.final .lead-form__title { color: #fff; }
.final .field label { color: rgba(255, 255, 255, .9); }
.final .field input { background: var(--bg); border-color: transparent; }
.final .field input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.final .field.has-error input { border-color: #ffd4d4; }
.final .field__error, .final .lead-form__status { color: #fff; font-weight: 500; }
.final .lead-form__legal { color: rgba(255, 255, 255, .85); }
.final .lead-form__legal a { color: #fff; }

/* ---------- Rodapé ---------- */
.footer { padding: 30px 0 100px; font-size: .84rem; color: rgba(255, 255, 255, .6); border-top: 1px solid var(--line); }
.footer__in { display: grid; gap: 14px; justify-items: start; }
.footer img { height: 34px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; }
.footer nav a:hover { color: var(--accent-soft); }

/* ---------- Barra fixa (celular) ---------- */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(4, 22, 41, 0), rgba(4, 22, 41, .96) 40%); transform: translateY(110%); transition: transform .3s ease; pointer-events: none; }
.sticky-cta.is-visible { transform: none; pointer-events: auto; }

/* ---------- Obrigado / política ---------- */
.simple { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); text-align: center; background: radial-gradient(700px 420px at 50% 0, rgba(195, 97, 63, .22), transparent 65%), var(--bg); }
.simple__box { max-width: 560px; }
.brand { display: inline-block; line-height: 0; }
.brand img { height: 46px; width: auto; }
.simple .brand { margin-bottom: 2.4rem; }
.simple .brand img { height: 56px; }
.simple__check { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 2.2rem; }
.simple h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.simple p { color: var(--ink-soft); font-size: 1.08rem; }
.simple .btn { margin-top: 1.8rem; }

.legal { background: var(--paper); color: var(--navy); min-height: 100vh; padding: 60px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; margin: 1.6rem 0 .6rem; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 2rem 0 .5rem; }
.legal p { margin-top: .6rem; color: #2c4466; }
.legal a { color: var(--accent); }

/* ---------- Entrada suave ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Telas maiores ---------- */
@media (min-width: 768px) {
    :root { --gutter: 32px; }
    .signup__box { padding: 32px 34px 26px; }
    .head { grid-template-columns: 1.3fr 1fr; gap: 56px; }
    .panel { padding: 60px 40px 40px 72px; }
    .vtab { display: block; }
    .panel__grid { grid-template-columns: 1.25fr 1fr; gap: 44px; }
    .creds { grid-template-columns: 1fr 1fr; }
    .cred:last-child { grid-column: 1 / -1; }
    .bar { grid-template-columns: repeat(3, 1fr); }
    .bar__cell { border-bottom: 0; border-right: 1px solid var(--line); }
    .bar__cell:last-child { border-right: 0; }
    .final__box { padding: 56px 48px 40px; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .footer__in { grid-template-columns: auto 1fr auto; align-items: center; }
    .footer nav { justify-self: end; }
    .sticky-cta { display: none; }
    .footer { padding-bottom: 32px; }
}
@media (min-width: 992px) {
    .section { padding: 110px 0; }
    .teacher__grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
    .hero__grid {
        grid-template-columns: 1.05fr .95fr; column-gap: 48px; row-gap: 32px; padding-block: 76px 88px;
        grid-template-areas: "copy photo" "signup photo";
    }
    .hero__copy { grid-area: copy; text-align: left; }
    .hero__sub { margin-inline: 0; }
    .signup { grid-area: signup; align-self: start; }
    .hero__photo-frame { grid-area: photo; align-self: center; justify-self: end; width: min(92%, 420px); margin-right: -36px; }
    .hero h1 { font-size: clamp(2.8rem, 4.2vw, 3.6rem); line-height: 1.24; }
    .final { padding-bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Ajustes de navegação e espaçamento ---------- */
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: .8rem; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav__link:hover { color: #fff; }
.hide-sm { display: none; }
.head + .panel { margin-top: 48px; }
@media (min-width: 768px) {
    .hide-sm { display: inline; }
    .panel__label { display: none; }
    .head + .panel { margin-top: 64px; }
}
