/* Two grounds: the icon's night navy, and pale graph paper for "paper trading". One family, Archivo, condensed for
   headlines like a price board and normal width for reading. The icon's crosshair is the only ornament. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --night: #081c31;
  --night-2: #0e2a47;
  --night-line: #254566;
  --on-night: #f2f7fa;
  --on-night-soft: #aec2d2;
  --paper: #e9f1f4;
  --paper-line: #d3e0e6;
  --ink: #0a2036;
  --ink-soft: #435a6e;
  --long: #24e07f;
  --short: #ff6a5e;
  --long-ink: #0b7a4b;
  --short-ink: #c62f2f;
  --amber: #f5b942;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--long); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--long-ink); }
p { margin: 0; }

h1, h2, h3 { margin: 0; font-stretch: 72%; font-weight: 800; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.3vw, 5.5rem); line-height: 0.98; }
h2 { font-size: clamp(2.125rem, 4.4vw, 3.75rem); line-height: 1; }
h3 { font-size: 1.75rem; line-height: 1.1; font-stretch: 80%; font-weight: 700; letter-spacing: 0; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 5; background: var(--on-night); color: var(--ink); padding: 8px 14px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; font-stretch: 90%; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 28px; font-size: 0.975rem; margin-left: auto; margin-right: 12px; }
.nav a { text-decoration: none; color: var(--on-night-soft); }
.nav a:hover { color: var(--on-night); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(16px, 4vw, 56px); }
.hero__copy { padding-bottom: clamp(48px, 7vw, 96px); }
.hero__lead { max-width: 30em; margin-top: clamp(20px, 2vw, 28px); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--on-night-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.hero__facts { text-wrap: balance; margin-top: 10px; font-size: 0.975rem; color: var(--on-night-soft); }

.badge { display: block; margin-left: -9px; border-radius: 10px; }
.badge img { width: 192px; height: auto; }
.badge:hover img { filter: brightness(1.18); }
.getapp { padding: 8px 16px; border: 1px solid var(--night-line); border-radius: 10px; font-weight: 600; font-stretch: 92%; font-size: 0.975rem; text-decoration: none; white-space: nowrap; }
.getapp:hover { background: var(--night-2); }
.store { display: inline-flex; align-items: center; min-height: 54px; padding: 12px 24px; border-radius: 14px; font-weight: 600; font-stretch: 92%; text-decoration: none; }
.store--soon { background: var(--night-2); border: 1px solid var(--night-line); color: var(--on-night); }
.store--live { background: var(--long); color: var(--night); }
.store--live:hover { background: #4cf09a; }
.textlink { font-weight: 600; text-underline-offset: 0.25em; }
.paper .store--soon { background: var(--ink); border-color: var(--ink); color: var(--on-night); }

/* The phone sits in the crosshair and runs off the bottom of the hero */
.stage { position: relative; align-self: end; width: clamp(250px, 25vw, 340px); margin-right: clamp(80px, 8vw, 110px); margin-left: clamp(0px, 9vw, 150px); }
.phone { position: relative; border: 9px solid #1a2b3e; border-bottom: 0; border-radius: 42px 42px 0 0; background: #0d1016; overflow: hidden; box-shadow: 0 0 0 1px #3b5570; }
.phone img { width: 100%; }
.phone--crop { height: clamp(440px, 42vw, 600px); }
.sight { position: absolute; z-index: -1; left: 50%; top: 42%; width: 172%; aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--night-line); }
.sight svg { width: 100%; height: 100%; display: block; }

.post, .fill { position: absolute; z-index: 2; border-radius: 14px; font-size: 0.975rem; line-height: 1.35; box-shadow: 0 14px 34px rgb(0 8 20 / 0.5); }
.post { left: -48px; top: 57%; width: 212px; padding: 12px 14px; background: #fff; color: var(--ink); }
.post b { display: block; font-size: 1.0625rem; font-stretch: 90%; }
.post small { display: block; margin-bottom: 4px; font-size: 0.8125rem; color: var(--ink-soft); }
.fill { left: calc(100% - 22px); top: 12%; white-space: nowrap; padding: 11px 14px; background: var(--night-2); border: 1px solid var(--night-line); color: var(--on-night); }
.fill b { display: block; color: var(--long); font-size: 1.125rem; font-stretch: 90%; }

@media (prefers-reduced-motion: no-preference) {
  .sight { animation: lock 1.1s cubic-bezier(.2,.8,.2,1) both; }
  .post { animation: arrive .5s .55s ease-out both; }
  .fill { animation: arrive .5s .85s ease-out both; }
}
@keyframes lock { from { opacity: 0; transform: translate(-50%, -50%) scale(1.5) rotate(-12deg); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Graph paper */
.paper {
  --minor: 24px;
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper-line) 1px, transparent 1px), linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: var(--minor) var(--minor);
  color: var(--ink);
}
.section { padding-block: clamp(64px, 9vw, 128px); }
.lead { max-width: 36em; margin-top: 20px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; }
.paper .lead, .paper .note { color: var(--ink-soft); }
.night .lead, .night .note { color: var(--on-night-soft); }
.note { font-size: 0.9375rem; line-height: 1.5; max-width: 62ch; }

/* The demo */
.demo { margin-top: clamp(32px, 4vw, 56px); background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; padding: clamp(18px, 3vw, 40px); box-shadow: 8px 8px 0 var(--ink); }
.demo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.picker { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; margin: 0; padding: 0; min-width: 0; }
.picker legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.picker label { position: relative; display: block; cursor: pointer; }
.picker label + label { border-left: 1.5px solid var(--ink); }
.picker input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.picker span { display: block; padding: 9px 16px; font-weight: 600; font-stretch: 90%; }
.picker input:checked + span { background: var(--ink); color: #fff; }
.picker input:focus-visible + span { outline: 3px solid var(--long-ink); outline-offset: -5px; }
.signal b { display: block; font-size: 1.25rem; font-stretch: 85%; line-height: 1.2; }
.signal span { color: var(--ink-soft); font-size: 0.9375rem; }

.track { --entry: 50%; margin-top: 36px; }
.track input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 56px; margin: 0; background: transparent; cursor: grab; touch-action: none;
}
.track input[type="range"]:active { cursor: grabbing; }
.track input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, var(--short-ink) var(--entry), var(--long-ink) var(--entry));
}
.track input[type="range"]::-moz-range-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, var(--short-ink) var(--entry), var(--long-ink) var(--entry));
}
.track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 56px; height: 56px; margin-top: -23px; border: 0; background: url("../img/crosshair.svg") center / contain no-repeat;
}
.track input[type="range"]::-moz-range-thumb { width: 56px; height: 56px; border: 0; background: url("../img/crosshair.svg") center / contain no-repeat; }
.marks { position: relative; height: 46px; margin-top: 2px; font-size: 0.875rem; line-height: 1.25; color: var(--ink-soft); }
.mark { position: absolute; top: 0; }
.mark b { display: block; color: var(--ink); font-weight: 600; }
.mark--stop { left: 0; }
.mark--entry { left: var(--entry); transform: translateX(-50%); text-align: center; }
.mark--target { right: 0; text-align: right; }

.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1.5px solid var(--ink); }
.result { padding: 18px 20px 4px 0; }
.result + .result { border-left: 1px solid var(--paper-line); padding-left: 20px; }
.result dt { font-size: 0.975rem; color: var(--ink-soft); }
.result dd { margin: 2px 0 0; font-size: clamp(1.875rem, 4.8vw, 3.75rem); line-height: 1.05; font-weight: 800; font-stretch: 72%; }
.result--main dd { font-size: clamp(2.5rem, 6.8vw, 5.25rem); }
.up { color: var(--long-ink); }
.down { color: var(--short-ink); }
.status { margin-top: 16px; font-weight: 500; }
.status + .note { margin-top: 2px; }
.demo__foot { margin-top: 18px; }

/* Steps: a true sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; }
.step h3 { margin-top: 22px; }
.step h3::before { content: counter(step) ". "; color: var(--long); }
.step p { margin-top: 8px; color: var(--on-night-soft); }
.shot { border: 7px solid #1a2b3e; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 1px #3b5570; background: #0d1016; aspect-ratio: 9 / 13; }
.shot img { width: 100%; }
.caption { margin-top: 28px; }

/* Honest numbers */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .shot { aspect-ratio: auto; max-width: 400px; max-height: 620px; }
.warn { margin-top: 22px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--ink); border-left: 8px solid var(--amber); border-radius: 8px; font-weight: 500; }
.facts { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.facts li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 28px; padding: 15px 0; border-bottom: 1px solid #b9cbd4; background: var(--paper); }
.facts b { font-weight: 600; }
.facts span { color: var(--ink-soft); }

/* Markets */
.markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.market h3 { padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.market ul { margin: 12px 0 0; padding: 0; list-style: none; }
.market li { padding: 5px 0; color: var(--on-night-soft); }

/* Channels */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 40px; }
.channel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 3vw, 36px); border: 1.5px solid var(--ink); border-radius: 18px; background: #fff; }
.channel p { color: var(--ink-soft); }
.channel a { margin-top: auto; padding-top: 10px; }
.disclosure { margin-top: 22px; }
.paper .disclosure { background: var(--paper); }

/* Questions */
.faq { margin-top: 36px; border-top: 1px solid var(--night-line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--night-line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 1.125rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; max-width: 62ch; color: var(--on-night-soft); }

/* Close and footer */
.close h2 { max-width: 12em; }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.foot { border-top: 1px solid var(--night-line); padding-block: 36px 44px; font-size: 0.9375rem; color: var(--on-night-soft); }
.foot__risk { max-width: 78ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.foot__links a { color: var(--on-night); }
.foot__owner { margin-top: 20px; color: var(--on-night); }
.foot__tm { margin-top: 4px; font-size: 0.875rem; }

/* Legal pages */
.legal { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.legal__body { max-width: 68ch; }
.legal h1 { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 0.96; }
.legal h2 { margin-top: 40px; font-size: 1.5rem; line-height: 1.2; font-stretch: 85%; font-weight: 700; letter-spacing: 0; }
.legal p, .legal ul { margin: 12px 0 0; color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal .updated { margin-top: 14px; color: var(--ink-soft); }
.notfound { min-height: 56vh; }

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .shot { max-width: 340px; max-height: 500px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-bottom: 44px; }
  .badge img { width: 176px; }
  .stage { justify-self: center; width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
  .post, .fill { position: static; width: auto; font-size: 0.875rem; padding: 10px 12px; box-shadow: none; }
  .post b { font-size: 0.975rem; }
  .fill { white-space: normal; }
  .phone--crop { grid-column: 1 / -1; justify-self: center; width: min(74vw, 300px); height: min(104vw, 440px); margin-top: 12px; }
  .sight { top: 62%; width: 116%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .markets { grid-template-columns: minmax(0, 1fr); }
  .shot { aspect-ratio: auto; max-height: 480px; max-width: 340px; }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr); }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results .result--main { grid-column: 1 / -1; order: -1; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--paper-line); padding-bottom: 14px; }
  .result { padding-right: 12px; }
  .result:not(.result--main) + .result { border-left: 1px solid var(--paper-line); padding-left: 14px; }
  .result--main + .result { border-left: 0; padding-left: 0; }
  .demo { box-shadow: 5px 5px 0 var(--ink); }
  .picker span { padding: 9px 13px; }
  .mark { font-size: 0.8125rem; }
}

/* Long reading text sits on plain paper, without the grid */
.paper:has(.legal) { background-image: none; }
