:root {
  --navy: #16213A;
  --navy-2: #1E2B49;
  --amber: #F5A524;
  --amber-dark: #D98B0B;
  --cream: #FDEFD2;
  --mist: #EEF2F7;
  --white: #FFFFFF;
  --slate: #56637B;
  --line: #D6DDE8;
  --green: #1F7A4D;
  --ink: #16213A;

  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Fredoka", "Figtree", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius: 10px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
section[id] { scroll-margin-top: 80px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 96px; }
.section-tint { background: var(--mist); }
.section .container > h2 { margin-bottom: 40px; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.eyebrow-light { color: #AAB6CA; }
.body-lg { font-size: 1.1rem; color: var(--slate); max-width: 56ch; margin-top: 16px; }
.hl { color: var(--amber); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem var(--body); text-decoration: none;
  padding: 14px 22px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #FFB53F; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border-color: rgba(243,246,250,.35); color: #F3F6FA; }
.btn-ghost-light:hover { border-color: #F3F6FA; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--logo); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; white-space: nowrap; }
.w-amber { color: var(--amber); }
.w-answer { color: var(--navy); }
.logo-light .w-answer { color: #F3F6FA; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--slate); }
.nav-links a:hover { color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: #F3F6FA; position: relative; overflow: hidden; padding-block: 80px 88px; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -200px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,36,.30), rgba(245,165,36,0) 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero .lede { font-size: 1.18rem; color: #C9D2E1; margin-top: 20px; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 0.92rem; color: #AAB6CA; }

.phone {
  background: #0E1629; border: 1px solid #2A3757; border-radius: 28px; padding: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 6px rgba(245,165,36,.08);
  max-width: 380px; justify-self: end; width: 100%;
}
.phone-top { display: grid; justify-items: center; padding: 6px 0 12px; border-bottom: 1px solid #22304F; }
.phone-name { font-weight: 700; }
.phone-sub { font-size: 0.8rem; color: #8E9BB3; }
.thread { display: grid; gap: 8px; padding: 14px 4px 6px; }
.msg { padding: 10px 14px; border-radius: 16px; font-size: 0.92rem; line-height: 1.45; max-width: 86%; }
.msg.out { background: var(--amber); color: var(--navy); justify-self: start; border-bottom-left-radius: 5px; }
.msg.in { background: #26324F; color: #EEF2F7; justify-self: end; border-bottom-right-radius: 5px; }
.sys { justify-self: center; font-family: var(--mono); font-size: 0.72rem; color: #8E9BB3; }
.sys.ok { color: #6FD7A0; margin-top: 4px; }
.phone-cap { text-align: center; font-size: 0.75rem; color: #6E7B94; margin-top: 8px; }

/* Leaks */
.leaks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.leak { border-top: 3px solid var(--amber); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.leak-n { font-family: var(--mono); font-size: 0.8rem; color: var(--slate); }
.leak p { color: var(--slate); font-size: 0.97rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: flex; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--slate); font-size: 0.97rem; }

/* Amber demo */
.amber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2316213A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.demo { background: var(--mist); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; }
.demo-head { display: flex; align-items: center; gap: 10px; }
.demo-head div { display: grid; line-height: 1.2; }
.demo-head span { font-size: 0.8rem; color: var(--slate); }
.demo-body { display: grid; gap: 8px; min-height: 220px; align-content: start; background: var(--white); border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.demo-body .msg.in { background: var(--navy); color: var(--white); }
.typing { justify-self: start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--cream); border-radius: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); opacity: .4; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .8; } }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.88rem var(--body); background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chip:hover { background: var(--navy); color: var(--white); }
.chip[disabled] { opacity: .4; cursor: default; }
.demo-note { font-size: 0.8rem; color: var(--slate); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; align-content: start; }
.svc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; margin-bottom: 6px; }
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-line { font-weight: 700; color: var(--amber-dark); }
.svc p:last-child { color: var(--slate); font-size: 0.97rem; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc { background: var(--navy); color: #F3F6FA; border-radius: 20px; padding: 28px; display: grid; gap: 10px; }
.calc label { display: flex; justify-content: space-between; font-weight: 600; margin-top: 8px; }
.calc output { font-family: var(--mono); color: var(--amber); }
.calc input[type=range] { width: 100%; accent-color: var(--amber); }
.calc-result { margin-top: 18px; background: var(--cream); color: var(--navy); border-radius: 14px; padding: 18px 20px; display: grid; gap: 2px; }
.calc-result span { font-size: 0.9rem; color: var(--slate); }
.calc-result strong { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.plan-featured { border: 2px solid var(--amber); box-shadow: 0 16px 40px rgba(22,33,58,.10); }
.badge { position: absolute; top: -13px; left: 26px; background: var(--amber); color: var(--navy); font: 700 0.78rem var(--body); padding: 4px 12px; border-radius: 999px; }
.price { font-family: var(--display); color: var(--slate); }
.price span { font-size: 2.6rem; font-weight: 800; color: var(--navy); }
.plan-for { color: var(--slate); }
.plan .checks { margin: 4px 0 8px; }
.fine { margin-top: 20px; font-size: 0.9rem; color: var(--slate); }
.founding { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; background: var(--cream); border-radius: 16px; padding: 26px 28px; }
.founding p { max-width: 62ch; margin-top: 6px; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--amber-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--slate); }

/* CTA + form */
.cta { background: var(--navy); color: #F3F6FA; padding-block: 96px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,.22), rgba(245,165,36,0) 62%); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta .lede { color: #C9D2E1; margin-top: 18px; font-size: 1.1rem; }
.cta-contact { margin-top: 28px; color: #C9D2E1; }
.cta-contact strong { color: #F3F6FA; }
.audit-form { background: var(--white); color: var(--navy); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 600; font-size: 0.93rem; }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field select { font: 400 1rem var(--body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: #B4541B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 0.93rem; min-height: 1.4em; }
.form-msg.ok { color: var(--green); font-weight: 600; }
.form-msg.err { color: #B4541B; }

/* Footer */
.footer { background: #0E1629; color: #AAB6CA; padding-block: 48px 24px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-tag { margin-top: 10px; }
.footer-contact { display: grid; gap: 4px; text-align: right; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid #22304F; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1000px) {
  .leaks { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid, .amber-grid, .calc-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { justify-self: start; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans { gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section, .cta { padding-block: 64px; }
  .hero { padding-block: 56px 64px; }
  .leaks, .services { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.2rem; }
  .nav .btn-sm { padding: 8px 12px; font-size: 0.85rem; }
  .footer-contact { text-align: left; }
}

/* Legal pages */
.legal { max-width: 760px; padding-block: 56px 80px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; max-width: none; }
.legal h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.legal p, .legal li { color: #34405A; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 10px 0 0; }
.legal-date { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); margin-bottom: 28px; }
.footer-base a { color: inherit; }
.form-consent { font-size: 0.82rem; color: var(--slate); }
.form-consent a { color: var(--navy); }
