:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --border: #dbe3ec;
  --text: #1a2027;
  --text-muted: #5c6773;
  --brand: #155e63;
  --brand-dark: #0e4448;
  --brand-contrast: #ffffff;
  --brand-soft: #e0efee;
  --accent: #d97b29;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(10, 20, 30, 0.07), 0 10px 28px rgba(10, 20, 30, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141a;
    --surface: #181e26;
    --surface-2: #202834;
    --border: #2e3947;
    --text: #e7ebf0;
    --text-muted: #9aa5b1;
    --brand: #4fb3ab;
    --brand-dark: #3d918b;
    --brand-soft: #12312f;
    --accent: #e08c3f;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.92rem; }
.nav a:hover { color: var(--text); }
.nav-cta { background: var(--brand); color: var(--brand-contrast) !important; padding: 7px 14px; border-radius: 8px; }
.nav-cta:hover { background: var(--brand-dark); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface-2); }
.section-title { font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 10px; text-align: center; }
.section-sub { color: var(--text-muted); max-width: 760px; margin: 0 auto 34px; text-align: center; }

/* Hero */
.hero { padding: 84px 0 70px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); letter-spacing: -0.02em; max-width: 840px; margin: 0 auto 18px; }
.hero .sub { color: var(--text-muted); max-width: 720px; margin: 0 auto 26px; font-size: 1.06rem; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge-row span { font-size: 0.8rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer; background: var(--brand); color: var(--brand-contrast); font-weight: 700; text-decoration: none; font-size: 0.97rem; }
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.big { font-size: 1.1rem; padding: 15px 30px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; font-size: 1.02rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.features.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.features.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 0.92rem; }

/* Pricing */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.product-card.featured { border-color: var(--brand); border-width: 2px; }
.product-card .flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--brand-contrast); font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.product-card h3 { font-size: 1.1rem; }
.product-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 12px; }
.product-card .price small { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.product-card ul { list-style: none; margin-bottom: 18px; flex: 1; }
.product-card li { padding: 5px 0 5px 24px; position: relative; font-size: 0.92rem; color: var(--text-muted); }
.product-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.product-card .btn { width: 100%; text-align: center; }
.fine-print { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-top: 22px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq-list summary { font-weight: 700; cursor: pointer; }
.faq-list p { color: var(--text-muted); margin-top: 8px; font-size: 0.94rem; }

/* Final CTA */
.cta-final { text-align: center; background: var(--brand); color: var(--brand-contrast); }
.cta-final h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta-final p { opacity: 0.85; margin-bottom: 22px; }
.cta-final .btn { background: #fff; color: var(--brand-dark); }

/* Footer */
.site-footer { padding: 44px 0 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.footer-grid p { color: var(--text-muted); font-size: 0.88rem; margin-top: 8px; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 8px; }
.footer-grid a { display: block; text-decoration: none; color: var(--text); font-size: 0.92rem; padding: 3px 0; }
.copyright { color: var(--text-muted); font-size: 0.8rem; }

/* Toast (shared with site.js) */
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 0.9rem; box-shadow: var(--shadow); z-index: 60; }

/* Article pages */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.article h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.article h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.article h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.article p, .article li { color: var(--text-muted); }
.article ul, .article ol { padding-left: 22px; margin: 10px 0; }
.article .lead { font-size: 1.06rem; }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
.article th, .article td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.article th { background: var(--surface-2); }
.article .note { background: var(--brand-soft); border-radius: 10px; padding: 14px 16px; margin: 16px 0; color: var(--text); font-size: 0.92rem; }

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
