/* =====================================================================
   ENEM 30 DIAS — Design System
   Tokens → base → componentes → layouts (público, auth, app, admin)
   Mobile-first. Dark mode por tokens (não é inversão de cores).
   ===================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* escala tipográfica */
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-base: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.25rem; --fs-2xl: 1.5rem; --fs-3xl: 1.875rem; --fs-4xl: 2.25rem; --fs-5xl: 3rem;

  /* espaçamento (base 4px) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* cores — claro */
  --bg: #f4f5f8;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eff1f5;
  --border: #e3e6ec;
  --border-strong: #cfd4dd;
  --text: #0d1321;
  --text-2: #4a5468;
  --text-3: #6b7489;
  --text-inverse: #ffffff;

  --brand: #2f5bff;
  --brand-hover: #2349e6;
  --brand-press: #1c3cc4;
  --brand-soft: #edf1ff;
  --brand-soft-2: #dde5ff;
  --brand-ink: #1a36b8;
  --ink: #0b1226;           /* superfícies escuras de marca */
  --ink-2: #131c36;

  --accent: #ff6a2b;
  --accent-soft: #fff0e8;
  --accent-ink: #b8430f;

  --success: #0a8a4f; --success-soft: #e9f8ef; --success-ink: #05693b;
  --warning: #c96a04; --warning-soft: #fff6e5; --warning-ink: #8a4a05;
  --danger:  #d6311f; --danger-soft: #fdeeec;  --danger-ink: #a3220f;
  --info: var(--brand); --info-soft: var(--brand-soft); --info-ink: var(--brand-ink);

  --area-LC: #7a4ef0; --area-LC-soft: #f2edff;
  --area-CH: #c7780a; --area-CH-soft: #fff4e0;
  --area-CN: #0c8f63; --area-CN-soft: #e6f7f0;
  --area-MT: #2f5bff; --area-MT-soft: #edf1ff;

  --shadow-xs: 0 1px 2px rgba(13, 19, 33, .05);
  --shadow-sm: 0 1px 2px rgba(13, 19, 33, .05), 0 2px 6px -2px rgba(13, 19, 33, .06);
  --shadow-md: 0 4px 12px -4px rgba(13, 19, 33, .10), 0 2px 4px -2px rgba(13, 19, 33, .05);
  --shadow-lg: 0 24px 48px -16px rgba(13, 19, 33, .22);
  --ring: 0 0 0 3px rgba(47, 91, 255, .28);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms; --t-med: 220ms;

  --topbar-h: 60px;
  --bottomnav-h: 64px;
  --sidebar-w: 256px;
  --content-max: 1120px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0e18;
  --bg-elevated: #121828;
  --surface: #111726;
  --surface-2: #151c2d;
  --surface-3: #1b2336;
  --border: #232c40;
  --border-strong: #313c55;
  --text: #eef1f7;
  --text-2: #a8b1c4;
  --text-3: #818ba1;
  --brand: #5c7cff;
  --brand-hover: #7390ff;
  --brand-press: #4a6bf0;
  --brand-soft: #18213f;
  --brand-soft-2: #1f2b55;
  --brand-ink: #a9baff;
  --ink: #0d1427;
  --ink-2: #141d38;
  --accent: #ff7d45; --accent-soft: #2e1b12; --accent-ink: #ffb08c;
  --success: #2cc27b; --success-soft: #0f2a1f; --success-ink: #7ee0b0;
  --warning: #f0a032; --warning-soft: #2c2111; --warning-ink: #f7c77f;
  --danger: #ff6352; --danger-soft: #2f1512; --danger-ink: #ffab9f;
  --area-LC: #a283ff; --area-LC-soft: #221a3d;
  --area-CH: #f0a032; --area-CH-soft: #2c2111;
  --area-CN: #34c38c; --area-CN-soft: #0f2a21;
  --area-MT: #6e8bff; --area-MT-soft: #18213f;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 6px -2px rgba(0, 0, 0, .35);
  --shadow-md: 0 6px 16px -6px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
  --ring: 0 0 0 3px rgba(92, 124, 255, .4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0a0e18; --bg-elevated: #121828; --surface: #111726; --surface-2: #151c2d; --surface-3: #1b2336;
    --border: #232c40; --border-strong: #313c55; --text: #eef1f7; --text-2: #a8b1c4; --text-3: #818ba1;
    --brand: #5c7cff; --brand-hover: #7390ff; --brand-press: #4a6bf0; --brand-soft: #18213f; --brand-soft-2: #1f2b55; --brand-ink: #a9baff;
    --ink: #0d1427; --ink-2: #141d38;
    --accent: #ff7d45; --accent-soft: #2e1b12; --accent-ink: #ffb08c;
    --success: #2cc27b; --success-soft: #0f2a1f; --success-ink: #7ee0b0;
    --warning: #f0a032; --warning-soft: #2c2111; --warning-ink: #f7c77f;
    --danger: #ff6352; --danger-soft: #2f1512; --danger-ink: #ffab9f;
    --area-LC: #a283ff; --area-LC-soft: #221a3d; --area-CH: #f0a032; --area-CH-soft: #2c2111;
    --area-CN: #34c38c; --area-CN-soft: #0f2a21; --area-MT: #6e8bff; --area-MT-soft: #18213f;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.4); --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px -2px rgba(0,0,0,.35);
    --shadow-md: 0 6px 16px -6px rgba(0,0,0,.55); --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.7);
    --ring: 0 0 0 3px rgba(92,124,255,.4);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01"; min-height: 100dvh; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--brand-soft-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s6) 0; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--surface); padding: var(--s2) var(--s4); border-radius: var(--r-sm); box-shadow: var(--shadow-md); }
.skip-link:focus { top: var(--s4); }
[hidden] { display: none !important; }

/* tipografia utilitária */
.eyebrow { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.h1 { font-size: var(--fs-3xl); font-weight: 750; letter-spacing: -.03em; }
.h2 { font-size: var(--fs-2xl); font-weight: 700; }
.h3 { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: var(--fs-sm); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.strong { font-weight: 650; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* layout utilitário */
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s6); }
.stack-xl { display: flex; flex-direction: column; gap: var(--s8); }
.row { display: flex; align-items: center; gap: var(--s3); }
.row-sm { display: flex; align-items: center; gap: var(--s2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--s4); }
.grid-2 { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
}
.mt-1 { margin-top: var(--s1); } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); }
.mb-2 { margin-bottom: var(--s2); } .mb-4 { margin-bottom: var(--s4); } .mb-6 { margin-bottom: var(--s6); }
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 720px) { .container { padding-inline: var(--s6); } }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-md);
  border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 620; font-size: var(--fs-base); letter-spacing: -.005em; line-height: 1; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent; text-decoration: none; user-select: none;
}
.btn:hover { background: var(--surface-2); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-border: var(--brand); box-shadow: 0 1px 2px rgba(47, 91, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-primary:active { background: var(--brand-press); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-border: var(--accent); }
.btn-accent:hover { filter: brightness(1.05); background: var(--accent); color: #fff; }
.btn-ink { --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink); }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-ink); --btn-border: transparent; }
.btn-soft:hover { background: var(--brand-soft-2); color: var(--brand-ink); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: var(--danger); }
.btn-danger:hover { filter: brightness(1.05); background: var(--danger); color: #fff; }
.btn-danger-soft { --btn-bg: var(--danger-soft); --btn-fg: var(--danger-ink); --btn-border: transparent; }
.btn-sm { min-height: 36px; padding: 0 var(--s3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-lg { min-height: 52px; padding: 0 var(--s6); font-size: var(--fs-md); border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--btn-fg) transparent var(--btn-fg) transparent; animation: spin .7s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.label .opt { color: var(--text-3); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: var(--fs-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); appearance: none;
}
.textarea { padding: var(--s3) var(--s4); min-height: 120px; resize: vertical; line-height: 1.6; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: var(--s10); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { font-size: var(--fs-sm); color: var(--danger); display: flex; gap: 6px; align-items: flex-start; }
.help { font-size: var(--fs-sm); color: var(--text-3); }
.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group .input-action { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-content: center; transition: all var(--t-fast); }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--t-fast) var(--ease); }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { box-shadow: var(--ring); }

/* opções escolha (onboarding) */
.choices { display: grid; gap: var(--s2); }
.choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--surface); transition: all var(--t-fast) var(--ease); }
.choice-body .icon { color: var(--text-3); }
.choice-title { font-weight: 620; }
.choice-desc { font-size: var(--fs-sm); color: var(--text-3); }
.choice input:hover + .choice-body { border-color: var(--border-strong); }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.choice input:checked + .choice-body .icon { color: var(--brand); }
.choice input:focus-visible + .choice-body { box-shadow: var(--ring); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-xs); }
.card-lg { padding: var(--s6); }
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
a.card { color: inherit; display: block; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.card-title { font-size: var(--fs-md); font-weight: 650; letter-spacing: -.01em; }
.card-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-ink .muted, .card-ink .subtle { color: rgba(255, 255, 255, .7); }
.card-ink h1, .card-ink h2, .card-ink h3 { color: #fff; }
.card-soft { background: var(--surface-2); box-shadow: none; }
.divider-list > * + * { border-top: 1px solid var(--border); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 620; white-space: nowrap; background: var(--surface-3); color: var(--text-2); letter-spacing: .005em; }
.badge .icon { width: 14px; height: 14px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-neutral { background: var(--surface-3); color: var(--text-2); }
.badge-info { background: var(--brand-soft); color: var(--brand-ink); }
.badge-success { background: var(--success-soft); color: var(--success-ink); }
.badge-warning { background: var(--warning-soft); color: var(--warning-ink); }
.badge-danger { background: var(--danger-soft); color: var(--danger-ink); }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-outline { background: transparent; border: 1px solid var(--border-strong); }
.area-tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 650; color: var(--area-c, var(--text-2)); background: var(--area-s, var(--surface-3)); height: 24px; padding: 0 9px; border-radius: var(--r-pill); }
.area-tag::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
[data-area="LC"] { --area-c: var(--area-LC); --area-s: var(--area-LC-soft); }
[data-area="CH"] { --area-c: var(--area-CH); --area-s: var(--area-CH-soft); }
[data-area="CN"] { --area-c: var(--area-CN); --area-s: var(--area-CN-soft); }
[data-area="MT"] { --area-c: var(--area-MT); --area-s: var(--area-MT-soft); }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.5; border: 1px solid transparent; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); }
.alert-success { background: var(--success-soft); color: var(--success-ink); }
.alert-warning { background: var(--warning-soft); color: var(--warning-ink); }
.alert-danger { background: var(--danger-soft); color: var(--danger-ink); }
.alert strong { font-weight: 650; }

/* ---------- Progresso ---------- */
.progress { height: 8px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .6s var(--ease); }
.progress-sm { height: 6px; }
.progress-lg { height: 10px; }
.progress.is-success > span { background: var(--success); }
.progress.is-area > span { background: var(--area-c, var(--brand)); }
.ring { position: relative; width: var(--ring-size, 84px); height: var(--ring-size, 84px); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .ring-track { stroke: var(--surface-3); }
.ring .ring-value { stroke: var(--ring-color, var(--brand)); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 750; font-size: var(--fs-lg); letter-spacing: -.02em; }
.ring-label small { display: block; font-size: 10px; color: var(--text-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Estatísticas ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: var(--fs-sm); color: var(--text-3); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: var(--fs-2xl); font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-meta { font-size: var(--fs-xs); color: var(--text-3); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow-xs); }
.kpi .icon-wrap { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: var(--s3); }
.kpi.tone-success .icon-wrap { background: var(--success-soft); color: var(--success-ink); }
.kpi.tone-warning .icon-wrap { background: var(--warning-soft); color: var(--warning-ink); }
.kpi.tone-accent .icon-wrap { background: var(--accent-soft); color: var(--accent-ink); }
.kpi.tone-danger .icon-wrap { background: var(--danger-soft); color: var(--danger-ink); }

/* ---------- Listas ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; min-height: 56px; color: inherit; }
.list-item + .list-item { border-top: 1px solid var(--border); }
a.list-item:hover .list-title { color: var(--brand); }
.list-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.list-icon.is-brand { background: var(--brand-soft); color: var(--brand-ink); }
.list-icon.is-success { background: var(--success-soft); color: var(--success-ink); }
.list-icon.is-muted { background: var(--surface-3); color: var(--text-3); }
.list-title { font-weight: 620; line-height: 1.35; transition: color var(--t-fast); }
.list-meta { font-size: var(--fs-sm); color: var(--text-3); }

/* ---------- Tabelas (viram cartões no mobile) ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--surface-2); }
.table .cell-title { font-weight: 620; color: var(--text); }
.table .cell-sub { font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 767px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
  .table-cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: var(--s3); text-align: right; }
  .table-cards td::before { content: attr(data-label); color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
  .table-cards td.td-main { display: block; text-align: left; padding-bottom: var(--s2); }
  .table-cards td.td-main::before { display: none; }
}

/* ---------- Tabs / segmentado ---------- */
.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: var(--s3) var(--s3); font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; white-space: nowrap; font-size: var(--fs-sm); margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-color: var(--brand); }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: var(--r-md); gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.segmented a, .segmented button { padding: 7px 12px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); border: 0; background: none; white-space: nowrap; }
.segmented .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

/* ---------- Estados ---------- */
.empty { text-align: center; padding: var(--s10) var(--s5); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-3); display: grid; place-items: center; color: var(--text-3); margin-bottom: var(--s2); }
.empty-icon .icon { width: 26px; height: 26px; }
.empty-title { font-weight: 650; font-size: var(--fs-md); }
.empty-text { color: var(--text-3); max-width: 38ch; font-size: var(--fs-sm); }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }
.skeleton-line { height: 12px; margin: 8px 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.01); } 100% { transform: scale(1); } }
.fade-up { animation: fade-up .35s var(--ease) both; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px); display: flex; flex-direction: column; gap: var(--s2); width: min(420px, calc(100% - 32px)); pointer-events: none; }
@media (min-width: 1024px) { .toasts { bottom: 24px; left: auto; right: 24px; transform: none; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: 550; animation: fade-up .3s var(--ease) both; }
.toast .icon { color: #9fb2ff; }
.toast.is-success .icon { color: #5fe0a2; }
.toast.is-danger .icon { color: #ff9a8d; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .25s var(--ease); }

/* ---------- Modal (dialog) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); width: min(480px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(8, 12, 24, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .22s var(--ease); }
.modal-body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.modal-title { font-size: var(--fs-xl); font-weight: 700; }
.modal-actions { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 519px) { .modal-actions .btn { flex: 1 1 auto; } }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; letter-spacing: -.02em; font-size: 1.02rem; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: -.04em; position: relative; overflow: hidden; flex: none; }
.brand-mark::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.brand-mark span { position: relative; z-index: 1; }
.brand-name small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 650; margin-top: 1px; }
[data-theme="dark"] .brand-mark, .on-ink .brand-mark { background: var(--brand); }

/* =====================================================================
   LAYOUT: Público (landing, legal)
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t-med); }
.site-header.is-scrolled { border-color: var(--border); }
.site-header .container { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.site-nav { display: none; gap: var(--s6); font-size: var(--fs-sm); font-weight: 580; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover { color: var(--text); }
@media (min-width: 960px) { .site-nav { display: flex; } }
.site-actions { display: flex; gap: var(--s2); align-items: center; }
.site-actions .hide-sm { display: none; }
@media (min-width: 520px) { .site-actions .hide-sm { display: inline-flex; } }

.hero { padding: var(--s10) 0 var(--s12); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 620px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: var(--s10); align-items: center; }
@media (min-width: 1024px) { .hero { padding: var(--s16) 0 var(--s20); } .hero .container { grid-template-columns: 1.05fr .95fr; } }
.hero-kicker { display: inline-flex; align-items: center; gap: var(--s2); padding: 5px 12px 5px 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-xs); }
.hero-kicker .badge { height: 22px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 780; letter-spacing: -.04em; line-height: 1.04; margin-top: var(--s5); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: var(--s5); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-note { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--text-3); display: flex; gap: var(--s4); flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 6px; align-items: center; }
.hero-note .icon { width: 16px; height: 16px; color: var(--success); }

.device { position: relative; margin-inline: auto; width: min(360px, 100%); }
.device-frame { border-radius: 36px; padding: 10px; background: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.device-screen { border-radius: 28px; background: var(--bg); overflow: hidden; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); min-height: 560px; }
.device-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--s3) var(--s4); font-size: var(--fs-sm); display: none; }
@media (min-width: 1100px) { .device-float { display: block; } }
.device-float.f1 { left: -150px; top: 300px; }
.device-float.f2 { right: -110px; bottom: 40px; }

.section { padding: var(--s16) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .muted, .section-ink .lead { color: rgba(255, 255, 255, .72); }
.section-head { max-width: 640px; margin-bottom: var(--s10); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); letter-spacing: -.035em; margin-top: var(--s3); }
.section-head p { margin-top: var(--s4); }

.feature { display: flex; flex-direction: column; gap: var(--s3); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.feature h3 { font-size: var(--fs-md); font-weight: 680; }
.feature p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }

.steps { counter-reset: step; display: grid; gap: var(--s4); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; position: relative; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step::before { content: counter(step, decimal-leading-zero); font-size: var(--fs-sm); font-weight: 750; color: var(--brand); letter-spacing: .02em; }
.step h3 { font-size: var(--fs-md); margin-top: var(--s3); }
.step p { color: var(--text-2); font-size: var(--fs-sm); margin-top: var(--s2); }

.timeline { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.phase { padding: var(--s5); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.phase .days { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb592; }
.phase h3 { font-size: var(--fs-lg); margin-top: var(--s2); }
.phase p { color: rgba(255, 255, 255, .7); font-size: var(--fs-sm); margin-top: var(--s2); }

.pricing { max-width: 460px; margin-inline: auto; }
.price-card { border-radius: var(--r-xl); padding: var(--s8) var(--s6); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); position: relative; }
.price { display: flex; align-items: baseline; gap: var(--s2); margin-top: var(--s4); }
.price strong { font-size: 3rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.checklist { display: flex; flex-direction: column; gap: var(--s3); margin: var(--s6) 0; }
.checklist li { list-style: none; display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
.checklist .icon { color: var(--success); width: 18px; height: 18px; margin-top: 1px; }

.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) 0; display: flex; justify-content: space-between; gap: var(--s4); font-weight: 620; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--t-med) var(--ease); color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 var(--s5); color: var(--text-2); line-height: 1.7; max-width: 64ch; }

.site-footer { padding: var(--s12) 0 calc(var(--s12) + var(--safe-bottom)); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-3); }
.site-footer .container { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: var(--text-2); }
.site-footer h4 { font-size: var(--fs-sm); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s2); }

.legal { max-width: 760px; margin: 0 auto; padding: var(--s10) var(--s4) var(--s16); }
.legal h1 { font-size: var(--fs-3xl); margin-bottom: var(--s2); }
.legal h2 { font-size: var(--fs-xl); margin: var(--s8) 0 var(--s3); }
.legal p, .legal li { color: var(--text-2); line-height: 1.75; margin-bottom: var(--s3); }
.legal ul { padding-left: var(--s5); }

/* =====================================================================
   LAYOUT: Autenticação / onboarding
   ===================================================================== */
.auth { min-height: 100dvh; display: grid; }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth-main { display: flex; flex-direction: column; padding: var(--s5) var(--s4) calc(var(--s8) + var(--safe-bottom)); }
@media (min-width: 720px) { .auth-main { padding: var(--s8) var(--s10); } }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding: var(--s8) 0; }
.auth-box.wide { max-width: 560px; }
.auth-title { font-size: var(--fs-3xl); font-weight: 760; letter-spacing: -.035em; }
.auth-sub { color: var(--text-2); margin-top: var(--s2); }
.auth-aside { display: none; background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: var(--s12); }
@media (min-width: 1024px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside::before { content: ""; position: absolute; width: 640px; height: 640px; right: -240px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 124, 255, .35), transparent); }
.auth-aside::after { content: ""; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 43, .22), transparent); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 2.3rem; letter-spacing: -.04em; line-height: 1.1; max-width: 16ch; }
.auth-aside .muted { color: rgba(255, 255, 255, .7); }
.aside-list { display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--s8); }
.aside-list li { list-style: none; display: flex; gap: var(--s3); align-items: flex-start; color: rgba(255, 255, 255, .85); }
.aside-list .icon { color: #9fb2ff; margin-top: 2px; }
.divider-text { display: flex; align-items: center; gap: var(--s3); color: var(--text-3); font-size: var(--fs-sm); }
.divider-text::before, .divider-text::after { content: ""; height: 1px; background: var(--border); flex: 1; }

.wizard-progress { display: flex; gap: 6px; }
.wizard-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background var(--t-med); }
.wizard-progress span.is-done { background: var(--brand); }
.wizard-step { display: none; }
.wizard-step.is-active { display: flex; flex-direction: column; gap: var(--s5); animation: fade-up .3s var(--ease); }
.no-js .wizard-step { display: flex; flex-direction: column; gap: var(--s5); margin-bottom: var(--s10); }
.wizard-nav { display: flex; gap: var(--s3); position: sticky; bottom: 0; padding: var(--s4) 0 calc(var(--s2) + var(--safe-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.wizard-nav .btn-primary { flex: 1; }

/* =====================================================================
   LAYOUT: App do aluno
   ===================================================================== */
.app-shell { min-height: 100dvh; }
.app-topbar { position: sticky; top: 0; z-index: 30; height: calc(var(--topbar-h) + var(--safe-top)); padding-top: var(--safe-top); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.app-topbar-inner { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 0 var(--s4); max-width: calc(var(--content-max) + 48px); margin: 0 auto; }
.app-topbar .brand-name { display: none; }
@media (min-width: 400px) { .app-topbar .brand-name { display: block; } }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); flex: none; border: 0; }
.avatar-lg { width: 56px; height: 56px; font-size: var(--fs-lg); }

.demo-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.demo-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.demo-pill.is-ending .dot { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.demo-pill .label-long { display: none; }
@media (min-width: 560px) { .demo-pill .label-long { display: inline; } }

.app-body { display: flex; max-width: calc(var(--content-max) + 48px + var(--sidebar-w)); margin: 0 auto; }
.app-sidebar { display: none; }
.app-main { flex: 1; min-width: 0; padding: var(--s5) var(--s4) calc(var(--bottomnav-h) + var(--safe-bottom) + var(--s8)); }
@media (min-width: 720px) { .app-main { padding: var(--s8) var(--s6) calc(var(--bottomnav-h) + var(--s10)); } }
@media (min-width: 1024px) {
  .app-sidebar { display: flex; flex-direction: column; gap: 2px; width: var(--sidebar-w); flex: none; padding: var(--s6) var(--s4); position: sticky; top: var(--topbar-h); height: calc(100dvh - var(--topbar-h)); overflow-y: auto; }
  .app-main { padding: var(--s8) var(--s8) var(--s12); }
}
.nav-link { display: flex; align-items: center; gap: var(--s3); height: 42px; padding: 0 var(--s3); border-radius: 10px; color: var(--text-2); font-weight: 580; font-size: var(--fs-sm); transition: background var(--t-fast), color var(--t-fast); }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.nav-link.is-active .icon { color: var(--brand); }
.nav-link .count { margin-left: auto; font-size: var(--fs-xs); background: var(--danger-soft); color: var(--danger-ink); border-radius: var(--r-pill); padding: 1px 7px; font-weight: 700; }
.nav-section { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: var(--s5) var(--s3) var(--s2); }
.sidebar-card { margin-top: auto; padding: var(--s4); border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.sidebar-card p { font-size: var(--fs-sm); color: rgba(255, 255, 255, .75); margin: 6px 0 var(--s3); }

.bottom-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: calc(var(--bottomnav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--text-3); -webkit-tap-highlight-color: transparent; position: relative; }
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a.is-active { color: var(--brand); }
.bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.bottom-nav .badge-count { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; border-radius: 8px; background: var(--danger); color: #fff; display: grid; place-items: center; }

.page-head { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s6); }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 750; letter-spacing: -.03em; }
@media (min-width: 720px) { .page-head h1 { font-size: var(--fs-3xl); } }
.page-head .row-between { align-items: flex-end; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 580; margin-bottom: var(--s2); }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 16px; height: 16px; }

/* dashboard */
.today-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: var(--s6); background: var(--ink); color: #fff; }
.today-card::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 124, 255, .42), transparent); }
.today-card > * { position: relative; }
.today-card .eyebrow { color: #ffb592; }
.today-card h2 { color: #fff; font-size: var(--fs-2xl); letter-spacing: -.03em; margin-top: var(--s2); }
.today-card .muted { color: rgba(255, 255, 255, .72); }
.today-card .progress { background: rgba(255, 255, 255, .14); }
.today-card .progress > span { background: #fff; }
.today-meta { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); margin-top: var(--s3); }
.today-meta span { display: inline-flex; align-items: center; gap: 6px; }
.today-meta .icon { width: 16px; height: 16px; }
.dash-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1.55fr 1fr; } }

.area-bars { display: flex; flex-direction: column; gap: var(--s4); }
.area-bar-head { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 6px; }
.area-bar-head strong { font-variant-numeric: tabular-nums; }

/* plano */
.phase-block + .phase-block { margin-top: var(--s8); }
.phase-title { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); }
.day-grid { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 720px) { .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .day-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day-card { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: inherit; min-height: 76px; transition: all var(--t-fast); }
.day-card:hover { border-color: var(--border-strong); color: inherit; box-shadow: var(--shadow-sm); }
.day-num { width: 48px; height: 48px; border-radius: 13px; background: var(--surface-3); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 780; font-size: var(--fs-lg); letter-spacing: -.03em; flex: none; line-height: 1; }
.day-num small { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); margin-bottom: 2px; }
.day-card.is-done .day-num { background: var(--success-soft); color: var(--success-ink); }
.day-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.day-card.is-current .day-num { background: var(--brand); color: #fff; }
.day-card.is-current .day-num small { color: rgba(255, 255, 255, .75); }
.day-card.is-locked { background: var(--surface-2); }
.day-card.is-locked .day-title { color: var(--text-2); }
.day-title { font-weight: 640; line-height: 1.3; }
.day-sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.day-status { margin-left: auto; color: var(--text-3); flex: none; }
.day-card.is-done .day-status { color: var(--success); }

.item-row { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: inherit; transition: all var(--t-fast); }
a.item-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); color: inherit; }
.item-row + .item-row { margin-top: var(--s2); }
.item-row.is-done { background: var(--surface-2); }
.item-row.is-done .item-title { color: var(--text-2); }
.item-row.is-locked { background: var(--surface-2); border-style: dashed; }
.item-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--area-s, var(--surface-3)); color: var(--area-c, var(--text-2)); flex: none; }
.item-row.is-done .item-icon { background: var(--success-soft); color: var(--success); }
.item-title { font-weight: 630; line-height: 1.35; }
.item-meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: 3px; display: flex; gap: var(--s2); flex-wrap: wrap; }

.lock-banner { display: flex; gap: var(--s4); align-items: center; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--border-strong); }
.lock-banner .list-icon { background: var(--accent-soft); color: var(--accent-ink); }

/* conteúdo de aula (protegido) */
.lesson { position: relative; max-width: 720px; }
.prose { font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s8); letter-spacing: -.02em; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: var(--s6); }
.prose li + li { margin-top: var(--s2); }
.prose strong { font-weight: 650; }
.prose .box { padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand-ink); font-size: var(--fs-base); }
.prose .box.warn { background: var(--warning-soft); color: var(--warning-ink); }
.prose .formula { font-family: var(--mono); font-size: .95rem; padding: var(--s3) var(--s4); background: var(--surface-3); border-radius: var(--r-sm); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--border); padding: var(--s2) var(--s3); text-align: left; }
.keypoints { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.keypoints li { list-style: none; display: flex; gap: var(--s3); padding: 6px 0; font-size: var(--fs-sm); color: var(--text-2); }
.keypoints .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }

.protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected img { pointer-events: none; -webkit-user-drag: none; }
.watermark { position: absolute; inset: 0; pointer-events: none; z-index: 2; background-repeat: repeat; background-size: 340px 200px; opacity: .06; }
[data-theme="dark"] .watermark { opacity: .08; filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .watermark { filter: invert(1); opacity: .08; } }

/* questões */
.q-card { position: relative; }
.q-meta { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; margin-bottom: var(--s4); }
.q-support { padding: var(--s4); border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text-2); font-size: var(--fs-base); line-height: 1.7; margin-bottom: var(--s4); white-space: pre-line; }
.q-statement { font-size: 1.02rem; line-height: 1.7; font-weight: 520; white-space: pre-line; }
.q-options { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s5); }
.q-option { position: relative; display: block; }
.q-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.q-option-body { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--surface); transition: all var(--t-fast) var(--ease); line-height: 1.55; min-height: 52px; }
.q-letter { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 750; font-size: var(--fs-sm); background: var(--surface-3); color: var(--text-2); transition: all var(--t-fast); }
.q-option input:hover + .q-option-body { border-color: var(--border-strong); }
.q-option input:checked + .q-option-body { border-color: var(--brand); background: var(--brand-soft); }
.q-option input:checked + .q-option-body .q-letter { background: var(--brand); color: #fff; }
.q-option input:focus-visible + .q-option-body { box-shadow: var(--ring); }
.q-option input:disabled { cursor: default; }
.q-option.is-correct .q-option-body, .q-option.is-correct input:checked + .q-option-body { border-color: var(--success); background: var(--success-soft); }
.q-option.is-correct .q-letter, .q-option.is-correct input:checked + .q-option-body .q-letter { background: var(--success); color: #fff; }
.q-option.is-wrong .q-option-body, .q-option.is-wrong input:checked + .q-option-body { border-color: var(--danger); background: var(--danger-soft); }
.q-option.is-wrong .q-letter, .q-option.is-wrong input:checked + .q-option-body .q-letter { background: var(--danger); color: #fff; }
.q-option.is-dim .q-option-body { opacity: .6; }
.q-actions { display: flex; gap: var(--s3); margin-top: var(--s5); align-items: center; flex-wrap: wrap; }
.q-actions .btn-primary { min-width: 180px; }
.q-training { font-size: var(--fs-xs); color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; }
.q-training .icon { width: 14px; height: 14px; }
.correction { margin-top: var(--s5); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; animation: fade-up .3s var(--ease); }
.correction-head { display: flex; gap: var(--s3); align-items: center; padding: var(--s4) var(--s5); }
.correction.is-correct .correction-head { background: var(--success-soft); color: var(--success-ink); }
.correction.is-wrong .correction-head { background: var(--danger-soft); color: var(--danger-ink); }
.correction-head .icon { width: 24px; height: 24px; }
.correction-head strong { font-size: var(--fs-md); }
.correction-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); background: var(--surface); }
.correction-body .explanation { line-height: 1.75; color: var(--text-2); white-space: pre-line; }
.correction-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 720px) { .correction-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.fact small { display: block; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.fact span { font-weight: 640; font-size: var(--fs-sm); }
.q-progress { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.q-progress .progress { flex: 1; }

/* simulado */
.sim-bar { position: sticky; top: calc(var(--topbar-h) + var(--safe-top)); z-index: 20; margin: calc(-1 * var(--s5)) calc(-1 * var(--s4)) var(--s5); padding: var(--s3) var(--s4); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
@media (min-width: 720px) { .sim-bar { margin: calc(-1 * var(--s8)) calc(-1 * var(--s6)) var(--s6); padding: var(--s3) var(--s6); } }
.sim-timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-md); }
.sim-timer.is-low { color: var(--danger); }
.sim-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.sim-nav a { height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 650; font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); position: relative; }
.sim-nav a.is-answered { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.sim-nav a.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; color: var(--text); }
.sim-nav a.is-flagged::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* redação */
.essay-editor { min-height: 60vh; font-size: 1.02rem; line-height: 1.85; padding: var(--s5); font-family: var(--font); }
.essay-stats { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-3); }
.essay-stats strong { color: var(--text); font-variant-numeric: tabular-nums; }
.competency { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.competency .c-num { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 750; flex: none; font-size: var(--fs-sm); }

/* CTA / demo */
.cta-inline { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent-ink); }
.cta-inline strong { color: var(--text); }
.cta-inline .grow { min-width: 200px; }
.expired-hero { text-align: center; max-width: 520px; margin: var(--s8) auto; display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.expired-hero .seal { width: 72px; height: 72px; border-radius: 22px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.expired-hero .seal .icon { width: 32px; height: 32px; }

.install-banner { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* =====================================================================
   LAYOUT: Admin
   ===================================================================== */
.admin-shell { min-height: 100dvh; display: flex; background: var(--bg); }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 264px; background: var(--ink); color: rgba(255, 255, 255, .78); padding: var(--s5) var(--s3); display: flex; flex-direction: column; gap: 2px; transform: translateX(-100%); transition: transform var(--t-med) var(--ease); overflow-y: auto; }
.admin-sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
.admin-sidebar .brand { color: #fff; padding: 0 var(--s2) var(--s5); }
.admin-sidebar .brand-mark { background: var(--brand); }
.admin-sidebar .brand-name small { color: rgba(255, 255, 255, .5); }
.admin-sidebar .nav-section { color: rgba(255, 255, 255, .4); }
.admin-sidebar .nav-link { color: rgba(255, 255, 255, .72); }
.admin-sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-sidebar .nav-link.is-active { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; box-shadow: none; }
.admin-sidebar .nav-link.is-active .icon { color: #9fb2ff; }
.admin-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(8, 12, 24, .5); opacity: 0; pointer-events: none; transition: opacity var(--t-med); }
.admin-scrim.is-open { opacity: 1; pointer-events: auto; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.admin-content { padding: var(--s5) var(--s4) var(--s12); max-width: 1320px; margin: 0 auto; }
@media (min-width: 1100px) {
  .admin-sidebar { position: sticky; top: 0; height: 100dvh; transform: none; flex: none; }
  .admin-menu-btn, .admin-scrim { display: none; }
  .admin-content { padding: var(--s8); }
}
.admin-user { margin-top: auto; padding: var(--s3); border-radius: var(--r-md); background: rgba(255, 255, 255, .05); display: flex; gap: var(--s3); align-items: center; }
.admin-user .avatar { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-user strong { color: #fff; font-size: var(--fs-sm); display: block; }
.admin-user small { color: rgba(255, 255, 255, .5); font-size: var(--fs-xs); }
.kpi-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } }
.filters { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; } }
.filters .input, .filters .select { min-height: 42px; font-size: var(--fs-sm); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-3); }
.funnel-step { display: grid; grid-template-columns: 1fr; gap: 6px; }
.funnel-bar { height: 36px; border-radius: 10px; background: var(--brand-soft); position: relative; overflow: hidden; }
.funnel-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 10px; }
.funnel-bar > b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #fff; font-size: var(--fs-sm); mix-blend-mode: normal; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; }
.chart .bar { fill: var(--brand); }
.chart .bar-muted { fill: var(--brand-soft-2); }
.chart .axis { stroke: var(--border); }
.chart text { fill: var(--text-3); font-size: 10px; font-family: var(--font); }
.dl { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: var(--s2) var(--s4); font-size: var(--fs-sm); }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; font-weight: 560; word-break: break-word; }
.timeline-list { display: flex; flex-direction: column; }
.timeline-list li { list-style: none; display: flex; gap: var(--s3); padding: var(--s2) 0; font-size: var(--fs-sm); }
.timeline-list .t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); margin-top: 7px; flex: none; }
.secret-mask { font-family: var(--mono); letter-spacing: .08em; }
.code-block { font-family: var(--mono); font-size: var(--fs-xs); background: var(--surface-3); padding: var(--s3); border-radius: var(--r-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* impressão: conteúdo protegido não é impresso */
@media print {
  .protected, .watermark, .app-sidebar, .bottom-nav, .app-topbar { display: none !important; }
  body::after { content: "Conteúdo protegido — impressão não disponível."; display: block; padding: 40px; font: 16px var(--font); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* sequência (streak) */
.streak-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak-cell { aspect-ratio: 1; border-radius: 7px; background: var(--surface-3); }
.streak-cell.is-on { background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.area-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--area-c, var(--border-strong)); display: inline-block; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 560; color: var(--text-2); background: var(--surface); transition: all var(--t-fast); }
.chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.chip input:focus-visible + span { box-shadow: var(--ring); }
.bars { display: flex; align-items: flex-end; gap: var(--s3); height: 180px; padding-top: var(--s2); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bar-track { flex: 1; width: 100%; max-width: 44px; background: var(--surface-3); border-radius: 8px; position: relative; overflow: hidden; }
.bar-track > span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: 8px 8px 0 0; }
.bar-val { font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); }
.bar-label { font-size: var(--fs-xs); color: var(--text-3); }
.sim-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1100px) { .sim-layout { grid-template-columns: minmax(0, 1fr) 300px; } .sim-layout > .card:last-child { position: sticky; top: calc(var(--topbar-h) + 72px); } }
/* elementos focados/rolados não ficam sob a barra superior nem sob a navegação inferior */
html:has(body.app-shell) { scroll-padding-top: calc(var(--topbar-h) + var(--safe-top) + 12px); scroll-padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 16px); }
@media (min-width: 1024px) { html:has(body.app-shell) { scroll-padding-bottom: 16px; } }
.btn { max-width: 100%; }
.next-up { min-width: 0; flex-basis: 100%; font-weight: 600; color: #fff; }
@media (min-width: 720px) { .next-up { flex-basis: auto; } }
.lock-banner { flex-wrap: wrap; }
.lock-banner .grow { min-width: 200px; }
.checkout-grid { display: grid; gap: var(--s4); max-width: 980px; margin-inline: auto; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } .price-aside { position: sticky; top: calc(var(--topbar-h) + 24px); } }
.secure-list { list-style: none; display: flex; flex-direction: column; gap: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.secure-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.secure-list .icon { color: var(--success); margin-top: 2px; }
.price { flex-wrap: wrap; }
.price strong { white-space: nowrap; font-size: clamp(2.2rem, 9vw, 3rem); }
.admin-search { display: none; }
.admin-search .input { min-height: 38px; width: 280px; font-size: var(--fs-sm); }
@media (min-width: 900px) { .admin-search { display: block; } }
.qr-box { width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--border); }
.qr-box svg { width: 100%; height: 100%; }
.chart .bar-g:hover .bar { fill: var(--brand-hover); }
.chart .bar-g:hover rect { fill: var(--brand-soft); fill-opacity: .5; }
.testimonials { columns: 1; column-gap: var(--s4); }
@media (min-width: 720px) { .testimonials { columns: 2; } }
@media (min-width: 1100px) { .testimonials { columns: 3; } }
.testimonial { break-inside: avoid; margin: 0 0 var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
.testimonial blockquote { margin: 0; color: var(--text); line-height: 1.65; }

/* =====================================================================
   PÁGINA DE VENDAS (lp-*)
   ===================================================================== */
.lp { overflow-x: clip; }
.lp-section { padding: var(--s16) 0; }
@media (max-width: 719px) { .lp-section { padding: var(--s12) 0; } }
.lp-soft { background: var(--surface); border-block: 1px solid var(--border); }
.lp-ink { background: var(--ink); color: #fff; }
.lp-ink h2, .lp-ink h3 { color: #fff; }
.lp-ink .lp-p { color: rgba(255, 255, 255, .78); }
.lp-narrow { max-width: 780px; }
.lp-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.lp-head { max-width: 760px; margin: 0 auto var(--s10); text-align: center; }
.lp-eyebrow { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.lp-h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.lp-sub { color: var(--text-2); margin-top: var(--s4); font-size: var(--fs-md); }
.lp-p { font-size: 1.08rem; line-height: 1.7; color: var(--text-2); margin-top: var(--s5); }
.lp-p strong { color: var(--text); }
.lp-ink .lp-p strong { color: #fff; }
.lp-hl { background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--accent) 34%, transparent) 62%); padding: 0 .08em; color: inherit; }
.lp-hl-light { color: #ffb592; }

.lp-hero { position: relative; padding: var(--s10) 0 var(--s12); background: radial-gradient(1200px 520px at 80% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), radial-gradient(700px 400px at -10% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.lp-hero-grid { display: grid; gap: var(--s10); align-items: center; }
@media (min-width: 1000px) { .lp-hero-grid { grid-template-columns: 1.1fr .9fr; } .lp-hero { padding: var(--s16) 0 var(--s20); } }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); box-shadow: var(--shadow-xs); }
.lp-kicker strong { color: var(--danger); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(214, 49, 31, .5); animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 49, 31, .45); } 70% { box-shadow: 0 0 0 10px rgba(214, 49, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 49, 31, 0); } }
.lp-hero h1 { font-size: clamp(2.3rem, 8vw, 4.1rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.02; margin-top: var(--s5); }
.lp-lead { font-size: clamp(1.05rem, 2.6vw, 1.22rem); line-height: 1.65; color: var(--text-2); margin-top: var(--s5); max-width: 36rem; }
.lp-lead strong { color: var(--text); }
.lp-hero-cta { margin-top: var(--s8); display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.lp-cta-main { min-height: 58px; padding: 0 var(--s8); font-size: 1.06rem; box-shadow: 0 10px 30px -10px rgba(47, 91, 255, .7); }
.lp-cta-main:hover { transform: translateY(-1px); }
@media (max-width: 519px) { .lp-hero-cta .btn, .lp-demo .btn { width: 100%; } }
.lp-micro { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-3); }
.lp-micro .icon { color: var(--success); }
.lp-micro span { opacity: .5; }
.lp-micro-light { color: rgba(255, 255, 255, .6); justify-content: center; }
.lp-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s8); max-width: 560px; }
.lp-proof div { display: flex; flex-direction: column; gap: 2px; padding-left: var(--s3); border-left: 3px solid var(--accent); }
.lp-proof strong { font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 850; letter-spacing: -.03em; }
.lp-proof span { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.35; }

.lp-phone { border-radius: 30px; padding: 8px; background: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.lp-phone img { border-radius: 23px; width: 100%; height: auto; }
.lp-hero-visual { position: relative; display: flex; justify-content: center; min-height: 420px; }
.lp-phone-main { width: min(300px, 74vw); position: relative; z-index: 2; transform: rotate(-2deg); }
.lp-phone-side { width: 210px; position: absolute; right: 2%; top: 18%; z-index: 1; transform: rotate(5deg); opacity: .96; display: none; }
@media (min-width: 560px) { .lp-phone-side { display: block; } .lp-phone-main { margin-right: 130px; } }
.lp-float { position: absolute; z-index: 3; display: flex; gap: var(--s3); align-items: center; padding: 10px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); animation: lp-bob 5s ease-in-out infinite; }
.lp-float strong { display: block; }
.lp-float small { color: var(--text-3); font-size: var(--fs-xs); }
.lp-float-a { left: 0; top: 12%; }
.lp-float-b { left: 4%; bottom: 8%; animation-delay: -2.5s; }
.lp-float-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.lp-float-ic.ok { background: var(--success-soft); color: var(--success); }
.lp-float-ic.hot { background: var(--accent-soft); color: var(--accent); }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 559px) { .lp-float-a { left: -4px; top: 6%; } .lp-float-b { left: auto; right: -4px; bottom: 10%; } }

.lp-marquee { overflow: hidden; background: var(--ink); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-marquee-track { display: flex; gap: var(--s3); width: max-content; animation: lp-scroll 38s linear infinite; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #fff; font-weight: 650; font-size: var(--fs-sm); padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.lp-chip .icon { color: #ffb592; }
@keyframes lp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.lp-pains { display: grid; gap: var(--s3); margin: var(--s8) 0; }
@media (min-width: 800px) { .lp-pains { grid-template-columns: repeat(3, 1fr); } }
.lp-pain { display: flex; gap: var(--s3); padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.lp-pain strong { display: block; margin-bottom: 4px; }
.lp-pain p { color: var(--text-2); font-size: var(--fs-sm); }
.lp-pain-x { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }

.lp-clock { display: grid; gap: var(--s10); align-items: center; }
@media (min-width: 900px) { .lp-clock { grid-template-columns: 1.4fr 1fr; } }
.lp-clock .btn { margin-top: var(--s8); }
.lp-clock-card { text-align: center; padding: var(--s10) var(--s6); border-radius: var(--r-xl); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: var(--s2); }
.lp-clock-card strong { font-size: clamp(4.5rem, 16vw, 7.5rem); font-weight: 850; line-height: 1; letter-spacing: -.06em; color: #fff; }
.lp-clock-card span { font-weight: 650; color: #ffb592; }
.lp-clock-card small { color: rgba(255, 255, 255, .5); font-size: var(--fs-xs); margin-top: var(--s3); }

.lp-shots { display: flex; gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s2) max(var(--s4), calc((100vw - var(--content-max)) / 2 + var(--s6))) var(--s6); scrollbar-width: thin; }
.lp-shot { flex: 0 0 220px; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 720px) { .lp-shot { flex-basis: 240px; } }
.lp-shot figcaption strong { display: block; font-size: var(--fs-md); }
.lp-shot figcaption span { color: var(--text-3); font-size: var(--fs-sm); }

.lp-features { display: flex; flex-direction: column; gap: var(--s16); }
.lp-feature { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 860px) { .lp-feature { grid-template-columns: 1fr 1fr; gap: var(--s16); } .lp-feature.is-rev .lp-feature-media { order: 2; } }
.lp-feature-media { display: flex; justify-content: center; }
.lp-feature-media .lp-phone { width: min(260px, 70vw); }
.lp-tag { display: inline-flex; font-size: var(--fs-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 10px; border-radius: var(--r-pill); }
.lp-feature h3 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin-top: var(--s4); }
.lp-feature p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; margin-top: var(--s4); }

.lp-steps { display: grid; gap: var(--s4); }
@media (min-width: 800px) { .lp-steps { grid-template-columns: repeat(4, 1fr); } }
.lp-step { padding: var(--s6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.lp-step span { font-size: 2.2rem; font-weight: 850; letter-spacing: -.04em; color: var(--brand); }
.lp-step h3 { font-size: var(--fs-lg); margin-top: var(--s2); }
.lp-step p { color: var(--text-2); font-size: var(--fs-sm); margin-top: var(--s2); }

.lp-wall-sec { background: linear-gradient(180deg, var(--bg), var(--surface)); }
.lp-wall { display: flex; flex-direction: column; gap: var(--s4); }
.lp-wall-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.lp-wall-track { display: flex; gap: var(--s4); width: max-content; animation: lp-scroll 160s linear infinite; }
.lp-wall-row.is-rev .lp-wall-track { animation-direction: reverse; animation-duration: 190s; }
.lp-wall-row:hover .lp-wall-track { animation-play-state: paused; }
.lp-wall-track img { width: 200px; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); background: #fff; }
@media (min-width: 720px) { .lp-wall-track img { width: 240px; } }

.lp-results { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s2) max(var(--s4), calc((100vw - var(--content-max)) / 2 + var(--s6))) var(--s6); }
.lp-rcard { flex: 0 0 260px; scroll-snap-align: center; padding: var(--s5); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--s4); }
.lp-rcard-top { display: flex; gap: var(--s3); align-items: center; }
.lp-rcard-top b { display: block; }
.lp-rcard-top i { font-style: normal; font-size: var(--fs-xs); color: var(--text-3); }
.lp-rcard-evo { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.lp-rcard-evo small { display: block; font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.lp-rcard-evo span { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-3); }
.lp-rcard-evo .after span { color: var(--success); font-size: 1.9rem; }
.lp-rcard-evo em { color: var(--text-3); }
.lp-rcard-gain { font-weight: 750; font-size: var(--fs-sm); color: var(--success-ink); background: var(--success-soft); border-radius: var(--r-pill); padding: 6px 12px; text-align: center; }

.lp-author { display: flex; gap: var(--s8); align-items: center; flex-wrap: wrap; max-width: 900px; }
.lp-author > div:last-child { flex: 1 1 320px; }
.lp-author-badge { width: 120px; height: 120px; flex: none; border-radius: 34px; background: linear-gradient(135deg, var(--brand), var(--ink)); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.lp-author-badge span { color: #fff; font-size: 3.4rem; font-weight: 850; }

.lp-demo { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 900px) { .lp-demo { grid-template-columns: 1.3fr 1fr; } }
.lp-demo .btn { margin-top: var(--s6); }
.lp-checks { list-style: none; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--border); }
.lp-checks li { display: flex; gap: var(--s3); align-items: center; font-weight: 580; }
.lp-checks .icon { color: var(--success); }

.lp-offer { display: grid; gap: var(--s5); max-width: 960px; margin: 0 auto; align-items: stretch; }
@media (min-width: 880px) { .lp-offer { grid-template-columns: 1.3fr 1fr; } }
.lp-offer-card { position: relative; padding: var(--s8) var(--s6); border-radius: var(--r-xl); background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 30px 60px -30px rgba(47, 91, 255, .45); display: flex; flex-direction: column; gap: var(--s4); }
.lp-offer-flag { position: absolute; top: -14px; left: var(--s6); background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); }
.lp-offer-card h3 { font-size: var(--fs-xl); font-weight: 800; }
.lp-stack { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.lp-stack li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-base); }
.lp-stack .icon { color: var(--success); margin-top: 2px; flex: none; }
.lp-price { display: flex; flex-direction: column; gap: 2px; padding: var(--s5) 0; border-top: 1px dashed var(--border-strong); margin-top: var(--s2); }
.lp-price small { color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-xs); }
.lp-price strong { font-size: clamp(2.6rem, 10vw, 3.4rem); font-weight: 850; letter-spacing: -.05em; line-height: 1.05; white-space: nowrap; }
.lp-price span { color: var(--text-3); font-size: var(--fs-sm); }
.lp-offer-alt { text-align: center; font-size: var(--fs-sm); font-weight: 600; }
.lp-secure { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-xs); color: var(--text-3); }
.lp-secure .icon { color: var(--success); flex: none; margin-top: 1px; }
.lp-guarantee { padding: var(--s8) var(--s6); border-radius: var(--r-xl); background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; justify-content: center; }
.lp-guarantee h3 { color: #fff; font-size: var(--fs-2xl); }
.lp-guarantee p { color: rgba(255, 255, 255, .75); line-height: 1.7; }
.lp-seal { width: 108px; height: 108px; border-radius: 50%; border: 3px dashed #ffb592; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-seal strong { font-size: 2.4rem; font-weight: 850; line-height: 1; color: #fff; }
.lp-seal span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #ffb592; font-weight: 700; text-align: center; }

.lp-final-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); width: 100%; max-width: 620px; margin: var(--s6) 0; }
.lp-final-stats div { display: flex; flex-direction: column; }
.lp-final-stats strong { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 850; color: #fff; letter-spacing: -.04em; }
.lp-final-stats span { color: rgba(255, 255, 255, .6); font-size: var(--fs-sm); }
.lp-final .lp-p { max-width: 560px; }

.lp-sticky { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 10px 10px 10px 16px; border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform var(--t-med) var(--ease); }
.lp-sticky.is-visible { transform: none; }
.lp-sticky strong { display: block; font-size: var(--fs-sm); }
.lp-sticky small { color: rgba(255, 255, 255, .6); font-size: var(--fs-xs); }
@media (min-width: 900px) { .lp-sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .lp-marquee-track, .lp-wall-track { animation: none; }
  .lp-wall-row { overflow-x: auto; }
}
@media (max-width: 519px) { .lp-hide-sm { display: none; } }

/* =====================================================================
   CHECKOUT PREMIUM (co-*), oferta de recuperação (rec-*) e upsell (up-*)
   ===================================================================== */
:root { --buy: #0d8a3e; --buy-hover: #0a7534; --buy-press: #08622b; --buy-soft: #e7f7ed; --buy-ring: rgba(13, 138, 62, .28); }
.btn-buy { background: var(--buy); color: #fff; border: 1px solid transparent; font-weight: 750; letter-spacing: .01em; box-shadow: 0 8px 20px -8px rgba(13, 138, 62, .55), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-buy:hover { background: var(--buy-hover); color: #fff; }
.btn-buy:active { background: var(--buy-press); transform: translateY(1px); }
.btn-buy:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--buy-ring); }
.btn-buy:disabled { opacity: .6; cursor: not-allowed; }
.btn-buy .icon { color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.co-body { background: var(--bg); }
.co-container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--s4); }
.co-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.co-header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 60px; }
.co-secure { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 650; color: var(--success-ink); background: var(--success-soft); padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.co-footer { margin-top: var(--s12); padding: var(--s8) 0 calc(var(--s16) + 40px); border-top: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm); color: var(--text-3); text-align: center; }
.co-footer p { margin: 4px 0; }
.co-footer-guarantee { display: inline-flex; gap: 6px; align-items: center; color: var(--success-ink); font-weight: 650; margin-bottom: var(--s3) !important; }

.co-banner { width: 100%; background: var(--ink); }
.co-banner img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.co-head { text-align: center; padding: var(--s8) 0 var(--s6); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.co-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; margin: 0; }
.co-sub { color: var(--text-2); max-width: 58ch; margin: 0; font-size: var(--fs-md); }
.co-muted { color: var(--text-2); }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.co-main { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.co-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-sm); }
.co-section-title { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-lg); margin: 0 0 var(--s3); letter-spacing: -.01em; }
.co-section-title .icon { color: var(--brand); }

.co-offer { border: 2px solid var(--brand); position: relative; }
.co-offer-top { display: flex; gap: var(--s4); align-items: flex-start; }
.co-offer-art { flex: none; width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #7a4ef0); color: #fff; }
.co-offer-art .icon { width: 28px; height: 28px; }
.co-offer-name { font-size: var(--fs-xl); margin: 2px 0 4px; letter-spacing: -.01em; }
.co-offer-price { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0; padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.co-offer-price > div { display: flex; flex-direction: column; }
.co-price { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); letter-spacing: -.03em; line-height: 1.1; color: var(--text); white-space: nowrap; }
.co-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 6px 10px; border-radius: var(--r-pill); }
.co-benefits { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.co-benefits li { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--fs-base); }
.co-benefits .icon { color: var(--success); flex: none; margin-top: 2px; }

.co-guarantee { display: flex; gap: var(--s4); align-items: center; padding: var(--s4); border-radius: var(--r-md); background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); color: var(--success-ink); }
.co-guarantee strong { color: var(--success-ink); display: block; }
.co-guarantee p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.co-guarantee-seal { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; text-transform: uppercase; line-height: 1; gap: 2px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }
.co-guarantee-seal .icon { width: 22px; height: 22px; }
.co-guarantee-sm { margin-top: var(--s3); padding: var(--s3); gap: var(--s3); }
.co-guarantee-sm .co-guarantee-seal { width: 48px; height: 48px; font-size: 9px; }
.co-guarantee-sm .co-guarantee-seal .icon { width: 18px; height: 18px; }
.co-guarantee-sm p { margin: 0; }

.co-proof { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.co-quote { margin: 0; padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s3); }
.co-quote blockquote { margin: 0; font-size: var(--fs-base); color: var(--text); }
.co-quote figcaption { display: flex; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.co-quote figcaption img, .co-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.co-avatar { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.co-quote figcaption span { display: flex; flex-direction: column; }
.co-quote small { color: var(--text-3); }
.co-stars { display: flex; gap: 2px; color: var(--border-strong); }
.co-stars .on { color: #f5a524; }
.co-stars .on .icon { fill: currentColor; }

.co-bumps { display: flex; flex-direction: column; gap: var(--s3); }
.co-bumps .co-section-title { margin-bottom: 0; }
.co-bump { position: relative; display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 2px dashed var(--border-strong); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.co-bump:hover { border-color: var(--buy); }
.co-bump.is-highlight { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong)); }
.co-bump.is-on { border-style: solid; border-color: var(--buy); background: color-mix(in srgb, var(--buy-soft) 70%, var(--surface)); box-shadow: 0 0 0 3px var(--buy-ring); }
.co-bump-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-bump-input:focus-visible + .co-bump-check { box-shadow: 0 0 0 4px var(--buy-ring); }
.co-bump-check { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--border-strong); display: grid; place-items: center; background: var(--surface); margin-top: 2px; color: transparent; transition: all .15s; }
.co-bump.is-on .co-bump-check { background: var(--buy); border-color: var(--buy); color: #fff; }
.co-bump-check .icon { width: 16px; height: 16px; stroke-width: 3; }
.co-bump-img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.co-bump-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.co-bump-top { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.co-bump-name { font-size: var(--fs-md); }
.co-tag { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 8px; border-radius: var(--r-pill); }
.co-bump-desc { font-size: var(--fs-sm); color: var(--text-2); }
.co-bump-bullets { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.co-bump-bullets .icon { color: var(--success); width: 14px; height: 14px; vertical-align: -2px; }
.co-bump-cta { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: 4px; }
.co-bump-add { font-weight: 700; color: var(--buy-hover); font-size: var(--fs-sm); }
.co-bump-price { font-weight: 800; font-size: var(--fs-md); white-space: nowrap; }
.co-bump-price s { color: var(--text-3); font-weight: 500; font-size: var(--fs-sm); }

.co-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.co-pay { display: flex; gap: var(--s3); align-items: flex-start; }
.co-pay-logo { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: #00b1ea; color: #fff; display: grid; place-items: center; }
.co-pay p { margin: 4px 0 0; }

.co-side { min-width: 0; }
.co-summary { display: flex; flex-direction: column; gap: var(--s3); }
.co-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.co-lines li { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.co-lines li span:last-child { white-space: nowrap; color: var(--text); font-weight: 600; }
.co-lines li.is-rec span:last-child { color: var(--buy-hover); }
.co-lines-plain { width: 100%; max-width: 420px; margin: var(--s4) auto 0; padding: var(--s4); background: var(--surface-2); border-radius: var(--r-md); text-align: left; }
.co-lines-plain .is-total { border-top: 1px solid var(--border); padding-top: var(--s2); font-weight: 700; color: var(--text); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s3); border-top: 1px dashed var(--border-strong); }
.co-total span { font-weight: 650; }
.co-total strong { font-size: var(--fs-3xl); letter-spacing: -.03em; white-space: nowrap; }
.co-cta { min-height: 60px; font-size: var(--fs-md); white-space: normal; line-height: 1.2; text-align: center; }
.co-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.co-trust li { display: flex; gap: 6px; align-items: center; }
.co-trust .icon { color: var(--success); }

.co-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(13, 19, 33, .25); transition: transform .2s var(--ease, ease); }
.co-bar > div { display: flex; flex-direction: column; line-height: 1.1; }
.co-bar strong { font-size: var(--fs-xl); white-space: nowrap; }
.co-bar .btn { min-height: 48px; padding-inline: var(--s5); }
.co-bar.is-hidden { transform: translateY(110%); }

@media (min-width: 600px) {
  .co-fields { grid-template-columns: 1fr 1fr; }
  .co-proof { grid-template-columns: 1fr 1fr; }
  .co-card { padding: var(--s6); }
}
@media (min-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: var(--s6); }
  .co-side { position: sticky; top: var(--s5); }
  .co-bar { display: none; }
  .co-footer { padding-bottom: var(--s8); }
}

/* Oferta de recuperação: quase tela cheia no celular, painel centralizado no desktop */
.rec-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(8, 12, 24, .62); display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: fade-in .2s ease both; }
.rec-panel { position: relative; width: 100%; max-height: 94dvh; overflow: auto; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); animation: fade-up .25s var(--ease, ease) both; }
.rec-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 1; }
.rec-close:focus-visible { outline: 3px solid var(--brand); }
.rec-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.rec-body { padding: var(--s6) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--s3); }
.rec-title { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.9rem); letter-spacing: -.02em; margin: 0; }
.rec-sub { margin: 0; color: var(--text-2); }
.rec-list { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s2) 0; }
.rec-item { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border: 2px solid var(--border); border-radius: var(--r-md); cursor: pointer; }
.rec-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rec-item.is-on { border-color: var(--buy); background: color-mix(in srgb, var(--buy-soft) 60%, var(--surface)); }
.rec-item.is-on .co-bump-check { background: var(--buy); border-color: var(--buy); color: #fff; }
.rec-item-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rec-item-body small { color: var(--text-2); font-size: var(--fs-xs); }
.rec-item-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.rec-item-price s { color: var(--text-3); font-size: var(--fs-xs); }
.rec-item-price strong { font-size: var(--fs-lg); color: var(--buy-hover); }
.rec-item-price em { font-style: normal; font-size: 11px; font-weight: 750; color: var(--accent-ink); }
.rec-decline { background: none; border: 0; color: var(--text-2); font: inherit; font-size: var(--fs-sm); text-decoration: underline; padding: var(--s3); cursor: pointer; min-height: 44px; }
.rec-note { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: var(--fs-xs); color: var(--success-ink); margin: 0; text-align: center; }
@media (min-width: 640px) {
  .rec-overlay { align-items: center; padding: var(--s4); }
  .rec-panel { max-width: 520px; border-radius: var(--r-xl); }
}

/* Upsell */
.co-upsell { max-width: 640px; padding-top: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.up-confirm { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); border-radius: var(--r-md); background: var(--success-soft); color: var(--success-ink); }
.up-confirm div { display: flex; flex-direction: column; }
.up-confirm span { font-size: var(--fs-sm); }
.up-confirm-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex: none; }
.up-card { display: flex; flex-direction: column; gap: var(--s4); text-align: left; }
.up-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.1rem); letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.up-img { width: 100%; border-radius: var(--r-md); object-fit: cover; }
.up-price { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); text-align: center; }
.up-decline { display: block; width: 100%; background: none; border: 1px solid var(--border-strong); border-radius: var(--r-md); color: var(--text-2); font: inherit; font-weight: 600; padding: var(--s3); min-height: 48px; cursor: pointer; }
.up-decline:hover { color: var(--text); border-color: var(--text-3); }

/* Banner de consentimento de cookies (marketing) */
.consent { position: fixed; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 95; max-width: 560px; margin-inline: auto; padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: var(--s3); font-size: var(--fs-sm); }
.consent p { margin: 0; color: var(--text-2); }
.consent-actions { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.co-body .consent { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .co-body .consent { bottom: var(--s3); } }
.co-bump-bullets > span { display: flex; gap: 6px; align-items: flex-start; }
.co-bump-bullets .icon { flex: none; margin-top: 3px; vertical-align: 0; }
.rec-body > .badge { align-self: flex-start; margin-right: 44px; }
@media (max-width: 420px) {
  .co-header .brand-sub, .co-header .brand small { display: none; }
  .co-secure { font-size: var(--fs-xs); padding: 5px 10px; }
}
.co-header .brand-name { white-space: nowrap; }

/* Admin — Checkout / Ofertas */
.offer-card { scroll-margin-top: 80px; }
.offer-rec { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.offer-image { display: flex; gap: var(--s3); align-items: flex-end; flex-wrap: wrap; }
.offer-image img { border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--border); }
.offer-reauth summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--warning-ink); }
.banner-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--border); }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list-plain li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.preview-frame { background: var(--surface-3); border-radius: var(--r-lg); padding: var(--s4); overflow-x: auto; display: flex; justify-content: center; }
.preview-frame iframe { border: 1px solid var(--border-strong); border-radius: 18px; background: #fff; max-width: none; transition: width .2s var(--ease); box-shadow: var(--shadow-md); }
section[id] { scroll-margin-top: 72px; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger-ink); }

/* =====================================================================
   ADMIN — Analytics / Funil / Jornadas
   ===================================================================== */
.kpi-label { display: block; font-size: var(--fs-sm); color: var(--text-3); font-weight: 550; }
.kpi-value { display: block; font-size: var(--fs-2xl); font-weight: 750; letter-spacing: -.03em; line-height: 1.2; margin: 4px 0 2px; white-space: nowrap; }
.kpi-sub { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.kpi-delta { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-xs); font-weight: 650; padding: 1px 6px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); }
.kpi-delta.up { background: var(--success-soft); color: var(--success-ink); }
.kpi-delta.down { background: var(--danger-soft); color: var(--danger-ink); }
.kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.period-bar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.period-custom { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: var(--fs-sm); width: auto; }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; margin-bottom: var(--s4); }
.filter-row .field { min-width: 150px; flex: 1 1 150px; }
.filter-row .select, .filter-row .input { min-height: 38px; font-size: var(--fs-sm); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-ink); }

.an-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .an-grid-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .an-grid-2e { grid-template-columns: 1fr 1fr; } }

/* Gráfico de linha (1 série: sem legenda, o título nomeia) */
.lc { position: relative; }
.lc svg { display: block; width: 100%; height: auto; overflow: visible; }
.lc .grid line { stroke: var(--border); stroke-width: 1; }
.lc .axis text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.lc .area { fill: var(--brand); opacity: .10; }
.lc .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc .dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.lc .cross { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.lc-tip { position: absolute; pointer-events: none; transform: translate(-50%, -110%); background: var(--ink); color: #fff; font-size: var(--fs-xs); padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-md); }
.lc-tip strong { display: block; font-size: var(--fs-sm); }
.lc-empty { padding: var(--s8) var(--s4); text-align: center; color: var(--text-3); font-size: var(--fs-sm); }

/* Funil */
.fn { display: flex; flex-direction: column; gap: 10px; }
.fn-row { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: var(--s3); align-items: center; }
.fn-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.fn-track { position: relative; height: 34px; border-radius: 8px; background: var(--surface-3); }
.fn-fill { position: absolute; inset: 0 auto 0 0; border-radius: 8px 4px 4px 8px; background: var(--brand); min-width: 3px; }
.fn-val { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); background: var(--surface); padding: 1px 8px; border-radius: 6px; box-shadow: var(--shadow-xs); }
.fn-meta { grid-column: 2; display: flex; gap: var(--s3); font-size: var(--fs-xs); color: var(--text-3); margin-top: -4px; }
.fn-meta .drop { color: var(--danger-ink); font-weight: 600; }
.fn-row:focus-within .fn-fill, .fn-row:hover .fn-fill { background: var(--brand-hover); }
@media (max-width: 560px) { .fn-row { grid-template-columns: 1fr; gap: 4px; } .fn-meta { grid-column: 1; margin-top: 0; } }

.bottleneck { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5); border-radius: var(--r-lg); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.bottleneck .big { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; color: var(--danger-ink); line-height: 1; }
.rank { list-style: none; padding: 0; margin: 0; counter-reset: rank; display: flex; flex-direction: column; gap: var(--s2); }
.rank li { counter-increment: rank; display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s2); align-items: center; font-size: var(--fs-sm); }
.rank li::before { content: counter(rank); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs); }

/* Barras horizontais (origem, dispositivo) */
.hb { display: flex; flex-direction: column; gap: 10px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 72px; gap: var(--s2); align-items: center; font-size: var(--fs-sm); }
.hb-track { height: 10px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hb-fill { height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hb-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Jornadas */
.jr-list { display: flex; flex-direction: column; }
.jr-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.jr-item:last-child { border-bottom: 0; }
.jr-steps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: var(--fs-xs); color: var(--text-2); margin-top: 4px; }
.jr-steps .sep { color: var(--text-3); }
.checklist-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ck { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; background: var(--surface-3); color: var(--text-3); }
.ck.ok { background: var(--success-soft); color: var(--success-ink); }
.ck.no { background: var(--danger-soft); color: var(--danger-ink); }
.ck.wait { background: var(--warning-soft); color: var(--warning-ink); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-session { position: relative; margin: var(--s4) 0 var(--s2) 36px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tl-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: var(--s2); padding: 6px 0; }
.tl-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: grid; place-items: center; color: var(--brand); z-index: 1; }
.tl-icon .icon { width: 15px; height: 15px; }
.tl-item.is-key .tl-icon { border-color: var(--brand); background: var(--brand-soft); }
.tl-item.is-money .tl-icon { border-color: var(--success); background: var(--success-soft); color: var(--success-ink); }
.tl-item.is-bad .tl-icon { border-color: var(--danger); color: var(--danger); }
.tl-body { display: flex; flex-direction: column; min-width: 0; padding-top: 5px; }
.tl-body time { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-body strong { font-size: var(--fs-sm); }
.tl-body small { color: var(--text-2); font-size: var(--fs-xs); word-break: break-word; }
.tl-end { margin-left: 36px; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: var(--fs-sm); color: var(--text-2); }

.lp-guarantee-line { display: flex; gap: 6px; align-items: flex-start; justify-content: center; margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--success-ink); text-align: center; }
.lp-guarantee-line .icon { flex: none; margin-top: 2px; }
@media (max-width: 380px) { .co-hide-xs { display: none; } .co-header-in { gap: var(--s2); } }
.table .cell-title + .cell-sub { display: block; margin-top: 2px; }
