/* ==========================================================================
   Ad landing pages (/hvac, /hvac/thanks, /privacy)
   A small stand-alone sheet that reuses the main site's tokens and fonts,
   so these pages load fast from a Facebook or Instagram tap.
   ========================================================================== */

@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: oklch(0.984 0.004 236);
  --bg-2: oklch(0.964 0.009 236);
  --white: oklch(1 0 0);
  --line: oklch(0.915 0.011 238);
  --line-2: oklch(0.845 0.017 240);
  --ink: oklch(0.2 0.045 248);
  --ink-2: oklch(0.38 0.035 246);
  --ink-3: oklch(0.49 0.028 244);
  --deep: oklch(0.35 0.09 246);
  --night: oklch(0.17 0.045 248);
  --accent: oklch(0.599 0.118 50.4);
  --brand: oklch(0.429 0.109 246.5);
  --brand-deep: oklch(0.35 0.09 246);
  --accent-light: oklch(0.8 0.1 62);
  --brand-wash: oklch(0.955 0.022 236);
  --on-dark: oklch(0.975 0.006 236);
  --on-dark-2: oklch(0.83 0.025 238);
  --error: oklch(0.52 0.19 27);

  --font-display: "Cabinet Grotesk", "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 640px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-md: 0 2px 4px oklch(0.2 0.06 248 / 0.06), 0 14px 28px -14px oklch(0.25 0.058 246.5 / 0.3);
  --shadow-lg: 0 2px 6px oklch(0.2 0.06 248 / 0.07), 0 22px 36px -18px oklch(0.25 0.058 246.5 / 0.34), 0 44px 48px -36px oklch(0.25 0.072 246.5 / 0.3);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--brand-deep); text-underline-offset: 0.2em; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--accent-light); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Top bar */
.topbar { padding-block: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 28px; height: auto; }
.brand__seguin { color: var(--accent); }
.brand__sites { color: var(--deep); }

/* Hero */
.hero { padding-block: 22px 8px; }
.eyebrow { display: inline-block; font-size: 0.9rem; font-weight: 700; color: var(--brand-deep); background: var(--brand-wash); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.05rem, 1.2rem + 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.032em; }
.hero__sub { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }

/* Form card */
.form-card { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px 18px 18px; box-shadow: var(--shadow-md); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .field legend { font-weight: 700; font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  font-size: 1.0625rem; /* 17px keeps iOS from zooming on focus */
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px oklch(0.429 0.109 246.5 / 0.2); background: var(--white); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px oklch(0.52 0.19 27 / 0.15); }
.err { color: var(--error); font-size: 0.92rem; font-weight: 700; line-height: 1.35; }
.err:empty { display: none; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg);
  font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); transition: border 0.15s; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-deep); }
.choice input:checked + span::before { border: 6px solid var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.choices[aria-invalid="true"] .choice span { border-color: var(--error); }

.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 28px;
  background: var(--brand); color: var(--white);
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.2) inset, 0 10px 20px -12px oklch(0.22 0.050 246.5 / 0.55);
  cursor: pointer; transition: background-color 0.15s, transform 0.12s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--block { width: 100%; }
.btn--light { background: var(--accent-light); color: var(--night); }
.btn--light:hover { background: oklch(0.86 0.09 62); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-2); }
.btn[disabled] { opacity: 0.75; cursor: progress; transform: none; }
.form__fine { font-size: 0.88rem; color: var(--ink-3); text-align: center; line-height: 1.4; }

/* Sections */
.section { padding-block: 56px; }
.section--tint { background: var(--bg-2); }
.section h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.section__lede { margin-top: 10px; color: var(--ink-2); }

/* Phone mockup */
.proof { text-align: center; }
.phone {
  position: relative;
  width: min(290px, 78vw);
  margin: 28px auto 0;
  padding: 10px;
  background: oklch(0.17 0.022 246.5);
  border-radius: 44px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px oklch(0.35 0.022 246.5);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: oklch(0.12 0.014 246.5); border-radius: 999px; z-index: 1; }
.phone__screen { aspect-ratio: 390 / 844; overflow: hidden; border-radius: 34px; background: var(--bg-2); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proof figcaption { margin-top: 18px; color: var(--ink-2); font-size: 1rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 24px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--deep); color: var(--on-dark); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.step h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; }
.step p { margin-top: 4px; color: var(--ink-2); }

/* Price box */
.price { background: var(--night); color: var(--on-dark); border-radius: 26px; padding: 32px 22px; text-align: center; box-shadow: var(--shadow-lg); }
.price__amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 2.4rem + 5vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--white); }
.price__amount small { font-size: 0.36em; letter-spacing: -0.01em; color: var(--accent-light); }
.price__terms { margin-top: 14px; display: grid; gap: 8px; color: var(--on-dark-2); }
.price__terms li { display: flex; align-items: center; justify-content: center; gap: 8px; }
.price__terms svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent-light); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { margin-top: 20px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 2px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005f73' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 18px; color: var(--ink-2); }

/* Bottom CTA */
.cta-end { text-align: center; }
.cta-end h2 { margin-bottom: 22px; }

/* Footer */
.foot { padding-block: 28px 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.94rem; text-align: center; }
.foot p + p { margin-top: 6px; }
.foot a { color: var(--ink-2); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: oklch(0.985 0.003 246.5 / 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.sticky-cta .btn { width: 100%; min-height: 52px; }
.has-sticky { padding-bottom: 80px; }
@media (min-width: 760px) {
  .sticky-cta { display: none; }
  .has-sticky { padding-bottom: 0; }
}

/* Simple pages (thanks, privacy) */
.simple { min-height: 100dvh; display: flex; flex-direction: column; }
.simple main { flex: 1; }
.thanks { padding-block: 48px 40px; text-align: center; }
.thanks__mark { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash); }
.thanks__mark svg { width: 32px; height: 32px; fill: none; stroke: var(--brand-deep); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.032em; }
.thanks__body { margin-top: 14px; color: var(--ink-2); font-size: 1.125rem; }
.thanks__sooner { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.thanks__sooner p { font-weight: 700; margin-bottom: 14px; }
.thanks__actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .thanks__actions { grid-template-columns: 1fr 1fr; } .thanks__actions .btn:only-child, .thanks__actions .btn--wide { grid-column: 1 / -1; } }

.prose { padding-block: 36px 48px; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; }
.prose h2 { font-size: 1.3rem; margin-top: 28px; letter-spacing: -0.015em; }
.prose p, .prose ul { margin-top: 10px; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: 4px; }
.draft-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: oklch(0.95 0.06 85); color: oklch(0.35 0.08 70); font-size: 0.95rem; }

/* Desktop */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .topbar { padding-top: 24px; }
  .hero { padding-top: 48px; }
  .form-card { padding: 28px; }
  .section { padding-block: 80px; }
  .phone { width: 300px; }
}

/* Subtle fade-in, skipped for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade-up 0.5s var(--ease-out) both; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
