/* get-found.css: places and sizes the page's parts (plan.md, "Get found"), with system.css's tokens. The header and the
   close are the shared components (components.css). */

/* the main button and its note (the header and the close) */
.hero__cta, .close__cta { margin-top: var(--space-4); }
.cta-note { margin: var(--space-2) 0 0; font-size: var(--fs-small); color: color-mix(in srgb, var(--c-on-ink) 78%, transparent); }

/* a designed scene's frame on the ink, lit from its top (#looking, #area) */
.gf-frame {
  position: relative; padding: clamp(10px, 1.4vw, 18px); border-radius: var(--radius-l);
  background: radial-gradient(90% 70% at 72% 0%, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 70%), color-mix(in srgb, var(--c-on-ink) 4%, var(--c-ink));
  border: 1px solid color-mix(in srgb, var(--c-on-ink) 12%, transparent); box-shadow: var(--shadow-l);
}

/* 1. Header: the salon in two clips; the words at the left, the Maps card at the right over the chairs and the
   stylist's arm (the client's face stands at 49 to 55% of the first clip, the stylist's at the top middle of the second:
   never under a word or the card). From 1024 to 1199 px the stage stands above, the card overlapping its foot at the
   right; under 1024 the words come under the stage and the card under the words. */
.gf-top .hero__words h1 { max-width: 9.5em; }
.gf-top .hero__lede { max-width: 27em; }
/* (two classes: the base scene's own rule on its host sets position: relative) */
.gf-top .gf-top__search { position: absolute; z-index: 5; top: 50%; right: max(var(--gutter), calc(50% - 640px)); width: clamp(440px, 36vw, 502px); translate: 0 -50%; }
@media (max-width: 1199px) {
  .gf-top { display: grid; grid-template-columns: minmax(0, 1fr) min(500px, 48%); align-items: start; min-height: 0; }
  .gf-top .hero__stage { position: relative; grid-column: 1 / -1; grid-row: 1; height: clamp(420px, 56vw, 620px); }
  .gf-top .hero__stage::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 40%, transparent) 22%, transparent 46%); }
  .gf-top .hero__words { grid-column: 1; grid-row: 2; padding-block: var(--space-3) var(--space-5); }
  /* the card stays more than half on the footage (Tomer: a card on its photo stays on it at every width), its top
     under the client's face */
  .gf-top .gf-top__search { position: relative; grid-column: 2; grid-row: 2; top: auto; right: auto; width: auto; translate: none; margin: -220px max(0px, calc(var(--gutter) - 16px)) 0 0; }
  .gf-top .hero__stop { top: calc(clamp(420px, 56vw, 620px) - 220px - 52px); bottom: auto; right: var(--gutter); }
}
@media (max-width: 1199px) {
  /* off the footage (over its foot and the ink, or on the ink) the card is solid paper, not glass */
  .gf-top .gf-top__search[data-look] .sd-card, .gf-top .gf-top__search[data-look] .sd-pop { background: var(--c-paper); }
}
@media (max-width: 1023px) {
  .gf-top { display: flex; flex-direction: column; align-items: stretch; }
  .gf-top .hero__stage { order: 1; }
  .gf-top .gf-top__search { order: 2; width: 100%; max-width: 540px; margin: -220px auto 0; padding-inline: max(16px, calc(var(--gutter) - 16px)); }
  .gf-top .hero__words { order: 3; padding-top: var(--space-2); }
}
@media (max-width: 767px) {
  .gf-top .hero__stage { height: 400px; }
  .gf-top .hero__stop { top: calc(400px - 220px - 52px); right: 14px; left: auto; }
}

/* 2. People nearby are looking (the signature): the head beside the frame from 1200 px, above it under 1200. */
.looking { padding-block: clamp(4.5rem, 7vw, 6rem); }
.looking__in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 3.4vw, 3rem); align-items: center; }
.looking__head h2 { margin-bottom: var(--space-2); font-size: clamp(1.9rem, 1.1rem + 1.6vw, 2.6rem); }
.looking__head .lede { margin: 0; }
.looking__scene { height: 560px; }
.looking__stop { position: absolute; right: 0; top: -56px; z-index: 3; }
@media (max-width: 1199px) {
  .looking__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .looking__head { max-width: 40rem; }
  .looking__scene { height: clamp(520px, 52vw, 560px); }
}
@media (max-width: 599px) { .looking__scene { height: 600px; } }

/* 3. The call (F3: an AC technician at his truck; Part 2's was a stylist): him on the phone in a wide frame, held at
   its top so his head stays whole; the Maps card in glass over its right part, the street and the trees, clear of his
   face (28 to 38% across) and of the truck's mirror; on a phone the frame stands tall around him and the card sits on
   its lower part. The stop icon at the frame's top right, over the trees. */
.call__frame { position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.call__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.call__scene { position: absolute; right: clamp(20px, 4%, 48px); top: 50%; width: clamp(330px, 32%, 380px); height: 360px; translate: 0 -50%; }
.call__stop { position: absolute; z-index: 3; right: 16px; top: 16px; }
@media (max-width: 1023px) {
  .call__frame { aspect-ratio: 16 / 9; }
}
@media (max-width: 599px) {
  .call__frame { aspect-ratio: 5 / 8; }
  .call__frame img { object-position: 41% 30%; }
  .call__scene { left: 14px; right: 14px; top: auto; bottom: 14px; width: auto; height: 312px; translate: none; --anchor: foot; }
}

/* 4. Your whole area: the region on the ink, centered under its head. */
.area__head { margin-inline: auto; text-align: center; }
.area__frame { max-width: 920px; margin-inline: auto; }
.area__scene { height: 520px; }
.area__stop { position: absolute; right: 0; top: -56px; z-index: 3; }
@media (max-width: 599px) {
  .area__frame { margin-inline: calc(12px - var(--gutter)); padding: 6px; }
  .area__scene { height: 560px; }
}

/* 5. What's included: the six things at the left, numbered as the profile's pieces; a clinic's doctor at her laptop at
   the right (F3: Part 2's was a salon owner at her desk), her clinic's profile filling in glass over the photo's left
   part, the wall and the laptop (her face at 74 to 88% across: the photo is held at its right edge so it stands clear
   of the card); under 1200 px the list comes first and the photo under it; on a phone the frame stands 752 px tall at
   every width (an aspect ratio shrank it on a 360 px phone while the card grew, the card then reaching her chin), the
   photo drawn 70 px taller with that much of the wall above her cut off, so the whole card (420 to 450 px) starts under
   her chin and the frame is seen nearly whole between the header and the call bar. */
.incl__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.incl__text h2 { margin-bottom: var(--space-2); }
.incl__list { display: grid; gap: 14px; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.incl__list li { display: flex; align-items: flex-start; gap: 14px; }
.incl__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--c-ink); color: var(--c-accent-on-ink); font: 700 14px/1 var(--font-ui); }
.incl__list li > span:last-child { color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.45; }
.incl__list b { display: block; color: var(--c-ink); font: 600 var(--fs-ui)/1.3 var(--font-ui); }
.incl__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.incl__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%; }
/* the stop icon at the photo's top left, the card under it */
.incl__scene { position: absolute; left: clamp(16px, 3.4%, 24px); top: calc(clamp(16px, 3.4%, 24px) + 54px); bottom: clamp(16px, 3.4%, 24px); width: 340px; }
.incl__stop { position: absolute; z-index: 3; left: clamp(16px, 3.4%, 24px); top: clamp(16px, 3.4%, 24px); }
@media (max-width: 1199px) {
  .incl__in { grid-template-columns: minmax(0, 1fr); }
  .incl__text { max-width: 44rem; }
  .incl__frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 899px) { .incl__frame { aspect-ratio: 4 / 3; } }
@media (max-width: 599px) {
  .incl__frame { aspect-ratio: auto; height: 752px; }
  .incl__frame > img { height: calc(100% + 70px); margin-top: -70px; object-position: 90% 30%; }
  .incl__scene { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; height: 460px; --anchor: foot; }
}

/* 6. Close: the client waiting and the owner walking in to greet her stand at both sides of the clip, so the clip is a
   band across the top and the words stand centered under it, on the ink. */
.gf-close { padding-block: 0 clamp(4.5rem, 8vw, 6.5rem); text-align: center; }
.gf-close .close__media { position: relative; inset: auto; aspect-ratio: 16 / 9; max-height: 580px; width: 100%; }
.gf-close .close__video { object-position: 50% 0%; }
.gf-close .close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 35%, transparent) 26%, transparent 50%); }
.gf-close .close__in { margin-top: calc(-1 * var(--space-5)); }
.gf-close .close__in h2, .gf-close .close__in .lede { margin-inline: auto; max-width: 34rem; }
.gf-close .close__cta { display: grid; justify-items: center; }
/* (the stop icon at the top left, over the window: the owner's face passes the top right) */
.gf-close .close__stop { top: 16px; right: auto; left: var(--gutter); }
