/* ==========================================================================
   Product screens, rebuilt in HTML from the final designs.
   Desktop screens are drawn on a 1040 x 650 canvas (0.6 of the 1728 px
   frames) and phones on 360 x 800, then scaled to fit their frame
   (JS sets --s on [data-scale]).
   ========================================================================== */

.story { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 56px); max-width: 1240px !important; }
.story-stage { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--bar) + max(24px, (100vh - var(--bar) - var(--stage-h, 480px)) / 2)); align-self: start; }
.story-steps { grid-column: 1; grid-row: 1; padding: 6vh 0 18vh; }
.step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; }
/* Steps further away are greyed rather than faded, so the text keeps enough contrast */
.step h3, .step p { color: var(--grey); transition: color 0.5s var(--ease); }
.step.is-on h3 { color: var(--ink); }
.step.is-on p { color: var(--ink-2); }
.step-n { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 7px; background: var(--line-2); margin-bottom: 12px; }
.step.is-on .step-n { background: var(--yellow); }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.step p { font-size: 16.5px; }

.device { overflow: hidden; background: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.device-chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--yellow); border-bottom: 2px solid var(--ink); }
.device-chrome i { width: 10px; height: 10px; border: 1.5px solid var(--ink); background: #fff; }
.device-chrome span { min-width: 0; margin: 0 auto; font: 500 11px var(--mono); color: var(--ink); padding-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-screen { position: relative; aspect-ratio: 1040 / 650; overflow: hidden; }

[data-scale] { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, 0.5)); }
.screens { width: 1040px; height: 650px; font-size: 14px; line-height: 1.35; }
.scr { position: absolute; inset: 0; overflow: hidden; background: #fff; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease), visibility 0.55s; }
.scr.is-on { opacity: 1; visibility: visible; transform: none; }

/* The shared navbar: black, white logo, white square search, bold links */
.app-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 30px; height: 60px; padding: 0 24px; background: var(--ink); color: #fff; }
.app-nav > b { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.app-search { display: flex; align-items: center; justify-content: space-between; width: 480px; height: 30px; padding: 0 10px 0 16px; background: #fff; color: #444; font-size: 14px; }
.app-search .ic { color: var(--ink); width: 15px; height: 15px; }
.app-nav nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; font-size: 16px; }
.app-nav-hub { justify-content: space-between; }
.app-nav-hub .hub-k { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.d-label { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }

/* 1 · Landing */
.sl-collage { position: absolute; inset: 0 0 76px; overflow: hidden; }
.sl-collage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sl-strip { position: absolute; top: 0; right: 0; height: 574px; width: auto; }
.sl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--yellow); color: var(--ink); }
.sl-bar p { flex: 1; font-size: 12.5px; font-weight: 600; line-height: 1.35; max-width: 470px; }
.sl-ms { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 18px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.sl-slash { width: 1.5px; height: 30px; background: var(--ink); transform: rotate(18deg); }
.sl-code { display: flex; align-items: center; gap: 12px; height: 40px; width: 214px; padding: 0 12px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 500; }

/* 2 · Dashboard, taller than the screen: it drifts down to the favourites and back */
.scr-dash { background: var(--ink); }
.dash-scroll { position: absolute; left: 0; right: 0; top: 0; }
.scr-dash.is-on .dash-scroll { animation: dashdrift 13s 1.2s ease-in-out infinite; }
@keyframes dashdrift { 0%, 12% { transform: none; } 45%, 70% { transform: translateY(-500px); } 100% { transform: none; } }
.dh { position: relative; display: grid; grid-template-columns: 1fr 178px 178px; gap: 22px; align-items: start; padding: 40px 30px 0 24px; color: #fff; }
.dh-hi p { font-size: 38px; font-weight: 300; line-height: 1.1; }
.dh-hi h4 { position: relative; z-index: 1; font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.dh-hi small { display: block; margin-top: 6px; font-size: 22px; font-weight: 300; }
.dh-hang { position: absolute; left: 488px; top: -8px; width: 122px; height: auto; }
.dh .cd { min-height: 112px; margin-top: 8px; }
.dh .cd b { font-size: 46px; }
.dh .cd span { font-size: 13.5px; }
.dash-scroll > .d-label { color: #fff; padding: 46px 24px 14px; }
.d-courses { display: grid; grid-template-columns: repeat(6, 139px); gap: 14px 21px; padding: 0 24px 40px 36px; }
.d-courses .cc { min-height: 110px; padding: 9px 10px 11px; transition: transform 0.3s var(--ease); }
.d-courses .cc b { font-size: 13px; }
.d-courses .cc-code { font-size: 9px; padding: 3px 6px; }
.d-banner { position: relative; display: grid; grid-template-columns: 300px 1fr 263px; align-items: center; gap: 12px; height: 146px; padding: 0 30px 0 26px; background: var(--yellow); color: var(--ink); overflow: hidden; }
.db-copy h5 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.db-copy p { font-size: 10.5px; line-height: 1.3; }
.d-banner img { height: 150px; width: auto; justify-self: center; margin-bottom: -6px; }
.db-btn { position: relative; display: grid; place-items: center; height: 46px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; }
.db-btn::before, .db-btn::after { content: ""; position: absolute; left: 20px; right: 20px; height: 16px; background: repeating-linear-gradient(90deg, transparent 0 22px, var(--ink) 22px 23.5px, transparent 23.5px 46px); }
.db-btn::before { top: -26px; } .db-btn::after { bottom: -26px; }
.d-white { background: #fff; padding: 34px 24px 60px 36px; }
.d-white .d-label { margin: 0 0 18px -12px; color: var(--ink); }
.d-favs { display: grid; grid-template-columns: repeat(6, 139px); gap: 18px 21px; }
.d-favs .fv { min-height: 110px; padding: 16px 8px 8px; }
.d-favs .fv b { font-size: 14px; }
.d-favs .fv small { font-size: 10px; }
.d-favs .fv em { font-size: 11.5px; }
.d-favs .fv-file { padding-top: 8px; }

/* 3 · Browse */
.br { display: grid; grid-template-columns: 214px 1fr 127px; height: calc(650px - 60px); }
.br-left { overflow: hidden; border-right: 1px solid #bbb; }
.br .side > li:not(.side-tree) { cursor: pointer; padding: 9px 30px 9px 20px; font-size: 12.5px; }
.br .side > li:not(.side-tree) b { font-size: 12px; }
.br .side-tree span { cursor: pointer; }
.br-mid { display: flex; flex-direction: column; min-width: 0; }
.br-mid .bhead { min-height: 64px; padding: 8px 20px 8px 22px; }
.br-mid .bh-crumb { font-size: 12.5px; }
.br-mid .bh-title { font-size: 19px; margin-top: 2px; }
.br-mid .bh-btns span { padding: 6px 10px; font-size: 10.5px; }
.br-files { flex: 1; display: grid; grid-template-columns: repeat(4, 140px); justify-content: space-evenly; align-content: start; gap: 18px 0; padding: 20px 14px; overflow: hidden; }
.br-files .ft-thumb img { pointer-events: none; }
.br-files .ft small { font-size: 9.5px; }
.br-files .ft b { font-size: 12.5px; line-height: 1.25; }
.br-files .ft { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); cursor: pointer; }
.br-files .ft:hover, .br-files .ft-hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--ink); }
.ft-scan .ft-thumb img { display: none; }
.br-files .ft-thumb img { transform: translateY(var(--pg, 0%)); }
.ft-scan .ft-thumb { background: url("../assets/art/collage.jpg") var(--bp, 30% 30%) / 520% auto no-repeat; }
.ft-type { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 1px 5px; font-size: 8.5px; font-weight: 800; letter-spacing: 0.04em; background: var(--ink); color: #fff; }
.br-folder { display: flex; flex-direction: column; justify-content: space-between; height: 100px; padding: 16px 10px 8px; text-align: left; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.br-folder:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--ink); }
.br-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; color: var(--grey); font-size: 13px; }
.br-empty b { color: var(--ink); font-size: 18px; }
.br-empty img { height: 230px; width: auto; }
.br-right { background: var(--ink); color: #fff; padding: 26px 0; }
.br-k { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0 14px 10px; }
.br-k + .br-years { margin-bottom: 30px; }
.br-years button { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 6px 14px; font-size: 14px; color: #fff; text-align: left; }
.br-years button small { font-size: 10px; opacity: 0.85; }
.br-years button.on { background: #fff; color: var(--ink); font-weight: 800; }
.br-books { font-size: 13px; padding: 0 14px; }

/* 4 and 5 · modals over a frozen copy of the browse screen */
.scr-under { position: absolute; inset: 0; pointer-events: none; }
.scr-dim { position: absolute; z-index: 4; inset: 60px 0 0; background: rgba(0, 0, 0, 0.42); }
.modal { position: absolute; z-index: 5; left: 50%; top: 52%; transform: translate(-50%, -50%); background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.m-title { font-size: 25px; font-weight: 800; }
.sh { width: 430px; padding: 26px 28px 10px; }
.sh-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 6px; padding: 10px 12px; border: 1.5px solid var(--ink); font-size: 13.5px; }
.sh-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh img { width: 100%; height: auto; }
.ct { width: 470px; display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; }
.ct .m-title { margin-bottom: 6px; font-size: 22px; }
.ct-row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 10px; font-size: 12.5px; }
.ct-row span { font-weight: 800; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.04em; }
.ct-row b { position: relative; padding: 7px 26px 7px 10px; border: 1.5px solid var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-row b::after { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.ct-desc { align-items: start; }
.ct-desc p { padding: 7px 10px; border: 1.5px solid var(--ink); min-height: 52px; font-size: 12px; }
.ct-radio { display: flex; gap: 28px; font-size: 13px; margin-top: 2px; }
.ct-radio span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; border: 1.5px solid var(--ink); border-radius: 50%; }
.ct-radio .on::before { background: radial-gradient(var(--ink) 0 3.5px, transparent 4px); }
.ct-files { display: grid; gap: 6px; }
.ct-files li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #e9e9e9; font-size: 12px; overflow: hidden; }
.ct-files li i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--ink); transition: width 1.2s var(--ease); z-index: 0; }
.ct-files li span, .ct-files li em { position: relative; z-index: 1; color: #fff; mix-blend-mode: difference; }
.ct-files li em { font-style: normal; font-weight: 700; font-size: 11px; }
.ct-submit { display: grid; place-items: center; height: 38px; margin-top: 4px; background: var(--yellow); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* 6 · Profile */
.pr-head { position: relative; height: 280px; padding: 40px 0 0 43px; background: var(--ink); color: #fff; overflow: hidden; }
.pr-k { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.pr-head h4 { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 40px; font-weight: 800; line-height: 1; }
.pr-head h4 .ic { width: 20px; height: 20px; }
.pr-deg { margin-top: 10px; font-size: 25px; font-weight: 300; }
.pr-wave { position: absolute; left: 0; right: 0; bottom: 46px; width: 100%; height: 60px; }
.pr-wave text { fill: #fff; font: 600 10.5px var(--font); letter-spacing: 0.24em; }
.pr-desk { position: absolute; left: 585px; bottom: 0; height: 203px; width: auto; }
.pr-sem { position: absolute; right: 28px; top: 62px; display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: start; width: 100px; padding: 10px 10px 8px; background: var(--yellow); color: var(--ink); }
.pr-sem b { font-size: 22px; font-weight: 800; line-height: 1; }
.pr-sem sup { font-size: 0.55em; }
.pr-sem span { grid-column: 1 / -1; font-size: 16px; margin-top: 6px; }
.pr-body { padding: 26px 43px; }
.pr-body .d-label { margin-bottom: 16px; }
.pr-list { display: grid; gap: 12px; }
.pr-list li { display: grid; grid-template-columns: 250px 1fr 104px; align-items: center; gap: 24px; padding: 12px 18px; background: var(--yellow); }
.pr-list small { display: block; font-size: 11.5px; }
.pr-list b { font-size: 14.5px; font-weight: 800; }
.pr-list p { font-size: 11.5px; line-height: 1.35; }
.pr-list .chip { justify-self: end; text-align: center; min-width: 96px; transition: background 0.4s, color 0.4s; }
.pr-list .chip.is-flash { background: #fff; color: var(--ink); }

/* 7 · Hub Master */
.hb-head { position: relative; display: grid; grid-template-columns: 1fr 160px 124px; align-items: center; gap: 24px; height: 203px; padding: 0 32px 0 24px; background: var(--ink); color: #fff; overflow: hidden; }
.hb-head h4 { font-size: 40px; font-weight: 800; line-height: 1.05; }
.hb-head p { margin-top: 8px; font-size: 22px; font-weight: 300; line-height: 1.2; }
.hb-head img { height: 190px; width: auto; align-self: end; }
.hb-count { display: flex; flex-direction: column; align-items: flex-end; padding: 10px 12px; background: var(--yellow); color: var(--ink); }
.hb-count span { font-size: 14px; }
.hb-count b { font-size: 40px; font-weight: 800; line-height: 1.1; }
.hb-body { padding: 24px 45px; }
.hb-body .d-label { margin-bottom: 16px; }
.hb-row { display: grid; grid-template-columns: 250px 1fr auto; align-items: center; gap: 22px; margin-bottom: 12px; padding: 12px 20px; background: var(--yellow); }
.hb-row b { display: block; font-size: 15px; font-weight: 800; }
.hb-row small { display: block; font-size: 11.5px; }
.hb-row p { font-size: 11.5px; line-height: 1.35; }
.hb-open { padding: 18px 20px; }
.hb-open small + small { margin-top: 18px; }
.hb-btns { display: flex; gap: 10px; }
.hb-btns span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 92px; height: 74px; padding: 6px; background: var(--ink); color: #fff; font-size: 10.5px; text-align: center; line-height: 1.2; transition: background 0.3s, color 0.3s, transform 0.3s; }
.hb-btns span.is-press { background: #fff; color: var(--ink); transform: translateY(2px); }
.hb-exp { display: flex; align-items: center; gap: 14px; padding: 9px 22px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }

/* ==========================================================================
   Phones
   ========================================================================== */
.phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); max-width: 1240px !important; }
.phone { display: flex; flex-direction: column; }
.phone:nth-child(even) { transform: translateY(clamp(20px, 4vw, 48px)); }
.phone-screen { position: relative; aspect-ratio: 360 / 800; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 0 0 7px #111, 0 0 0 8.5px #333, 10px 14px 0 8px rgba(0, 0, 0, 0.12); }
.phone figcaption { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-top: 22px; }
.pscr { width: 360px; height: 800px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.3; overflow: hidden; }

.pm-top { display: flex; align-items: center; justify-content: space-between; height: 90px; padding: 34px 18px 0; background: var(--ink); color: #fff; }
.pm-top b { font-size: 20px; font-weight: 800; }
.pm-top .ic { width: 20px; height: 20px; }
.pm-label { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0 16px; margin: 18px 0 10px; }
.pm-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 72px; padding-bottom: 10px; background: var(--yellow); color: var(--ink); font-size: 9.5px; text-align: center; }
.pm-tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pm-tabs .ic { width: 22px; height: 22px; }
.pm-tabs .on { font-weight: 800; }
.pm-tabs .plus b { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -30px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-size: 30px; font-weight: 300; line-height: 1; box-shadow: 0 0 0 4px var(--yellow); }

.p-login { position: relative; background: #fff; }
.pl-bg { position: absolute; left: 0; top: 0; width: 100%; height: 610px; object-fit: cover; }
.pl-strip { position: absolute; right: 0; top: 0; height: 610px; width: auto; }
.pl-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 18px 20px; background: var(--yellow); color: var(--ink); }
.pl-panel p { font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.pl-btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 46px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }

.p-home { position: relative; }
.ph-hello { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 0; }
.ph-hello p { font-size: 15px; }
.ph-hello h4 { font-size: 17px; font-weight: 800; max-width: 180px; line-height: 1.2; }
.ph-hello img { height: 70px; width: auto; }
.ph-exam { display: flex; align-items: center; gap: 10px; margin: 16px 16px 0; padding: 10px; background: var(--yellow); color: var(--ink); font-size: 10.5px; font-weight: 700; line-height: 1.25; }
.ph-exam .ic { width: 26px; height: 26px; }
.ph-exam span { flex: 1; }
.ph-exam b { background: var(--ink); color: #fff; padding: 9px 10px; font-size: 10.5px; white-space: nowrap; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 0 16px; }
.ph-grid .cc { min-height: 112px; padding: 8px 8px 10px; }
.ph-grid .cc b { font-size: 12.5px; }
.ph-grid .cc-code { font-size: 7.5px; padding: 2px 5px; }

.p-course { position: relative; background: #fff; color: var(--ink); }
.pc-top { padding: 40px 16px 14px; background: var(--ink); color: #fff; font-size: 12px; }
.pc-top div { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pc-top b { font-size: 20px; font-weight: 800; }
.pc-top span { display: flex; gap: 14px; }
.pc-top .ic { width: 18px; height: 18px; }
.pc-years { display: flex; gap: 10px; padding: 18px 16px; }
.pc-years span { display: grid; place-items: center; width: 64px; height: 30px; border: 1.5px solid var(--ink); font-size: 12px; }
.pc-years .on { background: var(--ink); color: #fff; font-weight: 800; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 0 16px; }
.pc-grid .fv { min-height: 112px; padding: 20px 10px 10px; }
.pc-grid .fv small { margin-top: 3px; font-size: 10px; color: rgba(0, 0, 0, 0.55); }
.pc-grid .fv b { font-size: 13px; }
.pc-grid .fv em { font-size: 11px; font-weight: 600; color: rgba(0, 0, 0, 0.4); }

.p-exam { position: relative; background: #fff; color: var(--ink); }
.pe-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 170px; text-align: center; overflow: hidden; }
.pe-head > div { position: absolute; left: 0; right: 0; top: 18px; }
.pe-head h4 { font-size: 23px; font-weight: 800; }
.pe-head p { font-size: 12.5px; margin-top: 4px; }
.pe-head p + p { margin-top: 1px; }
.pe-l { width: 110px; height: auto; }
.pe-r { width: 122px; height: auto; }
.pe-list { display: grid; gap: 14px; padding: 12px 16px; }
.pe-list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.pe-date { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 10px; padding-top: 4px; }
.pe-date b { font-size: 25px; font-weight: 700; }
.pe-card { display: flex; flex-direction: column; gap: 2px; border: 1px solid #888; }
.pe-time { display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; background: var(--yellow); font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.pe-time .ic { width: 13px; height: 13px; }
.pe-card small { padding: 0 8px; font-size: 10px; }
.pe-card b { padding: 0 8px; font-size: 12.5px; }
.pe-card em { display: flex; align-items: center; gap: 4px; padding: 0 8px 8px; font-style: normal; font-size: 10.5px; }
.pe-card em .ic { width: 11px; height: 11px; }

.p-favs { position: relative; background: #fff; color: var(--ink); }
.pf-group { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; font-size: 13px; font-weight: 700; }
.pf-group i { width: 16px; height: 16px; border: 2px solid var(--ink); }
.pf-group i.on { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pf-head { margin: 10px 14px 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.pf-list { display: grid; gap: 11px; padding: 0 12px 0 14px; }
.pf-list li { display: grid; grid-template-columns: 40px 1fr 4px; gap: 12px; align-items: center; }
.pf-thumb { display: grid; place-items: center; width: 40px; height: 34px; background: #f4f6d9; color: var(--yellow-2); box-shadow: inset 0 0 0 1px #d8dbb8; }
.pf-thumb .ic { width: 16px; height: 16px; }
.pf-list small { display: block; font-size: 9.5px; color: var(--grey); }
.pf-list b { font-size: 12.5px; font-weight: 500; }
.pf-dots { width: 4px; height: 14px; background: radial-gradient(circle, var(--ink) 1.4px, transparent 1.6px) 0 0 / 4px 5px; }
.pf-illus { position: absolute; right: 14px; bottom: 74px; width: 150px; height: auto; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
    .story { display: block; }
    .story-stage { position: sticky; top: var(--bar); z-index: 5; margin: 0 calc(var(--gut) * -1); padding: 12px var(--gut) 14px; background: rgba(255, 255, 255, 0.95); border-bottom: 1.5px solid var(--ink); }
    .device { box-shadow: 5px 5px 0 var(--ink); }
    .device-chrome { height: 22px; }
    .device-chrome i { width: 7px; height: 7px; }
    .device-chrome span { font-size: 9.5px; }
    .story-steps { padding: 8vh 0 10vh; }
    .step { min-height: 62vh; }
    .phones { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gut) * -1) !important; padding: 12px var(--gut) 20px 10px; scrollbar-width: none; }
    .phones::-webkit-scrollbar { display: none; }
    .phone { flex: none; width: 62vw; max-width: 260px; scroll-snap-align: center; }
    .phone:nth-child(even) { transform: none; }
}
