/* Wondo landing (/). Two variants from one page: <html data-variant="desktop|mobile">, set by the server from the
   User-Agent and corrected in the head script. Desktop: play first, QR to the phone. Mobile: get the app first. */
@font-face { font-family: "Outfit"; src: url(/fonts/outfit.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --canvas: #e3ebfb; --canvas-deep: #d3dff7; --surface: #f2f6fe; --line: #c9d5ee;
  --text: #0e1a3a; --text-2: #435177;
  --primary: #1f5cff; --primary-hover: #1a4fe0; --primary-rgb: 31 92 255;
  --night: #0b1636; --night-2: #13235a;
  --lamp: #ffd88a; --lamp-rgb: 255 200 110;
  --display: "Outfit", ui-rounded, system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: clamp(16px, 4vw, 64px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.55, .5, 1);
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 17px/1.45 var(--sans); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, video, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 18px; border: 0;
  font: 700 18px/1 var(--display); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, box-shadow .18s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 16px 34px -14px rgb(var(--primary-rgb) / .9), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.light { background: rgba(236, 242, 255, .9); color: var(--text); box-shadow: 0 14px 30px -16px rgba(5, 12, 36, .6), inset 0 1px 0 rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.light:hover { background: #f2f6fe; }
.btn.huge { width: 100%; min-height: 68px; border-radius: 22px; font-size: 21px; }
.text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; font: 700 16px/1 var(--display); color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .5); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
[data-variant="desktop"] .cta-mobile, [data-variant="mobile"] .cta-desktop { display: none; }
.cta-mobile { flex-direction: column; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- top bar */
.bar { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) var(--gut) 0; pointer-events: none; }
.bar > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(150deg, #3d78ff, #1f5cff 55%, #1747d6); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgb(31 92 255 / .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.logo-mark svg { width: 28px; height: 28px; }
.logo-word { font: 800 27px/1 var(--display); letter-spacing: -.035em; }
.bar .logo-word { color: #fff; text-shadow: 0 1px 14px rgba(5, 12, 36, .45); }
.bar-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(9, 18, 48, .32); color: #fff; font: 700 16px/1 var(--display); text-decoration: none;
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background-color .18s; }
.bar-link:hover { background: rgba(9, 18, 48, .5); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; color: #fff; isolation: isolate;
  background: #cfdcf3 url(/media/landing/hero-16x9-poster.webp) center / cover no-repeat; }
[data-variant="mobile"] .hero { min-height: 560px; background-image: url(/media/landing/hero-9x16-poster.webp); }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .9s var(--ease); }
.hero-film.on { opacity: 1; }
/* tuned against every frame of the hero films: the headline keeps ≥ 4.5:1 (node tools/hero-contrast.mjs) */
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 16, 46, .38), rgba(8, 16, 46, 0) 20%),
    radial-gradient(100% 90% at 0% 100%, rgba(7, 14, 42, .86), rgba(7, 14, 42, .64) 45%, rgba(7, 14, 42, 0) 78%),
    linear-gradient(to top, rgba(7, 14, 42, .58), rgba(7, 14, 42, 0) 48%); }
.hero-copy { position: absolute; left: var(--gut); bottom: clamp(36px, 8vh, 88px); max-width: min(760px, 62vw); }
h1 { margin: 0 0 30px; font: 800 clamp(52px, 7.4vw, 124px)/.9 var(--display); letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 1px 3px rgba(5, 12, 36, .3), 0 2px 30px rgba(5, 12, 36, .4); }

/* QR to the phone (desktop only) */
.qr-card { position: absolute; right: calc(var(--gut) + 60px); bottom: clamp(36px, 8vh, 88px); display: grid; justify-items: center; gap: 8px; padding: 12px 12px 12px; border-radius: 22px;
  background: rgba(236, 242, 255, .9); color: var(--text); box-shadow: 0 24px 50px -24px rgba(5, 12, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.qr { width: 132px; aspect-ratio: 1; border-radius: 12px; background: #f6f9ff; color: var(--night); overflow: hidden; }
.qr svg { width: 100%; height: 100%; }
.qr-card span { font: 700 15px/1 var(--display); padding-bottom: 2px; }
[data-variant="mobile"] .qr-card { display: none; }

.film-toggle { position: absolute; right: var(--gut); bottom: clamp(36px, 8vh, 88px); width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(9, 18, 48, .38); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.film-toggle svg { width: 20px; height: 20px; }
.film-toggle .i-play, .film-toggle[aria-pressed="true"] .i-pause { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }

/* ---------------------------------------------------------------- the floor indicator */
.dial { position: absolute; z-index: 4; top: max(14px, env(safe-area-inset-top)); left: 50%; translate: -50% 0; width: clamp(180px, 17vw, 236px); display: grid; justify-items: center; gap: 8px;
  filter: drop-shadow(0 18px 26px rgba(5, 12, 36, .45)); }
.dial-face { width: 100%; height: auto; overflow: visible; }
.dial-ticks line { stroke: #f2dca6; stroke-linecap: round; opacity: .55; }
.dial-ticks line.major { opacity: .9; }
.dial-labels text { font: 700 13px/1 var(--display); fill: #f2dca6; opacity: .5; text-anchor: middle; dominant-baseline: central; transition: opacity .4s, fill .4s; }
.dial-labels text.on { opacity: 1; fill: var(--lamp); filter: url(#lamp); }
.lamp { fill: #3a3424; transition: fill .3s; }
.lamp.on { fill: var(--lamp); filter: url(#lamp); }
.needle { transform-box: view-box; transform-origin: 130px 134px; transform: rotate(var(--a, -80deg)); transition: transform 1.25s var(--spring); }
.dial.idle .needle { animation: tremble 3.2s ease-in-out infinite; }
@keyframes tremble { 0%, 100% { transform: rotate(var(--a)); } 40% { transform: rotate(calc(var(--a) + .7deg)); } 70% { transform: rotate(calc(var(--a) - .4deg)); } }
.dial-plate { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 70%; padding: 8px 16px 9px; border-radius: 12px; background: linear-gradient(#13245c, #0b1636); box-shadow: inset 0 0 0 1.5px #c99a4a, inset 0 2px 0 rgba(255, 240, 200, .25); }
.dial-n { font: 800 15px/1 var(--display); color: #f2dca6; opacity: .75; transition: opacity .25s; }
.dial-name { display: block; font: 700 15px/1 var(--display); letter-spacing: .01em; color: var(--lamp); text-shadow: 0 0 10px rgb(var(--lamp-rgb) / .6); white-space: nowrap; transition: opacity .25s; }
.dial-plate.swap .dial-name, .dial-plate.swap .dial-n { opacity: 0; }

/* ---------------------------------------------------------------- pick a floor */
.floors { padding: clamp(72px, 10vw, 132px) var(--gut) clamp(64px, 8vw, 112px); }
h2 { margin: 0 0 clamp(28px, 4vw, 48px); font: 800 clamp(40px, 5vw, 76px)/.95 var(--display); letter-spacing: -.04em; color: var(--text); }
.floors-stage { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: stretch; max-width: 1480px; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; background: #c9d6f0 center / cover no-repeat; box-shadow: 0 40px 80px -36px rgba(14, 26, 58, .55), 0 0 0 1px rgba(14, 26, 58, .06); }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s var(--ease); }
.screen video.on { opacity: 1; }
.screen-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 64px 28px 24px; color: #fff;
  background: linear-gradient(to top, rgba(7, 14, 42, .72), rgba(7, 14, 42, 0)); }
.cap-n { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; font: 800 26px/1 var(--display); color: #3a2608;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #e7b95c 45%, #a8742c 100%); box-shadow: 0 0 0 3px rgba(255, 216, 138, .35), 0 0 26px rgb(var(--lamp-rgb) / .55); }
.cap-name { display: block; font: 800 clamp(24px, 2.4vw, 34px)/1.05 var(--display); letter-spacing: -.025em; }
.cap-line { display: block; margin-top: 4px; font-size: 17px; color: rgba(255, 255, 255, .86); }

/* the lift panel */
.panel { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 10px 14px; padding: clamp(20px, 2vw, 30px); border-radius: 30px;
  background: radial-gradient(130% 90% at 50% 0%, var(--night-2), var(--night)); box-shadow: 0 40px 80px -36px rgba(14, 26, 58, .6), inset 0 0 0 1.5px rgba(201, 154, 74, .55), inset 0 0 0 7px var(--night), inset 0 0 0 8px rgba(201, 154, 74, .22); }
.fl { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 8px 10px; border: 0; border-radius: 18px; background: none; text-align: left; cursor: pointer; color: #dfe7ff; transition: background-color .2s; -webkit-tap-highlight-color: transparent; }
.fl:hover { background: rgba(255, 255, 255, .05); }
.fl-n { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; font: 800 19px/1 var(--display); color: #4a3412;
  background: radial-gradient(circle at 35% 30%, #fbe7b3, #cf9f4c 50%, #8e6125 100%); box-shadow: inset 0 -3px 6px rgba(70, 40, 5, .45), inset 0 2px 2px rgba(255, 248, 220, .6), 0 3px 8px rgba(0, 0, 0, .4);
  transition: box-shadow .3s, color .3s, transform .15s var(--ease); }
.fl:active .fl-n { transform: scale(.94) translateY(1px); }
.fl-name { font: 700 17px/1.15 var(--display); letter-spacing: -.01em; }
.fl[aria-checked="true"] .fl-n { color: #5a3a06; background: radial-gradient(circle at 35% 30%, #fff6d6, #ffd27a 50%, #d29a3a 100%);
  box-shadow: inset 0 -3px 6px rgba(120, 70, 5, .35), inset 0 2px 2px rgba(255, 255, 240, .8), 0 0 0 3px rgba(255, 216, 138, .35), 0 0 24px rgb(var(--lamp-rgb) / .75); }
.fl[aria-checked="true"] .fl-name { color: var(--lamp); }
.fl:focus-visible { outline-color: var(--lamp); }

/* phone: a strip of floors you swipe through */
.strip { display: none; }
[data-variant="mobile"] .floors-stage { display: none; }
[data-variant="mobile"] .strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 18px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(82vw, 420px); scroll-snap-align: center; }
.card-film { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #c9d6f0 center / cover no-repeat; box-shadow: 0 24px 44px -26px rgba(14, 26, 58, .6); }
.card-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.card-film video.on { opacity: 1; }
.card .cap-n { position: absolute; left: 14px; top: 14px; width: 48px; height: 48px; font-size: 19px; box-shadow: 0 0 0 3px rgba(255, 216, 138, .3), 0 4px 14px rgba(0, 0, 0, .35); }
.card h3 { margin: 14px 4px 2px; font: 800 22px/1.1 var(--display); letter-spacing: -.02em; }
.card p { margin: 0 4px; color: var(--text-2); font-size: 16px; }

/* ---------------------------------------------------------------- closing band */
.last { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--night); isolation: isolate; }
.last img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; }
.last::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 14, 42, .82), rgba(7, 14, 42, .1) 55%, rgba(7, 14, 42, 0)); }
.last-copy { padding: 0 var(--gut) clamp(48px, 8vh, 96px); }
.last h2 { color: #fff; text-shadow: 0 2px 30px rgba(5, 12, 36, .4); }

.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 36px var(--gut) calc(36px + var(--safe-b)); background: var(--canvas-deep); color: var(--text-2); }
.foot .logo-word { font-size: 21px; color: var(--text); }
.foot .logo-mark { width: 32px; height: 32px; border-radius: 11px; }
.foot .logo-mark svg { width: 22px; height: 22px; }
.foot nav { display: flex; gap: 6px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; text-decoration: none; border-radius: 10px; color: var(--text); }
.foot nav a:hover { background: rgba(14, 26, 58, .06); }
.foot small { margin-left: auto; font-size: 14px; }

/* ---------------------------------------------------------------- phone variant */
[data-variant="mobile"] .hero-copy { left: var(--gut); right: var(--gut); max-width: none; bottom: calc(18px + var(--safe-b)); text-align: center; }
/* the copy and the big button sit low, over snow and clouds: a deeper night at the bottom keeps them readable */
[data-variant="mobile"] .hero-shade { background: linear-gradient(to bottom, rgba(8, 16, 46, .42), rgba(8, 16, 46, 0) 24%),
  linear-gradient(to top, rgba(7, 14, 42, .9), rgba(7, 14, 42, .66) 26%, rgba(7, 14, 42, 0) 54%); }
[data-variant="mobile"] h1 { font-size: clamp(44px, 12.5vw, 88px); margin-bottom: 22px; }
/* on a tablet the big button stays a thumb's width, not the whole screen */
[data-variant="mobile"] .cta-mobile { max-width: 520px; margin-inline: auto; }
[data-variant="mobile"] .film-toggle { top: calc(max(18px, env(safe-area-inset-top)) + 56px); bottom: auto; right: var(--gut); width: 44px; height: 44px; }
[data-variant="mobile"] .dial { top: calc(max(14px, env(safe-area-inset-top)) + 54px); width: 148px; gap: 6px; }
[data-variant="mobile"] .dial-plate { padding: 6px 12px 7px; }
[data-variant="mobile"] .dial-name, [data-variant="mobile"] .dial-n { font-size: 13px; }
[data-variant="mobile"] .bar-link { min-height: 40px; padding: 0 16px; }
[data-variant="mobile"] .last { min-height: 92svh; }
[data-variant="mobile"] .last-copy { width: 100%; text-align: center; padding-bottom: calc(28px + var(--safe-b)); }
[data-variant="mobile"] .foot small { margin-left: 0; width: 100%; }
@media (max-width: 900px) {
  .floors-stage { grid-template-columns: 1fr; }
  .qr-card { display: none; }
}
@media (max-width: 380px) {
  .logo-word { font-size: 23px; }
  .logo-mark { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .needle, .hero-film, .screen video, .card-film video, .dial-name, .dial-n { transition: none; }
  .dial.idle .needle { animation: none; }
}
