:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1a1f2e;
  --muted: #5b6478;
  --border: #e3e6ee;
  --primary: #2f5bea;
  --primary-ink: #ffffff;
  --accent: #19a974;
  --danger: #d64545;
  --soft: #eef2ff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 30, 60, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10131c;
    --surface: #181c28;
    --text: #e8ebf3;
    --muted: #9aa3b8;
    --border: #2a3042;
    --primary: #6b8cff;
    --primary-ink: #0d1020;
    --accent: #3ccf93;
    --danger: #ff7070;
    --soft: #1e2540;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
a { color: var(--primary); }
img { max-width: 100%; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 32px; height: 32px; display: block; }
.logo { letter-spacing: -0.02em; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--soft); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav .btn { display: none; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 72px 0; }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin: 0.3em 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.2; margin: 0.2em 0 0.6em; }
h3 { margin: 0 0 0.4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

.hero { padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Invoice mock */
.invoice-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.invoice-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; padding-top: 12px; }
.qr { width: 64px; height: 64px; border-radius: 6px; background:
  conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0) 0 0 / 16px 16px; opacity: 0.85; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.card ul { padding-left: 18px; margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--primary); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* CTA */
.cta { background: var(--primary); color: var(--primary-ink); border-radius: 20px; padding: 48px 24px; text-align: center; }
.cta .btn { background: var(--primary-ink); color: var(--primary); margin-top: 12px; }

/* Pricing */
.toggle-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 36px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-family: inherit; }
.seg button.active { background: var(--primary); color: var(--primary-ink); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--primary-ink); font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.price { font-size: 2.3rem; font-weight: 800; margin: 8px 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan .note { color: var(--muted); font-size: 0.9rem; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; display: grid; gap: 8px; align-content: start; font-size: 0.95rem; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.plan li.inherit { font-weight: 700; }
.plan li.inherit::before { content: ""; margin: 0; }

table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
table.compare th:first-child, table.compare td:first-child { text-align: left; white-space: normal; }
table.compare thead th { background: var(--soft); }

/* Forms */
.form-card { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.choice { display: flex; gap: 10px; align-items: start; font-weight: 400; margin-bottom: 8px; }
.choice input { margin-top: 5px; }
.error { color: var(--danger); font-size: 0.9rem; margin-top: 4px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert-success { background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid var(--accent); }
.alert-error { background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid var(--danger); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 14px; margin-bottom: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { color: var(--text); margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
