:root {
  --bg: #ffffff;
  --ink: #0b0b0f;
  --grey: #6e6e73;
  --line: #e6e6eb;
  --blue: #0071e3;
  --blue-dark: #0062c4;
  --fb: #1877f2;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- nav with a big logo ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__mark { display: inline-grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; overflow: hidden; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { margin-left: 14px; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.brand--footer .brand__mark { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
.brand--footer .brand__name { margin-left: 10px; font-size: 20px; }
.nav__links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav__links a { padding: 10px 2px; text-decoration: none; color: var(--grey); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 980px; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 0.2s, transform 0.15s; }
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.text-link { color: var(--blue); text-decoration: none; font-size: 17px; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* ---------- type ---------- */
.h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.07; letter-spacing: -0.035em; max-width: 18ch; margin: 0 auto; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--grey); max-width: 620px; margin: 20px auto 0; }
.trust { margin-top: 32px; font-size: 15px; color: var(--grey); }
.trust a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 112px; }
.hero__title { font-size: clamp(40px, 6.2vw, 88px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.rise { display: inline-block; }
.rotator { display: inline-grid; justify-items: start; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); vertical-align: bottom; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; color: var(--blue); }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s; }
.rotator__word.is-on { transform: none; opacity: 1; }
.rotator__word.is-out { transform: translateY(-105%); opacity: 0; }
.hero__sub { font-size: clamp(18px, 1.7vw, 21px); color: var(--grey); max-width: 640px; margin: 28px auto 0; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 40px; }

@media (prefers-reduced-motion: no-preference) {
  .js .rise { transform: translateY(105%); animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: var(--d); }
  .js .fade-in { opacity: 0; transform: translateY(14px); animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--d); }
}
@keyframes rise { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- the phone: scrolling Facebook, an HVAC ad, a lead comes in ---------- */
.phone {
  position: relative;
  width: 300px; height: 610px; margin: 96px auto 0;
  padding: 12px; border-radius: 50px;
  background: #1d1d1f;
  box-shadow: 0 50px 100px rgba(0, 113, 227, 0.14), 0 20px 40px rgba(0, 0, 0, 0.12);
  text-align: left;
}
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 38px; background: #f0f2f5; }
.status { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 6px 26px 0; background: #fff; font-size: 13px; font-weight: 600; }
.status__icons { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.status__icons svg { fill: currentColor; }
.ic-signal { width: 16px; height: 11px; }
.ic-battery { width: 25px; height: 12px; }
.status__net { font-size: 11px; }
.status__pct { font-size: 11px; margin-left: 2px; }
.fb-bar { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 14px; background: #fff; border-bottom: 1px solid #e4e6eb; }
.fb-logo { color: var(--fb); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.fb-icons { display: flex; gap: 8px; }
.fb-icons i { width: 28px; height: 28px; border-radius: 50%; background: #e4e6eb; }

.feed-window { height: calc(100% - 76px); overflow: hidden; }
.feed { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.post { background: #fff; padding: 10px 0 8px; font-size: 12.5px; line-height: 1.35; }
.post:first-child { height: 262px; }
.post__top { display: flex; gap: 8px; align-items: center; padding: 0 12px 8px; font-size: 11px; color: #65676b; line-height: 1.25; }
.post__top b { color: var(--ink); font-size: 12.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.avatar--a { background: #f4b183; }
.avatar--b { background: #9bc1a5; }
.avatar--ad { background: #c0392b; }
.avatar--c { background: #8fb3e0; }
.avatar--d { background: #d9a7c7; }
.post p { padding: 0 12px 8px; }
.post img { width: 100%; height: 150px; object-fit: cover; }
/* the HVAC ad creative, drawn in code */
.creative { position: relative; display: flex; align-items: center; gap: 8px; height: 180px; padding: 14px 14px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 100%, rgba(255, 122, 26, 0.45), transparent 55%), linear-gradient(160deg, #0d2a52, #071830); }
.creative__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex: 1; min-width: 0; }
.creative__tag { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb27a; }
.post .creative__head { padding: 0; font-size: 21px; font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
.creative__offer { margin-top: 2px; padding: 6px 9px; border-radius: 6px; background: #ff7a1a; color: #10131a; font-size: 10.5px; font-weight: 800; letter-spacing: 0.01em; }
.creative__small { font-size: 9.5px; color: rgba(255, 255, 255, 0.75); }
.thermo { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 50%;
  background: linear-gradient(145deg, #f4f5f7, #b9bec7); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.thermo__dial { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1c1f26 58%, transparent 59%), conic-gradient(from 210deg, #ff7a1a 0 200deg, #3a3f4a 200deg 300deg, transparent 300deg); }
.thermo__mode { font-size: 7px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ff9a4d; }
.thermo__temp { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.thermo__out { font-size: 6.5px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.creative__flake { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.creative__flake--a { width: 140px; height: 140px; top: -60px; right: -30px; }
.creative__flake--b { width: 70px; height: 70px; bottom: -24px; left: 40%; }
/* Priya fills the whole screen when the feed stops on her */
.post--full { display: flex; flex-direction: column; height: 510px; }
.post--full img { flex: 1; min-height: 0; height: auto; object-position: 50% 50%; }
.post__actions { display: flex; justify-content: space-around; padding-top: 8px; font-size: 11px; color: #65676b; font-weight: 600; }
.post__cta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 4px; background: #f0f2f5; font-size: 12px; }
.post__cta small { font-size: 10px; color: #65676b; }
.quote-btn { position: relative; flex: none; background: var(--fb); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 6px; }
.tap { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; }

.notif {
  position: absolute; top: 40px; left: 8px; right: 8px; z-index: 3;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 18px;
  background: rgba(250, 250, 252, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  font-size: 11.5px; line-height: 1.3; color: #3a3a3c;
  transform: translateY(-140%); opacity: 0; visibility: hidden;
}
.notif__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue); }
.notif__icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif__text { display: flex; flex-direction: column; min-width: 0; }
.notif__row { display: flex; justify-content: space-between; gap: 8px; }
.notif__row b { color: var(--ink); font-size: 12.5px; }
.notif__row small { color: #8e8e93; font-size: 11px; }

/* one 11-second loop: scroll, stop on the ad, tap Get Quote, the lead comes in, scroll on to Priya's post */
@media (prefers-reduced-motion: no-preference) {
  .feed { animation: feed-scroll 11s infinite; }
  .quote-btn { animation: press 11s infinite; }
  .tap { animation: tap 11s infinite; }
  .notif { animation: notif 11s infinite; }
}
@keyframes feed-scroll {
  0%, 7% { transform: translateY(0); opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
  22%, 64% { transform: translateY(-262px); opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
  74%, 91% { transform: translateY(-629px); opacity: 1; }
  94% { transform: translateY(-629px); opacity: 0; }
  95% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes press {
  0%, 29% { transform: none; background: var(--fb); }
  31.5% { transform: scale(0.9); background: #1258b8; }
  35%, 100% { transform: none; background: var(--fb); }
}
@keyframes tap {
  0%, 29% { opacity: 0; transform: scale(0.4); }
  31.5% { opacity: 1; transform: scale(1); }
  36%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes notif {
  0%, 37% { transform: translateY(-140%); opacity: 0; visibility: hidden; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  37.1% { visibility: visible; opacity: 1; }
  42%, 58% { transform: translateY(0); opacity: 1; visibility: visible; animation-timing-function: cubic-bezier(0.55, 0, 0.7, 0.2); }
  62% { transform: translateY(-140%); opacity: 1; visibility: visible; }
  62.1%, 100% { transform: translateY(-140%); opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed { transform: translateY(-262px); }
  .notif { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section--soft { background: var(--bg); }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.pain h3 { font-size: 18px; font-weight: 700; line-height: 1.35; max-width: 24ch; margin: 18px auto 0; letter-spacing: -0.01em; }
.icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 113, 227, 0.1); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px; max-width: 720px; margin: 48px auto 0; text-align: left; }
.checks li { position: relative; padding-left: 32px; font-size: 16px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.reach { margin-top: 64px; }
.reach h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.reach__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 680px; margin: 20px auto 0; }
.reach__list li { padding: 10px 18px; border-radius: 980px; background: rgba(0, 113, 227, 0.08); color: var(--blue); font-weight: 600; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 80px; }
.stat b { display: block; font-size: clamp(56px, 6vw, 80px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.stat span { display: block; max-width: 24ch; margin: 12px auto 0; font-size: 15px; color: var(--grey); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.steps__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 19px; }
.steps h3 { font-size: 20px; font-weight: 700; margin-top: 20px; letter-spacing: -0.015em; }
.steps p { font-size: 15px; color: var(--grey); margin: 8px auto 0; max-width: 30ch; }

.offer { max-width: 480px; margin: 48px auto 0; padding: 36px 32px 28px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 113, 227, 0.1); text-align: left; }
.offer h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.offer__list { list-style: none; padding: 0; margin: 24px 0 28px; }
.offer__list li { padding: 11px 0 11px 30px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.offer__list li::before { content: "✓"; position: absolute; left: 4px; color: var(--blue); font-weight: 800; }
.offer__note { font-size: 13px; color: var(--grey); text-align: center; margin-top: 14px; }

.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--grey); border-radius: 50%; color: var(--grey); line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--grey); max-width: 62ch; }

.closing { padding: 112px 0 128px; }
.closing__title { font-size: clamp(40px, 6vw, 76px); font-weight: 900; line-height: 1.02; letter-spacing: -0.05em; margin-bottom: 36px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--grey); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer a { color: var(--grey); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer__credits { margin-top: 16px; font-size: 11px; color: #9a9aa0; }
.footer__credits a { text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 68px; }
  .brand__mark { width: 46px; height: 46px; border-radius: 11px; font-size: 15px; }
  .brand__name { font-size: 22px; margin-left: 10px; }
  .nav__links { display: none; }
  .hero { padding: 56px 0 80px; }
  .phone { margin-top: 72px; }
  .section { padding: 80px 0; }
  .pains, .stats, .steps { grid-template-columns: 1fr; }
  .pains { gap: 40px; }
  .checks { grid-template-columns: 1fr; max-width: 420px; }
  .offer { padding: 28px 20px 22px; }
}

.footer__copy { width: 100%; font-size: 13px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
