/* The parents page's own layout (ParentsPage.kt): the hero, the day's six chapters, finding a
   nursery, the promises and the closing card. The drawn screens are screens.css's; the consent
   card and the points common.css's. */

/* ---------- the hero: the family's day on the sun panel ---------- */
.hero { --hero-words: 1.35fr; padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--band); }

/* ---------- the six chapters: a swipe row on a phone, a grid from a tablet ---------- */
.chapters { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.chapter { display: grid; grid-template-rows: auto 1fr; gap: 1rem; min-width: 0; padding: 1.25rem; border-radius: 2rem; background: var(--card); }
.chapter .words { display: grid; gap: .375rem; justify-items: start; align-content: start; }
.chapter .words .hb { margin-bottom: .375rem; }
.whose { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.words p:last-child { color: var(--ink-2); text-wrap: pretty; }
.chapter .screen { display: grid; place-items: center; padding: 1.25rem; border-radius: 1.75rem; background: var(--hue); }
@media (max-width: 43.6875em) {
  .chapters { grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
              margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter); }
  .chapter { scroll-snap-align: start; }
}
@media (min-width: 43.75em) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56.25em) { .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- a laptop with motion: the chapters pinned as one story (parents.js) ----------
   One chapter at a time over the others, its phone the height of the screen, a day rail with the
   sun beside the words, and the day's clock in the phone's status bar. */
#story.pinned { box-sizing: border-box; display: flex; height: 100vh; padding-block: 6rem 2rem; }
.pinned > .wrap { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.pinned .cap { display: none; }
.pinned .chapters { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 1.5rem;
                    padding-inline-start: 2.25rem; }
.pinned .chapters::before { content: ""; position: absolute; inset-block: 8%; inset-inline-start: .5rem; width: 3px; border-radius: 3px;
                            background: var(--line); }
.day-sun { position: absolute; inset-block: 8%; inset-inline-start: calc(.5rem + 1.5px - .625rem); width: 1.25rem; pointer-events: none; }
.day-sun::before { content: ""; position: absolute; top: -.625rem; left: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%;
                   background: var(--sun); box-shadow: 0 0 0 5px rgba(var(--sun-glow), .3); }
.pinned .chapter { grid-area: 1 / 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 3rem;
                   padding: 0; background: none; opacity: 0; pointer-events: none; transition: opacity .35s; }
.pinned .chapter.on { opacity: 1; pointer-events: auto; }
.pinned .words { align-content: center; }
.pinned .words .h-md { font-size: clamp(2.2rem, 3.8vw, 3.4rem); line-height: 1.1; }
.pinned .words p:last-child { max-width: 28ch; font-size: 1.2rem; }
.pinned .screen { min-height: 0; }
.pinned .phone { width: auto; max-width: none; height: 100%; }
.pinned .status { display: grid; place-items: center; font-size: .8em; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- finding a nursery, and activities near the family ---------- */
.finds { display: grid; gap: 1rem; }
.find { display: grid; grid-template-rows: auto auto 1fr; gap: 1.125rem; justify-items: start; min-width: 0;
        padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 2.5rem; background: var(--tint); }
.find.navy { background: var(--navy); }
.find .phone { align-self: end; justify-self: center; margin-top: .75rem; }
@media (min-width: 56.25em) { .finds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- trust: the consent selector beside three points ---------- */
.promises { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.promises .cell { grid-column: auto; }
.promises .points { margin: 0; align-content: center; }
@media (min-width: 56.25em) { .promises { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; } }

/* ---------- the closing card: the tagline, three steps and the app ---------- */
.closing { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 1.5rem;
           padding: clamp(2.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem); border-radius: clamp(2rem, 5vw, 3.5rem);
           background: var(--sun); color: var(--on-sun); text-align: center; }
.closing > :not(.rays) { position: relative; }
.closing .rays { position: absolute; inset-block-end: 0; inset-inline-end: 0; width: min(60%, 22rem); height: auto; }
html[dir="rtl"] .closing .rays { transform: scaleX(-1); }
.closing .h-xl { font-size: clamp(2.6rem, 7vw, 6rem); }
.closing .pills { --pill: rgba(255, 255, 255, .4); --pill-number: var(--navy); --on-pill-number: var(--on-navy); }
.closing .get { justify-items: center; }
.closing .text-link { color: var(--on-sun); }
