/* The home's own layout (HomePage.kt): the hero, the check-out stage, the two audience cards and
   the closing band. The drawn screens are screens.css's, the trust cards common.css's. */

.hero { display: grid; justify-items: center; gap: 1.25rem; padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
        text-align: center; }
.hero .lede { max-width: 60ch; }
@media (min-width: 56.25em) {
  .hero { gap: .875rem; padding-block: .625rem 1.25rem; }
  html[lang="en"] .hero .h-xl { font-size: clamp(2.6rem, min(7.4vw, 8.2vh), 5.6rem); }
}

/* ---------- the stage: one check-out, three screens ---------- */
.wrap.wide { max-width: 87.5rem; }
.stage { display: flex; flex-direction: column; border-radius: clamp(1.75rem, 4vw, 3.5rem);
         padding: 1.125rem clamp(.625rem, 2.4vw, 2.25rem) 1.375rem; }

.steps { --pill: var(--navy-2); --pill-number: var(--sun); --on-pill-number: var(--on-sun); gap: .5rem .75rem; margin-bottom: .875rem; }
.steps li { font-size: .95rem; }
.steps li::before { font-size: .9rem; }

.stage-top { display: none; }
.switch { margin: 0 auto; }
.office-count { display: flex; align-items: center; justify-content: center; gap: .625rem; font-size: .9rem; color: var(--on-navy-2); }
.office-count b { font-family: var(--digits); font-size: 1.15rem; color: var(--sun); }

.devices { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; }
.devices .col { display: grid; gap: .625rem; justify-items: center; width: 100%; min-width: 0; }
.who { padding: .375rem .875rem; border-radius: 999px; background: var(--navy-2); font-size: .85rem; font-weight: 600; }
.devices .office { display: none; }

/* A phone: one phone at a time, the switch choosing which, the steps under it with the last one's words. */
@media (max-width: 43.6875em) {
  .stage { padding-inline: .625rem; }
  .stage-top { display: grid; gap: .625rem; margin-bottom: .75rem; }
  .steps { order: 9; flex-wrap: nowrap; gap: .375rem; margin: .875rem 0 0; }
  .steps li:not(:last-child) { padding-inline-end: .375rem; }
  .steps li:not(:last-child) span { display: none; }
  .devices .col { grid-area: 1 / 1; }
  .devices .who { display: none; }
  .devices .phone { max-width: min(21.875rem, 100%); }
  .devices .scr { font-size: 3.95cqw; }
  .devices .family .quick { display: none; }
  .stage:has([value="family"]:checked) .team, .stage:has([value="team"]:checked) .family { visibility: hidden; }
}
/* A tablet: both phones side by side, the office's count above them. */
@media (min-width: 43.75em) and (max-width: 56.1875em) {
  .stage-top { display: block; margin-bottom: .875rem; }
  .switch { display: none; }
  .devices { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
/* A laptop: the three side by side on the dashed line the check-out travels. */
@media (min-width: 56.25em) {
  .devices { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr); gap: clamp(.875rem, 2vw, 1.75rem); }
  .devices::before { content: ""; position: absolute; inset-inline: 9%; top: 44%; border-top: 2px dashed rgba(248, 241, 235, .26); }
  .devices .office { display: grid; }
  .devices .phone { max-width: min(18.125rem, calc((100vh - 17.5rem) * 9 / 19)); }
  .devices .scr { font-size: 3.95cqw; }
  .devices .adm { font-size: 1.68cqw; }
  .devices .register .sm { white-space: nowrap; }
}
/* While the demo plays (home.js): the steps not reached yet step back, and on a laptop so do the screens not acting. */
.steps li { transition: opacity .3s; }
.steps li.off { opacity: .45; }
.armed .team .phone { cursor: pointer; }
/* The audience card growing over the page before its page opens (home.js). */
.grow-over { position: fixed; inset: 0; z-index: 50; pointer-events: none; transform-origin: 0 0; }
.grow-over.nurseries { background: var(--navy); }
.grow-over.parents { background: var(--sun); }

/* ---------- the two audiences: the whole card is its link ---------- */
.fork { display: grid; gap: 1rem; }
@media (min-width: 43.75em) { .fork { grid-template-columns: 1fr 1fr; } }
.aud { position: relative; display: flex; flex-direction: column; gap: 1rem; overflow: hidden; padding: clamp(1.375rem, 3vw, 2.5rem);
       padding-bottom: clamp(1.25rem, 2.6vw, 2rem); border-radius: 2.5rem; }
.aud.nurseries { background: var(--navy); color: var(--on-navy); }
.aud.parents { background: var(--sun); color: var(--on-sun); }
.ticks { list-style: none; display: grid; gap: .5rem; margin: 0; padding: 0; font-size: 1.02rem; }
.ticks li { display: flex; align-items: flex-start; gap: .625rem; }
.ticks .i { margin-top: .28em; color: var(--sun); }
.parents .ticks .i { color: var(--on-sun); }
.aud .art { flex: 1; display: grid; place-items: center; padding-block: .5rem; }
.nurseries .glimpses { width: 100%; max-width: 22rem; }
.parents .phone { max-width: 15.625rem; box-shadow: none; }
.go { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; color: inherit; font-weight: 600; text-decoration: none; }
.go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.go:focus-visible { outline: none; }
.aud:has(.go:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (hover: hover) { .aud:hover .go { text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- trust and the closing band ---------- */
.tint .h-lg { margin-bottom: 0; }
.closing { overflow: clip; padding-bottom: 0; border-bottom: 1px solid var(--navy-2); }
.closing .wrap { display: grid; gap: 1.5rem; align-items: end; }
.tagcopy { display: grid; gap: 1.125rem; }
.tagcopy .lede { max-width: 44ch; text-wrap: balance; }
.sun { justify-self: center; width: min(64%, 16.25rem); height: auto; }
@media (min-width: 56.25em) {
  .closing .wrap { grid-template-columns: 1.05fr .95fr; }
  .tagcopy { padding-bottom: var(--band); }
  .sun { width: min(100%, 35rem); }
}
