:root {
  --ink: #18212b;
  --muted: #55626f;
  --line: #e1e6eb;
  --bg: #f4f6f8;
  --card: #fff;
  --brand: #1d3c5a;
  --brand-dark: #14293e;
  --accent: #e8a33d;
  --ok: #1f7a4d;
  --okbg: #e7f5ee;
  --bad: #b3261e;
  --badbg: #fdecea;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--brand); text-decoration: none; }
.logo-mark { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: underline; }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }
.nav-links .btn.accent, .nav-links .btn.accent:hover { color: var(--ink); }
.nav-phone { font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) { .nav-links a:not(.btn):not(.nav-phone) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--brand); border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; background: var(--brand); color: #fff; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: #d99528; border-color: #d99528; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--bg); }
.btn.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.light:hover { background: rgba(255,255,255,.12); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.small { padding: 8px 14px; font-size: 15px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.hero p { font-size: 19px; margin: 0 0 26px; color: rgba(255,255,255,.88); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 18px; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art figcaption { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 10px; text-align: center; }
@media (max-width: 860px) { .hero { padding: 44px 0 52px; } .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } .hero p { font-size: 18px; } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg); }
section h2 { font-size: 32px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { section { padding: 52px 0; } section h2 { font-size: 27px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3, .feature h3 { font-size: 19px; margin: 0 0 6px; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; background: #fdf3df; color: #8a5a00; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Demo */
.demo-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(24,33,43,.08); max-width: 760px; margin: 0 auto; }
.demo-frame iframe { width: 100%; border: 0; display: block; min-height: 620px; }
.demo-note { max-width: 760px; margin: 14px auto 0; font-size: 15px; color: var(--muted); }

/* Pricing */
.price-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; text-align: center; }
.price-card .big { font-size: 30px; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
.price-card p { color: var(--muted); margin: 0 0 20px; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; max-width: 640px; margin: 0 auto; }
.form-card label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card .opt { font-weight: 400; color: var(--muted); }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c9d1d9; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus { outline: 3px solid rgba(232,163,61,.55); border-color: var(--accent); }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-card .btn { margin-top: 22px; width: 100%; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 16px; }
.form-msg.ok { background: var(--okbg); color: var(--ok); border: 1px solid #bfe3cf; }
.form-msg.bad { background: var(--badbg); color: var(--bad); border: 1px solid #f0c9c5; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Footer */
.footer { background: var(--brand-dark); color: rgba(255,255,255,.82); padding: 40px 0; font-size: 15px; }
.footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .logo { color: #fff; margin-bottom: 8px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer p { margin: 0 0 6px; }

/* Homeowner landing page */
.lp-top { background: var(--brand); color: #fff; }
.lp-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
.lp-name { font-size: 22px; font-weight: 700; }
.lp-lic { font-size: 14px; color: rgba(255,255,255,.85); }
.lp-call { display: inline-flex; flex-direction: column; align-items: flex-end; color: #fff; text-decoration: none; line-height: 1.2; }
.lp-call small { font-size: 13px; opacity: .85; }
.lp-call b { font-size: 22px; }
.lp-hero { background: var(--bg); padding: 44px 0 20px; text-align: center; }
.lp-hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 12px; color: var(--brand); letter-spacing: -.01em; }
.lp-hero p { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0 auto; }
@media (max-width: 640px) { .lp-hero h1 { font-size: 29px; } .lp-hero p { font-size: 17px; } .lp-call { align-items: flex-start; } }
.lp-tool { background: var(--bg); padding: 24px 0 56px; }
.lp-tool .tool-box { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 10px 30px rgba(24,33,43,.08); }
.lp-explain { background: #fff8e8; border: 1px solid #f1dca6; border-radius: 14px; padding: 22px 24px; max-width: 760px; margin: 0 auto; }
.lp-explain h2 { font-size: 22px; margin: 0 0 8px; }
.lp-explain p { margin: 0; font-size: 17px; }
.lp-steps { padding: 56px 0; }
.lp-steps h2 { font-size: 28px; text-align: center; margin: 0 0 28px; }
.lp-contact { background: var(--bg); text-align: center; padding: 48px 0; }
.lp-contact h2 { font-size: 26px; margin: 0 0 8px; }
.lp-contact p { margin: 0 0 18px; color: var(--muted); }

/* Plain text pages (privacy, terms) */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; }
.prose .fine { color: #5b6672; font-size: 15px; margin-top: 28px; }
