/* ==========================================================================
   CJ Planner — Landing Page Oficial (Alinhada ao Sistema Visual cj_planner_2)
   Estética: Arquitetural, limpa, precisa ("clean e chique"), superfícies planas,
   tipografia Inter + Geist Mono com números tabulares e semântica oficial CJ.
   ========================================================================== */

:root {
  /* Superfícies claras (idênticas ao cj_planner_2/src/index.css) */
  --bg: #f7f7f8;
  --panel: #ffffff;
  --sunk: #f3f4f6;
  --hover: #eef0f2;
  --line: #e5e7eb;
  --line-2: #d2d6dc;

  /* Texto claro */
  --fg: #111418;
  --fg-2: #3b424d;
  --muted: #6b7280;

  /* Superfícies escuras (tinta / modo escuro do app) */
  --ink: #0d0f12;
  --ink-panel: #15181c;
  --ink-sunk: #101316;
  --ink-hover: #1d2126;
  --ink-line: #23272e;
  --ink-line-2: #313640;
  --ink-fg: #eceef1;
  --ink-fg-2: #c5c9d0;
  --ink-muted: #8c93a0;

  /* Marca CJ (Âmbar + Tinta) */
  --pri: #111418;
  --pri-hover: #262b34;
  --pri-fg: #ffffff;
  --accent: #f2a43a;
  --accent-hover: #e39325;
  --accent-2: #f7c46c;
  --accent-soft: #fff4e1;
  --accent-dark-soft: #2a2010;
  --accent-text: #8f5200;
  --focus: #c97a10;

  /* Status semânticos do CJ Planner */
  --week: #fff6e3;
  --week-line: #f1b453;
  --late: #fff1ef;
  --late-line: #f0a197;
  --late-text: #b42318;
  --good: #087a4c;
  --good-soft: #e6f6ee;
  --good-dark: #4fd39a;
  --bad: #c01f1f;
  --bad-soft: #fdecea;

  /* Cores oficiais das 5 Grandes Áreas */
  --s1: #3366e0;
  --s2: #e0780f; /* CIR - Cirurgia */
  --s3: #12a067; /* CLM - Clínica Médica */
  --s4: #8b5cf6; /* GO  - Ginecologia e Obstetrícia */
  --s5: #e0457b; /* PED - Pediatria */
  --s6: #0891b2; /* PRE - Preventiva */

  /* Tipografia */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Raios e sombras contidas (só para elementos flutuantes) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow-pop: 0 0 0 1px rgb(0 0 0 / 0.05), 0 16px 40px -12px rgb(0 0 0 / 0.22);
  --shadow-dark: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 56px -16px rgb(0 0 0 / 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

del {
  text-decoration: line-through;
}

::selection {
  background: rgba(242, 164, 58, 0.3);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Utilitários tipográficos e estruturais */
.num {
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum", "zero";
  letter-spacing: -0.015em;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 860px;
}

section[id] {
  scroll-margin-top: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--week-line);
  padding: 5px 11px;
  border-radius: 999px;
}

.eyebrow--dark {
  color: var(--accent-2);
  background: var(--accent-dark-soft);
  border-color: rgba(242, 164, 58, 0.35);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.sec-head--left {
  margin-left: 0;
  text-align: left;
}

.sec-title {
  margin-top: 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sec-sub {
  margin-top: 14px;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}

.accent-mark {
  color: var(--accent);
}

.accent-ink {
  color: var(--accent-text);
}

/* Marca oficial CJ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand__sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.brand--inverse .brand__name {
  color: var(--ink-fg);
}

.brand--inverse .brand__sub {
  color: var(--ink-muted);
}

/* Botões do sistema */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--accent {
  background: var(--accent);
  color: #111418;
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--pri {
  background: var(--pri);
  color: var(--pri-fg);
}

.btn--pri:hover {
  background: var(--pri-hover);
}

.btn--outline {
  background: var(--panel);
  border-color: var(--line-2);
  color: var(--fg);
}

.btn--outline:hover {
  background: var(--hover);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink-line-2);
  color: var(--ink-fg);
}

.btn--ghost-dark:hover {
  background: var(--ink-hover);
}

.btn--sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn--lg {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 1.02rem;
  border-radius: 11px;
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   1. TOPBAR FIXA
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-fg);
}

.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--ink-fg-2);
}

.topbar__nav a {
  transition: color 0.15s;
}

.topbar__nav a:hover {
  color: #ffffff;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__login {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-fg-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background-color 0.15s;
}

.topbar__login:hover {
  color: #fff;
  background: var(--ink-hover);
}

/* ==========================================================================
   2. HERO (Tinta arquitetural + Preview interativo do CJ Planner Web)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--ink-fg);
  padding: 48px 0 68px;
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: center;
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(2.25rem, 4.3vw, 3.45rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--ink-fg-2);
}

.hero__lead strong {
  color: #ffffff;
  font-weight: 600;
}

.hero__pillars {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
}

.hero__pillars li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.48;
  color: var(--ink-fg-2);
}

.hero__pillars li b {
  color: #ffffff;
  font-weight: 600;
}

.hero__check {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-dark-soft);
  border: 1px solid rgba(242, 164, 58, 0.4);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.hero__check svg {
  width: 13px;
  height: 13px;
}

.hero__cta-box {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__cta-row .btn--lg {
  padding: 13px 20px;
  font-size: 0.95rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__trust i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--good-dark);
  display: inline-block;
}

/* Mockup fiel do App cj_planner_2 no Hero */
.app-frame {
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--ink-line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.app-frame__bar {
  min-height: 38px;
  background: var(--sunk);
  border-bottom: 1px solid var(--line);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-frame__dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.app-frame__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}

.app-frame__url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.app-frame__sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--good);
  white-space: nowrap;
  flex: none;
}

.app-frame__sync::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}

.app-shell {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 420px;
  background: var(--bg);
}

.app-sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-sidebar__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 8px 4px;
}

.app-sidebar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.76rem;
  color: var(--fg-2);
}

.app-sidebar__item.is-active {
  background: var(--hover);
  color: var(--fg);
  font-weight: 600;
}

.app-sidebar__user {
  margin-top: auto;
  padding: 8px 8px 2px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--week-line);
  color: var(--accent-text);
  font-size: 0.66rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.app-sidebar__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.app-sidebar__meta b {
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__meta small {
  font-size: 0.65rem;
  color: var(--muted);
}

.app-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.app-head__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-head__sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.app-kpi {
  padding: 9px 9px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.app-kpi:last-child {
  border-right: 0;
}

.app-kpi span {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-kpi b {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.1;
}

.app-kpi b small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.app-areas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.app-area {
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-area:last-child {
  border-right: 0;
}

.app-area__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.68rem;
}

.area-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--fg-2);
}

.area-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--muted));
  flex: none;
}

.c-cir { --c: var(--s2); }
.c-clm { --c: var(--s3); }
.c-go  { --c: var(--s4); }
.c-ped { --c: var(--s5); }
.c-pre { --c: var(--s6); }

.app-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--hover);
  overflow: hidden;
}

.app-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--c, var(--accent));
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.app-card__head {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-card__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
}

.pill--week {
  background: var(--week);
  border: 1px solid var(--week-line);
  color: var(--accent-text);
}

.pill--good {
  background: var(--good-soft);
  color: var(--good);
}

.pill--late {
  background: var(--late);
  border: 1px solid var(--late-line);
  color: var(--late-text);
}

.pill--stage {
  background: var(--sunk);
  border: 1px solid var(--line);
  color: var(--fg-2);
  font-family: var(--font-mono);
  border-radius: 5px;
  padding: 1px 6px;
}

.app-hint {
  font-size: 0.68rem;
  color: var(--muted);
}

.app-todo {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.15s;
}

.app-todo:last-child {
  border-bottom: 0;
}

.app-todo.is-done {
  background: #fafbfc;
}

.app-todo.is-done .app-todo__name {
  text-decoration: line-through;
  color: var(--muted);
}

.app-todo__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.app-todo__name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-todo__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  color: var(--muted);
}

.app-todo__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.q-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--week);
  border: 1px solid var(--week-line);
  padding: 2px 7px;
  border-radius: 6px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg);
  transition: background-color 0.15s, border-color 0.15s;
}

.mini-btn:hover {
  background: var(--hover);
}

.mini-btn.is-done {
  background: var(--good-soft);
  border-color: transparent;
  color: var(--good);
}

/* ==========================================================================
   3. FAIXA DE PROVA TÉCNICA / MÉTRICAS DO SISTEMA
   ========================================================================== */
.stats-strip {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-cell__val {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
}

.stat-cell__lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.stat-cell__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   4. POR QUE + VÍDEO EXPLICATIVO
   ========================================================================== */
.why-sec {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.why-points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-point {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.why-point__num {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--sunk);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  display: grid;
  place-items: center;
}

.why-point h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.why-point p {
  font-size: 0.92rem;
  color: var(--fg-2);
  line-height: 1.55;
}

.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
}

.video-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 12px;
}

.video-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.video-card__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-card__foot {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--sunk);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--fg-2);
}

/* ==========================================================================
   5. TOUR INTERATIVO DA PLATAFORMA (5 TELAS REAIS DO cj_planner_2)
   ========================================================================== */
.tour-sec {
  padding: 96px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.seg-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.seg-tabs__bar {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  max-width: 100%;
}

.seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.seg-tab svg {
  width: 16px;
  height: 16px;
}

.seg-tab:hover {
  color: var(--fg);
}

.seg-tab.is-active {
  background: var(--panel);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.05);
}

.tour-panel {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
}

.tour-panel.is-active {
  display: grid;
  animation: fade-up 0.22s ease-out;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tour-copy h3 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 10px;
}

.tour-copy p {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.tour-bullets {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.55;
}

.tour-bullets li strong {
  color: var(--fg);
  font-weight: 600;
}

.tour-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Telas internas do Tour */
.ui-window {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}

.ui-window__top {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ui-window__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ui-window__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Planner Semanal Grid (Tab 1) */
.wk-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.wk-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wk-col--today {
  border-color: var(--accent);
  background: #fffdf9;
}

.wk-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.wk-col--today .wk-col__head {
  color: var(--accent-text);
}

.wk-task {
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow-wrap: break-word;
}

.wk-task--rev {
  background: var(--week);
  border: 1px solid var(--week-line);
}

.wk-task--shift {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--fg-2);
}

.wk-task--exam {
  background: var(--ink);
  color: #fff;
}

.wk-task__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
}

.wk-task__tags span {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--fg);
}

.wk-task--exam .wk-task__tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Tabela de Incidência / Mapa (Tabs 2 & 5) */
.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ui-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.ui-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ui-table tr:last-child td {
  border-bottom: 0;
}

.ui-table .t-right {
  text-align: right;
}

.pct-good { color: var(--good); font-weight: 700; }
.pct-warn { color: #b54708; font-weight: 700; }
.pct-bad  { color: var(--bad); font-weight: 700; }

/* Gráfico Evolução (Tab 3) */
.chart-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.74rem;
  color: var(--fg-2);
  margin-bottom: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

/* ==========================================================================
   6. SIMULADOR INTERATIVO DO MOTOR CJ® (Fórmula Oficial engine.js)
   ========================================================================== */
.sim-sec {
  padding: 96px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.sim-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
}

.sim-controls {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--line);
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sim-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--fg);
}

.sim-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--week-line);
  padding: 2px 8px;
  border-radius: 6px;
}

.sim-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--panel);
  font-size: 0.92rem;
  font-weight: 500;
}

.sim-range {
  width: 100%;
  accent-color: var(--pri);
  cursor: pointer;
}

.sim-Scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted);
}

.sim-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--sunk);
  padding: 4px;
  border-radius: 9px;
}

.sim-seg button {
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}

.sim-seg button.is-active {
  background: var(--panel);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line);
}

.sim-output {
  background: var(--ink);
  color: var(--ink-fg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.sim-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sim-stat {
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 18px;
}

.sim-stat--highlight {
  border-color: rgba(242, 164, 58, 0.5);
  background: linear-gradient(180deg, rgba(242, 164, 58, 0.1), rgba(21, 24, 28, 0.9));
}

.sim-stat__lbl {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.sim-stat__num {
  margin-top: 6px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.sim-stat--highlight .sim-stat__num {
  color: var(--accent);
}

.sim-stat__sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-fg-2);
}

.sim-breakdown {
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.84rem;
}

.sim-breakdown__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-fg-2);
}

.sim-breakdown__row b {
  font-family: var(--font-mono);
  color: #ffffff;
  text-align: right;
  white-space: nowrap;
}

.sim-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-timeline__label {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.sim-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.sim-step {
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-step b {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffffff;
}

.sim-step small {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.sim-step--active {
  border-color: var(--accent);
  background: var(--accent-dark-soft);
}

.sim-step--active b,
.sim-step--active small {
  color: var(--accent-2);
}

/* ==========================================================================
   7. ANTES × DEPOIS (Comparativo direto)
   ========================================================================== */
.compare-sec {
  padding: 96px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-col {
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--line);
}

.compare-col--before {
  background: var(--bg);
}

.compare-col--after {
  background: var(--ink);
  color: var(--ink-fg);
  border-color: var(--ink-line-2);
}

.compare-col__tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.compare-col--before .compare-col__tag {
  background: var(--late);
  color: var(--late-text);
  border: 1px solid var(--late-line);
}

.compare-col--after .compare-col__tag {
  background: var(--accent-dark-soft);
  color: var(--accent-2);
  border: 1px solid rgba(242, 164, 58, 0.4);
}

.compare-col h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.compare-col--before .compare-list li {
  color: var(--fg-2);
}

.compare-col--after .compare-list li {
  color: var(--ink-fg-2);
}

.compare-col--after .compare-list li b {
  color: #ffffff;
}

.ico-no, .ico-yes {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
}

.ico-no {
  background: var(--late);
  color: var(--late-text);
}

.ico-yes {
  background: rgba(79, 211, 154, 0.16);
  color: var(--good-dark);
}

/* ==========================================================================
   8. COMO FUNCIONA O ACESSO IMEDIATO (Substitui os "5 dias de espera" do Excel)
   ========================================================================== */
.steps-sec {
  padding: 96px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card__num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--week-line);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ==========================================================================
   9. DEPOIMENTOS DE APROVADOS (Destaques + Carrossel de Prints Reais)
   ========================================================================== */
.reviews-sec {
  padding: 96px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.quote-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.quote-card__badge {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--good);
  background: var(--good-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.quote-card blockquote {
  font-size: 0.94rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.quote-card blockquote strong {
  color: var(--fg);
  font-weight: 600;
}

.quote-card__author {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.quote-card__author b {
  display: block;
  color: var(--fg);
  font-size: 0.88rem;
}

/* Carrossel de prints reais */
.carousel {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 52px;
}

.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.carousel__title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel__track.no-anim {
  transition: none;
}

.carousel__slide {
  flex: 0 0 calc(100% / var(--per-view, 3));
  padding: 0 10px;
  display: flex;
  justify-content: center;
}

.carousel__slide img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #14171a;
}

.carousel__arrow {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--fg);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  transition: background-color 0.15s;
}

.carousel__arrow:hover {
  background: var(--hover);
}

.carousel__arrow svg {
  width: 15px;
  height: 15px;
}

.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }

/* ==========================================================================
   10. PARA QUEM É + MODALIDADES (R1, R+, TÍTULO, REVALIDA)
   ========================================================================== */
.audience-sec {
  padding: 96px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.audience-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}

.audience-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.check-list svg {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  color: var(--good);
  flex: none;
}

.tracks-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 16px;
}

.track-box strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.track-tags span {
  font-size: 0.76rem;
  color: var(--fg-2);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
}

/* ==========================================================================
   11. HISTÓRIA DO CRIADOR (Dr. José — Anestesiologia UNICAMP)
   ========================================================================== */
.story-sec {
  padding: 96px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.story-photo-wrap {
  background: var(--ink);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  overflow: hidden;
  position: relative;
}

.story-photo-wrap img {
  width: 100%;
  display: block;
}

.story-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ink-line-2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink-fg);
}

.story-badge b {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
}

.story-badge span {
  font-size: 0.78rem;
  color: var(--accent-2);
}

.story-body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.68;
}

.story-body strong {
  color: var(--fg);
  font-weight: 600;
}

/* ==========================================================================
   12. OFERTA INTEGRADA & CHECKOUT (Tudo o que vem na Plataforma)
   ========================================================================== */
.checkout-sec {
  padding: 96px 0;
  background: var(--ink);
  color: var(--ink-fg);
  border-bottom: 1px solid var(--ink-line);
}

.checkout-sec .sec-sub {
  color: var(--ink-fg-2);
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.stack-card {
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stack-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--ink-sunk);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
}

.stack-item__left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stack-item__left h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.stack-item__left p {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.stack-item__val {
  text-align: right;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.stack-item__val del {
  display: block;
  color: var(--ink-muted);
}

.stack-item__val b {
  color: var(--good-dark);
  font-size: 0.76rem;
}

.price-card {
  background: var(--ink-panel);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.price-card__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card__from {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.price-card__from del {
  color: #ff8b82;
  font-weight: 600;
}

.price-card__installments {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #ffffff;
}

.price-card__installments small {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-fg-2);
}

.price-card__installments strong {
  font-size: clamp(2.6rem, 4.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.price-card__cash {
  font-size: 0.96rem;
  color: var(--ink-fg-2);
}

.price-card__cash b {
  color: #ffffff;
}

.price-perks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  font-size: 0.86rem;
  color: var(--ink-fg-2);
}

.price-perks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.price-perks svg {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  color: var(--good-dark);
  flex: none;
}

.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ink-line);
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.48;
}

.guarantee-box b {
  color: #ffffff;
}

.guarantee-box svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 1px;
}

/* ==========================================================================
   13. PERGUNTAS FREQUENTES (FAQ Atualizado para Plataforma Web)
   ========================================================================== */
.faq-sec {
  padding: 96px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.accordion__item.is-open {
  border-color: var(--line-2);
}

.accordion__head {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  transition: background-color 0.15s;
}

.accordion__head:hover {
  background: var(--bg);
}

.accordion__chev {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
  transition: transform 0.2s ease;
}

.accordion__item.is-open .accordion__chev {
  transform: rotate(180deg);
  color: var(--fg);
}

.accordion__body {
  display: none;
  padding: 0 22px 20px;
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.65;
}

.accordion__item.is-open .accordion__body {
  display: block;
}

.accordion__body p + p {
  margin-top: 10px;
}

/* ==========================================================================
   14. DÚVIDAS / CONTATO DIRETO + RODAPÉ
   ========================================================================== */
.contact-sec {
  padding: 72px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.contact-banner {
  background: var(--ink);
  color: var(--ink-fg);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-banner h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.contact-banner p {
  margin-top: 6px;
  font-size: 0.98rem;
  color: var(--ink-fg-2);
  max-width: 540px;
}

.footer {
  background: var(--bg);
  padding: 32px 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__links a:hover {
  color: var(--fg);
}

/* ==========================================================================
   15. MODAL DE LEAD / CHECKOUT (Estilo Modal do cj_planner_2)
   ========================================================================== */
.lead {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
  color: var(--fg);
  box-shadow: var(--shadow-pop);
  overflow-y: auto;
}

.lead::backdrop {
  background: rgba(13, 15, 18, 0.65);
  backdrop-filter: blur(3px);
}

.lead[open] {
  animation: pop-modal 0.18s ease-out;
}

@keyframes pop-modal {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.lead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lead__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lead__close:hover {
  background: var(--hover);
  color: var(--fg);
}

.lead h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead__text {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.lead__notice {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--week-line);
  font-size: 0.8rem;
  color: var(--accent-text);
  line-height: 1.45;
}

.lead__form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel);
  font-size: 0.92rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(242, 164, 58, 0.25);
}

.lead__status {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--late);
  border: 1px solid var(--late-line);
  color: var(--late-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.lead__foot {
  margin-top: 12px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ==========================================================================
   RESPONSIVIDADE (Tablet & Celular — 100% fluido sem estouro horizontal)
   ========================================================================== */
@media (max-width: 1040px) {
  .topbar__nav {
    display: none;
  }

  .hero__grid,
  .why-grid,
  .tour-panel,
  .sim-card,
  .audience-grid,
  .story-grid,
  .offer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sim-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-cell:nth-child(2) {
    border-right: 0;
  }

  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-photo-wrap {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .topbar__login {
    display: none;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero__cta-row .btn {
    width: 100%;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .app-sidebar {
    display: none;
  }

  .app-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-kpi:nth-child(2) {
    border-right: 0;
  }

  .app-kpi:nth-child(1),
  .app-kpi:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .app-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-area {
    border-bottom: 1px solid var(--line);
  }

  .app-todo {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-todo__right {
    width: 100%;
    justify-content: space-between;
  }

  .stats-strip__grid,
  .compare-grid,
  .steps-grid,
  .sim-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 16px;
  }

  .stat-cell:last-child {
    border-bottom: 0;
  }

  .why-sec,
  .tour-sec,
  .sim-sec,
  .compare-sec,
  .steps-sec,
  .reviews-sec,
  .audience-sec,
  .story-sec,
  .checkout-sec,
  .faq-sec {
    padding: 64px 0;
  }

  .seg-tabs {
    justify-content: flex-start;
  }

  .tour-panel {
    padding: 20px 16px;
    gap: 24px;
  }

  .wk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wk-col:last-child {
    grid-column: 1 / -1;
  }

  .sim-controls,
  .sim-output,
  .compare-col,
  .audience-card,
  .stack-card,
  .price-card {
    padding: 24px 18px;
  }

  .sim-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sim-breakdown__row {
    flex-direction: column;
    gap: 2px;
  }

  .sim-breakdown__row b {
    text-align: left;
    white-space: normal;
  }

  .stack-item {
    flex-direction: column;
  }

  .stack-item__val {
    text-align: left;
    padding-left: 30px;
  }

  .carousel {
    padding: 20px 40px;
  }

  .contact-banner {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
