/* The site on a phone (2026-11-20, from design/mobile-canvas): loaded only while the window is 759 px wide or less
   (head.html: media="(max-width: 759px)"), so nothing here can touch the desktop. Each page's own phone rules are in
   <page>-phone.css. The rules every page keeps on a phone, for a visitor who came from a feed with a thumb:
   - nothing fixed covers the page but the glass bar at the foot, and it steps aside for the foot's links;
   - no notch drawn at the top: the phone has its own camera there; the capsule still drops when something happens;
   - every tap target is at least 44 px tall, body text 16 px and up;
   - every page ends on the planet, tightened so no empty black comes between it and the foot. */

:root { --ph-gut: 16px; --ph-ease: cubic-bezier(0.16, 1, 0.3, 1); }
html { scroll-padding-top: 24px; }

/* ---------- The top: only the mark, and it scrolls away with the page ---------- */
.menubar { position: absolute; top: var(--sale-h); display: flex; align-items: center; height: 56px; padding: 0 var(--ph-gut); background: none; }
.menubar::before, .menubar::after, .mb-right, .bar-glass { display: none !important; }
.menubar .mark { font-size: 17px; min-height: 44px; }

/* The banner scrolls away with the mark, so the capsule stays at the top of the screen once it has gone. */
.hud-wrap { top: 0; }

/* ---------- The notch: the phone has its own, so the closed one is not drawn ----------
   The capsule fades in as it opens (200 ms) and out once it has folded back (240 ms). */
.hud-body { transition: box-shadow var(--d-4) var(--ease-standard), opacity 240ms var(--ease-standard); }
.hud-cap[data-state="hidden"] .hud-body { opacity: 0; box-shadow: none; }
.hud-cap:not([data-state="hidden"]) .hud-body { transition: box-shadow var(--d-4) var(--ease-standard), opacity 200ms var(--ease-out); }
.hud-sub { font-size: 13px; }
.hud-sub .k { font-size: 12px; }

/* ---------- The sale strip is the page's first row on a phone (css/site.css): it scrolls away with the mark,
   and the bar at the thumb keeps its own tag and clock. ---------- */
body.has-sale { padding-bottom: 0; }

/* ---------- The bar at the thumb (partials/phone-bar.html, js/phone.js) ----------
   One glass bar 64 px tall, 10 px in from the edges: the menu, the sale's tag and its clock, and Buy with the price.
   It rises (520 ms, out-expo) and sinks (320 ms, ease-in). */
.ph-bar { position: fixed; z-index: 66; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 64px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 8px 0 6px; border-radius: 20px;
  background: rgba(10, 10, 14, 0.74); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -10px #000;
  transition: transform 520ms var(--ph-ease); }
/* It is there from the first paint, before any script: Buy is on every first screen. It sinks (320 ms, ease-in) and
   comes back (520 ms, out-expo). On the full demo it waits for the game's pad to leave the screen. */
.ph-bar.down, body.tour .ph-bar:not(.live) { transform: translateY(calc(100% + 30px)); transition: transform 320ms var(--ease-in); }
body.tour .ph-bar:not(.live) { transition: none; }
body.thanks .ph-bar { grid-template-columns: 44px; right: auto; width: 64px; padding: 0 10px; }
body.thanks .ph-bar > :not(.ph-menu) { display: none; }
.ph-menu { position: relative; width: 44px; height: 44px; border-radius: 12px; }
.ph-menu i { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--text-1); transition: transform 420ms var(--ph-ease), top 280ms var(--ease-standard); }
.ph-menu i:nth-child(1) { top: 18px; } .ph-menu i:nth-child(2) { top: 25px; }
.ph-menu[aria-expanded="true"] i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.ph-menu[aria-expanded="true"] i:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.ph-sale { min-width: 0; display: grid; justify-items: start; gap: 3px; line-height: 1.15; }
.ph-sale .sale-tag { margin-left: 0; font-size: 13px; padding: 3px 8px 4px; }
.ph-clock .sc i { font-size: 13px; }
.ph-clock { font-size: 14px; font-weight: 560; white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }
.ph-clock .sc b { min-width: 1.1em; font-weight: 650; }
.ph-clock .sc b[data-u="d"] { min-width: 0; }
.ph-buy.btn { grid-column: 3; height: 46px; padding: 0 16px; border-radius: 13px; font-size: 15.5px; font-weight: 620; }
.ph-buy .price { opacity: 1; font-weight: 620; }
.ph-buy .price-was { opacity: 0.5; font-weight: 480; margin-right: 3px; }

/* The menu: a sheet that rises from the foot with a handle (460 ms, out-expo, rows 40 ms apart), and goes back down
   (280 ms, ease-in). The page dims under it (400 ms in, 280 ms out). */
.ph-scrim { position: fixed; inset: 0; z-index: 67; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 280ms var(--ease-in); }
.ph-scrim.open { opacity: 1; pointer-events: auto; transition: opacity 400ms var(--ph-ease); }
.ph-sheet { position: fixed; z-index: 68; left: 0; right: 0; bottom: 0; padding: 4px var(--ph-gut) calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #0b0b10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -30px 60px -20px #000; transform: translateY(105%); visibility: hidden;
  transition: transform 280ms var(--ease-in), visibility 0s linear 280ms; }
.ph-sheet.open { transform: none; visibility: visible; transition: transform 460ms var(--ph-ease), visibility 0s; }
.ph-handle { display: grid; place-items: center; width: 100%; height: 40px; }
.ph-handle::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.ph-sheet nav { display: grid; }
.ph-sheet nav a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-size: 21px; font-weight: 580; font-stretch: 108%; letter-spacing: -0.02em; color: var(--text-1); border-bottom: 1px solid var(--line-1);
  opacity: 0; transform: translateY(10px); transition: opacity 160ms var(--ease-in), transform 160ms var(--ease-in); }
.ph-sheet nav a[aria-current="page"] { color: var(--atmo-edge); }
.ph-sheet.open nav a { opacity: 1; transform: none; transition: opacity 380ms var(--ph-ease) calc(80ms + var(--i) * 40ms), transform 460ms var(--ph-ease) calc(80ms + var(--i) * 40ms); }
.ph-sheet nav svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-sheet-buy.btn { display: flex; width: 100%; height: 54px; margin-top: 18px; font-size: 16.5px; }
.ph-sheet-buy .sale-tag { margin-left: 4px; }

/* ---------- The foot: the mark, then the pages as two columns of 48 px rows ---------- */
.foot { padding: 30px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-grid { gap: 14px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 0; font-size: 16px; }
.foot-links a, .foot-ads { display: flex; align-items: center; min-height: 48px; color: var(--body); border-bottom: 1px solid var(--line-1); text-align: left; }
.foot-links a[aria-current="page"] { color: var(--atmo-edge); }
.foot-fine { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.foot .mark { font-size: 17px; min-height: 44px; }

/* ---------- Every page's last screen: the planet, tightened (home part 9, option A) ----------
   The line in two lights, Buy and the second link as full-width buttons, the sale's line, the money-back promise and
   the trial; the planet rises under them and sits on the foot (a 300 px limb, not 54% of the screen). */
.home-closer { min-height: 0; padding-top: 96px; padding-bottom: 210px; }
.home-closer .limb { --limb-h: 300px; }
.home-closer .hero-actions { display: grid; justify-content: stretch; justify-items: stretch; gap: 10px; width: 100%; margin-top: 26px; }
.home-closer .btn.xl { width: 100%; height: 54px; justify-content: center; font-size: 16.5px; }
.home-closer .fine-promise, .home-closer .closer-fine { font-size: 15px; }
.closer .promise-close { font-size: 2.6rem; }

/* ---------- What every page shares ---------- */
.skip { display: flex; align-items: center; min-height: 44px; }
.btn.xl { height: 54px; font-size: 16.5px; border-radius: 14px; }
.hero-actions { justify-content: stretch; }
.hero-actions .btn.xl { width: 100%; }
/* The trial's link stays inline (an inline-block made Firefox drop its underline and cut it into dashes at each "y");
   its 12 px of padding makes the tap taller without moving the line. */
.trial-line a { padding-block: 12px; text-decoration-skip-ink: none; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.copy { height: 44px; min-width: 72px; font-size: 14px; }
.codebox pre.code { padding-top: 56px; }
/* Links stay inline, so a long one wraps with the sentence and keeps a line under each part; the padding makes the tap taller. */
.link { padding-block: 12px; background-origin: content-box; background-clip: content-box; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.link:has(.arr) { white-space: nowrap; } /* a short link with an arrow keeps its arrow on its line */
.btn.ghost { color: var(--text-1); }
.btn .sale-tag { font-size: 13px; }
/* The planet's edge sits lower in its box, so only 84 px of its dark body comes before the foot. */
.home-closer .limb { --limb-top: 72%; }
.mono, code { font-size: max(0.9em, 13px); }
@media (prefers-reduced-motion: reduce) { .ph-bar, .ph-bar.down, .ph-sheet, .ph-sheet.open, .ph-scrim, .ph-sheet nav a, .ph-sheet.open nav a, .hud-body { transition: none !important; } }
