/* Hallmark · shared part: the iPhone demo from server/web/phone.css, recoloured through --ph-* tokens; sits in the centre of the orbit (orbit.css) · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E3 S3 R3 V3 · weakest: E, the phone frame is the owner's own material and stays as built */
/* Hallmark · waive 24b · every off-scale value sits inside .iphone, a scaled replica of an iOS screen · the replica follows iOS metrics, not the page's 4px scale */
:root {
  --ph-frame-hi: oklch(34% 0.01 270); --ph-frame-lo: oklch(16% 0.01 270); --ph-bezel: oklch(9% 0.005 270); --ph-edge: oklch(42% 0.012 270);
  --ph-screen: oklch(14% 0.02 268); --ph-screen-2: oklch(22% 0.05 268);
  --ph-ink: oklch(98% 0.005 260); --ph-muted: oklch(98% 0.005 260 / 0.6); --ph-field: oklch(100% 0 0 / 0.07); --ph-line: oklch(100% 0 0 / 0.14);
  --ph-accent: oklch(52% 0.14 260); --ph-accent-ink: oklch(99% 0.005 260); --ph-ok: oklch(78% 0.14 160); --ph-ok-soft: oklch(78% 0.14 160 / 0.18);
  --ph-sheet: oklch(26% 0.03 268 / 0.72); --ph-dim: oklch(0% 0 0 / 0.45); --ph-alert: oklch(28% 0.02 268 / 0.78); --ph-alert-link: oklch(68% 0.15 250);
  --ph-glow: oklch(60% 0.14 260 / 0.35); --ph-ring: oklch(70% 0.1 260 / 0.22); --ph-ring-2: oklch(70% 0.1 260 / 0.12);
  --ph-home: oklch(30% 0.08 268); --ph-home-2: oklch(42% 0.1 268); --ph-dock: oklch(100% 0 0 / 0.14); --ph-dock-icon: oklch(100% 0 0 / 0.35);
  --ph-icon-shadow: 0 14px 30px -10px oklch(0% 0 0 / 0.35); --ph-shadow: 0 60px 120px -40px oklch(10% 0.03 268 / 0.8);
  --ph-font: system-ui, -apple-system, sans-serif;
  /* the dock: stock iOS apps, drawn as vectors */
  --ios-green-hi: oklch(84% 0.2 145); --ios-green-lo: oklch(68% 0.2 145); --ios-white: oklch(100% 0 0);
  --ios-tile-hi: oklch(99% 0 0); --ios-tile-lo: oklch(90% 0.004 260); --ios-silver-hi: oklch(93% 0.004 260); --ios-silver-lo: oklch(76% 0.006 260);
  --ios-blue-hi: oklch(78% 0.13 225); --ios-blue-lo: oklch(52% 0.2 258); --ios-red: oklch(62% 0.24 27); --ios-edge: oklch(0% 0 0 / 0.12);
  --ios-cam-ring: oklch(30% 0.004 260); --ios-cam-body: oklch(15% 0.004 260); --ios-lens-hi: oklch(48% 0.12 255); --ios-lens-lo: oklch(12% 0.03 270);
  --ios-glint: oklch(100% 0 0 / 0.75); --ios-glint-2: oklch(70% 0.14 300 / 0.8);
}

.iphone { position: relative; z-index: 2; width: 300px; height: 620px; border-radius: 52px; padding: var(--space-sm); font-family: var(--ph-font); color: var(--ph-ink); transform: scale(var(--ph-scale, 0.84)); background: linear-gradient(145deg, var(--ph-frame-hi), var(--ph-frame-lo) 40%, var(--ph-frame-hi)); box-shadow: inset 0 0 0 2px var(--ph-edge), inset 0 0 0 6px var(--ph-bezel), var(--ph-shadow); }
.iphone::before { content: ""; position: absolute; right: -3px; top: 160px; width: 3px; height: 70px; border-radius: 2px; background: var(--ph-frame-lo); }
.iphone::after { content: ""; position: absolute; left: -3px; top: 130px; width: 3px; height: 44px; border-radius: 2px; background: var(--ph-frame-lo); box-shadow: 0 64px 0 var(--ph-frame-lo); }
.ph-glow { position: absolute; inset: 12% 8%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, var(--ph-glow), transparent); filter: blur(30px); }
.ip-screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: radial-gradient(120% 70% at 20% 0%, var(--ph-screen-2), transparent 60%), var(--ph-screen); }
/* status bar, inside the screen so nothing crosses the bezel: iOS metrics at 0.7 scale (screen 276 wide ≈ 393 pt).
   The island sits centred; time and icons are each centred in the "ear" on either side of it. */
.ip-island { position: absolute; z-index: 6; top: 9px; left: 50%; width: 86px; height: 25px; transform: translateX(-50%); border-radius: 13px; background: var(--ph-bezel); }
.ip-status { position: absolute; z-index: 5; top: 9px; left: 0; right: 0; height: 25px; display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr); align-items: center; color: var(--ph-ink); pointer-events: none; }
.ip-time { grid-column: 1; justify-self: center; padding-left: 6px; font: 600 13px/1 var(--ph-font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ip-sys { grid-column: 3; justify-self: center; display: flex; gap: 5px; align-items: center; padding-right: 4px; }
.ip-sys svg { display: block; fill: currentColor; }
.ip-sys .sig { width: 14px; height: 9px; }
.ip-sys .wifi { width: 12.5px; height: 9px; }
.ip-sys .bat { width: 21px; height: 10px; }
.ip-home { position: absolute; z-index: 7; bottom: 8px; left: 50%; width: 110px; height: 4px; margin-left: -55px; border-radius: 3px; background: var(--ph-ink); opacity: 0.85; }

.scr { position: absolute; inset: 0; padding: 52px var(--space-md) 30px; }
html:not(.js) .scr:not([data-scr="pick"]) { display: none; }
.js .scr { opacity: 0; transform: translateY(10px) scale(0.99); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.js .scr.on { opacity: 1; transform: none; }
.ip-bar { display: flex; align-items: center; gap: var(--space-xs); font-size: 14px; margin-bottom: 14px; }
.ip-bar .ip-mark { width: 24px; height: 24px; border-radius: 7px; }
.ip-wm { font: 600 16px/1 var(--font-display); letter-spacing: -0.03em; }
/* progress through the three steps, under the app bar */
.ip-steps { display: flex; gap: 4px; margin: -4px 0 18px; }
.ip-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--ph-line); }
.ip-steps i.on { background: linear-gradient(90deg, var(--color-accent-hi), var(--color-accent)); }
/* the privacy line at the foot of the Apple ID screen */
.ip-note { position: absolute; left: var(--space-md); right: var(--space-md); bottom: 34px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ph-field); border: 1px solid var(--ph-line); color: var(--ph-muted); font-size: 11.5px; line-height: 1.35; }
.ip-note svg { width: 18px; height: 18px; flex: none; color: var(--ph-accent); }
.ip-badge { margin-left: auto; font-size: 11px; padding: var(--space-2xs) var(--space-xs); border-radius: 99px; background: var(--ph-ok-soft); color: var(--ph-ok); }
.ip-h { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.ip-p { color: var(--ph-muted); font-size: 12.5px; margin: calc(-1 * var(--space-2xs)) 0 var(--space-sm); }
.ip-p.c { text-align: center; margin-top: var(--space-2xs); }
.f-line { height: 42px; border-radius: 13px; transition: border-color 0.2s, box-shadow 0.2s; background: var(--ph-field); border: 1px solid var(--ph-line); margin-bottom: var(--space-xs); display: flex; align-items: center; padding: 0 var(--space-sm); font-size: 13px; color: var(--ph-muted); }
.f-line.search::before, .f-line.f-search::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.6px solid var(--ph-muted); margin-right: var(--space-xs); flex: none; }
.f-line .caret { display: inline-block; width: 1px; height: 16px; background: var(--ph-accent); margin-left: 1px; animation: ph-blink 1s step-end infinite; }
@keyframes ph-blink { 50% { opacity: 0; } }
.f-code i:not(:empty) { border-color: color-mix(in oklab, var(--ph-accent) 60%, transparent); background: color-mix(in oklab, var(--ph-accent) 12%, transparent); }
.f-line.act { border-color: var(--ph-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ph-accent) 22%, transparent); color: var(--ph-ink); }
.f-line.filled { color: var(--ph-ink); }
.f-btn { height: 44px; border-radius: 13px; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ph-ink) 30%, transparent), 0 8px 20px -10px var(--ph-accent); background: var(--ph-accent); color: var(--ph-accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 13.5px; }
.f-btn.press { transform: scale(0.95); filter: brightness(1.15); transition: transform 0.12s, filter 0.12s; }
.f-code { display: flex; gap: 6px; justify-content: center; margin: var(--space-md) 0; }
.f-code i { transition: border-color 0.2s, background-color 0.2s; width: 34px; height: 42px; border-radius: 10px; background: var(--ph-field); border: 1px solid var(--ph-line); display: grid; place-items: center; font: 600 17px/1 var(--ph-font); font-style: normal; }
.d-row { display: flex; align-items: center; gap: 10px; padding: var(--space-xs); border-radius: 14px; background: var(--ph-field); border: 1px solid var(--ph-line); margin-bottom: 7px; font-size: 13.5px; transition: opacity 0.3s; }
.d-row .m { flex: 1; min-width: 0; }
.d-row small { display: block; color: var(--ph-ok); font-size: 11.5px; }
.d-row .pbtn { height: 28px; padding: 0 11px; border-radius: 99px; background: var(--ph-accent); color: var(--ph-accent-ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.d-row .pbtn.press { transform: scale(0.94); }
.d-row .prog { position: relative; width: 66px; height: 28px; border-radius: 99px; background: var(--ph-field); overflow: hidden; font-size: 11px; display: grid; place-items: center; }
.d-row .prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ph-accent); opacity: 0.55; }
.d-row .prog span { position: relative; font-variant-numeric: tabular-nums; }
.ph-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--ph-field) center / cover; }
#dListGhost { opacity: 0.35; filter: blur(1px); }

.ip-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: var(--space-sm) var(--space-md) 18px; border-radius: 30px; text-align: center; transform: translateY(110%); transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1); background: var(--ph-sheet); border: 1px solid var(--ph-line); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.ip-sheet.up { transform: none; }
.ip-sheet .grab { display: block; width: 36px; height: 4px; border-radius: 3px; background: var(--ph-line); margin: 0 auto var(--space-sm); }
.ip-sheet b { display: block; font-size: 16px; margin-bottom: var(--space-2xs); }
.ip-sheet p { color: var(--ph-muted); font-size: 12px; margin: 0 0 var(--space-sm); }
.ip-sheet small { display: block; color: var(--ph-muted); font-size: 11px; margin-top: var(--space-xs); }

.ip-page { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 70px; }
.ip-page .big-ic { width: 92px; height: 92px; border-radius: 22px; margin-bottom: 14px; background: var(--ph-field) center / cover; }
.ip-page b { font-size: 22px; font-weight: 700; }
.ip-page p { color: var(--ph-muted); font-size: 12.5px; margin: var(--space-xs) 0 18px; padding: 0 10px; }
.ip-page .f-btn { width: 100%; }
/* what the page is installing, under the button */
.ip-facts { width: 100%; margin-top: 18px; border-radius: 14px; background: var(--ph-field); border: 1px solid var(--ph-line); text-align: left; }
.ip-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 12px; }
.ip-facts div + div { border-top: 1px solid var(--ph-line); }
.ip-facts span { color: var(--ph-muted); }
.ip-facts b { font-size: 12px; font-weight: 600; }
.ip-url { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 12px; padding: 7px 14px; border-radius: 99px; background: var(--ph-field); border: 1px solid var(--ph-line); color: var(--ph-muted); white-space: nowrap; }
.ios-dim { position: absolute; inset: 0; background: var(--ph-dim); opacity: 0; transition: opacity 0.3s; }
.ios-dim.on { opacity: 1; }
.ios-alert { position: absolute; left: 30px; right: 30px; top: 50%; transform: translateY(-50%); display: none; transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s; border-radius: 22px; overflow: hidden; text-align: center; background: var(--ph-alert); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--ph-line); }
.js .ios-alert { display: block; opacity: 0; transform: translateY(-50%) scale(1.15); }
.js .ios-alert.on { opacity: 1; transform: translateY(-50%) scale(1); }
.ios-alert p { margin: 0; padding: 18px var(--space-md); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ios-alert div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ph-line); }
.ios-alert span { padding: 11px; font-size: 14px; color: var(--ph-alert-link); }
.ios-alert span + span { border-left: 1px solid var(--ph-line); font-weight: 700; }
.ios-alert span.press { background: var(--ph-field); }

.scr.home { padding: 56px 18px 30px; background: radial-gradient(120% 80% at 30% 10%, var(--ph-home-2), transparent 55%), var(--ph-home); }
.hs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md) 10px; }
.hs-app { display: grid; justify-items: center; gap: var(--space-2xs); font-size: 10px; color: var(--ph-ink); text-align: center; }
.hs-app .ph-ic { width: 52px; height: 52px; border-radius: 13px; position: relative; overflow: hidden; }
.hs-app.new .ph-ic { filter: grayscale(1) brightness(0.6); transition: filter 0.4s; }
.hs-app.new.done .ph-ic { filter: none; }
.hs-app .pie { position: absolute; inset: 0; display: grid; place-items: center; }
.hs-app .pie svg { width: 26px; height: 26px; transform: rotate(-90deg); }
.hs-app .pie circle { fill: none; stroke: var(--ph-ink); stroke-width: 3; stroke-dasharray: 63; stroke-dashoffset: 63; }
.hs-app.new.done .pie { display: none; }
.hs-app.new { animation: ph-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ph-pop { from { transform: scale(0.3); opacity: 0; } }
.hs-dock { position: absolute; left: 10px; right: 10px; bottom: 16px; height: 72px; border-radius: 28px; display: flex; justify-content: space-around; align-items: center; background: var(--ph-dock); border: 1px solid var(--ph-line); }
.hs-dock i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; overflow: hidden; background: var(--ph-dock-icon); box-shadow: inset 0 0 0 0.5px var(--ios-edge); }
.hs-dock svg { width: 64%; height: 64%; }
.hs-dock .dk-phone, .hs-dock .dk-msg { background: linear-gradient(var(--ios-green-hi), var(--ios-green-lo)); color: var(--ios-white); }
.dk-phone svg, .dk-msg svg { fill: currentColor; }
.dk-msg svg { width: 72%; height: 72%; }
.hs-dock .dk-safari { background: linear-gradient(var(--ios-tile-hi), var(--ios-tile-lo)); }
.dk-safari svg, .dk-cam svg { width: 88%; height: 88%; }
.sf-a { stop-color: var(--ios-blue-hi); } .sf-b { stop-color: var(--ios-blue-lo); }
.sf-tick { stroke: var(--ios-white); } .sf-n { fill: var(--ios-red); } .sf-s { fill: var(--ios-white); } .sf-c { fill: var(--ios-white); }
.hs-dock .dk-cam { background: linear-gradient(var(--ios-silver-hi), var(--ios-silver-lo)); }
.cm-ring { fill: var(--ios-cam-ring); } .cm-body { fill: var(--ios-cam-body); }
.cm-a { stop-color: var(--ios-lens-hi); } .cm-b { stop-color: var(--ios-lens-lo); }
.cm-hi { fill: var(--ios-glint); } .cm-hi2 { fill: var(--ios-glint-2); }

/* without script (or with reduced motion) the phone rests on the purchases screen, filled in the markup */
@media (max-width: 40rem) { .iphone { --ph-scale: 0.66; } }
