/* The first screen: the call speaks before the page does.
   One ground from the screen's edge to edge and up under the site's bar: the brush, most coloured at the end and the
   foot, washed out to the page's light behind the words. At the start the headline large, the page's definition and
   Book a demo with how it is sold. At the end a tall photograph of a caller of the page's trade, and over its foot
   and out over its edge the page's recorded call on glass: whose agent speaks, the line being said at a size read
   from across a room, the round control that plays the call, its sound as bars and its time. Under the glass, at a
   button's full size, the way to the live agent; on the photograph's top corner what the call is (a demo call with an
   invented business). A page with no call of its trade shows the caller and the way to the live agent.
   Narrower than 1000 px the page reads headline, caller and call, definition, action, so a phone's first screen holds
   the person, the line and both controls. */
.pp-hero { --pp-bar: 72px; --pp-frame: 28px; position: relative; isolation: isolate; margin-block-start: calc(-1 * var(--pp-bar));
  padding-block: calc(var(--pp-bar) + var(--space-4)) var(--space-8); overflow-x: clip; }
.nav { background: transparent; }   /* the site's bar lies straight on the first screen's ground */
.pp-hero-brush { position: absolute; inset: 0; z-index: var(--layer-under); width: 100%; height: 100%; max-width: none; object-fit: cover;
  object-position: 100% 70%; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 100%); mask-image: linear-gradient(#000 80%, transparent 100%); }
.pp-hero::after { content: ""; position: absolute; inset: 0; z-index: var(--layer-under); pointer-events: none;
  background: linear-gradient(100deg, var(--surface-page) 2%, rgb(var(--c-ground-rgb) / .7) 26%, rgb(var(--c-ground-rgb) / 0) 56%); }

.pp-hero-inner { --pp-out: var(--space-8); display: grid; grid-template-columns: minmax(0, 1fr) 44%; column-gap: var(--pp-out); align-items: center; }
.pp-hero-words { display: grid; justify-items: start; min-width: 0; }
/* The headline as one text at a size that holds the type's longest (57 characters) in four or five lines of a
   1440 x 900 screen; a word longer than its column breaks inside it */
.pp-hero-title { margin: 0; color: var(--ink-primary); font: 500 clamp(56px, min(6.2vw, 9.8vh), 92px)/.98 var(--font-display); letter-spacing: -.034em;
  text-wrap: balance; overflow-wrap: break-word; }
.pp-hero-lead { max-width: 34rem; margin: var(--space-5) 0 0; color: var(--ink-primary); font: 400 20px/30px var(--font-text); letter-spacing: -.01em; text-wrap: pretty; }
.pp-hero-action { display: grid; justify-items: start; gap: var(--space-4); margin-block-start: var(--space-6); }
.pp-hero-sold { max-width: 26rem; margin: 0; color: var(--ink-primary); }

/* The caller, and the call across her foot. The photograph runs past the content's edge towards the screen's. */
.pp-hero-picture { --pp-live: calc(var(--space-4) + var(--control-l) + var(--space-3)); position: relative;
  height: clamp(640px, calc(100svh - var(--pp-bar) - var(--space-8)), 780px);
  margin-inline-end: calc(-1 * min(var(--space-8), (100vw - var(--content)) / 2 - var(--gutter))); }
.pp-hero-photo { width: 100%; height: 100%; max-width: none; border-radius: var(--pp-frame); object-fit: cover; object-position: var(--at); box-shadow: var(--elev-1); }
.pp-hero-note { position: absolute; inset-block-start: var(--space-5); inset-inline-start: var(--space-5); margin: 0;
  display: inline-flex; align-items: center; min-height: var(--control-m); padding: var(--space-2) var(--space-4);
  border: 1px solid var(--c-white); border-radius: var(--radius-full); background: var(--surface-glass-firm);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--elev-glass-pill);
  color: var(--ink-primary); font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }

.pp-callglass { position: absolute; inset-inline: calc(-1 * var(--pp-out)) var(--space-8); inset-block-end: var(--pp-live);
  display: grid; gap: var(--space-4); padding: var(--space-5) var(--space-6); border: 1px solid var(--c-white); border-radius: var(--pp-frame);
  background: var(--surface-glass-firm); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--elev-tile); }   /* on a photograph: the tile's short shadow */
.pp-callglass > p { margin: 0; }
.pp-callglass-who { display: grid; color: var(--ink-primary); font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }
.pp-callglass-who > span { grid-area: 1 / 1; display: flex; align-items: center; gap: var(--space-3); min-width: 0; transition: opacity var(--motion-state) var(--ease-settle); }
.pp-callglass-who > [aria-hidden="true"] { opacity: 0; }
/* A line of the call, three lines high: the script shows a call a sentence or two at a time, at most 110 characters */
.pp-callglass-line { min-height: 3.81em; color: var(--ink-primary); font: 500 28px/1.27 var(--font-text); letter-spacing: -.022em; text-wrap: pretty; }
.pp-callglass-controls { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.pp-callglass-label { flex: none; color: var(--ink-primary); white-space: nowrap; }
.pp-callglass-time { flex: none; color: var(--ink-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The round control that plays the call */
.pp-play { --pp-play: 56px; flex: none; display: inline-grid; place-items: center; width: var(--pp-play); height: var(--pp-play); padding: 0; border: 0;
  border-radius: var(--radius-full); background: var(--surface-inverse); color: var(--ink-on-dark); cursor: pointer;
  transition: background-color var(--motion-hover) var(--ease-settle), transform var(--motion-hover) var(--ease-settle); }
.pp-play:hover { background: var(--surface-inverse-hover); }
.pp-play:active { transform: scale(.95); }
.pp-play:focus-visible { border-radius: var(--radius-full); }
.pp-play svg { width: 34%; height: 34%; }
.pp-play-go { margin-inline-start: 7%; }   /* a triangle's weight lies left of its box's middle */
.pp-play-stop, .pp-play[aria-pressed="true"] .pp-play-go { display: none; }
.pp-play[aria-pressed="true"] .pp-play-stop { display: block; }
@media (forced-colors: active) { .pp-play { border: 1px solid ButtonText; } }

/* The call's sound as bars, the played ones in violet, under the range that moves through the call. A short bar
   keeps every other bar. */
.pp-bars { container: pp-bars / inline-size; position: relative; display: block; flex: 1; min-width: 0; height: 40px; margin-inline: var(--space-2); border-radius: var(--radius-xs); }
.pp-bars-row { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 1px; }
.pp-bars-row > i { flex: 1; min-width: 1px; max-width: 3px; height: max(3px, calc(var(--h, .1) * 100%)); border-radius: var(--radius-full);
  background: rgb(var(--c-midnight-rgb) / .28); transition: background-color var(--motion-hover) var(--ease-settle); }
.pp-bars-row > i.is-on { background: var(--accent); }
@container pp-bars (max-width: 239px) { .pp-bars-row > i:nth-child(even) { display: none; } }
.pp-bars-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pp-bars:has(.pp-bars-seek:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: 4px; }

/* The way to the live agent: a pill with the lime disc that says live */
.pp-hero-live { position: absolute; inset-inline-start: calc(-1 * var(--pp-out)); inset-block-end: var(--space-4); display: flex; align-items: center; gap: var(--space-4); }
.pp-hero-picture--alone .pp-hero-live { inset-inline-start: var(--space-5); inset-block-end: var(--space-5); }
.pp-livebtn { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--control-l); padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2);
  border: 1px solid var(--c-white); border-radius: var(--radius-full); background: var(--surface-glass-solid);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--elev-glass-pill);
  color: var(--ink-primary); font: var(--t-label-xl); letter-spacing: var(--t-label-xl-tracking); cursor: pointer;
  transition: background-color var(--motion-hover) var(--ease-settle), transform var(--motion-hover) var(--ease-settle); }
.pp-livebtn:hover { background: var(--surface-card); }
.pp-livebtn:active { transform: scale(.98); }
.pp-livebtn:focus-visible { border-radius: var(--radius-full); }
.pp-livebtn[aria-busy="true"] { cursor: progress; }
.pp-livebtn-disc { flex: none; display: grid; place-items: center; width: var(--control-m); height: var(--control-m); border-radius: var(--radius-full);
  background: var(--status-live); box-shadow: 0 0 0 1px var(--status-live-edge); color: var(--ink-primary); }
.pp-hero-status { max-width: 22rem; margin: 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--surface-glass-solid); color: var(--ink-primary); }
.pp-hero-status:empty { display: none; }

@media (max-width: 1199px) {
  /* A narrow desktop and a tablet held wide: the two columns closer, the line a step down */
  .pp-hero { --pp-frame: 24px; }
  .pp-hero-inner { --pp-out: var(--space-7); grid-template-columns: minmax(0, 1fr) 46%; }
  .pp-hero-picture { margin-inline-end: 0; }
  .pp-callglass { inset-inline-end: var(--space-5); padding: var(--space-5); }
  .pp-callglass-line { font-size: 24px; }
  .pp-hero-lead { font-size: 18px; line-height: 28px; }
}
@media (max-width: 999px) {
  /* One column: the headline, the caller as a wide band with the call on her foot, then the definition and the action */
  .pp-hero { --pp-bar: 64px; padding-block-end: var(--space-7); }
  .pp-hero::after { background: linear-gradient(180deg, rgb(var(--c-ground-rgb) / .8) 0%, rgb(var(--c-ground-rgb) / .3) 30%, rgb(var(--c-ground-rgb) / 0) 60%); }
  .pp-hero-inner { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .pp-hero-words { display: contents; }
  .pp-hero-title { order: 1; font-size: clamp(46px, 8vw, 72px); }
  .pp-hero-picture { order: 2; height: auto; margin-block-start: var(--space-6); }
  .pp-hero-lead { order: 3; max-width: var(--measure); margin-block-start: var(--space-7); font-size: 20px; line-height: 30px; }
  .pp-hero-action { order: 4; }
  .pp-hero-photo { height: auto; aspect-ratio: 16 / 9; object-position: var(--at-phone); }
  .pp-callglass { position: relative; inset: auto; width: min(100% - 2 * var(--space-5), 40rem); margin: calc(-1 * var(--space-9)) auto 0 var(--space-5); padding: var(--space-5) var(--space-6); }
  .pp-callglass-line { font-size: 26px; }
  .pp-hero-live { position: static; margin: var(--space-3) 0 0 var(--space-5); }
  .pp-hero-picture--alone .pp-hero-live { position: absolute; margin: 0; }
}
@media (max-width: 599px) {
  /* A phone: the caller's photograph is a low band, so the call and both its controls stand whole in the first screen */
  .pp-hero { --pp-frame: 20px; padding-block: calc(var(--pp-bar) + var(--space-3)) var(--space-7); }
  .pp-hero-brush { object-position: 82% 40%; }
  .pp-hero-title { font-size: clamp(36px, 10.4vw, 44px); line-height: 1.04; letter-spacing: -.03em; }
  .pp-hero-picture { margin-block-start: var(--space-4); }
  .pp-hero-lead { margin-block-start: var(--space-6); font-size: 18px; line-height: 27px; }
  .pp-hero-action { justify-items: stretch; margin-block-start: var(--space-5); }
  .pp-hero-action > .btn { justify-content: center; }
  .pp-hero-photo { aspect-ratio: auto; height: 236px; }
  .pp-hero-picture--alone .pp-hero-photo { height: 320px; }
  .pp-hero-note { inset-block-start: var(--space-3); inset-inline-start: var(--space-3); min-height: var(--control-s); padding: var(--space-1) var(--space-3); font: var(--t-label); letter-spacing: 0; }
  .pp-callglass { width: auto; margin: calc(-1 * var(--space-9)) var(--space-3) 0; gap: var(--space-3); padding: var(--space-4); }
  .pp-callglass-who .avatar { --avatar: 32px; }
  .pp-callglass-who { font: var(--t-label); letter-spacing: 0; }
  .pp-callglass-line { min-height: 5.36em; font-size: 20px; line-height: 1.34; letter-spacing: -.016em; }   /* four lines */
  .pp-callglass-controls { flex-wrap: wrap; row-gap: var(--space-3); }
  .pp-play { --pp-play: 48px; }
  .pp-callglass-label { flex: 1; font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }
  .pp-bars { order: 5; flex: 1 1 60%; height: 28px; margin: 0; }   /* the bars and the time under the press and its word */
  .pp-callglass-time { order: 6; }
  .pp-hero-live { flex-direction: column; align-items: stretch; gap: var(--space-2); margin: var(--space-3) var(--space-3) 0; }
  .pp-hero-picture--alone .pp-hero-live { inset: auto var(--space-3) var(--space-3); }
  .pp-livebtn { min-height: 52px; }
}
/* Where the page's recordings are in another language than the page: the words that say so stay whole after the demo's,
   so the pill's words flow as one line and break before them */
.pp-hero-note:has(> .pp-hero-lang) { display: block; inset-inline-end: var(--space-5); width: fit-content; }
.pp-hero-lang { white-space: nowrap; }
