/* Section 03 of the landing (#test). Order W4/W5, 2026-11-18. One writer owns this file.
   W5: one large tablet pinned beside the steps (no grey panel, no locator). */

/* Desktop: the steps in a narrower column, the tablet about 62% of the window wide, as tall as the stage allows. */
.page-index .ipw-grid{grid-template-columns:minmax(0,1fr) minmax(0,2.4fr);gap:0 4%}
.page-index .ipw .lx-step{max-width:340px}
.page-index .lx-route.is-live .ipw-stage{justify-content:center;align-items:center}
.page-index .ipw-frame{--bz:16px;position:relative;width:min(100%,calc((100vh / var(--z,1) - 150px - 30px - 2 * var(--bz)) * 1.439 + 2 * var(--bz)))}

/* The outlines: a plain tablet (thin ink line, round corners, no marks) and a plain browser of the same size. */
.page-index .ipw-device{position:relative;box-sizing:border-box;border:1.5px solid var(--ink-2);border-radius:30px;padding:var(--bz);background:var(--page)}
.page-index .ipw-browser{position:absolute;left:0;right:0;top:0;bottom:0;border-radius:12px;padding:0;display:flex;flex-direction:column;opacity:0;visibility:hidden}
.page-index .ipw-bar{flex:none;height:30px;display:flex;align-items:center;gap:6px;padding:0 14px;border-bottom:1px solid var(--rule-2)}
.page-index .ipw-bar i{width:8px;height:8px;border-radius:50%;border:1px solid var(--ink-6)}

/* The screen: the capture fills it; the camera (scale, then move) answers the scroll in landing.js. */
.page-index .ipw-screen{position:relative;aspect-ratio:2360/1640;overflow:hidden;border-radius:7px;background:#fff;box-shadow:0 0 0 1px var(--rule-3)}
.page-index .ipw-browser .ipw-screen{flex:1;aspect-ratio:auto;border-radius:0 0 11px 11px;box-shadow:none}
.page-index .ipw-shot{position:absolute;inset:0;opacity:0;visibility:hidden}
.page-index .ipw-shot[style*="opacity:1"]{visibility:visible}
.page-index .ipw-cam{position:absolute;inset:0;transform-origin:0 0;will-change:transform}
.page-index .ipw-cam img{display:block;width:100%;height:100%}
.page-index .ipw-browser .ipw-cam img{height:auto}
.page-index .ipw-label{position:absolute;right:6px;top:100%;margin-top:9px;font-size:11px;line-height:1;color:var(--ink-5);letter-spacing:0}

/* Narrow windows: the tablet at full width, pinned at the top; the steps pass under it (landing.js, white.css). */
@media (max-width:1000px){
  .page-index .ipw-grid{grid-template-columns:1fr}
  .page-index .ipw .lx-step{max-width:none}
  .page-index .ipw-frame{--bz:9px;width:100%;margin-bottom:22px}
  .page-index .ipw-device{border-radius:18px}
  .page-index .ipw-browser{border-radius:10px}
  .page-index .ipw-bar{height:22px;padding:0 10px}
  .page-index .ipw-bar i{width:6px;height:6px}
}

/* The plain drawing shown in place of the tablet for a step that has no screen (ipadwalk.mjs `figure`). */
.page-index .ipw-plain{position:absolute;left:0;right:0;top:0;bottom:0;border:0;border-radius:0;padding:0;background:var(--page);display:flex;opacity:0;visibility:hidden}
.page-index .ipw-plain .ipw-screen{flex:1;aspect-ratio:auto;border-radius:0;box-shadow:none;background:var(--page)}
.page-index .ipw-drawing{display:flex;align-items:center;justify-content:center}
.page-index .ipw-drawing svg{display:block;width:100%;height:auto;max-height:100%;overflow:visible}
/* The upright tablet (ipadwalk.mjs `tall`): its screen as wide as 1640/2360 of the lying one's, so the type keeps one
   size; it is then as tall as the frame is wide, so the frame shows its top or its bottom and the cut edge fades.
   top = H*a - W*a with a = 0 (top) or 1 (bottom): `top` takes the frame's height, the transform the body's own. */
.page-index .ipw-tall{position:absolute;left:0;right:0;top:0;bottom:0;border:0;border-radius:0;padding:0;background:none;overflow:hidden;opacity:0;visibility:hidden}
.page-index .ipw-tall-body{position:absolute;left:50%;box-sizing:border-box;width:calc((100% - 2 * var(--bz)) * 1640 / 2360 + 2 * var(--bz));border:1.5px solid var(--ink-2);border-radius:30px;padding:var(--bz);background:var(--page)}
.page-index .ipw-tall .ipw-screen{aspect-ratio:1640/2360}
.page-index .ipw-tall-top .ipw-tall-body{top:0;transform:translateX(-50%)}
.page-index .ipw-tall-bottom .ipw-tall-body{top:100%;transform:translate(-50%,-100%)}
.page-index .ipw-tall-top{-webkit-mask-image:linear-gradient(to bottom,#000 80%,transparent);mask-image:linear-gradient(to bottom,#000 80%,transparent)}
.page-index .ipw-tall-bottom{-webkit-mask-image:linear-gradient(to top,#000 80%,transparent);mask-image:linear-gradient(to top,#000 80%,transparent)}
@media (max-width:1000px){.page-index .ipw-tall-body{border-radius:18px}}

/* The plain line drawing in place of a screen (the app page's time line of one miss). */
.page-index .ipw-drawing .tl-line{stroke:var(--ink-4);stroke-width:2}
.page-index .ipw-drawing .tl-gap{stroke:var(--ink-5);stroke-width:2;stroke-dasharray:3 9}
.page-index .ipw-drawing .tl-day{fill:var(--ink-4);font-size:24px;text-anchor:end}
.page-index .ipw-drawing .tl-what{fill:var(--ink);font-size:30px;letter-spacing:-.01em}
.page-index .ipw-drawing .tl-sub{fill:var(--ink-3);font-size:26px}
.page-index .ipw-drawing .tl-open{fill:var(--page);stroke:var(--ink);stroke-width:3}
.page-index .ipw-drawing .tl-soft{fill:var(--ink-4)}
.page-index .ipw-drawing .tl-shut{fill:var(--ink)}

/* The small group word above a step's counter ("Plans", "Tells" ...). */
.page-index .ipw .ipw-group{display:block;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin-bottom:10px}
/* The drawing of what reaches the teacher (the app page, step 12): larger type than the time line, so it reads
   in the small stage of a phone. */
.page-index .ipw-drawing .tt-big{fill:var(--ink);font-size:48px;letter-spacing:-.01em}
.page-index .ipw-drawing .tt-row{fill:var(--ink-3);font-size:40px}
