@font-face{font-family:Archivo;src:url("archivo.woff2") format("woff2");font-display:swap;font-weight:400 900}
@font-face{font-family:Inter;src:url("inter.woff2") format("woff2");font-display:swap;font-weight:400 700}

:root {
    color-scheme: dark;
    --bg: #0d1015;
    --panel: #151a22;
    --raised: #1c232e;
    --text: #f4f1eb;
    --muted: #b5bbc6;
    --faint: #929baa;
    --line: #2d3644;
    --gold: #ffc378;
    --gold-bright: #ffd198;
    --radius: 16px;
    --shell: min(1200px, 100% - 80px);
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: Archivo, system-ui, sans-serif; line-height: 1.05; }
p { color: var(--muted); }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: absolute; z-index: 10; padding: 8px 18px; background: var(--gold); color: #170f07; transform: translateY(-140%); }
.skip:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }

.top { border-bottom: 1px solid #242b36; }
.top-inner, .footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; color: #fff9ef; }
.brand img { display: block; }
.brand span { display: grid; gap: 2px; line-height: 1; }
.brand strong { font-family: Archivo, system-ui, sans-serif; font-size: 14px; font-weight: 900; letter-spacing: .11em; }
.brand small { font-size: 9px; font-weight: 700; letter-spacing: .32em; color: #c9bfad; }
.site-nav, .top-actions { display: flex; align-items: center; gap: clamp(12px, 2.7vw, 38px); }
.site-nav a, .top-link { font-weight: 600; font-size: .87rem; color: var(--muted); white-space: nowrap; }
.site-nav a:hover, .top-link:hover { color: var(--text); }
button.top-link { border: 0; background: transparent; padding: 0; }
.top-actions { gap: 18px; }
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 49px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 12px 21px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: background .18s, border-color .18s;
}
.btn.primary { background: var(--gold); color: #17110a; border-color: #ffd29c; }
.btn.primary:hover { background: var(--gold-bright); }
.btn.outline { border-color: #424e5f; color: var(--text); background: #18202a; }
.btn.outline:hover { border-color: #768498; background: #232d3a; }
.btn.compact { padding: 8px 13px; min-height: 39px; font-size: .84rem; }
.btn.fit, .fit { width: fit-content; }
.text-action { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.text-action:hover { color: var(--gold); }
.text-action span { color: var(--gold); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}
.eyebrow i { height: 6px; width: 6px; flex: 0 0 6px; background: var(--gold); border-radius: 50%; }
.section { padding-block: 57px; }
.section-head { display: grid; gap: 12px; margin-bottom: 27px; max-width: 680px; }
.section-head h2 { font-size: clamp(2.25rem, 4.2vw, 3.77rem); font-weight: 850; letter-spacing: -.048em; text-wrap: balance; }
.section-head p { max-width: 620px; }
.video { position: relative; aspect-ratio: 16 / 9; align-self: start; width: 100%; background: #080b10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video iframe { display: block; width: 100%; height: 100%; border: none; }
.offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 19px;
    padding: clamp(21px, 4vw, 40px);
    background: linear-gradient(116deg, #271d1b, #171b24 62%);
    border: 1px solid #614a35;
    border-radius: var(--radius);
}
.offer h2 { font-size: clamp(1.45rem, 3vw, 2.54rem); letter-spacing: -.025em; margin-block: 6px; }
.offer p { font-size: .85rem; }
.offer-action { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; flex-shrink: 0; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.price-row del { color: var(--muted); font-weight: 600; }
.price-row strong { font-family: Archivo, system-ui, sans-serif; color: var(--gold); font-size: clamp(2rem, 3vw, 3.3rem); line-height: 1.05; letter-spacing: -.045em; }
.curriculum { border-top: 1px solid var(--line); background: #10151c; padding-bottom: 72px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic { background: var(--panel); border: 1px solid var(--line); min-height: 174px; border-radius: 12px; padding: 22px; }
.topic-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 9px; border: 1px solid #684e32; background: #25201c; color: var(--gold); }
.topic h3 { font-size: 1.26rem; margin-block: 13px 7px; }
.topic p { font-size: .89rem; }
.footer { border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; }
.footer-inner { min-height: 85px; }

.inner { padding-block: 55px 80px; }
.inner.login, .inner.cadastro, .inner.privacidade { max-width: 480px; }
.inner.install { max-width: 760px; }
.heading { display: grid; gap: 12px; margin-bottom: 25px; }
.heading h1 { font-size: clamp(2.2rem, 5.6vw, 4.15rem); font-weight: 850; letter-spacing: -.055em; overflow-wrap: anywhere; }
.heading p { max-width: 67ch; }
.heading .btn { width: fit-content; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 27px); }
.panel h2 { font-size: clamp(1.25rem, 2.8vw, 1.7rem); letter-spacing: -.015em; }
.stack { display: grid; gap: 17px; align-content: start; }
.compact-stack { gap: 10px; }
.field-grid, .dashboard-grid, .admin-grid, .lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dashboard-grid, .lesson-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.line { border-top: 1px solid var(--line); }
label { display: grid; gap: 6px; min-width: 0; font-weight: 600; font-size: .89rem; }
input, textarea {
    width: 100%;
    min-height: 43px;
    border: 1px solid #485362;
    border-radius: 7px;
    color: var(--text);
    background: #0d121a;
    padding: 9px 11px;
}
input::placeholder, textarea::placeholder { color: #939fb0; opacity: 1; }
textarea { resize: vertical; overflow-wrap: anywhere; }
.helper, .switch { font-size: .85rem; }
.helper a, .switch a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.switch { text-align: center; }
.notice { border: 1px solid #526258; border-radius: 9px; padding: 11px 15px; background: #1c2926; color: #e4f5e8; }
.inner > .notice { margin-bottom: 20px; }
.notice.danger { border-color: #a06d59; background: #382321; color: #ffe6df; }
.checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.checklist li::before { content: "✓"; color: var(--gold); margin-right: 9px; }
.qr { width: 208px; height: auto; background: white; padding: 8px; border-radius: 8px; }
.admin-nav, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-nav { margin-bottom: 18px; }
.admin-nav a { padding: 6px 11px; border: 1px solid var(--line); font-size: .83rem; border-radius: 6px; color: var(--muted); }
.admin-nav a:hover { color: var(--gold); border-color: #6b563c; }
.lessons-admin { margin-top: 17px; }
.lesson-edit { border-top: 1px solid var(--line); }
.lesson-edit summary { cursor: pointer; padding-top: 9px; font-weight: 600; overflow-wrap: anywhere; }
.edit-body { padding-block: 13px 3px; }
.lesson-list nav { display: grid; gap: 7px; margin-top: 16px; }
.lesson-list a { display: flex; gap: 9px; padding: 9px; border: 1px solid transparent; border-radius: 7px; overflow-wrap: anywhere; }
.lesson-list a span { color: var(--gold); }
.lesson-list a:hover, .lesson-list [aria-current] { border-color: #624e37; background: #27211e; }

@media (max-width: 1040px) {
    :root { --shell: min(1200px, 100% - 56px); }
    .offer-action { flex-shrink: 1; }
}
@media (max-width: 730px) {
    :root { --shell: calc(100% - 36px); }
    .site-nav { display: none; }
    .top-inner { min-height: 65px; }
    .top-actions { gap: 12px; }
    .section { padding-block: 39px; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offer { display: grid; }
    .inner { padding-block: 38px 50px; }
    .dashboard-grid, .lesson-grid, .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .admin-link { display: none; }
    .topic-grid, .field-grid { grid-template-columns: 1fr; }
    .topic { min-height: 0; }
    .footer-inner { min-height: 73px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
