/* Panorail site. Shared by index.html and success.html. Instrument Sans, Instrument Serif headings, JetBrains Mono, via Google Fonts. */
:root {
  --paper: #fbfbfa; --paper-2: #f4f4f2; --ink: #0d0e10; --ink-2: #4b4d55; --ink-3: #6c6f78;
  --rule: #e3e3e0; --rule-2: #ececea; --fill: #efefec; --win: #ffffff; --win-bar: #f6f6f4;
  --screen: #e8e8e5; --card: #ffffff; --card-edge: rgba(13, 14, 16, .08);
  --accent: #0a7cff; --accent-ink: #0060d6; --accent-soft: rgba(10, 124, 255, .1);
  --glow: rgba(10, 124, 255, .16);
  --shadow-sm: 0 1px 2px rgba(13, 14, 16, .06), 0 0 0 1px var(--card-edge);
  --shadow-lg: 0 0 0 1px rgba(13, 14, 16, .14);
  --sans: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --measure: 34rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #09090b; --paper-2: #101013; --ink: #f4f4f5; --ink-2: #a9abb3; --ink-3: #868892;
    --rule: #26272c; --rule-2: #1b1c20; --fill: #1c1d21; --win: #1f2024; --win-bar: #26272c;
    --screen: #141518; --card: #111114; --card-edge: rgba(255, 255, 255, .08);
    --accent: #2f8fff; --accent-ink: #6aaeff; --accent-soft: rgba(47, 143, 255, .14);
    --glow: rgba(47, 143, 255, .22);
    --shadow-sm: 0 0 0 1px var(--card-edge), 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .12);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { transform: none; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--rule-2); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 6px; }
.brand svg { width: 22px; height: 22px; }
nav { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); }
nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; transition: color .2s, background-color .2s; }
nav a:hover { color: var(--ink); background: var(--fill); }
nav a.buy { margin-left: 8px; color: var(--paper); background: var(--ink); font-weight: 500; }
nav a.buy:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 11px;
  font: 500 15px/1 var(--sans); letter-spacing: -.005em; background: var(--ink); color: var(--paper); text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 1px 2px rgba(0, 0, 0, .2), 0 6px 16px -6px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 2px 4px rgba(0, 0, 0, .2), 0 12px 24px -8px rgba(0, 0, 0, .4); }
.button:active { transform: translateY(0); }
.button small { font-weight: 400; font-size: 14px; opacity: .6; padding-left: 10px; border-left: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 11px; font-size: 15px; color: var(--ink-2);
  text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule); transition: color .2s, background-color .2s; }
.ghost:hover { color: var(--ink); background: var(--fill); }
.ghost .arr { transition: transform .2s var(--ease); }
.ghost:hover .arr { transform: translateY(2px); }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--ink-2); margin: 0 0 24px;
  padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
h1 { font: 400 clamp(48px, 8vw, 96px)/.98 var(--display); letter-spacing: -.02em; margin: 0 auto; max-width: 12ch; text-wrap: balance; }
h2 { font: 400 clamp(34px, 4.6vw, 56px)/1.04 var(--display); letter-spacing: -.015em; margin: 0; max-width: 18ch; text-wrap: balance; }
h3 { font: 600 17px/1.35 var(--sans); letter-spacing: -.012em; margin: 0 0 8px; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36rem; margin: 24px auto 0; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: var(--measure); margin: 18px 0 0; font-size: 17px; text-wrap: pretty; }
.muted { color: var(--ink-3); }

/* Hero */
.hero { position: relative; padding: 96px 0 0; text-align: center; isolation: isolate; }
.cta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.cta form { margin: 0; }
.req { font-size: 13px; color: var(--ink-3); margin: 18px 0 0; }

.stage { position: relative; margin: 72px auto 0; max-width: 1080px; perspective: 2000px; }
.display { position: relative; border-radius: 16px; padding: 7px; background: #1d1e21; box-shadow: var(--shadow-lg);
  transform-origin: 50% 0; transition: transform 1.2s var(--ease); }
.display::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.display video, .display img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #111; object-fit: cover; }
.js .stage .display { transform: rotateX(8deg) scale(.97); }
.js .stage.in .display { transform: none; }
.pop { position: absolute; right: 9%; top: 4.6%; width: min(31%, 300px); margin: 0; border-radius: 13px; overflow: hidden; z-index: 2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 20px 50px -12px rgba(0, 0, 0, .45); background: #fff;
  transform-origin: 85% 0; transition: opacity .6s var(--ease) .5s, transform .8s var(--ease) .5s; }
.pop img { display: block; width: 100%; height: auto; }
.js .stage .pop { opacity: 0; transform: translateY(-10px) scale(.96); }
.js .stage.in .pop { opacity: 1; transform: none; }
.stage figcaption { font-size: 14px; color: var(--ink-3); margin: 22px auto 0; max-width: 40rem; }
.stage figcaption b { color: var(--ink); font-weight: 600; }

/* Sections */
section { padding: 140px 0 0; }
.head { max-width: 760px; }
.head.center { margin: 0 auto; text-align: center; }
.head.center h2, .head.center .body { margin-left: auto; margin-right: auto; }

/* How it works */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.panel { margin: 0; padding: 28px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); }
.panel svg { width: 100%; height: auto; display: block; overflow: hidden; }
.panel figcaption { font-size: 15px; color: var(--ink-2); margin-top: 20px; }
.panel figcaption b { color: var(--ink); font-weight: 600; }
.panel.on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; counter-reset: s; }
.steps > div { padding: 26px 26px 28px; border-radius: 18px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
.steps .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 500 12px/1 var(--mono); color: var(--accent-ink);
  background: var(--accent-soft); margin-bottom: 18px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Feature rows */
.rows { margin-top: 64px; display: grid; gap: 96px; }
.row > * { min-width: 0; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.row.flip { grid-template-columns: 7fr 5fr; }
.row.flip .copy { order: 2; }
.row .copy h3 { font: 650 clamp(24px, 2.6vw, 30px)/1.12 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.row .copy p { color: var(--ink-2); margin: 0; font-size: 17px; max-width: 28rem; }
.row .copy .kicker { font-size: 12px; margin: 0 0 16px; color: var(--accent-ink); }
.row .copy .keyline { display: flex; gap: 4px; align-items: center; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.row .copy .keyline span { margin-left: 8px; }
.media { margin: 0; }
.media .display { padding: 6px; border-radius: 14px; }
.media .display video { border-radius: 9px; }
.note-rec { margin: 56px 0 0; font-size: 13px; color: var(--ink-3); max-width: 40rem; }

/* macOS window chrome around real screenshots */
.mac { border-radius: 12px; overflow: hidden; background: var(--win); box-shadow: var(--shadow-lg); }
.mac .tb { position: relative; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--win-bar); border-bottom: 1px solid var(--rule-2); }
.mac .tb i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.mac .tb i:nth-child(2) { background: #febc2e; } .mac .tb i:nth-child(3) { background: #28c840; }
.mac .tb span { position: absolute; left: 0; right: 0; text-align: center; font: 600 13px/38px var(--sans); color: var(--ink-2); pointer-events: none; }
.mac img { display: block; width: 100%; height: auto; background: #fff; }

/* Interactive demo (classes used by the demo script) */
.demo { margin-top: 56px; padding: 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-sm); }
.screen { position: relative; aspect-ratio: 16 / 9; max-height: 560px; width: 100%; background: var(--screen); border-radius: 12px;
  overflow: hidden; outline: none; box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; }
.screen:focus-visible { box-shadow: inset 0 0 0 1px var(--rule), 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.menubar { position: absolute; inset: 0 0 auto 0; height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  font-size: 12px; color: var(--ink-2); background: var(--paper-2); border-bottom: 1px solid var(--rule); z-index: 2; }
.menubar b { font-weight: 600; color: var(--ink); }
.menubar .mark { display: flex; gap: 2px; align-items: center; }
.menubar .mark i { display: block; width: 3px; height: 9px; border-radius: 1px; background: currentColor; opacity: .5; }
.menubar .mark i:nth-child(2) { width: 8px; opacity: 1; }
.win { position: absolute; left: 0; top: 0; border-radius: 10px; background: var(--win); overflow: hidden; will-change: transform;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px -12px rgba(0, 0, 0, .18); transition: opacity .25s; }
@media (prefers-color-scheme: dark) { .win { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 28px -12px rgba(0, 0, 0, .6); } }
.win .bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--win-bar); border-bottom: 1px solid var(--rule-2);
  font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.win .bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); flex: none; }
.win.focus .bar { color: var(--ink); }
.win.focus .bar i:nth-child(1) { background: #ff5f57; } .win.focus .bar i:nth-child(2) { background: #febc2e; } .win.focus .bar i:nth-child(3) { background: #28c840; }
.win.focus { box-shadow: 0 0 0 1.5px var(--accent), 0 14px 34px -12px rgba(0, 0, 0, .3); }
.win .lines { padding: 14px 14px 0; }
.win .lines u { display: block; height: 6px; border-radius: 3px; background: var(--fill); margin-bottom: 9px; text-decoration: none; }
.win .tabs { display: flex; gap: 1px; padding: 6px 10px 0; }
.win .tabs em { font-style: normal; font-size: 11px; color: var(--ink-3); padding: 2px 8px; border-radius: 4px 4px 0 0; background: var(--fill); }
.win .tabs em.on { color: var(--ink); background: var(--rule); }
.win.gone { opacity: 0; }
.below { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-top: 18px; padding: 0 4px; }
.mini { height: 34px; width: 220px; }
.mini svg { display: block; height: 34px; width: 220px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); margin: 14px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 4px; transition: color .15s; }
.legend li kbd:last-of-type { margin-right: 4px; }
kbd { font: 500 12px var(--sans); min-width: 24px; height: 23px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 1.5px 0 1px var(--rule); transition: transform .08s, box-shadow .08s, background-color .08s; }
kbd.down { transform: translateY(1.5px); box-shadow: 0 0 0 1px var(--rule), 0 0 0 1px var(--rule); background: var(--accent-soft); color: var(--accent-ink); }
.legend li.hit { color: var(--ink); }
.tools { display: flex; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.tools button { white-space: nowrap; font: 13px var(--sans); color: var(--ink-2); background: transparent; border: 0; border-right: 1px solid var(--rule); height: 34px; padding: 0 13px; cursor: pointer; transition: background-color .15s, color .15s; }
.tools button:last-child { border-right: 0; }
.tools button:hover { background: var(--fill); color: var(--ink); }
.tools button:active { background: var(--rule-2); }
.autoplay { font-size: 12px; color: var(--ink-3); margin: 10px 4px 0; min-height: 18px; }
.hint { font-size: 13px; color: var(--ink-3); margin: 6px 4px 0; }
.railband { position: relative; height: 120px; margin: 40px 0 0; overflow: hidden; }
.railband .track { position: absolute; left: 0; top: 22px; height: 76px; display: flex; gap: 10px; will-change: transform; }
.railband .track span { flex: none; height: 76px; border-radius: 8px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--rule); transition: background-color .25s, box-shadow .25s; }
.railband .track span.f { background: var(--accent); box-shadow: 0 10px 24px -10px var(--accent); }
.railband .vp { position: absolute; left: 50%; top: 12px; width: 300px; height: 96px; margin-left: -150px; border: 1.5px solid var(--ink-2); border-radius: 12px; pointer-events: none; }
.railband .lbl { position: absolute; left: 12%; bottom: 4px; font: 11px var(--mono); letter-spacing: .02em; color: var(--ink-3); }
.railband .lbl.r { left: auto; right: 12%; }

/* Settings list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 56px; }
.split .mac { position: sticky; top: 96px; }
.list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule-2); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-2); }
.list div { background: var(--card); padding: 22px 22px 24px; transition: background-color .2s; }
.list div:hover { background: var(--paper-2); }
.list dt { font: 600 15px/1.35 var(--sans); color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.list dd { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* Shortcuts */
.keys { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; font-size: 15px; }
.keys div { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule-2); }
.keys span:first-child { display: flex; gap: 4px; }
.keys span:last-child { color: var(--ink-2); }

/* App shots */
.shots { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 56px; align-items: stretch; }
.shot { margin: 0; padding: 28px 28px 22px; border-radius: 20px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-2); display: flex; flex-direction: column; overflow: hidden; }
.shot .frame { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; }
.shot .frame > * { min-width: 0; max-width: 100%; }
.shot img.float { display: block; border-radius: 12px; box-shadow: var(--shadow-lg); height: auto; }
.shot .mac { width: 100%; }
.shot figcaption { font-size: 14px; color: var(--ink-2); margin-top: 22px; }
.shot.wide { grid-column: 1 / -1; }
.shot.about .frame img { max-width: 360px; }

/* Privacy */
.priv { margin: 48px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.priv div { grid-column: span 2; }
.priv div:nth-child(-n+2) { grid-column: span 3; }
.priv div { padding: 22px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); }
.priv dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.priv dd { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.priv div:first-child dd { font: 650 26px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }

/* Pricing */
.buygrid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: start; }
.price-card { position: relative; padding: 32px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.price-card h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0; }
.price-card h3 img { border-radius: 7px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 4px; }
.price b { font: 400 72px/1 var(--display); letter-spacing: -.02em; }
.price span { font-size: 15px; color: var(--ink-3); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; border-top: 1px solid var(--rule-2); }
.price-card li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule-2); font-size: 14.5px; color: var(--ink-2); }
.price-card li svg { flex: none; margin-top: 4px; color: var(--accent); }
.price-card form { margin: 0; }
.price-card .button { width: 100%; height: 48px; }
.price-card .note { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.install { padding: 28px 30px; border-radius: 20px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
.install h3 { margin: 0 0 6px; }
.install ol { list-style: none; counter-reset: i; padding: 0; margin: 18px 0 0; }
.install li { counter-increment: i; position: relative; padding: 0 0 18px 42px; color: var(--ink-2); font-size: 15px; }
.install li:last-child { padding-bottom: 0; }
.install li::before { content: counter(i); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font: 500 12px/1 var(--mono); color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); }

/* FAQ */
.faq { margin: 48px auto 0; max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 500 16.5px/1.4 var(--sans); letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: color .2s; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq p { margin: -4px 0 22px; color: var(--ink-2); max-width: 44rem; font-size: 15.5px; }
.faq details[open] p { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

/* Closing band */
.closer { margin-top: 140px; padding: 72px 32px; border-radius: 28px; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
.closer img { border-radius: 22px; box-shadow: var(--shadow-lg); margin-bottom: 28px; }
.closer h2 { margin: 0 auto; }
.closer .cta { margin-top: 30px; }

/* Footer */
footer { margin-top: 120px; border-top: 1px solid var(--rule-2); padding: 48px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.foot p { margin: 0 0 10px; max-width: 30rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-block; padding: 4px 0; text-decoration: none; }
.foot li a:hover { color: var(--ink); }
.foot .brand { margin-bottom: 14px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule-2); font: 12px var(--mono); color: var(--ink-3); }

/* Scroll reveal. Only hides content when JS is running and motion is allowed. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Motion. Transform and opacity only. Everything below is idle under reduced motion (see the end of the file). */


.hero.idle .hero.idle .eyebrow .dot::after { animation-play-state: paused; }

/* The eyebrow dot sends out a slow ping. */
.eyebrow .dot { position: relative; }
.eyebrow .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

/* The menu popover floats a little once it has arrived. */
.js .stage.in .pop { animation: bob 7s ease-in-out 1.6s infinite alternate; }
@keyframes bob { to { translate: 0 -5px; } }
.hero.idle .pop { animation-play-state: paused; }

/* Hero minimap chip, built by motion.js and hung off the bottom-left of the recording. */
.railchip { position: absolute; left: -2.5%; bottom: -26px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 12px; border-radius: 14px;
  background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.rc-lbl { display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rc-lbl i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rc-view { position: relative; width: 132px; height: 30px; overflow: hidden; }
.rc-track { position: absolute; inset: 0; }
.rc-track i { position: absolute; left: 0; top: 5px; height: 20px; border-radius: 3px; background: var(--ink-3); opacity: .32; transform-origin: 0 50%;
  transition: transform .7s var(--ease), opacity .4s; }
.rc-track i.f { background: var(--accent); opacity: 1; }
.rc-vp { position: absolute; left: 50%; top: 1px; width: 60px; height: 28px; margin-left: -30px; border: 1.5px solid var(--ink-2); border-radius: 6px; opacity: .8; }
.js .stage .railchip { opacity: 0; transform: translateX(-24px); transition: opacity .7s var(--ease) .9s, transform .9s var(--ease) .9s; }
.js .stage.in .railchip { opacity: 1; transform: none; }
.stage:has(.railchip) figcaption { margin-top: 50px; }

/* Staggered children inside a revealed block. */
.js .reveal.stagger > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0s) + .12s + var(--i, 0) * 55ms); }
.js .reveal.in.stagger > *, .js .reveal.in .stagger > * { opacity: 1; transform: none; }
.js .reveal .stagger > * { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0s) + .2s + var(--i, 0) * 70ms); }
.js .reveal.settled { transition: opacity .8s var(--ease), transform .45s var(--ease); transition-delay: 0s; }

/* Parallax targets move through a custom property, set on scroll. */
[data-parallax] { transform: translate3d(0, var(--py, 0), 0); will-change: transform; }

/* Buttons: a glint sweeps across on hover, and a press settles in. */
.button { position: relative; overflow: hidden; isolation: isolate; }
.button:active { transform: translateY(0) scale(.98); }
.ghost:active, .tools button:active { transform: scale(.98); }
.ghost { transition: color .2s, background-color .2s, transform .2s var(--ease); }
.tools button { transition: background-color .15s, color .15s, transform .15s var(--ease); }
nav a { transition: color .2s, background-color .2s, transform .2s var(--ease); }
@media (hover: hover) {
  nav a:hover { transform: translateY(-1px); }

  /* Cards lift and pick up an accent edge. */
  .lift, .lifts > div { position: relative; transition: transform .45s var(--ease), opacity .8s var(--ease); }
  .lift::after, .lifts > div::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent); }
  .lift:hover, .lifts > div:hover, .js .reveal.in.lift:hover, .js .lifts > .reveal.in:hover { transform: translateY(-4px); }
  .lift:hover::after, .lifts > div:hover::after { opacity: 1; }
  .steps .n { transition: transform .45s var(--ease); }
  .steps > div:hover .n { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
  .list dt { transition: transform .3s var(--ease); }
  .list div:hover dt { transform: translateX(3px); }
  .keys div span:last-child { transition: transform .3s var(--ease); }
  .keys div:hover span:last-child { transform: translateX(3px); }
  .faq summary { transition: color .2s, transform .3s var(--ease); }
  .faq summary:hover { transform: translateX(3px); }
}
[data-count] { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* FAQ with JS: motion.js runs the open and close, so the CSS drop is not needed. */
.faq-js details { background: var(--paper); }
.faq-js details[open] p { animation: none; }


/* Success page: the card rises in and the download slides up when it appears. */
.success-page .card { animation: rise .7s var(--ease) both; }
.success-page #dl:not([hidden]), .success-page #install:not([hidden]) { animation: rise .6s var(--ease) both; }
.success-page #install:not([hidden]) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Success page */
.success-page main { padding: 96px 0 120px; }
.success-page .card { max-width: 620px; margin: 0 auto; padding: 40px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; isolation: isolate; }
.success-page h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.04; letter-spacing: -.015em; max-width: none; margin: 0 0 12px; }
.success-page #msg { color: var(--ink-2); margin: 0; }
.success-page #dl { margin: 28px 0 0; }
.success-page #install { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule-2); }
.success-page #install h2 { font-size: 20px; letter-spacing: -.02em; }
.success-page .install { padding: 0; background: none; box-shadow: none; list-style: none; counter-reset: i; margin: 18px 0 0; }
.success-page .small { font-size: 14px; color: var(--ink-3); margin-top: 24px; }
.success-page .spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
.success-page .done .spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 960px) {
  .row, .row.flip { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .copy { order: 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .mac { position: static; }
  .buygrid { grid-template-columns: 1fr; }
  .price-card { max-width: 480px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  nav a:not(.keep) { display: none; }
  .hero { padding-top: 64px; }
  .stage { margin-top: 48px; }
  .pop { display: none; }
  .railchip { left: 10px; bottom: -22px; gap: 9px; padding: 7px 10px; }
  .rc-lbl { font-size: 10px; }
  .stage:has(.railchip) figcaption { margin-top: 44px; }
  .priv { grid-template-columns: 1fr; }
  .priv div, .priv div:nth-child(-n+2) { grid-column: auto; }
  section { padding-top: 96px; }
  .compare, .steps, .list, .keys, .shots, .foot { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }
  .shot { padding: 18px 18px 16px; }
  .rows { gap: 64px; }
  .below { grid-template-columns: 1fr; }
  .demo { padding: 10px; border-radius: 18px; }
  .screen { aspect-ratio: 4 / 3; }
  .tools { overflow-x: auto; }
  .tools button { padding: 0 10px; flex: 1 0 auto; }
  .railband .vp { width: 200px; margin-left: -100px; }
  .railband .lbl.r { display: none; }
  .closer { padding: 56px 20px; margin-top: 96px; }
  .price-card, .install { padding: 24px; }
  .success-page .card { padding: 28px 22px; }
}
@media (max-width: 420px) {
  .cta { flex-direction: column; align-items: stretch; }
  .cta .button, .cta .ghost { width: 100%; }
  .keys div { grid-template-columns: 112px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stage .display, .js .stage .pop, .js .stage .railchip, .js .reveal.stagger > *, .js .reveal .stagger > * { opacity: 1; transform: none; }
  [data-parallax], .hero .ambient { transform: none; }
}

@media (max-width:720px){header nav a:not(.keep){display:none}header nav a{white-space:nowrap}}
