/*
  The site's own layout. The look itself is orrery.css, which comes from the
  plan folder and is not edited here. Everything in this file is prefixed s-.

  Like the look, layout answers to the width of .o-root, not the window.
*/

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: #F7F2E8; }
.o-root { min-height: 100vh; }
.o-display, .o-h1, .o-h2, .o-h3 { overflow-wrap: break-word; }

/* The first stop for a keyboard: jump past the header. */
.s-skip { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 12px 16px; border: 1.5px solid #341E13; border-radius: 12px; background: #FFFFFF; color: #341E13; font: 700 15px/1 'Instrument Sans', system-ui, sans-serif; }
.s-skip:focus { top: 12px; }

/* ---- header -------------------------------------------------------------- */

.s-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-weight: 600; font-size: 15px; }
.s-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.s-nav a[aria-current="page"] { text-decoration-color: var(--ink); }

/* Sign in and Get started for free, as one pill, drawn like the tabs at the top of the app. */
.s-pair { display: inline-flex; flex: none; padding: 3px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-pill); background: var(--surface); }
.o-root a.s-pair__go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1; text-decoration: none; white-space: nowrap; }
.o-root a.s-pair__go:hover { background: var(--surface-2); color: var(--ink); }
.o-root a.s-pair__go--main, .o-root a.s-pair__go--main:hover { background: var(--ink); color: var(--ground); }

/* ---- the top of the home page: one full screen --------------------------- */

/* The headline and the melting planet, on chocolate. */
.s-stage { position: relative; display: flex; flex-direction: column; min-height: max(560px, calc(100svh - 82px)); overflow: hidden; }
.s-stage__screen { position: relative; flex: 1; display: flex; }
.s-stage__in { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 44px 32px 0; align-items: flex-end; }
.s-stage__words { align-self: center; padding-bottom: 48px; }
.s-hero__title { margin: 0; font: inherit; }

/* The melting planet, with its ring behind and in front, and its moon. */
.s-sky { flex: 0 0 330px; position: relative; height: 506px; margin: 0 auto -8px; z-index: 1; }
.s-sky > * { position: absolute; display: block; }
.s-sky > svg { left: 0; top: 0; overflow: visible; }
.s-sky__planet { left: 40px; top: 8px; max-width: none; }
.s-sky__moon { left: -6px; top: 189px; }

/* The film: one huge block, wider than the rest of the page. */
.s-film { display: flex; flex-direction: column; gap: 20px; max-width: 1344px; margin: 0 auto; padding: 56px 32px 0; }
.s-film__frame { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2cqw, 26px); aspect-ratio: 16 / 9; overflow: hidden; border: var(--stroke) solid #341E13; border-radius: var(--radius-card); background: #341E13; box-shadow: var(--shadow-hard); }
.s-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #24140C; }
.s-film__play { z-index: 1; display: grid; place-items: center; flex: none; width: clamp(52px, 11cqw, 132px); aspect-ratio: 1; border: var(--stroke) solid #341E13; border-radius: 50%; background: #FF5A1F; color: #341E13; box-shadow: 0 6px 0 #24140C; pointer-events: none; }
.s-film__note { margin: 0; padding: 0 20px; max-width: 52ch; text-align: center; font-size: 16px; line-height: 1.45; color: #EBD9C3; }
/* Once there is a video, the play mark shows only while it waits, where a browser
   can tell. No script is involved. */
.s-film__video ~ .s-film__play { display: none; }
@supports selector(:has(video:paused)) {
  .s-film__frame:has(video:paused) .s-film__play { display: grid; }
}

/* ---- the rest of the home page ------------------------------------------- */

.s-sections { gap: 56px; padding-top: 48px; }

/* Before and after: two cards with "vs." between them. The old way is the smaller,
   quieter card. The new way is larger and raised, and is the one to choose. */
.s-shift { gap: 24px; }
.s-versus { display: grid; grid-template-columns: minmax(0, 0.88fr) auto minmax(0, 1.12fr); align-items: center; gap: 22px; }
.s-versus__vs { margin: 0; }
.s-side { gap: 20px; }
.s-side--was { padding: 22px 24px; color: var(--ink-2); }
.s-side--was .o-h2 { font-size: 22px; }
.s-side--now { padding: 30px 32px 28px; }
.s-side .o-list > li { align-items: flex-start; gap: 12px; }
.s-side__words { gap: 5px; min-width: 0; }
.s-side__line { line-height: 1.35; text-wrap: pretty; }
.s-side--was .s-side__line { font-size: 15px; }
.s-side--now .s-side__line { font-size: 18px; font-weight: 600; }
.s-mark { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.s-mark path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-mark--no { color: var(--quiet); }
.s-mark--yes { width: 22px; height: 22px; color: var(--on-lead); }
.s-mark--yes circle { fill: var(--lead); }
.s-counts { gap: 12px; }
.s-count { gap: 6px; }
.s-counts .o-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.s-count .o-p { text-wrap: pretty; }
.s-count__unit { font-size: 20px; font-weight: 700; letter-spacing: 0; }

/* Why, how and what: three rows, each a small label beside one large line. */
.s-wwh { display: flex; flex-direction: column; padding-top: 64px; padding-bottom: 8px; }
.s-wwh__row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px 32px; padding: 36px 0; border-top: var(--stroke) solid var(--ink); }
.s-wwh__row:first-child { border-top: 0; padding-top: 0; }
.s-wwh__label { margin: 10px 0 0; font-size: 15px; }
.s-wwh .o-h1 { max-width: 24ch; text-wrap: balance; }
.s-wwh .o-lead { max-width: 54ch; text-wrap: pretty; }
.s-wwh__steps { margin: 4px 0 0; }
.s-wwh__name { font-size: clamp(48px, 9cqw, 92px); line-height: 0.95; }
.s-wwh__note { margin: 0; padding-left: 164px; }
.s-who { gap: 16px; }
.s-who .o-grid { gap: 20px 40px; }
.s-who p { max-width: 40ch; text-wrap: pretty; }
.s-pills { gap: 8px; }

/* What is in it: a block for each discipline, and in it two tools. */
.s-features { gap: 28px; }
.s-feature { padding-top: 22px; border-top: var(--stroke) solid var(--ink); }
.o-split > .s-feature__name { flex: 1 1 220px; }
.s-feature .o-grid { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.s-feature .o-pill { white-space: normal; line-height: 1.2; }
.s-spec { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--surface-2); }
.s-spec__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.15; }
.s-spec-table { border-radius: var(--radius-field); }
.s-spec-table .o-table { font-size: 13px; }
.s-spec-table .o-table th, .s-spec-table .o-table td { padding: 8px 10px; }

/* Two ways in: the guide and the app, side by side. */
.s-way { flex-wrap: nowrap; align-items: center; gap: 22px; padding: 22px; }
.s-way__art { flex: none; display: block; }
.s-way__art img { display: block; }
.s-way__parts { margin: 0; }
.s-way .o-h2 { font-size: 22px; overflow-wrap: normal; }
.s-way__words { min-width: 0; }

/* ---- the email form ------------------------------------------------------ */

.s-signup { align-items: flex-end; }
.s-signup .o-field { flex: 1 1 220px; }
.s-signup__note { flex-basis: 100%; }
.s-signup-card { padding: 22px 24px; }
.s-signup-card__words { flex: 1 1 320px; min-width: 0; }
.s-signup-card .s-signup { flex: 1 1 380px; }
.o-btn:disabled { cursor: not-allowed; }

/* ---- cards that are links ------------------------------------------------ */

.s-next img { display: block; flex: none; }
.o-root a.s-next:hover { background: var(--surface-2); color: var(--ink); }
.o-root a.s-next { flex-wrap: nowrap; gap: 18px; text-decoration: none; }

/* ---- a step or a page ---------------------------------------------------- */

.s-piece-head { max-width: 1120px; margin: 0 auto; padding: 48px 32px 40px; align-items: center; }
.s-piece-title { font-size: clamp(34px, 5.6cqw, 54px); }
.s-piece-planet { flex: 0 0 220px; display: block; }
.s-reading { padding-top: 44px; }
.s-reading .o-prose { margin: 0 auto; text-wrap: pretty; }
.s-question { font-size: 22px; color: var(--ink); }
.s-after { padding-top: 0; }

/* Long reading: the parts of a step or a page the look has no rule for yet. */
.o-prose h3 { margin: 1.6em 0 0.4em; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.o-prose ul, .o-prose ol { padding-left: 1.3em; }
.o-prose li { margin: 0 0 0.45em; }
.o-prose li::marker { color: var(--label); }
.o-prose li > p { margin: 0 0 0.45em; }
.o-prose blockquote { padding-left: 20px; border-left: var(--stroke) solid var(--ink); color: var(--ink-2); }
.o-prose blockquote > :last-child { margin-bottom: 0; }
.o-prose hr { height: 0; border: 0; border-top: var(--stroke) solid var(--ink); margin: 2em 0; }
.o-prose img { display: block; height: auto; border: var(--stroke) solid var(--ink); border-radius: var(--radius-field); }
.o-prose :not(pre) > code, .s-copy :not(pre) > code, .o-table code { font-family: var(--font-mono); font-size: 0.82em; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.o-prose sup { line-height: 0; font-family: var(--font-mono); font-size: 0.68em; }
.o-prose sup a { text-decoration: none; color: var(--label); padding: 0 2px; }
.o-prose .footnotes { margin-top: 2.4em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.o-prose .footnotes hr { margin: 0 0 1.2em; }
.o-prose .o-table-wrap { font-size: 15px; }

/* ---- the guide ----------------------------------------------------------- */

.s-guide { max-width: 760px; }
.s-guide__title { font-size: clamp(36px, 6cqw, 60px); }
.s-guide__parts { margin: 0; }
.o-root .s-guide__parts a { color: inherit; text-decoration: none; }
.s-part { gap: 20px; scroll-margin-top: 24px; }

/* The steps of a part, as cards. Each is a picture of the screen, then its number and name. */
.s-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.s-steps > li { display: flex; min-width: 0; }
.s-step { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 14px 14px 18px; }
.o-root a.s-step { text-decoration: none; }
.o-root a.s-step:hover { background: var(--surface-2); color: var(--ink); }
/* The drawing on a card: the step's icon, alone and large, with the step's number in the corner. */
.s-step__art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-field); background: var(--surface-2); }
.s-step__icon { display: block; width: auto; height: 74%; }
.s-step__n { position: absolute; right: 12px; top: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1; color: var(--label); }
.o-root a.s-step:hover .s-step__art { background: var(--ground); }
.s-step__words { padding: 0 4px; min-width: 0; }

/* The button that starts the guide: larger, with a play mark, since it plays the steps one at a time. */
.o-root .s-play { gap: 12px; padding: 16px 28px 16px 22px; font-size: 18px; }
.s-play svg, .s-player__next svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.s-play__note { margin: 0; align-self: center; }

/* The bar under a step. It stays at the foot of the window: the way back, where you are, and next. */
.s-player { position: sticky; bottom: 0; z-index: 5; margin-top: 48px; border-top: var(--stroke) solid var(--ink); background: var(--ground); }
.s-player__in { display: flex; align-items: center; gap: 18px; max-width: 1120px; margin: 0 auto; padding: 12px 32px; }
.s-player__back { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--ink); }
.s-player__back svg { width: 20px; height: 20px; fill: currentColor; }
.o-root .s-player__back:hover { background: var(--surface-2); color: var(--ink); }
.s-player__where { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-player__where .o-kicker { margin: 0; }
.s-player__track { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.s-player__track li { flex: 1 1 0; min-width: 0; }
.s-player__track a { display: block; padding: 9px 0; }
.s-player__track a::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); }
.s-player__track a.done::before { background: var(--ink); }
.s-player__track a.now::before { background: var(--lead); box-shadow: 0 0 0 1.5px var(--ink); }
.s-player__track a:hover::before { background: var(--ink-2); }
.o-root .s-player__next { flex: none; gap: 10px; max-width: 46%; }
.s-player__next > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-main > .s-player:last-child { margin-bottom: 0; }

/* On a step's own page: the screen it is about, wider than the words, and the line that says it is done. */
.s-shot.s-step-shot { max-width: 920px; margin: 36px auto 0; }
.o-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* A part of a step that folds away, for something only some readers need. */
.o-prose details { padding: 14px 18px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-field); background: var(--surface); }
.o-prose details > summary { cursor: pointer; font-weight: 700; }
.o-prose details[open] > summary { margin-bottom: 0.9em; }
.o-prose details > :last-child { margin-bottom: 0; }
.s-done { flex-wrap: nowrap; align-items: flex-start; gap: 14px; max-width: 66ch; margin: 28px auto 0; padding: 18px 20px; }
.s-done p { margin: 0; gap: 4px; min-width: 0; }
.s-done__line { font-size: 18px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }

/* ---- the app's page ------------------------------------------------------ */

/* One plain column, and a card beside it that stays in view. */
.s-product { display: grid; grid-template-columns: minmax(0, 700px) 300px; justify-content: space-between; align-items: start; gap: 44px 56px; padding-top: 48px; }
.s-product__main { gap: 56px; min-width: 0; }
.s-product__side { position: sticky; top: 24px; }
.s-product__title { font-size: clamp(44px, 7cqw, 72px); }
.s-product__version { vertical-align: top; margin-left: 4px; letter-spacing: 0; }
.s-product__tagline { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.9cqw, 30px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.s-product__intro { max-width: none; font-size: 20px; }

.s-copy { gap: 14px; }
.s-copy p, .s-holds li { margin: 0; font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.s-copy p.o-small { font-size: 13.5px; line-height: 1.4; }
.s-copy p.o-note { font-size: 16px; }
.s-copy .o-code .dim { user-select: none; }
.s-holds { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 1.1em; }
.s-holds li::marker { color: var(--label); }
.s-questions h3 { margin: 16px 0 0; font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.3; }
.s-questions h3 + p { margin-top: -8px; }

.s-steps { gap: 30px; }
.s-step { gap: 14px; }
.s-step h3 .o-kicker { margin-right: 6px; }
.s-shot { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.s-shot img { display: block; width: 100%; height: auto; border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--ground); }
.s-shot figcaption, .s-shot__words { text-align: center; text-wrap: balance; }
.s-chat { padding: 18px; }
.s-agent { margin-top: 8px; }

.s-free { gap: 14px; padding: 18px; }
.s-free__top { flex-wrap: nowrap; }
.s-free__name { flex-wrap: nowrap; gap: 10px; }
.s-free__name img { display: block; flex: none; }
.s-free__list > li { display: block; padding: 9px 0; font-size: 15px; }
.o-root a.s-free__button { width: 100%; min-height: 52px; font-size: 17px; }
.s-free__note { margin-top: 16px; text-align: center; }

/* ---- small pages: thanks, not found -------------------------------------- */

.s-plain { padding-top: 64px; padding-bottom: 64px; }

/* ---- footer -------------------------------------------------------------- */

.s-foot { max-width: 1120px; margin: 0 auto; padding: 0 32px 56px; }
.s-foot__in { padding-top: 20px; border-top: 1.5px solid var(--ink); gap: 8px 24px; }
.s-foot__nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.s-foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.s-main > .o-page:last-child { padding-bottom: 56px; }
.s-main > .s-after:last-child { padding-bottom: 24px; }

/* ---- not quite wide: the app's card moves under its headline ------------- */

@container (max-width: 940px) {
  .s-product { display: flex; flex-direction: column; align-items: stretch; gap: 44px; }
  .s-product__main { display: contents; }
  .s-product__main > * { order: 3; }
  .s-product__main > header { order: 1; }
  .s-product__side { order: 2; position: static; }
}

/* ---- the app on three screens ------------------------------------------------
   The same queue on a desktop, an Android phone and an iPhone, each turned a
   little, like the cards under the open one in the queue. Drawn in the look's
   chocolate. Sizes follow the width of the figure, and inside each device its
   own width. */

.s-devices { margin: 0; container-type: inline-size; }
.s-devices__in { position: relative; padding-bottom: 7cqw; }
.s-devices img { display: block; width: 100%; height: auto; }

.s-desk { width: 74cqw; margin: 0 auto; transform: rotate(-1.2deg); container-type: inline-size; overflow: hidden; border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-hard); }
.s-desk__bar { display: flex; align-items: center; gap: 1cqw; height: 4.4cqw; padding: 0 2.2cqw; border-bottom: var(--stroke) solid var(--line); }
.s-desk__dot { width: 1.3cqw; height: 1.3cqw; border: var(--stroke) solid var(--line); border-radius: 50%; }
.s-desk__address { flex: 0 1 40cqw; height: 2.2cqw; margin: 0 auto; border-radius: var(--radius-pill); background: var(--surface-2); }

.s-phone { position: absolute; bottom: 0; width: 17cqw; container-type: inline-size; }
.s-phone--android { left: 9cqw; transform: rotate(-3deg); }
.s-phone--iphone { right: 9cqw; transform: rotate(2.5deg); }
.s-phone__body { background: var(--ink); }
.s-phone__screen { position: relative; overflow: hidden; background: var(--ground); }
.s-phone__status { display: flex; align-items: center; justify-content: space-between; padding: 0 8cqw; color: var(--ink); font: 600 4.2cqw/1 var(--font-body); }
.s-phone__battery { position: relative; width: 6.4cqw; height: 3cqw; border: 0.45cqw solid var(--ink); border-radius: 0.9cqw; }
.s-phone__battery::after { content: ""; position: absolute; inset: 0.45cqw 1.6cqw 0.45cqw 0.45cqw; border-radius: 0.3cqw; background: var(--ink); }
.s-phone__camera { position: absolute; left: 50%; background: var(--ink); }

.s-phone--iphone .s-phone__body { padding: 3.4cqw; border-radius: 15cqw; }
.s-phone--iphone .s-phone__screen { border-radius: 11.8cqw; }
.s-phone--iphone .s-phone__status { aspect-ratio: 393 / 54; }
.s-phone--iphone .s-phone__camera { top: 3.1cqw; width: 30cqw; height: 8.6cqw; margin-left: -15cqw; border-radius: var(--radius-pill); }

.s-phone--android .s-phone__body { padding: 2.6cqw; border-radius: 9cqw; }
.s-phone--android .s-phone__screen { border-radius: 6.6cqw; }
.s-phone--android .s-phone__status { aspect-ratio: 412 / 32; padding: 0 6cqw; font-size: 3.6cqw; }
.s-phone--android .s-phone__camera { top: 1.9cqw; width: 4cqw; height: 4cqw; margin-left: -2cqw; border-radius: 50%; }

/* Narrow: the desktop nearly the whole width, a phone over each of its lower corners. */
@container (max-width: 560px) {
  .s-devices__in { padding-bottom: 60cqw; }
  .s-desk { width: 96cqw; }
  .s-phone { width: 40cqw; }
  .s-phone--android { left: 7cqw; }
  .s-phone--iphone { right: 7cqw; }
}

/* ---- a phone: the name and the two ways in tighter, as in the app's own bar, so
   they share the first line ------------------------------------------------- */

@container (max-width: 560px) {
  .o-root .s-bar { gap: 12px 8px; padding-left: 16px; padding-right: 16px; }
  .s-bar .o-wordmark--sm { font-size: 19px; gap: 6px; }
  .s-bar .o-wordmark--sm svg { width: 20px; height: 20px; }
  .o-root a.s-pair__go { padding: 0 10px; font-size: 14px; }
}

/* ---- narrow: a phone, or any place 760px wide or less -------------------- */

@container (max-width: 760px) {
  /* The name and the button share the first line. The links take the second. */
  .s-bar .s-nav { order: 3; flex-basis: 100%; gap: 0 18px; }
  .s-stage { min-height: max(560px, calc(100svh - 134px)); }
  .s-stage__in { padding: 32px 18px 0; }
  .s-stage__words { padding-bottom: 28px; }
  .s-film { gap: 14px; padding: 36px 18px 0; }
  .s-film__note { font-size: 13px; line-height: 1.35; }
  .s-film__play svg { width: 28px; height: 28px; }
  .s-sections { gap: 44px; padding-top: 36px; }
  .s-product { padding-top: 36px; }
  .s-piece-head { padding: 32px 18px 28px; }
  .s-piece-planet { flex-basis: 132px; width: 132px; height: 132px; }
  .s-reading { padding-top: 32px; }
  .s-question { font-size: 20px; }
  .s-way { flex-wrap: wrap; }
  .s-copy p, .s-holds li, .s-product__intro { font-size: 18px; }
  .s-foot { padding: 0 18px 40px; }
  .s-main > .o-page:last-child { padding-bottom: 40px; }
  .s-signup-card { padding: 18px; }
  .s-plain { padding-top: 40px; padding-bottom: 40px; }
}

/* Before and after, where the two cards no longer fit side by side: one above the other. */
@container (max-width: 760px) {
  .s-player__in { gap: 10px; padding: 10px 18px; }
  .s-player__title, .s-player__all { display: none; }
  .s-player__next { padding-left: 16px; padding-right: 20px; }
  .s-wwh { padding-top: 40px; }
  .s-wwh__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 26px 0; }
  .s-wwh__label { margin: 0; }
  .s-wwh__note { padding-left: 0; }
  .s-versus { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s-versus__vs { justify-self: center; }
  .s-side--was { padding: 18px; }
  .s-side--now { padding: 22px 20px 20px; }
  .s-side--now .s-side__line { font-size: 17px; }
}

/* A phone: Syne is wide, so a title steps down until its longest word fits the line. */
@container (max-width: 414px) {
  .s-piece-title { font-size: clamp(24px, 8.2cqw, 34px); }
}

/* ---- on paper ------------------------------------------------------------ */

@media print {
  .o-bar, .s-skip, .s-after, .s-signup, .s-foot__nav, .s-product__side, .s-player { display: none; }
  .s-piece-head { padding-top: 0; }
}

/* ---- How agents work: one run, the ladder, and how they connect -------------------- */
.s-how { display: flex; flex-direction: column; gap: 8px; margin: 1.4em 0 1.8em; font-size: 15px; line-height: 1.45; }
.o-prose .s-how p { margin: 0; }
.s-how__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.s-how__starts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.s-how__or { align-self: center; font-family: var(--font-mono); font-size: 12px; color: var(--quiet); }
.s-how__down { display: flex; flex-direction: column; align-items: center; font-size: 20px; line-height: 1; }
.s-how__down span { margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--quiet); }
.s-how__step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.s-how__n, .s-how__arrow { display: grid; place-items: center; width: 36px; height: 36px; border: var(--stroke) solid var(--ink); border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.s-how__n { background: var(--lead); color: var(--on-lead); }
.s-how__chips, .s-how__loop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s-how__hop { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.s-how .o-pill { white-space: normal; line-height: 1.2; }
.s-how__ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.s-how__ladder > :nth-child(1) { margin-top: 72px; }
.s-how__ladder > :nth-child(2) { margin-top: 48px; }
.s-how__ladder > :nth-child(3) { margin-top: 24px; }
.s-how__ladder .o-card { padding: 14px; }
.s-how__moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
@media (max-width: 620px) {
  .s-how__starts, .s-how__moves { grid-template-columns: minmax(0, 1fr); }
  .s-how__or { justify-self: center; }
  .s-how__ladder { display: flex; flex-direction: column-reverse; }
  .s-how__ladder > :nth-child(n) { margin-top: 0; }
  .s-how__hop { white-space: normal; }
}
