/* Diwy Split — the home page (on top of styles.css).
   Motion lives behind `.motion` on <html> (set in <head> when JS runs and neither reduced motion nor Save-Data is on);
   every rule here without it describes the finished, still page — the same one a reader without JS gets.
   The scroll-driven parts are steered by motion.js through custom properties: --e (an element entering the screen,
   0…1), --x (the NO lines' drift), --u / --s (a phone's / the story scene's scale) and inline styles on the scene. */

.section { padding-block: 0 128px; } .section.last { padding-bottom: 24px; }
.heading { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.chap b { font-weight: inherit; } .chap b::after { content: " / "; }
.soft { color: var(--muted); transition: color 0.6s; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }

/* ── reveals ─────────────────────────────────────────────────────────────── */
.motion [data-r] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion [data-r].in { opacity: 1; transform: none; }
/* headings rise word by word out of a mask (motion.js wraps each word in .w > span) */
.motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.motion [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.motion [data-split].in .w > span { transform: none; }

/* ── the iPhone: one drawing for every phone on the page ─────────────────── */
/* Drawn at its real size (415×874, a 393×852 screen) and scaled by --u: motion.js fits each one to the window
   (data-fit); the values here are the no-JS fallback. */
.iphone { --u: 0.7; position: relative; flex: none; width: calc(415px * var(--u)); height: calc(874px * var(--u)); }
.iphone > .ip { position: absolute; left: 0; top: 0; width: 415px; height: 874px; padding: 11px; border-radius: 68px; transform: scale(var(--u)); transform-origin: 0 0;
  /* a titanium rim (light catches the corners), then the black glass border round the screen (.scr's own shadow) */
  background: linear-gradient(135deg, #a7aab0 0%, #4b4e54 14%, #2c2e33 30%, #6a6d73 48%, #303237 66%, #4c4f55 84%, #9fa2a8 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), inset 0 0 2px 2px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(0,0,0,0.5), 0 60px 90px -36px rgba(29,38,43,0.45), 0 24px 40px -22px rgba(29,38,43,0.35); }
.ip::before, .ip::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #3b3d42, #8a8d93 50%, #3b3d42); }
.ip::before { left: -3px; top: 200px; height: 62px; box-shadow: 0 82px 0 #4a4c51, 0 -64px 0 -16px #4a4c51; }
.ip::after { right: -3px; top: 250px; height: 98px; }
.scr { position: relative; width: 393px; height: 852px; border-radius: 54px; overflow: hidden; background: #fff; display: flex; flex-direction: column; isolation: isolate; box-shadow: 0 0 0 7px #060607; }
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; z-index: 30; }
.home { position: absolute; left: 50%; bottom: 8px; width: 138px; height: 5px; margin-left: -69px; border-radius: 3px; background: #111; z-index: 30; }
.sb { flex: none; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 8px 30px 0 54px; font: 600 17px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -0.02em; color: #000; position: relative; z-index: 5; }
.sb span { display: flex; gap: 6px; align-items: center; } .sb svg { fill: currentColor; height: 12px; }
.sb svg:nth-child(1) { width: 18px; } .sb svg:nth-child(2) { width: 16px; } .sb svg:nth-child(3) { width: 27px; height: 13px; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-block: 8px 48px; min-height: calc(100svh - 84px); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--action); }
.hero h1 { font-size: clamp(40px, min(5.8vw, 10.5vh), 92px); line-height: 0.97; letter-spacing: -0.045em; }
.hero h1 .hi { color: var(--brand); }
.hero h1 .roll { display: grid; color: var(--muted); }
.roll > span { grid-area: 1 / 1; opacity: 0; } .roll > span:first-child { opacity: 1; }
.motion .roll > span { animation: roll 12s var(--ease) infinite; }
.motion .roll > span:nth-child(2) { animation-delay: 3s; } .motion .roll > span:nth-child(3) { animation-delay: 6s; } .motion .roll > span:nth-child(4) { animation-delay: 9s; }
@keyframes roll { 0% { opacity: 0; transform: translateY(0.4em); } 5% { opacity: 1; transform: none; } 22% { opacity: 1; transform: none; } 27% { opacity: 0; transform: translateY(-0.4em); } 100% { opacity: 0; transform: translateY(-0.4em); } }
.lead-short { display: none; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-note { font-size: 15px; color: var(--muted); }
.stage { position: relative; margin: 0; width: min(600px, 46vw); display: flex; justify-content: flex-end; align-items: center; padding: 30px 40px; isolation: isolate; }
/* the table the dinner happened at: the receipt lies on it, Anna's phone on the receipt (brag-output/loops/receipt.html) */
.stage .table { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 40%; border-radius: 36px; z-index: -1; box-shadow: 0 30px 60px -30px rgba(40,20,8,0.5); }
.friends { display: flex; } .friends .avatar { margin-left: -6px; border: 2px solid #fff; width: 26px; height: 26px; font-size: 11px; }
/* Telegram iOS, inside the phone: its header, wallpaper, bubbles, inline button and composer */
.tg { font-size: 16px; }
.tg-head { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 14px 8px; background: rgba(247,247,248,0.96); border-bottom: 1px solid #e3e4e8; }
.tg-head .back { display: flex; align-items: center; gap: 4px; color: #2481cc; font-size: 17px; }
.tg-head .back svg { width: 11px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tg-head .ttl { text-align: center; line-height: 1.2; } .tg-head strong { display: block; font-size: 17px; } .tg-head small { color: #8e8e93; font-size: 13px; }
.tg-head .gav { justify-self: end; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(135deg, #ffd2c4, #ffb39c); }
.tg-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px 10px 10px; display: flex; flex-direction: column; justify-content: flex-end; line-height: 1.3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' fill='none' stroke='%23597a57' stroke-opacity='0.13' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='28' cy='30' r='13'/%3E%3Cpath d='M98 14v26M92 14v10a6 6 0 0 0 12 0V14M64 92l18-30 18 30zM70 82h24M26 100l5 10 11 1-8 8 2 11-10-6-10 6 2-11-8-8 11-1zM120 104c0-6 8-6 8 0 0-6 8-6 8 0 0 6-8 11-8 13 0-2-8-7-8-13zM116 62h20M126 52v20'/%3E%3C/svg%3E") 0 0 / 150px 150px, linear-gradient(160deg, #dfecd2, #cfe3d6 45%, #d9e0ec); }
.tg-date { align-self: center; background: rgba(60,90,60,0.22); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 500; }
.row { display: flex; gap: 6px; align-items: flex-end; position: relative; flex: none; } .row.out { justify-content: flex-end; }
.bubble { background: #fff; border-radius: 18px; padding: 6px 12px 6px; max-width: 80%; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,0.06); }
.bubble.in { border-bottom-left-radius: 5px; } .bubble.out { background: #e1fec6; border-bottom-right-radius: 5px; }
.bubble .who { display: block; font-weight: 600; font-size: 15px; color: #925799; }
.bubble .time { display: block; text-align: right; font-size: 12px; color: #8a949c; margin-top: 1px; }
.bubble.out .time { color: #5fa04f; }
.bubble.photo { padding: 3px; width: 72%; }
.bubble.photo img { display: block; width: 100%; height: 270px; object-fit: cover; object-position: 50% 0; border-radius: 15px 15px 5px 5px; }
.bubble.photo .cap { display: block; padding: 5px 9px 2px; }
.mention { color: var(--action); }
.bav { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.bw { display: flex; flex-direction: column; gap: 4px; width: 80%; }
.bw .bubble { max-width: none; }
.bot { padding: 7px 12px 6px; }
.bot .who { color: var(--brand-deep); } .bot .who small { color: var(--muted); font-weight: 400; font-size: 14px; }
.quote { display: flex; flex-direction: column; border-left: 3px solid var(--action); background: #eaf4fb; border-radius: 6px; padding: 3px 8px; margin: 3px 0 6px; font-size: 14px; line-height: 1.3; }
.quote b { color: var(--action); font-weight: 600; }
.bot .totals { display: flex; flex-direction: column; margin: 6px 0; }
.bot .noyet { font-style: italic; color: var(--muted); font-size: 14px; margin: 4px 0 6px; }
.bot .unclaimed { font-weight: 600; font-size: 14px; border-left: 3px solid var(--action); background: #eaf4fb; border-radius: 6px; padding: 3px 8px; margin: 0 0 6px; }
.bot .settle { font-weight: 600; margin-top: 2px; }
/* the composer: the paperclip, the field with its sticker button, the mic (the field is empty; with text it would be send) */
.composer { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 12px 30px; background: #f7f7f8; border-top: 1px solid #e6e6ea; color: #8a949c; }
.composer svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.composer .cp-ico { flex: none; width: 27px; height: 27px; color: #858e99; }
.composer span { flex: 1; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #dfe1e5; border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 15px; color: #a1a8b0; }
.composer span svg { width: 22px; height: 22px; color: #9aa2ab; }
/* the bot's inline button: a plate of its own under the message, as Telegram draws an inline keyboard */
.kb { position: relative; text-align: center; padding: 9px; border-radius: 14px; background: rgba(48,78,58,0.42); color: #fff; font-weight: 600; font-size: 15px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bot .totals .new { animation: claim-in 1.2s ease both; border-radius: 4px; }
@keyframes claim-in { 0% { opacity: 0; transform: translateY(4px); background: #d7ecfa; } 25% { opacity: 1; transform: none; background: #d7ecfa; } 100% { background: transparent; } }
/* the messages: a stack anchored to the bottom; motion.js slides it so a new message pushes the chat up, as Telegram does */
.stack { display: flex; flex-direction: column; gap: 5px; transition: transform 0.45s var(--ease); will-change: transform; }
.sc-chat .stack { transition: none; }
.sc-chat .bubble.photo img { height: 330px; }
/* the reading: a copy of the chat's photo on its own card (on phones, Telegram's photo viewer over the screen). A line passes
   the printed lines in turn; each one it catches is boxed with a short pulse while the sum below runs up to the printed
   total; then the photo turns into clean rows and the card folds into the bot's message. motion.js sizes and moves it all;
   it exists only with motion — the still page shows the bill it turns into */
.rc { position: absolute; left: 440px; top: 140px; width: 300px; z-index: 14; opacity: 0; transform-origin: 0 0; pointer-events: none; }
html:not(.motion) .rc { display: none; }
/* the scene is scaled down; the card's content is scaled back up (--inv = 1 / the scene's scale) so it reads at real size */
.rc-in { transform-origin: 0 0; transform: scale(var(--inv, 1)); display: flex; flex-direction: column; }
.rc-body { position: relative; flex: none; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 26px 50px -18px rgba(29,38,43,0.35), 0 0 0 1px rgba(29,38,43,0.06); }
.rc-body > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
.rc-bx { position: absolute; inset: 0; }
.bx { position: absolute; border-radius: 6px; border: 1.5px solid var(--action); background: rgba(8,123,181,0.10); transform: scaleX(0) rotate(-0.8deg); transform-origin: 0 50%; opacity: 0; transition: opacity 0.12s, transform 0s 0.12s; }
.bx.hit { opacity: 1; transform: rotate(-0.8deg); transition: transform 0.18s var(--ease), opacity 0.08s; animation: bx-hit 0.7s ease-out both; }
.bx.tot.hit { border-color: #22804a; animation-name: bx-ok; }
@keyframes bx-hit { 0% { background: rgba(8,123,181,0.34); box-shadow: 0 0 16px 3px rgba(8,123,181,0.5); } 100% { background: rgba(8,123,181,0.07); box-shadow: none; border-color: rgba(8,123,181,0.45); } }
@keyframes bx-ok { 0% { background: rgba(34,128,74,0.34); box-shadow: 0 0 18px 4px rgba(34,128,74,0.5); } 100% { background: rgba(34,128,74,0.10); box-shadow: none; } }
.rc-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--action); box-shadow: 0 0 12px 3px rgba(8,123,181,0.35); opacity: 0; }
.rc-line.pulse { animation: line-pulse 0.25s ease-out; }
@keyframes line-pulse { 40% { box-shadow: 0 0 22px 7px rgba(8,123,181,0.6); background: #5cc0f2; } }
.rc-data { position: absolute; inset: 0; padding: 16px 16px 0; background: #fff; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; opacity: 0; }
.rc-data strong { font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.rc-data .r { display: grid; grid-template-columns: 1fr 20px 80px; align-items: baseline; padding-bottom: 6px; border-bottom: 1px solid #f0ece8; }
.rc-data .r i { font-style: normal; color: var(--muted); text-align: center; } .rc-data .r b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-data .sv { color: var(--muted); } .rc-data .tot { border-bottom: 0; font-weight: 700; font-size: 16px; padding-top: 2px; }
.rc-body.flash { animation: ok-flash 0.6s ease-out; }
@keyframes ok-flash { 0% { box-shadow: 0 0 0 0 rgba(34,128,74,0.55), 0 26px 50px -18px rgba(29,38,43,0.35); } 100% { box-shadow: 0 0 0 14px rgba(34,128,74,0), 0 26px 50px -18px rgba(29,38,43,0.35); } }
/* the footer: the running sum while the line reads, the check once it reaches the printed total */
.rc-foot { position: relative; height: 40px; margin-top: 10px; flex: none; font-weight: 600; font-size: 14.5px; }
.rc-sum, .rc-ok { position: absolute; inset: 0; display: flex; align-items: center; border-radius: 12px; padding: 0 14px; transition: opacity 0.2s; }
.rc-sum { justify-content: space-between; background: rgba(255,255,255,0.96); box-shadow: 0 6px 16px rgba(29,38,43,0.10); color: var(--ink); }
.rc-sum span { color: var(--muted); font-weight: 500; } .rc-sum b { font-variant-numeric: tabular-nums; } .rc-sum span b { color: var(--ink); }
.rc-ok { justify-content: center; background: #e3f5ea; color: #1f7a45; opacity: 0; }
.rc-foot.ok .rc-sum { opacity: 0; } .rc-foot.ok .rc-ok { opacity: 1; }
/* on phones: the photo viewer fills the screen under the status bar */
.rc.full .rc-in { padding-bottom: 30px; }
.rc-sb { display: none; } .rc.full .rc-sb { display: flex; position: absolute; left: 0; top: 0; width: 393px; transform-origin: 0 0; color: #fff; text-shadow: none; }
.rc.full .rc-body { flex: 1; border-radius: 0; background: transparent; box-shadow: none; }
.rc.full .rc-foot { margin: 10px 12px 0; }
.st-fly { position: absolute; z-index: 13; overflow: hidden; opacity: 0; pointer-events: none; }
.st-fly img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
html:not(.motion) .st-fly { display: none; }
.st-botrow .scanning { display: none; font-size: 15px; color: var(--muted); padding: 2px 0; }
.st-botrow.is-scan .scanning { display: block; } .st-botrow.is-scan .bill, .st-botrow.is-scan .kb { display: none; }
.st-botrow:not(.is-done) .totals, .st-botrow:not(.is-done) .settle, .st-botrow:not(.is-done) .ed, .st-botrow.is-done .noyet, .st-botrow.is-done .unclaimed { display: none; } /* the scene's chat is moved by the scroll itself */
.typing { display: none; gap: 4px; padding: 13px 14px; background: #fff; border-radius: 18px 18px 18px 5px; }
.typing-mode .bw { display: none; } .typing-mode .typing { display: inline-flex; }
.pop-in { animation: pop 0.45s var(--ease) both; transform-origin: left bottom; }
/* a photo while it is being sent: dimmed, with Telegram's ring */
.ph { position: relative; display: block; }
.up { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 15px 15px 5px 5px; background: rgba(0,0,0,0.28); opacity: 0; transition: opacity 0.3s; }
.up svg { width: 52px; height: 52px; transform: rotate(-90deg); fill: rgba(0,0,0,0.35); stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.sending .up { opacity: 1; } .sending .up svg { animation: upload 1s ease-out forwards; }
@keyframes upload { to { stroke-dashoffset: 6; } }

/* the chat plays out once on load: Mia → the receipt is tossed in → the bot types → the answer */
.motion .hero-copy > * { animation: rise 0.8s var(--ease) both; }
.motion .hero-copy > :nth-child(3) { animation-delay: 0.35s; } .motion .hero-copy > :nth-child(4) { animation-delay: 0.45s; } .motion .hero-copy > :nth-child(5) { animation-delay: 0.55s; }
.motion .hero h1 { animation: none; }
.motion .stage .table { animation: grow 1.1s var(--ease) both 0.05s; }
.motion .hero-phone { animation: phone-in 1.1s var(--ease) both 0.15s; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa4ab; animation: dot 0.9s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 100% { transform: none; opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* ── the story (how it works): one phone, four screens ───────────────────── */
.story { position: relative; z-index: 2; padding-block: 128px; } /* above the next section: the phone's shadow falls over the recorded loop's opaque frame */
.story-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.story-copy { display: flex; flex-direction: column; gap: 16px; }
.story-copy h2 { font-size: clamp(28px, min(3.6vw, 6.4vh), 52px); }
.story-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.story-steps li { position: relative; padding: 14px 0 16px; border-top: 1px solid var(--line); opacity: 0.32; transition: opacity 0.4s; }
.story-steps li.on { opacity: 1; }
.story-steps .num { font-family: var(--mono); font-size: 13px; color: var(--brand-deep); }
.story-steps h3 { margin: 4px 0 6px; }
.story-steps p { color: var(--muted); font-size: 15px; max-width: 46ch; }
.story-steps .bar { position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--f, 0) * 100%); background: var(--brand); }
/* the scene is drawn at 700×874 (on phones 415×1010, people under the phone) and scaled to its box by --s */
.st-stage { --s: 0.7; --bw: 700; --bh: 874; position: relative; height: calc(var(--bh) * 1px * var(--s)); }
.st-box { position: absolute; left: 50%; top: 0; width: calc(var(--bw) * 1px); height: calc(var(--bh) * 1px); transform: translateX(-50%) scale(var(--s)); transform-origin: top center; }
.st-phone { --u: 1; position: absolute; left: 0; top: 0; }
.sc { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; }
.sc-chat { opacity: 1; }
/* one status bar for the phone (.ph-sb, its colour set by motion.js); the screens start under it. Stacking: the camera is
   dismissed over the chat; the Mini App is an iOS sheet that rises under the status bar while the chat behind it shrinks
   and darkens on the phone's black. */
.st-phone .scr { background: #000; }
.st-phone .sc { padding-top: 54px; }
.ph-sb { position: absolute; left: 0; right: 0; top: 0; z-index: 22; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.ph-sb.on-light { color: #000; text-shadow: none; }
.sc-cam { z-index: 3; } .sc-chat { z-index: 1; background: #f7f7f8; transform-origin: 50% 0; }
.sc-chat::after { content: ''; position: absolute; inset: 0; z-index: 30; background: #000; opacity: var(--dk, 0); border-radius: inherit; pointer-events: none; } /* the chat behind the sheet darkens */
.st-phone .sc-app { z-index: 4; top: 60px; padding-top: 0; border-radius: 14px 14px 0 0; overflow: hidden; }
/* 1 · the camera: the scene opens on it; one shot and the frame flies into the chat (the reading is the service's, later) */
.sc-cam { background: #000; color: #fff; } .sc-cam .sb { color: #fff; }
.cam-top { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.cam-top svg, .flip svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cam-top svg:first-child { fill: #fff; stroke: none; }
.cam-view { position: relative; flex: none; height: 600px; overflow: hidden; }
.cam-view > img { position: absolute; left: 0; top: 0; width: 393px; height: 640px; }
.cam-ui { flex: none; height: 154px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 14px; font: 600 13px/1 -apple-system, system-ui, sans-serif; letter-spacing: 0.06em; }
.modes { display: flex; justify-content: center; gap: 24px; color: #fff; } .modes b { color: #ffd60a; font-weight: 600; }
.ctrl { display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.thumb { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; background: #222; }
.shutter { width: 70px; height: 70px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff; }
.flip { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; }
.st-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 10; }
/* 2 · the chat: the bot answers with the bill */
.sc-chat { background: #fff; }
.ring { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(255,255,255,0.55); opacity: 0; }
.kb.pressed { background: rgba(30,52,38,0.62); }
/* 3 · the app: stills of the real client; Telegram's Mini App bar on top */
.sc-app { background: #efeff4; }
.mabar { flex: none; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #fff; font: 16px -apple-system, system-ui, sans-serif; box-shadow: 0 1px 0 #e5e5ea; position: relative; z-index: 2; }
.mabar .cl { color: #2481cc; } .mabar .ti { text-align: center; font-weight: 600; font-size: 15px; line-height: 1.15; } .mabar .ti small { display: block; font-weight: 400; font-size: 11px; color: #8e8e93; } .mabar .dots { color: #8a949c; letter-spacing: 1px; }
.shots { position: relative; flex: 1; }
.shots img { position: absolute; left: 0; top: 0; width: 393px; height: 752px; opacity: 0; }
.shots img.on { opacity: 1; }
/* 4 · settled: the group's message arrives as an iOS notification from Telegram, over the dimmed app */
/* around the phone: the «read» sticker, the five friends and what is left to claim */
.st-side { position: absolute; left: 470px; top: 0; width: 230px; height: 874px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.st-left { align-self: flex-start; max-width: 230px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color 0.3s; font-weight: 600; font-size: 17px; padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(29,38,43,0.10); }
.st-left .t, .st-left b { display: none; }
.st-left .ok { color: #22804a; white-space: normal; line-height: 1.25; }
.st-left.u { color: var(--action); } .st-left.u .t, .st-left.u b { display: inline; } .st-left.u .ok { display: none; }
.st-ppl { display: flex; flex-direction: column; gap: 18px; }
.st-ppl .p { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; }
.st-ppl .avatar { grid-row: 1 / 3; width: 64px; height: 64px; font-size: 24px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(29,38,43,0.12); }
.st-ppl .n { font-weight: 600; font-size: 17px; align-self: end; }
.st-ppl b { font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; align-self: start; }
.st-prog { display: none; }
.tok { position: absolute; left: 0; top: 0; z-index: 15; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 12px 30px rgba(29,38,43,0.25); font-weight: 600; font-size: 18px; white-space: nowrap; opacity: 0; pointer-events: none; will-change: transform; }

.tok.amt { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; } /* a friend's number flying into the message */

/* pinned (motion.js adds .pin): the section is a scroll track and the scene stays on screen while it plays */
.story.pin { height: 340vh; padding: 0; } /* motion.js sets the real height: a floor for short windows, fixed per width on phones */
.story.pin .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow-x: clip; padding-top: 76px; padding-bottom: 16px; } /* clipped only sideways: the phone's shadow must not be cut where the pin ends */
.story.pin .story-grid { width: min(1240px, 100% - 80px); }
/* every step keeps its one line on screen (nothing collapses); the current one is lit */
@media (max-height: 780px) and (min-width: 1001px) { .story.pin .story-copy .chap { display: none; } .story.pin .story-copy h2 { font-size: clamp(24px, 4.6vh, 36px); } .story.pin .story-steps li { padding: 8px 0 9px; } .story.pin .story-steps h3 { font-size: 19px; margin: 2px 0 3px; } .story.pin .story-steps p { font-size: 13.5px; line-height: 1.4; } }

/* ── everyone at once: two phones, side by side ─────────────────────────── */
/* Ben (the tap) on the left, Anna (the update) on the right, read in that order; the page's own iPhone, equal size,
   Anna's a little lower so her pizza row sits level with Ben's tap. --u is fitted to the window by motion.js. */
.walk { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head pair" "copy pair"; column-gap: 64px; row-gap: 24px; align-items: end; }
.walk-head { grid-area: head; display: flex; flex-direction: column; gap: 18px; }
.walk-head h2 { font-size: clamp(32px, min(4.4vw, 7.4vh), 64px); }
.walk-copy { grid-area: copy; align-self: start; display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.sync { grid-area: pair; margin: 0; display: flex; gap: 32px; align-items: flex-start; --u: 0.55; }
.sync-p { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sync-p.p-anna { margin-top: 28px; }
.sync-p .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.sync-p .who .avatar { width: 28px; height: 28px; font-size: 13px; }
.sync .iphone { --u: inherit; }
.sync .scr { background: #efeff4; }
.sync .vp { position: relative; flex: 1; overflow: hidden; }
.sync video { display: block; width: 393px; height: 752px; object-fit: cover; }
.motion .sync { transform: translateY(calc((1 - var(--e, 1)) * 80px)); }
/* one column: the headline, then the two phones side by side (cause and effect on screen together), then the line */
@media (max-width: 1000px) {
  .walk { grid-template-columns: 1fr; grid-template-areas: "head" "pair" "copy"; row-gap: 28px; }
  .sync { justify-content: center; }
}
@media (max-width: 760px) { .sync { gap: 12px; } .sync-p.p-anna { margin-top: 18px; } .sync-p .who { font-size: 14px; } }

/* ── cases ───────────────────────────────────────────────────────────────── */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px 26px 26px; border-radius: 28px; background: var(--surface); }
.case:nth-child(2) { background: var(--action-soft); } .case:nth-child(3) { background: #eef5f1; }
.case .art { min-height: 190px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.case p { color: var(--muted); font-size: 15px; }
.case .fine { font-size: 13px; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 12px; }
.order { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 22px rgba(29,38,43,0.10); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; min-width: 104px; }
.order strong { font-family: var(--display); font-size: 20px; }
.neq { font-family: var(--display); font-size: 26px; color: var(--muted); align-self: center; }
/* a balance: the beam leans to the heavier order (still: the point is the two prices, not the swing) */
.art.scale { flex-direction: column; gap: 0; }
.beam { position: relative; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 6px; transform: rotate(6deg); }
.beam::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 0; height: 5px; border-radius: 3px; background: var(--ink); }
.beam .order { transform: rotate(-6deg); transform-origin: bottom center; }
.beam .neq { padding-bottom: 20px; }
.fulcrum { width: 0; height: 0; border: 16px solid transparent; border-bottom: 26px solid var(--ink); border-top: 0; margin-top: -2px; }
/* a pizza that comes apart into two halves, one for each */
.art.pizza { gap: 22px; }
.half { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.half svg { width: 66px; height: 132px; filter: drop-shadow(0 8px 14px rgba(29,38,43,0.16)); }
.half.l { transform: translateX(-4px) rotate(-6deg); } .half.r { transform: translateX(4px) rotate(6deg); }
.half .tag { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px 4px 4px; font-weight: 600; font-size: 13px; box-shadow: 0 6px 16px rgba(29,38,43,0.10); white-space: nowrap; }
.half .tag .avatar { width: 22px; height: 22px; font-size: 10px; }
.motion .vis .half.l { animation: half-l 4.5s var(--ease) infinite; } .motion .vis .half.r { animation: half-r 4.5s var(--ease) infinite; }
.motion .vis .half .tag { animation: tag 4.5s var(--ease) infinite; }
@keyframes half-l { 0%, 15% { transform: translateX(11px); } 35%, 85% { transform: translateX(-4px) rotate(-6deg); } 100% { transform: translateX(11px); } }
@keyframes half-r { 0%, 15% { transform: translateX(-11px); } 35%, 85% { transform: translateX(4px) rotate(6deg); } 100% { transform: translateX(-11px); } }
@keyframes tag { 0%, 25% { opacity: 0; transform: translateY(-8px); } 40%, 82% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-8px); } }
/* a receipt line that reads itself into English (motion.js scrambles between the two; still: both lists) */
.tr { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 22px rgba(29,38,43,0.10); width: 100%; max-width: 260px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.tr small { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.tr .l { display: flex; justify-content: space-between; gap: 10px; } .tr .l span { white-space: nowrap; overflow: hidden; } .tr .arrow { text-align: center; color: var(--action); padding: 2px 0; }
.tr-k span + span { display: none; }
.motion .tr-en { display: none; }
.motion .tr.en .tr-k span:first-child { display: none; } .motion .tr.en .tr-k span + span { display: inline; color: var(--action); }

/* ── the NO band, and the page turning coral ─────────────────────────────── */
.nos { padding-block: 40px 140px; overflow: hidden; }
.nos-row { font-family: var(--display); font-weight: 700; font-size: clamp(48px, min(9vw, 15vh), 150px); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; }
.nos-row span { display: inline-block; transform: translateX(var(--x, 0px)); will-change: transform; }
.nos-row + .nos-row { color: var(--brand); transition: color 0.6s; }
.nos-row i { font-style: normal; font-size: 0.8em; }
.nos-row[data-drift="-1"] span { margin-left: -12vw; } .nos-row[data-drift="1"] span { margin-left: -40vw; }
html.coral { --bg: var(--brand); --muted: #2b120c; --eyebrow: var(--ink); --line: rgba(29,38,43,0.2); }
.coral .soft, .coral .nos-row + .nos-row, .coral .final h2 span { color: #fff; }
.coral .page .btn { background: var(--ink); } .coral .page .btn:hover { background: #000; }
.coral .navlinks .cta { background: var(--ink); } .coral .navlinks .cta:hover { background: #000; }
.coral .faq-list .plus { color: #fff; }
.coral .faq a, .coral .about a, .coral .faq-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.coral .final { background: transparent; }

/* ── world ───────────────────────────────────────────────────────────────── */
.world { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.world article { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 28px; overflow: hidden; }
.world .langs { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.world .cur { background: var(--ink); color: #fff; } .world .cur p { color: #c7ced3; } .world .cur .kicker { color: #9aa6ad; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.hellos { margin-inline: -32px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hellos > div { display: flex; width: max-content; gap: 28px; padding-inline: 32px; font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1.1; letter-spacing: -0.03em; }
.hellos span:nth-child(3n+2) { color: var(--brand); } .hellos span:nth-child(3n) { color: var(--action); }
.motion .hellos > div { animation: marquee 26s linear infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--surface); border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 500; }
.cursyms { display: flex; gap: 22px; overflow: hidden; margin-right: -32px; padding-right: 32px; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.cursyms span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; color: #9aa6ad; flex: none; }
.cursyms b { font-family: var(--display); font-size: 34px; line-height: 1; color: #fff; }
.world p { font-size: 15px; } .langs p { color: var(--muted); }

/* ── accuracy: a misread line, caught ────────────────────────────────────── */
.accuracy { display: grid; grid-template-columns: 330px 1fr; gap: 56px; align-items: center; padding: 56px; border-radius: 32px; background: var(--ink); color: #fff; }
.accuracy .eyebrow { color: #ffb2a3; } .accuracy p { color: #c7ced3; }
.chk { position: relative; background: #fbf9f3; color: #2a2826; padding: 18px 18px 18px; font-family: var(--mono); font-size: 12.5px; transform: rotate(-3deg); box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
.chk-hd { text-align: center; border-bottom: 1.5px dashed #888; padding-bottom: 8px; margin-bottom: 8px; } .chk-hd strong { display: block; font-family: var(--display); letter-spacing: 0.16em; font-size: 17px; } .chk-hd span { font-size: 11px; color: #777; }
.chk .l { display: flex; justify-content: space-between; padding: 2px 6px; margin-inline: -6px; border-radius: 4px; }
.chk .l b { display: inline-grid; font-weight: 500; } .chk .l s, .chk .l ins { grid-area: 1 / 1; text-decoration: none; text-align: right; }
.chk .l s { opacity: 0; }
.chk .sum { margin-top: 6px; border-top: 1px dashed #aaa; padding-top: 6px; font-weight: 600; color: #22804a; }
.chk .verdict { display: grid; margin-top: 10px; font-family: var(--body); font-weight: 600; font-size: 13.5px; }
.chk .verdict span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; }
.chk .verdict .bad { background: #fde3dd; color: #b3331c; opacity: 0; } .chk .verdict .good { background: #ddf3e5; color: #22804a; }
.chk .verdict .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.motion .vis .chk .l s { animation: was 7s infinite; } .motion .vis .chk .l ins { animation: now 7s infinite; }
.motion .vis .chk .fix { animation: fixbg 7s infinite; } .motion .vis .chk .sum { animation: sumc 7s infinite; }
.motion .vis .chk .verdict .bad { animation: was 7s infinite; } .motion .vis .chk .verdict .good { animation: now 7s infinite; }
@keyframes was { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes now { 0%, 48% { opacity: 0; } 52%, 100% { opacity: 1; } }
@keyframes fixbg { 0%, 8% { background: transparent; } 14%, 46% { background: #fde3dd; } 54% { background: #c9efd6; } 70%, 100% { background: transparent; } }
@keyframes sumc { 0%, 48% { color: #b3331c; } 52%, 100% { color: #22804a; } }

/* ── about: the facts as a till receipt ──────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.about-copy p { color: var(--muted); }
.slip-wrap { position: relative; padding-top: 14px; }
.slip-wrap::before { content: ""; position: absolute; left: -14px; right: -14px; top: 0; height: 18px; border-radius: 9px; background: var(--ink); z-index: 2; box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.slip { position: relative; background: #fffdf6; color: #2d2d2d; font-family: var(--mono); font-size: 14px; padding: 28px 28px 34px; box-shadow: 0 24px 50px rgba(29,38,43,0.16); transform-origin: top center;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x; }
.motion .slip { clip-path: inset(0 0 calc((1 - var(--e, 1)) * 100%) 0); transform: translateY(calc((var(--e, 1) - 1) * 60px)) rotate(calc((1 - var(--e, 1)) * -2deg + 1deg)); }
.slip-hd { text-align: center; border-bottom: 1px dashed #aaa; padding-bottom: 14px; margin-bottom: 8px; }
.slip-hd strong { display: block; font-size: 20px; letter-spacing: 0.16em; }
.slip-hd span { font-size: 12px; color: #777; }
.slip .r { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px dotted #cfc8bd; }
.slip .r span { text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: #777; padding-top: 2px; }
.slip .r div { text-align: right; }
.slip a { color: var(--action); }
.slip-tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 3px double #2d2d2d; font-weight: 600; font-size: 18px; text-transform: uppercase; }
.slip-tot b { font-family: var(--display); font-size: 30px; }
.slip-ft { margin-top: 18px; text-align: center; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #777; }
.slip-ft .code { display: block; width: min(100%, 400px); height: 56px; margin: 0 auto 4px; fill: #2a2826; shape-rendering: crispEdges; }
.slip-ft .code-txt { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: 0.32em; text-transform: none; color: #555; }

/* ── faq ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus { font-family: var(--display); font-size: 24px; color: var(--brand); transition: transform 0.2s; }
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--muted); max-width: 60ch; }

/* ── final ───────────────────────────────────────────────────────────────── */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 96px 40px; border-radius: 32px; background: var(--brand-soft); transition: background-color 0.6s; }
.final h2 { font-size: clamp(48px, min(8vw, 15vh), 128px); line-height: 0.92; letter-spacing: -0.05em; } .final h2 span { color: var(--brand); transition: color 0.6s; }
.final .friends .avatar { width: 48px; height: 48px; font-size: 18px; margin-left: -10px; border-width: 3px; }
.motion .vis .friends .avatar { animation: hop 2.4s var(--ease) infinite; }
.motion .vis .friends .avatar:nth-child(2) { animation-delay: 0.12s; } .motion .vis .friends .avatar:nth-child(3) { animation-delay: 0.24s; }
.motion .vis .friends .avatar:nth-child(4) { animation-delay: 0.36s; } .motion .vis .friends .avatar:nth-child(5) { animation-delay: 0.48s; }
@keyframes hop { 0%, 30%, 100% { transform: none; } 15% { transform: translateY(-14px); } }
.final small { color: var(--muted); font-size: 14px; }

/* phones: a slim «Open in Telegram» bar once the hero's button has scrolled away (shown by motion.js) */

/* ── narrower screens ────────────────────────────────────────────────────── */
/* no-JS fallback for the phones' scale (motion.js computes the exact one from the window) */
@media (max-height: 860px) { .hero-phone { --u: 0.62; } }
@media (max-height: 760px) { .hero-phone { --u: 0.55; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .walk { column-gap: 40px; }
  .about, .faq { grid-template-columns: 1fr; gap: 40px; } .about-copy { position: static; }
  .stage { padding-inline: 32px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .hero { grid-template-columns: 1fr; min-height: 0; } .stage { justify-self: center; width: 600px; }
  .cases { grid-template-columns: 1fr; }
  .case { display: grid; grid-template-columns: 300px 1fr; column-gap: 32px; align-items: center; } .case .art { grid-row: 1 / 4; }
  .accuracy { grid-template-columns: 1fr; padding: 40px 32px; gap: 40px; } .chk { max-width: 340px; }
  .world { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  /* the story below 1000px (phones and tablets): the active step on top, the phone and the five friends under it */
  .story { padding-block: 72px; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .st-stage { --s: 0.5; --bw: 415; --bh: 892; }
  /* the friends' tally: a bar laid over the phone's bottom edge (the composer and the home bar), filling as dishes land */
  .st-side { left: -6px; top: 772px; width: 427px; height: auto; justify-content: flex-start; gap: 6px; align-items: center; padding: 9px 8px 11px; border-radius: 30px; background: #fff; box-shadow: 0 18px 40px -10px rgba(29,38,43,0.35), 0 0 0 1px rgba(29,38,43,0.05); z-index: 12; }
  .st-ppl { align-self: stretch; }
  .st-left { align-self: center; font-size: 17px; padding: 0; box-shadow: none; }
  .st-ppl { flex-direction: row; justify-content: space-between; gap: 0; }
  .st-ppl .p { display: flex; flex-direction: column; align-items: center; gap: 0; width: 82px; }
  .st-ppl .avatar { width: 38px; height: 38px; font-size: 16px; border-width: 2px; margin-bottom: 2px; } .st-ppl .n { font-size: 13px; color: var(--muted); align-self: center; } .st-ppl b { font-size: 17px; align-self: center; }
  .st-left .ok { white-space: nowrap; }
  /* the nav steps away while the scene plays (motion.js), so the scene takes the screen from the top: the progress in four
     segments, the step in one line and its copy, then the phone */
  .story.pin .story-pin { padding-top: 12px; align-items: stretch; }
  .story.pin .st-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .st-prog i { position: relative; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .st-prog i::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(var(--f, 0)); transform-origin: left; }
  .story.pin .story-steps .bar { display: none; }
  .story.pin .story-grid { width: calc(100% - 32px); display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 8px; }
  .story.pin .story-copy { gap: 6px; }
  .story.pin .story-copy .chap, .story.pin .story-copy h2 { display: none; }
  .story.pin .story-steps { display: grid; margin: 0; }
  /* the old step leaves before the new one comes in, so the two never show over each other */
  .story.pin .story-steps li { grid-area: 1 / 1; opacity: 0; padding: 4px 0 0; border-top: 0; transform: translateY(6px); transition: opacity 0.12s, transform 0.12s; }
  .story.pin .story-steps li.on { opacity: 1; transform: none; transition: opacity 0.3s 0.12s, transform 0.3s 0.12s; }
  .story.pin .story-steps .num { font-size: 12px; margin-right: 6px; }
  .story.pin .story-steps h3 { display: inline; font-size: 17px; margin: 0; }
  .story.pin .story-steps li p { font-size: 13.5px; line-height: 1.4; margin-top: 3px; max-height: none; }
  .story.pin .st-stage { flex: 1; height: auto; }
}
@media (max-width: 760px) {
  .section { padding-block: 0 88px; }
  .heading { margin-bottom: 32px; }
  .chap { display: block; }
  .chap b { display: block; font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 0.9; letter-spacing: -0.04em; color: var(--brand); margin-bottom: 8px; } .chap b::after { content: none; }
  .coral .chap b { color: #fff; }
  /* first screen: headline, one-line lead, button; the phone right under it */
  .hero-eyebrow, .lead-long { display: none; } .lead-short { display: inline; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 20px 56px; min-height: 0; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 64px); }
  .hero-copy { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  .hero-copy > * { grid-column: 1 / -1; }
  .hero-actions { display: contents; }
  .hero-copy .btn { grid-column: 1 / -1; justify-content: center; }
  .hero-note { grid-column: 1; align-self: center; font-size: 14px; } .hero-actions .textlink { grid-column: 2; grid-row: 5; align-self: center; font-size: 14px; color: var(--muted); font-weight: 500; }
  .stage { justify-self: stretch; width: auto; padding: 22px 18px; margin-inline: -4px; } .stage .table { border-radius: 26px; object-position: 0 30%; }
  .hero-phone { --u: 0.62; }
  .cases, .world { grid-template-columns: 1fr; }
  .case { padding: 24px 22px 22px; gap: 14px; }
  .nos { padding-block: 8px 96px; }
  .world article { padding: 24px; } .hellos { margin-inline: -24px; } .hellos > div { font-size: 40px; } .cursyms { margin-right: -24px; padding-right: 24px; }
  .accuracy { grid-template-columns: 1fr; padding: 36px 22px; gap: 36px; }
  .about, .faq { grid-template-columns: 1fr; gap: 28px; } .about-copy { position: static; }
  .slip { padding: 22px 18px 30px; font-size: 13px; } .slip .r { grid-template-columns: 96px 1fr; gap: 10px; }
  .final { padding: 64px 20px; }
}
@media (max-width: 380px) { .case { padding: 24px 16px 22px; } .order { min-width: 0; padding: 10px; } .art.pizza { gap: 12px; } }
