/* zmaturuj-app.html: the white plane, one dark tile with the two live phones. Everything here is prefixed hm-za-. */

/* The tile. The hosts lie in the tile's own coordinates, because zmx.js looks for the caption under the host's parent: the caption stays in the row under the picture and the phone still finds it. --fw is the frame's width, the rest follows from the render (760 x 1571). */
.hm-za-plate { --fw: min(61vw, 300px); --fh: calc(var(--fw) * 2.06711); --py: 24px; --gap: 16px; --st: calc(var(--fh) + 2 * var(--py)); }
.hm-za-stage { position: relative; flex: none; height: var(--st); overflow: hidden; isolation: isolate; }
.hm-za-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hm-za-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-za-f { z-index: 2; left: var(--x); top: var(--py); width: var(--fw); }
.hm-za-f > img { will-change: transform; }
.hm-za-f--a, .hm-za-zmx--a { display: none; }
.hm-za-f--b, .hm-za-zmx--b { --x: calc(50% - var(--fw) / 2); }

/* Each host stands on the frame's bottom edge. Height = the slot's share of the host in zmx.js (.78 home, .82 tour), so that the app's screen fills the hole measured in the render. */
.hm-za-zmx { z-index: 1; forced-color-adjust: none; inset: auto; left: calc(var(--x) - var(--fw) * .00073); width: var(--fw); --zmx-pad: 0px; --zmx-gap: 0px; --zmx-hero-display: block; }
.hm-za-zmx--a { top: calc(var(--py) - var(--fh) * .28212); height: calc(var(--fh) * 1.28362); --zmx-h-hero: calc(var(--fh) * 1.00122); }
.hm-za-zmx--b { top: calc(var(--py) - var(--fh) * .21722); height: calc(var(--fh) * 1.21722); --zmx-h-tour: calc(var(--fh) * .99812); }

/* The row under the picture. Opaque, it is the shelf the phones stand behind. */
.hm-za-body { position: relative; z-index: 2; background: #1A1A1A; }
.hm-za-demo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; font: var(--t13); letter-spacing: 0; }
.hm-za-cap { color: var(--i2); white-space: nowrap; transition: opacity 180ms linear; }
.hm-za-cap.is-swap { opacity: 0; }

/* Numbers: the Lighthouse band, with the name above each figure and the sentence under it. */
.hm-za-nums { width: var(--hw); margin-inline: auto; }
.hm-za-nums h2 { font: var(--t14); letter-spacing: 0; }
.hm-za-nums .hm-lh__nums > div { flex-direction: column; justify-content: flex-start; gap: 0; }
.hm-za-nums .hm-lh__nums dt { color: inherit; font: var(--t14); }
.hm-za-nums .hm-lh__nums dd { margin-top: 12px; white-space: nowrap; }
.hm-za-nums .hm-lh__nums dd.hm-za-d { margin-top: 6px; color: var(--i3); font: var(--t13); letter-spacing: 0; white-space: normal; }

/* The promo video on its tile. The controls lie under the picture, not over it. */
.hm-za-fig { margin: 0; padding: 20px 20px 16px; }
.hm-za-vid video { display: block; width: min(100%, 340px, calc((100vh - var(--nav-h) - 40px) * 9 / 16)); width: min(100%, 340px, calc((100svh - var(--nav-h) - 40px) * 9 / 16)); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 10px; background: #E8E8ED; object-fit: cover; box-shadow: 0 0 0 var(--hr) var(--l1); }
.hm-za-ctrl { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hm-za-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 var(--hr) var(--l2); color: #0A0A0A; cursor: pointer; touch-action: manipulation; transition: transform 180ms var(--e1), background-color 120ms linear; }
.hm-za-btn:active { transform: scale(.94); transition: none; }
.hm-za-btn svg { width: 20px; height: 20px; }
.hm-za-btn .i-on, .hm-za-btn .i-play { display: none; }
.hm-za-btn[data-promo-sound][data-state="on"] .i-on { display: block; }
.hm-za-btn[data-promo-sound][data-state="on"] .i-off { display: none; }
.hm-za-btn[data-promo-toggle][data-state="paused"] .i-play { display: block; }
.hm-za-btn[data-promo-toggle][data-state="paused"] .i-pause { display: none; }

/* How it is built: rows on hairlines, on the page's seam after column 6. */
.hm-za-head { row-gap: 16px; }
.hm-za-rows { margin-top: 40px; border-bottom: var(--hl); }
.hm-za-rows li { display: grid; gap: 12px; padding: 24px 0 26px; border-top: var(--hl); }
.hm-za-head .hm-p, .hm-za-rows .hm-p { max-width: 40rem; }
.hm-za-rows__t p { margin-top: 4px; color: var(--i3); font: var(--t13); letter-spacing: 0; }
.hm-za-tools { margin-top: 12px; }
.hm-za-tools dt { color: inherit; }
.hm-za-tools dd { color: var(--i2); }

/* The services this page is a sample of. */
.hm-za-dir { display: grid; column-gap: 12px; }
.hm-za-dir li { padding-bottom: 18px; border-top: var(--hl); }
.hm-za-dir a { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: baseline; padding: 12px 0 4px; border-radius: 2px; font: 400 1rem/1.5rem var(--f); letter-spacing: -.004em; transition: color 120ms linear; }
.hm-za-dir i { color: var(--i3); font: 400 .8125rem/1.5rem var(--f); font-style: normal; letter-spacing: 0; font-variant-numeric: tabular-nums; transition: color 120ms linear; }
.hm-za-dir p { padding-left: 32px; color: var(--i2); font: var(--t14r); letter-spacing: 0; }

.hm-za-out { margin-top: 20px; }
.hm-za-two span { display: block; }

@media (min-width: 640px) {
  .hm-za-plate { --fw: min(35.1vw, 290px); --py: 32px; --gap: 16px; }
  .hm-za-f--a, .hm-za-zmx--a { display: block; --x: calc(50% - var(--fw) - var(--gap) / 2); }
  .hm-za-f--b, .hm-za-zmx--b { --x: calc(50% + var(--gap) / 2); }
}
@media (min-width: 800px) and (max-width: 1239px) {
  /* The widest figure needs the room: note above, four figures across the page. */
  .hm-za-nums .hm-lh__note, .hm-za-nums .hm-lh__nums { grid-column: 1 / -1; max-width: none; }
  .hm-za-nums .hm-lh { row-gap: 28px; }
  .hm-za-nums .hm-lh__nums dd { font-size: 2.5rem; line-height: 2.75rem; }
  .hm-za-nums .hm-lh__nums > div { padding-left: 16px; }
  .hm-za-nums .hm-lh__nums > div:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 800px) {
  .hm-za-demo { flex: none; justify-content: flex-end; gap: 0 20px; }
  .hm-za-rows { margin-top: 56px; }
  .hm-za-rows li { padding: 30px 0 32px; }
  .hm-za-tools { margin-top: 20px; }
  .hm-za-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-za-fig { padding: 32px 32px 20px; }
}
@media (min-width: 860px) {
  .hm-za-plate { --py: 40px; --gap: 24px; }
}
@media (min-width: 1000px) {
  .hm-za-promo { align-items: center; }
  .hm-za-head { align-items: baseline; }
  .hm-za-tools { margin-top: 0; }
  .hm-za-rows li { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: baseline; }
  .hm-za-rows__t { grid-column: 1 / span 5; }
  .hm-za-rows li > .hm-p { grid-column: 7 / -1; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .hm-za-head .hm-split__txt { grid-column: 1 / span 6; padding-right: 24px; }
  .hm-za-tools > div { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .hm-za-cta { margin-top: 160px; }
  /* The values on the page's column 9, the seam of the band's third figure and the footer's third column. */
  .hm-za-tools > div { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-za-tools dt { grid-column: span 2; }
  .hm-za-tools dd { grid-column: span 4; }
}
@media (hover: hover) {
  .hl .hm-dk .hm-textbtn:hover { color: #fff; }
  .hl .hm-za-btn:hover { background: #E8E8ED; }
  .hl .hm-za-dir a:hover { color: var(--i2); }
  .hl .hm-za-dir a:hover i { color: #0A0A0A; }
}
.hl .hm-za-dir a:active { color: var(--i3); transition: none; }
.hl .hm-dk .hm-textbtn:active { color: var(--i2); transition: none; }
@media (pointer: coarse) {
  .hm-za-dir a { padding-block: 14px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-za-demo .hm-textbtn { display: none; }
  .hm-za-btn:active { transform: none; opacity: .7; }
}
@media (scripting: none) {
  .hm-za-ctrl { display: none; }
}
@media (forced-colors: active) {
  .hm-za-btn { border: 1px solid ButtonText; }
}
@media print {
  .hm-za-stage, .hm-za-zmx, .hm-za-demo, .hm-za-ctrl { display: none !important; }
  .hm-za-body { background: none; border-top: 0; }
  .hm-za-rows li, .hm-za-dir li { break-inside: avoid; }
}
/* Low Power Mode would paint a play glyph over the poster: the page has its own control. */
video[data-promo]::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
