/* ipafast · help guides, shared by the site's /help/ page and the cabinet (after phone.css):
   step cards with a frozen phone, iOS system screens drawn in the site's phone, and the full-screen step viewer. */

/* =================== step strip =================== */
.gd-strip { display: flex; gap: var(--space-sm); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gd-strip::-webkit-scrollbar { display: none; }
.gd-card { flex: none; scroll-snap-align: start; display: grid; align-content: start; gap: var(--space-sm); width: 200px; padding: var(--space-xs) var(--space-xs) var(--space-md); border: 0; border-radius: 22px; background: color-mix(in oklab, var(--color-light) 3%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-ink) 9%, transparent); color: var(--color-ink); font: inherit; text-align: left; cursor: zoom-in; transition: box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.gd-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 45%, transparent), 0 18px 40px -18px color-mix(in oklab, var(--color-accent) 60%, transparent); }
.gd-card:focus-visible { outline: 2px solid var(--color-accent-hi); outline-offset: 2px; }
.gd-card .pm-fit { justify-self: center; }
.gd-cap { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-xs); align-items: start; padding: 0 var(--space-xs); }
.gd-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(180deg, var(--cta-1), var(--cta-2)); color: var(--color-light); font: 600 var(--text-xs)/1 var(--font-display); }
.gd-cap b { font: 600 var(--text-md)/1.25 var(--font-display); }
.gd-txt { padding: 0 var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); line-height: 1.45; }

/* =================== the site's iPhone, frozen on one screen and scaled by --s =================== */
.pm-fit { width: calc(300px * var(--s)); height: calc(620px * var(--s)); flex: none; }
.pm-fit .iphone { --hl: oklch(74% 0.14 255); transform: scale(var(--s)); transform-origin: 0 0; text-align: left; line-height: 1.25; }
.pm-fit .scr { display: block; opacity: 1; transform: none; }
.pm-fit .ip-sheet { transform: none; }
.pm-fit .ios-dim { opacity: 1; z-index: 3; }
.pm-fit .ios-alert { display: block; z-index: 4; opacity: 1; transform: translateY(-50%); }
.pm-fit .ios-alert span + span { font-weight: 700; }
.pm-fit .f-line.filled { color: var(--ph-ink); }
.pm-fit .ghost, .pm-fit .d-row.dim { opacity: 0.35; filter: blur(0.6px); }
.pm-fit .d-row.hot { border-color: color-mix(in oklab, var(--ph-accent) 60%, transparent); background: color-mix(in oklab, var(--ph-accent) 14%, var(--ph-field)); }
.pm-fit .hs-app .pie circle { stroke-dashoffset: 24; }
/* the control the step is about gets the same ring the hero uses while it "presses" it */
.pm-fit .f-btn.hl, .pm-fit .d-row.hot .pbtn { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ph-accent) 45%, transparent), 0 10px 24px -8px var(--ph-accent); }
.pm-fit .ios-alert span.hl { background: color-mix(in oklab, var(--hl) 22%, transparent); box-shadow: inset 0 0 0 2px var(--hl); }
.pm-fit .f-code.hl i { border-color: color-mix(in oklab, var(--ph-accent) 70%, transparent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--ph-accent) 30%, transparent); }

/* extra ipafast parts: check box, ghost button, warning, buy packs */
.f-chk { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 8px; border-radius: 11px; font-size: 12.5px; }
.f-chk i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ph-line); }
.f-chk.hl { box-shadow: inset 0 0 0 2px var(--hl); background: color-mix(in oklab, var(--hl) 14%, transparent); }
.f-btn.alt { margin-top: 8px; background: var(--ph-field); box-shadow: inset 0 0 0 1px var(--ph-line); color: var(--ph-ink); }
.f-btn.alt.hl { box-shadow: inset 0 0 0 1px var(--ph-line), 0 0 0 3px color-mix(in oklab, var(--hl) 60%, transparent); }
.ip-page .ip-warn { width: 100%; margin: 12px 0 14px; padding: 10px 12px; border-radius: 13px; background: oklch(78% 0.14 75 / 0.13); border: 1px solid oklch(78% 0.14 75 / 0.35); font-size: 11.5px; line-height: 1.4; text-align: left; color: var(--ph-muted); }
.ip-page .ip-warn b { display: block; margin-bottom: 2px; color: oklch(86% 0.12 80); font-size: 13px; font-weight: 600; }
.ip-page.dimmed { padding-top: 40px; opacity: 0.45; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bp { padding: 10px 12px; border-radius: 13px; background: var(--ph-field); border: 1px solid var(--ph-line); }
.bp b { display: block; font-size: 20px; font-weight: 700; }
.bp small { color: var(--ph-muted); font-size: 11.5px; }
.bp.on { border-color: color-mix(in oklab, var(--ph-accent) 70%, transparent); background: color-mix(in oklab, var(--ph-accent) 16%, var(--ph-field)); }
.bp-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.bp-m span { padding: 8px 0; border-radius: 10px; text-align: center; font-size: 12px; background: var(--ph-field); border: 1px solid var(--ph-line); }
.bp-m span.on { border-color: color-mix(in oklab, var(--ph-accent) 70%, transparent); }

/* home screen: the app to open, the long-pressed grey icon and its menu */
.hs-app.hl .ph-ic { box-shadow: 0 0 0 3px var(--hl), 0 0 24px -2px var(--hl); }
.hs-blur { position: absolute; inset: 0; z-index: 2; background: oklch(0% 0 0 / 0.3); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.hs-app.held { position: relative; z-index: 3; }
.ctx-menu { position: absolute; z-index: 4; right: 12px; top: 372px; width: 196px; border-radius: 14px; overflow: hidden; background: var(--ph-alert); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--ph-line); }
.ctx-menu span { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; }
.ctx-menu span + span { border-top: 1px solid var(--ph-line); }
.ctx-menu svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ctx-menu .red { color: oklch(68% 0.2 25); }
.ctx-menu .hl { box-shadow: inset 0 0 0 2px var(--hl); border-radius: 12px; background: color-mix(in oklab, var(--hl) 14%, transparent); }

/* Telegram's in-app browser */
.tg-bar { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; margin: -6px -4px 0; font-size: 12.5px; text-align: center; }
.tg-bar b { font-size: 12.5px; font-weight: 600; }
.tg-bar small { display: block; color: var(--ph-muted); font-size: 10.5px; font-weight: 400; }
.tg-x { color: var(--ph-alert-link); text-align: left; }
.tg-dots { justify-self: end; display: grid; place-items: center; width: 34px; height: 26px; border-radius: 13px; font-size: 18px; line-height: 0; box-shadow: inset 0 0 0 2px var(--hl); background: color-mix(in oklab, var(--hl) 16%, transparent); }

/* =================== iOS system screens (Settings, App Store, system alerts) =================== */
.scr.sys { padding: 46px 12px 24px; overflow: hidden; background: oklch(10% 0.008 268); font-size: 13px; }
.sys .sh { margin: 6px 4px 10px; font: 700 26px/1.1 var(--ph-font); letter-spacing: -0.02em; }
.sys .sn { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; height: 30px; margin-bottom: 8px; }
.sys .sn b { overflow: hidden; font-size: 13.5px; font-weight: 600; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.sys .sb { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: oklch(100% 0 0 / 0.1); }
.sys .sb svg { width: 15px; height: 15px; fill: none; stroke: var(--ph-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sys .sdone { justify-self: end; color: var(--ph-alert-link); font-weight: 600; }
.sys .ss { display: flex; align-items: center; gap: 6px; height: 32px; margin-bottom: 12px; padding: 0 10px; border-radius: 10px; background: oklch(100% 0 0 / 0.09); color: var(--ph-muted); }
.sys .ss svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sys .sgl { margin: 0 12px 5px; color: var(--ph-muted); font-size: 10.5px; letter-spacing: 0.02em; text-transform: uppercase; }
.sys .sg { margin-bottom: 14px; border-radius: 12px; background: oklch(100% 0 0 / 0.08); }
.sys .sr { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; }
.sys .sr + .sr::before { content: ""; position: absolute; top: 0; right: 0; left: 44px; height: 1px; background: oklch(100% 0 0 / 0.09); }
.sys .stx { flex: 1; min-width: 0; }
.sys .stx small { display: block; margin-top: 1px; color: var(--ph-muted); font-size: 11px; line-height: 1.3; }
.sys .stx.muted { color: var(--ph-muted); }
.sys .sv { color: var(--ph-muted); font-size: 12.5px; white-space: nowrap; }
.sys .sc { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--ph-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sys .sr.red .stx { color: oklch(68% 0.2 25); }
.sys .sr.blue .stx { color: var(--ph-alert-link); }
.sys .sr .ph-ic { width: 30px; height: 30px; border-radius: 8px; }
.si { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--c); }
.si svg { width: 16px; height: 16px; fill: none; stroke: oklch(100% 0 0); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.si.big { width: 54px; height: 54px; border-radius: 14px; }
.si.big svg { width: 32px; height: 32px; }
.tg { position: relative; width: 40px; height: 24px; flex: none; border-radius: 12px; background: oklch(100% 0 0 / 0.18); }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: oklch(100% 0 0); box-shadow: 0 2px 4px oklch(0% 0 0 / 0.3); }
.tg.on { background: oklch(72% 0.19 150); }
.tg.on::after { left: 18px; }
.av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(oklch(64% 0.01 260), oklch(48% 0.01 260)); color: oklch(100% 0 0); font-size: 14px; font-weight: 600; }
.sys .sp { min-height: 60px; }
.sys .sacc { display: grid; justify-items: center; gap: 2px; margin: 0 0 14px; text-align: center; }
.sys .sacc .av.big, .sys .sacc .si.big { width: 64px; height: 64px; margin-bottom: 6px; font-size: 22px; }
.sys .sacc b { font-size: 17px; font-weight: 700; }
.sys .sacc small { padding: 0 16px; color: var(--ph-muted); font-size: 11.5px; line-height: 1.35; }
.sys .sacc.tight { margin-top: 18px; }
.sys .s-btn { display: grid; place-items: center; height: 42px; margin-top: 6px; border-radius: 12px; background: oklch(60% 0.19 255); font-size: 14px; font-weight: 600; }
.sys .seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; padding: 2px; border-radius: 9px; background: oklch(100% 0 0 / 0.09); font-size: 12px; text-align: center; }
.sys .seg span { padding: 6px; border-radius: 7px; }
.sys .seg span.on { background: oklch(100% 0 0 / 0.18); font-weight: 600; }
/* what to press on a system screen */
.pm-fit .sys .hl { box-shadow: inset 0 0 0 2px var(--hl); border-radius: 12px; background-color: color-mix(in oklab, var(--hl) 16%, transparent); }
.pm-fit .sys .s-btn.hl { box-shadow: 0 0 0 3px color-mix(in oklab, var(--hl) 50%, transparent); background-color: oklch(60% 0.19 255); }
.pm-fit .sys .av.hl { border-radius: 50%; box-shadow: 0 0 0 3px var(--hl); background: linear-gradient(oklch(64% 0.01 260), oklch(48% 0.01 260)); }
.pm-fit .sys .sr.hl::before, .pm-fit .sys .sr.hl + .sr::before { display: none; }
.pm-fit .sys .tg { box-shadow: none; }

/* storage bar */
.stg { margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; background: oklch(100% 0 0 / 0.08); }
.stg-h { display: flex; justify-content: space-between; margin-bottom: 8px; }
.stg-h span { color: var(--ph-muted); font-size: 12px; }
.stg-bar { display: flex; gap: 1px; height: 10px; overflow: hidden; border-radius: 4px; background: oklch(100% 0 0 / 0.12); }
.stg-bar i { width: var(--w); background: var(--c); }
.stg-k { display: flex; gap: 10px; margin-top: 7px; color: var(--ph-muted); font-size: 10.5px; }
.stg-k span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--c); }

/* system alerts and action sheets */
.pm-fit .ios-alert.sys { left: 20px; right: 20px; }
.ios-alert .ios-map { display: block; border: 0; }
.ios-alert.sys p small { display: block; margin-top: 4px; color: var(--ph-muted); font-size: 11.5px; font-weight: 400; line-height: 1.35; }
.ios-alert.sys .code { display: block; margin: 10px 0 2px; font: 700 26px/1 var(--ph-font); letter-spacing: 0.06em; font-style: normal; }
.ios-alert div:has(> span:only-child) { grid-template-columns: 1fr; }
.ios-alert.stk div { grid-template-columns: 1fr; }
.ios-alert.stk span + span { border-left: 0; border-top: 1px solid var(--ph-line); font-weight: 400; }
.pm-fit .ios-alert.stk span + span { font-weight: 400; }
.ios-map { position: relative; height: 92px; background: linear-gradient(130deg, oklch(36% 0.04 200), oklch(30% 0.05 150) 50%, oklch(34% 0.03 90)); }
.ios-map::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(35deg, transparent 0 18px, oklch(100% 0 0 / 0.08) 18px 20px), repeating-linear-gradient(-55deg, transparent 0 26px, oklch(100% 0 0 / 0.06) 26px 28px); }
.ios-map span { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: oklch(62% 0.19 255); box-shadow: 0 0 0 3px oklch(100% 0 0), 0 0 0 14px oklch(62% 0.19 255 / 0.25); }
.as-sheet { position: absolute; z-index: 4; left: 8px; right: 8px; bottom: 22px; display: grid; gap: 8px; }
.as-grp { overflow: hidden; border-radius: 14px; background: var(--ph-alert); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); text-align: center; }
.as-grp p { margin: 0; padding: 10px; color: var(--ph-muted); font-size: 11.5px; }
.as-grp span { display: block; padding: 12px; font-size: 15px; color: var(--ph-alert-link); }
.as-grp p + span, .as-grp span + span { border-top: 1px solid var(--ph-line); }
.as-grp .red { color: oklch(68% 0.2 25); }
.as-grp .bold { font-weight: 600; }
.as-grp .hl { box-shadow: inset 0 0 0 2px var(--hl); border-radius: 12px; background: color-mix(in oklab, var(--hl) 16%, transparent); }
.as-sheet.at-top { top: 84px; right: 10px; bottom: auto; left: auto; width: 196px; }
.as-sheet.at-top span { padding: 10px 12px; font-size: 13.5px; text-align: left; color: var(--ph-ink); }

/* App Store */
.as-top { display: flex; justify-content: space-between; align-items: flex-end; margin: 4px 4px 12px; }
.as-top small { color: var(--ph-muted); font-size: 10.5px; font-weight: 600; }
.as-top b { display: block; font: 700 26px/1.1 var(--ph-font); }
.as-top .av { width: 34px; height: 34px; font-size: 12px; }
.as-card { display: flex; flex-direction: column; justify-content: flex-end; height: 160px; margin-bottom: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, var(--c), oklch(18% 0.04 270)); }
.as-card.s { height: 120px; }
.as-card small { opacity: 0.75; font-size: 10px; font-weight: 600; }
.as-card b { font-size: 18px; }
.as-tabs { position: absolute; left: 10px; right: 10px; bottom: 20px; display: flex; justify-content: space-around; align-items: center; height: 48px; border-radius: 24px; background: var(--ph-dock); border: 1px solid var(--ph-line); color: var(--ph-muted); font-size: 10.5px; }
.as-tabs .on { color: var(--ph-alert-link); }

/* =================== full-screen step viewer =================== */
html.gv-lock { overflow: hidden; }
.gv { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: color-mix(in oklab, var(--color-shade) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gv.on { display: grid; animation: gv-up var(--dur-short) var(--ease-out); }
@keyframes gv-up { from { opacity: 0; transform: translateY(8px); } }
.gv-in { display: flex; align-items: center; gap: var(--space-2xl); }
.gv-txt { width: 300px; }
.gv-txt small { color: var(--color-accent-hi); font-size: var(--text-sm); font-weight: 600; }
.gv-txt h2 { margin: var(--space-xs) 0 var(--space-sm); font-size: var(--text-2xl); }
.gv-txt p { margin: 0; color: var(--color-ink-2); line-height: 1.55; }
.gv-nav { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: color-mix(in oklab, var(--color-light) 6%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--color-ink) 22%, transparent); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.gv-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gv-nav:hover:not([disabled]) { background: color-mix(in oklab, var(--color-light) 12%, transparent); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.gv-nav[disabled] { opacity: 0.3; cursor: default; }
.gv-nav.next { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.gv-nav.done { background: linear-gradient(180deg, var(--cta-1), var(--cta-2)); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 25%, transparent), 0 0 30px -4px var(--cta-glow); }
.gv-dots { position: absolute; left: 50%; bottom: 28px; display: flex; gap: 8px; transform: translateX(-50%); }
.gv-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: color-mix(in oklab, var(--color-light) 30%, transparent); cursor: pointer; transition: width var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.gv-dots button.on { width: 24px; background: var(--color-accent); }
.gv-x { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in oklab, var(--color-light) 8%, transparent); color: var(--color-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.gv-x:hover { background: color-mix(in oklab, var(--color-light) 14%, transparent); }
@media (prefers-reduced-motion: reduce) { .gd-card, .gv.on { transition: none; animation: none; } }
