/* ==========================================================================
   How it works
   The round explained end to end: unlock the street, book a window, confirm
   in the app, and the street wave that gets it to the door in four minutes.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */

.hiw-hero__title {
  max-width: 15ch;
  font-family: var(--pp-font-display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: var(--pp-display-track);
  text-transform: uppercase;
}

.hiw-hero__lede {
  max-width: 44ch;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.3;
  color: rgba(255, 243, 220, 0.9);
}

/* The promise at the end of the hero. Flame, heavier and a step up in size, so
   it lands as a claim rather than a fourth line of description. */
.hiw-hero__pop {
  display: inline-block;
  margin-block-start: 0.35em;
  font-weight: 800;
  font-size: 1.15em;
  color: var(--pp-flame);
}

/* ---- Steps intro --------------------------------------------------------- */

.hiw-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pp-space-4);
  text-align: center;
}

.hiw-intro__title {
  max-width: 16ch;
  font-family: var(--pp-font-display);
  font-size: clamp(52px, 7vw, 110px);
  line-height: 0.9;
  letter-spacing: var(--pp-display-track);
  text-transform: uppercase;
}

.hiw-intro__lede {
  max-width: 58ch;
  font-size: var(--pp-body-l);
  line-height: 1.5;
  color: var(--pp-ink);
}

/* ---- Step 03 · the app --------------------------------------------------- */

.hiw-app {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(240px, 1.15fr);
  align-items: center;
  gap: var(--pp-space-5);
  width: min(100%, 720px);
}

/* A device mock, not a UI component — the only rounded thing on the page,
   because it is a picture of a phone. */
.hiw-phone {
  width: 280px;
  max-width: 100%;
  margin-inline: auto;
  padding: 11px;
  background: var(--pp-char);
  border: 3px solid var(--pp-char);
  border-radius: 38px;
  box-shadow: 12px 14px 0 var(--pp-ovenred);
}

.hiw-phone__screen {
  overflow: hidden;
  border-radius: 28px;
  background: var(--pp-semolina);
  color: var(--pp-char);
}

.hiw-phone__status {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 6px;
  font-family: var(--pp-font-data);
  font-size: 10px;
  font-weight: 700;
}

.hiw-phone__head {
  padding: 16px;
  background: var(--pp-ovenred);
  color: var(--pp-semolina);
}

.hiw-phone__meta {
  display: block;
  margin-bottom: 5px;
  font-family: var(--pp-font-data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hiw-phone__title {
  font-family: var(--pp-font-display);
  font-size: 30px;
  line-height: 0.9;
  text-transform: uppercase;
}

.hiw-phone__card {
  margin: 14px;
  border: var(--pp-rule-solid) solid var(--pp-char);
  background: var(--pp-paper);
}

.hiw-phone__shot { height: 118px; }

.hiw-phone__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hiw-phone__cardcopy { padding: 12px; }

.hiw-phone__usual {
  font-family: var(--pp-font-display);
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
}

.hiw-phone__order {
  margin-top: var(--pp-space-1);
  font-family: var(--pp-font-data);
  font-size: 10px;
  font-weight: 700;
}

.hiw-phone__window {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 11px;
  background: var(--pp-char);
  color: var(--pp-semolina);
  font-family: var(--pp-font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hiw-phone__window strong { color: var(--pp-flame); }

.hiw-phone__actions {
  display: grid;
  gap: 8px;
  padding: 0 14px 16px;
}

.hiw-phone__action {
  padding: 10px 8px;
  border: var(--pp-rule-solid) solid var(--pp-char);
  background: transparent;
  color: var(--pp-char);
  font-family: var(--pp-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hiw-phone__action--primary {
  background: var(--pp-ovenred);
  border-color: var(--pp-ovenred);
  color: var(--pp-semolina);
}

.hiw-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-3);
}

.hiw-benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: var(--pp-space-3);
  padding-bottom: var(--pp-space-3);
  border-bottom: var(--pp-rule-hair) solid var(--pp-crust);
}

.hiw-benefit:last-child { padding-bottom: 0; border-bottom: 0; }

.hiw-benefit__index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--pp-flame);
  color: var(--pp-char);
  font-family: var(--pp-font-data);
  font-size: 12px;
  font-weight: 700;
}

.hiw-benefit__title {
  font-family: var(--pp-font-ui);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hiw-benefit__body {
  margin-top: var(--pp-space-1);
  font-size: var(--pp-body-s);
  line-height: 1.45;
  color: var(--pp-ink);
}

@media (max-width: 1099px) {
  .hiw-app { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Step 04 · the street wave ------------------------------------------- */

.hiw-wave { --pp-docket-w: 760px; --pp-docket-shadow: var(--pp-ember); }

.hiw-wave__photo {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-bottom: var(--pp-rule-solid) solid var(--pp-char);
}

.hiw-wave__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hiw-wave__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22, 19, 15, 0.85), transparent 60%);
}

.hiw-wave__caption {
  position: absolute;
  z-index: 1;
  left: var(--pp-space-4);
  bottom: var(--pp-space-3);
  max-width: 16ch;
  font-family: var(--pp-font-display);
  font-size: 32px;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--pp-semolina);
}

/* ---- Oven to door -------------------------------------------------------- */

.hiw-fresh {
  border-top: var(--pp-rule-solid) solid var(--pp-char);
}

.hiw-fresh__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--pp-space-4);
  padding: clamp(48px, 6vw, 96px) var(--pp-gutter);
}

.hiw-fresh__title {
  font-family: var(--pp-font-display);
  font-size: clamp(56px, 7vw, 108px);
  line-height: 0.9;
  letter-spacing: var(--pp-display-track);
  text-transform: uppercase;
}

.hiw-fresh__body {
  max-width: 50ch;
  font-size: var(--pp-body-l);
  line-height: 1.5;
  color: var(--pp-ash);
}

/* ---- FAQ ----------------------------------------------------------------- */

.hiw-faq {
  --pp-split-a: 0.75fr;
  --pp-split-b: 1.25fr;
  --pp-split-gap: var(--pp-space-7);
  align-items: start;
}

.hiw-faq__title {
  font-family: var(--pp-font-display);
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: 0.9;
  letter-spacing: var(--pp-display-track);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hiw-faq { --pp-split-gap: var(--pp-space-5); }
}

/* ---- Closing check ------------------------------------------------------- */

.hiw-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pp-space-4);
  text-align: center;
}

.hiw-close__title {
  max-width: 18ch;
  font-family: var(--pp-font-display);
  font-size: clamp(52px, 7vw, 116px);
  line-height: 0.9;
  letter-spacing: var(--pp-display-track);
  text-transform: uppercase;
}

.hiw-close__lede {
  max-width: 50ch;
  font-size: var(--pp-body-l);
  line-height: 1.5;
}

.hiw-close__form {
  width: min(100%, 620px);
  text-align: left;
}
