/* /sales (B2), on the chapter shell (base.css, chapter.css). Five pages: hero, price, send, watch, and the end page (close: CP10, layout in chapter.css).
   DESIGN-SPEC 5.2: one large scene per page ([data-scene]), nothing under 12 px, card title 20 / body 15 / meta 13,
   the orb on the hero window and the end page only. Transform and opacity only. Reference 1440x900 times --k; phone 390x844. */

/* ---------- the line under a chapter headline (chapter.css sets h1 and h2; it does not set .sub yet) */
.chapter .sub { font-size: calc(17px * var(--k)); line-height: 1.45; margin-top: calc(14px * var(--k)); color: var(--t3); }
.phone .chapter .sub { font-size: 16px; margin-top: 10px; }

/* ---------- shared pieces */
ol { list-style: none; }
.sc { position: relative; background: var(--sheet); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.s-top { left: calc(88px * var(--k)); top: calc(112px * var(--k)); width: calc(900px * var(--k)); }
[data-scene] { position: absolute; }
.kind { font-size: 13px; }
.ki2 { width: 15px; height: 15px; fill: none; stroke: var(--t2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.rcpt { display: flex; align-items: baseline; gap: 12px; }
.rcpt span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rcpt b { font-size: 15px; font-weight: 500; color: var(--t1); }
.rcpt small, .rcpt time { font-size: 13px; color: var(--t3); }
.b-in { opacity: 0; transform: translateY(calc(24px * var(--k))); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.b-in.in { opacity: 1; transform: none; }
.b-fade { opacity: 0; transition: opacity .6s var(--ease); }
.b-fade.in { opacity: 1; }
.layer.fin .b-in, .layer.fin .b-fade, .reduced .b-in, .reduced .b-fade { transition: none; }
.k { font-size: 14px; }
.chapter .demo { font-size: 12px; }

/* ================= S1 hero B (default): the list in the app window; the camera close on row 1, then the whole table */
.copy.s-hero { left: calc(88px * var(--k)); top: 30%; width: min(calc(470px * var(--k)), calc(100% - 928px * var(--k) - 24px - var(--s1x))); }   /* G3: the copy stays 24 px left of the window (1024x768) */
:root { --s1x: max(0px, (1200px - 100vw) * .07); }   /* under 1200 px wide the window steps left a little, so the orb above it keeps 60 px from the rail */
.s1b { left: calc(100% - 840px * var(--k) - var(--s1x)); width: calc(780px * var(--k)); top: calc(50% - 228px * var(--k) + 6px); }   /* CP4: 22k lower, so the orb above it clears the masthead by 40 */
.s1b-win { position: relative; height: calc(436px * var(--k)); border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.s1b-bar { height: calc(44px * var(--k)); display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--t2); }
.s1b-bar i { width: 11px; height: 11px; border-radius: 50%; background: #24232C; }
.s1b-bar span { margin-left: 10px; font-weight: 500; color: var(--t1); }
.s1b-bar em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--t3); }
.s1b-view { position: absolute; left: 0; right: 0; top: calc(44px * var(--k)); bottom: 0; overflow: hidden; }
.s1b-cam { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; transform: translate(0, calc(66px * var(--k))) scale(2.1); }
.layer.b-cam .s1b-cam { transform: translate(calc(-858px * var(--k)), calc(66px * var(--k))) scale(2.1); transition: transform 1.1s cubic-bezier(.45, 0, .55, 1); }
.layer.b-pull .s1b-cam { transform: none; transition: transform .9s cubic-bezier(.3, 0, .2, 1); }
.br { display: grid; grid-template-columns: 1.25fr 1fr 1.35fr .55fr 1.05fr; gap: 14px; align-items: center; height: calc(44px * var(--k)); padding: 0 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--t2); white-space: nowrap; }
.br > span { overflow: hidden; text-overflow: ellipsis; }
.br .c0 { color: var(--t1); font-weight: 500; }
.br .tk { width: 15px; height: 15px; fill: none; stroke: var(--t1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.br .no, .br .nf { color: var(--t3); }   /* R44 */
.br-h { border-top: 0; height: calc(40px * var(--k)); font-size: 12px; font-weight: 500; color: var(--t3); }
/* row 1 fills behind the read bar while the camera follows it; rows 2 to 8 arrive in a wave after the pull back */
.br1 > span:not(.c0) { opacity: 0; transition: opacity .25s var(--ease); }
.layer.b-cam .br1 > span { opacity: 1; }
.layer.b-cam .br1 .c1 { transition-delay: .12s; } .layer.b-cam .br1 .c2 { transition-delay: .38s; } .layer.b-cam .br1 .c3 { transition-delay: .66s; } .layer.b-cam .br1 .c4 { transition-delay: .9s; }
.br:not(.br1):not(.br-h) { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.layer.b-wave .br:not(.br1):not(.br-h) { opacity: 1; transform: none; transition-delay: calc((var(--i) - 1) * 210ms); }
.s1b-read { position: absolute; left: 14px; top: calc(81px * var(--k)); width: 60px; height: 3px; border-radius: 2px; background: var(--plum); opacity: 0; }
.layer.b-cam .s1b-read { animation: s1bread 1.1s cubic-bezier(.45, 0, .55, 1) 1 both; }
@keyframes s1bread { 0% { opacity: 0; transform: none; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(700px * var(--k))); } }
.layer.fin .s1b-read { animation: none; opacity: 0; }
.layer.fin .s1b-cam, .layer.fin .br, .layer.fin .br > span { transition: none !important; }
.s1b-count { margin-top: 16px; font-size: 15px; color: var(--t2); }
.s1b-label { margin-top: 8px; }

/* ================= S2 price: the Quote card, 600 px, centred */
.s3 { left: calc(50% - 320px * var(--k)); width: calc(640px * var(--k)); top: calc(226px * var(--k)); }
.s3-card { padding: 22px 26px 18px; display: flex; flex-direction: column; gap: calc(12px * var(--k)); }
.s3-pill { position: relative; height: 24px; min-width: 90px; font-size: 13px; font-weight: 500; }
.s3-pill span { position: absolute; right: 0; top: 0; height: 24px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; background: #1C1B23; color: var(--t2); opacity: 0; transition: opacity .3s var(--ease); white-space: nowrap; }
.layer.b-paid .s3-pill .p1 { opacity: 1; }
.layer.b-work .s3-pill .p1 { opacity: 0; }
.layer.b-work .s3-pill .p2 { opacity: 1; }
.s3-for { font-size: 13px; color: var(--t3); }
.s3-t { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--t2); font-variant-numeric: tabular-nums; }
.s3-t th { font-size: 13px; font-weight: 400; color: var(--t3); text-align: left; padding: 0 12px 7px 0; }
.s3-t td { text-align: left; padding: calc(9px * var(--k)) 12px calc(9px * var(--k)) 0; border-top: 1px solid var(--line); }
.s3-t th:last-child, .s3-t td:last-child { text-align: right; padding-right: 0; }
.s3-t tfoot td { color: var(--t1); font-weight: 500; }
.s3-line { font-size: 15px; color: var(--t2); }
.s3-foot { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 10px; background: #1A1920; font-size: 13px; color: var(--t3); }
.s3-foot .t2 { color: var(--t2); }
.s3-lines { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.s3-lines div { display: flex; justify-content: space-between; } .s3-lines dt { color: var(--t3); } .s3-lines dd { color: var(--t1); font-variant-numeric: tabular-nums; }
/* CP5 (R40): the total row is there from the start at $0.00; each row lands, sends its figure into the total, and only then the next
   row lands. The plan line, the footer, the balance rows and the three keys come once the total reads $70.00 */
.qr { opacity: 0; transition: opacity .3s var(--ease); }
.layer.b-card .qr.up, .qr.on, .layer.b-rest .qr { opacity: 1; }
.s3-keys { opacity: 0; transition: opacity .3s var(--ease); }
.layer.b-rest .s3-keys { opacity: 1; }
.layer.fin .qr, .layer.fin .s3-keys { transition: none; }
.s3-label { margin-top: 12px; }

/* ================= S3 send: one whole draft, four people opening in turn; the Launch card */
.s4 { left: calc(50% - 520px * var(--k)); width: calc(1040px * var(--k)); top: calc(250px * var(--k)); display: grid; grid-template-columns: calc(560px * var(--k)) calc(440px * var(--k)); column-gap: calc(40px * var(--k)); align-items: center; }   /* CP4: the stack centred on the plan card's height */
.s4-draft { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.s4-to { font-size: 13px; color: var(--t3); display: flex; gap: 8px; align-items: baseline; }
.s4-to span { color: var(--t3); } .s4-to small { font-size: 13px; color: var(--t3); }
.s4-sub { font-size: 20px; font-weight: 500; color: var(--t1); letter-spacing: -0.01em; }
.s4-body { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--t2); }
.s4-body p { opacity: 0; transition: opacity .3s var(--ease); }
.layer.b-draft .s4-body p { opacity: 1; transition-delay: calc(.25s + var(--i) * 280ms); }
.layer.fin .s4-body p { transition: none; }
.s4-plan { padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 12px; }
.s4-line { font-size: 15px; line-height: 1.45; color: var(--t2); }
.s4-seq { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.s4-seq li { display: flex; justify-content: space-between; } .s4-seq b { font-weight: 500; color: var(--t2); } .s4-seq span { font-size: 13px; color: var(--t3); }
.s4-act { position: relative; display: flex; flex-direction: column; gap: 10px; }
.s4-act .keys { margin-top: 0; }
.s4-rcpt { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 8px));   /* CP3 S-3: centred in the action area */
  transition: opacity .42s var(--ease), transform .42s var(--ease); }
.layer.b-sent .s4-act > .keys, .layer.b-sent .s4-hold { opacity: 0; transform: none; transition: opacity .3s var(--ease); }
.layer.b-sent .s4-rcpt { opacity: 1; transform: translateY(-50%); transition-delay: .2s; }
.s4-label { grid-column: 2; margin-top: 12px; }
/* the hold key (Work A anatomy): the keys sink, never fill with colour */
.holdkey { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 9px 12px 12px; border-radius: 14px; background: rgba(9, 9, 13, .6); box-shadow: inset 0 0 0 1px var(--line); }
.kc2 { height: 36px; border-radius: 8px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 5px 8px; background: linear-gradient(#24232C, #1B1A21); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 3px 0 #0B0B10; color: var(--t2); transition: transform .12s var(--ease); }
.kc2 small { font-size: 12px; color: var(--t3); }
.kc2.opt { width: 60px; } .kc2.spc { width: 96px; }
.hk-l { font-size: 14px; color: var(--t2); }
.hk-l .touch { display: none; } .phone .hk-l .mac { display: none; } .phone .hk-l .touch { display: inline; }
.hk-fill { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 1px; background: rgba(237, 235, 240, .08); overflow: hidden; }
.hk-fill i { position: absolute; inset: 0; background: rgba(237, 235, 240, .6); transform: scaleX(0); transform-origin: 0 50%; }
.s4-hold.wait .kc2, .layer.b-hold .kc2 { transform: translateY(3px); }   /* the keys sink while the yes is held; the fill is the shell's (data-fill) */

/* ================= S4 watch: the list (720 px, rows 52), the reply, the CRM receipt, the partners row */
.s5 { left: calc(50% - 360px * var(--k)); width: calc(720px * var(--k)); top: calc(228px * var(--k)); }
.s5-list { padding: 4px 0; overflow: hidden; }
.s5-r { position: relative; height: calc(52px * var(--k)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-top: 1px solid var(--line); transition: transform .3s var(--ease), opacity .4s var(--ease); }
.s5-r:first-child { border-top: 0; }
.s5-r::before { content: ""; position: absolute; inset: 3px 6px; border-radius: 10px; background: rgba(142, 139, 151, .10); opacity: 0; transition: opacity .3s var(--ease); }
.s5-n { position: relative; display: flex; align-items: baseline; gap: 10px; }
.s5-n b { font-size: 15px; font-weight: 500; color: var(--t1); } .s5-n small { font-size: 13px; color: var(--t3); }
.s5-s { position: relative; font-size: 13px; color: var(--t3); text-align: right; white-space: nowrap; }
.s5-s span { display: block; transition: opacity .3s var(--ease); }
.s5-s .s5-b { position: absolute; right: 0; top: 0; opacity: 0; color: var(--t2); }
.layer.b-reply .tom::before { opacity: 1; }
.layer.b-reply .tom .s5-a, .layer.b-optout .out .s5-a { opacity: 0; }
.layer.b-reply .tom .s5-b, .layer.b-optout .out .s5-b { opacity: 1; }
.layer.b-optout .out { opacity: 0; transform: translateX(24px); transition: transform .4s var(--ease) .9s, opacity .4s var(--ease) .9s; }
.layer.b-optout .after { transform: translateY(calc(-52px * var(--k))); transition-delay: 1.3s; }
.layer.fin .s5-r, .layer.fin .s5-r > *, .layer.fin .s5-r > * > * { transition: none !important; }
.s5-rw { position: relative; margin: calc(16px - 52px * var(--k)) 0 0 auto; width: calc(460px * var(--k)); opacity: 0; transform: scale(.96); transform-origin: 100% var(--oy, -120px); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.s5-reply { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 10px; }
.layer.b-reply .s5-rw { opacity: 1; transform: none; }   /* CP4 S4 act: the card grows out of Tom's row (origin at its lower right) */
/* R23 (desktop): the card's place is 16 px under the five-row list; while the list still has six rows it waits one row lower,
   then rises with the outline as the "stop" row leaves (transform only), so it never covers a row */
html:not(.phone) .s5-rw { transform: translateY(calc(52px * var(--k))) scale(.96); }
html:not(.phone) .layer.b-reply .s5-rw { transform: translateY(calc(52px * var(--k))); }
html:not(.phone) .layer.b-optout .s5-rw { transform: none; transition: opacity .42s var(--ease), transform .3s var(--ease) 1.3s; }
html:not(.phone) .layer.fin .s5-rw { transition: none; }
.s5-rcpt { margin-top: calc(18px * var(--k)); opacity: 0; transition: opacity .5s var(--ease); }
.layer.b-rcpt .s5-rcpt { opacity: 1; }
.s5-partners { margin-top: calc(18px * var(--k)); }
.s5-label { margin-top: 6px; }

/* ================================================= phone (390x844; tablets zoom it) */
.phone .s-top { left: 20px; right: 20px; width: auto; top: 84px; }
.phone .copy.s-hero { left: 20px; right: 20px; width: auto; top: 84px; }
.phone .s1b { left: 16px; right: 16px; width: auto; top: 396px; }
.phone .s1b-win { height: 314px; }
.phone .s1b-bar { height: 40px; font-size: 13px; } .phone .s1b-view { top: 40px; } .phone .s1b-bar em { display: none; }
.phone .br { grid-template-columns: 1.15fr .5fr 1.25fr; height: 40px; padding: 0 14px; gap: 10px; font-size: 14px; }
.phone .br-h { height: 34px; font-size: 12px; }
.phone .br .c0, .phone .br .c2 { display: none; }
.phone .br:not(.br-h) .c1 { color: var(--t1); font-weight: 500; }
.phone .br1 > span.c1 { opacity: 1; }
.phone .s1b-cam { transform: translate(0, 40px) scale(1.8); }
.phone .layer.b-cam .s1b-cam { transform: translate(-286px, 40px) scale(1.8); }
.phone .layer.b-pull .s1b-cam { transform: none; }
.phone .s1b-read { top: 71px; }
.phone .s1b-count { font-size: 14px; margin-top: 12px; }
.phone .s3 { left: 16px; right: 16px; width: auto; top: 208px; }
.phone .s3-card { padding: 16px 18px 12px; gap: 10px; }
.phone .s3-t { font-size: 14px; } .phone .s3-t .dk { display: none; } .phone .s3-t td { padding: 7px 8px 7px 0; }
.phone .s3-line, .phone .s3-lines { font-size: 14px; }
.phone .s3-foot { font-size: 12px; }
.phone .s4 { left: 16px; right: 16px; width: auto; top: calc(var(--hb, 150px) + 24px); display: block; }   /* X7: 24 px under the headline */
.phone .s4-draft { padding: 16px 18px; gap: 6px; }
.phone .s4-sub { font-size: 17px; } .phone .s4-body { font-size: 14px; gap: 3px; } .phone .s4-body p:nth-child(2), .phone .s4-body p:nth-child(3) { display: none; }
.phone .s4-plan { padding: 16px 18px 14px; gap: 8px; }
.phone .s4-planw { margin-top: 40px; }   /* X7: 16 px under the lowest sheet (20 px below the top sheet) */
.phone .s4-plan .c-title { font-size: 17px; }
.phone .s4-line { font-size: 14px; }
.phone .s4-seq, .phone .s4-plan > p.s4-line:nth-of-type(3), .phone .s4-act > .keys { display: none; }
.phone .s4-rcpt { top: 10px; transform: translateY(8px); }
.phone .layer.b-sent .s4-rcpt { transform: none; }
.phone .s4-label { margin-top: 10px; }
.phone .s5 { left: 16px; right: 16px; width: auto; top: calc(var(--hb, 150px) + 24px); }   /* X7 */
.phone .s5-r { height: 48px; padding: 0 14px; }
.phone .s5-n { flex-direction: column; gap: 0; } .phone .s5-n b { font-size: 14px; } .phone .s5-n small { font-size: 12px; }
.phone .s5-s { font-size: 12px; }
.phone .s5-s .s5-b { white-space: normal; width: 150px; }
.phone .layer.b-optout .after { transform: translateY(-48px); }
.phone .s5-rw { margin: 16px 0 0; width: auto; }
.phone .s5-reply { padding: 14px 16px 10px; }
/* R23: on phones the list has no row under the "stop", so what follows it rises with the outline (transform only) and keeps 16 px under the list */
.phone .layer.b-optout .s5-rw, .phone .layer.b-optout .s5-rcpt, .phone .layer.b-optout .s5-label { transform: translateY(-48px); transition: opacity .42s var(--ease), transform .3s var(--ease) 1.3s; }
.phone .layer.fin.b-optout .s5-rw, .phone .layer.fin.b-optout .s5-rcpt, .phone .layer.fin.b-optout .s5-label { transition: none; }
.phone .layer.b-optout .s5-partners { transform: translateY(-48px); transition: opacity .42s var(--ease), transform .3s var(--ease) 1.3s; }
.phone .layer.fin.b-optout .s5-partners { transition: none; }
.phone .s5-reply .c-title { font-size: 17px; }
.phone .s5-rcpt { margin-top: 12px; } .phone .s5-rcpt b { font-size: 14px; }
.phone .s5-partners { margin-top: 10px; }
/* ================= S1 A (?hero=a only, kept as built for the review; it predates the 5.2 rules) */
.a-only { display: none; }
[data-hero="a"] .a-only { display: block; }
[data-hero="a"] .s1b { display: none; }
[data-hero="a"] .copy.s-hero { top: 31%; width: calc(600px * var(--k)); }
.well { width: 32px; height: 32px; border-radius: 50%; background: #1C1B23; display: grid; place-items: center; flex: none; }
.well svg { width: 16px; height: 16px; fill: none; stroke: var(--t2); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.s1-orb { --o: 280; left: 62%; top: 58%; z-index: 0; width: calc(var(--o) * 1px * var(--k) / .36); transform: translate(-50%, -50%); }
.s1-note { right: calc(28px * var(--k)); top: calc(92px * var(--k)); width: calc(360px * var(--k)); padding: 14px 14px 10px; z-index: 3; }
.s1-row { display: flex; gap: 12px; align-items: flex-start; }
.s1-kind { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.s1-body { margin-top: 4px; font-size: 14.5px; font-weight: 500; line-height: 1.38; }
.s1-note .keys { margin-top: 12px; padding-top: 10px; }
.s1-label { right: calc(28px * var(--k)); top: calc(92px * var(--k) + 182px); width: calc(360px * var(--k)); text-align: right; }
.s1a { position: absolute; inset: 0; z-index: 1; }
.s1a-mask { position: absolute; inset: 0; --mk: linear-gradient(to bottom, transparent 12%, #000 26%, #000 calc(58% - 150px * var(--k)), transparent calc(58% - 128px * var(--k))); -webkit-mask-image: var(--mk); mask-image: var(--mk); }
.s1a-cam { position: absolute; inset: 0; transform-origin: 62% 58%; transform: scale(1.18); transition: transform 1.5s cubic-bezier(.3, 0, .2, 1); }
.layer.b-zoom .s1a-cam { transform: none; }
.s1a-col { position: absolute; left: calc(62% - 180px * var(--k)); width: calc(360px * var(--k)); top: 0; transform: translateY(var(--y0, 100vh)); }
.layer.b-deal .s1a-col { transform: translateY(var(--y1, 0)); transition: transform 1.9s linear; }
.lr { height: calc(30px * var(--k)); display: grid; grid-template-columns: 1.25fr 1.3fr .8fr; gap: 10px; align-items: center; padding: 0 calc(24px * var(--k)) 0 10px; font-size: calc(13px * var(--k)); color: var(--t2); white-space: nowrap; border-top: 1px solid rgba(36, 35, 44, .7); opacity: .42; }
.lr span { overflow: hidden; text-overflow: ellipsis; }
.lr .lr-c { color: var(--t1); font-weight: 500; }
.lr .lr-t { text-align: right; color: var(--t3); }
.layer.b-deal .lr { animation: lrlit .3s linear calc(var(--lit) * 1ms) 1 both; }
@keyframes lrlit { 0% { opacity: .42; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: .42; } }
.layer.fin .lr, .reduced .lr { animation: none; }
.phone .s1-note { left: 16px; right: 16px; width: auto; top: 70px; }
.phone .s1-label { left: 16px; right: 16px; width: auto; top: 244px; text-align: left; }
.phone .s1-orb { left: 50%; top: 380px; width: calc(170px / .36); }
.phone .s1a { opacity: .4; }
.phone .s1a-cam { transform-origin: 50% 380px; }
.phone .s1a-col { left: calc(50% - 160px); width: 320px; }
.phone .lr { height: 26px; font-size: 12px; padding-right: 10px; }
.phone .s1a-mask { -webkit-mask-image: linear-gradient(to bottom, transparent 32%, #000 40%, #000 52%, transparent 60%); mask-image: linear-gradient(to bottom, transparent 32%, #000 40%, #000 52%, transparent 60%); }
.phone[data-hero="a"] .copy.s-hero { top: auto; bottom: 64px; }.s1-note, .s1-label { position: absolute; }
.phone[data-hero="a"] .copy.s-hero { width: auto; right: 20px; }

/* S4: the list's outline is two pre-drawn frames, six rows and five rows tall, cross-faded as the "stop" row leaves
   (Fable R15: opacity only, no height change) */
.s5-list { background: none; box-shadow: none; }
.s5-list::before, .s5-list::after { content: ""; position: absolute; left: 0; right: 0; top: 0; border-radius: 16px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); }
.s5-list::before { bottom: 0; }
.s5-list::after { height: calc(100% - 52px * var(--k)); opacity: 0; }
.phone .s5-list::after { height: calc(100% - 48px); }
.s5-r { z-index: 1; }
.layer.b-optout .s5-list::before { opacity: 0; transition: opacity .3s var(--ease) 1.3s; }
.layer.b-optout .s5-list::after { opacity: 1; transition: opacity .3s var(--ease) 1.3s; }
.layer.fin .s5-list::before, .layer.fin .s5-list::after { transition: none; }

/* ================= short phones (the 360x640 floor; any phone layout under 700 px tall). FX-B, G1: subtract, never cram.
   Type sizes stay; secondary rows step out so every page ends 16 px above the cue. Product strings and labels unchanged. */
@media (max-height: 700px) {
  .phone .copy.s-hero .ctas { margin-top: 16px; flex-wrap: nowrap; gap: 8px; }
  .phone .copy.s-hero .btn { height: 44px; padding: 0 14px; font-size: 14.5px; }
  .phone .s1b { top: 338px; }
  .phone .s1b-win { height: 176px; }
  .phone .s1b-bar { height: 36px; } .phone .s1b-view { top: 36px; }
  .phone .br { height: 36px; } .phone .br-h { height: 30px; }
  .phone [data-s1brows] > .br:nth-child(n+3):nth-child(-n+5) { display: none; }   /* CP3b: Tom, Clara and Grace, so "Not found · free" stays */
  .phone .s1b-read { top: 63px; }
  .phone .s1b-count { margin-top: 10px; }
  .phone .s1b-label { margin-top: 4px; }
  /* S2: the Quote card keeps its prices, the stop line and what is left; the "for" line, the plan line and two balance rows step out */
  .phone .s3 { top: 190px; }
  .phone .s3-for, .phone .s3-line, .phone .s3-lines > div:nth-child(-n+2), .phone .s3-t thead { display: none; }
  .phone .s3-card { gap: 8px; }
  .phone .s3-t td { padding: 6px 8px 6px 0; }
  .phone .s3-t tbody tr:first-child td { border-top: 0; }
  .phone .s3-foot { padding: 6px 12px; }
  .phone .s3-label { margin-top: 8px; }
  /* S3: the draft and the Launch card; the opening rows step out */
  .phone .s4-plan > .s4-line { display: none; }
  /* S4: three rows (Clara, Tom, the "stop"); the partners row steps out */
  .phone .s5-r:nth-child(3), .phone .s5-r:nth-child(4) { display: none; }
  /* CP3b: the partners row stays; the page's line steps out instead (receipt, partners, label) */
  .phone [data-layer="watch"] .copy .sub { display: none; }
  .phone .s5-rcpt { margin-top: 10px; }
}

/* ================= short desktops (1280x800, 1024x768, laptops): G2, the Price and Watch labels keep 16 px above the cue */
@media (max-height: 860px) {
  html:not(.phone) .s3-for { display: none; }
  html:not(.phone) .s3-label { margin-top: 8px; }
  html:not(.phone) .s5-rcpt, html:not(.phone) .s5-partners { margin-top: calc(12px * var(--k)); }
}

/* ================================================= CP4 (Fable 5.2, R25 to R32): each page its own act; the yes waits; one light, one raise */
/* S1 the list fills: the orb stands behind the list window as its backlight (R29, desktop): 200 px * k across, its centre on the
   window's top edge at 82% of its width; plum while the rows fill; a chalk rim on the edge under it */
.s1b-in { position: relative; z-index: 1; }
.s1b-lift { position: relative; border-radius: 14px; }
.s1b-orb { --os: calc(200px * var(--k) / .36); z-index: 0; width: var(--os); left: calc(82% - var(--os) / 2); top: calc(var(--os) / -2 - 6px * var(--k)); }   /* its centre on the raised window's top edge */
.s1b-orb .plum { position: absolute; inset: 24%; border-radius: 50%; opacity: 0; transition: opacity .5s var(--ease);
  background-image: radial-gradient(circle, rgba(169, 112, 182, .9) .8px, transparent 1.1px); background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(closest-side, transparent 70%, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, transparent 70%, #000 82%, transparent 100%); }
.layer.working .s1b-orb .plum { opacity: 1; }
.s1b-rim { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(237, 235, 240, 0) calc(82% - 260px), rgba(237, 235, 240, .5) 82%, rgba(237, 235, 240, 0) calc(82% + 260px)); }
.phone .s1b-orb, .phone .s1b-rim { display: none; }
/* Tom's row keeps the lit row fill S4 uses */
.br { position: relative; }
.br > * { position: relative; }
.br.lit::before { content: ""; position: absolute; inset: 3px 6px; border-radius: 10px; background: rgba(142, 139, 151, .10); opacity: 0; transition: opacity .3s var(--ease); }
.layer.b-cam .br.lit::before, .layer.fin .br.lit::before { opacity: 1; }

/* S2 the price adds up: copies travel into the total (transform only); its digits flip (60% rise and opacity, 180 ms, 30 ms apart) */
.s3-fly { position: absolute; z-index: 4; transform: none; translate: -100% 0; font-size: 15px; line-height: 1.2; color: var(--t2); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; transition: transform .4s linear; }
.s3-fly.go { animation: s3flyop .4s linear 1 both; }   /* X2: gone by half its path, so it never sits on a figure */
@keyframes s3flyop { 0%, 30% { opacity: 1; } 50%, 100% { opacity: 0; } }
.s3-t td[data-most] { transition: opacity .2s var(--ease); }
.s3-t td[data-most].lift { opacity: 0; transition: none; }   /* the figure lifts off as its copy leaves, and returns once the copy is clear */
.phone .s3-fly { font-size: 14px; }
.dg { display: inline-block; animation: s3dg .18s var(--ease) both; animation-delay: calc(var(--d) * 30ms); }
@keyframes s3dg { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
[data-total], [data-left] { font-variant-numeric: tabular-nums; }
/* before the yes, Set aside and Left after are ink-4; on the yes they light */
.s3-aside dt, .s3-aside dd, .s3-after dt, .s3-after dd { color: var(--t3); }   /* R44: quiet by ink-3 before the yes (was ink-4) */
.layer.b-paid .s3-aside dt, .layer.b-paid .s3-after dt { color: var(--t3); }
.layer.b-paid .s3-aside dd, .layer.b-paid .s3-after dd { color: var(--t1); }

/* S3 one draft, dealt to each person: a stack of three sheets (behind: +10 and +20 px, scale .96 and .92, darkened 25% and 45%);
   the top sheet tucks behind and comes back reading the next person; one sheen crosses it on the yes */
.s4-stack { position: relative; }
/* X6: the two sheets behind are drawn to be seen: #0E0D13 with a 1 px #2E2D38 line, each showing a 10 px strip under the one above */
.s4-back { position: absolute; inset: 0; border-radius: 16px; transform-origin: 50% 100%; background: #0E0D13; box-shadow: inset 0 0 0 1px #2E2D38; }
/* the scale steps (.96, .92 of the width) are drawn as insets, not transforms, so each 1 px line lands on a whole pixel */
.s4-back.b1 { z-index: 1; left: 2%; right: 2%; transform: translateY(10px); }
.s4-back.b2 { z-index: 0; left: 4%; right: 4%; transform: translateY(20px); }
/* X5 (R41): one way to say yes per card. Desktop: Launch carries the shell's fill; the boxed hold key is the phone's only yes */
html:not(.phone) .s4-hold { display: none; }
.s4-draft { position: relative; z-index: 2; overflow: hidden; transform-origin: 50% 100%; }
.s4-draft.tuck { animation: s4tuck .3s var(--ease) 1 both; }
@keyframes s4tuck { 0% { transform: none; opacity: 1; } 45%, 55% { transform: translateY(20px) scale(.92); opacity: 0; } 100% { transform: none; opacity: 1; } }
.s4-draft.part .s4-body p:not(:first-child) { visibility: hidden; }
.layer.fin .s4-draft { animation: none; }
.s4-sheen { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.s4-sheen::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; background: linear-gradient(100deg, rgba(237, 235, 240, 0), rgba(237, 235, 240, .07), rgba(237, 235, 240, 0)); transform: none; }
.layer.b-sheen .s4-sheen::before { transform: translateX(330%); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.layer.fin .s4-sheen::before { transition: none; transform: none; }
.s4-planw { position: relative; }
html:not(.phone) .s4 { min-height: calc(460px * var(--k)); }   /* the scene box keeps 460 * k with one yes key (the content is centred in it) */

/* S4 a row becomes a card: the four rows that do not act set their status in ink-4 */
/* R44: the rows that do not act keep ink-3 statuses; Tom's status is ink-1, so the one lit row still leads */
.tom .s5-s .s5-b { color: var(--t1); }

/* ================= R49 short desktop heights (html.short: 720 to 799 tall; html.shortz zooms the 720 design below that).
   Fable's drop order: repeated scene lines, then the sub-line, then rows past three. Never the headline, figure, yes key,
   receipt, demo label or partners row. Nothing here applies at 800 px and taller. */
/* S2: the plan line repeats what the table and the stop line say; then the table's head row */
html.short:not(.phone) .s3-line, html.short:not(.phone) .s3-t thead { display: none; }
html.short:not(.phone) .s3-t tbody tr:first-child td { border-top: 0; }
/* S4: rows past three. Sam and Nadia step out; Clara, Tom, the "stop" row and the row after it stay, so the list rests at three */
html.short:not(.phone) .s5-r:nth-child(3), html.short:not(.phone) .s5-r:nth-child(4) { display: none; }
/* S2, zoomed tier only (under 720 tall, where step 1 is not enough): step 2, the line under the headline steps out and the card
   rises into its place, so the label keeps 16 px over the cue */
html.shortz:not(.phone) [data-layer="price"] .copy .sub { display: none; }
html.shortz:not(.phone) .s3 { top: calc(176px * var(--k)); }
/* S1, short tiers: the masthead and rail are not zoomed while the stage is, so the window (and the orb behind it) steps 24 px down
   and 24 px left to keep R29's 40 px under the masthead and 60 px from the rail */
html.short:not(.phone) .s1b { top: calc(50% - 228px * var(--k) + 30px); left: calc(100% - 840px * var(--k) - var(--s1x) - 24px); }
/* R56 (C7-1): in the zoomed tier only, the draft's "To" takes ink-2 (ink-3 at 10 rendered px under-reads the 4.0 peak floor) */
html.shortz:not(.phone) .s4-to span { color: var(--t2); }
/* R71/R78: the Send receipt lies over the action area (centred, CP3 S-3) at opacity 0 until the yes; it must never take the click
   meant for Launch or the hold key. The hold key (a div) shows the pointer only while it waits, as the shell's keys do */
.s4-rcpt { pointer-events: none; }
.s4-hold.wait { cursor: pointer; }
