/* ═══════════════════════════════════════════════════════════
   THE WALKS ON A BIG SCREEN — The Fork (/f), The Referral (/r) and
   The Reach (/c). Linked with media="(min-width: 960px)", so phones
   never load these rules and keep exactly the layout they have.

   A story screen with a picture (a dashboard, a phone, a chart, a
   drawing) sits side by side: the words and the button on the left,
   the picture on the right. A screen with only words, or a form, stays
   one column, larger, with the button right under it. Nothing here
   changes the markup or the order things are read in.
   ═══════════════════════════════════════════════════════════ */

:root { --pad: 40px; }

/* ── Type, one size up ─────────────────────────────────── */
body { font-size: 18px; }
.hero { font-size: 88px; }
.sub { font-size: 21px; }
.title { font-size: 52px; }
.big { font-size: 64px; }
.big-line { font-size: 46px; }
.voice .big-line { font-size: 38px; }
.title-sm { font-size: 44px; margin: 8px 0 24px; }
.lesson { font-size: 40px; }
.line { font-size: 22px; }
.helper { font-size: 18px; }
.eyebrow, .when { font-size: 13px; }

/* ── The top bar lines up with the content, not the window ── */
.topbar {
  padding-left: max(16px, calc((100vw - 1200px) / 2));
  padding-right: max(16px, calc((100vw - 1200px) / 2));
}

/* ── One column: wider, centred, the button right under the words ── */
.screen { max-width: 760px; }
#scr-story { justify-content: center; }
#scr-story .sc { flex: none; padding: 0; }
#scr-story .sc-form { padding-top: 0; }
#scr-story .foot,
#scr-gate .foot { margin-top: 0; padding-top: 40px; align-items: flex-start; }
#scr-story .foot .btn-primary,
#scr-gate .foot .btn-primary { width: auto; min-width: 320px; padding: 16px 44px; }
#scr-story .tap-hint + .foot { padding-top: 14px; }
.tap-hint { text-align: left; font-size: 0; }
.tap-hint::after { content: "Click anywhere, or press \2192"; font-size: 14px; }

/* Forms: more room for the choices */
.feelings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calm-tools { max-width: 520px; }

/* ── Side by side: words left, picture right ───────────── */
/* The picture spans every row of the left column, so the words and the
   button sit centred beside it however tall it is. ::before holds the
   first (flexible) row so the words start on the second. :where keeps
   the :has tests light, so the picture's own rule below wins. */
#scr-story.is-active:has(> .sc > :where(.mock, .phone, #brief-slot, .loop, .calm, .chart, .sketch, .chat)) {
  display: grid;
  max-width: 1200px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr repeat(7, auto) 1fr;
  column-gap: 88px;
  align-items: start;
}
#scr-story.is-active:has(> .sc > :where(.mock, .phone, #brief-slot, .loop, .calm, .chart, .sketch, .chat))::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
}
#scr-story:has(> .sc > :where(.mock, .phone, #brief-slot, .loop, .calm, .chart, .sketch, .chat)) > .sc { display: contents; }
#scr-story:has(> .sc > :where(.mock, .phone, #brief-slot, .loop, .calm, .chart, .sketch, .chat)) > *,
#scr-story:has(> .sc > :where(.mock, .phone, #brief-slot, .loop, .calm, .chart, .sketch, .chat)) > .sc > * { grid-column: 1; }
#scr-story > .sc > :is(.mock, .phone, #brief-slot, .loop, .calm, .chart, .sketch, .chat) {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
}
/* The screen-in animation lived on .sc, which no longer draws a box. */
#scr-story.is-enter:has(> .sc > :where(.mock, .phone, #brief-slot, .loop, .calm, .chart, .sketch, .chat)) > .sc > :not(.rv) {
  animation: screenIn 0.45s var(--ease) both;
}

/* The pictures, sized for a big screen */
#scr-story > .sc > .mock,
#brief-slot .mock { width: 420px; max-width: 100%; justify-self: center; zoom: 1.25; }
#brief-slot { justify-self: center; width: 525px; max-width: 100%; }
#brief-slot .building { justify-content: center; }
#scr-story > .sc > .phone { justify-self: center; zoom: 1.3; }
#scr-story > .sc > .chart { width: 100%; }
#scr-story > .sc > .sketch { width: 100%; max-width: 500px; justify-self: center; }
#scr-story > .sc > .chat { gap: 16px; }
.chat .bubble, .chat .plain { font-size: 20px; }
#scr-story > .sc > .loop { justify-self: start; gap: 22px; }
.loop li { font-size: 24px; }
.loop span { font-size: 19px; }
.loop b { min-width: 140px; }
.loop-dot { top: 7px; }
#scr-story > .sc > .calm { width: 100%; max-width: 520px; justify-self: center; }
.sent-badge { justify-self: start; }
.draw-frame { max-width: 520px; }
.sc-payoff .line { margin-top: 20px; }
.mk-note { text-align: left; }

/* ── Gate: words left, art right ───────────────────────── */
#scr-gate.is-active {
  display: grid;
  max-width: 1200px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: 1fr repeat(4, auto) 1fr;
  column-gap: 72px;
  align-items: start;
}
#scr-gate.is-active::before { content: ""; grid-column: 1; grid-row: 1; }
#scr-gate > * { grid-column: 1; }
#scr-gate > :is(.gate-art, .slip, .notif) {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: center;
  margin: 0;
}
#scr-gate > .gate-art:has(.gphone) { zoom: 1.45; }
#scr-gate > .gate-art:has(svg) { width: 460px; }
#scr-gate > .slip { zoom: 1.5; }
#scr-gate .btn-link { align-self: flex-start; padding-left: 0; }

/* ── Pick a student (The Fork) ─────────────────────────── */
#scr-pick { max-width: 1100px; justify-content: center; }
.pick-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pick { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; height: 100%; }
.pick-go { align-self: flex-end; margin-top: auto; }

/* ── Connect: save his contact left, send yours right ──── */
#scr-connect { max-width: 1040px; justify-content: center; }
#btn-to-next { width: auto; align-self: flex-start; padding: 12px 28px; }
#scr-connect .steps {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

/* ── See it for yourself: the film big, the walks beside it ── */
#scr-next.is-active {
  display: grid;
  max-width: 1040px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: 24px;
  align-content: center;
}
#scr-next > * { grid-column: 2; }
#scr-next > .title, #scr-next > .more { grid-column: 1 / -1; }
#scr-next > .tile-hero { grid-column: 1; grid-row: span 3; align-self: start; }
#scr-next > .tile { margin-bottom: 14px; }

/* ── Hover, for a mouse ────────────────────────────────── */
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
  .btn-secondary:hover:not(:disabled), .btn-ghost:hover { filter: brightness(1.05); }
  .btn-link:hover, .btn-text:hover { color: var(--cream); }
  .tile:hover, .pick:hover,
  .feeling:not(.picked):hover, .need:not(.is-on):hover, .calm-tool:not(.is-on):hover,
  .suggest-chip:hover, .draw-toggle:hover {
    border-color: rgba(255, 248, 239, 0.32);
    background-color: rgba(255, 255, 255, 0.08);
  }
  .icon-btn:hover { background: var(--card); color: var(--cream); }
}

/* A shorter laptop screen: tighten before anything has to scroll. */
@media (max-height: 820px) {
  .draw-frame { max-width: 380px; }
}
@media (max-height: 760px) {
  .hero { font-size: 76px; }
  .big { font-size: 54px; }
  .big-line { font-size: 40px; }
  .title-sm { font-size: 38px; margin-bottom: 16px; }
  #scr-story .foot, #scr-gate .foot { padding-top: 28px; }
  #scr-story > .sc > .mock, #brief-slot .mock { zoom: 1.1; }
  #brief-slot { width: 462px; }
  #scr-gate > .gate-art:has(.gphone) { zoom: 1.2; }
  .draw-frame { max-width: 340px; }
}
