/* Shared part "start" (data-part="start"): the closing section of every page, just above the night footer, on sky
   paper (the evening before the night). A heading, one short line and the page's two calls to action.
   .start--home   the four people who log in (student, parent, teacher, school office), each a paper doorway that
                  opens /login/ at their door, then "Log in" and "Book a school demo".
   .start--split  product pages: copy on the left, the page's character on the right.
   Motion (start.js): the copy rises with the house motion; the doorways are set down on twos. Reduced motion: still. */

.start { overflow-x: clip; }
.start__inner { display: grid; justify-items: center; text-align: center; }
.start__h { font-size: var(--t-h2); max-width: 16em; }
.start__lead { margin-top: clamp(12px, 1.4vw, 18px); max-width: 32em; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.start__actions { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.start__btn { position: relative; }
.start__small { margin-top: 16px; max-width: 36em; font: 700 var(--t-small)/1.5 var(--font-body); color: var(--ink-2); }

/* ---------- home: the four doorways */
.start__who { margin-top: clamp(36px, 4.4vw, 60px); width: min(100%, 1040px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.who { --who-c: var(--sun); rotate: var(--who-t, 0deg); }
.who--student { --who-c: var(--sun); --who-t: -1deg; }
.who--parent { --who-c: var(--pink); --who-t: .8deg; }
.who--teacher { --who-c: var(--mint); --who-t: -.6deg; }
.who--school { --who-c: var(--moon); --who-t: 1deg; }
.who__link { position: relative; isolation: isolate; height: 100%; display: grid; justify-items: center; align-content: start; gap: 4px;
  padding: 18px 12px 20px; border-radius: var(--pk-cut); background: var(--card); color: var(--ink); text-decoration: none;
  box-shadow: var(--pk-edge-light), var(--pk-sh); transition: translate var(--m-quick, 200ms) var(--m-settle, ease); }
.who__link::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url(/assets/art/textures/grain-tile.webp) 0 0 / 256px 256px; mix-blend-mode: multiply; opacity: .4; }
/* the doorway: an arch of the role's paper with the person standing in it */
.who__art { position: relative; width: 100%; height: clamp(150px, 15vw, 200px); display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; }
.who__art::before { content: ""; position: absolute; left: 50%; bottom: 0; width: min(78%, 150px); height: 92%; translate: -50% 0; z-index: -1;
  border-radius: 999px 999px 8px 8px / 999px 999px 8px 8px; background: var(--who-c);
  box-shadow: inset 0 4px 10px rgba(40, 20, 0, .18), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.who__art img { position: relative; height: 92%; width: auto; max-width: none; transform-origin: 50% 100%; transition: transform 500ms var(--m-spring, ease); }
.who__name { font: 800 clamp(20px, 1.8vw, 24px)/1.15 var(--font-display); }
.who__does { font: 700 15.5px/1.35 var(--font-body); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .who__link:hover { translate: 0 -4px; }
  .who__link:hover .who__art img { transform: translateY(-6px) rotate(-2deg); }
}
.who__link:active { translate: 0 1px; transition-duration: var(--m-press, 100ms); }
.who__link:focus-visible { outline-offset: 4px; }

/* ---------- product pages: copy and a character side by side */
.start--split .start__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; justify-items: start; text-align: left; gap: clamp(28px, 5vw, 80px); }
.start--split .start__actions { justify-content: flex-start; }
.start__art { position: relative; justify-self: center; width: min(100%, 360px); }
.start__art img { width: 100%; height: auto; }
/* a character whose picture is painted on cream paper (Kuru) stands in a cream paper window */
.start__art--window { width: min(100%, 320px); overflow: hidden; border-radius: 50% 50% 18px 22px / 34% 34% 18px 22px; background: #FFF4E4;
  box-shadow: inset 0 6px 16px rgba(90, 42, 0, .22), inset 0 0 0 5px rgba(255, 255, 255, .45), 0 1px 1.5px rgba(30, 60, 140, .3), 0 24px 40px -22px rgba(30, 60, 140, .5); }
.start__art--window img { display: block; }

@media (max-width: 899.98px) {
  .start__who { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .start--split .start__inner { grid-template-columns: minmax(0, 1fr); }
  .start__art { width: min(64%, 280px); order: -1; }
}
@media (max-width: 479.98px) {
  .start__who { gap: 12px; }
  .who__link { padding: 14px 8px 16px; }
  .who__art { height: 140px; }
  .who__does { font-size: 15px; }
  .start__actions { width: 100%; }
  .start__actions .btn { flex: 1 1 100%; }
}

/* ---------- entrances */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.rm) .start [data-b].b-wait:not(.b-in) { opacity: 0; }
  .start [data-b="who"].b-in { animation: who-in 500ms steps(1, end) var(--b-at, 0ms) both; }
}
@keyframes who-in {
  0% { opacity: 0; transform: translateY(-22px) rotate(-2deg); }
  16.67% { opacity: 1; transform: translateY(-12px) rotate(-1.2deg); }
  33.33% { transform: translateY(-4px) rotate(-.4deg); }
  50% { transform: translateY(-1px); }
  66.67%, 100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .start [data-b] { animation: none !important; opacity: 1 !important; }
  .who__link, .who__art img { transition: none; }
}
@media (prefers-contrast: more) {
  .who__link { box-shadow: inset 0 0 0 2px var(--ink); }
}
@media (forced-colors: active) {
  .who__link { border: 1px solid CanvasText; }
}
.start__small a { color: var(--blue-deep); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }

/* the felt Suri in the start sections (the paper char had cut arms) */
.start__art .start__suri { width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(60, 30, 0, .22)); }
