/* Red Pen & Pixel: page styles on top of scrollcraft.css.
   Six colour roles, two families. Grounds hard-cut per chapter. */
:root {
  --sc-canvas:     #EDF0EE;
  --sc-surface:    #F8F9F7;
  --sc-ink:        #16191D;
  --sc-ink-soft:   #4A535A;
  --sc-accent:     #BF1E2E;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Newsreader", Georgia, serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist", system-ui, sans-serif;
  --sc-shadow-color: 160 12% 30%;
  --carbon: #DCE2DF;
  --pencil: #5D6A63;
  --folio-w: 3.25rem;
}

/* Restate color with the tokens: inherited color is computed, not live. */
.ground-paper  { background: var(--sc-canvas); color: var(--sc-ink); }
.ground-carbon { background: var(--carbon); --sc-ink-soft: #414A50; color: var(--sc-ink); }
.ground-ink    { background: #16191D; --sc-ink: #E8ECE9; --sc-ink-soft: #A9B2B6; --sc-accent: #FF6B6F; color: var(--sc-ink); }

body { background: var(--sc-canvas); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { transition: color var(--sc-d-fast) var(--sc-ease-out), text-decoration-color var(--sc-d-fast) var(--sc-ease-out); }

.skip { position: absolute; left: var(--sc-4); top: -4rem; z-index: 100; background: var(--sc-ink); color: var(--sc-canvas); padding: var(--sc-2) var(--sc-4); border-radius: var(--sc-r-sm); }
.skip:focus { top: var(--sc-4); }

/* ------------------------------------------------------------- folio -- */
.folio {
  position: fixed; z-index: var(--sc-z-chrome);
  left: 0; top: 0; bottom: 0; width: var(--folio-w);
  display: flex; align-items: center; justify-content: center; gap: var(--sc-3);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: var(--sc-t-xs); letter-spacing: 0.04em;
  mix-blend-mode: difference; color: #9aa39f;
  pointer-events: none;
}
.folio__mark { font-family: var(--sc-font-display); font-style: italic; font-size: 0.95rem; letter-spacing: 0; }
.folio__page { transition: opacity var(--sc-d-base) var(--sc-ease-out); }
.folio.is-swapping .folio__page { opacity: 0; }
main, .colophon { padding-left: var(--folio-w); }
@media (max-width: 860px) {
  :root { --folio-w: 0px; }
  /* No margin on a phone, so no folio: a fixed strip would sit on top of the text. */
  .folio { display: none; }
}

/* --------------------------------------------------------- title page -- */
.title {
  position: relative; overflow: clip;
  min-height: 100svh;
  display: grid; align-items: center;
  padding-block: var(--sc-9) var(--sc-10);
}
.title__scene { position: absolute; inset: 0; pointer-events: none; }
.sheet {
  position: absolute; background: var(--sc-surface);
  border-radius: 3px;
  box-shadow: var(--sc-e2);
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 2.2rem 2rem;
  max-width: none;
}
.sheet--back { width: 26rem; height: 34rem; right: 10%; top: 6%; rotate: 5deg; opacity: .75; filter: blur(0.6px); box-shadow: var(--sc-e1); }
.sheet--mid  { width: 30rem; height: 30rem; right: 18%; top: 34%; rotate: -3deg; box-shadow: var(--sc-e3); }
.sheet__head { font-family: var(--sc-font-display); font-size: 1.05rem; color: var(--sc-ink); margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.sheet__line { height: 0.5rem; border-radius: 2px; background: color-mix(in oklab, var(--sc-ink) 9%, transparent); }
.sheet__line.s { width: 62%; }
.sheet__clause { font-family: var(--sc-font-display); font-size: 1.05rem; line-height: 1.5; color: var(--sc-ink); }
.sheet__clause b { font-family: var(--sc-font-text); font-weight: 500; font-size: 0.8rem; color: var(--sc-ink-soft); margin-right: 0.4rem; }
.circled { font-style: normal; position: relative; white-space: nowrap; }
.circled::after {
  content: ""; position: absolute; inset: -0.35em -0.45em; border: 2px solid var(--sc-accent);
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; rotate: -4deg;
}

.title__copy { position: relative; z-index: 2; }
.title__mark { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); margin-bottom: var(--sc-7); }
.title__mark em { color: var(--sc-accent); }
.title__h {
  font-family: var(--sc-font-display); font-weight: 400;
  font-size: clamp(3.2rem, 1.6rem + 7vw, 8.5rem);
  line-height: 0.95; letter-spacing: -0.03em;
  max-width: 9ch; text-wrap: balance;
}
.slips { position: relative; font-style: italic; white-space: nowrap; }
.slips__line { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }
.slips__line path {
  fill: none; stroke: var(--sc-accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, var(--sc-p, 0) * 4.5 + 0.35));
}
.title__lede { margin-top: var(--sc-6); font-size: var(--sc-t-lg); line-height: 1.4; max-width: 30ch; color: var(--sc-ink-soft); text-wrap: pretty; }
.title__go { margin-top: var(--sc-6); }
.title__go a, .colophon a {
  font-weight: 500; color: var(--sc-ink);
  text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.title__go a:hover, .colophon a:hover { color: var(--sc-accent); }
.title__go a::after { content: " \2193"; color: var(--sc-accent); }

.title__front { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pen { position: absolute; width: 34rem; max-width: none; right: 4%; top: 58%; rotate: -24deg; filter: drop-shadow(0 18px 14px hsl(160 12% 25% / .28)); }
.flag {
  position: absolute; right: 12%; top: 22%;
  font-family: var(--sc-font-display); font-style: italic; font-size: 1.15rem; color: var(--sc-accent);
  background: #F6E9A6; padding: 0.7rem 1rem 0.8rem; rotate: 4deg; box-shadow: var(--sc-e2);
}
/* Fade the floor so planes never show a clip line. */
.title::after { content: ""; position: absolute; inset: auto 0 0 0; height: 12rem; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--sc-canvas)); }

@media (max-width: 1100px) {
  .sheet--back { right: -10%; } .sheet--mid { right: -6%; top: 46%; }
}
@media (max-width: 860px) {
  .title { align-items: start; padding-block: var(--sc-8) var(--sc-11); }
  .title__mark { margin-bottom: var(--sc-6); }
  .sheet--back { width: 18rem; height: 22rem; right: -5rem; top: auto; bottom: 2rem; }
  .sheet--mid  { width: 20rem; height: 15rem; right: -2rem; left: auto; top: auto; bottom: -1rem; padding: 1.4rem; }
  .sheet__clause { font-size: 0.95rem; }
  .pen { width: 20rem; right: -4rem; top: auto; bottom: 5rem; }
  .flag { right: 1.25rem; top: auto; bottom: 17rem; font-size: 1rem; }
}

/* ------------------------------------------------------------ I. gap -- */
.gap__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--sc-9); align-items: end; }
.gap__h { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-3xl); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.gap__list { counter-reset: g; border-top: 1px solid var(--sc-hairline-strong); }
.gap__list li { counter-increment: g; padding-block: var(--sc-4); border-bottom: 1px solid var(--sc-hairline); color: var(--sc-ink-soft); line-height: 1.5; padding-left: 2rem; position: relative; }
.gap__list li::before { content: "\2715"; position: absolute; left: 0; color: var(--sc-accent); font-size: 0.85em; top: 1.15rem; }
.gap__list b { color: var(--sc-ink); font-weight: 500; }
@media (max-width: 860px) { .gap__grid { grid-template-columns: 1fr; gap: var(--sc-7); } }

/* -------------------------------------------------------- intertitle -- */
.inter { min-height: 70svh; display: grid; place-items: center start; padding-inline: var(--sc-gutter); }
.inter__t { font-family: var(--sc-font-display); font-style: italic; font-size: var(--sc-t-4xl); letter-spacing: -0.03em; margin-left: 12vw; }

/* ------------------------------------------------- II. catch it (peak) -- */
.catch { padding-block: var(--sc-7) var(--sc-section); }
.catch__head { max-width: 46rem; margin-bottom: var(--sc-8); }
.catch__h { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-2xl); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.catch__how { margin-top: var(--sc-4); color: var(--sc-ink-soft); max-width: 52ch; }

.contract {
  position: relative;
  background: var(--sc-surface); box-shadow: var(--sc-e3), var(--sc-edge);
  border-radius: 3px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  max-width: 64rem;
}
.contract__cols, .pair { display: grid; grid-template-columns: 3rem 1fr 1fr 15rem; column-gap: var(--sc-6); }
.contract__cols { padding-bottom: var(--sc-3); border-bottom: 1px solid var(--sc-hairline-strong); }
.contract__cols .contract__lang:first-child { grid-column: 2; }
.contract__lang { font-size: var(--sc-t-xs); letter-spacing: 0.06em; color: var(--sc-ink-soft); }
.pair { padding-block: var(--sc-4); border-bottom: 1px solid var(--sc-hairline); align-items: start; }
.no { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); padding-top: 0.2rem; font-variant-numeric: tabular-nums; }
.cl { font-family: var(--sc-font-display); font-size: 1.15rem; line-height: 1.6; }
.note {
  grid-column: 4; grid-row: 1;
  font-family: var(--sc-font-display); font-style: italic; color: var(--sc-accent);
  font-size: 0.98rem; line-height: 1.4;
  opacity: 0; translate: 0 6px;
  transition: opacity var(--sc-d-slow) var(--sc-ease-out), translate var(--sc-d-slow) var(--sc-ease-out);
}
.note b { font-family: var(--sc-font-text); font-style: normal; font-weight: 500; font-size: 0.78rem; margin-right: 0.3rem; }
.note em { font-style: normal; }
.pair.is-caught .note { opacity: 1; translate: 0 0; }

/* Word buttons: look like text until touched. */
.w {
  all: unset; position: relative; cursor: pointer;
  border-radius: 3px; padding: 0 0.04em; margin: 0 -0.04em;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .w:hover { background: color-mix(in oklab, var(--sc-accent) 9%, transparent); } }
.w:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.w:active { translate: 0 1px; }
/* Hand-drawn circle around a caught span */
.hit { position: relative; white-space: nowrap; }
.hit > svg { position: absolute; left: -0.45em; top: -0.32em; width: calc(100% + 0.9em); height: calc(100% + 0.64em); overflow: visible; pointer-events: none; }
.hit > svg path { fill: none; stroke: var(--sc-accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 520ms var(--sc-ease-out); }
.hit.on > svg path { stroke-dashoffset: 0; }
.hit.shown > svg path { stroke-dasharray: 0.03 0.025; }
/* Pencil tick for a word that's fine */
.tick { position: absolute; left: 50%; top: -1.05em; translate: -50% 0; font-family: var(--sc-font-text); font-size: 0.72rem; color: var(--pencil); white-space: nowrap; pointer-events: none; animation: tick 1600ms var(--sc-ease-out) forwards; }
@keyframes tick { 0% { opacity: 0; translate: -50% 4px; } 15%, 70% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; } }

.tally { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sc-3) var(--sc-6); padding-top: var(--sc-6); }
.tally__score { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); font-variant-numeric: tabular-nums; }
.tally__score span { color: var(--sc-accent); }
.tally__msg { color: var(--sc-ink-soft); flex: 1 1 18rem; }
.tally__show {
  font-weight: 500; font-size: var(--sc-t-sm);
  background: var(--sc-ink); color: var(--sc-canvas); border: 0; border-radius: var(--sc-r-sm);
  padding: 0.7rem 1.1rem; cursor: pointer; min-height: 44px;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.tally__show:hover { background: var(--sc-accent); }
.tally__show:active { transform: scale(0.97); }
.tally__show:disabled { opacity: .45; cursor: default; background: var(--sc-ink); }

.catch__full { margin-top: var(--sc-9); display: grid; grid-template-columns: auto 1fr; column-gap: var(--sc-7); align-items: end; max-width: 64rem; }
.catch__big { font-family: var(--sc-font-display); font-size: clamp(5rem, 3rem + 9vw, 11rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--sc-accent); grid-row: span 2; }
.catch__big span:last-child { font-size: 0.24em; letter-spacing: 0; color: var(--sc-ink-soft); margin-left: 0.2em; }
.catch__said { font-size: var(--sc-t-lg); line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.catch__small { margin-top: var(--sc-3); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

@media (max-width: 1000px) {
  .contract__cols, .pair { grid-template-columns: 2.4rem 1fr 1fr; column-gap: var(--sc-4); }
  .note { grid-column: 2 / -1; grid-row: auto; max-height: 0; overflow: hidden; }
  .pair.is-caught .note { max-height: 10rem; margin-top: var(--sc-3); }
}
@media (max-width: 640px) {
  .contract__cols { display: none; }
  .pair { grid-template-columns: 2.2rem 1fr; row-gap: var(--sc-2); }
  .cl { grid-column: 2; font-size: 1.05rem; }
  .cl[lang="af"] { color: var(--sc-ink-soft); }
  .cl[lang="af"]::before { content: "AF  "; font-family: var(--sc-font-text); font-size: 0.7rem; letter-spacing: .06em; color: var(--sc-ink-soft); }
  .cl[lang="en"]::before { content: "EN  "; font-family: var(--sc-font-text); font-size: 0.7rem; letter-spacing: .06em; color: var(--sc-ink-soft); }
  .catch__full { grid-template-columns: 1fr; }
  .catch__big { grid-row: auto; margin-bottom: var(--sc-4); }
}

/* --------------------------------------------- III. two pairs of eyes -- */
.eyes__h { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-3xl); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.eyes__duo { margin-top: var(--sc-8); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-8); max-width: 68rem; }
.person--c { margin-top: var(--sc-10); }
.person__plate {
  aspect-ratio: 4 / 5; max-width: 22rem; background: var(--sc-surface); box-shadow: var(--sc-e2), var(--sc-edge);
  display: grid; place-items: center; border-radius: 3px; margin-bottom: var(--sc-5);
}
.person__plate span { font-family: var(--sc-font-display); font-style: italic; font-size: clamp(8rem, 5rem + 10vw, 15rem); line-height: 1; color: var(--sc-accent); padding-bottom: 0.1em; }
.person__name { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); }
.person__does { margin-top: var(--sc-2); color: var(--sc-ink-soft); max-width: 38ch; }
.person__catches { margin-top: var(--sc-3); font-family: var(--sc-font-display); font-style: italic; font-size: var(--sc-t-lg); color: var(--sc-accent); }
.eyes__claude { margin-top: var(--sc-9); max-width: 48ch; font-size: var(--sc-t-lg); line-height: 1.45; text-wrap: pretty; }

.sheet-out { margin-top: var(--sc-9); max-width: 60rem; }
.sheet-out__page { background: var(--sc-surface); box-shadow: var(--sc-e3), var(--sc-edge); border-radius: 3px; padding: clamp(1.25rem, 3vw, 2.5rem); overflow-x: auto; }
.sheet-out__title { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); margin-bottom: var(--sc-4); }
.sheet-out__title span { font-family: var(--sc-font-text); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.sheet-out table { width: 100%; border-collapse: collapse; font-size: var(--sc-t-sm); min-width: 34rem; }
.sheet-out th { text-align: left; font-weight: 500; color: var(--sc-ink-soft); padding: var(--sc-2) var(--sc-3) var(--sc-2) 0; border-bottom: 1px solid var(--sc-hairline-strong); }
.sheet-out td { padding: var(--sc-3) var(--sc-3) var(--sc-3) 0; border-bottom: 1px solid var(--sc-hairline); vertical-align: top; }
.sheet-out td:last-child { font-family: var(--sc-font-display); font-style: italic; color: var(--sc-accent); font-size: 1rem; }
.sheet-out figcaption { margin-top: var(--sc-4); color: var(--sc-ink-soft); max-width: 52ch; font-size: var(--sc-t-sm); }
@media (max-width: 760px) {
  .eyes__duo { grid-template-columns: 1fr; gap: var(--sc-8); }
  .person--c { margin-top: 0; }
  .person__plate { max-width: 15rem; }
}

/* ---------------------------------------------------------- IV. jobs -- */
.jobs__h { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-3xl); line-height: 1; letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.index { margin-top: var(--sc-8); border-top: 1px solid var(--sc-ink); max-width: 72rem; }
.index a {
  display: grid; grid-template-columns: 1.2fr 1.3fr auto; gap: var(--sc-3) var(--sc-6); align-items: baseline;
  padding-block: var(--sc-5); border-bottom: 1px solid var(--sc-hairline-strong); text-decoration: none;
}
.index__job { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); line-height: 1.15; letter-spacing: -0.01em; }
.index__catch { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.index__catch::before { content: "Catches: "; color: var(--sc-accent); }
.index__price { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.index a:hover .index__job, .index a:focus-visible .index__job { color: var(--sc-accent); }
.index a:hover .index__price::after, .index a:focus-visible .index__price::after { content: " \2192"; color: var(--sc-accent); }
.jobs__note { margin-top: var(--sc-5); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
@media (max-width: 760px) {
  .index a { grid-template-columns: 1fr auto; }
  .index__catch { grid-column: 1 / -1; grid-row: 2; }
}

/* ------------------------------------------------------------ colophon -- */
.colophon { padding-block: var(--sc-10) var(--sc-9); border-top: 1px solid var(--sc-hairline); }
.colophon__in { max-width: 40rem; margin-left: max(var(--sc-gutter), 30vw); }
.colophon__ask { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); line-height: 1.45; }
.colophon__fine { margin-top: var(--sc-6); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
@media (max-width: 860px) { .colophon__in { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  .slips__line path { stroke-dashoffset: 0; }
  .note, .hit > svg path { transition: none; }
  .tick { animation-duration: 2200ms; }
}

/* Without the script the exercise is a plain contract with its notes showing. */
.contract:not(.is-live) .note { opacity: 1; translate: none; max-height: none; }
.contract:not(.is-live) .tally { display: none; }

/* --------------------------------------------- III. the email (Petri) -- */
.made__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--sc-8); align-items: start; }
.made__h, .screens__h { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-2xl); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.made__p, .screens__copy > p { margin-top: var(--sc-4); color: var(--sc-ink-soft); max-width: 40ch; text-wrap: pretty; }
.made__toggle { margin-top: var(--sc-6); display: inline-flex; border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm); padding: 3px; gap: 3px; }
.made__toggle button {
  border: 0; background: transparent; color: var(--sc-ink-soft); font-weight: 500; font-size: var(--sc-t-sm);
  padding: 0.55rem 0.9rem; min-height: 40px; border-radius: 4px; cursor: pointer;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), color var(--sc-d-fast) var(--sc-ease-out);
}
.made__toggle button[aria-pressed="true"] { background: var(--sc-ink); color: var(--sc-canvas); }
.ground-ink .made__toggle button[aria-pressed="true"] { color: #16191D; }
.made__toggle button:active { transform: scale(0.97); }

.inbox { margin: 0; }
.inbox__frame {
  width: var(--w); max-width: calc(100vw - 2 * var(--sc-gutter));
  height: min(44rem, 78svh);
  border-radius: 28px; border: 10px solid #16191D; background: #16191D;
  box-shadow: var(--sc-e3); overflow: hidden;
  transition: width var(--sc-d-slow) var(--sc-ease-out);
}
.inbox__frame[style*="600px"] { border-radius: 10px; border-width: 8px; }
.inbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #F4F1EC; border-radius: 18px; }
.inbox__frame[style*="600px"] iframe { border-radius: 4px; }
.inbox figcaption { margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 40ch; }
.inbox figcaption a { color: var(--sc-ink); text-decoration-color: var(--sc-accent); }

.checks { counter-reset: c; border-top: 1px solid var(--sc-hairline-strong); }
.checks li { padding-block: var(--sc-4); border-bottom: 1px solid var(--sc-hairline); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.5; padding-left: 1.75rem; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 1rem; color: var(--sc-accent); font-weight: 600; }
.checks b { color: var(--sc-ink); font-weight: 500; }
.checks__own { font-family: var(--sc-font-display); font-style: italic; font-size: 1.02rem !important; color: var(--sc-accent) !important; }
.checks__own b { color: var(--sc-accent); font-family: var(--sc-font-text); font-style: normal; font-size: var(--sc-t-sm); }
.checks__own::before { content: "\2715" !important; }

@media (max-width: 1180px) {
  .made__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .checks { grid-column: 1 / -1; columns: 2; column-gap: var(--sc-7); }
  .checks li { break-inside: avoid; }
}
@media (max-width: 760px) {
  .made__grid { grid-template-columns: 1fr; gap: var(--sc-7); }
  #email .made__toggle { display: none; }
  .inbox__frame { --w: 100% !important; width: 100%; height: 34rem; }
  .checks { columns: 1; }
}

/* -------------------------------------------- IV. the screens (Petri) -- */
.screens__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sc-9); align-items: center; max-width: 68rem; }
.screens__get { margin-top: var(--sc-6); border-top: 1px solid var(--sc-hairline-strong); }
.screens__get li { padding: var(--sc-3) 0 var(--sc-3) 1.75rem; border-bottom: 1px solid var(--sc-hairline); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); position: relative; }
.screens__get li::before { content: "\2192"; position: absolute; left: 0; color: var(--sc-accent); }

.se { margin: 0; }
.se__phone {
  position: relative; width: 320px; height: 568px; overflow: hidden;
  border: 12px solid #2A2F35; border-radius: 34px; background: #FBFBFA; color: #16191D;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); box-sizing: content-box;
  font-family: var(--sc-font-text);
}
.co { height: 100%; overflow: hidden; }
.co__bar { height: 44px; display: grid; place-items: center; font-weight: 600; font-size: 15px; border-bottom: 1px solid #E6E8E7; }
.co__hero { height: 236px; margin: 14px 16px 0; border-radius: 12px;
  background: url("samples/img/hero.svg") center / cover; transition: height var(--sc-d-slow) var(--sc-ease-out); }
.co__h { margin: 18px 16px 6px; font-weight: 600; font-size: 17px; }
.co__items li { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid #EEF0EF; }
.co__items li span:last-child, .co__total span:last-child { font-variant-numeric: tabular-nums; }
.co__promo { margin: 12px 16px 0; font-size: 13px; color: #4A535A; text-decoration: underline; }
.co__total { display: flex; justify-content: space-between; margin: 12px 16px 0; font-weight: 600; font-size: 16px; }
.co__pay {
  display: block; width: calc(100% - 32px); margin: 18px 16px; height: 50px; border: 0; border-radius: 12px;
  background: #16191D; color: #fff; font: 600 16px var(--sc-font-text);
}
.co[data-ver-state="after"] .co__hero { height: 96px; }
.co[data-ver-state="after"] .co__pay {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; width: 100%; height: 72px; border-radius: 0;
  background: #BF1E2E; box-shadow: 0 -8px 20px -10px rgb(0 0 0 / .35); padding-bottom: 10px;
}
.se figcaption { margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 344px; min-height: 3em; }
@media (max-width: 860px) {
  .screens__grid { grid-template-columns: 1fr; gap: var(--sc-7); }
  .se { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .inbox__frame, .co__hero { transition: none; } }
/* Desktop-width email needs the room: the checklist moves under it. */
@media (min-width: 761px) {
  .made__grid.is-wide { grid-template-columns: minmax(0, 1fr) auto; }
  .made__grid.is-wide .checks { grid-column: 1 / -1; columns: 2; column-gap: var(--sc-7); }
  .made__grid.is-wide .checks li { break-inside: avoid; }
}
