/* YouNeedToCoolDown — mobile-first, no framework.
 *
 * Brand kit formalized from the existing YouNeedTo visual direction
 * (navy, teal, sand, rust CTA). Color values are unchanged so previously
 * audited contrast ratios still hold. Type, space, radius, shadow, and
 * motion tokens follow a 4px grid and Emil Kowalski's motion curves.
 */

:root {
  /* Color — ink, surfaces, brand, status */
  --navy: #102a43;
  --navy-2: #243b53;
  --teal: #0b6e6b;
  --teal-dark: #085654;
  --ice: #e6f3f3;
  --ice-2: #d3ecec;
  --sand: #f6f3ee;
  --sand-2: #ece6dc;
  --cta: #9f2f0a;
  --cta-hover: #822608;
  --cta-ring: #f5c0a8;
  --text: #102a43;
  --muted: #3d4f61;
  --line: #d3dce6;
  --ok: #0e6b54;
  --ok-bg: #e3f6f0;
  --warn: #8a3b00;
  --warn-bg: #fff1e3;
  --danger: #a11d1d;
  --danger-bg: #fdecec;
  --white: #fff;
  --color-bg: var(--sand);
  --color-bg-elevated: var(--white);
  --color-ink: var(--navy);
  --color-ink-muted: var(--muted);
  --color-brand: var(--teal);
  --color-cta: var(--cta);

  /* Type scale — system stack only (Lighthouse / no font download) */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: var(--font);
  --fs-xs: 0.75rem;
  --fs-sm: 0.88rem;
  --fs-body: 1.0625rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.2rem;
  --fs-xl: clamp(1.45rem, 4.5vw, 1.85rem);
  --fs-display: clamp(1.85rem, 6.4vw, 3.15rem);
  --lh-tight: 1.12;
  --lh-heading: 1.2;
  --lh-body: 1.55;
  --tracking-display: -0.038em;
  --tracking-tight: -0.03em;
  --tracking-snug: -0.02em;

  /* Space — 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radius & elevation */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.06);
  --shadow: 0 1px 2px rgba(16, 42, 67, 0.06), 0 8px 24px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 110, 107, 0.12);
  --shadow-lg: 0 16px 48px rgba(16, 42, 67, 0.18);

  /* Motion — emilkowalski/skills animate tables */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 150ms;
  --duration-ui: 220ms;
  --duration-sheet: 250ms;

  --header-h: 60px;
  --sticky-h: 76px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--teal);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
  width: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--teal);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

h1,
h2,
.confirm-headline {
  text-wrap: balance;
}

h2,
#main,
.section,
.hero {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

button,
a,
.tile,
.opt-card,
.icon-btn,
.btn,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(11, 110, 107, 0.18);
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
  min-height: 48px;
}
.logo:focus-visible {
  border-radius: 8px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-name em {
  font-style: normal;
  color: var(--teal);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.header-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.header-phone-label {
  display: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-sms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.05);
  white-space: nowrap;
  cursor: pointer;
}
.header-sms:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.header-sms svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.header-sms[hidden],
.header-phone[hidden] {
  display: none !important;
}
.header-sms-full {
  display: none;
}
.header-sms-short {
  display: inline;
}
.header-phone-number {
  display: inline;
}

/* Desktop / tablet: show the full "Text (215) 703-1373" label. */
@media (min-width: 768px) {
  .header-sms-full {
    display: inline;
  }
  .header-sms-short {
    display: none;
  }
  .header-phone-label {
    display: inline;
  }
}

.sms-copied {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sticky-h) + 12px);
  transform: translateX(-50%);
  z-index: 50;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.sms-copied[hidden] {
  display: none;
}
@media (min-width: 768px) {
  .sms-copied {
    bottom: 24px;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 16px 40px;
  background:
    radial-gradient(900px 420px at 0% -20%, #d8efef 0%, transparent 55%),
    radial-gradient(700px 380px at 110% 0%, #fde3d0 0%, transparent 45%),
    var(--sand);
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 6.4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.038em;
  font-weight: 800;
  color: var(--navy);
}
.hero-sub {
  margin: 0 auto 10px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-meta {
  margin: 0 auto 22px;
  max-width: 36rem;
  color: var(--navy-2);
  font-size: 0.92rem;
}
.hero-prompt {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.hero-time {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- Tiles ---- */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 124px;
  padding: 16px 14px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}
.tile:active {
  transform: translateY(0);
}
.tile-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}
.tile-icon svg {
  width: 26px;
  height: 26px;
}
.tile[data-service="no_heat"] .tile-icon {
  background: #fdecdc;
  color: #9f2f0a;
}
.tile[data-service="replace_install"] .tile-icon {
  background: #e8eef7;
  color: #1f4e79;
}
.tile[data-service="tune_up"] .tile-icon {
  background: #eceaf6;
  color: #3d3a6e;
}
.tile-label {
  font-weight: 750;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.tile-hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.tile-grid--modal {
  margin-top: 8px;
}

/* ---- Sections ---- */
.section {
  padding: 48px 16px;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-heading);
}
.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 38rem;
}

.trust {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
}
.trust-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}
.trust-item h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prices */
.prices {
  background: var(--sand);
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.price-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.price-card .amount {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.price-note {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* How it works */
.how {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how-grid {
  display: grid;
  gap: 20px;
}
.how-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}
.how-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.how-step h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.how-step p {
  margin: 0;
  color: var(--muted);
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  margin: 0 0 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  margin-top: -4px;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Referral note */
.referral-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #e0e7ef;
  padding: 36px 16px 120px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.site-footer a {
  color: #fff;
}
.footer-brand {
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.footer-legal {
  margin: 0;
  font-size: 0.9rem;
  color: #c5d0dc;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(246, 243, 238, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .sticky-btn {
  min-height: 48px;
  padding: 8px 4px;
  font-size: 0.8rem;
  gap: 4px;
  border-radius: 10px;
}
.sticky-cta .sticky-btn[hidden] {
  display: none !important;
}
.sticky-cta .sticky-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
body.funnel-open .sticky-cta {
  display: none;
}
/* Header Call/Text and the sticky bar swap at 768px — never both, never neither. */
@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
  .site-footer {
    padding-bottom: 40px;
  }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 4px 18px;
    margin-left: auto;
    margin-right: 4px;
    min-width: 0;
  }
}

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}
.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
  border-color: var(--cta-hover);
}
.btn-primary:focus-visible {
  outline-color: var(--cta);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-block {
  width: 100%;
}
.btn-call svg,
.btn-text svg {
  flex-shrink: 0;
}
.confirm-actions {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
@media (min-width: 480px) {
  .confirm-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Funnel modal ---- */
.funnel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.funnel[hidden] {
  display: none !important;
}
.funnel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 67, 0.55);
  animation: ynt-fade-in var(--duration-sheet) var(--ease-out) both;
}
.funnel-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--sand);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: contain;
  transform-origin: center;
  animation: ynt-sheet-in var(--duration-sheet) var(--ease-out) both;
}
.funnel-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  flex-shrink: 0;
}
.icon-btn {
  appearance: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--navy);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-family: inherit;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.icon-btn:hover {
  background: var(--sand-2);
}
.icon-btn[hidden] {
  visibility: hidden;
  pointer-events: none;
}
.progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}
.progress-label {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}
.progress {
  height: 6px;
  background: var(--sand-2);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 100%;
  background: var(--teal);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-sheet) var(--ease-out);
}
.funnel-main {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
}
.funnel-body.is-entering {
  animation: ynt-step-in var(--duration-ui) var(--ease-out) both;
}
.funnel-main h2 {
  margin: 0 0 6px;
  font-size: var(--fs-xl);
  letter-spacing: -0.035em;
  line-height: var(--lh-heading);
}
.step-sub {
  margin: 0 0 20px;
  color: var(--muted);
}
.step-sub[hidden] {
  display: none;
}
.funnel-form {
  margin: 0;
}

/* Options */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opt-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .opt-card:hover {
    border-color: var(--teal);
  }
}
.opt-card:active {
  transform: scale(0.99);
}
.opt-card.is-selected {
  border-color: var(--teal);
  background: var(--ice);
  box-shadow: 0 0 0 1px var(--teal);
}
.opt-label {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.opt-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.opt-list--chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.opt-chip {
  appearance: none;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--navy);
  cursor: pointer;
}
.opt-chip.is-selected {
  border-color: var(--teal);
  background: var(--ice);
  color: var(--teal-dark);
}

.group-field {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}
.group-field legend {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  padding: 0;
}

/* Inputs */
.field {
  margin: 0 0 16px;
}
.field label {
  display: block;
  font-weight: 650;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.88em;
}
.input {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--navy);
}
.input:focus {
  border-color: var(--teal);
  outline: 3px solid var(--ice-2);
  outline-offset: 0;
}
.input--lg {
  min-height: 68px;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.input--center {
  text-align: center;
}
.field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
}
.zip-status {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.zip-status--ok {
  color: var(--ok);
}
.zip-status--no {
  color: var(--warn);
}

.consent {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 18px;
}
.consent-label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--navy-2);
  cursor: pointer;
}
.consent-box {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--teal);
  flex-shrink: 0;
}
/* Expand tap target around the checkbox */
.consent-label::before {
  /* reserved — the label itself is the large target */
}

.emergency-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.fine-print {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.step-prose {
  color: var(--navy-2);
  margin: 0 0 22px;
}

/* Confirm */
.confirm {
  text-align: center;
}
.confirm-check {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
  animation: ynt-pop var(--duration-ui) var(--ease-out) both;
}
.confirm-headline {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--navy);
}
.confirm-detail,
.confirm-recap,
.confirm-hours-note {
  color: var(--muted);
  margin: 0 0 14px;
}
.confirm-recap {
  color: var(--navy-2);
}
.confirm-recap strong {
  color: var(--navy);
  font-weight: 700;
}
.cross-sell {
  margin: 28px 0 0;
  padding: 18px 16px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.cross-sell h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.cross-sell p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 16px 80px;
}
.legal h1 {
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--muted);
  margin: 0 0 24px;
}
.legal h2 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.legal p,
.legal li {
  color: var(--navy-2);
}

/* Mobile: keep hero tiles clear of the sticky bar, and give the page a bottom spacer. */
@media (max-width: 767px) {
  /* Same 767/768 split as .sticky-cta: hide header Call/Text; sticky bar takes over. */
  .header-actions {
    display: none;
  }
  .site-nav {
    display: none;
  }
  .site-header:has(.header-actions) {
    justify-content: center;
  }
  body {
    padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom));
  }
  .hero {
    padding: 16px 16px 20px;
  }
  .hero h1 {
    font-size: clamp(1.65rem, 6.2vw, 2.1rem);
    margin-bottom: 8px;
  }
  .hero-sub {
    font-size: 0.98rem;
    margin-bottom: 6px;
  }
  .hero-meta {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }
  .hero-prompt {
    margin-bottom: 10px;
  }
  .tile-grid {
    gap: 10px;
  }
  .tile {
    min-height: 108px;
    padding: 12px 12px 12px;
  }
  .tile-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
  }
  .tile-hint {
    font-size: 0.75rem;
  }
  .header-phone,
  .header-sms {
    font-size: 0.82rem;
    padding: 0 10px;
    gap: 5px;
    min-height: 44px;
  }
  .header-phone-number {
    display: none;
  }
  .header-phone-label {
    display: inline;
  }
  .logo-name {
    font-size: 0.92rem;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .header-actions {
    gap: 4px;
  }
}

/* ---- Breakpoints ---- */
@media (min-width: 640px) {
  .site-header {
    padding: 8px 28px;
  }
  .hero {
    padding: 48px 28px 56px;
  }
  .section {
    padding: 64px 28px;
  }
  .trust-grid,
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .how-step {
    grid-template-columns: 1fr;
  }
  .header-phone-label {
    display: inline;
  }

  /* Centered desktop / tablet modal */
  .funnel {
    align-items: center;
    padding: 24px 16px;
  }
  .funnel-panel {
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: min(860px, 92vh);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
  }
  .funnel-main {
    padding: 24px 28px 28px;
  }
}

@media (min-width: 960px) {
  .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tile {
    min-height: 168px;
    padding: 20px 18px 18px;
  }
  .tile-label {
    font-size: 1.08rem;
  }
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .price-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .site-header,
  .hero,
  .section {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .header-phone,
  .header-sms {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* Emil: gentler variant, not zero. Drop travel; keep a short fade. */
  .funnel-backdrop,
  .funnel-panel,
  .funnel-body.is-entering,
  .confirm-check {
    animation-name: ynt-fade-in;
    animation-duration: 120ms;
    animation-timing-function: var(--ease-out);
  }
  .tile,
  .opt-card,
  .btn,
  .progress-bar,
  .faq summary::after,
  .icon-btn {
    transition-duration: 80ms;
    transition-property: border-color, background-color, box-shadow, opacity, color;
  }
}

/* Motion keyframes — transform and opacity only (compositor-friendly). */
@keyframes ynt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ynt-sheet-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes ynt-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ynt-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: none; }
}


/* ---- Desktop / tablet header nav (hidden under 768px with the Call/Text buttons) ---- */
.site-nav {
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}
.site-nav > a {
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.site-nav > a:hover {
  color: var(--teal-dark);
}
.nav-services {
  position: relative;
}
.nav-services > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--navy);
}
.nav-services > summary::-webkit-details-marker { display: none; }
.nav-services > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.nav-services[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
.nav-services-list {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.nav-services-list a {
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
}
.nav-services-list a:hover {
  background: var(--ice);
  color: var(--teal-dark);
}

/* ---- Footer nav ---- */
.footer-nav {
  display: grid;
  gap: 8px 24px;
}
.footer-nav-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

/* ---- Interior content pages ---- */
.page-hero {
  padding: 28px 16px 36px;
  text-align: center;
}
.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.page-hero .eyebrow {
  margin-bottom: 12px;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.page-hero .lead {
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: var(--muted);
  text-wrap: pretty;
}
.page-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.page-hero .cta-row .btn {
  min-width: 200px;
}
.crumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.crumbs a {
  color: var(--teal-dark);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-heading);
  text-wrap: balance;
}
.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  letter-spacing: var(--tracking-snug);
}
.prose p, .prose li {
  color: var(--navy-2);
}
.prose p {
  margin: 0 0 14px;
}
.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
}
.prose li {
  margin: 0 0 8px;
}
.prose li::marker {
  color: var(--teal);
}
.estimate-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 22px;
}
.estimate-box .amount {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.estimate-box p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.county-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 14px;
}
.county-block h3 {
  margin: 0 0 8px;
}
.county-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.page-cta {
  text-align: center;
  padding: 12px 0 8px;
}
@media (min-width: 768px) {
  .page-hero {
    padding: 48px 28px 52px;
  }
  .crumbs {
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (min-width: 960px) {
  .page-hero, .crumbs {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 767px) {
  .page-hero {
    padding-bottom: 28px;
  }
}
