:root {
  --ink: #12212e;
  --ink-soft: #3d4f5e;
  --muted: #6b7c8a;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --line: #e1e7eb;
  --brand: #0e7c74;
  --brand-dark: #0a5f59;
  --brand-tint: #e3f3f1;
  --accent: #f2a541;
  --danger-tint: #fdecea;
  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.soft {
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(14,124,116,.13) 1px, transparent 1px);
  background-size: 22px 22px;
}
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); background: var(--brand-tint);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--brand); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }

/* Hero */
.hero {
  padding: 96px 0 84px; position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(45,212,191,.18), transparent 60%),
    linear-gradient(160deg, #061620 0%, #0b2630 55%, #0d3a39 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lead { font-size: 1.25rem; color: #c3d6dd; }
.hero .eyebrow { background: rgba(45,212,191,.14); color: #5eead4; border: 1px solid rgba(94,234,212,.3); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #c3d6dd; font-size: 0.95rem; }
.hero-points li::before { content: "✓ "; color: #5eead4; font-weight: 800; }
.hero-note { margin: 18px 0 0; color: #9fb7bf; font-size: .95rem; }
.hero-note b { color: #fff; }

/* Grid + cards */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .icon { font-size: 1.7rem; margin-bottom: 10px; display: block; }
.card-problem { border-left: 4px solid #e07a5f; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.badge-live { background: var(--brand-tint); color: var(--brand-dark); }
.badge-soon { background: #f1f3f5; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Example message */
.sms {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: 14px 18px; font-size: 0.95rem; color: var(--ink-soft); margin-top: 14px; max-width: 420px;
}
.sms strong { color: var(--ink); }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 32px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-size: 0.95rem; }
.compare thead th.us { background: var(--brand); }
.compare td.us { background: var(--brand-tint); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }

/* Pricing */
.price-card { max-width: 460px; margin: 36px auto 0; display: flex; flex-direction: column; text-align: center; border: 2px solid var(--brand); border-radius: 20px; padding: 36px 28px; background: var(--bg); }
.price { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.price-card li::before { content: "✓  "; color: var(--brand); font-weight: 800; }
.small { font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Form */
.form { max-width: 620px; margin: 32px auto 0; display: grid; gap: 16px; text-align: left; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c9d3da; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.form button { width: 100%; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, #061620 0%, #0d3a39 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .lead { color: #c6d3dc; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Legal page */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

/* Plans */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1080px; margin: 0 auto; align-items: stretch; }
.price-grid .price-card { margin: 36px 0 0; max-width: none; border-color: var(--line); }
.price-grid .price-card ul { flex: 1; }
.price-grid .price-card-featured { border-color: var(--brand); box-shadow: 0 10px 30px rgba(14,124,116,.12); }
.price-card h3 { font-size: 1.3rem; }
.price-card .small { margin: 8px 0 0; }
.badge-pro { background: #fff3e0; color: #9a5a00; }
.price-card .badge { align-self: center; }
.price-grid .price-card-soon { background: var(--bg-soft); border-style: dashed; }
.price-soon { font-size: 1.5rem; line-height: 1.3; }

/* AI network background (fx.js draws into this canvas) */
canvas.ai-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ── Halloween (only while <html class="halloween">; switches off 1 Nov) ── */
.season-banner { background: #1b0f2c; color: #ffd7a8; text-align: center; font-size: .9rem; padding: 8px 16px; line-height: 1.4; }
.season-banner b { color: #ff9933; }
.season-banner a { color: #ff9933; font-weight: 700; margin-left: 6px; }
.halloween .hero {
  background:
    radial-gradient(circle at 86% 20%, rgba(255,214,150,.55) 0, rgba(255,190,90,.22) 46px, rgba(255,160,60,.07) 120px, transparent 220px),
    linear-gradient(160deg, #120a22 0%, #24123d 55%, #3a1838 100%);
}
.halloween .hero .eyebrow { background: rgba(255,153,51,.14); color: #ffb36b; border-color: rgba(255,153,51,.35); }
.halloween .hero .btn-primary { background: #ff8a1f; color: #1b0f2c; }
.halloween .hero .btn-primary:hover { background: #ffa04d; }
.halloween .hero-points li::before { color: #ffb36b; }
.halloween .hero .lead, .halloween .hero-points { color: #d9cdea; }
.halloween .cta-band { background: linear-gradient(160deg, #120a22 0%, #3a1838 100%); }
.spooky-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cobweb { position: absolute; top: 0; left: 0; width: 170px; height: 170px; }
.cobweb path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; }
.bat { position: absolute; left: -80px; width: 54px; opacity: .85; animation: bat-fly 22s linear infinite; }
.bat svg { display: block; width: 100%; fill: #0a0612; filter: drop-shadow(0 0 6px rgba(255,170,80,.25)); animation: bat-flap .32s ease-in-out infinite alternate; }
.bat.b1 { top: 18%; }
.bat.b2 { top: 34%; width: 30px; animation-duration: 28s; animation-delay: -9s; }
.bat.b3 { top: 10%; width: 36px; animation-duration: 25s; animation-delay: -17s; }
@keyframes bat-fly {
  0% { transform: translate(0, 0); }
  25% { transform: translate(28vw, -24px); }
  50% { transform: translate(56vw, 18px); }
  75% { transform: translate(84vw, -12px); }
  100% { transform: translate(calc(100vw + 160px), 6px); }
}
@keyframes bat-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@media (max-width: 640px) { .cobweb { width: 110px; height: 110px; } .bat.b2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .bat, .bat svg { animation: none; } .bat.b1 { left: 72%; } .bat.b2, .bat.b3 { display: none; } }

/* Cookie banner (consent.js) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(18, 33, 46, 0.18);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: 0.92rem; line-height: 1.45;
}
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
