/* Mavericks Exteriors. Colors set in the editor arrive as --gold, --gold-text, --ink, and --cream. */
:root {
  --gold: #c9a227;
  --gold-text: #8a6a00;
  --ink: #111111;
  --cream: #f7f5ef;
  --sand: #f4f2ec;
  --line: #ece7da;
  --dash: #d6cfbc;
  --field: #8f8775;
  --body: #3d3d3d;
  --muted: #6b6b6b;
  --panel: #1c1c1c;
  --panel-line: #333333;
  --on-dark: #cfcfcf;
  --on-dark-muted: #bdbdbd;
  --bar-line: #2a2a2a;
  --error: #b42318;
  /* Web fonts can't load on HeroBoard yet, so headings use the closest condensed face on each device. */
  --display: "Barlow Condensed", "DIN Condensed", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed",
    "Arial Narrow", "Liberation Sans Narrow", sans-serif-condensed, "Helvetica Neue", Arial, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  /* Room at the top for a header that stays in view: only the logo bar on narrow screens, when it's sticky. */
  --header: 0px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-text);
}

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

[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.95;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.btn .icon {
  flex: none;
}

.btn--lg {
  min-height: 56px;
  padding: 16px 26px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #2b2b2b;
  color: #fff;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: #d8b23a;
  color: var(--ink);
}

.btn--outline {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn__arrow {
  color: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section--white {
  background: #fff;
}

.section--cream {
  background: var(--cream);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

/* Back-to-back sections on the same background share one gap. */
.section--white + .section--white,
.section--cream + .section--cream {
  padding-top: 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head--center {
  text-align: center;
}

.kicker {
  color: var(--gold-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.kicker a {
  text-decoration: none;
}

.section--dark .kicker,
.page-hero .kicker {
  color: var(--gold);
}

.h2 {
  margin-top: 8px;
  font-size: clamp(38px, 5.4vw, 52px);
  line-height: 1;
}

.section-head .h2:first-child {
  margin-top: 0;
}

.section-intro {
  max-width: 720px;
  margin: -16px auto 40px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

.section--dark .section-intro {
  color: var(--on-dark);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack .h2 {
  margin-top: 0;
}

.lead-text {
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}

.center-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Side menu, after Diamond Roof Works' rail. On wide screens it's a dark column down the left, with
   the logo at the top, the menu under it, and the call and quote buttons at the bottom. Narrower
   screens get the logo in a bar at the top, and the menu, call, and quote buttons in a bar along the
   bottom. */
.rail {
  z-index: 50;
  background: var(--ink);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  flex: none;
  width: auto;
  height: 52px;
}

.brand__name {
  font-family: var(--display);
  font-size: 26px;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__name span {
  color: var(--gold);
}

/* The menu runs down a line of diamonds; the page script lights the one for the part of the page in view. */
.rail__links {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__links::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 7px;
  width: 1px;
  background: var(--panel-line);
}

.rail__links a {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rail__links a:hover,
.rail__links a.is-passed,
.rail__links a.is-current {
  color: #fff;
}

.rail__mark {
  width: 10px;
  height: 10px;
  margin-left: 2px;
  border: 1.5px solid currentColor;
  background: var(--ink);
  transform: rotate(45deg);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.rail__links a.is-passed .rail__mark {
  border-color: var(--on-dark-muted);
  background: var(--on-dark-muted);
}

.rail__links a.is-current .rail__mark {
  border-color: var(--gold);
  background: var(--gold);
}

.rail__actions {
  display: grid;
  gap: 10px;
}

.rail__bar {
  display: none;
}

@media (min-width: 1024px) {
  :root {
    --rail-w: 15.5rem;
  }

  .rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: var(--rail-w);
    padding: 28px 22px 24px;
    border-right: 1px solid var(--bar-line);
    overflow-y: auto;
  }

  /* The mark over the name, like a lockup. */
  .rail__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .rail__brand .brand__mark {
    height: 64px;
  }

  .rail__brand .brand__name {
    font-size: 30px;
    white-space: normal;
  }

  .rail__brand .brand__name span {
    display: block;
  }

  .rail__nav {
    flex: 1;
    margin-top: 44px;
  }

  .rail__actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--bar-line);
  }

  main,
  .site-footer {
    margin-left: var(--rail-w);
  }
}

@media (max-width: 1023.98px) {
  .rail {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--bar-line);
  }

  .rail.is-sticky {
    position: sticky;
    top: 0;
  }

  :root:has(.rail.is-sticky) {
    --header: 65px;
  }

  .rail__nav,
  .rail__actions {
    display: none;
  }

  .rail__bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 3px solid var(--gold);
  }

  body:has(.rail__bar > *) {
    padding-bottom: calc(71px + env(safe-area-inset-bottom));
  }

  .rail__bar > .btn {
    flex: none;
    padding-right: 16px;
    padding-left: 16px;
  }

  .rail__menu {
    flex: 1;
    min-width: 0;
  }

  .rail__menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--panel-line);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .rail__menu summary::-webkit-details-marker {
    display: none;
  }

  .rail__menu[open] summary {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ink);
  }

  .rail__current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* The menu opens above the bar. */
  .rail__sheet {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    display: grid;
    max-height: 62svh;
    overflow: auto;
    padding: 8px 24px 16px;
    background: var(--ink);
    border-top: 1px solid var(--bar-line);
    box-shadow: 0 -16px 32px rgb(0 0 0 / 0.35);
  }

  .rail__sheet a {
    padding: 14px 0;
    border-bottom: 1px solid var(--bar-line);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
  }

  .rail__sheet a:hover {
    color: var(--gold);
  }
}

@media (max-width: 640px) {
  .brand__mark {
    height: 42px;
  }

  .brand__name {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 19px;
  }

  .rail__bar > .btn {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 14px;
  }
}

/* Hero */
.hero {
  background: #fff;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 72px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pill::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(48px, 6.4vw, 74px);
  letter-spacing: -1px;
  text-wrap: balance;
}

.hero__title .accent {
  color: var(--gold-text);
}

.hero__text {
  max-width: 520px;
  color: var(--body);
  font-size: 19px;
  line-height: 1.55;
}

/* In the editor: says the hero buttons open PredictiveSalesAI tools on the published site. */
.hero__note {
  color: var(--muted);
  font-size: 13px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.stars {
  color: var(--gold-text);
  letter-spacing: 1px;
}

.hero__media {
  position: relative;
  min-height: 440px;
  border-radius: 16px;
  background: var(--sand);
}

.hero__media.is-empty {
  border: 2px dashed var(--dash);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.badge-card {
  position: absolute;
  bottom: -20px;
  left: -16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgb(17 17 17 / 0.18);
}

.badge-card__logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

/* Fills the square, so a wide logo file with empty margins still reads at this size. */
.badge-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-card__kicker {
  color: #d9d9d9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-card__title {
  font-size: 17px;
  font-weight: 700;
}

.badge-card__text {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

/* Owens Corning's lockup is dark artwork for light backgrounds, so its card is white. */
.badge-card--lockup {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 18px 16px;
  background: #fff;
  color: var(--ink);
}

.badge-card--lockup .badge-card__kicker {
  color: var(--gold-text);
}

.badge-card__lockup {
  display: block;
  width: min(300px, 64vw);
  height: auto;
}

/* Quick actions */
.actions {
  padding: 72px 0;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--panel);
}

.action .icon {
  color: var(--gold);
}

.action h3 {
  font-size: 24px;
  font-weight: 700;
}

.action p {
  color: var(--on-dark);
  font-size: 16px;
  line-height: 1.55;
}

.action .btn {
  margin-top: auto;
}

/* In the editor: says the button opens a PredictiveSalesAI tool on the published site. */
.action__note {
  margin-top: -4px;
  color: var(--on-dark-muted);
  font-size: 13px;
}

/* A PredictiveSalesAI tool still loading after its button was clicked. */
a[data-psai][aria-busy="true"] {
  cursor: progress;
  opacity: 0.8;
}

/* PredictiveSalesAI's own launcher buttons: the site's buttons open the tools instead. */
.psai-holder .psai-app__launcher-container {
  display: none !important;
}

/* Certification */
.cert__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cert__panel,
.cert__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 260px;
  padding: 32px;
  border-radius: 16px;
  background: var(--sand);
  text-align: center;
}

.cert__art img {
  max-height: 320px;
  object-fit: contain;
}

.cert__logo img {
  width: 230px;
}

.cert__art--lockup img {
  width: min(100%, 520px);
  height: auto;
}

/* Stacked on phones, the wide lockup needs no tall panel around it. */
@media (max-width: 860px) {
  .cert__art--lockup {
    min-height: 0;
    padding: 36px 24px;
  }
}

.cert__panel-title {
  color: var(--ink);
  font-size: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.feature h3 {
  font-size: 24px;
  font-weight: 700;
}

.feature p {
  color: var(--body);
  line-height: 1.55;
}

.feature__visual {
  overflow: hidden;
  border-radius: 10px;
  background: var(--sand);
}

.feature__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature .btn {
  align-self: flex-start;
  margin-top: auto;
}

.feature__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* A lone card lies on its side: words and button left, photo right. */
.feature-grid > .feature:only-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 40px;
}

.feature:only-child > .feature__copy {
  grid-column: 1;
  grid-row: 2;
}

.feature:only-child > .btn {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  margin-top: 20px;
}

.feature:only-child > .feature__visual {
  grid-column: 2;
  grid-row: 1 / -1;
}

/* Beside a tall embedded tool, the words sit at the top rather than mid-way down. */
.feature-grid > .feature:only-child:has(> .feature__visual--frame) {
  grid-template-rows: 0 auto auto 1fr;
}

@media (max-width: 860px) {
  .feature-grid > .feature:only-child {
    display: flex;
  }
}

/* Roof layers: a 3D model of the roof beside the list of its layers. Each layer is a radio button,
   so the list and the chosen layer's description work without the page script. */
.roof3d {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  grid-template-rows: repeat(var(--labels), auto) 1fr;
  align-items: start;
  column-gap: 40px;
  row-gap: 8px;
}

.roof3d__stage {
  position: sticky;
  top: calc(var(--header) + 16px);
  grid-row: 1 / -1;
  grid-column: 1;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(110% 85% at 50% 35%, #fff 0%, var(--sand) 72%);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section--cream .roof3d__stage {
  background: radial-gradient(110% 85% at 50% 35%, #fff 0%, #ece7dc 72%);
}

.roof3d__scene {
  position: relative;
  aspect-ratio: 3 / 2;
}

.roof3d__scene > canvas,
.roof3d__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.roof3d__still {
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* The model fades in over the still picture as the roof starts to go on. */
.roof3d__scene > canvas {
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity 0.4s ease;
}

.roof-system.is-playing .roof3d__scene > canvas {
  opacity: 1;
}

.roof-system.is-playing .roof3d__still {
  opacity: 0;
}

/* Names the layer going on, or the chosen one. */
.roof3d__caption {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}

.roof3d__caption[hidden] {
  display: none;
}

.roof3d__caption-num {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-stretch: condensed;
  font-weight: 800;
}

.roof3d__controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

/* Without the model there is nothing to turn, and the still always shows the whole roof. */
.roof-system:not(.is-3d) .roof3d__controls,
.roof-system:not(.is-3d) .roof3d__caption {
  display: none;
}

.roof3d__button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease;
}

.roof3d__button:hover {
  border-color: var(--gold);
}

.roof3d__button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.roof3d__hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.layer {
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.layer:hover,
.layer.is-hover {
  border-color: var(--dash);
  transform: translateX(4px);
}

/* The layer going on while the roof builds. */
.layer.is-dropping {
  border-color: var(--gold);
}

.layer-input:checked + .layer {
  border-color: var(--gold);
  box-shadow:
    inset 0 0 0 1px var(--gold),
    0 8px 20px -14px rgb(17 17 17 / 0.5);
  transform: translateX(8px);
}

.layer-input:focus-visible + .layer {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* A sample of the material: drawn in CSS, then the model's own texture once it loads. */
.layer__swatch {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    var(--swatch, none) center / 300% auto,
    var(--slab);
  box-shadow: inset 0 0 0 1px rgb(17 17 17 / 0.1);
}

.layer__num {
  flex: none;
  min-width: 26px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 19px;
  font-stretch: condensed;
  font-weight: 800;
}

.layer__num .icon {
  display: block;
}

.layer-input:checked + .layer .layer__num {
  color: var(--gold-text);
}

.layer--all {
  --slab: linear-gradient(180deg, #6b5f53 0 22%, #2f2f31 22% 38%, #4a4744 38% 52%, #c3c6ca 52% 68%, #2b2c2e 68% 82%, #c99a5b 82%);
}

.layer--ridge {
  --slab: repeating-linear-gradient(90deg, #6d6157 0 9px, #3a332e 9px 10px);
}

.layer--shingles {
  --slab: repeating-linear-gradient(180deg, #74685c 0 8px, #2f2a26 8px 9px);
}

.layer--starter {
  --slab: linear-gradient(180deg, #4d4a47 0 68%, #141414 68% 80%, #4d4a47 80%);
}

.layer--ice_water {
  --slab: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.12) 0 1px, transparent 2px) 0 0 / 6px 6px, #2c2d2f;
}

.layer--underlayment {
  --slab: repeating-linear-gradient(180deg, #c5c8cc 0 8px, #6a6e72 8px 9px);
}

.layer--deck {
  --slab: linear-gradient(135deg, #dcaa66, #b98443);
}

.layer--ventilation {
  --slab: repeating-linear-gradient(180deg, #2c2c2c 0 3px, #101010 3px 5px);
}

.layer-detail {
  display: none;
  grid-row: -2 / -1;
  grid-column: 2;
  margin-top: 8px;
  padding: 26px 28px;
  border-top: 5px solid var(--gold);
  border-radius: 16px;
  background: var(--sand);
}

.section--cream .layer-detail {
  background: #fff;
}

.layer-input:checked + .layer + .layer-detail {
  display: block;
}

.layer-detail__step {
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.layer-detail__title {
  margin-top: 6px;
  font-size: clamp(26px, 2.6vw, 34px);
}

.layer-detail__text {
  margin-top: 12px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .roof3d {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr);
  }

  /* On phones the roof stays in view while the list scrolls under it. */
  .roof3d__stage {
    top: calc(var(--header) + 8px);
    z-index: 2;
    grid-row: auto;
    margin-bottom: 8px;
    box-shadow:
      inset 0 0 0 1px var(--line),
      0 14px 24px -20px rgb(17 17 17 / 0.6);
  }

  .layer {
    grid-column: 1;
  }

  .layer:hover,
  .layer-input:checked + .layer {
    transform: none;
  }

  /* The description opens right under the chosen layer. */
  .layer-detail {
    grid-row: auto;
    grid-column: 1;
    margin: 0 0 6px;
    padding: 20px 22px;
  }
}

/* Frames from other sites, such as Owens Corning's tools */
.embed {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.embed-frame {
  display: block;
  width: 1px;
  min-width: 100%;
  border: 0;
  background: #fff;
}

.feature__visual--frame {
  background: #fff;
}

.embed-placeholder {
  display: grid;
  place-items: center;
  padding: 32px;
  border: 2px dashed var(--dash);
  border-radius: 12px;
  background: var(--sand);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* Financing */
.fin-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-top: 5px solid var(--gold);
  border-radius: 16px;
  background: #fff;
}

.fin-card__label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.fin-card__amount {
  font-size: 64px;
}

.fin-card__amount span {
  color: var(--muted);
  font-size: 24px;
}

.fin-card__fine {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.checklist {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.checklist .icon {
  flex: none;
  margin-top: 1px;
  color: var(--gold-text);
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #222;
}

.gallery__item img,
.gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__video {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgb(17 17 17 / 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 0;
  background: rgb(17 17 17 / 0.28);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.video-play .icon {
  width: 76px;
  height: 76px;
  padding: 22px 20px 22px 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  fill: currentColor;
  transition: transform 0.15s;
}

.video-play:hover .icon {
  transform: scale(1.06);
}

.video-play span {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgb(17 17 17 / 0.75);
}

@media (max-width: 820px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__video {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    gap: 10px;
  }

  .gallery__item {
    border-radius: 10px;
  }
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.review__stars {
  color: var(--gold-text);
  font-size: 18px;
  letter-spacing: 2px;
}

.review blockquote p {
  font-size: 16px;
  line-height: 1.6;
}

.review blockquote p::before {
  content: "\201C";
}

.review blockquote p::after {
  content: "\201D";
}

.review figcaption {
  margin-top: auto;
  font-weight: 700;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.trust-badge {
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

a.trust-badge:hover {
  border-color: var(--gold);
}

/* Inspection form */
.lead__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}

.lead__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead__intro .h2 {
  margin-top: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
}

.contact-list a {
  text-decoration: none;
}

.contact-list .icon {
  flex: none;
  color: var(--gold-text);
}

.lead__photo {
  overflow: hidden;
  margin-top: 12px;
  border-radius: 16px;
}

.lead__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.lead__card {
  padding: 32px;
  border-top: 5px solid var(--gold);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--field);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--ink);
}

.lead-form .btn {
  margin-top: 20px;
}

.lead-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 15px;
}

.form-status[data-state="error"] {
  color: var(--error);
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead__success {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 8px 0;
  font-size: 18px;
  line-height: 1.55;
}

.lead__success .icon {
  color: var(--gold-text);
}

.lead__success-title {
  font-size: 36px;
}

/* Call to action */
.cta {
  border-top: 5px solid var(--gold);
  background: var(--ink);
  color: #fff;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.cta__title {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1;
}

.cta__text {
  margin-top: 10px;
  color: var(--on-dark);
  font-size: 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--bar-line);
  background: var(--ink);
  color: var(--on-dark-muted);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

/* The link and contact columns fit their longest line, such as the email address, beside the side menu too. */
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px 48px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer__brand {
  display: grid;
  align-content: start;
  gap: 16px;
  max-width: 380px;
}

.brand--light,
.brand--light:hover {
  color: #fff;
}

.footer__logo {
  justify-self: start;
}

.footer__logo img {
  width: 180px;
  height: auto;
}

.footer__heading {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer__col ul,
.social {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
}

.footer__bottom {
  border-top: 1px solid var(--bar-line);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
}

.footer__col li {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* Page title */
.page-hero {
  border-bottom: 5px solid var(--gold);
  background: var(--ink);
  color: #fff;
}

.page-hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-hero__inner.has-image {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.page-hero__title {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(42px, 6vw, 68px);
}

.page-hero__text {
  max-width: 620px;
  margin-top: 20px;
  color: var(--on-dark);
  font-size: 19px;
  line-height: 1.55;
}

.page-hero .btn-row {
  margin-top: 28px;
}

.page-hero__media {
  overflow: hidden;
  border-radius: 16px;
}

.page-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Page text */
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h1 {
  color: var(--ink);
  font-size: clamp(40px, 6vw, 60px);
}

.prose h2 {
  margin-top: 1.8em;
  color: var(--ink);
  font-family: var(--display);
  font-size: 36px;
  font-stretch: condensed;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6em;
  color: var(--ink);
  font-size: 22px;
}

.prose a {
  color: var(--gold-text);
  font-weight: 600;
}

.prose img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--gold-text);
}

.prose blockquote {
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-size: 20px;
}

.prose strong {
  color: var(--ink);
}

.prose-empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-top: 5px solid var(--gold);
  border-radius: 14px;
  background: #fff;
}

.section--white .step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.section--dark .step {
  background: var(--panel);
}

.step__num {
  color: var(--gold-text);
  font-size: 48px;
}

.section--dark .step__num {
  color: var(--gold);
}

.step h3 {
  font-size: 22px;
}

.step p {
  color: var(--body);
  line-height: 1.6;
}

.section--dark .step p {
  color: var(--on-dark);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.card:not(.card--photo) {
  padding-top: 28px;
}

.section--dark .card {
  border-color: var(--panel-line);
  background: var(--panel);
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 28px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--gold);
}

.section--dark .card__icon {
  background: #000;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px 28px;
}

.card h3 {
  font-size: 21px;
  line-height: 1.3;
}

.card p {
  color: var(--body);
  line-height: 1.6;
}

.section--dark .card p {
  color: var(--on-dark);
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--gold-text);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.faq[open] summary::after {
  content: "\2212";
}

.faq__answer {
  display: grid;
  gap: 12px;
  padding: 0 24px 22px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__body {
  display: grid;
  gap: 8px;
  padding: 24px;
  color: var(--body);
  line-height: 1.6;
}

.post-card__date {
  color: var(--muted);
  font-size: 14px;
}

.post-card__title {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.post-card__title a {
  text-decoration: none;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.pagination [aria-current] {
  background: var(--ink);
  color: #fff;
}

.article {
  padding: 72px 0 88px;
}

.article__head {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.article__title {
  margin-top: 10px;
  font-size: clamp(40px, 6vw, 64px);
}

.article__meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.article__image {
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 40px;
  border-radius: 16px;
}

.article__image img {
  width: 100%;
}

/* Phones */
@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .actions {
    padding: 56px 0;
  }

  .hero__inner {
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero__text,
  .page-hero__text {
    font-size: 17px;
  }

  .hero__media {
    min-height: 300px;
  }

  .hero .btn-row .btn {
    width: 100%;
  }

  .page-hero__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  /* Keeps the form right under its heading on phones. */
  .lead__photo {
    display: none;
  }

  .lead__card {
    padding: 24px;
  }

  .fin-card,
  .feature,
  .action {
    padding: 24px;
  }

  /* Embedded tools get the card's full width on phones. */
  .feature__visual--frame {
    margin-right: -24px;
    margin-left: -24px;
    border-radius: 0;
  }

  .cta__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .prose {
    font-size: 17px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
