/* ASH about, phone version (portrait, 360–430 px). Built for the phone; there is no desktop layout in this folder.
   Cream hero that scrolls away, then a dark ground with the light running down the right-hand margin beside the text. */
:root { --on: #f3f4f1; --on-soft: rgba(243,244,241,.78); --pad: 22px; --lane: 52px; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: #0d0b09; color: var(--on); }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
#light { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: block; }
main { position: relative; z-index: 1; max-width: 430px; margin: 0 auto; }
h1, h2, p, figure, dl, dd { margin: 0; }

/* header: same markup; safe areas, 44 px tap targets, colours follow the ground (set from main.js) */
.ash-nav { height: calc(50px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.ash-nav nav { gap: 6px; }
.ash-nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; white-space: nowrap; }
.ash-nav nav a.pill { min-height: 0; padding: 9px 15px; margin-left: 4px; position: relative; }
.ash-nav nav a.pill::after { content: ""; position: absolute; inset: -6px -4px; }
.ash-nav .logo { display: inline-flex; align-items: center; min-height: 44px; }
body:not(.nav-light) .ash-nav { background: var(--nav-bg, #fdfdfd); border-bottom-color: var(--nav-line, #e6e6e2); }
body:not(.nav-light) .ash-nav .logo, body:not(.nav-light) .ash-nav nav a { color: var(--nav-fg, #21211f); }
body:not(.nav-light) .ash-nav nav a.pill { background: var(--nav-pill-bg, #21211f); color: var(--nav-pill-fg, #fff); }
@media (max-width: 374px) { .ash-nav { font-size: 13.5px; } .ash-nav nav a { padding: 0 4px; } .ash-nav nav a.pill { padding: 9px 13px; } }

/* hero on cream, in the landing page's colours */
.hero { padding: calc(50px + env(safe-area-inset-top, 0px) + 40px) 18px 0; text-align: center; color: var(--ink); }
.hero h1 { text-wrap: balance; font-size: clamp(32px, 9.2vw, 38px); line-height: 1.08; }
.hero .sub { text-wrap: pretty; margin: 16px auto 0; max-width: 21.5em; color: #6a6b68; font-size: 16px; line-height: 1.5; }
/* two rows of four, the lower row set off by half a column: the far row's light passes straight between the near row's tiles */
.tiles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: 0; row-gap: 26px; margin: 34px -3px 0; }
.app { min-width: 0; grid-column: span 2; padding: 0 7px; }
.app:nth-child(5) { grid-column: 2 / span 2; }
.app figcaption { margin-left: -6px; margin-right: -6px; }
.tile { display: block; width: 100%; aspect-ratio: 1; border-radius: 9px; background: var(--c); overflow: hidden; border: 0; padding: 0; }
.tile svg { display: block; width: 100%; height: 100%; }
.app figcaption { margin-top: 8px; font-size: 11.5px; line-height: 1.25; }
.app .name { display: block; font-weight: 500; text-wrap: balance; }
.app .price { display: block; margin-top: 1px; color: #6a6b68; font-variant-numeric: tabular-nums; }
.fine { margin-top: 18px; font-size: 12px; line-height: 1.45; color: rgba(243,244,241,.55); }
.hero .fine { color: #6a6b68; }
.sweep { height: max(520px, 145vw); }      /* long enough for the turn into the lane to stay a slow curve */

/* dark sections: one column; the right-hand lane is kept free for the light */
.sec { padding: 64px var(--pad) 64px; }
.sec .txt { padding-right: var(--lane); }
.eyebrow { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; color: rgba(243,244,241,.6); }
h2 { text-wrap: balance; font-size: clamp(28px, 7.8vw, 32px); line-height: 1.14; margin-bottom: 20px; }
.txt p { font-size: 16px; line-height: 1.6; }
.txt p + p { margin-top: 14px; }
.dark .txt { color: var(--on); }
.dark .txt p:not(.eyebrow) { color: var(--on-soft); }
.dark .txt p.hint { margin-top: 22px; font-size: 14px; color: rgba(243,244,241,.62); }
.fig { position: relative; margin: 48px 0 0; }
.fig-empty { display: none; }
.fig-pool { margin-top: 150px; padding-right: var(--lane); text-align: right; }
#net { display: block; height: auto; overflow: visible; }
#net text { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; fill: rgba(243,244,241,.68); }
#net .ln { fill: none; stroke-width: 1; stroke-dasharray: 1; transition: stroke-dashoffset .9s cubic-bezier(.3,.1,.2,1), opacity .9s; }
#net .nd { transition: opacity .9s; }

.keycard { width: calc(100% - var(--lane)); background: #fbfbf9; color: var(--ink); border-radius: 16px; padding: 20px 20px 20px; text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 70px -34px rgba(0,0,0,.65); }
.kc-top { display: flex; justify-content: space-between; align-items: center; }
.kc-logo { font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.kc-chip { width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #e8553f, #f582a7, #f6c945, #6fd3c2, #3d6fb6, #1f2547); opacity: .9; }
.kc-name { font-size: 32px; margin-top: 42px; line-height: 1; }
.kc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; }
.kc-price { font-size: 15px; font-weight: 500; white-space: nowrap; } .kc-price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.kc-btn { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; padding: 9px 13px; border-radius: 999px; white-space: nowrap; }
.pool { display: inline-block; white-space: nowrap; font-size: 13px; line-height: 1.45; color: rgba(243,244,241,.7); }
.pool b { display: block; font-weight: 500; color: var(--on); font-size: 16px; font-variant-numeric: tabular-nums; }

/* the split: the fan lands in all eight tiles; touch and hold is the one interaction */
.split { padding: 0 18px; text-align: center; }
.fan { height: max(600px, 160vw); }
.split .tiles { margin-top: 0; row-gap: 30px; }
#dst .app { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#dst .tile { cursor: pointer; touch-action: pan-y; -webkit-touch-callout: none; box-shadow: inset 0 0 0 1px rgba(243,244,241,.13); transition: transform .18s ease-out; }
#dst .tile:focus-visible, #dst .app.on .tile { outline: 1.5px solid var(--on); outline-offset: 2px; }
#dst .app.on .tile { transform: scale(.97); }
#dst .app figcaption { color: var(--on); min-height: 0; }
#dst .amt { display: block; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 2px; }
#dst .min { display: block; color: rgba(243,244,241,.62); font-variant-numeric: tabular-nums; }
.hint2 { margin-top: 30px; font-size: 14px; color: rgba(243,244,241,.74); }
.linkbtn { font: inherit; font-size: 13px; color: rgba(243,244,241,.7); background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(243,244,241,.3); text-underline-offset: 4px; }
#payNote { text-wrap: pretty; }
.split .fine + .fine { margin-top: 4px; }

/* closing sections */
.plain { padding: 84px var(--pad) 0; text-align: center; }
.plain .txt p:not(.eyebrow) { color: var(--on-soft); text-wrap: pretty; }
.record { display: grid; grid-template-columns: repeat(2, 1fr); margin: 32px auto 0; background: rgba(243,244,241,.04); border: 1px solid rgba(243,244,241,.2); border-radius: 12px; text-align: left; color: var(--on); }
.record > div { padding: 13px 16px 12px; border-left: 1px solid rgba(243,244,241,.2); }
.record > div:nth-child(odd) { border-left: 0; }
.record > div:nth-child(n+3) { border-top: 1px solid rgba(243,244,241,.2); }
.record dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,244,241,.6); }
.record dd { margin-top: 4px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.who-fig { height: 300px; }
.foot { padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(243,244,241,.12); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: rgba(243,244,241,.55); }
.foot .logo { font-weight: 600; font-size: 15px; color: var(--on); }

/* fallback without WebGL */
.nogl .hero { background: var(--cream); padding-bottom: 40px; }

/* ---------- flow variant: the light swings from side to side and the text is wrapped along it ---------- */
.sec { padding: 78px var(--pad); }
.sec::after { content: ""; display: block; clear: both; }
.sec .txt { padding-right: 0; }
.wrap { float: right; width: 100%; height: 0; }
.wrap.l { float: left; }
h2 { text-wrap: wrap; }
.keycard { width: 250px; }
.fig-pool { margin-top: 34px; padding: 0; }
.pool { text-align: left; }
/* room for the light to cross between the first two blocks (there is no figure between them) */
#why { padding-bottom: 250px; }
.sec .fig { clear: both; }
.fan { height: max(700px, 185vw); }
.sweep { height: max(520px, 158vw); }
/* fuller lines in the narrow wrapped columns */
.sec .txt p:not(.eyebrow) { -webkit-hyphens: auto; hyphens: auto; }
/* the key card sits where the line crosses the middle; less padding around it keeps that crossing short */
#members { padding-bottom: 22px; }
#partners { padding-top: 26px; }
