/* Services: plan.md, Services. Only placing and sizing, with the tokens of system.css. */

/* ---------- #hero: full-bleed, the general shot, words left and the search on the right ---------- */
.shead { position: relative; isolation: isolate; overflow: hidden; background: var(--c-purple-deep); color: var(--c-paper); }
.shead__stage { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.shead__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-purple-deep) 95%, transparent) 0, color-mix(in srgb, var(--c-purple-deep) 86%, transparent) 38%, color-mix(in srgb, var(--c-purple-deep) 26%, transparent) 62%, transparent 100%); }
.shead__stop { top: 18px; right: 18px; }
.shead__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; min-height: min(84vh, 720px); padding-block: var(--space-5); }
.shead__copy .ph1 { color: var(--c-paper); }
.shead__scene { display: flex; justify-content: flex-end; }
.shead__scene > [data-scene] { box-sizing: border-box; width: 100%; max-width: 470px; padding-bottom: 66px; overflow: visible; }
.shead__scene [data-scene="search-demo"] .sd-pop { left: -14px; bottom: -58px; } /* under the list, so no row's words are covered */
@media (max-width: 899px) {
  .shead__stage { top: auto; height: 520px; }
  .shead__shade { background: linear-gradient(0deg, color-mix(in srgb, var(--c-purple-deep) 24%, transparent) 0, color-mix(in srgb, var(--c-purple-deep) 56%, transparent) 300px, var(--c-purple-deep) 520px); }
  .shead__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-height: 0; padding-block: var(--space-5); }
  .shead__scene { justify-content: center; }
}

/* ---------- #found: the patient on the left of centre stays clear of both columns ---------- */
.found__bg { transform: scale(1.2); transform-origin: 100% 40%; }
.found__shade { background: linear-gradient(90deg, color-mix(in srgb, var(--c-purple-deep) 92%, transparent) 0, color-mix(in srgb, var(--c-purple-deep) 70%, transparent) 30%, transparent 48%), linear-gradient(0deg, color-mix(in srgb, var(--c-purple-deep) 40%, transparent), transparent 40%); }
.fband--found .fband__in { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); }
.found__scene { justify-self: end; width: min(430px, 100%); min-height: 560px; position: relative; }
.found__scene > [data-scene] { position: absolute; inset: 0; }
@media (max-width: 899px) {
  .fband--found, .fband--trust { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: var(--space-5); }
  .fband--found .fband__in, .found__copy, .trust__in, .trust__copy { display: contents; }
  .fband--found .h2, .fband--found .lede, .fband--found .glist, .fband--trust .h2, .fband--trust .lede, .fband--trust .glist { margin-inline: 20px; }
  .fband--found .h2, .fband--trust .h2 { grid-row: 1; }
  .fband--found .lede, .fband--trust .lede { grid-row: 2; }
  .fband--found .glist, .fband--trust .glist { grid-row: 4; margin-top: var(--space-3); }
  .found__bg, .trust__bg { position: relative; grid-row: 3; grid-column: 1; inset: auto; justify-self: start; margin-left: -1px; width: calc(100% + 2px); height: 420px; transform: none; }
  .fband--found .fband__stop, .fband--trust .fband__stop { grid-row: 3; grid-column: 1; top: 10px; right: 10px; }
  .found__bg { object-position: 50% 0; }
  .found__shade, .trust__shade { display: none; }
  .found__scene { grid-row: 3; grid-column: 1; justify-self: stretch; width: auto; min-height: 520px; margin: 140px 14px 0; }
}

/* ---------- #ads: the dentist in the middle, the list on her left, the funnel on her right ---------- */
.ads__frame { min-height: 660px; }
.ads__bg { object-position: 50% 12%; }
.ads__shade { background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 42%, transparent), transparent 34%, transparent 62%, color-mix(in srgb, var(--c-ink) 42%, transparent)); }
.ads__list { position: absolute; left: 24px; bottom: 24px; width: min(320px, 30%); }
.ads__scene { position: absolute; right: 16px; top: 16px; bottom: 16px; width: min(440px, 42%); }
.ads__scene > [data-scene] { width: 100%; height: 100%; background: transparent; }
@media (max-width: 899px) {
  .ads__frame { display: grid; gap: 16px; padding: 200px 14px 14px; min-height: 0; background: var(--c-purple-deep); }
  .ads__bg { position: absolute; inset: 0 auto auto -1px; width: calc(100% + 2px); height: 460px; object-position: 46% 0; }
  .ads__shade { display: none; }
  .ads__list, .ads__scene { position: relative; inset: auto; width: auto; }
  .ads__scene { order: -1; height: 450px; }
}

/* ---------- #day: the same desk, two ways of the morning (kit compare) ---------- */
.day__box { position: relative; aspect-ratio: 16 / 8.2; min-height: 460px; width: 100%; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-l); background: var(--c-ink); touch-action: pan-y; }
.day__side { position: absolute; inset: 0; overflow: hidden; }
.day__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 22%; }
.before .day__clip { filter: grayscale(.9) brightness(.82); }
.after { clip-path: inset(0 0 0 calc(var(--kit-v, .55) * 100%)); }
.day__box > input[type="range"] { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.day__handle { position: absolute; top: 0; bottom: 0; left: calc(var(--kit-v, .55) * 100%); z-index: 3; width: 0; pointer-events: none; opacity: clamp(0, calc((min(var(--kit-v, .55), 1 - var(--kit-v, .55)) - .03) * 14), 1); }
.day__box input:focus-visible + .day__handle { opacity: 1; }
.day__stop { top: 16px; right: 16px; z-index: 5; }
.day__line { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--c-paper); box-shadow: 0 0 12px color-mix(in srgb, var(--c-ink) 40%, transparent); }
.day__knob { position: absolute; left: -24px; bottom: 56px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); box-shadow: var(--shadow-m); }
.day__hint { position: absolute; left: -26px; bottom: 24px; width: 52px; text-align: center; font: 900 .8125rem / 1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--c-paper); text-shadow: 0 1px 6px color-mix(in srgb, var(--c-ink) 70%, transparent); }
.day__box[data-kit-touched] .day__hint { opacity: 0; }
/* a stack of three cards in each bottom corner, in the same order, so the eye compares them row by row: each row is the
   same height on both sides. The widest words (224 px) hold one line in 296 px, and the stacks stay clear of the faces. */
.day__stack { position: absolute; bottom: 24px; display: grid; gap: 8px; width: 296px; }
.day__stack--before { left: 24px; }
.day__stack--after { right: 24px; }
.day__card { min-height: 64px; }
.day__dot { flex: none; width: 14px; height: 14px; margin: 0 4px; border-radius: 50%; }
.day__dot--red { background: var(--c-red); box-shadow: 0 0 0 var(--day-halo, 5px) color-mix(in srgb, var(--c-red) 24%, transparent); }
.day__dot--teal { background: var(--c-brand); box-shadow: 0 0 0 var(--day-halo, 5px) color-mix(in srgb, var(--c-brand) 24%, transparent); }
/* Thursday's diary: the same six slots on both sides, four taken in a muted ink, the two free ones dashed or filled */
.day__strip { display: flex; gap: 4px; margin-top: 6px; }
.day__strip i { flex: none; box-sizing: border-box; width: 24px; height: 12px; border-radius: 4px; background: color-mix(in srgb, var(--c-ink-soft) 50%, transparent); }
.day__strip .day__free { background: none; border: 1.5px dashed var(--c-ink-soft); }
.day__strip .day__booked { background: var(--c-brand); }
[data-kit-whole] { transition: opacity .2s, visibility 0s; }
[data-kit-under] { opacity: 0; transition: opacity .2s, visibility 0s .2s; }
@media (max-width: 899px) {
  .day__box { aspect-ratio: 4 / 5; min-height: 400px; }
  .day__clip { object-position: 52% 16%; }
  /* each side's column ends 10 px from the line at rest (55%) */
  .day__stack { bottom: 8px; max-width: 296px; }
  .day__stack--before { left: 8px; width: calc(55% - 18px); }
  .day__stack--after { right: 8px; width: calc(45% - 18px); }
  .day__card { min-height: 70px; padding: 7px 8px; gap: 6px; }
  .day__card .gcard__title { font-size: var(--fs-small); }
  .day__dot { --day-halo: 3px; width: 8px; height: 8px; margin: 0; }
  /* the knob and the hint stand on the line above the stacks: 8 + 3 x 70 + 2 x 8 = 234 px from the foot */
  .day__knob { bottom: 257px; }
  .day__hint { bottom: 240px; }
}
@media (max-width: 599px) {
  .day__stack { gap: 6px; }
  .day__card { min-height: 50px; }
  .day__card:nth-child(2) { min-height: 64px; }
  .day__card .gcard__sub { display: none; }
  .day__strip { gap: 3px; margin-top: 4px; }
  .day__strip i { width: 13px; height: 10px; border-radius: 3px; }
  /* 8 + 50 + 64 + 50 + 2 x 6 = 184 px from the foot */
  .day__knob { bottom: 207px; }
  .day__hint { bottom: 190px; }
}
@media (max-width: 359px) {
  .day__card .gcard__title { font-size: .8125rem; }
  .day__strip { gap: 2px; }
  .day__strip i { width: 11px; }
}

/* ---------- #trust: the left wall of the clip holds the words; the faces stay on the right ---------- */
.trust__bg { object-position: 100% 30%; }
.trust__shade { background: linear-gradient(90deg, color-mix(in srgb, var(--c-purple-deep) 90%, transparent) 0, color-mix(in srgb, var(--c-purple-deep) 62%, transparent) 40%, transparent 56%); }
.trust__in { grid-template-columns: minmax(0, 420px) minmax(0, 340px); justify-content: start; gap: var(--space-4); }
.trust__scene { position: relative; min-height: 360px; align-self: end; }
.trust__scene > [data-scene] { position: absolute; inset: 0; }
@media (max-width: 899px) {
  .trust__bg { object-position: 78% 0; }
  .trust__scene { grid-row: 3; grid-column: 1; align-self: start; min-height: 300px; margin: 120px 14px 0; }
}

/* ---------- #leads: the caller on the right, the booking on the left ---------- */
.leadsp__frame { min-height: 660px; }
.leadsp__bg { object-position: 80% 20%; }
.leadsp__shade { background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 38%, transparent), transparent 46%); }
.leadsp__scene { position: absolute; left: 0; top: 0; bottom: 0; width: min(560px, 52%); }
.leadsp__scene > [data-scene] { width: 100%; height: 100%; background: transparent; }
.leadsp__list { position: absolute; right: 24px; bottom: 24px; width: min(340px, 34%); }
@media (max-width: 899px) {
  .leadsp__frame { display: grid; gap: 16px; padding: 200px 0 14px; min-height: 0; background: var(--c-purple-deep); }
  .leadsp__bg { position: absolute; inset: 0 auto auto -1px; width: calc(100% + 2px); height: 540px; object-position: 88% 0; }
  .leadsp__shade { display: none; }
  .leadsp__scene, .leadsp__list { position: relative; inset: auto; width: auto; }
  .leadsp__scene { height: 340px; }
  .leadsp__list { margin-inline: 14px; }
}

/* ---------- #mix: the signature, on the site's designed ground: soft sphere glows ---------- */
.mixp { position: relative; overflow: hidden; background: var(--c-paper-alt); }
.mixp__glow i { position: absolute; border-radius: 50%; pointer-events: none; }
.mixp__glow i:nth-child(1) { left: -8%; top: -12%; width: 620px; height: 620px; background: radial-gradient(circle, color-mix(in srgb, var(--c-brand) 24%, transparent), transparent 66%); }
.mixp__glow i:nth-child(2) { right: -6%; top: 6%; width: 720px; height: 720px; background: radial-gradient(circle, color-mix(in srgb, var(--c-purple) 18%, transparent), transparent 66%); }
.mixp__glow i:nth-child(3) { left: 34%; bottom: -24%; width: 560px; height: 560px; background: radial-gradient(circle, color-mix(in srgb, var(--c-accent) 18%, transparent), transparent 66%); }
.mixp .wrap { position: relative; }
.mixp__stage { position: relative; }
.mixp__stop { top: 0; right: 0; background: var(--c-paper); }
@media (max-width: 899px) { .mixp__stage [data-scene] { padding-top: 52px; } }

/* ---------- #see: the owner beside what he sees ---------- */
.see__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.see__photo { overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-l); aspect-ratio: 4 / 5; }
.see__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }
.see__body .lede { margin-bottom: var(--space-4); }
.see__scene { position: relative; height: 480px; }
.see__scene > [data-scene] { width: 100%; height: 100%; }
.see__stop { top: 10px; right: 10px; }
@media (max-width: 899px) {
  .see__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .see__photo { aspect-ratio: 4 / 3; }
  .see__scene { height: 640px; }
}

/* ---------- #close: the owner on the right of the clip, the words on its blurred left ---------- */
.svcclose__bg { object-position: 100% 30%; }
@media (max-width: 899px) { .svcclose__bg { object-position: 78% 0; } }
