/* [phone] The light page for phones: html[data-phone] (index.html's head script: screen and pointer, never the user agent). The film does not boot;
   the words are the same real HTML every visitor gets (the HUD's light DOM and chapter 03's callouts), laid out here as a plain scrolling page.
   Nothing here hides a word. The body is a column; each part's `order` puts it where it reads. */
.ph-only { display: none; }

html[data-phone] { background: #170d08; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html[data-phone] body {
  display: flex; flex-direction: column; box-sizing: border-box; min-height: 100vh; margin: 0; padding: 0 16px;
  background: #170d08; color: #f0dfc4; font: 400 17px/1.55 Archivo, 'Helvetica Neue', Arial, sans-serif; overflow-x: hidden;
  --amber: #ffaf43; --cream: #f0dfc4; --dim: rgba(240, 223, 196, .62); --cta-gap: 56px;
}
html[data-phone] body > * { max-width: 100%; box-sizing: border-box; }
/* the film's parts do not exist here */
html[data-phone] #c, html[data-phone] #track, html[data-phone] #ui, html[data-phone] #cursor, html[data-phone] #caption, html[data-phone] #err,
html[data-phone] #intro, html[data-phone] #intro-t5 { display: none !important; }

/* the HUD host: no box; its words are body's flex items */
html[data-phone] #hud { display: contents !important; }
html[data-phone] #hud > * { display: block; margin: 0; max-width: 100%; text-wrap: pretty; overflow-wrap: break-word; }
html[data-phone] #hud > [data-part="body"], html[data-phone] #hud > [data-part="body"] p { display: block; }

html[data-phone] .ph-head { display: flex; order: 1; position: sticky; top: 0; z-index: 5; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; margin: 0 -16px; padding: 8px 16px; background: rgba(23, 13, 8, .94); border-bottom: 1px solid rgba(255, 175, 67, .22); }
html[data-phone] .ph-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--cream); text-decoration: none; font-size: 19px; font-weight: 500; }
html[data-phone] .ph-logo b { font-weight: 800; }

/* the heading and each chapter, in order */
html[data-phone] #hud > h1 { order: 2; margin-top: 32px; font-size: 30px; line-height: 1.12; font-weight: 400; letter-spacing: -.2px; color: var(--cream); text-wrap: balance; }
html[data-phone] #hud > h1 b { font-weight: 800; color: var(--amber); }
html[data-phone] #hud > [data-part="lead"] { margin-top: 72px; font-size: 20px; line-height: 1.3; font-weight: 300; color: var(--cream); text-wrap: balance; }
html[data-phone] #hud > [data-part="title"] { margin-top: 2px; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.5px; color: var(--amber); text-wrap: balance; }
html[data-phone] #hud > [data-part="body"] { margin-top: 20px; }
html[data-phone] #hud > [data-part="body"] p { margin: 0 0 16px; font-weight: 300; text-wrap: pretty; }
html[data-phone] #hud > [data-part="body"] p b { font-weight: 700; }
html[data-phone] #hud > [data-part="body"] > :last-child { margin-bottom: 0; }
html[data-phone] #hud > [data-part="statement"] { margin-top: 24px; font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--cream); text-wrap: balance; }
html[data-phone] #hud > [data-part="statement"] strong { font-weight: 800; color: var(--amber); }
html[data-phone] #hud > [slot="note"] { order: 15; margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--dim); }
html[data-phone] #hud > [data-ch="1"] { order: 11; } html[data-phone] #hud > [data-ch="1"][data-part="title"] { order: 12; } html[data-phone] #hud > [data-ch="1"][data-part="body"] { order: 13; } html[data-phone] #hud > [data-ch="1"][data-part="statement"] { order: 14; }
html[data-phone] #hud > [data-ch="2"] { order: 21; } html[data-phone] #hud > [data-ch="2"][data-part="title"] { order: 22; } html[data-phone] #hud > [data-ch="2"][data-part="body"] { order: 23; } html[data-phone] #hud > [data-ch="2"][data-part="statement"] { order: 24; }
html[data-phone] #hud > [data-ch="3"] { order: 31; } html[data-phone] #hud > [data-ch="3"][data-part="title"] { order: 32; } html[data-phone] #hud > [data-ch="3"][data-part="body"] { order: 33; } html[data-phone] #hud > [data-ch="3"][data-part="statement"] { order: 34; }
html[data-phone] #hud > [data-ch="4"] { order: 41; } html[data-phone] #hud > [data-ch="4"][data-part="title"] { order: 42; } html[data-phone] #hud > [data-ch="4"][data-part="body"] { order: 43; } html[data-phone] #hud > [data-ch="4"][data-part="statement"] { order: 44; }
html[data-phone] #hud > [data-ch="6"] { order: 61; } html[data-phone] #hud > [data-ch="6"][data-part="title"] { order: 62; } html[data-phone] #hud > [data-ch="6"][data-part="body"] { order: 63; } html[data-phone] #hud > [data-ch="6"][data-part="statement"] { order: 64; }

/* chapter 03's heading, then its five callouts as plain cards */
html[data-phone] #hud > [slot="head-title"] { order: 35; margin-top: 40px; font-size: 26px; line-height: 1.15; font-weight: 700; color: var(--amber); text-wrap: balance; }
html[data-phone] #hud > [slot="head-sub"] { order: 36; margin-top: 4px; font-size: 16px; color: var(--dim); }
html[data-phone] #callouts { display: flex !important; flex-direction: column; gap: 14px; order: 37; position: static; width: auto; height: auto; overflow: visible; opacity: 1 !important; margin-top: 20px; pointer-events: auto; }
html[data-phone] .co-box { position: static; width: auto !important; max-width: 100%; margin: 0; padding: 16px 18px; gap: 8px; translate: none; transform: none; clip-path: none; opacity: 1;
  background: rgba(0, 0, 0, .32); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid rgba(255, 175, 67, .5); border-radius: 12px; box-shadow: none; }
html[data-phone] .co-title, html[data-phone] .co-body { opacity: 1; translate: none; transition: none; }
html[data-phone] .co-title { white-space: normal; font-size: 20px; line-height: 1.2; text-wrap: balance; }
html[data-phone] .co-body { font-size: 16px; line-height: 1.5; letter-spacing: 0; font-weight: 300; }
html[data-phone] .co-body p { margin: 0 0 12px; text-wrap: pretty; } html[data-phone] .co-body p:last-child { margin: 0; }
html[data-phone] .co-body p.co-note { margin: 12px 0 0; font-size: 13px; line-height: 1.4; letter-spacing: 0; opacity: .7; }

/* See the app (after the first chapter, and at the end) and Join the beta */
html[data-phone] .ph-cta { display: flex; flex-direction: column; gap: 12px; margin-top: var(--cta-gap); }
html[data-phone] .ph-see-1 { order: 16; } html[data-phone] .ph-see-2 { order: 70; }
html[data-phone] .ph-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 52px; padding: 0 24px; border-radius: 12px; font: 700 17px/1 Archivo, 'Helvetica Neue', Arial, sans-serif; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html[data-phone] .ph-primary { background: var(--amber); color: #170d08; border: 1px solid var(--amber); }
html[data-phone] .ph-ghost { background: transparent; color: var(--amber); border: 1px solid rgba(255, 175, 67, .7); }
html[data-phone] .ph-head .ph-ghost { min-height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
html[data-phone] .ph-btn:focus-visible, html[data-phone] .ph-logo:focus-visible, html[data-phone] .ph-foot a:focus-visible, html[data-phone] #hud > a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
html[data-phone] .ph-btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { html[data-phone] .ph-btn:active { transform: none; } }

/* the one plain link to the inside page that the chapter bar's tab holds on a wide screen */
html[data-phone] #hud > a[slot^="tab-"] { order: 72; display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; color: var(--amber); text-decoration: underline; text-underline-offset: 4px; font-size: 16px; }

html[data-phone] .ph-foot { display: flex; order: 100; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 56px -16px 0; padding: 20px 16px 32px; border-top: 1px solid rgba(240, 223, 196, .16); }
html[data-phone] .ph-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); text-decoration: none; font-size: 15px; }
