/* Institute of Claudinho · tema escuro estilo streaming */
:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1c1c23;
  --surface-3: #25252e;
  --line: #2c2c36;
  --text: #f4f4f6;
  --muted: #a3a3ae;
  --faint: #6e6e7a;
  --coral: #ff6b57;
  --teal: #2ec4b6;
  --gold: #f2b544;
  --good: #34d399;
  --bad: #f87171;
  --accent: var(--coral);
  --radius: 14px;
  --radius-sm: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
strong { font-weight: 700; color: #fff; }
.mod-coral { --accent: var(--coral); --accent-rgb: 255,107,87; }
.mod-teal  { --accent: var(--teal);  --accent-rgb: 46,196,182; }
.mod-gold  { --accent: var(--gold);  --accent-rgb: 242,181,68; }

/* ---------- topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,0));
  transition: background .25s;
}
.topbar.solid { background: rgba(10,10,12,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--coral), #c2410c);
  color: #fff;
}
.brand-text { font-size: 14px; color: var(--muted); letter-spacing: .2px; }
.brand-text strong { color: var(--text); }
.topbar .back {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; padding: 8px 4px;
}
.topbar .back svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- área principal ---------- */
.app {
  padding-top: calc(56px + var(--safe-top));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
  max-width: 760px; margin: 0 auto;
  animation: fade .25s ease;
}
.app.full-bleed { padding-top: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pad { padding: 0 18px; }

/* ---------- barra de abas inferior ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(14,14,17,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; color: var(--faint); font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { fill: var(--coral); }
.tabbar.hidden { display: none; }

/* ---------- hero da home ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(84px + var(--safe-top)) 18px 26px;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(var(--accent-rgb), .55), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(var(--accent-rgb), .18), transparent 70%),
    linear-gradient(180deg, #17171c 0%, var(--bg) 100%);
}
.hero::after {
  content: attr(data-num);
  position: absolute; right: -10px; top: calc(40px + var(--safe-top));
  font-size: 190px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.06); letter-spacing: -8px;
  pointer-events: none;
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 { font-size: 32px; line-height: 1.1; margin: 8px 0 10px; letter-spacing: -.6px; }
.hero p { color: #d4d4da; margin: 0 0 18px; font-size: 15px; max-width: 520px; }
.hero .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text);
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
}
.pill.accent { background: rgba(var(--accent-rgb), .16); border-color: rgba(var(--accent-rgb), .4); color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: #fff; color: #0a0a0c; }
.btn-accent { background: var(--accent); color: #0a0a0c; }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.hero .bar { margin-bottom: 18px; max-width: 320px; }

/* ---------- fileiras estilo streaming ---------- */
.row { margin: 28px 0 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 18px; margin-bottom: 12px; }
.row-head h2 { font-size: 19px; margin: 0; letter-spacing: -.2px; }
.row-head .sub { font-size: 12px; color: var(--muted); }
.row-head .lvl { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 2px; }
.rail {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.poster {
  flex: 0 0 72%; max-width: 280px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  position: relative;
}
.poster .art {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(var(--accent-rgb), .75), transparent 60%),
    linear-gradient(135deg, #22222b, #111115);
  padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between;
}
.poster .art .num { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -2px; color: #fff; opacity: .95; }
.poster .art .tag { align-self: flex-start; }
.poster .art .play {
  position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
}
.poster .art .play svg { width: 16px; height: 16px; fill: #0a0a0c; margin-left: 2px; }
.poster .art .done {
  position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--good); display: grid; place-items: center;
}
.poster .art .done svg { width: 18px; height: 18px; fill: #0a0a0c; }
.poster .info { padding: 10px 14px 14px; }
.poster .info h3 { font-size: 15px; margin: 0 0 4px; line-height: 1.3; }
.poster .info p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4; }
.poster .bar { border-radius: 0; height: 3px; }
.poster.locked .art { filter: grayscale(.85) brightness(.6); }
.poster.locked .info h3 { color: var(--muted); }
.lock-tag { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; display: block; }

/* ---------- títulos de página ---------- */
.page-head { padding: 18px 18px 6px; }
.page-head h1 { font-size: 28px; margin: 4px 0 6px; letter-spacing: -.5px; line-height: 1.15; }
.page-head p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- grade ---------- */
.module-card {
  margin: 16px 18px 0; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.module-card summary { list-style: none; padding: 16px; cursor: pointer; position: relative;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), .22), transparent 70%); }
.module-card summary::-webkit-details-marker { display: none; }
.module-card summary h2 { font-size: 18px; margin: 4px 0 4px; line-height: 1.25; padding-right: 30px; }
.module-card summary p { margin: 0; font-size: 13px; color: var(--muted); }
.module-card summary .chev { position: absolute; right: 16px; top: 18px; width: 22px; height: 22px; fill: var(--muted); transition: transform .2s; }
.module-card[open] summary .chev { transform: rotate(180deg); }
.module-card .bar { margin-top: 12px; }
.lesson-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.lesson-list li a, .lesson-list li > div {
  display: flex; gap: 12px; align-items: center; padding: 11px 16px;
}
.lesson-list .n {
  flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--muted);
}
.lesson-list .avail .n { background: rgba(var(--accent-rgb), .18); color: var(--accent); }
.lesson-list .finished .n { background: var(--good); color: #0a0a0c; }
.lesson-list .t { flex: 1; min-width: 0; }
.lesson-list .t strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.lesson-list .t span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.lesson-list .soon { opacity: .55; }
.lesson-list .st { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
.project-box {
  margin: 4px 16px 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px dashed rgba(var(--accent-rgb), .5); font-size: 13.5px; color: #d6d6dc;
}
.project-box b { color: var(--accent); display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- progresso ---------- */
.ring-wrap { display: flex; align-items: center; gap: 20px; margin: 18px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ring { --p: 0; width: 104px; height: 104px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--coral) calc(var(--p) * 1%), var(--surface-3) 0);
  display: grid; place-items: center; }
.ring::before { content: ""; width: 84px; height: 84px; border-radius: 50%; background: var(--surface); grid-area: 1/1; }
.ring span { grid-area: 1/1; font-size: 24px; font-weight: 800; position: relative; }
.ring-wrap h2 { margin: 0 0 4px; font-size: 18px; }
.ring-wrap p { margin: 0; color: var(--muted); font-size: 13.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 12px; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 11.5px; color: var(--muted); line-height: 1.3; display: block; }
.mod-progress { margin: 12px 18px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mod-progress .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.mod-progress .top span { color: var(--muted); }
.danger-link { display: block; margin: 28px auto 0; color: var(--faint); font-size: 13px; text-decoration: underline; }

/* ---------- página da aula ---------- */
.lesson-hero {
  padding: calc(70px + var(--safe-top)) 18px 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), .5), transparent 60%),
    linear-gradient(180deg, #17171c, var(--bg));
}
.lesson-hero h1 { font-size: 26px; line-height: 1.15; margin: 6px 0 10px; letter-spacing: -.4px; }
.lesson-hero .meta { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs {
  position: sticky; top: calc(56px + var(--safe-top)); z-index: 20;
  display: flex; gap: 4px; padding: 8px 12px;
  background: rgba(10,10,12,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 1 0 auto; text-align: center; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.tabs a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs a .ok { color: var(--good); margin-left: 4px; }

.chapters { display: flex; gap: 6px; padding: 16px 18px 4px; }
.chapters a { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.chapters a.seen { background: rgba(var(--accent-rgb), .45); }
.chapters a.on { background: var(--accent); }
.chapter-label { padding: 10px 18px 0; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .4px; }

.reading { padding: 6px 18px 0; }
.reading h2.sec { font-size: 24px; letter-spacing: -.3px; line-height: 1.2; margin: 6px 0 14px; }
.reading h3 { font-size: 17px; margin: 26px 0 10px; }
.reading p { margin: 0 0 14px; color: #dedee3; font-size: 16.5px; line-height: 1.65; }
.reading a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.reading ul, .reading ol { margin: 0 0 16px; padding-left: 20px; color: #dedee3; }
.reading li { margin-bottom: 10px; font-size: 16px; line-height: 1.6; }

.lead { font-size: 17px !important; color: #ececf0 !important; }
.objectives { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 6px; margin: 4px 0 20px; }
.objectives h3 { margin: 0 0 10px !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); }
.objectives li { font-size: 15px !important; }

.cards { display: grid; gap: 10px; margin: 0 0 18px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 14px 12px; }
.dcard h4 { margin: 0 0 6px; font-size: 14px; color: var(--accent); }
.dcard p { margin: 0 0 8px !important; font-size: 15px !important; }
.src { font-size: 12px; color: var(--faint); }
.src a { color: var(--muted) !important; }

.callout { border-radius: var(--radius-sm); padding: 14px 16px; margin: 4px 0 18px; background: var(--surface-2); border: 1px solid var(--line); }
.callout h4 { margin: 0 0 6px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.callout p { margin: 0 !important; font-size: 15px !important; }
.callout.dica { background: rgba(46,196,182,.08); border-color: rgba(46,196,182,.35); }
.callout.dica h4 { color: var(--teal); }
.callout.alerta { background: rgba(242,181,68,.08); border-color: rgba(242,181,68,.35); }
.callout.alerta h4 { color: var(--gold); }

.formula {
  margin: 4px 0 16px; padding: 16px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .14), rgba(255,255,255,.02));
  border: 1px solid rgba(var(--accent-rgb), .35);
  font-size: 16px; font-weight: 700; text-align: center; line-height: 1.45; letter-spacing: .1px;
}
.formula .op { color: var(--accent); padding: 0 2px; }

.table-wrap { overflow-x: auto; margin: 0 -18px 18px; padding: 0 18px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 460px; font-size: 14px; }
table.cols-2, table.cols-3 { min-width: 0; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: #dedee3; line-height: 1.45; }
td:first-child { font-weight: 700; color: var(--text); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.two > div { border-radius: var(--radius-sm); padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.two h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.two .bom h4 { color: var(--good); }
.two .ruim h4 { color: var(--bad); }
.two ul { padding-left: 16px !important; margin: 0 !important; }
.two li { font-size: 13.5px !important; margin-bottom: 6px !important; line-height: 1.4 !important; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 16px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 12px; }
.stats b { display: block; font-size: 26px; font-weight: 900; color: var(--accent); letter-spacing: -.5px; line-height: 1.1; }
.stats span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* fluxo do sistema de receita */
.flow { margin: 6px 0 18px; }
.flow-step { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.flow-step .dot {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #0a0a0c; position: relative; z-index: 1;
}
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line);
}
.flow-step .body { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.flow-step .body b { font-size: 15px; display: block; }
.flow-step .body span { font-size: 13.5px; color: #cfcfd6; display: block; }
.flow-step .body em { font-style: normal; font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.flow-step .grp { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; float: right; margin-top: 2px; }
.g-mkt .dot { background: var(--coral); } .g-mkt .grp { color: var(--coral); }
.g-vendas .dot { background: var(--teal); } .g-vendas .grp { color: var(--teal); }
.g-pos .dot { background: var(--gold); } .g-pos .grp { color: var(--gold); }
.flow-handoff { margin: -4px 0 12px 46px; font-size: 12.5px; color: var(--teal); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.flow-handoff::before { content: ""; flex: 0 0 18px; border-top: 2px dashed var(--teal); }
.flow-loop { margin: 2px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.flow-loop svg { width: 18px; height: 18px; fill: var(--gold); flex: 0 0 auto; }

/* exemplo */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 18px; }
.case-top { padding: 14px 16px 10px; background: linear-gradient(120deg, rgba(var(--accent-rgb), .18), transparent 70%); }
.case-top h3 { margin: 6px 0 0 !important; font-size: 18px !important; line-height: 1.25; }
.case-body { padding: 4px 16px 14px; }
.case-body p { font-size: 15.5px !important; }
.case .lesson { margin: 4px 0 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14.5px; }
.case .lesson b { color: var(--accent); }

/* erros */
.errs { display: grid; gap: 10px; margin-bottom: 16px; }
.err { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.err .x { flex: 0 0 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(248,113,113,.15); color: var(--bad); font-weight: 900; }
.err b { display: block; font-size: 15px; margin-bottom: 2px; }
.err span { font-size: 14px; color: #cfcfd6; line-height: 1.45; display: block; }

.pager { display: flex; gap: 10px; padding: 18px; }
.pager .btn { flex: 1; }

/* ---------- exercícios ---------- */
.quiz { padding: 16px 18px 0; }
.q-progress { display: flex; gap: 4px; margin-bottom: 18px; }
.q-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.q-progress i.ok { background: var(--good); }
.q-progress i.no { background: var(--bad); }
.q-progress i.cur { background: var(--text); }
.q-count { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.q-text { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 8px 0 18px; letter-spacing: -.2px; }
.options { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line);
  font-size: 15.5px; line-height: 1.4; transition: border-color .15s, background .15s;
}
.opt .l { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.opt:active { transform: scale(.99); }
.opt.right { border-color: var(--good); background: rgba(52,211,153,.1); }
.opt.right .l { background: var(--good); color: #0a0a0c; }
.opt.wrong { border-color: var(--bad); background: rgba(248,113,113,.1); }
.opt.wrong .l { background: var(--bad); color: #0a0a0c; }
.opt.dim { opacity: .45; }
.feedback { margin-top: 14px; padding: 14px; border-radius: 12px; animation: fade .25s; }
.feedback.ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4); }
.feedback.no { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); }
.feedback b { display: block; margin-bottom: 4px; }
.feedback.ok b { color: var(--good); }
.feedback.no b { color: var(--bad); }
.feedback p { margin: 0; font-size: 14.5px; color: #dedee3; }
.quiz .btn-next { margin-top: 16px; }

.result { text-align: center; padding: 30px 18px 0; }
.result .ring { margin: 0 auto 16px; width: 140px; height: 140px; }
.result .ring::before { width: 114px; height: 114px; }
.result .ring span { font-size: 32px; }
.result h2 { margin: 0 0 6px; font-size: 22px; }
.result p { color: var(--muted); margin: 0 0 20px; }
.reflect { text-align: left; margin: 28px 0 0; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reflect h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); }
.reflect ol { margin: 0; padding-left: 20px; color: #dedee3; }
.reflect li { margin-bottom: 10px; font-size: 15px; }

/* ---------- prática ---------- */
.practice { padding: 16px 18px 0; }
.practice h2 { font-size: 22px; margin: 4px 0 8px; }
.practice > p { color: #d6d6dc; font-size: 15px; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: #e4e4e8; }
.field label i { font-style: normal; color: var(--accent); margin-right: 6px; font-weight: 800; }
.field textarea {
  width: 100%; min-height: 64px; resize: vertical;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px;
  font: inherit; font-size: 15px; line-height: 1.45;
}
.field textarea:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: 12.5px; color: var(--muted); margin: -2px 0 6px; line-height: 1.4; font-style: italic; }
.field textarea::placeholder { color: var(--faint); }

.terms { margin: 0 0 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.terms-head { padding: 10px 14px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); background: var(--surface-2); }
.term { padding: 11px 14px; border-top: 1px solid var(--line); }
.term b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.term span { display: block; font-size: 14px; color: #cfcfd6; line-height: 1.45; }

.saved { font-size: 12px; color: var(--faint); text-align: right; margin: -6px 0 16px; min-height: 16px; }
.prompt-box { margin: 10px 0 14px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.prompt-box .head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.prompt-box pre { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; color: #dedee3; background: var(--surface); max-height: 320px; overflow: auto; }
.steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps-mini li { counter-increment: s; display: flex; gap: 10px; margin-bottom: 8px; font-size: 14.5px; color: #dedee3; }
.steps-mini li::before { content: counter(s); flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(var(--accent-rgb), .2); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- material ---------- */
.mat { padding: 16px 18px 0; }
.mat h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); margin: 10px 0 12px; }
.book { display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.book .cover { flex: 0 0 44px; height: 60px; border-radius: 6px; background: linear-gradient(160deg, rgba(var(--accent-rgb), .9), #3a1d18); box-shadow: inset -4px 0 0 rgba(0,0,0,.25); }
.book b { display: block; font-size: 15px; line-height: 1.3; }
.book .au { font-size: 12.5px; color: var(--muted); display: block; margin: 2px 0 6px; }
.book p { margin: 0; font-size: 13.5px; color: #cfcfd6; }
.book a { font-size: 12.5px; color: var(--accent); display: inline-block; margin-top: 6px; }
.links a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 14px; }
.links svg { width: 18px; height: 18px; fill: var(--muted); flex: 0 0 auto; }

.empty { text-align: center; padding: 80px 24px; color: var(--muted); }
.empty h2 { color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: #0a0a0c; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; transition: all .25s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .poster { flex-basis: 260px; }
  .hero { min-height: 460px; border-radius: 0 0 24px 24px; }
}

/* ================= blocos visuais ================= */
.viz { margin: 4px 0 20px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.viz figcaption { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.viz-note { margin: 12px 0 0 !important; font-size: 13.5px !important; color: var(--muted) !important; line-height: 1.5 !important; }
.legend { list-style: none; padding: 0 !important; margin: 12px 0 0 !important; display: grid; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px !important; margin: 0 !important; color: #dedee3; }
.sw { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.c0 { background: var(--coral); } .c1 { background: var(--teal); } .c2 { background: var(--gold); }
.c3 { background: #8b7cf6; } .c4 { background: #60a5fa; } .c5 { background: var(--good); }

/* pare e pense */
.think { margin: 4px 0 18px; border-radius: var(--radius-sm); border: 1.5px dashed rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .06); }
.think summary { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer; }
.think summary::-webkit-details-marker { display: none; }
.think-ic { font-size: 22px; line-height: 1; }
.think summary > span:nth-child(2) { flex: 1; font-size: 15px; line-height: 1.45; color: #ececf0; }
.think summary b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 2px; }
.think-btn { align-self: center; font-size: 11.5px; font-weight: 800; color: #0a0a0c; background: var(--accent); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.think[open] .think-btn { background: var(--surface-3); color: var(--muted); }
.think[open] .think-btn::before { content: "✓ "; }
.think-ans { padding: 0 14px 14px 46px; font-size: 15px; line-height: 1.55; color: #dedee3; animation: fade .25s; }

/* barra empilhada */
.stackbar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; gap: 2px; }
.stackbar i { display: block; height: 100%; }

/* gráfico do ponto de equilíbrio */
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--faint); stroke-width: 1.2; }
.chart .tick { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.chart .l-receita { stroke: var(--good); stroke-width: 3; }
.chart .l-custo { stroke: var(--coral); stroke-width: 3; }
.chart .l-fixo { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .zone-ok { fill: rgba(52,211,153,.07); }
.chart .zone-bad { fill: rgba(248,113,113,.07); }
.chart .zone-t { font-size: 11px; font-weight: 800; font-family: var(--font); text-transform: uppercase; letter-spacing: 1px; }
.chart .zone-t.ok { fill: var(--good); } .chart .zone-t.bad { fill: var(--bad); }
.chart .pt { fill: #fff; stroke: var(--text); stroke-width: 2; }
.chart .pt-lbl { fill: var(--text); font-size: 12px; font-weight: 800; font-family: var(--font); }
.ln-r { background: var(--good); height: 4px; } .ln-c { background: var(--coral); height: 4px; } .ln-f { background: var(--gold); height: 4px; }

/* quadro 2x2 */
.quad-cols { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.quad-cols span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); text-align: center; }
.quad-grid { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 6px; }
.quad-row { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); text-align: center; }
.quad-cell { border-radius: 10px; padding: 10px; border: 1px solid var(--line); min-height: 110px; }
.quad-cell b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.quad-cell ul { padding-left: 16px !important; margin: 0 !important; }
.quad-cell li { font-size: 12.5px !important; line-height: 1.4 !important; margin-bottom: 4px !important; color: #dedee3; }
.quad-cell.bom { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); } .quad-cell.bom b { color: var(--good); }
.quad-cell.ruim { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); } .quad-cell.ruim b { color: var(--bad); }
.quad-cell.op { background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.35); } .quad-cell.op b { color: #60a5fa; }
.quad-cell.am { background: rgba(242,181,68,.1); border-color: rgba(242,181,68,.35); } .quad-cell.am b { color: var(--gold); }

/* 5 forças */
.forces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.force { border-radius: 10px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.force b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.force span { display: block; font-size: 12.5px; color: #cfcfd6; line-height: 1.4; }
.f-top, .f-bottom, .f-center { grid-column: 1 / -1; }
.f-center { background: rgba(var(--accent-rgb), .14); border: 2px solid var(--accent); text-align: center; position: relative; }
.f-center b { color: var(--accent); font-size: 14.5px; }
.f-top::after, .f-bottom::before { content: "↓"; display: block; text-align: center; color: var(--accent); font-weight: 900; }
.f-bottom::before { content: "↑"; }
.f-top { text-align: center; } .f-bottom { text-align: center; }
.f-left::before, .f-right::before { content: "↑"; display: block; text-align: center; color: var(--accent); font-weight: 900; }
.f-left, .f-right { text-align: center; }

/* círculos de mercado */
.rings-art { position: relative; width: 210px; height: 210px; margin: 0 auto 6px; }
.ring-l { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: var(--s); height: var(--s); border-radius: 50%; display: flex; justify-content: center; align-items: flex-start; padding-top: 10px; }
.ring-l span { font-size: 12px; font-weight: 900; color: #0a0a0c; }
.r0 { background: rgba(96,165,250,.85); } .r1 { background: rgba(46,196,182,.9); } .r2 { background: var(--coral); }
.ring-l.r2 { align-items: center; padding-top: 0; }
.rings-list { list-style: none; padding: 0 !important; margin: 10px 0 0 !important; display: grid; gap: 10px; }
.rings-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; }
.rings-list li .sw { margin-top: 4px; border-radius: 50%; }
.rings-list b { display: block; font-size: 14px; }
.rings-list li > div > span { display: block; font-size: 13px; color: #cfcfd6; line-height: 1.45; }

/* mapa de posicionamento */
.map-wrap { position: relative; padding-left: 4px; }
.map-area { position: relative; height: 230px; border-left: 2px solid var(--faint); border-bottom: 2px solid var(--faint); margin: 18px 0 0 6px;
  background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.ax { position: absolute; left: 10px; font-size: 11px; font-weight: 700; color: var(--muted); }
.ax-y-hi { top: -2px; }
.ax-y-lo2 { font-size: 11px; font-weight: 700; color: var(--muted); margin: 4px 0 0 6px; }
.ax-x { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); margin: 6px 0 0 6px; }
.dot { position: absolute; transform: translate(-50%, 50%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dot i { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); border: 2px solid var(--bg); }
.dot em { font-style: normal; font-size: 10.5px; font-weight: 700; white-space: nowrap; color: #dedee3; background: rgba(10,10,12,.75); padding: 1px 5px; border-radius: 6px; }
.dot.you i { background: var(--accent); width: 16px; height: 16px; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .3); }
.dot.you em { color: var(--accent); }

/* persona */
.p-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.p-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: rgba(var(--accent-rgb), .18); }
.p-head b { display: block; font-size: 16px; } .p-head span { font-size: 13px; color: var(--muted); }
.persona dl { margin: 0; display: grid; gap: 8px; }
.persona dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.persona dd { margin: 0; font-size: 14px; color: #dedee3; line-height: 1.45; }

/* passo a passo */
.steps { margin: 4px 0 18px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps-t { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; }
.step { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step .n { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--accent); color: #0a0a0c; }
.step b { display: block; font-size: 14.5px; }
.step span { display: block; font-size: 14px; color: #cfcfd6; line-height: 1.45; }

/* cartões com ícone */
.dcard.has-ic { display: flex; gap: 12px; }
.dc-ic { font-size: 26px; line-height: 1; }
