/* website.css: places and sizes the page's parts (plan.md, "A website that brings calls"), 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 (#convert; Every call answered's frame) */
.wb-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 words at the left on the ink, Lakeview Family Dental's new site at the right, emerging from the ink
   (site-hero: its host from 40% of the header's width to its right edge, its full height; the window fitted to it but
   for a sliver off the right, its own headline and live button at its left). The words keep clear of the window, so
   the h1 is a step smaller here. Under 1024 px the words stand first and the site under them; under 700 px of host
   the scene shows the phone's site, fitted whole. */
.wb-top .hero__stage::after { background: linear-gradient(90deg, var(--c-ink) 0%, var(--c-ink) 38%, color-mix(in srgb, var(--c-ink) 40%, transparent) 42%, transparent 50%); }
.wb-top .wb-top__site { position: absolute; inset: 0 0 0 40%; }
@media (min-width: 1024px) {
  .wb-top .hero__words > * { max-width: min(27rem, 40vw - var(--gutter) - 2.5rem); }
  .wb-top .hero__words h1 { font-size: clamp(2.1rem, 0.6rem + 2.6vw, 3.1rem); }
}
@media (max-width: 1023px) {
  /* (stretch: the hero's own centring would shrink the stage, whose content is all placed, to no width) */
  .wb-top { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .wb-top .hero__words { order: -1; padding-block: var(--space-5) var(--space-3); }
  .wb-top .hero__words > * { max-width: 34rem; }
  .wb-top .hero__stage { position: relative; inset: auto; height: 560px; }
  .wb-top .wb-top__site { inset: 0; }
  .wb-top .hero__stage::after { background: linear-gradient(180deg, var(--c-ink) 0%, transparent 12%); }
}
@media (max-width: 699px) {
  .wb-top .hero__stage { height: 600px; }
}

/* 2. What changes (F3: a hair salon's front desk; Part 2's was a dental receptionist's clip): the salon's owner at her
   front desk in the morning (web-desk-salon, a still photo the schedule moves over: her face at 49 to 57% across and 16
   to 33% down, her hands and phone at 48 to 62% across and 52 to 60% down, the plain counter from 63% down). From 1280
   px the words stand at the left and the photo bleeds off the right edge, cut to 1.28 : 1 from its right (its left
   edge at 28%: her face at 29 to 40% of the frame), Thursday's schedule in glass on its foot at the right, over the
   counter and the mirrors, clear of her face and hands; from 1024 px the words stand above the photo, cut the same way;
   under 1024 px the photo stands 740 px high, held at 91% (her face in the frame's left third), the card at its foot;
   on a phone held at 58%, her face high in the frame and the card under it. */
.desk__stage { position: relative; }
.desk__media { position: relative; aspect-ratio: 1.28; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); background: var(--c-ink); }
.desk__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 50%; }
.desk .desk__card { position: absolute; z-index: 2; right: 20px; bottom: 20px; width: min(420px, 52%); height: calc(100% - 40px); --so-j: flex-end; }
.desk__stop { position: absolute; z-index: 3; top: 16px; right: 16px; }
.desk__words h2 { max-width: 10em; }
.desk__words .lede { max-width: 26rem; margin: 0; }
@media (min-width: 1280px) {
  .desk .desk__grid { display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; max-width: none; margin-inline: 0; padding-right: 0; padding-left: max(var(--gutter), (100% - var(--max-w)) / 2); }
  .desk__media { border-radius: var(--radius-l) 0 0 var(--radius-l); }
  .desk .desk__card { right: 24px; bottom: 24px; height: calc(100% - 48px); }
}
@media (max-width: 1279px) {
  .desk__words { margin-bottom: var(--space-4); }
  .desk__stage { max-width: 900px; margin-left: auto; }
}
@media (max-width: 1023px) {
  .desk__stage { max-width: none; }
  .desk__media { aspect-ratio: auto; height: 740px; }
  .desk__photo { object-position: 91% 50%; }
  .desk .desk__card { right: 16px; bottom: 16px; height: calc(100% - 32px); }
}
@media (max-width: 699px) {
  .desk__stage { margin-inline: calc(12px - var(--gutter)); }
  .desk__photo { object-position: 58% 50%; }
  .desk .desk__card { left: 12px; right: 12px; bottom: 12px; width: auto; height: calc(100% - 24px); }
  .desk__stop { top: 12px; right: 12px; }
}

/* 3. The signature: the practice's week in its frame on the ink. Its host keeps the scene's own shape: about 1180 x
   580 from 960 px of host, upright (720 high) under it. */
.convert__head { margin-inline: auto; text-align: center; }
.convert__head .lede { margin-inline: auto; max-width: 34rem; }
.convert__frame { container-type: inline-size; }
.convert__scene { height: 580px; }
@container (width < 1000px) { .convert__scene { height: 720px; } }
.convert__stop { position: absolute; z-index: 3; top: 12px; right: 12px; }
@media (max-width: 599px) {
  .convert__frame { margin-inline: calc(12px - var(--gutter)); padding: 6px; }
}

/* 4. What's included: the hand holding the phone (web-phone), drawn large so its screen stands about 300 px wide, the
   practice's site working on it (site-parts, on the screen); the words and the five parts at the right, each lit by
   the scene while its part shows. Under 900 px the phone stands above the words; on a phone it bleeds to the edges
   (its screen's box is 337 px wide). */
.included__grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.included__frame { position: relative; }
.included__phone { position: relative; margin: 0; height: 730px; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); background: var(--c-ink); }
.included__phone > img { position: absolute; left: calc(50% - 1012px); top: -245px; width: 1775px; height: 1183px; max-width: none; }
.included__stop { position: absolute; z-index: 3; top: 14px; right: 14px; }
.included__words h2 { max-width: 11em; }
.included__words .lede { max-width: 28rem; }
.included__list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 6px; }
.included__list li { position: relative; display: grid; gap: 3px; padding: 12px 16px 12px 22px; border-radius: var(--radius-m); transition: background-color .4s ease; }
.included__list li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: color-mix(in srgb, var(--c-ink) 14%, transparent); transition: background-color .4s ease; }
.included__list b { font: 700 1.08rem/1.3 var(--font-display); letter-spacing: -.01em; }
.included__list span { color: var(--c-ink-soft); }
.included__list li.is-lit { background: color-mix(in srgb, var(--c-brand) 13%, var(--c-paper)); }
.included__list li.is-lit::before { background: var(--c-brand); }
@media (prefers-reduced-motion: reduce) { .included__list li, .included__list li::before { transition: none; } }
@media (max-width: 899px) {
  .included__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .included__frame { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 599px) {
  .included__frame { max-width: none; width: auto; margin-inline: calc(-1 * var(--gutter)); }
  .included__phone { height: 760px; border-radius: 0; }
  .included__phone > img { top: -235px; }
}

/* 5. The break: the word BOOKED across the page, the hygienist and her patient in the chair (web-break) playing inside
   its letters (white letters on the ink, multiplied over the clip: the clip shows only through them), the site's mark
   as its full stop; one line under it. */
/* (plain ink: the ink band's soft top light would show the letters' flat ground as a box) */
.band.booked { position: relative; text-align: center; padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--c-ink); }
.booked__word { position: relative; isolation: isolate; overflow: hidden; }
/* (F3: a personal trainer and her older client, web-break-trainer; the letters hold the clip's bright upper band, the
   white wall with her face and his head, never its dark floor) */
.booked__video { object-position: 50% 10%; }
/* (line-height 1.24: the face's whole height, ascent and descent, inside the box: at .88 the site check read the word
   as cut by its box, 16 Nov) */
.booked__type { position: relative; z-index: 1; margin: 0; padding: 0 var(--gutter); background: var(--c-ink); color: #fff; mix-blend-mode: multiply; font: 800 clamp(3.6rem, 16.5vw, 17rem)/1.24 var(--font-display); letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; }
.booked__mark { display: inline-block; width: .3em; height: .3em; margin-left: .05em; fill: var(--c-brand); vertical-align: baseline; }
.booked__line { margin: var(--space-4) auto 0; max-width: 32rem; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.booked__stop { position: absolute; z-index: 3; top: 16px; right: var(--gutter); }

/* 6. How you see it (F3: a small office's owner; Part 2's was the dentist): she speaks into her phone at her desk
   (web-sources-office: her face at 21 to 34% across and 6 to 33% down, her phone at 33 to 42%; the plant, the shelves
   and the laptop's far side in the right half); the week's new clients in glass over the right half, clear of her.
   The words at the right; under 1024 px they stand under the photo; on a phone the photo stands taller on her and the
   board at its foot, over the desk. */
.sources__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.sources__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.sources__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.sources .sources__scene { position: absolute; z-index: 2; right: 3%; top: 50%; translate: 0 -50%; width: min(360px, 46%); height: 320px; }
.sources__stop { position: absolute; z-index: 3; top: 14px; right: 14px; }
.sources__words h2 { max-width: 11em; }
.sources__words .lede { max-width: 26rem; margin: 0; }
@media (max-width: 1023px) {
  .sources__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}
@media (max-width: 699px) {
  .sources__frame { aspect-ratio: auto; height: 700px; margin-inline: calc(12px - var(--gutter)); }
  .sources__frame > img { object-position: 18% 0%; }
  .sources .sources__scene { left: 12px; right: 12px; top: auto; bottom: 12px; translate: none; width: auto; height: 300px; }
}

/* 7. Close: the patient smiling at her new smile in a hand mirror, the hygienist stepping back (web-close: the
   hygienist's face at 15 to 30% across, the patient's at 55 to 70%, 25 to 50% down). The clip stands in the right 66%
   of the part, its left edge falling into the ink, and the words at the left on the ink (Every call answered's close,
   turned the other way, as this clip's people stand to the right). Under 1200 px the clip is a band across the top and
   the words stand under it. */
.wb-close .close__in { display: flex; justify-content: flex-start; }
.wb-close__words { width: min(26rem, 100%); }
.wb-close .close__media { inset: 0 0 0 auto; width: 66%; }
.wb-close .close__video { object-position: 45% 40%; }
.wb-close .close__media::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 55%, transparent) 12%, transparent 30%), linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 40%, transparent), transparent 30%); }
@media (max-width: 1199px) {
  .wb-close { padding-block: 0 clamp(4.5rem, 8vw, 6.5rem); }
  .wb-close .close__media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 560px; }
  .wb-close .close__video { object-position: 50% 40%; }
  .wb-close .close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 35%, transparent) 24%, transparent 48%); }
  .wb-close .close__in { display: block; margin-top: calc(-1 * var(--space-4)); }
  .wb-close__words { width: auto; }
  .wb-close__words h2, .wb-close__words .lede { max-width: 30rem; }
  .wb-close .close__stop { top: 16px; }
}
@media (max-width: 599px) {
  .wb-close .close__media { aspect-ratio: 4 / 5; }
  .wb-close .close__video { object-position: 52% 50%; }
}
