/* Worren landing page (on top of base.css). */

/* ── INTRO: "the era of personal software is here", once a session, on primary 400 ── */
.intro-layer { display: none; }
html.intro .intro-layer { display: block; position: fixed; inset: 0; z-index: 100; background: var(--primary-400); }
html.intro .intro-layer.playing { background: transparent; }
html.intro body { overflow: hidden; }
#intro-canvas { width: 100%; height: 100%; }
.intro-skip {
  position: absolute; right: 20px; bottom: 20px; font: 500 13px/1 var(--font); letter-spacing: .04em;
  color: var(--primary-900); background: transparent; border: 1px solid var(--primary-900); padding: 9px 14px; cursor: pointer;
  transition: opacity .3s;
}
.intro-skip:hover { background: var(--primary-900); color: var(--secondary-500); }
.intro-layer.leaving .intro-skip { opacity: 0; pointer-events: none; }

/* ── HERO ── */
.hero { position: relative; background: var(--secondary-500); text-align: center; overflow: clip; padding: calc(clamp(10px, 1.6vw, 20px) + 76px) 0 0; }
@media (max-width: 820px) { .hero { padding-top: calc(clamp(10px, 1.6vw, 20px) + 64px); } }
.headline {
  position: relative; z-index: 2; margin: clamp(56px, 8.3vw, 106px) auto 0; padding: 0 var(--gutter);
  font-weight: 400; font-size: clamp(36px, 4.7vw, 60px); line-height: 1.12; letter-spacing: -0.025em; color: var(--n700);
}
.hl { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: baseline; column-gap: .25em; }
.hl-word { white-space: nowrap; }
.hl-slot { display: inline-block; white-space: nowrap; text-align: left; }
.hl-slot.moving { transition: width .3s steps(4, end); }
.hl-text { color: var(--primary-400); }
html.motion .hl-text { visibility: hidden; }
html.motion .hl-text.shown { visibility: visible; }
.hl-unveil { position: absolute; left: -48px; top: -40px; width: calc(100% + 96px); height: calc(100% + 80px); pointer-events: none; }

/* the App Store badge waits for launch: no link, a tooltip instead */
.store {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 9px; height: 50px; margin-top: clamp(20px, 2.9vw, 37px);
  padding: 0 18px 0 14px; background: var(--n900); color: var(--n000); border-radius: 9px; text-align: left; cursor: default;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.store svg { width: 26px; height: 30px; fill: currentColor; margin-top: -2px; }
.store > span:not(.tip) { display: grid; line-height: 1; }
.store small { font-size: 11.5px; letter-spacing: .03em; }
.store b { font-size: 23px; font-weight: 500; letter-spacing: -.015em; margin-top: 1px; }
.store .tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 8px 11px; white-space: nowrap; pointer-events: none;
  font: 500 13px/1.2 var(--font); color: var(--n000); background: var(--n800);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .15s steps(2), transform .15s steps(2), visibility 0s .15s;
}
.store .tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--n800); }
.store:hover .tip, .store:focus-visible .tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .15s steps(2), transform .15s steps(2), visibility 0s; }

/* the Orbit shader: the phone, its ring, and the ring's near side cutting the phone off */
/* the Orbit config fits the phone in 0.82 of the canvas; this one is taller so the phone keeps its size and the ring runs on below the screen */
.hero-art { position: relative; z-index: 1; height: calc(clamp(560px, 70vw, 980px) * 1.1 / 0.82); margin-top: clamp(-40px, -2vw, -12px); }
#hero-orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { display: none; position: absolute; top: 0; left: 50%; width: clamp(760px, 112vw, 1640px); max-width: none; height: auto; transform: translateX(-50%); }
.hero-art.still .hero-still { display: block; }
.hero-art.still #hero-orbit { display: none; }

/* ── ROUTE: the line an app travels (paths drawn by site.js) ── */
.route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.route path { fill: none; stroke: var(--secondary-400); stroke-width: 1.6; visibility: hidden; } /* drawn behind the app as it travels */

/* ── APP TILE (orbit, traveler) ── */
.app-tile { position: absolute; left: 0; top: 0; width: var(--tile); display: grid; justify-items: center; gap: 6px; will-change: transform; }
.app-tile img, .traveler img { width: var(--tile); height: var(--tile); }
.app-tile span, .traveler span { font-size: clamp(11px, 1.1vw, 14px); line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; color: var(--secondary-800); white-space: nowrap; }
.app-tile.away { visibility: hidden; }

/* ── WHY: orbit ── */
.orbit { position: relative; overflow-x: clip; padding: clamp(32px, 5.8vw, 74px) 0 clamp(40px, 5vw, 64px); }
.orbit-stage { position: relative; z-index: 1; width: min(940px, calc(100% - 2 * var(--gutter))); height: clamp(520px, 50vw, 640px); margin: 0 auto; touch-action: pan-y; user-select: none; }
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-rings ellipse { fill: none; stroke-width: 2.4; stroke-dasharray: 11 9; }
.orbit-rings .dark { stroke: var(--secondary-500); }
.orbit-rings .light { stroke: var(--secondary-200); stroke-width: 2; stroke-dasharray: 10 10; }
.orbit-copy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 62%; text-align: center; z-index: 1; }
.orbit-copy .sub { display: inline-block; margin-top: 26px; text-align: left; }
.orbit-apps { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 680px) {
  .orbit-stage { height: 620px; }
  .orbit-copy { max-width: 50%; } .orbit-copy .h2 { font-size: 26px; } .orbit-copy .sub { margin-top: 14px; font-size: 14px; line-height: 18px; }
}

/* ── STORIES: pinned while the phone builds the app ── */
.story { position: relative; height: 300vh; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.stop { position: absolute; width: var(--tile); height: var(--tile); }
#stop-1 { left: max(var(--gutter), calc(50% - 640px + 47px)); top: 42%; margin: calc(var(--tile) / -2) 0 0 calc(10vw - var(--tile) / 2 + 30px); }
.story-copy { position: absolute; left: max(var(--gutter), calc(50% - 640px + 47px)); top: calc(42% + var(--tile) / 2 + 48px); width: min(440px, 40%); z-index: 1; }
.story-copy .sub { margin-top: 10px; }
.phone { position: relative; aspect-ratio: 820 / 1671; z-index: 1; }
.story .phone { position: absolute; top: calc(50% + 40px); right: max(var(--gutter), calc(50% - 640px + 172px)); height: min(783px, calc(100svh - 150px)); transform: translateY(-50%); }
@media (max-width: 760px) {
  #stop-1 { left: var(--gutter); top: 20%; margin: calc(var(--tile) / -2) 0 0 6vw; }
  .story-copy { top: calc(20% + var(--tile) / 2 + 30px); width: auto; right: var(--gutter); background: var(--n902); padding-bottom: 6px; } /* the route passes behind it */
  .story .phone { top: auto; bottom: 20px; right: var(--gutter); height: min(52svh, 460px); transform: none; }
}

/* ── PHONE: a frame image over a live HTML screen. Inside, 1cqw ≈ 3.3px at full size ── */
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone-screen {
  position: absolute; left: 5.352%; top: 2.582%; width: 89.161%; height: 95.033%;
  border-radius: 16.4% / 7.55%; overflow: hidden; background: var(--n000); container-type: inline-size;
  color: var(--n800); font-size: 4.8cqw; line-height: 1.35; text-align: left;
}
.ps-status { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 15cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.2cqw 8cqw 0 14cqw; font-size: 4.8cqw; font-weight: 600; }
.ps-island { position: absolute; left: 50%; top: 3.4cqw; width: 33cqw; height: 9.6cqw; margin-left: -16.5cqw; background: var(--n900); border-radius: 6cqw; }
.ps-icons { display: flex; align-items: center; gap: 1.6cqw; }
.ps-icons svg { height: 3.6cqw; width: auto; fill: currentColor; }
.ps-view { position: absolute; inset: 0; padding-top: 15cqw; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .18s steps(3), visibility 0s .18s; background: var(--n000); }
.ps-view.on { opacity: 1; visibility: visible; transition: opacity .18s steps(3), visibility 0s; }
.ps-head { position: relative; display: flex; align-items: center; justify-content: center; height: 13cqw; font-size: 5.2cqw; }
.ps-head svg { position: absolute; left: 5cqw; width: 4.2cqw; height: 4.2cqw; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ps-progress { height: 1.6cqw; margin-top: 1.5cqw; background: var(--n902); }
.ps-progress i { display: block; height: 100%; background: var(--n400); }
.ps-prompt { padding: 6cqw 6cqw 0; font-size: 6cqw; line-height: 1.35; }
.caret { display: inline-block; width: .5cqw; height: 6.6cqw; margin-left: .3cqw; vertical-align: -1.2cqw; background: var(--primary-400); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ps-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 4.2cqw 11cqw; font-size: 3.6cqw; }
.ps-foot u { color: var(--primary-500); text-underline-offset: .6cqw; }
.ps-next { padding: 2.6cqw 3cqw; background: var(--primary-400); color: var(--n800); font-weight: 400; transition: background .1s steps(2); }
.ps-next.pressed { background: var(--primary-600); color: var(--n000); }
.ps-h { padding: 6cqw 6cqw 1cqw; font-size: 6cqw; font-weight: 400; line-height: 1.25; }
.ps-fields { list-style: none; display: grid; gap: 2cqw; padding: 4cqw 4.8cqw 0; }
.ps-fields li { display: flex; justify-content: space-between; align-items: baseline; gap: 3cqw; padding: 3.4cqw 3.6cqw; background: var(--n902); font-size: 4.6cqw; opacity: 0; transform: translateY(2cqw); transition: opacity .2s steps(3), transform .2s steps(3); }
.ps-fields li.in { opacity: 1; transform: none; }
.ps-fields small { font-size: 3.5cqw; color: var(--n500); }
.v-build { background: var(--secondary-500); justify-content: center; align-items: center; gap: 6cqw; padding: 0 10cqw; }
.ps-line { display: flex; align-items: center; gap: 2.6cqw; font-size: 4.6cqw; color: var(--primary-900); min-height: 7cqw; }
.ps-line .blk { width: 3.6cqw; height: 3.6cqw; background: var(--primary-400); animation: flip .5s steps(2) infinite; }
@keyframes flip { 50% { background: var(--primary-800); transform: rotate(45deg) scale(.7); } }
.ps-bar { display: grid; grid-template-columns: repeat(16, 1fr); gap: 1.2cqw; width: 100%; }
.ps-bar i { aspect-ratio: 1; background: rgb(255 255 255 / .35); }
.ps-bar i.on { background: var(--primary-400); }
.ps-bar i.on:nth-child(3n) { background: var(--primary-600); }
.v-app { padding-left: 5cqw; padding-right: 5cqw; gap: 4.4cqw; }
.ps-apphead { display: grid; gap: .6cqw; padding-top: 3cqw; }
.ps-apphead small { font-size: 3.8cqw; color: var(--primary-500); }
.ps-apphead b { font-size: 9cqw; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.ps-apphead em { font-style: normal; font-size: 4cqw; font-weight: 400; letter-spacing: 0; color: var(--n500); }
.ps-chart { display: grid; gap: 1.1cqw; }
.ps-chart i { aspect-ratio: 1; background: var(--n902); }
.ps-chart i.on { background: var(--c); }
.ps-list { list-style: none; display: grid; gap: 1.6cqw; }
.ps-list li, .ps-records li { display: flex; align-items: center; gap: 2.8cqw; min-height: 12cqw; padding: 2.4cqw 3cqw; background: var(--n902); opacity: 0; transition: opacity .2s steps(3); }
.ps-list li.in, .ps-records li.in { opacity: 1; }
.ps-list li::before, .ps-records li::before { content: ""; width: 1.3cqw; height: 1.3cqw; background: var(--n800); flex-shrink: 0; }
.ps-list div, .ps-records div { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.ps-list b, .ps-records b { font-weight: 500; font-size: 4cqw; }
.ps-list small, .ps-records small { font-size: 3.3cqw; color: var(--n500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-list span, .ps-records span { font-size: 3.6cqw; color: var(--n500); flex-shrink: 0; }
.ps-cta { margin: auto 0 9cqw; padding: 3.4cqw; text-align: center; background: var(--primary-400); color: var(--n800); font-size: 4.2cqw; }
.v-data { padding-bottom: 8cqw; }
.ps-tabs { display: flex; gap: 6cqw; padding: 2cqw 6cqw 0; font-size: 4.4cqw; color: var(--n400); border-bottom: 1px solid var(--n200); }
.ps-tabs span { padding-bottom: 2.2cqw; }
.ps-tabs .on { color: var(--n800); box-shadow: inset 0 -.6cqw 0 var(--primary-400); }
.ps-records { list-style: none; display: grid; gap: 1.6cqw; padding: 4cqw 5cqw 0; }
.v-charts { gap: 3.4cqw; }
.ps-card { display: grid; gap: 2cqw; margin: 0 5cqw; padding: 3cqw; background: var(--n902); }
.ps-card small { font-size: 3.4cqw; color: var(--n500); }
.ps-card .ps-chart i { background: var(--n200); }
.ps-card .ps-chart i.on { background: var(--c); }
.ps-note { display: flex; align-items: center; gap: 2.4cqw; margin: auto 5cqw 0; padding: 3cqw 3.4cqw; font-size: 3.4cqw; color: var(--secondary-900); background: var(--secondary-200); }
.ps-note i { width: 2.4cqw; height: 2.4cqw; background: var(--primary-400); flex-shrink: 0; }
.ps-export { display: flex; gap: 2cqw; padding: 2.4cqw 5cqw 0; }
.ps-export span { padding: 1.6cqw 3cqw; font-size: 3.4cqw; border: 1px solid var(--n800); }

/* ── NOTES: your data ── */
.tail { position: relative; }
.data { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; width: min(1280px, 100%); margin: 0 auto; padding: 24px max(var(--gutter), 75px) 0; }
.data .phone { height: clamp(520px, 61vw, 783px); justify-self: start; }
.data-copy { position: relative; z-index: 1; padding: calc(clamp(520px, 61vw, 783px) * .44 - var(--tile) / 2) 0 0 clamp(0px, 7vw, 108px); }
.data-copy .stop { position: relative; margin: 0 0 calc(var(--tile) * .9) clamp(0px, 9vw, 119px); }
.data-copy .sub { margin-top: 26px; }
@media (max-width: 760px) {
  .data { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px var(--gutter) 0; }
  .data-copy { order: -1; padding: 0; }
  .data-copy .h2, .data-copy .sub { background: var(--n902); } /* the route passes behind them */
  .data-copy .stop { margin: 0 0 28px auto; }
  .data .phone { height: min(560px, 120vw); justify-self: start; } /* the route runs down the right of it */
}

/* ── ROADMAP: the app lands, more pop up around it, and they wrap into a spinning globe ── */
.universe { position: relative; height: 440vh; }
.universe-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
#universe { position: absolute; inset: 0; width: 100%; height: 100%; }
.universe-title {
  position: absolute; left: var(--gutter); right: var(--gutter); top: var(--title-y, 80%); text-align: center; text-wrap: balance;
  opacity: 0; transform: translateY(14px); transition: opacity .45s steps(4), transform .45s steps(4);
}
.universe-title.on { opacity: 1; transform: none; }

/* ── TRAVELER: the app on its journey (fixed; placed by site.js) ── */
.traveler { position: fixed; left: 0; top: 0; z-index: 30; display: none; justify-items: center; gap: 6px; width: var(--tile); pointer-events: none; will-change: transform; }
.traveler.on { display: grid; }
.traveler img { width: 100%; height: auto; aspect-ratio: 1; }

/* ── WAITLIST (the existing site component) ── */
.shader { position: absolute; inset: 0; width: 100%; height: 100%; }
.waitlist { position: relative; min-height: 560px; display: grid; place-items: center; padding: 96px var(--gutter); background: var(--secondary-500); overflow: hidden; }
.waitlist-card { position: relative; background: var(--n000); padding: clamp(28px, 5vw, 56px); width: min(560px, 100%); display: grid; gap: 16px; box-shadow: 12px 12px 0 var(--primary-800); }
.waitlist-card h2 { font-weight: 500; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -.04em; }
.waitlist-card p { color: var(--n600); }
.wl-form { display: flex; gap: 0; margin-top: 8px; }
.wl-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: 16px var(--font); border: 1px solid var(--n800); border-right: 0; background: var(--n000); color: var(--n800); border-radius: 0; }
.wl-form input:focus { outline: none; border-color: var(--primary-500); box-shadow: inset 0 0 0 1px var(--primary-500); }
.wl-form input.invalid { border-color: var(--danger); background: var(--danger-bg); }
.wl-form .btn { min-height: 48px; }
.wl-form .btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-error { color: var(--danger) !important; font-size: 14px; }
.wl-success { color: var(--success) !important; font-weight: 500; }
@media (max-width: 480px) { .wl-form { flex-direction: column; } .wl-form input { border-right: 1px solid var(--n800); } }


/* ── DIALOG: the design system's (.worrenDialog) — the TestFlight link after signing up ── */
.w-dialog-layer { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 0 24px; background: rgb(0 0 0 / .4); animation: w-fade .2s ease-out; }
.w-dialog { width: 100%; max-width: 312px; background: var(--n902); animation: w-dialog-in .2s ease-out; }
@keyframes w-fade { from { opacity: 0; } }
@keyframes w-dialog-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.w-dialog__body { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 0; }
.w-dialog__title { margin: 0; font: 400 24px/30px var(--font); color: var(--n800); }
.w-dialog__message { margin: 0; font: 400 14px/21px var(--font); color: var(--n500); }
.w-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 8px; }
.w-dialog__action { min-height: 48px; padding: 0 16px; border: 0; background: none; color: var(--n800); font: 500 14px/20px var(--font); }
.w-dialog__action:active { background: var(--n200); }
@media (hover: hover) { .w-dialog__action:hover { background: var(--n200); } }
