/* Dexraflow — HVAC missed-call booking desk
   Mobile-first, one accent, big type, no animation libraries. */
:root {
  --bg: #f5f7f6;
  --paper: #ffffff;
  --tint: #e9efed;
  --ink: #15211f;
  --muted: #4b5a57;
  --line: #d3dcd9;
  --accent: #0b6e69;
  --accent-dark: #085450;
  --accent-soft: #dcefec;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(32px, 7vw, 56px); font-weight: 700; }
h2 { font-size: clamp(27px, 5vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1040px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); min-width: 0; }
.wrap--narrow { max-width: 760px; }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--tint { background: var(--tint); }
.section h2 { margin-bottom: 20px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); }
.lead { font-size: clamp(18px, 2.3vw, 21px); color: var(--muted); max-width: 60ch; }
.lead--tight { margin-top: 10px; }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--big { min-height: 58px; padding: 0 28px; font-size: 18px; width: 100%; }
@media (min-width: 560px) { .btn--big { width: auto; } }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--accent-dark); }
.btn--ghost:hover { background: var(--accent-soft); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(245,247,246,.94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.top__nav { display: none; gap: 24px; }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.top__nav a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 720px) { .top__nav { display: flex; } }

/* hero */
.hero { padding-block: clamp(44px, 9vw, 104px) clamp(40px, 7vw, 80px); background: var(--paper); border-bottom: 1px solid var(--line); }
.hero h1 { margin-top: 14px; max-width: 18ch; }
.hero .lead { margin-top: 18px; color: var(--ink); }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
@media (min-width: 560px) { .hero__cta { flex-direction: row; align-items: center; gap: 24px; } }

/* problem cards */
.cards { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 17px; }
#problem .lead--tight { margin-top: 26px; color: var(--ink); font-weight: 500; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.step__n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 17px; }

/* report */
.report__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .report__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.report { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 15px; min-width: 0; }
.report__tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--tint); border-radius: 6px; padding: 4px 8px; margin-bottom: 14px; }
.report__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.report__head strong { display: block; font-size: 17px; }
.report__head span { color: var(--muted); font-size: 14px; }
.report__up { color: var(--accent-dark) !important; font-weight: 600; }
.report__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
@media (min-width: 480px) { .report__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.report__stats div { background: var(--bg); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.report__stats dt { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.report__stats dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.report__stats dd small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.report__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.report__table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.report__table td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.report__foot { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }

/* promises */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promises li { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; font-size: 17px; color: var(--muted); }
.promises strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

/* pricing */
.price { display: grid; gap: 14px; }
@media (min-width: 720px) { .price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.price > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.price__main { border-color: var(--accent) !important; }
.price__amount { font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.price__amount span { font-size: 18px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price__amount--small { font-size: 26px; padding-top: 10px; }
.price__what { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 600; font-size: 18px; min-height: 56px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-dark); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__body { padding: 0 18px 18px; color: var(--muted); font-size: 17px; }

/* form */
.form { display: grid; gap: 16px; margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; min-width: 0; }
.form input, .form select { width: 100%; min-height: 52px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5a57' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.form input:focus-visible, .form select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form input.is-bad, .form select.is-bad { border-color: #b8322b; }
.form__msg { font-size: 16px; padding: 12px 14px; border-radius: 8px; background: #fbe7e5; color: #8f2721; }
.form__msg--ok { background: var(--accent-soft); color: var(--accent-dark); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__done, .form__fallback { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; outline: none; }
.form__done p, .form__fallback p { color: var(--muted); font-size: 17px; }
.form__fallback textarea { width: 100%; font: inherit; font-size: 15px; border: 2px solid var(--line); border-radius: 8px; padding: 12px; resize: vertical; }
.form__fbactions { display: flex; flex-wrap: wrap; gap: 10px; }

/* footer */
.footer { background: var(--ink); color: #dbe5e2; padding-block: 44px 28px; font-size: 16px; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.2fr 1.2fr .8fr; } }
.footer__brand { font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 8px; }
.footer__contact { font-style: normal; line-height: 1.7; }
.footer__contact strong { color: #fff; }
.footer__links { display: grid; gap: 2px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { margin-top: 32px; font-size: 14px; color: #9fb0ab; }

/* sticky mobile call to action */
.stickycta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter-r) max(10px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: rgba(245,247,246,.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.stickycta.is-on { transform: none; }
.stickycta .btn { width: 100%; }
@media (min-width: 720px) { .stickycta { display: none; } }
body.has-sticky { padding-bottom: 84px; }
@media (min-width: 720px) { body.has-sticky { padding-bottom: 0; } }

/* privacy page */
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose ul { padding-left: 22px; }
.prose .updated { font-size: 15px; }
