/* PalGeo public site. Tokens mirror DESIGN.md; do not add hues here. */
/* Zain (SIL OFL, see fonts/Zain-OFL.txt). It ships 400, 700 and 800: the
   ranges below send the 500s to Regular and the 600s to Bold, so no weight in
   this sheet is synthesised by the browser. */
@font-face { font-family: "Zain"; font-weight: 400 500; font-display: swap; src: url(fonts/zain-Regular.woff2) format("woff2"); }
@font-face { font-family: "Zain"; font-weight: 600 700; font-display: swap; src: url(fonts/zain-Bold.woff2) format("woff2"); }
@font-face { font-family: "Zain"; font-weight: 800; font-display: swap; src: url(fonts/zain-ExtraBold.woff2) format("woff2"); }

:root {
  --abyss: #020F1F; --shelf: #091A2D; --shoal: #12263D; --shoal-2: #23374D;
  --waterline: rgba(68, 201, 240, .24); --hair: rgba(186, 201, 219, .12);
  --text: #F1F6FA; --text-2: #BAC9DB; --text-3: #95A7BB;
  --accent: #44C9F0; --accent-press: #29AED4; --on-accent: #020F1F; --accent-subtle: rgba(68, 201, 240, .16);
  --settled: #5CF2FF; --unsettled: #C77DFF; --selected: #FFB020;
  --danger: #FF6B6B; --success: #4CE49A;
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --head: 60px;
  --ease: cubic-bezier(.22, 1, .36, 1);          /* entrances */
  --move: cubic-bezier(.25, 1, .5, 1);           /* things travelling on screen */
  --lift: 0 2px 4px rgba(2, 15, 31, .85), 0 6px 26px rgba(2, 15, 31, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--abyss); scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--abyss); color: var(--text);
  font: 400 19px/1.75 "Zain", "Geeza Pro", Arial, sans-serif;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--on-accent); }
html { scrollbar-color: var(--shoal-2) var(--abyss); }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent); text-underline-offset: .28em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- chrome ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--head);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(9, 26, 45, .93); border-bottom: 1px solid var(--waterline);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; direction: ltr; }
.brand img { height: 30px; width: auto; }
.head nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.head nav a { color: var(--text-2); text-decoration: none; font-size: 17px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-s); transition: color .2s, background-color .2s; }
.head .who { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 1080px) { .head nav { display: none; } }
@media (max-width: 520px) { .head { gap: 12px; } #nav-in { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-m); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
  transition: background-color .16s var(--ease), scale .14s var(--ease);
}
.btn:active { background: var(--accent-press); scale: .975; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.quiet { background: transparent; color: var(--text); border: 1px solid var(--waterline); font-weight: 600; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 17px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 107, 107, .4); font-weight: 600; }

.field {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-m);
  border: 1px solid var(--waterline); background: var(--shoal); color: var(--text);
  font: inherit; direction: ltr; text-align: left; caret-color: var(--accent);
}
.field::placeholder { color: var(--text-3); }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.join { display: flex; gap: 8px; max-width: 440px; }
.join .field { flex: 1 1 0; min-width: 0; }
.msg { min-height: 26px; margin-top: 8px; font-size: 16px; color: var(--danger); }
.msg.ok { color: var(--text-2); }
@media (max-width: 480px) { .join { flex-direction: column; } }

/* ---------- the descent ---------- */
.descent { position: relative; height: 900vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #031221; contain: layout paint;
  --p1: 0; --p2: 0; --ex: 0; --p4: 0; --p5: 0; --sx: 50%; --sy: 45%; --gap: 300px;
}
.plane {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, calc(100svh * 1.6)); aspect-ratio: 2180 / 1362;
  transform-style: preserve-3d; transform-origin: 50% 50%;
  transform:
    translate(calc(-50% + var(--pan, 0px) * (1 - var(--ex)) - var(--dx, 0px) * var(--p4) * .7 + var(--ex) * var(--ex-x, 0px)),
              calc(-50% - var(--dy, 0px) * var(--p4) * .7 + var(--ex) * var(--ex-y, 0px)))
    rotateX(calc(var(--ex) * 60deg)) rotateZ(calc(var(--ex) * -34deg))
    scale(calc(1 - var(--ex) * var(--shrink, .56) + var(--p4) * .7));
}
.stage.live .plane { will-change: transform; }
.sheet {
  --up: clamp(0, calc(var(--ex) * 1.3 - (3 - var(--i)) * .1), 1);
  position: absolute; inset: 0; transform: translateZ(calc(var(--up) * var(--gap) * var(--i)));
  outline: 1.5px solid rgba(186, 201, 219, calc(var(--ex) * .7)); outline-offset: -1px;
}
.sheet > img, .sheet > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet.ground { --i: 0; box-shadow: 0 60px 120px rgba(0, 0, 0, calc(var(--ex) * .6)); }
.sheet.ground img { object-fit: cover; transition: opacity .9s var(--ease);
  filter: saturate(.95) brightness(calc(.9 - var(--p2) * .12 - var(--p4) * .18 + var(--ex) * .22)); }
.sheet.ground img.next { opacity: 0; }
.sheet.zones { --i: 1; background: rgba(18, 38, 61, calc(var(--ex) * .55)); }
/* one opacity on the layer, not a calc on each of its paths */
.sheet.zones svg { clip-path: circle(calc(var(--p2) * 135%) at var(--sx) var(--sy)); opacity: calc((.56 + var(--ex) * .44) * (1 - var(--p4))); }
.sheet.lots { --i: 2; background: rgba(9, 26, 45, calc(var(--ex) * .5)); }
.sheet.lots svg { clip-path: circle(calc(var(--p1) * 135%) at var(--sx) var(--sy)); }
.sheet.pick { --i: 3; outline: 0; pointer-events: none; }
.sheet.pick svg { opacity: max(var(--p4), var(--ex)); }
.lots path { fill: transparent; stroke-width: 1.7; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
.lots path.s { stroke: var(--settled); }
.lots path.u { stroke: var(--unsettled); }
.lots path.hot { fill: rgba(255, 176, 32, .28); stroke: var(--selected); }
.lots text { font: 600 26px "Zain", Arial, sans-serif; fill: var(--text); stroke: var(--abyss); stroke-width: 6px; paint-order: stroke; stroke-linejoin: round;
  text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.lots .lbl { opacity: calc(var(--p1) * (1 - var(--ex))); }
.pick path { fill: rgba(255, 176, 32, .26); stroke: var(--selected); stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pin { position: absolute; left: var(--sx); top: var(--sy); width: 1px; height: 1px; }
.sweep {
  position: absolute; left: var(--sx); top: var(--sy); width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--settled); pointer-events: none;
  transform: translate(-50%, -50%) scale(calc(var(--ring, 0) * 2.7)); opacity: var(--ring-o, 0);
}
.shade { position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--ex) * .75 - var(--p5) * .4);
  background:
    linear-gradient(to top, rgba(2, 15, 31, .97) 0%, rgba(2, 15, 31, .92) 30%, rgba(2, 15, 31, .74) 50%, rgba(2, 15, 31, .38) 68%, rgba(2, 15, 31, 0) 84%),
    linear-gradient(to bottom, rgba(2, 15, 31, .72) 0, rgba(2, 15, 31, 0) 22%);
}
.fly { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--p5); pointer-events: none; }
.stage .shade { z-index: 1; }

/* names of the separated sheets */
.sheets { position: absolute; left: calc(50% + var(--ex-x, 0px)); top: calc(50% + var(--ex-y, 0px)); pointer-events: none; }
.sheets li {
  position: absolute; left: calc(var(--reach, 300px) + 66px); width: 190px; text-align: start;
  --up: clamp(0, calc(var(--ex) * 1.3 - (3 - var(--i)) * .1), 1);
  transform: translateY(calc(-50% - var(--up) * var(--step, 140px) * var(--i)));
  /* the names wait until the sheets have parted: over the flat map they would only be noise */
  opacity: clamp(0, calc(var(--ex) * 4 - (3 - var(--i)) * .25 - 2.2), 1);
  font-size: 16.5px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.sheets li small { display: block; color: var(--text-3); font-weight: 400; font-size: 14px; }
.sheets li::after { content: ""; position: absolute; right: calc(100% + 10px); top: 50%; width: 46px; border-top: 1px dashed rgba(186, 201, 219, .6); }
@media (max-width: 900px) { .sheets { display: none; } }

/* floating data */
.float {
  position: absolute; z-index: 3; background: rgba(9, 26, 45, .95); border: 1px solid var(--waterline); border-radius: var(--r-l);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); font-size: 16.5px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .14s linear, transform .14s var(--ease), visibility 0s .14s;
}
.float.on { opacity: 1; visibility: visible; transform: none; transition: opacity .32s var(--ease) .12s, transform .42s var(--ease) .12s, visibility 0s; }
.float h3 { font-size: 16.5px; font-weight: 700; padding: 12px 16px 6px; }
.float ul { padding: 0 16px 12px; }
.float li { display: flex; align-items: center; gap: 10px; padding: 3px 0; color: var(--text-2); }
.float li b { margin-inline-start: auto; padding-inline-start: 18px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.float i { flex: none; width: 13px; height: 13px; border-radius: 3px; background: var(--c); border: 1px solid rgba(255, 255, 255, .22); }
.float i.line { height: 0; width: 18px; border: 0; border-top: 3px solid var(--c); border-radius: 0; }
.float.legend { inset-inline-end: var(--gutter); top: calc(var(--head) + 24px); min-width: 230px; }
/* placed with `translate` every frame; its entrance is a small growth from the plot's side */
.float.card { left: 0; top: 0; width: 290px; transform: none; scale: .96; transform-origin: 100% 50%; transition: opacity .14s linear, scale .14s var(--ease), visibility 0s .14s; }
.float.card.flip { transform-origin: 0 50%; }
.float.card.on { scale: 1; transition: opacity .3s var(--ease) .1s, scale .4s var(--ease) .1s, visibility 0s; }
.float.card div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 16px; border-top: 1px solid var(--hair); }
.float.card dt { color: var(--text-2); white-space: nowrap; }
.float.card dd { font-weight: 600; text-align: end; }
.float.card .st { color: var(--settled); } .float.card .st.u { color: var(--unsettled); }
.float.card::before { content: ""; position: absolute; top: 50%; inset-inline-end: 100%; width: 84px; border-top: 2px solid var(--selected); }
.float.card.flip::before { inset-inline-end: auto; inset-inline-start: 100%; }
.float.card { border-color: var(--selected); }
.tip { position: fixed; z-index: 40; pointer-events: none; padding: 6px 12px; background: var(--abyss); border: 1px solid var(--selected); border-radius: var(--r-s);
  left: 0; top: 0; font-size: 15px; font-weight: 600; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.facts li { padding: 6px 14px; border: 1px solid var(--waterline); border-radius: 999px; background: rgba(9, 26, 45, .9); font-size: 16px; font-weight: 500; }
.facts b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .float.legend { top: calc(var(--head) + 62px); inset-inline-end: auto; inset-inline-start: 12px; min-width: 0; font-size: 14.5px; }
  .float.card::before { display: none; }
  .float.card { width: 236px; font-size: 14.5px; }
  /* a phone shows the four facts that identify the plot; the rest is in the app */
  .float.card [data-opt] { display: none; }
}

.caps { position: absolute; inset: auto var(--gutter) clamp(20px, 5svh, 56px) var(--gutter); max-width: 620px; z-index: 2; }
.cap { position: absolute; inset: auto 0 0 0; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .15s linear, transform .15s var(--ease), visibility 0s .15s; }
.cap.past { transform: translateY(-12px); }
.cap.on { opacity: 1; visibility: visible; transform: none; transition: opacity .38s var(--ease) .14s, transform .5s var(--ease) .14s, visibility 0s; }
.cap h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.7rem); line-height: 1.3; }
.cap h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
.cap h1, .cap h2 { text-shadow: var(--lift); }
.cap p { color: var(--text); margin-top: 12px; max-width: 34em; text-shadow: 0 1px 3px rgba(2, 15, 31, .9), 0 3px 16px rgba(2, 15, 31, .85); }
.cap .join { margin-top: 22px; }
.towns { text-shadow: 0 1px 3px rgba(2, 15, 31, .9);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; font-size: 16px; color: var(--text-2); }
.towns button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: rgba(9, 26, 45, .8); color: var(--text-2);
  font: inherit; font-weight: 500; cursor: pointer; transition: color .2s, border-color .2s; }
.towns button[aria-pressed="true"] { color: var(--selected); border-color: var(--selected); }

/* the steps, as a timeline */
.rail { position: absolute; inset-inline-end: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; display: grid;
  padding: 10px 16px 10px 12px; background: rgba(9, 26, 45, .93); border: 1px solid var(--waterline); border-radius: var(--r-l); }
.rail li { position: relative; }
.rail::before, .rail::after { content: ""; position: absolute; inset-inline-start: 23px; top: 31px; bottom: 31px; width: 2px; background: var(--shoal-2); }
.rail::after { background: var(--accent); transform: scaleY(var(--prog, 0)); transform-origin: 50% 0; }
.rail button { position: relative; display: flex; align-items: center; gap: 14px; min-height: 42px; padding: 0; background: none; border: 0;
  color: var(--text-3); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-align: start; transition: color .2s var(--ease); }
.rail button::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--shelf); border: 2px solid var(--shoal-2);
  transition: background-color .25s, border-color .25s, box-shadow .25s; position: relative; z-index: 1; }
.rail li.done button { color: var(--text-2); }
.rail li.done button::before { background: var(--accent); border-color: var(--accent); }
.rail li.now button { color: var(--text); }
.rail li.now button::before { background: var(--abyss); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-subtle); }
.rail .n { font-variant-numeric: tabular-nums; color: var(--text-3); font-weight: 500; font-size: 14px; margin-inline-end: -6px; }
@media (max-width: 760px) {
  .rail { top: auto; bottom: auto; inset-inline-end: auto; inset-inline-start: 12px; top: calc(var(--head) + 12px); transform: none; padding: 6px 10px; grid-auto-flow: column; }
  .rail::before, .rail::after { display: none; }
  .rail li::before { content: ""; position: absolute; inset-inline-start: -50%; top: 19px; width: 100%; height: 2px; background: var(--shoal-2); }
  .rail li:first-child::before { display: none; }
  .rail li.done::before, .rail li.now::before { background: var(--accent); }
  .rail button { min-height: 40px; min-width: 30px; font-size: 0; gap: 0; }
  .rail .n { display: none; }
}
.credit { position: absolute; inset-inline-end: var(--gutter); bottom: 8px; z-index: 2; font-size: 12.5px; color: var(--text-3); opacity: calc(1 - var(--p5)); }
@media (max-width: 760px) { .credit { inset-inline-end: auto; inset-inline-start: var(--gutter); bottom: 2px; font-size: 11.5px; } }

/* ---------- sections ---------- */
.band { padding: clamp(72px, 11vw, 150px) var(--gutter); border-top: 1px solid var(--hair); }
.wrap { max-width: 1240px; margin: 0 auto; }
.band h2 { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 3rem); max-width: 20em; }
.band .lede { color: var(--text-2); margin-top: 16px; max-width: 38em; font-size: 1.06rem; }

/* film */
.film { margin-top: clamp(28px, 4vw, 48px); border: 1px solid var(--waterline); border-radius: var(--r-l); overflow: hidden; background: #031221; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* features */
.feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 6vw, 84px) 0; border-top: 1px solid var(--hair); }
.feat:first-of-type { margin-top: clamp(36px, 5vw, 64px); }
.feat.flip { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.feat.flip > .shot { order: -1; }
.feat:last-of-type { grid-template-columns: 1fr 1fr; align-items: start; }
.feat h3 { font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); }
.feat .say > p { color: var(--text-2); margin-top: 12px; max-width: 36em; }
.feat .fine { font-size: 16.5px; color: var(--text-3); }
.spec { margin-top: 22px; }
.spec div { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 18px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 18px; }
.spec dt { font-weight: 600; color: var(--text); }
.spec dd { color: var(--text-2); }
.shot.phone { justify-self: center; width: min(100%, 300px); aspect-ratio: 1206 / 2622; border-radius: 38px; border: 8px solid #111B27; background: #05080D; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.shot.phone img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .feat, .feat.flip, .feat:last-of-type { grid-template-columns: 1fr; }
  .feat.flip > .shot { order: 0; }
  .spec div { grid-template-columns: 1fr; }
}

/* outputs */
.out { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.cad { border: 1px solid var(--waterline); border-radius: var(--r-m); overflow: hidden; background: #212830; position: sticky; top: calc(var(--head) + 24px); }
.cad img { width: 100%; height: auto; }
.cad figcaption, .outs figure + p { font-size: 16.5px; color: var(--text-2); }
.cad figcaption { padding: 12px 16px; background: var(--shelf); border-top: 1px solid var(--hair); }
.outs figure.paper { background: #fff; max-width: 340px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8); border: 0; border-radius: var(--r-s); }
.outs li { padding: 22px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 4.2em 1fr; gap: 6px 18px; }
.outs li:first-child { border-top: 0; padding-top: 0; }
.outs .ext { font-weight: 700; color: var(--accent); direction: ltr; text-align: start; font-size: 17px; padding-top: 3px; }
.outs h3 { font-size: 1.2rem; }
.outs p { color: var(--text-2); grid-column: 2; font-size: 18px; }
.outs figure, .outs figure + p { grid-column: 2; }
.outs figure { margin-top: 10px; border: 1px solid var(--hair); border-radius: var(--r-m); overflow: hidden; background: var(--shelf); }
@media (max-width: 900px) { .out { grid-template-columns: 1fr; } .cad { position: static; } }

/* platforms */
.scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.scenes button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--waterline); background: transparent;
  color: var(--text-2); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s;
}
.scenes button[aria-pressed="true"] { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent); }
.devices { position: relative; margin-top: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1fr; }
.dev { background: #05080D; border: 1px solid #2B3A4C; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); overflow: hidden; position: relative; }
.dev img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; filter: blur(3px); transition: opacity .3s var(--ease), filter .3s var(--ease); }
.dev img.on { filter: none; }
.dev img.on { opacity: 1; }
.dev.ipad { width: min(100%, 980px); aspect-ratio: 2420 / 1668; border-radius: clamp(14px, 2.2vw, 28px); border-width: clamp(6px, 1vw, 12px); border-color: #111B27; justify-self: start; }
.dev.iphone { position: absolute; inset-inline-end: 0; bottom: -7%; width: clamp(120px, 22vw, 262px); aspect-ratio: 1206 / 2622; border-radius: clamp(18px, 3.2vw, 40px); border-width: clamp(4px, .7vw, 9px); border-color: #111B27; }
.dev.android { position: absolute; inset-inline-end: 0; top: 12%; width: clamp(110px, 20vw, 240px); aspect-ratio: 1344 / 2992; border-radius: clamp(16px, 2.8vw, 34px); border-width: clamp(4px, .7vw, 9px); border-color: #111B27; }
.devnames { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: clamp(56px, 8vw, 96px); color: var(--text-2); font-size: 17px; }
.devnames b { color: var(--text); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; min-width: 168px; padding: 6px 20px;
  border: 1px solid var(--waterline); border-radius: 12px; background: var(--shoal); color: var(--text); line-height: 1.25;
  transition: background-color .2s ease, border-color .2s ease; }
.store small { font-size: 14px; color: var(--text-2); }
.store b { font-size: 20px; font-weight: 700; direction: ltr; unicode-bidi: isolate; text-align: end; }
.store[aria-disabled="true"] { border-style: dashed; border-color: rgba(186, 201, 219, .3); background: transparent; cursor: default; }
.store[aria-disabled="true"] b { color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .store:not([aria-disabled="true"]):hover { background: var(--shoal-2); border-color: var(--accent); } }
@media (max-width: 700px) {
  .dev.iphone { bottom: -22%; width: 34vw; }
  .dev.android { top: auto; bottom: -22%; width: 31vw; }
  .devnames { margin-top: 30vw; }
}

/* packs */
.packs { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.packs table { width: 100%; border-collapse: collapse; font-size: 17.5px; }
.packs th { text-align: start; font-weight: 600; color: var(--text-3); font-size: 15px; padding: 0 0 10px; }
.packs td { padding: 9px 0; border-top: 1px solid var(--hair); }
.packs td:first-child { font-weight: 500; }
.packs td.n, .packs th.n { text-align: end; font-variant-numeric: tabular-nums; direction: ltr; }
.packs td .bar { display: block; height: 3px; margin-top: 6px; background: var(--settled); opacity: .7; width: calc(var(--v) * 100%); border-radius: 2px; }
.packs tfoot td { font-weight: 700; border-top: 1px solid var(--waterline); }
.packs .side p + p { margin-top: 14px; }
.packs .side p { color: var(--text-2); }
.packs .side img { margin-top: 28px; border: 1px solid var(--hair); border-radius: var(--r-l); }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr; } }

/* plan */
.plan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.allow li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
.allow li:first-child { border-top: 1px solid var(--waterline); }
.allow b { font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.allow small { color: var(--text-3); font-size: 16px; font-weight: 400; margin-inline-start: 6px; }
.allow + p { color: var(--text-3); font-size: 16.5px; margin-top: 16px; }
.signup { background: var(--shelf); border: 1px solid var(--waterline); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); position: sticky; top: calc(var(--head) + 24px); }
.signup h3 { font-size: 1.35rem; }
.signup p { color: var(--text-2); margin-top: 8px; font-size: 18px; }
.signup label { display: block; font-size: 16px; color: var(--text-2); margin: 18px 0 6px; }
.signup .btn { width: 100%; margin-top: 12px; }
.signup .alt { margin-top: 14px; font-size: 17px; }
@media (max-width: 900px) { .plan { grid-template-columns: 1fr; } .signup { position: static; } }

/* honesty + foot */
.plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px clamp(28px, 5vw, 72px); margin-top: 36px; }
.plain h3 { font-size: 1.1rem; }
.plain p { color: var(--text-2); font-size: 18px; margin-top: 6px; }
.foot { padding: 36px var(--gutter) 48px; border-top: 1px solid var(--hair); color: var(--text-3); font-size: 16.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--text-2); display: inline-flex; align-items: center; min-height: 44px; }

/* reveal for below-the-fold figures: visible by default, eased only when JS opts in */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

/* ---------- account + prose pages ---------- */
.page { max-width: 520px; margin: 0 auto; padding: calc(var(--head) + 40px) 16px 80px; }
.page.wide { max-width: 720px; }
.page h1 { font-size: 2rem; margin-bottom: 24px; }
.card { background: var(--shelf); border: 1px solid var(--waterline); border-radius: var(--r-l); padding: 22px; margin-bottom: 16px; }
.card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.card p { color: var(--text-2); margin-bottom: 12px; }
.card label { display: block; font-size: 16px; color: var(--text-2); margin-bottom: 6px; }
.card form > .btn { width: 100%; margin-top: 16px; }
.muted { color: var(--text-3); font-size: 16.5px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.row > .btn { flex: 1 1 auto; }
#code { letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; font-size: 24px; }
.email { direction: ltr; unicode-bidi: plaintext; word-break: break-all; color: var(--text); }
.usage li { padding: 12px 0; border-top: 1px solid var(--hair); }
.usage li:first-child { border-top: 0; }
.line { display: flex; justify-content: space-between; gap: 12px; }
.usage .n { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.meter { height: 6px; border-radius: 3px; background: var(--shoal); margin-top: 8px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
.meter.full > i { background: var(--danger); }
.prose h2 { font-size: 1.2rem; margin: 2.4rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--hair); }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: .8rem; }
.prose ul { list-style: disc; padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .note { background: var(--shelf); border: 1px solid var(--waterline); border-radius: var(--r-l); padding: 1rem 1.15rem; margin: 1.25rem 0; }

/* hover feedback only where a pointer can hover; touch gets the pressed state */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #6BD6F4; color: var(--on-accent); }
  .btn.quiet:hover, .btn.danger:hover { background: var(--shoal); color: var(--text); }
  .btn.danger:hover { color: var(--danger); }
  .head nav a:hover { color: var(--text); background: var(--shoal); }
  .towns button:hover { color: var(--text); border-color: var(--waterline); }
  .rail button:hover { color: var(--text); }
  .scenes button:hover { color: var(--text); background: var(--shoal); }
  .lots path:hover { fill: rgba(255, 176, 32, .28); stroke: var(--selected); }
}
@media (pointer: coarse) { .towns button { min-height: 44px; padding: 0 14px; } }
@media (max-width: 760px) {
  /* one swipeable row instead of three lines of chips: the caption keeps its height */
  .towns { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .towns::-webkit-scrollbar { display: none; }
  .towns > * { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* layers cut in instead of sweeping; the stack still separates, since scrolling is the viewer's own motion */
  .sheet.zones svg, .sheet.lots svg { clip-path: none; }
  .sheet.zones svg { opacity: calc(var(--p2) * (.56 + var(--ex) * .44) * (1 - var(--p4))); }
  .sheet.lots svg { opacity: var(--p1); }
  .sweep { display: none; }
  .cap, .cap.on, .cap.past, .float, .float.on, .float.card, .float.card.on { transform: none; scale: 1; transition: opacity .12s linear, visibility 0s; }
  .js .rise, .js .rise.in { opacity: 1; transform: none; transition: none; }
  .dev img { filter: none; transition: opacity .12s linear; }
  .btn, .meter > i, .sheet.ground img, .rail button::before { transition: none; }
  .btn:active { scale: 1; }
}
