:root {
  --ink: #17181d;
  --ink-2: #24262d;
  --ink-3: #3a3d46;
  --text: #22242a;
  --muted: #6b6e78;
  --line: #e4e1da;
  --paper: #ffffff;
  --bg: #f6f4f0;
  --cream: #f8f5ef;
  --sand: #f1eadf;
  --orange: #ff6b1a;
  --orange-d: #e2570b;
  --orange-soft: #fff1e8;
  --ok: #1f8a4c;
  --warn: #b86e00;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 24, 29, .06), 0 6px 20px rgba(23, 24, 29, .06);
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--orange-d); }
img { max-width: 100%; }
code { background: var(--sand); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .4em; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); }
.fine.light { color: #b8bac2; }
.small { font-size: .88rem; }
.lead { font-size: 1.12rem; color: var(--ink-3); }
.tag { display: inline-block; font-size: .72rem; padding: .1em .55em; border-radius: 99px; background: var(--sand); color: var(--ink-3); font-weight: 600; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 .95rem var(--body); padding: .72em 1.2em; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: rgba(0, 0, 0, .04); }
.btn-ghost.danger, .link-btn.danger { color: var(--err); }
.btn-lg { font-size: 1.05rem; padding: .9em 1.5em; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-d); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
form.inline { display: inline; }

/* marca */
.brand { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: inherit; font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.brand b { color: var(--orange); }
.brand-key { width: 30px; height: 30px; border-radius: 8px; background: var(--orange) url("key.svg") center / 18px no-repeat; flex: none; }
.stripes { height: 14px; background: repeating-linear-gradient(-55deg, var(--orange) 0 26px, var(--ink) 26px 52px); }

/* formulários */
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--ink-3); }
.form .row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; }
.form .row > * { flex: 1 1 140px; }
.form.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0 1rem; }
.form.row > input, .form.row > select { flex: 1 1 140px; }
.check-inline { display: inline-flex !important; grid: none; align-items: center; gap: .4em; font-weight: 500 !important; }
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .6em .75em; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 26, .15); }
textarea { resize: vertical; line-height: 1.5; }

/* flashes */
.flashes { display: grid; gap: .5rem; margin-bottom: 1rem; }
.flash { padding: .75em 1em; border-radius: 10px; font-size: .92rem; border-left: 4px solid; background: #fff; }
.flash-ok { border-color: var(--ok); }
.flash-error { border-color: var(--err); }
.flash-warn { border-color: var(--warn); background: #fff8ec; }

/* ---------------------------------------------------------------- site */
.site { background: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; max-width: 1080px; margin: 0 auto; gap: 1rem; }
.site-top nav { display: flex; gap: 1rem; align-items: center; }
.site-top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.site-top .btn-ghost { padding: .5em .9em; }
.hero { background: var(--ink); color: #e9e9ec; padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -60px; width: 260px; height: 260px; border: 34px solid #2b2d34; border-radius: 50%; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; max-width: 15ch; }
.hero .hl { color: var(--orange); }
.hero .lead { color: #c9cad0; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin: 1.8rem 0; position: relative; z-index: 1; }
.price { display: grid; line-height: 1.2; }
.price s { color: #9a9ca4; }
.price strong { font-family: var(--head); font-size: 1.9rem; color: var(--orange); }
.price small { font-size: .78rem; color: #9a9ca4; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
.hero-facts li { border: 1px solid #3a3d46; border-radius: 99px; padding: .3em .9em; font-size: .85rem; }
.band { background: var(--orange-soft); padding: 48px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.pains { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.pains li { background: #fff; border-radius: 10px; padding: .8em 1em .8em 2.4em; position: relative; box-shadow: var(--shadow); }
.pains li::before { content: "→"; position: absolute; left: .9em; color: var(--orange); font-weight: 700; }
.section { padding: 64px 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--ink); color: #d6d7dc; }
.section.dark h2, .section.dark h3 { color: #fff; }
.mod-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; }
.mod-list li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.mod-list .mod-n { font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--orange); line-height: 1; }
.mod-list p { margin: 0; color: var(--muted); }
.tools-line { font-size: .85rem; margin-top: .3rem !important; color: var(--ink-3) !important; }
.author-photo { aspect-ratio: 1; max-width: 280px; border-radius: 50%; background: var(--ink); border: 8px solid var(--orange); display: grid; place-items: center; justify-self: center; width: 100%; }
.author-photo span { font-family: var(--head); font-size: 4rem; color: #fff; font-weight: 700; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.offer { background: var(--ink-2); border: 1px solid #343741; border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.offer.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.offer ul { padding-left: 1.1em; margin: 0 0 1rem; flex: 1; }
.offer .btn-ghost { color: #fff; }
.offer-sub { color: #9a9ca4; margin: 0; font-size: .9rem; }
.soon { display: inline-block; text-align: center; padding: .6em; border: 1px dashed #4a4d57; border-radius: 10px; color: #9a9ca4; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--head); }
.faq details p { margin: .6rem 0 0; color: var(--ink-3); }
.site-foot { background: var(--ink); color: #9a9ca4; padding: 24px 0; font-size: .85rem; }
.site-foot .wrap { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-foot a { color: #c9cad0; }
.prose-page { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }

/* ---------------------------------------------------------------- auth */
.auth { background: var(--ink); min-height: 100vh; }
.auth-box { max-width: 420px; margin: 8vh auto; background: #fff; border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 1.6rem; margin-top: 1.2rem; }
.auth-links { margin-top: 1rem; text-align: center; font-size: .9rem; }
@media (max-width: 480px) { .auth-box { margin: 16px; padding: 1.4rem; } }

/* ---------------------------------------------------------------- app */
.topbar { background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; position: sticky; top: 0; z-index: 20; gap: 1rem; }
.nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.nav a, .nav .link-btn { color: #c9cad0; text-decoration: none; font-size: .9rem; font-weight: 500; padding: .45em .75em; border-radius: 8px; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a.on { color: #fff; background: var(--ink-3); }
.nav form { margin: 0; }
.menu-btn { display: none; background: var(--ink-2); color: #fff; border: 0; border-radius: 8px; padding: .5em .9em; font: 600 .9rem var(--body); }
.main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; position: relative; z-index: 1; }
.main.reading { max-width: 820px; }
.app-foot { text-align: center; font-size: .72rem; color: var(--muted); padding: 0 16px 24px; }
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 15; background-repeat: repeat; }
.print-block { display: none; }

.page-head { margin-bottom: 1.5rem; }
.block { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.block h2:first-child { margin-top: 0; }
.block.narrow { max-width: 680px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }

/* painel */
.dash-hero { background: var(--ink); color: #d6d7dc; border-radius: 18px; padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.2rem; }
.dash-hero h1 { color: #fff; font-size: 1.7rem; }
.dash-hero a { color: var(--orange); }
.next-card { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: center; background: var(--ink-2); border: 1px solid #343741; border-radius: 12px; padding: 1rem 1.2rem; text-decoration: none; max-width: 520px; }
.next-card strong { color: #fff; font-family: var(--head); font-size: 1.1rem; grid-column: 1; }
.next-card .kicker { grid-column: 1; }
.next-card .arrow { grid-column: 2; grid-row: 1 / 3; color: var(--orange); font-size: 1.6rem; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--orange) calc(var(--p) * 1%), #343741 0); }
.ring span { width: 94px; height: 94px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring b { font-family: var(--head); font-size: 1.6rem; color: #fff; }
.ring small { font-size: .72rem; color: #9a9ca4; }
.dash-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.mini-card { background: #fff; border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow); display: grid; gap: .2rem; border-left: 4px solid var(--orange); }
.mini-card strong { font-family: var(--head); }
.mini-card a { font-size: .88rem; font-weight: 600; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.mod-card { background: #fff; border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.mod-card:hover { transform: translateY(-2px); }
.mod-card .mod-n { position: absolute; right: .8rem; top: .3rem; font-family: var(--head); font-weight: 800; font-size: 3rem; color: var(--sand); line-height: 1; }
.mod-card h3 { position: relative; max-width: 80%; }
.mod-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.mod-card small { color: var(--muted); font-size: .8rem; }
.mod-card.complete { border-top: 4px solid var(--ok); }
.mod-card.locked { opacity: .65; background: var(--cream); box-shadow: none; border: 1px dashed var(--line); }
.mod-card.locked:hover { transform: none; }
.bar { height: 6px; background: var(--sand); border-radius: 99px; overflow: hidden; margin: .4rem 0 .3rem; }
.bar span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }

/* capa do módulo */
.module-cover { background: var(--ink); color: #d6d7dc; border-radius: 18px; padding: 2.4rem 2rem; position: relative; overflow: hidden; margin-bottom: 1.2rem; border-bottom: 8px solid var(--orange); }
.module-cover h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); max-width: 14ch; }
.module-cover .lead { color: #c9cad0; max-width: 55ch; margin: 0; }
.cover-n { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); color: var(--orange); line-height: .9; margin-bottom: .6rem; }
.module-body { display: grid; grid-template-columns: 1fr 280px; gap: 1.2rem; align-items: start; }
.lesson-list { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lesson-list a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.lesson-list li:last-child a { border-bottom: 0; }
.lesson-list a:hover { background: var(--cream); }
.lesson-list .lnum { font-family: var(--head); font-weight: 700; color: var(--orange); min-width: 3.2em; }
.lesson-list .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.lesson-list .done .check { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 4px #fff; }
.tools-aside { background: var(--sand); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.tools-aside ul { padding-left: 1.1em; margin: 0; }

/* lição */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.lesson { background: #fff; border-radius: 18px; padding: 2.4rem 2.6rem; box-shadow: var(--shadow); }
.lesson-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.lesson-body > p:first-child { font-size: 1.1rem; color: var(--ink-3); }
.lesson-body table, .grid, .table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1rem 0 1.4rem; }
.lesson-body table th, .table th, .grid th { background: var(--ink); color: #fff; text-align: left; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; padding: .7em .8em; }
.lesson-body table td, .table td { padding: .75em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.lesson-body table tr:nth-child(even) td { background: var(--cream); }
.lesson-body table.grid tr:nth-child(n) td, .lesson-body table.diag-table tr:nth-child(n) td { background: transparent; }
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; position: relative; }
.lesson-body blockquote { margin: .4rem 0 1rem; padding: .7em 1em; background: var(--cream); border-radius: 10px; font-style: italic; color: var(--ink-3); }
.lesson-body blockquote p:last-child { margin: 0; }
.lesson-body ul, .lesson-body ol { padding-left: 1.3em; }
.anchor { background: var(--cream); border-left: 6px solid var(--orange); border-radius: 0 12px 12px 0; padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.anchor .kicker { color: var(--muted); }
.anchor-text p { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin: 0; line-height: 1.3; }
.box { border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.box > :last-child { margin-bottom: 0; }
.box-light { background: var(--sand); }
.box-alert { background: #fff6ee; border: 1.5px solid #ffd2b4; }
.box-alert .kicker { color: var(--orange-d); }
.box-dark { background: var(--ink); color: #d6d7dc; }
.box-dark strong { color: #fff; }
.tool { border: 2px solid var(--ink); border-radius: 16px; padding: 1.4rem 1.5rem; margin: 2rem 0; }
.tool-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; border-bottom: 3px solid var(--ink); padding-bottom: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tool-head h3 { font-size: 1.4rem; margin: 0; }
.tool-meta { font-size: .8rem; color: var(--muted); font-weight: 600; text-align: right; max-width: 260px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0; }
.compare .col { border-radius: 12px; padding: 1rem 1.2rem; background: var(--cream); }
.compare .col h4 { text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.compare .col-keep { border-top: 4px solid var(--ink); }
.compare .col-change { border-top: 4px solid var(--orange); }
.compare ul, .compare ol { margin: 0; padding-left: 1.2em; }
.steps { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .8rem; }
.steps > li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.step-n, .card-n { width: 36px; height: 36px; border-radius: 9px; background: var(--ink); color: var(--orange); display: grid; place-items: center; font-family: var(--head); font-weight: 700; }
.steps h4 { margin: .4em 0 .3em; }
.steps blockquote { margin-top: .3rem !important; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; margin: 1.2rem 0; }
.card { border: 1.5px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; background: #fff; }
.card h4 { margin-top: .5rem; }
.card p:last-child { margin: 0; }
.card-n { margin-bottom: .2rem; }

/* campos do aluno */
.field { margin: 1rem 0 1.3rem; position: relative; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field textarea { background: #fffdf9; border-style: dashed; }
.field textarea:focus { border-style: solid; }
.save-state { font-size: .75rem; color: var(--muted); display: block; min-height: 1.1em; margin-top: .2rem; }
.save-state.ok { color: var(--ok); }
.save-state.err { color: var(--err); }
.grid { min-width: 520px; }
.grid td { padding: 0; border: 1px solid var(--line); vertical-align: top; }
.grid tbody th { background: var(--cream); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .88rem; border: 1px solid var(--line); min-width: 140px; }
.grid textarea { border: 0; border-radius: 0; background: transparent; min-height: 3.2em; resize: vertical; font-size: .9rem; }
.grid textarea:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.grid.ro td { padding: .6em .7em; }
.checks { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .3rem; }
.checks label { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; align-items: start; padding: .55rem .6rem; border-radius: 10px; cursor: pointer; }
.checks label:hover { background: var(--cream); }
.checks input { width: 20px; height: 20px; margin: .15em 0 0; accent-color: var(--orange); }
.checks small { display: block; color: var(--muted); font-size: .84rem; }
.checks input:checked + span { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); color: var(--muted); }
.checklist { margin: 1rem 0; }
.mission { background: var(--ink); color: #d6d7dc; border-radius: 16px; padding: 1.6rem; margin: 2rem 0 0; }
.mission h3 { color: #fff; font-size: 1.5rem; }
.mission .checks label:hover { background: var(--ink-2); }
.mission .checks input:checked + span { color: #8e909a; }
.mission .checks small { color: #9a9ca4; }
.mission .field label { color: #fff; }
.mission .field textarea { background: var(--ink-2); color: #fff; border-color: #3a3d46; }

/* casos */
.case { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; margin: 1.6rem 0; }
.case-head { background: var(--ink); color: #fff; padding: .9rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.case-head .kicker { margin: 0; }
.case-story { padding: 1.2rem 1.4rem .2rem; background: var(--cream); }
.case-q, .opts, .why-label, .why, .case-submit, .locked-note { margin-left: 1.4rem; margin-right: 1.4rem; }
.case-q { margin-top: 1.2rem; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem; cursor: pointer; font-size: .93rem; }
.opt input { position: absolute; opacity: 0; }
.opt:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 107, 26, .3); }
.opt-l { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; flex: none; }
.opt-l.inline { display: inline-grid; width: 24px; height: 24px; font-size: .85rem; }
.why-label { display: block; font-weight: 600; margin-top: 1rem; margin-bottom: .3rem; }
.why { width: calc(100% - 2.8rem); }
.case-submit { margin-top: .8rem; margin-bottom: 1.2rem; }
.locked-note { font-size: .85rem; color: var(--muted); margin-top: -.4rem; }
.case-analysis:not(:empty) { border-top: 2px solid var(--ink); padding: 1.4rem; background: #fff; animation: rise .35s ease; }
.reviews { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.review { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; padding: .7rem; border-radius: 10px; }
.review.best { background: #edf8f1; box-shadow: inset 3px 0 0 var(--ok); }
.review.best .opt-l { background: var(--ok); }
.mine { font-style: normal; font-size: .72rem; background: var(--orange); color: #fff; padding: .05em .5em; border-radius: 99px; margin-left: .3em; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* diagnóstico */
.diag-table { width: 100%; border-collapse: collapse; min-width: 560px; margin: 1rem 0; }
.diag-table td { padding: .6em .7em; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .93rem; }
.diag-table .num { font-family: var(--head); color: var(--orange); font-weight: 700; width: 2.5em; }
.dots { white-space: nowrap; }
.dot { display: inline-block; }
.dot input { position: absolute; opacity: 0; }
.dot span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #c9c5bd; margin: 0 2px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.dot input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }
.dot input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 107, 26, .3); }
.diag-total { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; background: var(--ink); color: #c9cad0; border-radius: 12px; padding: .9rem 1.2rem; }
.diag-total strong { font-family: var(--head); font-size: 2rem; color: var(--orange); }
.diag-count { font-size: .82rem; }
.bands { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .9rem; }
.bands td { padding: .6em .8em; border-bottom: 1px solid var(--line); }
.bands td:first-child { font-weight: 700; white-space: nowrap; width: 6em; }
.bands tr.on td { background: var(--orange-soft); }
.bands tr.on td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.diag-compare:not(:empty) { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--sand); }
.diag-compare ul { margin: .4rem 0 0; padding-left: 1.2em; }

.lesson-foot { display: grid; gap: 1rem; margin-top: 1.2rem; }
.lesson-foot form { display: flex; align-items: center; gap: 1rem; }
.done-tag { color: var(--ok); font-weight: 700; }
.done-tag::before { content: "✓ "; }
.pager { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.pager a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.pager a:hover { color: var(--orange-d); }

/* caderno */
.nb-section { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.nb-section h2 { margin-top: 0; display: flex; align-items: center; gap: .6rem; }
.mod-n.small { font-family: var(--head); background: var(--ink); color: var(--orange); border-radius: 8px; padding: .1em .45em; font-size: .9rem; }
.nb-item { border-top: 1px solid var(--line); padding: 1rem 0; }
.nb-item h3 { font-size: 1rem; }
.nb-meta { font-size: .78rem; margin-bottom: .3rem; }
.nb-meta a { color: var(--muted); }
.nb-text { white-space: pre-wrap; background: var(--cream); padding: .8em 1em; border-radius: 10px; }
.nb-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; font-size: .92rem; }
.nb-checks li::before { content: "○ "; color: var(--muted); }
.nb-checks li.on::before { content: "● "; color: var(--ok); }

/* mentoria / ao vivo */
.credit-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.credit-box strong { font-family: var(--head); font-size: 2.2rem; color: var(--muted); line-height: 1; }
.credit-box.has strong { color: var(--orange); }
.credit-box span { flex: 1; min-width: 160px; }
.credit-box .soon { border-color: var(--line); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.slot-card { border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .7rem; background: #fff; }
.slot-card p { margin: .2rem 0 0; }
details.slot-card { display: block; }
details.slot-card summary { cursor: pointer; }
details.slot-card[open] { border-color: var(--orange); }
details.slot-card .form { margin-top: .8rem; }
.slot-card.booked { border-left: 4px solid var(--orange); }
.slot-card.done, .slot-card.past { opacity: .8; }
.slot-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* admin */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.2rem; border-bottom: 2px solid var(--line); }
.tabs a { padding: .6em 1em; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on { color: var(--ink); border-color: var(--orange); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stats div { background: #fff; border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow); display: grid; }
.stats strong { font-family: var(--head); font-size: 2rem; color: var(--ink); }
.stats span { font-size: .85rem; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.search { display: flex; gap: .5rem; flex: 1; max-width: 480px; }
.table { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.table tr.inactive td { opacity: .5; }
.table .ua { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-box { background: var(--orange-soft); border: 1.5px solid #ffd2b4; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.copy-box input { font-family: ui-monospace, monospace; font-size: .85rem; }

/* proteção de conteúdo */
.protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected textarea, .protected input { -webkit-user-select: text; user-select: text; }
@media print {
  body.app > *:not(.print-block) { display: none !important; }
  .print-block { display: block !important; padding: 3cm 2cm; font: 16pt var(--body); text-align: center; }
}

/* responsivo */
@media (max-width: 860px) {
  .two, .two-col, .module-body, .offers { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; }
  .nav.open { display: flex; }
  .main { padding: 18px 16px 48px; }
  .lesson { padding: 1.4rem 1.1rem; border-radius: 14px; }
  .tool { padding: 1rem; margin-left: -.3rem; margin-right: -.3rem; }
  .tool-meta { text-align: left; }
  .dash-hero { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .ring { align-self: center; }
  .case-q, .opts, .why-label, .why, .case-submit, .locked-note { margin-left: 1rem; margin-right: 1rem; }
  .why { width: calc(100% - 2rem); }
  .case-story, .case-analysis:not(:empty) { padding-left: 1rem; padding-right: 1rem; }
  .block, .nb-section { padding: 1.1rem; }
  .hero { padding: 44px 0 56px; }
  .site-top nav a:not(.btn) { display: none; }
  .mod-list li { grid-template-columns: 50px 1fr; }
  .dot span { width: 34px; height: 34px; margin: 0 2px; }
  /* tabelas de preencher viram cartões no celular */
  .grid:not(.ro) { min-width: 0; }
  .grid:not(.ro) thead { display: none; }
  .grid:not(.ro), .grid:not(.ro) tbody, .grid:not(.ro) tr, .grid:not(.ro) td, .grid:not(.ro) tbody th { display: block; width: 100%; }
  .grid:not(.ro) tr { border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: .7rem; overflow: hidden; }
  .grid:not(.ro) td { border: 0; border-top: 1px solid var(--line); }
  .grid:not(.ro) tbody th { border: 0; }
  .grid:not(.ro) td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5em .7em 0; }
  .grid:not(.ro) tr:first-child td:first-child { border-top: 0; }
  .diag-table { min-width: 0; }
  .diag-table thead { display: none; }
  .diag-table tr { display: grid; grid-template-columns: 2.4em 1fr; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .diag-table td { border: 0; padding: .2em .3em; }
  .diag-table td.dots { grid-column: 2; }
}

/* calendário de mentorias (admin) */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.2rem; align-items: start; }
.cal-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.cal-head h2 { margin: 0; flex: 1; text-align: center; }
.cal-head .btn { padding: .3em .8em; font-size: 1.2rem; }
.cal-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .84rem; color: var(--muted); margin-bottom: .9rem; }
.cal-stats b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4em; vertical-align: -1px; }
.dot-booked { background: var(--orange); } .dot-open { border: 1.5px solid var(--ink-3); } .dot-done { background: var(--ok); } .dot-noshow { background: #9a9ca4; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; padding: .3rem 0; }
.cal-day { min-height: 96px; border: 1.5px solid var(--line); border-radius: 10px; padding: .35rem; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); background: #fff; overflow: hidden; }
.cal-day:hover { border-color: var(--ink-3); }
.cal-day.other { background: var(--cream); opacity: .55; }
.cal-day.past .cal-n { color: var(--muted); }
.cal-day.today .cal-n { background: var(--orange); color: #fff; }
.cal-day.sel { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255, 107, 26, .25); }
.cal-n { font-family: var(--head); font-weight: 700; font-size: .85rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.chip { font-size: .7rem; line-height: 1.25; padding: .15em .4em; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.chip-booked { background: var(--orange); color: #fff; }
.chip-open { border: 1px dashed var(--ink-3); color: var(--ink-3); font-weight: 500; }
.chip-done { background: #e3f4ea; color: var(--ok); }
.chip-no_show { background: #ececee; color: #7a7c84; text-decoration: line-through; }
.chip.more { color: var(--muted); font-weight: 500; }
.cal-side .block h2 { font-size: 1.15rem; }
.slot-card .slot-main { flex: 1 1 220px; min-width: 0; }
.slot-card .topic { background: var(--cream); padding: .5em .7em; border-radius: 8px; font-size: .9rem; margin-top: .4rem; }
.slot-card.no_show { opacity: .7; }
.tag-booked { background: var(--orange); color: #fff; } .tag-done { background: #e3f4ea; color: var(--ok); }
.new-slot { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.new-slot summary { cursor: pointer; font-weight: 600; color: var(--orange-d); }
.new-slot .form { margin-top: .8rem; }
.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.upcoming li { display: grid; border-left: 3px solid var(--orange); padding-left: .7rem; }
.upcoming small { color: var(--muted); }
@media (max-width: 1000px) { .cal-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cal { gap: 2px; }
  .cal-day { min-height: 58px; padding: .2rem; align-items: center; }
  .chip { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; }
  .chip.more { display: none; }
  .cal-day { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; }
  .cal-n { width: 100%; height: 24px; border-radius: 6px; }
}
