/* ── Design Tokens ── */
:root {
  color-scheme: dark;
  --bg: hsl(0 0% 4%);
  --bg-1: hsl(0 0% 5%);
  --bg-2: hsl(0 0% 7%);
  --bg-3: hsl(0 0% 10%);
  --bg-4: hsl(0 0% 14%);
  --border: hsl(0 0% 18%);
  --gold: hsl(41 85% 72%);
  --gold-dim: hsl(41 60% 55%);
  --gold-bg: hsl(41 85% 72% / 0.08);
  --gold-bg-strong: hsl(41 85% 72% / 0.15);
  --text: hsl(0 0% 93%);
  --text-dim: hsl(0 0% 65%);
  --text-muted: hsl(0 0% 42%);
  --green: hsl(145 60% 50%);
  --green-bg: hsl(145 60% 50% / 0.1);
  --amber: hsl(38 90% 58%);
  --amber-bg: hsl(38 90% 58% / 0.1);
  --red: hsl(0 72% 60%);
  --red-bg: hsl(0 72% 60% / 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: 'Inter', system-ui, sans-serif;
  --transition: 200ms ease;
  --shadow: 0 4px 24px hsl(0 0% 0% / 0.4);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: hsl(42 30% 97%);
  --bg-1: hsl(0 0% 100%);
  --bg-2: hsl(42 22% 94%);
  --bg-3: hsl(42 20% 90%);
  --bg-4: hsl(42 14% 84%);
  --border: hsl(38 18% 78%);
  --gold: hsl(41 72% 42%);
  --gold-dim: hsl(41 72% 36%);
  --gold-bg: hsl(41 85% 42% / 0.1);
  --gold-bg-strong: hsl(41 85% 42% / 0.18);
  --text: hsl(210 18% 12%);
  --text-dim: hsl(210 10% 34%);
  --text-muted: hsl(210 8% 48%);
  --green: hsl(145 55% 34%);
  --green-bg: hsl(145 55% 34% / 0.1);
  --amber: hsl(36 90% 44%);
  --amber-bg: hsl(38 90% 48% / 0.12);
  --red: hsl(0 68% 48%);
  --red-bg: hsl(0 72% 50% / 0.1);
  --shadow: 0 4px 24px hsl(34 30% 30% / 0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

body.app-fullscreen-fallback {
  min-height: 100dvh;
  overflow-x: hidden;
}

body.app-fullscreen-fallback .site-header {
  position: fixed;
  right: 0;
  left: 0;
}

body.app-fullscreen-fallback .app-main {
  padding-top: 92px;
}

body.app-fullscreen-fallback .site-footer {
  display: none;
}

body.prompt-open {
  overflow: hidden;
}

h1, h2, h3 { line-height: 1.3; font-weight: 700; }
p { color: var(--text-dim); }
a { color: var(--gold); text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gold-bg);
  padding: 3px 8px;
  border-radius: 4px;
}
.brand-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: none;
}
@media (min-width: 480px) {
  .brand-title { display: block; }
}

/* ── Tab Nav ── */
.tab-nav {
  display: flex;
  gap: 6px;
  background: var(--bg-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.tab-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--gold);
  color: hsl(0 0% 4%);
}
.tab-btn:hover:not(.active) {
  color: var(--text);
  background: var(--bg-3);
}

.mobile-menu-toggle {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.utility-btn {
  min-height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.utility-btn:hover,
.utility-btn:focus-visible {
  color: var(--text);
  border-color: var(--gold-dim);
  background: var(--gold-bg);
  outline: none;
}

.utility-icon {
  width: 16px;
  text-align: center;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

.fullscreen-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  position: relative;
  border: 2px solid var(--gold);
  border-radius: 3px;
}

.fullscreen-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--bg-2);
}

.utility-btn.is-active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.utility-btn.is-active .utility-icon,
.utility-btn.is-active .fullscreen-icon {
  color: var(--bg);
  border-color: var(--bg);
}

/* ── Fullscreen Prompt ── */
.fullscreen-prompt[hidden] {
  display: none;
}

.fullscreen-prompt {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: hsl(0 0% 0% / 0.68);
  backdrop-filter: blur(12px);
}

.fullscreen-prompt-card {
  width: min(100%, 420px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  box-shadow: var(--shadow);
  padding: 24px;
}

.fullscreen-prompt-card h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 22px;
}

.fullscreen-prompt-card p:not(.eyebrow) {
  font-size: 14px;
}

.fullscreen-prompt-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

.fullscreen-prompt-actions .btn-primary,
.fullscreen-prompt-actions .btn-reset {
  width: 100%;
  min-height: 44px;
  text-align: center;
}

/* ── Main ── */
.app-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ── Tab Panels ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Guide Hero ── */
.guide-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.guide-hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--text);
  margin-bottom: 16px;
  max-width: 640px;
}
.guide-intro {
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 28px;
}
.timeline-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.tl-item span:nth-child(2) { flex: 1; color: var(--text-dim); }
.tl-item strong { color: var(--gold); font-size: 13px; }
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Guide Module ── */
.guide-module {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-2);
  transition: border-color var(--transition);
}
.guide-module:has(.module-header[aria-expanded="true"]) {
  border-color: var(--gold-dim);
}
.module-header {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition);
  text-align: left;
}
.module-header:hover {
  background: var(--bg-3);
}
.module-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.module-number {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-bg);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.module-meta h2 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.module-meta p {
  font-size: 12px;
  margin: 0;
}
.chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.module-header[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.module-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
}
.module-body.open { display: block; }
.module-body > p { margin-bottom: 20px; padding-top: 20px; }
.module-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 24px 0 12px;
}
.module-body h3:first-child { margin-top: 20px; }

/* ── Info Table ── */
.info-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 14px;
  font-size: 13px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row.header {
  background: var(--bg-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.info-row.highlight { background: var(--gold-bg); }
.info-row span:first-child { color: var(--text); font-weight: 600; }
.info-row span:nth-child(2) { color: var(--text-dim); }
.info-row span:nth-child(3) { color: var(--text-dim); }
.info-row.highlight span { color: var(--gold-dim) !important; }
.info-row.highlight span:first-child { color: var(--gold) !important; }

/* ── Weight Bars ── */
.weight-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.weight-item {
  display: grid;
  grid-template-columns: 1fr 100px 40px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.weight-item span:first-child { color: var(--text-dim); }
.bar {
  height: 6px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 99px;
  transition: width 1s ease;
}
.pct { font-size: 12px; font-weight: 700; color: var(--gold); }

/* ── Insight Box ── */
.insight-box {
  display: flex;
  gap: 12px;
  background: var(--gold-bg);
  border: 1px solid hsl(41 85% 72% / 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 16px 0;
}
.insight-box.warning {
  background: var(--amber-bg);
  border-color: hsl(38 90% 58% / 0.2);
}
.insight-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.insight-box > div { font-size: 13px; }
.insight-box strong { color: var(--text); display: block; margin-bottom: 4px; }
.insight-box p { margin: 0; color: var(--text-dim); }

/* ── Myth List ── */
.myth-list { display: flex; flex-direction: column; gap: 12px; }
.myth {
  display: flex;
  gap: 12px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.myth-x { font-size: 16px; flex-shrink: 0; }
.myth strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 4px; }
.myth p { font-size: 13px; margin: 0; }

/* ── Criteria List ── */
.criteria-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.criteria-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  align-items: flex-start;
}
.criteria-item.ok { background: var(--green-bg); }
.criteria-item.warn { background: var(--amber-bg); }
.criteria-item.bad { background: var(--red-bg); }
.criteria-item span:first-child { flex-shrink: 0; margin-top: 1px; }
.criteria-item div { color: var(--text-dim); }
.criteria-item strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ── Law List ── */
.law-list { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.law-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.law-number {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}
.law-card h3 { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.law-card p { font-size: 13px; margin-bottom: 10px; }
.law-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dim);
  background: var(--gold-bg);
  border-radius: 6px;
  padding: 8px 12px;
}

/* ── Timeline Steps ── */
.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 10px;
  margin-bottom: 20px;
}
.ts-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-left: 2px solid var(--border);
  padding-left: 20px;
  position: relative;
  font-size: 13px;
}
.ts-dot {
  position: absolute;
  left: -5px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 2px solid var(--border);
}
.ts-item.accent { border-left-color: var(--gold); }
.ts-item.accent .ts-dot { background: var(--gold); border-color: var(--gold); }
.ts-item strong { color: var(--text); }

/* ── Script List ── */
.script-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.script-card {
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.script-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.script-card blockquote {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  border-left: 2px solid var(--gold-dim);
  padding-left: 12px;
}

/* ── Card Tags (cartões) ── */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.card-tag {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ── Score Calc ── */
.score-calc {
  background: var(--bg-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.sc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 12px;
}
.sc-item:last-child { border-bottom: none; }
.sc-item span { color: var(--text-dim); }
.sc-item strong { color: var(--text); flex-shrink: 0; }
.sc-item.total {
  background: var(--gold-bg);
  padding: 14px;
}
.sc-item.total span { color: var(--text); font-weight: 700; }
.sc-item.total strong { color: var(--gold); font-size: 16px; }

/* ── Guide List ── */
.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.guide-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.guide-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── Guide CTA ── */
.guide-cta {
  margin-top: 40px;
  padding: 40px;
  background: var(--gold-bg);
  border: 1px solid hsl(41 85% 72% / 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}
.guide-cta p {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 20px;
}
.btn-primary {
  background: var(--gold);
  color: hsl(0 0% 5%);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-block;
}
.btn-primary:hover {
  background: hsl(41 85% 80%);
  transform: translateY(-1px);
}

/* ── Checklist Hero ── */
.checklist-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.checklist-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 8px;
}
.checklist-hero > p { margin-bottom: 24px; }

/* ── Diagnostic ── */
.diagnostic-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.diagnostic-hero h1 {
  max-width: 680px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(24px, 4vw, 36px);
}

.diagnostic-hero p:not(.eyebrow) {
  max-width: 640px;
}

.diagnostic-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: start;
  gap: 20px;
}

.diagnostic-form,
.diagnostic-result {
  min-width: 0;
}

.diagnostic-progress {
  position: sticky;
  top: 72px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.diagnostic-progress strong {
  color: var(--gold);
}

.diagnostic-question {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.diagnostic-question legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.diagnostic-question legend span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--gold-bg);
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
}

.diagnostic-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.diagnostic-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.diagnostic-option:hover {
  border-color: var(--gold-dim);
  background: var(--gold-bg);
  color: var(--text);
}

.diagnostic-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-bg-strong);
  color: var(--text);
}

.diagnostic-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.diagnostic-actions.stacked {
  align-items: stretch;
  flex-direction: column;
}

.diagnostic-result {
  position: sticky;
  top: 72px;
}

.result-empty,
.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px;
}

.result-empty strong,
.result-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-empty p {
  margin: 0;
  font-size: 13px;
}

.result-card h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 20px;
}

.result-card > p {
  margin-bottom: 16px;
  font-size: 14px;
}

.risk-list,
.next-step {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.risk-list strong,
.next-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.risk-list ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
}

.risk-list li,
.next-step p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
}

.next-step p {
  margin: 0;
}

.diagnostic-disclaimer {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  font-style: italic;
}

.profile-trails {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.trails-header {
  margin-bottom: 18px;
}

.trails-header h2 {
  max-width: 620px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 28px);
}

.trail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trail-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.trail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trail-tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--gold-bg);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trail-focus {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.trail-block {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.trail-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trail-block ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
}

.trail-block li {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.trail-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trail-docs span {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ── Readiness Calculator ── */
.readiness-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.readiness-hero h1 {
  max-width: 680px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(24px, 4vw, 36px);
}

.readiness-hero p:not(.eyebrow) {
  max-width: 640px;
}

.readiness-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
  gap: 20px;
}

.readiness-form,
.readiness-result {
  min-width: 0;
}

.readiness-form {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input,
.input-group select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-1);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--gold);
}

.readiness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.readiness-result {
  position: sticky;
  top: 72px;
}

.readiness-empty,
.readiness-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px;
}

.readiness-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.readiness-empty p {
  margin: 0;
  font-size: 13px;
}

.readiness-card {
  border-color: var(--gold-dim);
}

.readiness-card h2 {
  margin: 8px 0;
  color: var(--text);
  font-size: 28px;
}

.readiness-card > p {
  margin-bottom: 14px;
  font-size: 14px;
}

.traffic-light {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-3);
}

.traffic-light span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-4);
}

.traffic-light span:nth-child(1).active { background: var(--red); }
.traffic-light span:nth-child(2).active { background: var(--amber); }
.traffic-light span:nth-child(3).active { background: var(--green); }

.readiness-red { border-color: hsl(0 72% 60% / 0.45); }
.readiness-yellow { border-color: hsl(38 90% 58% / 0.45); }
.readiness-green { border-color: hsl(145 60% 50% / 0.45); }

.readiness-score {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.readiness-score span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.readiness-score strong {
  color: var(--gold);
}

.readiness-factors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.readiness-factors > div,
.readiness-actions-list {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.readiness-factors strong,
.readiness-actions-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.readiness-factors ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
}

.readiness-factors li,
.readiness-actions-list p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.readiness-actions-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

/* ── Copy Models and 90-day Plan ── */
.bonus-hero,
.plan-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.bonus-hero h1,
.plan-hero h1 {
  max-width: 700px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(24px, 4vw, 36px);
}

.bonus-hero p:not(.eyebrow),
.plan-hero p:not(.eyebrow) {
  max-width: 660px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.model-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}

.model-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}

.model-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-header h2 {
  color: var(--text);
  font-size: 16px;
}

.model-when {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.model-text {
  max-height: 260px;
  overflow: auto;
  font-style: normal;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.plan-summary > div,
.plan-profile-note,
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.plan-summary > div {
  padding: 14px;
}

.plan-summary strong,
.plan-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-summary span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.plan-profile-note {
  padding: 16px 18px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  padding: 18px;
}

.plan-card h2 {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 12px;
}

.plan-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.plan-card li {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
}

/* ── Overall Progress ── */
.overall-progress {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.op-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
}
#overall-pct { color: var(--gold); }
.progress-track {
  height: 8px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 99px;
  transition: width 400ms ease;
}
.btn-reset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-reset:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Phases ── */
.phases { display: flex; flex-direction: column; gap: 24px; }

/* ── Phase Card ── */
.phase-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.phase-card.completed { border-color: var(--green); }

.phase-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.phase-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.phase-card.completed .phase-icon { background: var(--green-bg); }
.phase-info { flex: 1; }
.phase-info h2 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.phase-info p {
  font-size: 12px;
  margin: 0;
}
.phase-window {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gold-bg);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.phase-progress {
  text-align: right;
  flex-shrink: 0;
}
.phase-pct {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  display: block;
  line-height: 1;
}
.phase-card.completed .phase-pct { color: var(--green); }
.phase-count {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* ── Phase Body ── */
.phase-body { padding: 16px 24px 20px; }

/* ── Phase Progress Bar ── */
.phase-progress-bar {
  height: 3px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}
.phase-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 99px;
  transition: width 400ms ease;
}
.phase-card.completed .phase-progress-fill {
  background: var(--green);
}

/* ── Section within Phase ── */
.checklist-section {
  margin-bottom: 16px;
}
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ── Checklist Items ── */
.checklist-items { display: flex; flex-direction: column; gap: 2px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.check-item:hover { background: var(--bg-3); }
.check-item.done { background: transparent; }

.check-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--bg-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
}
.check-item.done .check-box {
  background: var(--green);
  border-color: var(--green);
}
.check-icon {
  color: transparent;
  font-size: 12px;
  font-weight: 900;
  transition: color var(--transition);
}
.check-item.done .check-icon { color: white; }

.check-label {
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--transition), text-decoration var(--transition);
  line-height: 1.5;
}
.check-content {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}
.check-item.done .check-label {
  color: var(--text-muted);
  text-decoration: line-through;
}

.check-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.meta-chip.priority-essencial {
  border-color: hsl(0 72% 60% / 0.35);
  background: var(--red-bg);
  color: var(--red);
}

.meta-chip.priority-importante {
  border-color: hsl(38 90% 58% / 0.35);
  background: var(--amber-bg);
  color: var(--amber);
}

.meta-chip.priority-opcional {
  border-color: hsl(145 60% 50% / 0.3);
  background: var(--green-bg);
  color: var(--green);
}

.phase-gates {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 18px;
}

.phase-gates > div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  padding: 12px 14px;
}

.phase-gates strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phase-gates p,
.phase-gates li {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.phase-gates p {
  margin: 0;
}

.phase-gates ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

/* ── Phase Completion Badge ── */
.completion-badge {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  border: 1px solid hsl(145 60% 50% / 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-top: 12px;
}
.phase-card.completed .completion-badge { display: flex; }

/* ── Law Stack ── */
.law-stack { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; }
.law-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.law-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--gold-bg);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.law-item h3 { font-size: 18px; color: var(--text); margin-bottom: 10px; }
.law-item p { font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.loophole {
  background: var(--bg-4);
  border-left: 3px solid var(--gold);
  padding: 16px;
  border-radius: 4px 8px 8px 4px;
  font-size: 13px;
}
.loophole strong { color: var(--gold); display: block; margin-bottom: 6px; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }

/* ── Scenario Grid ── */
/* ── Legal Matrix ── */
.legal-matrix { margin-top: 32px; background: var(--bg-3); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.legal-matrix h3 { font-size: 14px; margin-bottom: 20px; text-align: center; color: var(--gold); }
.matrix-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.matrix-item { background: var(--bg-2); padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.matrix-item strong { color: var(--text-muted); text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; }
.matrix-item span { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  .matrix-grid { grid-template-columns: 1fr; }
  .matrix-item { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Scenario Matrix ── */
.scenario-matrix { margin-bottom: 32px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.scenario-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; padding: 16px 20px; border-bottom: 1px solid var(--border); align-items: center; gap: 16px; background: var(--bg-2); }
.scenario-row:last-child { border-bottom: none; }
.scenario-row.header { background: var(--bg-3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.scen-title { display: flex; flex-direction: column; }
.scen-title strong { color: var(--text); font-size: 14px; }
.scen-title span { font-size: 12px; color: var(--text-muted); }
.scen-lever { font-size: 13px; color: var(--gold-dim); font-weight: 600; }
.scen-target { font-size: 13px; color: var(--green); font-weight: 700; text-align: right; }

@media (max-width: 640px) {
  .scenario-row { grid-template-columns: 1fr; gap: 10px; }
  .scenario-row.header { display: none; }
  .scen-target { text-align: left; }
}

/* ── Pressure Protocol Timeline ── */
.step-by-step-box { background: var(--bg-3); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; border: 1px solid var(--border); }
.pressure-timeline { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; position: relative; padding-left: 20px; }
.pressure-timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), transparent); }
.p-time { position: relative; }
.p-time strong { color: var(--gold); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.p-time span { display: block; font-weight: 800; font-size: 16px; color: var(--text); margin-bottom: 8px; }
.p-time p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* ── Scripts Elite Section ── */
.scripts-section { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.script-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.script-header { background: var(--bg-3); padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.script-header span { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.btn-copy { background: var(--gold); color: var(--bg); border: none; padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 800; cursor: pointer; transition: 200ms; }
.btn-copy:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-copy.copied { background: var(--green); color: #fff; }
.script-body { padding: 20px; font-size: 14px; line-height: 1.6; color: var(--text); font-style: italic; background: #0c0c0c; }
:root[data-theme="light"] .script-body { background: var(--bg-1); }

/* ── Step Guide ── */
.step-guide { display: flex; flex-direction: column; gap: 24px; padding-top: 20px; }
.step-guide.compact { gap: 18px; }
.step { display: flex; gap: 20px; }
.step-num {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.step-content h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.step-content p { font-size: 14px; margin: 0; }

.legal-limit {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
  margin-bottom: 0 !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

.legal-limit strong {
  color: var(--amber);
}

/* ── Calculator Box ── */
.calculator-box { background: var(--bg-2); border: 2px solid var(--gold-dim); border-radius: var(--radius); padding: 32px; margin: 40px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.calculator-box h3 { color: var(--gold); font-size: 20px; margin-bottom: 8px; }
.calculator-box p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.calc-inputs .input-group { display: flex; flex-direction: column; gap: 8px; }
.calc-inputs label { font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.calc-inputs input { background: var(--bg-1); border: 1px solid var(--border); color: var(--text); padding: 12px; border-radius: 6px; font-size: 16px; font-weight: 600; outline: none; }
.calc-inputs input:focus { border-color: var(--gold); }
.calc-result { background: var(--bg-3); border-radius: 8px; padding: 24px; margin-bottom: 24px; text-align: center; border: 1px dashed var(--border); }
.result-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.result-value { font-size: 32px; font-weight: 900; color: var(--green); margin-bottom: 4px; }
.result-savings { font-size: 14px; color: var(--gold); font-weight: 700; }
.calc-disclaimer { font-size: 11px !important; color: var(--text-muted) !important; margin-top: 16px !important; margin-bottom: 0 !important; font-style: italic; }
.btn-calc { width: 100%; background: var(--gold); color: var(--bg); border: none; padding: 16px; border-radius: 6px; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: 300ms; }
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); filter: brightness(1.1); }

/* ── Doc Checklist ── */
.doc-checklist { background: var(--bg-2); border-radius: var(--radius); padding: 32px; margin-top: 40px; border: 1px solid var(--border); }
.doc-checklist h3 { color: var(--text); font-size: 18px; margin-bottom: 8px; }
.doc-checklist p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc-item { background: var(--bg-3); border: 1px solid var(--border); padding: 16px; border-radius: 8px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text); font-weight: 500; transition: 200ms; }
.doc-item:hover { border-color: var(--gold-dim); transform: scale(1.02); }
.doc-item span {
  min-width: 38px;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--gold-bg);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.06em;
}

/* ── Dictionary ── */
.dictionary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.dict-item { background: var(--bg-3); border-radius: 8px; padding: 20px; border: 1px solid var(--border); }
.dict-item strong { display: block; color: var(--gold); font-size: 14px; margin-bottom: 8px; text-transform: uppercase; }
.dict-item p { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* ── Official Sources ── */
.source-list {
  margin-top: 28px;
  padding: 22px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source-list h3 {
  margin: 0 0 4px;
  color: var(--text);
}

.source-list a {
  display: block;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.source-list a:hover {
  border-color: var(--gold-dim);
  background: var(--gold-bg);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-inner p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Step Details --- */
.step-details {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-details li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.step-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

/* --- Myths Section --- */
.myths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.myth-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.myth-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.myth-status.myth {
  background: #ff5252;
  color: #fff;
}

.myth-status.truth {
  background: #4caf50;
  color: #fff;
}

.myth-card p {
  font-size: 14px;
  margin: 0;
}

.truth {
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.truth strong {
  color: var(--gold);
}

/* ── Animations ── */
@keyframes checkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.check-item.just-checked .check-box { animation: checkPop 250ms ease; }

/* ── Mobile tweaks ── */
@media (max-width: 700px) {
  .header-inner {
    padding: 8px 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .brand {
    justify-content: space-between;
  }

  .brand-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-menu-toggle {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-toggle strong {
    min-width: 0;
    color: var(--gold);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-toggle:focus-visible {
    border-color: var(--gold-dim);
    outline: none;
  }

  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    width: 16px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--gold);
  }

  .mobile-menu-icon {
    position: relative;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .mobile-menu-icon::before {
    top: -5px;
  }

  .mobile-menu-icon::after {
    top: 5px;
  }

  .tab-nav {
    width: 100%;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }

  .tab-nav.is-open {
    display: grid;
  }

  .tab-btn {
    min-width: 0;
    min-height: 40px;
    padding: 8px 6px;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .utility-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .utility-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
  }

  body.app-fullscreen-fallback .app-main {
    padding-top: 142px;
  }

  body.app-fullscreen-fallback.menu-open .app-main {
    padding-top: 198px;
  }

  .diagnostic-shell {
    grid-template-columns: 1fr;
  }

  .diagnostic-progress,
  .diagnostic-result,
  .readiness-result {
    position: static;
  }

  .trail-grid {
    grid-template-columns: 1fr;
  }

  .readiness-shell,
  .readiness-grid,
  .model-grid,
  .plan-summary,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px 10px;
  }

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

  .tab-btn {
    font-size: 12px;
  }

  body.app-fullscreen-fallback .app-main {
    padding-top: 142px;
  }

  body.app-fullscreen-fallback.menu-open .app-main {
    padding-top: 246px;
  }

  .app-main {
    padding: 24px 14px 72px;
  }

  .fullscreen-prompt {
    padding: 14px;
  }

  .fullscreen-prompt-card {
    padding: 20px;
  }

  .info-row { grid-template-columns: 1fr 1fr; }
  .info-row span:last-child { display: none; }
  .info-row.header span:last-child { display: none; }
  .weight-item { grid-template-columns: 1fr 60px 36px; }
  .module-header { padding: 16px 18px; }
  .module-body { padding: 0 18px 20px; }
  .phase-header { padding: 16px 18px; }
  .phase-body { padding: 14px 18px 18px; }
  .phase-gates { grid-template-columns: 1fr; }
  .diagnostic-question,
  .result-empty,
  .result-card,
  .readiness-form,
  .readiness-empty,
  .readiness-card,
  .model-header,
  .plan-card {
    padding: 16px;
  }

  .diagnostic-question legend {
    align-items: flex-start;
  }
  .calc-inputs { grid-template-columns: 1fr; }
  .calculator-box,
  .doc-checklist,
  .guide-cta {
    padding: 22px;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-1: #ffffff;
    --bg-2: #ffffff;
    --bg-3: #f5f5f5;
    --bg-4: #eeeeee;
    --border: #d6d6d6;
    --gold: #7a5b12;
    --gold-dim: #7a5b12;
    --text: #111111;
    --text-dim: #333333;
    --text-muted: #666666;
  }

  body {
    background: #ffffff;
    color: #111111;
    font-size: 12px;
  }

  .site-header,
  .site-footer,
  .fullscreen-prompt,
  .guide-cta,
  .utility-actions,
  .mobile-menu-toggle,
  .tab-nav,
  .btn-reset,
  .btn-primary,
  .btn-copy,
  .module-header .chevron,
  .overall-progress,
  .progress-track,
  .phase-progress,
  .check-box,
  .readiness-form,
  .diagnostic-form {
    display: none !important;
  }

  .app-main {
    max-width: none;
    padding: 0;
  }

  .tab-panel {
    display: none !important;
  }

  .tab-panel.active {
    display: block !important;
  }

  .checklist-hero,
  .plan-hero,
  .bonus-hero,
  .diagnostic-hero,
  .readiness-hero {
    padding: 0 0 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #111111;
  }

  .phase-card,
  .plan-card,
  .plan-profile-note,
  .plan-summary > div,
  .model-card {
    break-inside: avoid;
    box-shadow: none;
    border-color: #d6d6d6;
  }

  .phase-body,
  .module-body {
    display: block !important;
  }

  .check-item {
    padding: 6px 0;
  }

  .check-label {
    color: #111111;
    text-decoration: none !important;
  }

  .check-meta,
  .phase-gates,
  .plan-summary,
  .plan-grid {
    gap: 8px;
  }

  .model-grid,
  .plan-grid,
  .plan-summary {
    grid-template-columns: 1fr;
  }
}
