/* The nurseries page's own layout (NurseriesPage.kt): the hero, the office's moments, the seats
   switch, the request to join, the closing band and, on a phone, the button at the thumb. The drawn
   screens are screens.css's; the trust row, the switch and the glow common.css's. */

/* ---------- the hero: the free office, on a laptop ---------- */
.hero { --hero-art: 1.55fr; padding-block: clamp(2rem, 5vw, 4.5rem); }
.hero .wrap, .closing .wrap { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .note { margin-top: .25rem; font-size: .92rem; color: var(--on-navy-2); }
.copy .text-link { margin-top: -.75rem; }
@media (min-width: 56.25em) { .hero .adm { font-size: 1.34cqw; } }

/* ---------- the office in four moments: today across the top on a laptop ---------- */
.moments { display: grid; gap: .875rem; margin-top: 2rem; }
.moment { display: grid; gap: .5rem; align-content: start; min-width: 0; padding: 1rem; border-radius: 2rem; background: var(--tint); }
.moment .art { display: grid; align-content: center; min-height: 9.5rem; min-width: 0; padding: .5rem; }
.moment h3 { margin-top: .375rem; padding-inline: .375rem; font-size: 1.25rem; }
.moment p { padding: 0 .375rem .375rem; color: var(--ink-2); text-wrap: pretty; }
/* nurseries.js puts its tap and its flying dot inside these. */
.moment, .duo { position: relative; }
.moment.replays { cursor: pointer; }
.present-card { width: 100%; max-width: 26rem; justify-self: center; }
@media (min-width: 56.25em) {
  .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .moment:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
                        column-gap: 2.5rem; padding: 2rem; }
  .moment:first-child .art { grid-column: 2; grid-row: 1 / 5; }
  .moment:first-child h3 { grid-row: 2; margin: 0; padding: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
  .moment:first-child p { grid-row: 3; padding: 0; font-size: 1.1rem; }
  .moment:not(:first-child) .art { height: 12.5rem; }
}

/* ---------- seats: the switch is two radios; "Office only" dims the seats and greys the family's day ---------- */
.seats { display: grid; grid-template-areas: "switch" "says" "family" "plans"; gap: 1.25rem; margin-top: 2rem; }
.seats .switch { grid-area: switch; margin: 0; }
.famcap { grid-area: says; display: flex; align-items: center; gap: .625rem; min-height: 3.2em; font-weight: 600; text-wrap: pretty; }
.famcap::before { content: ""; flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--sun); }
.famcap > span { display: none; }
.seats:has([value="seats"]:checked) [data-seats="seats"],
.seats:has([value="office"]:checked) [data-seats="office"] { display: inline; }
.seats:has([value="office"]:checked) .famcap::before { background: var(--on-navy-2); }
.plans { grid-area: plans; display: grid; gap: .75rem; }
.plan { display: grid; gap: .625rem; padding: 1.375rem 1.5rem; border-radius: var(--radius); background: var(--navy-2); transition: opacity .4s; }
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; font-size: 1.2rem; line-height: 1.3; }
.per-seat { padding: .2em .75em; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .8rem; }
.plan ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.plan li { display: flex; align-items: center; gap: .5rem; }
.plan li .i { color: var(--sun); }
.plan.free { background: var(--sun); color: var(--on-sun); }
.plan.free li .i { color: inherit; }
.family { grid-area: family; position: relative; display: grid; justify-items: center; }
.family .phone { transition: filter .5s, opacity .5s; }
.waits { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); padding: .625rem 1rem; border-radius: 999px;
         background: var(--on-navy); color: var(--navy); font-size: .9rem; font-weight: 600; white-space: nowrap;
         opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.seats:has([value="office"]:checked) .plan.paid { opacity: .4; }
.seats:has([value="office"]:checked) .family .phone { filter: grayscale(1); opacity: .42; }
.seats:has([value="office"]:checked) .waits { opacity: 1; visibility: visible; transition: opacity .3s; }
@media (min-width: 56.25em) {
  .seats { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "switch family" "says family" "plans family";
           grid-template-rows: auto auto 1fr; column-gap: 3rem; align-items: start; }
  .family { align-self: center; }
}

/* ---------- parents find you: the nursery's page beside the office's side of it ---------- */
.ask { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.ask .h-lg { font-size: clamp(1.9rem, 3.3vw, 2.7rem); }
.duo { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; min-width: 0; }
.duo .phone { width: min(15.625rem, 100%); }
.duo .glimpses { width: 100%; padding: clamp(.875rem, 2vw, 1.375rem); border-radius: 2.25rem; background: var(--tint); }
@media (min-width: 56.25em) {
  .ask { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
  .duo { flex-direction: row; gap: 2.5rem; }
  .duo .glimpses { flex: 1; }
}

/* ---------- trust: three points in a row ---------- */
@media (min-width: 56.25em) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- the closing band: register, and the three steps ---------- */
.closing { border-bottom: 1px solid var(--navy-2); }
.closing .h-xl { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.next { display: grid; gap: .625rem; padding: clamp(1.375rem, 3.4vw, 2.5rem); border-radius: clamp(1.75rem, 4vw, 2.75rem); background: var(--navy-2); }
.next h3 { font-size: .875rem; color: var(--on-navy-2); }
.next .counted { margin: 0; }
.next .counted li { display: flex; align-items: center; gap: .875rem; padding-block: .75rem; font-size: 1.15rem; font-weight: 600; }
.next .counted li::before { width: 2.75rem; height: 2.75rem; line-height: 2.75rem; font-size: 1.1rem; background: var(--sun); color: var(--on-sun); }
.one-app { margin-top: .375rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); font-weight: 600; }
@media (min-width: 56.25em) { .closing .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

/* ---------- a phone: the page's one action at the thumb, the footer's last links clear of it ---------- */
.thumb { display: none; }
@media (max-width: 56.1875em) {
  .thumb { position: fixed; inset: auto 0 0; z-index: 25; display: flex;
           padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom, 0px)); background: var(--page); box-shadow: 0 -1px 0 var(--line); }
  .thumb .btn { flex: 1; }
  /* nurseries.js: out of the way while the page's own button is on screen. */
  .thumb { transition: transform .3s var(--ease), visibility 0s; }
  .thumb.away { transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .foot { padding-bottom: calc(clamp(2.5rem, 6vw, 4.5rem) + 4.75rem + env(safe-area-inset-bottom, 0px)); }
}
@media print { .thumb { display: none; } }
