/* FoundingSeeds: light sky on top, asphalt roof below. */

:root {
  --sky: #e6ecf1;
  --paper: #ffffff;
  --ink: #161b21;
  --slate: #46525e;
  --line: #c6d0d9;
  --asphalt: #1e242b;
  --asphalt-2: #29313a;
  --on-asphalt: #e9eef2;
  --on-asphalt-muted: #a9b4bf;
  --hivis: #ffc21a;
  --hivis-press: #e8aa00;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --narrow: 68%;

  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-h2: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --text-hero: clamp(2.75rem, 1.3rem + 5vw, 5.5rem);
  --text-benefit: clamp(2rem, 1.1rem + 3.8vw, 4.25rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gable: clamp(48px, 9vw, 140px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
}

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

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.proof :focus-visible,
.benefits :focus-visible,
.site-footer :focus-visible { outline-color: var(--hivis); }

/* Header */
.site-header { padding-block: 20px; }
.site-header__inner { display: flex; align-items: center; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.wordmark__mark { width: 30px; height: 30px; }

/* Shared headings */
.section-title {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 850;
  font-stretch: var(--narrow);
  line-height: 0.95;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-wrap: balance;
}

/* CTA: one button, same words, after every block */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: 16px 28px;
  background: var(--hivis);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--hivis-press);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), background-color var(--fast);
}
.cta:hover { background: #ffcd45; transform: translateY(-2px); box-shadow: 0 6px 0 var(--hivis-press); }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hivis-press); }

/* 1. Hero */
.hero {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.25rem, 0.5rem + 2.4vw, 2.75rem) 0;
}

.hero__grid {
  display: grid;
  row-gap: 1.25rem;
  align-items: start;
}
.hero__visual { margin-top: clamp(1.25rem, 1rem + 2vw, 2.5rem); }

.hero__title {
  margin: 0;
  font-size: var(--text-hero);
  font-weight: 900;
  font-stretch: 64%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 17ch;
}

.hero__lede {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--slate);
  font-size: var(--text-lg);
}

.hero .cta { margin-top: 1.5rem; }

/* The estimate: the offer, written the way a roofer quotes a job */
.estimate {
  margin-top: 1.5rem;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(22, 27, 33, 0.35);
}
.estimate__head {
  padding: 14px 20px;
  border-bottom: 2px solid var(--ink);
  font-weight: 800;
  font-stretch: 85%;
  font-size: var(--text-sm);
}
.estimate__lines { margin: 0; padding: 4px 20px 8px; }
.estimate__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px dashed var(--line);
}
.estimate__line:last-child { border-bottom: 0; }
.estimate__line dt { font-weight: 600; }
.estimate__line dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.estimate__note {
  display: block;
  color: var(--slate);
  font-weight: 400;
  font-size: var(--text-sm);
}
.estimate__was {
  color: var(--slate);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-decoration-color: #c2410c;
}
.estimate__line--price dd {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 900;
  font-stretch: var(--narrow);
  line-height: 1;
}
.estimate__line--total {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  margin-top: 4px;
}

/* Phone frame that holds the lead ad and hangs over the roofline */
.hero__visual { display: flex; justify-content: center; }
.phone {
  width: min(260px, 70vw);
  padding: 10px;
  background: var(--ink);
  border-radius: 38px;
  box-shadow: 0 30px 60px -20px rgba(22, 27, 33, 0.55);
}
.phone__screen {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 29px;
  background: var(--asphalt-2);
}

/* Video slot (filled by main.js, placeholder until the Higgsfield ads arrive) */
.slot { position: relative; width: 100%; height: 100%; }
.slot video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.slot--empty {
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: var(--on-asphalt-muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 194, 26, 0.07) 14px 28px),
    var(--asphalt-2);
  border: 2px dashed rgba(255, 194, 26, 0.45);
  border-radius: inherit;
}
.slot__label { color: var(--on-asphalt); font-weight: 800; font-stretch: 85%; }
.slot__hint { font-size: var(--text-sm); }

/* 2. Proof: the asphalt roof. Its top edge is a gable peak. */
.proof {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--gable) * -0.4);
  padding-block: calc(var(--gable) + var(--section) * 0.6) var(--section);
  color: var(--on-asphalt);
  background-color: var(--asphalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Cpath d='M0 13.5h56M0 27.5h56M28 0v14M.5 14v14M55.5 14v14' stroke='%23ffffff' stroke-opacity='.045' fill='none'/%3E%3C/svg%3E");
  clip-path: polygon(0 var(--gable), 50% 0, 100% var(--gable), 100% 100%, 0 100%);
}
.proof__intro { display: grid; gap: 1.25rem; }
.proof__about {
  max-width: 44ch;
  color: var(--on-asphalt-muted);
  font-size: var(--text-lg);
}

.reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 240px);
  gap: 16px;
  margin: 2.75rem calc(var(--gutter) * -1) 0;
  padding: 4px var(--gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}
.reel__item {
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
}

/* 3. Process */
.process { padding-block: var(--section); background: var(--paper); }

.process__split {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.process__who {
  margin-bottom: 1rem;
  color: var(--slate);
  font-weight: 700;
  font-size: var(--text-sm);
}
.process__you {
  padding: 24px;
  background: var(--hivis);
  border-radius: 4px;
}
.process__you .process__who,
.process__you .process__you-sub { color: var(--ink); }
.process__you-step {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 850;
  font-stretch: 80%;
  line-height: 1.1;
}
.process__you-sub { margin-top: 0.5rem; color: var(--slate); }

.steps { margin: 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: baseline;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-weight: 900;
  font-stretch: var(--narrow);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.step__t {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
}

/* 4. Benefits */
.benefits {
  padding-block: var(--section);
  background: var(--asphalt);
  color: var(--on-asphalt);
}
.benefits__list { margin: 0; padding: 0; list-style: none; }
.benefit {
  display: grid;
  gap: 0.75rem;
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-top: 1px solid rgba(233, 238, 242, 0.14);
}
.benefit:first-child { border-top: 0; padding-top: 0; }
.benefit__title {
  font-size: var(--text-benefit);
  font-weight: 900;
  font-stretch: 64%;
  line-height: 0.95;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
}
.benefit__body { max-width: 46ch; color: var(--on-asphalt-muted); font-size: var(--text-lg); }

/* 5. FAQ */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; gap: 2rem; }
.faq__list { border-top: 2px solid var(--ink); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
  font-size: var(--text-lg);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%23161b21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--fast) var(--ease-out);
}
.qa[open] summary::after { transform: rotate(180deg); }
.qa summary:hover { color: var(--slate); }
.qa p { max-width: 60ch; padding-bottom: 22px; color: var(--slate); }

.email-link { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  padding-block: 32px;
  background: var(--asphalt);
  color: var(--on-asphalt-muted);
  font-size: var(--text-sm);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.wordmark--footer { color: var(--on-asphalt); font-size: 1.0625rem; }

@media (max-width: 1023px) {
  .hero { padding-bottom: calc(var(--gable) * 0.9); }
}

/* Tablet and up */
@media (min-width: 768px) {
  .estimate__lines { padding-inline: 24px; }
  .estimate__head { padding-inline: 24px; }
  .process__split { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
  .faq__grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 4.5rem); }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; row-gap: 0; }
  .hero__title { grid-column: 1 / -1; max-width: 22ch; }
  .hero__visual { justify-content: center; margin-top: -3rem; transform: translateY(calc(var(--gable) * 0.8)); }
  .phone { width: 320px; transform: rotate(2deg); }
  .hero__copy { padding-bottom: calc(var(--gable) * 0.6); }
  .proof__intro { grid-template-columns: 6fr 5fr; align-items: end; }
  .benefit { grid-template-columns: 7fr 5fr; column-gap: 4rem; align-items: end; }
  .benefit__body { padding-bottom: 0.4rem; }

  .reel {
    grid-auto-columns: minmax(0, 1fr);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* One orchestrated moment: the estimate fills in on load */
@media (prefers-reduced-motion: no-preference) {
  .js .estimate__line {
    opacity: 0;
    transform: translateY(6px);
    animation: line-in 420ms var(--ease-out) forwards;
  }
  .js .estimate__line:nth-child(1) { animation-delay: 250ms; }
  .js .estimate__line:nth-child(2) { animation-delay: 650ms; }
  .js .estimate__line:nth-child(3) { animation-delay: 850ms; }
  .js .estimate__line:nth-child(4) { animation-delay: 1050ms; }

  .js .estimate__was { text-decoration: none; background: linear-gradient(#c2410c, #c2410c) 0 55% / 0 2px no-repeat; animation: strike 380ms var(--ease-out) 600ms forwards; }
}

@keyframes line-in { to { opacity: 1; transform: none; } }
@keyframes strike { to { background-size: 100% 2px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
