:root {
  --bg: #ffffff;
  --soft: #f3f6f4;
  --text: #17201c;
  --muted: #5a6761;
  --line: #dde4e0;
  --accent: #0f7b4f;
  --accent-dark: #0b5f3d;
  --accent-text: #ffffff;
  --good: #0f6b45;
  --good-bg: #e0f2e8;
  --warn: #8a5300;
  --warn-bg: #fdf0d5;
  --bad: #b3261e;
  --bad-bg: #fbe4e2;
  --shadow: 0 18px 50px rgba(16, 60, 40, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --soft: #1a201d;
    --text: #e9eeeb;
    --muted: #9aa7a1;
    --line: #2c3530;
    --accent: #4fc08d;
    --accent-dark: #6fd3a3;
    --accent-text: #0c1a13;
    --good: #7ad3a6;
    --good-bg: #1c3227;
    --warn: #f0c36d;
    --warn-bg: #3a2f17;
    --bad: #f2b8b5;
    --bad-bg: #40211f;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Buttons */
.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
}
a.button:hover { background: var(--accent-dark); }
.button.pending { background: var(--soft); color: var(--muted); border: 1px solid var(--line); cursor: default; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: 46px; line-height: 1.1; letter-spacing: -0.02em; }
.hero .lead { font-size: 20px; color: var(--muted); margin: 18px 0 28px; max-width: 30em; }
.hero .under { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Report preview */
.preview { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; font-size: 14px; line-height: 1.4; }
.preview-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.preview-title { font-size: 19px; font-weight: 700; }
.preview-sub { color: var(--muted); font-size: 12px; }
.preview-tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.preview-stat { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.preview-stat b { display: block; font-size: 20px; }
.preview-stat span { font-size: 11px; color: var(--muted); }
.preview table { width: 100%; border-collapse: collapse; }
.preview th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.preview td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.preview tr:last-child td { border-bottom: 0; }
.preview td:first-child { font-weight: 600; }
.preview .num { text-align: right; font-variant-numeric: tabular-nums; }
.preview tr.absent td { color: var(--muted); }
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 9px; margin-right: 3px; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }

/* Sections */
section { padding: 64px 0; }
section.tint { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { font-size: 18px; }
.plan .price { font-size: 38px; font-weight: 750; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan .price-note { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan ul { padding-left: 20px; font-size: 15px; }
.plan li { margin-bottom: 7px; }
.plan .how { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Privacy and FAQ */
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.point h3 { font-size: 17px; margin-bottom: 6px; }
.point p { color: var(--muted); font-size: 15px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.site-foot a { color: var(--muted); }

/* Privacy policy page */
.doc { max-width: 720px; padding: 32px 0 72px; }
.doc h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 8px 0 28px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p { margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--soft); border-radius: 12px; padding: 18px 20px; margin-bottom: 8px; }
.doc .summary p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 28px 0 48px; }
  .hero h1 { font-size: 36px; }
  .grid, .steps, .plans, .two { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .nav { gap: 16px; }
  .preview { overflow-x: auto; }
}

@media (max-width: 480px) {
  .nav a.hide-small { display: none; }
}
