/* site\assets\css\pages\results.css: Results (src\pages\results.mjs). Places and sizes its parts; the bands, footage,
   the screen photo, the doors, the marks, the FAQ, the picker and the inner close are design\components.css's. */

/* ---------- hero: the laptop at dusk with new patients landing on its screen; the words over the window ---------- */
.rh { position: relative; display: flex; align-items: center; min-height: max(640px, calc(100svh - var(--header-h, 72px))); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.rh__footage { inset: -1px; }
.rh__footage > figure { position: absolute; inset: 0; margin: 0; }
/* the photo drawn a little wider and set to the left, so the laptop ends before the words begin */
@media (min-width: 1000px) { .rh__footage > figure { left: -12%; } }
.rh__footage > figure > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.rh__footage::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 74%, transparent) 30%, color-mix(in srgb, var(--c-ink) 18%, transparent) 52%, transparent 64%); }
.rh__leads { position: absolute; inset: 0; }
.rh__stop { z-index: 6; right: auto; left: 16px; }
.rh__in { position: relative; z-index: 4; }
.rh__words { display: grid; justify-items: start; gap: 1.15rem; max-width: 520px; margin-left: auto; }
.rh__title { font-size: var(--fs-h1); line-height: 1.04; }
.rh__line { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-ink-soft); }
.rh__doors { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.5rem; margin-top: .35rem; }
@media (max-width: 999px) {
  .rh__footage > figure > img { object-position: 24% 60%; }
  .rh__words { max-width: 440px; }
}
@media (max-width: 759px) {
  /* the phone: the words on the forest, then the photo as a band under them, the screen in it */
  /* the band tall enough that the laptop's screen fills its width and the report on it reads at 11 px and up */
  .rh { display: block; min-height: 0; padding-top: 2.25rem; padding-bottom: 0; --rh-band: 580px; }
  .rh__in { padding-bottom: calc(var(--rh-band) + 1rem); }
  .rh__footage { inset: auto -1px -1px; height: var(--rh-band); }
  .rh__footage > figure > img { object-position: 34% 50%; }
  .rh__footage::after { background: linear-gradient(180deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 30%, transparent) 22%, transparent 40%); }
  .rh__stop { top: auto; bottom: calc(var(--rh-band) - 60px); left: auto; right: 12px; }
  .rh__words { max-width: none; margin-left: 0; }
  .rh__doors { flex-direction: column; align-items: stretch; width: 100%; }
  .rh__doors .btn { width: 100%; }
}

/* ---------- report: the three numbers rising on the forest; how each is traced under it ---------- */
.rp-part__pic { position: relative; width: min(100%, 1000px); height: 500px; margin-inline: auto; }
.rp-part__scene { height: 100%; }
.rp-part__stop { top: -14px; right: -10px; }
.rp-part__foot { display: grid; justify-items: center; gap: 1rem; margin-top: clamp(2rem, 1rem + 2.5vw, 3rem); }
.rp-part__lead { font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-on-ink); }
.rp-part__marks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; max-width: 1000px; }
.rp-part__marks li { font-weight: 600; color: var(--c-on-ink); }
@media (max-width: 899px) { .rp-part__marks { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
@media (max-width: 759px) {
  .rp-part__pic { height: auto; min-height: 640px; }
  .rp-part__scene { height: auto; }
  .rp-part__stop { top: -14px; right: -4px; }
}

/* ---------- forecast: the blueprint's three cards over the strategist and the couple ---------- */
.rf__side { display: grid; justify-items: start; gap: 1.1rem; }
.rf__pic { position: relative; }
.rf__stop { top: -14px; right: -10px; z-index: 6; }
@media (max-width: 759px) { .rf__stop { right: -4px; } }

/* ---------- close: the photo set in from the left, so her face sits clear of the words; the count low between them,
   over the hallway ---------- */
@media (min-width: 1180px) {
  .rclose__footage { left: 30%; }
  .rclose__footage::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 55%, transparent) 12%, transparent 32%); }
  .iclose > .sw-close__stage { right: auto; left: 49%; bottom: 5%; width: 300px; }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .rclose__footage { left: 30%; }
  .rclose__footage::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 50%, transparent) 16%, transparent 40%); }
  .iclose > .sw-close__stage { display: none; }
}

/* ---------- says (Eric, 11 Nov): the home page's six testimonials on the forest, those that name a result first; no
   photo, no stars, no company (Tomer, 3 Nov) ---------- */
.rsay__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, .6rem + 1vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.rsay__card { display: grid; grid-template-rows: 1fr auto; gap: 1.1rem; padding: clamp(1.25rem, 1rem + .8vw, 1.75rem); border: 1px solid var(--c-line-ink); border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-on-ink) 5%, var(--c-ink)); }
.rsay__text { position: relative; margin: 0; padding-top: 2.4rem; font-family: var(--font-display); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); font-weight: 700; line-height: 1.45; color: var(--c-on-ink); }
.rsay__text::before { content: '\201C'; position: absolute; top: -.45rem; left: -.1rem; font-size: 4.2rem; line-height: 1; color: var(--c-accent-on-ink); }
.rsay__by { padding-top: .9rem; border-top: 1px solid var(--c-line-ink); font-size: var(--fs-small); color: var(--c-on-ink-soft); }
.rsay__by b { font-family: var(--font-ui); font-weight: 800; color: var(--c-on-ink); }
@media (max-width: 999px) { .rsay__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .rsay__grid { grid-template-columns: minmax(0, 1fr); } }
