/* The Immersive site. With the world on, the page is one fixed 3D place and the words are placed in it by world.js.
   Without it (reduced motion, no WebGL), the same words stack as a calm page with the rendered stills. */
.w-body { background: #050509; }
.w { --gold: #e6c170; --cy: #05d1e1; --txt: #f0f0f0; --txt2: #c4c4c8; color: var(--txt2); font-family: 'Onest', 'Onest Fallback', sans-serif; }
.w .k { font: 700 13px/1.2 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--cy); letter-spacing: 0.04em; margin: 0 0 10px; }
.w h1, .w h2 { font: 800 clamp(34px, 9.6vw, 46px)/1.02 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--txt); letter-spacing: -0.015em; margin: 0; }
.w h1 em, .w h2 em { font-style: normal; color: var(--gold); }
.w p { margin: 0; font-size: 17px; line-height: 1.5; }
.w .p > * + * { margin-top: 12px; }
.w .lead { color: var(--txt); }
.w .small { font-size: 15px; color: var(--txt2); }
.w a { color: var(--cy); text-underline-offset: 3px; }
.w p a, .w li a, .w label a { text-decoration: underline; text-decoration-thickness: 1px; }
.w .acts { display: flex; gap: 10px; margin-top: 16px; }
.w .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border-radius: 12px; text-decoration: none;
  font: 700 16px/1 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--txt); border: 1px solid #2a2c36; background: rgba(5, 5, 9, 0.7); cursor: pointer; }
.w .btn.pri { background: var(--cy); border-color: var(--cy); color: #04121a; }
.w .list, .w .steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.w .list li, .w .steps li { color: var(--txt); font-size: 17px; line-height: 1.4; padding-left: 24px; position: relative; }
.w .list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.w .steps { counter-reset: s; }
.w .steps li { counter-increment: s; padding-left: 30px; }
.w .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; font: 800 17px/1.4 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--gold); }
.w .p-card { display: block; text-decoration: none; color: var(--txt2); }
.w .p-card b { display: block; color: var(--txt); font: 800 22px/1.2 'Montserrat', 'Montserrat Fallback', sans-serif; margin-bottom: 6px; }
.w .p-card b::after { content: " \2192"; color: var(--cy); }
.w .p-card span { font-size: 16px; line-height: 1.45; }
.w .fine { font-size: 13px; color: #8a8c94; }
.sq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sq-form label { display: grid; gap: 5px; font-size: 13px; color: var(--txt2); }
.sq-form .sq-full { grid-column: 1 / -1; }
.sq-form input, .sq-form textarea { font: 16px/1.3 'Onest', 'Onest Fallback', sans-serif; color: var(--txt); background: #0b0c12; border: 1px solid #2a2c36; border-radius: 10px; padding: 11px 12px; width: 100%; box-sizing: border-box; }
.sq-form textarea { resize: none; }
.sq-form input:focus, .sq-form textarea:focus { outline: 2px solid var(--cy); outline-offset: 1px; }
.sq-check { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; font-size: 14px !important; }
.sq-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cy); }
.op-err { color: #ffb4a8; font-size: 14px; }

/* ---------- the plain page (reduced motion, no WebGL, ?static) ---------- */
html:not(.w3d) .w-load, html:not(.w3d) .w-track, html:not(.w3d) .w-chrome { display: none; }
html:not(.w3d) .m { position: relative; scroll-margin-top: 0; padding: 96px 22px 40px; max-width: 1180px; margin: 0 auto; display: grid; gap: 22px; }
html:not(.w3d) .m-still img { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; border-radius: 14px; }
html:not(.w3d) .p-glass { padding: 18px; border: 1px solid #1f212a; border-radius: 16px; background: #0b0c12; max-width: 620px; }
@media (min-width: 900px) {
  html:not(.w3d) .m:has(.m-still) { grid-template-columns: 1fr 1fr; align-content: center; column-gap: 56px; }
  html:not(.w3d) .m:has(.m-still) .p { grid-column: 1; }
  html:not(.w3d) .m-still { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  html:not(.w3d) .m-still img { max-height: 78vh; width: auto; }
  html:not(.w3d) .w h1, html:not(.w3d) .w h2 { font-size: clamp(46px, 4.4vw, 72px); }
}

/* ---------- the world ---------- */
html.w3d, html.w3d body { background: #050509; overscroll-behavior-y: none; }
/* the camera does its own easing; the page's smooth scrolling would make it glide through other moments when the screen changes */
html.w3d { scroll-behavior: auto; }
html.w3d .footer { display: none; }
html.w3d .m-still { display: none; }
.w-gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
html.w3d .w { position: fixed; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; outline: none; }
html.w3d .w-cam { position: absolute; inset: 0; }
html.w3d .m { position: absolute; left: 0; top: 0; width: 0; height: 0; }
html.w3d .p { position: absolute; left: 0; top: 0; width: min(560px, 44vw); box-sizing: border-box; opacity: 0; pointer-events: none; transform-origin: 0 0;
  will-change: transform, opacity; }
html.w3d .p.on { pointer-events: auto; }
html.w3d .p-head { width: min(760px, 48vw); text-shadow: 0 2px 18px rgba(5, 5, 9, 0.85); }
html.w3d .p-wide { width: min(600px, 46vw); }
html.w3d .p-form { width: min(600px, 46vw); }
html.w3d .p-glass { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px; background: rgba(8, 9, 14, 0.84); }
html.w3d .w h1, html.w3d .w h2 { font-size: clamp(40px, 5vw, 84px); line-height: 0.98; }
html.w3d .p-wide h2, html.w3d .p-form h2 { font-size: clamp(30px, 3vw, 48px); }
.w-track { width: 1px; }
html.w3d .w-track { position: relative; z-index: -1; pointer-events: none; }

.w-load { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 40; display: grid; justify-items: center; gap: 8px; text-align: center; pointer-events: none;
  font: 700 14px/1.2 'Montserrat', 'Montserrat Fallback', sans-serif; color: #c4c4c8; letter-spacing: 0.04em; transition: opacity 0.9s ease, visibility 0.9s; }
.w-load b { color: #05d1e1; font-variant-numeric: tabular-nums; }
.w-load span { display: block; width: 180px; height: 2px; background: #1a1c24; overflow: hidden; }
.w-load i { display: block; height: 100%; background: #05d1e1; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s ease; }
html.w3d-on .w-load { opacity: 0; visibility: hidden; }

.w-chrome { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 0 20px 16px; pointer-events: none; }
.w-acts { display: flex; gap: 8px; margin: 0; pointer-events: auto; transition: opacity 0.4s ease; }
.w-acts .btn { min-height: 40px; padding: 0 16px; border-radius: 999px; font: 700 13px/1 'Montserrat', 'Montserrat Fallback', sans-serif; text-decoration: none; display: inline-flex; align-items: center;
  color: #f0f0f0; border: 1px solid #2a2c36; background: rgba(8, 9, 14, 0.72); }
.w-acts .btn.pri { background: #05d1e1; border-color: #05d1e1; color: #04121a; }
html.w-own-acts .w-acts { opacity: 0; pointer-events: none; }
html.w-own-acts .w-acts a { visibility: hidden; }
.w-prog { position: fixed; right: 0; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.05); z-index: 20; pointer-events: none; }
.w-prog i { display: block; height: 100%; background: #05d1e1; transform: scaleY(0); transform-origin: 50% 0; opacity: 0.7; }
html:not(.w3d) .w-prog { display: none; }
.w-sound { pointer-events: auto; font: 700 12px/1 'Montserrat', 'Montserrat Fallback', sans-serif; letter-spacing: 0.06em; color: #c4c4c8; background: rgba(8, 9, 14, 0.7); border: 1px solid #2a2c36; border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.w-sound[aria-pressed="true"] { color: #05d1e1; border-color: #05d1e1; }

/* phones: the same world, words at the top and the actions in thumb reach */
html.w3d.w-phone .p, html.w3d.w-phone .p-head, html.w3d.w-phone .p-wide, html.w3d.w-phone .p-form { width: calc(100vw - 40px); max-width: 480px; }
html.w3d.w-phone .w h1, html.w3d.w-phone .w h2 { font-size: clamp(34px, 10vw, 46px); }
html.w3d.w-phone .p-wide h2, html.w3d.w-phone .p-form h2 { font-size: clamp(26px, 7.4vw, 34px); }
html.w3d.w-phone .p-glass { padding: 16px; background: rgba(8, 9, 14, 0.84); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.w3d.w-phone .p-form .sq-form { gap: 8px; }
html.w3d.w-phone .p-form .sq-form input, html.w3d.w-phone .p-form .sq-form textarea { padding: 8px 10px; }
html.w3d.w-phone .p-form .sq-form label { font-size: 12px; gap: 3px; }
html.w3d.w-phone .p-form .small { font-size: 13px; line-height: 1.4; }
html.w3d.w-phone .p-form > * + * { margin-top: 8px; }
html.w3d.w-phone .p-form .btn { min-height: 46px; font-size: 15px; padding: 0 10px; text-align: center; }
html.w3d.w-phone .w-chrome { padding: 0 14px 12px; }
html.w3d.w-phone .list li, html.w3d.w-phone .steps li { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .w-load { transition: none; } }

/* in the world the header is only the mark and the menu, so nothing sits over the scene but what you need */
html.w3d .nav .nav-links { display: none; }
html.w3d .nav .nav-burger { display: flex; }
html.w3d .nav.shrunk { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.w-acts .btn { min-height: 44px; }
/* on phones the buy form keeps its labels for screen readers and shows them as placeholders, so the crew stays in view above it */
html.w3d.w-phone .p-form .sq-form label:not(.sq-check) { font-size: 11px; gap: 2px; }
html.w3d.w-phone .p-form .sq-form input, html.w3d.w-phone .p-form .sq-form textarea { font-size: 16px; }
/* short phones (an SE and smaller): tighter type in the panels so the figures keep their room */
html.w3d.w-short .w h1, html.w3d.w-short .w h2 { font-size: 30px; }
html.w3d.w-short .p-wide h2, html.w3d.w-short .p-form h2 { font-size: 24px; }
html.w3d.w-short .list li, html.w3d.w-short .steps li { font-size: 14px; line-height: 1.3; }
html.w3d.w-short .list, html.w3d.w-short .steps { gap: 5px; }
html.w3d.w-short .w p { font-size: 14px; line-height: 1.4; }
html.w3d.w-short .w .small { font-size: 12.5px; }
html.w3d.w-short .p-glass { padding: 12px 14px; }
html.w3d.w-short .p-form .sq-form { gap: 6px; margin-top: 8px; }
html.w3d.w-short .p-form .sq-form input { padding: 6px 9px; }
html.w3d.w-short .p-form > * + * { margin-top: 6px; }
html.w3d.w-short .p-form .btn { min-height: 42px; }
html.w3d.w-short .w .acts .btn { min-height: 46px; }

/* the opening words stand in the scene: no box, large type with the price and actions under it */
html.w3d .p-hero { width: min(640px, 44vw); }
html.w3d .p-hero .lead { color: #f0f0f0; max-width: 30em; }
html.w3d.w-phone .p-hero { padding-bottom: 4px; }
/* on short phones the mark steps aside while the buy form is up, so it never sits on the crew */
html.w3d.w-short.w-at-buy .nav-logo { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
html.w3d .p-hero .acts .btn { flex: 0 0 auto; min-width: 150px; }
html.w3d.w-phone .p-card { width: min(300px, calc(100vw - 72px)); }

/* before the live world is ready: the night sky and the glow of the road, with the opening words already in place; the world fades in behind them */
html.w3d body { background: radial-gradient(120% 60% at 50% 100%, #10202a 0%, #0a0c14 45%, #050509 80%); background-attachment: fixed; }
.w-gl { opacity: 0; transition: opacity 1.1s ease; }
html.w3d-on .w-gl { opacity: 1; }
html.w3d:not(.w3d-on) .m-hero .p { opacity: 1; pointer-events: auto; transform-origin: 0 0; transform: translate(7vw, 28vh); }
html.w3d.w-phone:not(.w3d-on) .m-hero .p { transform: translate(18px, calc(100svh - 74px)) translateY(-100%); }
html.w3d:not(.w3d-on) .w-load { bottom: auto; top: 0; opacity: 0; }
html.w3d.w3d-loading:not(.w3d-on) .w-load { opacity: 1; }
html.w3d:not(.w3d-on) .w-load p { display: none; }
html.w3d .w-load span { width: 100vw; }
html.w3d:not(.w3d-on) .w-acts { opacity: 0; pointer-events: none; }
html.w3d .w-track { height: calc(115vh * 8 + 100vh); }
/* a phone on its side gets the calm page: words left, the still right, nothing taller than the screen */
@media (orientation: landscape) and (max-height: 520px) {
  html:not(.w3d) .m { padding-top: 64px; }
  html:not(.w3d) .w h1, html:not(.w3d) .w h2 { font-size: 30px; }
  html:not(.w3d) .w .acts { margin-top: 10px; }
  html:not(.w3d) .w .btn { min-height: 44px; }
  html:not(.w3d) .m:has(.m-still) { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 24px; }
  html:not(.w3d) .m:has(.m-still) .p { grid-column: 1; }
  html:not(.w3d) .m-still { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  html:not(.w3d) .m-still img { max-height: 78vh; width: auto; }
}

/* the opening frame of the world, rendered from it, shown dim from first paint with a slow drift; the live world crossfades over it */
.w-poster { display: none; }
html.w3d .w-poster { display: block; position: fixed; inset: 0; z-index: 0; opacity: 0.5; transition: opacity 1.2s ease, visibility 1.2s; pointer-events: none; }
html.w3d .w-poster img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; max-height: none; display: block; opacity: 0; animation: w-drift 26s ease-in-out infinite alternate; }
html.w3d.w-still .w-poster img { opacity: 1; }
/* a soft edge, in case a very unusual screen shape reaches past the still */
html.w3d .w-poster img { -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(transparent, #000 4%, #000 96%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }
@keyframes w-drift { from { transform: scale(1); } to { transform: scale(1.03); } }
html.w3d-on .w-poster { opacity: 0; visibility: hidden; }
html.w3d-on .w-poster img { animation-play-state: paused; }
html.sale-over [data-sale] { display: none !important; }
html.sale-over [data-after] { display: inline !important; }
/* The loading words live here, not in the page text, so readers never see "Building the world 0%". */
.w-load p::before { content: "Building the world "; }
.w-load b:empty::before { content: "0%"; }
