/* DMA roofing sales page.
   Dark theme, locked. One accent (burnt orange). One radius (6px). */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg:        #0d0f12;
  --bg-2:      #14171c;
  --bg-3:      #191d23;
  --line:      #262b33;
  --line-soft: #1e232a;
  --text:      #e9e7e4;
  --muted:     #9aa2ad;
  --accent:    #e4692c;
  --accent-dk: #c9551d;
  --accent-ink:#140d07;
  --r: 6px;
  --wrap: 1200px;
  --sans: 'Geist', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

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

/* Sections and strips set display, so [hidden] has to win explicitly. */
[hidden] { display: none !important; }

/* Off-screen but reachable by screen readers, without creating scroll area. */
.vis-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r); font-weight: 500;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip:focus { transform: none; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: var(--r);
  font: 500 16px/1 var(--sans);
  padding: 15px 26px;
  text-decoration: none; cursor: pointer;
  transition: background .18s cubic-bezier(.16,1,.3,1), transform .12s ease;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; padding: 17px 26px; }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-3); border-color: var(--accent); color: var(--text); }

/* --- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgb(13 15 18 / .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__in {
  max-width: var(--wrap); margin-inline: auto; padding: 0 20px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: .04em; text-decoration: none;
}
.wordmark__mark {
  width: 20px; height: 12px;
  background: var(--accent);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 78% 100%, 50% 34%, 22% 100%);
}

/* --- 1. Hero ------------------------------------------------------------ */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgb(13 15 18 / .96) 0%, rgb(13 15 18 / .82) 46%, rgb(13 15 18 / .55) 100%),
    radial-gradient(120% 90% at 78% 12%, #3a3126 0%, #14171c 58%, #0d0f12 100%);
  background-size: cover;
  background-position: center;
}
/* Applied by app.js only once /img/hero.jpg is confirmed to exist. */
.hero__media.has-photo {
  background:
    linear-gradient(105deg, rgb(13 15 18 / .96) 0%, rgb(13 15 18 / .80) 46%, rgb(13 15 18 / .48) 100%),
    url('/img/hero.jpg') center / cover no-repeat;
}
.hero__in {
  max-width: var(--wrap); margin-inline: auto; padding: 76px 20px 84px;
  display: grid; gap: 44px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; min-height: min(660px, 80dvh);
}
.hero__copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.15rem, 4.3vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 700;
  max-width: 18ch;
}
.lede { margin: 0; color: var(--muted); font-size: clamp(1.02rem, 1.55vw, 1.2rem); max-width: 46ch; }

.offer {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 30px 28px;
  box-shadow: 0 24px 70px rgb(0 0 0 / .45);
}
.offer__tag {
  margin: 0 0 6px; color: var(--accent);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.offer__price { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.offer__price span { color: var(--text); font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; }
.offer__h { margin: 0 0 14px; font-size: 1.12rem; font-weight: 500; line-height: 1.4; }
.offer__why { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.offer__note { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* --- CTA strips --------------------------------------------------------- */

.strip {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 26px; padding: 22px 20px;
}
.strip p { margin: 0; color: var(--muted); font-size: 15.5px; text-align: center; }

/* --- Section headings --------------------------------------------------- */

section > .wrap { padding-block: clamp(64px, 8vw, 104px); }
.sec-h {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 700;
  max-width: 20ch;
}
.sec-p { margin: 0 0 44px; color: var(--muted); max-width: 58ch; font-size: 1.02rem; }

/* --- 2. Work ------------------------------------------------------------ */

.reel { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reel__item {
  position: relative; margin: 0;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); overflow: hidden;
}
.reel__item:first-child { grid-column: span 2; grid-row: span 2; }
.reel__item video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel__cap {
  padding: 14px 16px; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* --- 3. Process --------------------------------------------------------- */

.proc { display: grid; gap: 26px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.proc h3 { margin: 0 0 12px; font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; }
.proc__you {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 28px;
}
.qs { margin: 0; padding: 0; list-style: none; }
.qs li {
  padding: 11px 0 11px 26px; position: relative;
  color: var(--muted); font-size: 15.5px;
}
.qs li + li { border-top: 1px solid var(--line-soft); }
.qs li::before {
  content: ''; position: absolute; left: 4px; top: 19px;
  width: 9px; height: 1px; background: var(--accent);
}
.proc__us { display: grid; gap: 18px; }
.proc__us article { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); }
.proc__us p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --- 4. Benefits -------------------------------------------------------- */

.bento { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 28px; background: var(--bg-2);
}
.cell h3 { margin: 0 0 10px; font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; }
.cell p { margin: 0; color: var(--muted); font-size: 15.5px; }
.cell--wide { grid-column: span 3; }
.cell--photo {
  background:
    linear-gradient(100deg, rgb(20 23 28 / .97) 0%, rgb(20 23 28 / .84) 52%, rgb(20 23 28 / .58) 100%),
    radial-gradient(90% 160% at 88% 40%, #4a3b28 0%, #1a1e24 62%, #14171c 100%);
}
.cell--photo h3, .cell--photo p { max-width: 54ch; }
.cell--tint { background: var(--bg-3); border-color: #2f3540; }
.cell--honest { border-color: var(--accent); background: var(--bg-3); }
.not-included { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.not-included li { color: var(--muted); font-size: 15.5px; padding-left: 16px; border-left: 2px solid var(--accent); }
.not-included strong { color: var(--text); font-weight: 500; }

@media (min-width: 900px) {
  .not-included { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

/* --- 5. FAQ ------------------------------------------------------------- */

.faq__grid { display: grid; gap: 0 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child, .faq details:nth-last-child(2) { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 34px 22px 0; position: relative;
  font-size: 1.03rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 30px;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transform-origin: center;
  transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); font-size: 15.5px; max-width: 56ch; }

/* --- Form --------------------------------------------------------------- */

.start { background: var(--bg-2); border-top: 1px solid var(--line); }
.start__in {
  display: grid; gap: 46px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
}
.start__copy h2 {
  margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 700;
}
.start__copy p { margin: 0; color: var(--muted); max-width: 42ch; }

.form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; display: grid; gap: 20px;
}
.row { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 14px; font: 400 15.5px/1.5 var(--sans);
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: #6f7783; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #333a45; }
.field [aria-invalid='true'] { border-color: #ff7a5c; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.err { margin: 0; color: #ff8f74; font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.form__msg { margin: 0; font-size: 15px; text-align: center; }
.form__msg:empty { display: none; }
.form__msg.is-ok { color: #7ddba6; }
.form__msg.is-bad { color: #ff8f74; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* --- Footer ------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line-soft); }
.foot__in {
  padding-block: 30px; display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; color: var(--muted); font-size: 14px;
}
.foot p { margin: 0; }

/* --- Reveal ------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal--d1.is-in { transition-delay: 55ms; }
.reveal--d2.is-in { transition-delay: 110ms; }
.reveal--d3.is-in { transition-delay: 165ms; }
.reveal--d4.is-in { transition-delay: 220ms; }
.reveal--d5.is-in { transition-delay: 275ms; }

.done h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 500; }
.done p { margin: 0; color: var(--muted); font-size: 15.5px; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 56px; min-height: 0; gap: 34px; }
  .hero__copy h1 { max-width: 18ch; }
  .proc, .start__in { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq details:nth-last-child(2) { border-bottom: 0; }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel__item:first-child { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 720px) {
  .nav__in { height: 62px; }
  .hero__in { padding: 44px 20px 56px; }
  .bento { grid-template-columns: 1fr; }
  .cell--wide { grid-column: span 1; }
  .reel { grid-template-columns: 1fr; }
  .reel__item:first-child { grid-column: span 1; }
  .row { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .offer { padding: 26px 22px; }
  .strip { flex-direction: column; }
  .strip .btn { width: 100%; max-width: 340px; }
}
