/*
  Layout: the editorial hero (the headline is the picture) and the statement section.
*/

/* ---------------------------------------------------------------- the hero: exactly the first screen */
main > section.hero { min-height: 100svh; padding-top: calc(var(--nav) + var(--hgap)); padding-bottom: calc(var(--hpadb) + var(--bar)); }
.hero-text { flex: 1 1 auto; display: flex; flex-direction: column; }

.ed {
  margin: 0;
  --ed: min(calc((100vw - 2 * var(--gut)) / 6.9), calc((100svh - 330px) / 2.85));
  font: var(--display-weight) clamp(40px, var(--ed), 186px)/.95 var(--font-display);
  letter-spacing: var(--display-tracking-xl);
  white-space: nowrap;
  text-wrap: nowrap;
}
.ed__pill { position: relative; display: inline-block; width: 2.3em; height: .7em; margin: 0 .04em; border-radius: 999px; overflow: hidden; vertical-align: baseline; background: var(--surface); }
.ed__pill > img { width: 100%; height: 100%; object-fit: cover; }
.ed__pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); pointer-events: none; }
.br-s { display: none; }

.hero__band { display: none; }

/* the docked foot: the lead on the left line, the actions from the split line */
.hero__foot { margin-top: auto; padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.hero__lead { grid-column: 1 / span 5; font-size: var(--t-lead); line-height: 1.5; color: var(--c-text); }
.hero__foot > .btn-row { grid-column: 7 / span 6; }

@media (max-width: 1023px) {
  .ed { font-size: clamp(40px, 13.4vw, 124px); }
  .br-l { display: none; }
  .br-s { display: inline; }
  .ed__pill--b { display: none; }
  /* the words first, then the photograph in what is left of the screen */
  .hero__foot { order: 2; }
  .hero__band { order: 3; display: block; flex: 1 1 0; min-height: 132px; margin-top: var(--s-6); border-radius: 999px; overflow: hidden; background: var(--surface); }
  .hero__band > picture { display: contents; }
  .hero__band img { width: 100%; height: 100%; object-fit: cover; }
  .hero__foot { margin-top: var(--s-6); padding-top: 0; border-top: 0; display: flex; flex-direction: column; align-items: stretch; gap: var(--s-5); }
  .hero__lead { max-width: 34em; }
}
@media (max-width: 639px) {
  .hero__band { margin-top: var(--s-5); border-radius: 80px; }
  .hero__foot { margin-top: var(--s-5); gap: var(--s-4); }
}

/* ---------------------------------------------------------------- the statement: one large paragraph in its screen */
.statement__label { font: 500 16px/1.25 var(--font-text); letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-6); }
.statement__text {
  font: var(--display-weight) clamp(28px, 5.7vw, 82px)/1.08 var(--font-display);
  letter-spacing: var(--display-tracking-xl);
  color: var(--ink);
  text-wrap: pretty;
}
@media (min-width: 640px) and (max-width: 1023px) { .statement__text { font-size: clamp(40px, 7.4vw, 76px); } }
@media (max-width: 639px) { .statement__label { margin-bottom: var(--s-5); } .statement__text { font-size: clamp(30px, 9.6vw, 40px); line-height: 1.1; } }

/* ---------------------------------------------------------------- the page: section heights, and what a small screen leaves out
   (the copy is cut, never shrunk, so each section stays on its screens) */
#features { --h: 2; }
@media (max-width: 1023px) {
  #features .card--row > p { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #features { --h: 1; }
}
@media (max-width: 639px) {
  #scan .section-head__side { display: none; }
  #estimates .facts, #estimates .split__text > .link { display: none; }
  #questions .split__text > .t-lead, #questions .split__text > .link { display: none; }
  #questions .split { row-gap: var(--s-6); }
  #questions .faq__item:nth-child(4) { display: none; }
}
