:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #ece9e1;
  --text: #1b1f24;
  --muted: #5c636b;
  --border: #ddd8cd;
  --accent: #1d4e89;
  --accent-ink: #ffffff;
  --accent-soft: #e3ecf7;
  --red: #b42318;
  --red-soft: #fde8e6;
  --amber: #b54708;
  --amber-soft: #fdf0e0;
  --green: #067647;
  --shadow: 0 1px 2px rgba(20, 24, 30, 0.06), 0 6px 20px rgba(20, 24, 30, 0.06);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: 16px;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121519;
    --surface: #1a1e24;
    --surface-2: #22272f;
    --text: #e9e7e2;
    --muted: #a2a8b1;
    --border: #2d333c;
    --accent: #7db0ec;
    --accent-ink: #0f1a28;
    --accent-soft: #1c2d44;
    --red: #f97066;
    --red-soft: #3a1c1a;
    --amber: #f6a23b;
    --amber-soft: #3a2a14;
    --green: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #121519;
  --surface: #1a1e24;
  --surface-2: #22272f;
  --text: #e9e7e2;
  --muted: #a2a8b1;
  --border: #2d333c;
  --accent: #7db0ec;
  --accent-ink: #0f1a28;
  --accent-soft: #1c2d44;
  --red: #f97066;
  --red-soft: #3a1c1a;
  --amber: #f6a23b;
  --amber-soft: #3a2a14;
  --green: #4ade80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container.narrow { max-width: 720px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-sub { color: var(--muted); font-weight: 500; }
.site-nav { display: none; gap: 22px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .header-cta { display: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle [data-lang-opt].active { color: var(--text); }
.lang-sep { opacity: 0.5; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Hero */
.hero { padding: 56px 0 48px; }
.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 { max-width: 20ch; margin-bottom: 0.6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin-bottom: 1.6em; }
.cta-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.hero-proof {
  max-width: 60ch;
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-intro { color: var(--muted); max-width: 62ch; font-size: 1.05rem; margin-bottom: 2em; }

/* Modules */
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.module h3 { margin: 12px 0 6px; }
.module p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.module-output { border-color: var(--accent); background: var(--accent-soft); }
.module-output p { color: var(--text); }

.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 40px; height: 40px; stroke: var(--green); }

/* Report excerpt */
.report {
  margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.report-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.8rem;
}
.report-brand { font-weight: 600; letter-spacing: 0.02em; }
.report-meta { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 320px;
}
.report-table th, .report-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.report-table th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.report-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row-total td { font-weight: 600; border-top: 2px solid var(--text); }
.row-flag td { background: var(--red-soft); color: var(--red); font-weight: 600; }
.row-flag .num .flag { margin-right: 8px; vertical-align: middle; }

.flag {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.flag-red { background: var(--red); }
.flag-amber { background: var(--amber); }
.flag-green { background: var(--green); }

.findings {
  list-style: none;
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 0.92rem;
}
.findings li {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.findings li:last-child { border-bottom: 0; }
.findings .flag { position: relative; top: 1px; }
.finding-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ex-note { max-width: 66ch; color: var(--muted); }

.link-arrow::after { content: " →"; }

/* Plans */
.plans { display: grid; gap: 14px; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.plan h3 { margin-bottom: 10px; }
.price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}
.price-alt { color: var(--muted); font-size: 0.85rem; margin: 2px 0 12px; }
.plan p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { margin: 0; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-item:first-child { padding-top: 0; }
.faq dt { font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--muted); }

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  min-width: 0;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .lang-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input[aria-invalid="true"] { border-color: var(--red); }
textarea { resize: vertical; }
.checks { display: grid; gap: 8px; }
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.95rem;
}
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.counter { margin: 0; text-align: right; color: var(--muted); font-size: 0.8rem; font-family: var(--font-mono); }
.field-error { margin: 0; color: var(--red); font-size: 0.9rem; }
.fine { margin: 0; color: var(--muted); font-size: 0.8rem; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.thanks {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.thanks .icon { margin: 0 auto 12px; }
.thanks h3 { margin-bottom: 6px; }
.thanks p { margin: 0; color: var(--muted); }

[hidden] { display: none !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-inner p { margin: 0; }

/* Breakpoints */
@media (min-width: 640px) {
  .header-actions .header-cta { display: inline-flex; }
  .cta-row { flex-direction: row; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .report-head { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .form { padding: 28px; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hero { padding: 88px 0 72px; }
  .section { padding: 80px 0; }
  .modules { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(4, 1fr); }
}
