:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e3e6ea;
  --text: #14181f;
  --muted: #5b6472;
  --accent: #3b5bdb;
  --accent-ink: #ffffff;
  --error: #b00020;
  --radius: 12px;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #161b22;
    --border: #262d38;
    --text: #e8ebef;
    --muted: #9aa4b2;
    --accent: #6b8afd;
    --accent-ink: #0f1216;
  }
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.2; }

a { color: var(--accent); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.brand { font-weight: 800; text-decoration: none; color: var(--text); letter-spacing: -0.02em; }
.header-cta {
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}

main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Hero */
.hero { text-align: center; padding: 3.5rem 0 2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.03em; margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40ch; margin: 0 auto 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Demo */
.demo { margin-top: 2.5rem; text-align: left; }
.demo-caption { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.demo-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
@media (max-width: 680px) { .demo-grid { grid-template-columns: 1fr; } }

/* Sections */
section { padding: 2.5rem 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; text-align: center; margin: 0 0 1.5rem; }

/* Steps */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 0.6rem; }
.steps-grid h3 { margin: 0 0 0.4rem; }
.steps-grid p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .steps-grid { grid-template-columns: 1fr; } }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit { text-align: center; }
.benefit h3 { margin: 0 0 0.3rem; }
.benefit p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .benefits { grid-template-columns: 1fr; } }

/* Pricing */
.price-card { max-width: 420px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.price-unit { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-note { color: var(--muted); margin: 0.5rem 0 1.5rem; }

/* Lead form */
.access { max-width: 560px; margin: 0 auto; }
.access-sub { text-align: center; color: var(--muted); margin-top: -0.75rem; }
.lead-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  font: inherit; padding: 0.65rem 0.75rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
}
.field-consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.field-consent input { margin-top: 0.25rem; }
.form-message { margin: 0.25rem 0 0; }
.form-message.error { color: var(--error); }
.form-message.success { color: var(--accent); }

/* Scanner */
.scanner details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.scanner summary { cursor: pointer; font-weight: 600; }
.scanner-body { display: grid; gap: 1rem; margin-top: 1rem; }
.scanner-body .field input[type="text"], .scanner-body .field input[type="file"] { font: inherit; padding: 0.6rem 0.7rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.download-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* Result tables (shared by demo + scanner) */
table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 0.45rem 0.55rem; text-align: left; }
th { background: var(--surface); }
#result-summary p, #demo-summary p { margin: 0.25rem 0; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.legal h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.legal h2 { font-size: 1.2rem; text-align: left; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal a.back { display: inline-block; margin-bottom: 1rem; }
.legal .disclaimer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; color: var(--muted); font-size: 0.9rem; }
.legal .placeholder { color: var(--accent); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; padding: 1.5rem 1.25rem; display: flex; gap: 1rem; justify-content: center; align-items: center; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
