:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #dbe2ea;
  --accent: #2457e6;
  --accent-dark: #183aa8;
  --good: #147a51;
  --warn: #a45f00;
  --danger: #b3261e;
  --shadow: 0 18px 50px rgba(20, 36, 70, 0.10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 226, 234, 0.75);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: white; font-weight: 900; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.hero { padding: 76px 0 52px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px; border-radius: 999px; background: #e7edff; color: var(--accent-dark); font-size: 13px; font-weight: 750; }
h1 { font-size: clamp(42px, 6vw, 70px); line-height: 1.02; letter-spacing: -0.055em; margin: 18px 0 20px; max-width: 780px; }
.hero p { color: var(--muted); font-size: 19px; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 10px 24px rgba(36,87,230,.24); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--accent); padding-inline: 0; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 26px; }
.hero-card .mini-label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.score-ring { width: 132px; height: 132px; border-radius: 50%; margin: 24px auto; display: grid; place-items: center; background: conic-gradient(var(--warn) 0 42%, #e6ebf1 42%); position: relative; }
.score-ring::after { content: ""; width: 98px; height: 98px; background: var(--surface); border-radius: 50%; position: absolute; }
.score-ring strong { z-index: 1; font-size: 30px; letter-spacing: -.03em; }
.mini-list { display: grid; gap: 10px; }
.mini-item { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
.mini-item span:last-child { font-weight: 800; }
.section { padding: 70px 0; }
.section-header { max-width: 760px; margin-bottom: 28px; }
.section-header h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 12px; }
.section-header p { color: var(--muted); font-size: 18px; }
.demo-shell { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(20, 36, 70, .05); }
.panel-pad { padding: 22px; }
.case-picker label { display: block; font-weight: 800; margin-bottom: 9px; }
.case-picker select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: white; color: var(--text); }
.note { margin-top: 16px; padding: 12px; border-radius: 11px; background: #fff7e8; color: #6f4700; font-size: 13px; border: 1px solid #f0d39d; }
.original-report { min-height: 210px; white-space: pre-wrap; background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: #334155; }
.progress { display: none; margin-top: 18px; }
.progress.active { display: block; }
.progress-track { height: 8px; border-radius: 999px; background: #e7ebf0; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.progress-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.results { display: none; }
.results.active { display: block; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.metric .label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric .value { font-size: 28px; font-weight: 850; margin-top: 4px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.result-card h3 { margin: 0 0 12px; font-size: 17px; }
.result-card ul { padding-left: 20px; margin: 0; }
.result-card li + li { margin-top: 8px; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.tag-warning { background: #fff0cf; color: #7a4a00; }
.tag-danger { background: #ffe5e2; color: #8a1b13; }
.tag-good { background: #dcf5e9; color: #0e6842; }
.timeline { width: 100%; border-collapse: collapse; font-size: 14px; }
.timeline th, .timeline td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.timeline th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.report-output { white-space: pre-wrap; background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-height: 260px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-number { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e7edff; color: var(--accent-dark); font-weight: 850; }
.step-card h3 { margin: 14px 0 8px; }
.step-card p { color: var(--muted); margin: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 25px; position: relative; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-badge { position: absolute; right: 18px; top: 18px; background: #e7edff; color: var(--accent-dark); padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.price { font-size: 42px; font-weight: 900; letter-spacing: -.04em; margin: 10px 0; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card ul { padding-left: 19px; color: var(--muted); min-height: 150px; }
.banner { padding: 22px; background: #172033; color: white; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.banner p { color: #c9d1de; margin: 5px 0 0; }
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.disclaimer { padding: 14px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; color: var(--muted); font-size: 13px; }
.page-hero { padding: 70px 0 32px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); }
.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 8px 30px rgba(20,36,70,.05); }
.content-card h2 { margin-top: 0; }
.content-card + .content-card { margin-top: 18px; }
.checklist { display: grid; gap: 10px; padding: 0; list-style: none; }
.checklist li::before { content: "✓"; color: var(--good); font-weight: 900; margin-right: 10px; }
@media (max-width: 900px) {
  .hero-grid, .demo-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .metric-row, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media print {
  .nav, .hero, .section:not(#report-print), .footer, .actions-row { display: none !important; }
  body { background: white; }
  #report-print { display: block !important; padding: 0; }
  .panel { border: none; box-shadow: none; }
}
