/* Prism's site, built from the app's own design language: square corners, hairlines, Departure Mono,
   and depth from hard lines rather than blur. The one flourish is dispersion: the download button
   and the headline split into the four spectrum colours, the way light does through a prism. */
@font-face { font-family: "Departure Mono"; src: url("assets/fonts/DepartureMono-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #07080a; --win: #0b0c0f; --panel: #0f1115; --raise: #15181d;
  --line: #1c2027; --line-2: #2a3039;
  --ink: #e7eaef; --ink-2: #99a1ad; --ink-3: #6b7380;
  --acc: #b4a7ff; --acc-hi: #c9c0ff; --acc-ink: #110c24;
  --red: #ff5c69; --amber: #ffb547; --sky: #8ccfff; --violet: #a596ff; --ok: #6fdc8c;
  --pix: "Departure Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --snap: cubic-bezier(0.5, 0, 0.1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, p, figure, dl, dd, ol { margin: 0; }
h1, h2 { font-family: var(--pix); font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--acc-hi); outline-offset: 3px; }
::selection { background: var(--acc); color: var(--acc-ink); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--acc); color: var(--acc-ink); }
.skip:focus { top: 8px; }
.cap { font: 400 11px/1 var(--pix); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1 var(--pix); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.dot { width: 8px; height: 8px; background: var(--ok); }

/* Corner ticks, as on the app's panels. */
.tk { position: absolute; width: 8px; height: 8px; border: 0 solid var(--tk, var(--ink-3)); pointer-events: none; z-index: 2; }
.tl { left: -1px; top: -1px; border-top-width: 1px; border-left-width: 1px; }
.tr { right: -1px; top: -1px; border-top-width: 1px; border-right-width: 1px; }
.bl { left: -1px; bottom: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.br { right: -1px; bottom: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; height: 64px; padding: 0 var(--gutter); background: rgba(7, 8, 10, 0.94); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand b { font: 400 14px/1 var(--pix); letter-spacing: 0.24em; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; }
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color 0.12s; }
.nav-links a:hover { color: var(--ink); }
.nav-dl { margin-left: auto; padding: 9px 16px; background: var(--acc); color: var(--acc-ink); font: 400 13px/1 var(--pix); text-decoration: none; letter-spacing: 0.02em; transition: background 0.12s; }
.nav-dl:hover { background: var(--acc-hi); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(44px, 5vw, 72px); }
h1 { margin-top: 26px; font-size: clamp(42px, 6.3vw, 92px); line-height: 1.02; }
h1 em { position: relative; display: inline-block; font-style: normal; color: var(--ink); text-shadow: .025em .025em 0 var(--violet), .05em .05em 0 var(--sky), .075em .075em 0 var(--amber), .1em .1em 0 var(--red); margin-top: 8px; }
.lede { max-width: 56ch; margin-top: 36px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 40px; }
.note { margin-top: 26px; max-width: 52ch; font-size: 14.5px; color: var(--amber); }

/* The download button: a solid block whose shadow splits into the spectrum. */
.dl {
  --s: 4px;
  position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 17px 28px 17px 22px; margin: 0 calc(var(--s) * 4) calc(var(--s) * 4) 0;
  background: var(--acc); color: var(--acc-ink); text-decoration: none;
  box-shadow: var(--s) var(--s) 0 var(--violet), calc(var(--s) * 2) calc(var(--s) * 2) 0 var(--sky), calc(var(--s) * 3) calc(var(--s) * 3) 0 var(--amber), calc(var(--s) * 4) calc(var(--s) * 4) 0 var(--red);
  transition: transform 0.14s var(--snap), box-shadow 0.14s var(--snap), background 0.14s;
}
.dl:hover { --s: 5px; background: var(--acc-hi); transform: translate(-2px, -2px); }
.dl:active { --s: 1px; transform: translate(9px, 9px); }
.dl-ico { flex: none; }
.dl:hover .dl-ico { animation: nudge 0.7s steps(3, end) infinite alternate; }
@keyframes nudge { to { transform: translateY(3px); } }
.dl-txt { display: grid; gap: 7px; }
.dl-txt b { font: 400 clamp(18px, 1.7vw, 22px)/1 var(--pix); letter-spacing: -0.01em; white-space: nowrap; }
.dl-txt small { font: 500 13px/1 var(--font); opacity: 0.74; }
.dl-big { padding: 24px 40px 24px 30px; gap: 20px; --s: 5px; }
.dl-big:hover { --s: 6px; }
.dl-big .dl-txt b { font-size: clamp(22px, 2.6vw, 32px); }
.dl-big .dl-txt small { font-size: 14px; }
.ghost { color: var(--ink-2); font-size: 15.5px; text-underline-offset: 5px; text-decoration: underline; text-decoration-color: var(--line-2); transition: color 0.12s, text-decoration-color 0.12s; }
.ghost:hover { color: var(--ink); text-decoration-color: var(--ink-3); }

/* Live buffer: the app's Instant Replay card, running in the page. */
.demo { position: relative; --tk: var(--acc); padding: 26px; background: var(--panel); border: 1px solid rgba(180, 167, 255, 0.4); }
.demo-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.demo-ico { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); color: var(--acc); }
.demo-head .cap { display: block; }
.demo-state { display: block; margin-top: 8px; font: 400 22px/1 var(--pix); }
.demo-live { display: inline-flex; align-items: center; gap: 8px; align-self: start; padding: 6px 8px; font: 400 11px/1 var(--pix); color: var(--ink-2); border: 1px solid var(--line-2); }
.demo-live i { width: 7px; height: 7px; background: var(--red); animation: blink 1.2s steps(2, jump-none) infinite alternate; }
@keyframes blink { to { opacity: 0.25; } }
.demo-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 24px; }
.demo-clock { font: 400 clamp(50px, 5vw, 66px)/1 var(--pix); font-variant-numeric: tabular-nums; }
.demo-of { color: var(--ink-2); font-size: 14.5px; }
.segs { display: flex; gap: 3px; height: 15px; margin-top: 18px; }
.segs i { flex: 1; background: var(--raise); }
.segs i.on { background: var(--acc); }
.segs i.head { background: #fff; }
.segs.flash i.on { animation: seg-out 0.42s steps(4, end) both; animation-delay: var(--d); }
@keyframes seg-out { 0% { background: var(--acc-pale, #ebe7ff); } 100% { background: var(--raise); } }
.demo-scale { display: flex; justify-content: space-between; margin-top: 10px; }
.save { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 20px; padding: 15px 16px; background: var(--acc); color: var(--acc-ink); border: 0; font: 500 15.5px/1 var(--font); cursor: pointer; transition: background 0.12s; text-align: left; }
.save:hover { background: var(--acc-hi); }
.save:active { transform: translateY(1px); }
.save:disabled { cursor: default; background: var(--raise); color: var(--ink-3); }
.save kbd { margin-left: auto; padding: 4px 7px; border: 1px solid currentColor; font: 400 12px/1 var(--pix); }
.demo-hint { margin-top: 15px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* Screens */
.showcase { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.frame { position: relative; --tk: var(--k, var(--ink-3)); background: var(--win); border: 1px solid var(--line-2); }
.hero-shot { box-shadow: 0 50px 90px -50px #000; }
.hero-shot img { width: 100%; }

/* The prism */
.split { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(32px, 4vw, 56px); }
.split-head h2 { margin-top: 20px; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.06; }
.beam { position: relative; margin-top: clamp(24px, 3vw, 44px); }
.beam svg { width: 100%; height: auto; overflow: visible; }
.beam path { fill: none; }
.in { stroke: #eef1f6; stroke-width: 6; }
.in.flow { stroke: #fff; stroke-dasharray: 8 34; animation: flow 1.1s linear infinite; }
.rays path { stroke-width: 5; opacity: 0.8; transition: opacity 0.14s, stroke-width 0.14s; }
.rays .flow { stroke-width: 11; stroke-dasharray: 8 44; opacity: 1; animation: flow 1.3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -52; } }
.in.flow { animation-name: flow-in; }
@keyframes flow-in { to { stroke-dashoffset: -42; } }
.beam[data-active] .rays g:not(.lit) path { opacity: 0.2; }
.rays g.lit path:first-child { stroke-width: 8; opacity: 1; }
.beam-labels a { position: absolute; left: 78.5%; right: 0; top: var(--y); transform: translateY(-50%); display: block; padding-left: 14px; border-left: 2px solid var(--c); text-decoration: none; }
.beam-labels b { display: block; font: 400 clamp(14px, 1.6vw, 21px)/1.1 var(--pix); color: var(--ink); transition: color 0.12s; }
.beam-labels a:hover b, .beam-labels a:focus-visible b { color: var(--c); }
.beam-labels span { display: block; margin-top: 6px; font-size: clamp(12px, 1vw, 14.5px); line-height: 1.3; color: var(--ink-3); }

/* Tool sections: copy on one side, a screen running off the page edge on the other. */
.tool { display: grid; grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr); gap: clamp(36px, 5vw, 88px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 128px) var(--gutter); border-top: 1px solid var(--line); }
.tool.flip { grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr); }
.tool.flip .tool-copy { order: 2; }
.tag { color: var(--k); }
.tool h2 { margin-top: 20px; font-size: clamp(27px, 3vw, 42px); line-height: 1.12; }
.tool-copy p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); }
/* The sidebar repeats in every shot, so crop to the page itself and let the detail read larger. */
.tool .frame { overflow: hidden; }
.tool .frame img { width: 121.3%; max-width: none; margin-left: -21.3%; }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 4px; font: 400 12px/1.2 var(--pix); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-size: 15px; line-height: 1.45; }
figcaption { padding: 14px 18px; border-top: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); }
figcaption b { color: var(--ink); font-weight: 500; }

/* Launcher wheel */
.wheel { position: relative; display: grid; place-items: center; padding: clamp(18px, 3.4vw, 46px); background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 16px 16px; touch-action: manipulation; }
.wheel svg { width: min(100%, 520px); cursor: pointer; }
.wedge { fill: var(--panel); stroke: var(--line-2); stroke-width: 1; transition: fill 0.08s linear; outline: none; }
.wedge.on { fill: rgba(255, 92, 105, 0.16); stroke: var(--red); }
.w-ico { pointer-events: none; fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.w-txt { pointer-events: none; font: 400 10.5px var(--pix); fill: var(--ink-3); text-anchor: middle; }
.w-group.on .w-txt { fill: var(--ink); }
.w-group.on .w-ico { stroke: var(--red); }
.wheel-mid { position: absolute; display: grid; justify-items: center; gap: 7px; width: 25%; text-align: center; pointer-events: none; }
.wheel-mid b { font: 400 clamp(11px, 1.2vw, 14px)/1.2 var(--pix); }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--win); }
.promises div { padding: clamp(22px, 2.6vw, 36px) clamp(18px, 2.2vw, 30px); border-left: 1px solid var(--line); }
.promises div:first-child { border-left: 0; }
.promises b { display: block; font: 400 clamp(17px, 1.5vw, 20px)/1.2 var(--pix); }
.promises span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* Final download */
.final { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(64px, 8vw, 110px); text-align: center; }
.final h2 { font-size: clamp(32px, 4.8vw, 70px); line-height: 1.06; margin-bottom: clamp(36px, 4vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: clamp(52px, 6vw, 76px) 0 0; padding: 0; list-style: none; counter-reset: s; text-align: left; border: 1px solid var(--line); background: var(--panel); }
.steps li { counter-increment: s; padding: 24px 26px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: 14px; font: 400 12px/1 var(--pix); color: var(--acc); }
.steps b { display: block; font-size: 16px; font-weight: 500; }
.steps span { display: block; margin-top: 7px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.steps i { font-style: normal; color: var(--ink); }
.steps.live { border-color: rgba(180, 167, 255, 0.45); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 32px; text-align: left; }
.specs div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { padding-top: 4px; font: 400 12px/1.2 var(--pix); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { font-size: 14.5px; color: var(--ink-2); min-width: 0; }
.hash { display: block; max-width: 100%; padding: 0; background: none; border: 0; color: var(--ink-2); font: 400 12.5px/1.5 var(--pix); text-align: left; overflow-wrap: anywhere; cursor: default; }
.hash[data-ready] { cursor: copy; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hash[data-ready]:hover { color: var(--ink); }

/* Footer */
.foot { padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); background: var(--win); font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.foot > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.foot-top nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.foot-top nav a { color: var(--ink-2); text-decoration: none; }
.foot-top nav a:hover { color: var(--ink); }
.foot p { margin-top: 10px; }
.foot p a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* The app's toast, assembled from blocks. */
.toast-host { position: fixed; top: 80px; right: clamp(8px, 2vw, 28px); z-index: 40; width: min(396px, calc(100vw - 16px)); pointer-events: none; }
.toast { position: relative; height: 96px; --k: var(--acc); overflow: hidden; }
.toast .base { position: absolute; inset: 0; background: var(--panel); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); border: 1px solid var(--line-2); animation: appear 120ms linear both 480ms; }
.toast .blocks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(33, 12px); grid-auto-rows: 12px; overflow: hidden; }
.toast .blocks i { opacity: 0; background: var(--panel); animation: block-in 260ms steps(4, end) both; animation-delay: var(--in); }
@keyframes block-in {
  0% { opacity: 0; transform: scale(0.25); background: var(--k); }
  45% { opacity: 1; transform: scale(1); background: var(--k); }
  70% { background: #252136; }
  100% { opacity: 0; transform: scale(1); background: var(--panel); }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.toast .edge { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--k); animation: appear 100ms linear both 420ms; }
.toast .body { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 0 18px 4px 20px; animation: appear 120ms steps(3, end) both 320ms; }
.toast .glyph { flex: none; display: grid; place-items: center; width: 38px; height: 38px; color: var(--k); border: 1px solid rgba(180, 167, 255, 0.45); background: rgba(180, 167, 255, 0.08); }
.toast .txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.toast .kind { font: 400 11px/1 var(--pix); letter-spacing: 0.08em; text-transform: uppercase; color: var(--k); }
.toast .t { font-size: 14px; font-weight: 500; line-height: 1.2; }
.toast .d { font-size: 12px; line-height: 1.2; color: var(--ink-2); }
.toast .life { position: absolute; left: 20px; right: 18px; bottom: 10px; height: 3px; background: var(--k); transform-origin: left; -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 12px); mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 12px); animation: drain 3.2s steps(29, end) both 500ms; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast.leaving { animation: leave 200ms steps(4, end) both; }
@keyframes leave { to { opacity: 0; transform: translateX(14px); } }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .demo { max-width: 620px; }
  .tool, .tool.flip { grid-template-columns: 1fr; }
  .tool.flip .tool-copy { order: 0; }
  .promises { grid-template-columns: 1fr 1fr; }
  .promises div:nth-child(3) { border-left: 0; }
  .promises div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .cta { gap: 20px; }
  .beam svg { margin-left: -10%; width: 152%; max-width: none; }
  .beam { overflow: hidden; }
  .beam-labels { display: grid; gap: 0; margin-top: 22px; }
  .beam-labels a { position: static; transform: none; padding: 13px 0 13px 14px; margin-bottom: 8px; }
  .beam-labels b { font-size: 16px; }
  .beam-labels span { font-size: 14px; }
  .final h2 br { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .specs { grid-template-columns: 1fr; }
  .w-txt { font-size: 12px; }
  .wheel-mid { width: 29%; }
}
@media (max-width: 480px) {
  .dl, .dl-big { display: flex; margin-right: 16px; padding: 16px 18px; gap: 13px; }
  .promises { grid-template-columns: 1fr; }
  .promises div { border-left: 0; border-top: 1px solid var(--line); }
  .promises div:first-child { border-top: 0; }
  .facts div, .specs div { grid-template-columns: 78px minmax(0, 1fr); }
  .demo { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .flow { display: none; }
}
