/* =============================================================================
   STOCKPAY — aave.com layout language in the brand's royal blue.

   The page is a stack of rounded blocks inset from the viewport, each one
   carrying its own ground: the blue hero, white paper, a pale tint, one dark
   block. Nothing floats between them, no decoration — the only images on the
   page are the product itself and the terminal that prints the receipt.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  color-scheme: light;
  background: var(--page);
}
body {
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--ink);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 14px;
  background: var(--ink); color: #fff; border-radius: var(--r-sm); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------ the blocks -------------------------------- */
.block {
  position: relative; margin: var(--inset);
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-block); overflow: hidden;
}
.block + .block { margin-top: var(--inset); }
.block-in { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.paper { background: var(--paper); }
.tint  { background: linear-gradient(168deg, #eaf2fe 0%, #f4f8fe 62%, #ffffff 100%); }
.dark  { background: var(--dark); color: var(--on-dark); }
.tight { padding-top: clamp(20px, 2vw, 34px); }
.paper + .paper.tight { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.paper:has(+ .paper.tight) {
  margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  padding-bottom: clamp(28px, 3.5vw, 52px);
}

/* -------------------------------- headings -------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.05em; line-height: 1.03; }
h1 { font-size: clamp(40px, 6.1vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(19px, 1.5vw, 21px); letter-spacing: -0.035em; font-weight: 500; }

/* one word per headline, set in serif italic — the house signature */
h1 em, h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.025em; font-size: 1.03em; color: var(--blue);
}
.hero h1 em, .dark h2 em, .cta h2 em { color: var(--azure); }

.kicker {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.dark .kicker, .hero .kicker { color: var(--azure); }
.sec-head { max-width: 780px; margin-bottom: clamp(34px, 4vw, 58px); }
.sec-head-split {
  max-width: none; display: grid; gap: clamp(18px, 3vw, 56px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr); align-items: end;
}
.sec-side { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.lead { margin-top: 22px; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.fineprint { margin-top: 24px; font-size: 13px; color: var(--muted-2); max-width: 44ch; }

.ticks { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 13px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg); border-radius: 1px;
}

/* --------------------------------- pills ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 56px; padding: 0 30px; border-radius: var(--r-pill);
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .18s var(--ease), color .18s, transform .16s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(0.985); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-blue  { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-blue[disabled] { background: rgba(20,22,28,0.06); color: var(--muted-2); cursor: not-allowed; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eaeef5; }
.btn-clear { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.34); }
.btn-clear:hover { background: rgba(255,255,255,0.12); }
.btn-soft  { background: var(--blue-soft); color: var(--blue); }
.btn-soft:hover { background: rgba(11,91,239,0.15); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------------------------------- nav ----------------------------------- */
.nav { position: fixed; inset: var(--inset) 0 auto 0; z-index: 100; padding-inline: var(--inset); }
.nav-in {
  height: 56px; max-width: calc(var(--maxw) + var(--pad-x) * 2); margin-inline: auto;
  padding: 0 8px 0 18px; display: flex; align-items: center; gap: 22px;
  border-radius: var(--r-pill); background: transparent;
  transition: background .28s var(--ease), box-shadow .28s var(--ease), backdrop-filter .28s;
}
.nav.scrolled .nav-in {
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 10px 30px -18px rgba(20,22,28,0.5);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark img { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.045em; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: 15px; color: #fff; opacity: .82;
  transition: opacity .15s, background .15s, color .15s;
}
.nav-links a:hover { opacity: 1; background: rgba(255,255,255,0.14); }
.nav.scrolled .nav-links a { color: var(--ink-2); opacity: 1; }
.nav.scrolled .nav-links a:hover { background: rgba(20,22,28,0.05); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav .brand-name { color: #fff; }
.nav.scrolled .brand-name { color: var(--ink); }
.nav .btn-blue { background: #fff; color: var(--blue); }
.nav .btn-blue:hover { background: #eaeef5; }
.nav.scrolled .btn-blue { background: var(--blue); color: #fff; }
.nav.scrolled .btn-blue:hover { background: var(--blue-deep); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); position: relative; }
.menu-btn span {
  position: absolute; left: 13px; width: 18px; height: 1.8px; background: #fff; border-radius: 2px;
  transition: transform .22s var(--ease), background .2s;
}
.nav.scrolled .menu-btn span { background: var(--ink); }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.sheet {
  position: fixed; top: calc(var(--nav-h) + 4px); left: var(--inset); right: var(--inset); z-index: 99;
  display: flex; flex-direction: column; padding: 10px 20px 20px;
  border-radius: var(--r-card); background: #fff;
  box-shadow: 0 30px 60px -30px rgba(20,22,28,0.5);
  animation: sheetIn .24s var(--ease);
}
.sheet[hidden] { display: none; }
.sheet a {
  padding: 16px 4px; font-size: 20px; font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.04em; border-bottom: 1px solid var(--line);
}
.sheet .sheet-cta {
  margin-top: 16px; border: 0; text-align: center; color: #fff; background: var(--blue);
  border-radius: var(--r-pill); font-size: 17px; padding: 16px;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------------------------------- hero ---------------------------------- */
.hero {
  background: var(--hero-grad); color: #fff;
  padding-top: calc(var(--nav-h) + clamp(34px, 4.5vw, 74px));
  padding-bottom: clamp(56px, 6.5vw, 96px);
  min-height: min(680px, 82vh); display: flex; align-items: center;
}
.hero-in { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero .lede {
  margin-top: 24px; max-width: 43ch; font-size: clamp(16.5px, 1.45vw, 19.5px);
  line-height: 1.5; color: rgba(255,255,255,0.86);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 450;
  color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 16px 7px 12px; border-radius: var(--r-pill); margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #7dfcc0; box-shadow: 0 0 0 3px rgba(125,252,192,0.22); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* the render is the product shot: the terminal that prints the ticker receipt */
.hero-render {
  position: absolute; right: clamp(4px, 1.5vw, 30px); bottom: clamp(0px, 1vw, 18px);
  width: min(46vw, 580px); z-index: 1; display: block; pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.hero-render img {
  width: 100%; height: auto;
  filter: drop-shadow(0 40px 60px rgba(3, 32, 96, 0.35));
}
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-render { animation: none; } }

.store-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.store-pills span {
  padding: 9px 18px; border-radius: var(--r-pill); background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
}
.store-pills .more { background: rgba(255,255,255,0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }


/* --- gradient dither -------------------------------------------------------
   A long blue ramp banks visibly in 8-bit. A single tile of fractal noise at a
   few percent breaks the steps up without reading as texture. */
.hero, .cta { position: relative; isolation: isolate; }
.hero::after, .cta::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
}
.cta-in, .cta h2, .cta-btns { position: relative; z-index: 1; }

/* --------------------------------- split ---------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(36px, 5vw, 78px); align-items: center;
}
.tint .split { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }

/* ----------------------------- checkout card ------------------------------ */
.ck-wrap { width: 100%; justify-self: end; }
.ck {
  padding: 20px; display: flex; flex-direction: column; gap: 15px;
  border-radius: var(--r-card); background: #fff;
  box-shadow: 0 2px 4px rgba(20,22,28,0.04), 0 30px 60px -30px rgba(7,66,184,0.35);
  border: 1px solid var(--line);
}
.tint .ck, .paper .ck { background: #fff; }
.ck-head { display: flex; align-items: center; justify-content: space-between; }
.ck-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.04em; }
.ck-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.ck-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.ck-live.on i { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }

.ck-label {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px;
}
.ck-url { display: flex; gap: 8px; }
.ck-url input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 15px;
  background: #f5f6f8; border: 1px solid transparent; border-radius: var(--r-md); font-size: 14px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.ck-url input::placeholder { color: var(--muted-2); }
.ck-url input:focus { outline: none; background: #fff; border-color: var(--blue-line); box-shadow: 0 0 0 4px var(--blue-soft); }
.ck-go {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--blue); color: #fff; display: grid; place-items: center;
  transition: background .15s, opacity .15s;
}
.ck-go:hover { background: var(--blue-deep); }
.ck-go svg { width: 19px; height: 19px; }
.ck-go.busy { pointer-events: none; opacity: .55; }

.ck-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; }
.ck-examples > span { font-size: 12px; color: var(--muted-2); margin-right: 2px; }
.ck-examples button {
  font-size: 12.5px; color: var(--blue); padding: 6px 13px; background: var(--blue-soft);
  border-radius: var(--r-pill); transition: background .15s;
}
.ck-examples button:hover { background: rgba(11,91,239,0.14); }

.ck-product {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 13px; align-items: center;
  padding: 13px; border-radius: var(--r-md); background: #f5f6f8; transition: background .2s;
}
.ck-product[data-state="loading"] { animation: pulse 1.1s ease-in-out infinite; }
.ck-product[data-state="error"] { background: var(--down-soft); }
.ck-product[data-state="ok"] { background: #f5f6f8; }
@keyframes pulse { 50% { opacity: .55; } }
.ck-thumb {
  width: 56px; height: 56px; border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: grid; place-items: center;
}
.ck-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ck-thumb-ph { width: 20px; height: 20px; border-radius: 6px; background: rgba(20,22,28,0.08); }
.ck-pname { font-size: 13.5px; font-weight: 500; line-height: 1.32; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ck-pmeta { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ck-pprice { font-family: var(--font-mono); font-size: 14px; font-weight: 500; white-space: nowrap; }

.ck-stocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ck-stock {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 4px 9px;
  background: #f5f6f8; border-radius: 13px; text-align: center;
  transition: background .15s, color .15s;
}
.ck-stock:hover { background: #eceef2; }
.ck-stock b { font-size: 12px; font-weight: 500; letter-spacing: -0.01em; }
.ck-stock i { font-family: var(--font-mono); font-size: 10px; font-style: normal; color: var(--muted); }
.ck-stock.on { background: var(--blue); }
.ck-stock.on b { color: #fff; }
.ck-stock.on i { color: rgba(255,255,255,0.7); }
.ck-stock-skel { height: 47px; border-radius: 13px; background: #f5f6f8; animation: pulse 1.1s ease-in-out infinite; }

.ck-summary { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: #f5f6f8; }
.ck-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.ck-row b { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ck-row-total { padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink); }
.ck-row-total b { font-size: 16px; color: var(--blue); }
.ck-foot { font-size: 11.5px; color: var(--muted-2); text-align: center; }

.ck-receipt {
  border-radius: var(--r-md); padding: 16px; font-size: 12px; color: #fff; background: var(--dark);
  animation: sheetIn .25s var(--ease);
}
.ck-receipt[hidden] { display: none; }
.ck-receipt h4 { font-size: 14px; margin-bottom: 5px; letter-spacing: -0.03em; }
.ck-receipt p { color: var(--on-dark-2); line-height: 1.5; }
.ck-receipt .rc-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-d); }
.ck-receipt .rc-row span { color: var(--on-dark-3); }
.ck-receipt code { font-family: var(--font-mono); font-size: 11px; color: #fff; overflow-wrap: anywhere; text-align: right; }
.ck-receipt .rc-close { margin-top: 13px; font-size: 12px; color: var(--azure); text-decoration: underline; }


/* ------------------------------ wallet + orders --------------------------- */
.ck-wallet {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 13px; border-radius: var(--r-md); background: #f5f6f8;
  font-size: 11.5px; font-family: var(--font-mono); color: var(--muted);
}
.ck-wallet[hidden] { display: none; }
.ckw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.ckw-addr { color: var(--ink); }
.ckw-sep { color: var(--muted-2); }
.ckw-link { margin-left: auto; color: var(--blue); }
.ckw-link:hover { text-decoration: underline; }

.orders { margin-top: 30px; }
.orders h4 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500; margin-bottom: 12px;
}
.ord-empty { font-size: 13.5px; color: var(--muted-2); }
.ord {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px;
}
.ord b { font-family: var(--font-mono); font-weight: 500; }
.ord span { color: var(--muted); font-size: 12.5px; }
.ord i { font-family: var(--font-mono); font-style: normal; font-size: 11.5px; color: var(--blue); }
.ord:hover i { text-decoration: underline; }

/* --------------------------------- ledger --------------------------------- */
.ledger { border-radius: var(--r-card); background: #fff; overflow: hidden; box-shadow: 0 20px 44px -30px rgba(7,66,184,0.4); border: 1px solid var(--line); }
.ledger-cap {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 18px;
  border-bottom: 1px solid var(--line); background: #fafbfc;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.ledger-live { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.06em; color: var(--up); }
.ledger-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.ledger-body { padding: 18px; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ledger-head { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); padding-bottom: 10px; }
.ledger-row { padding: 7px 0; }
.lsym { font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.lsym i { font-style: normal; color: var(--muted-2); font-size: 12px; margin-left: 6px; }
.lnum { font-family: var(--font-mono); font-size: 13.5px; text-align: right; color: var(--ink-2); }
.lnum-out { color: var(--ink); }
.ledger-row-sub .lsym, .ledger-row-sub .lnum { font-size: 12px; color: var(--muted); }
.ledger-sep { height: 1px; background: var(--line); margin: 13px 0; }
.lo-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.lo-row b { font-family: var(--font-mono); font-weight: 500; }
.lo-dim { color: var(--muted); }
.lo-total { margin-top: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
.lo-total b { color: var(--blue); }
.ledger-foot { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tick { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--up-soft); color: var(--up); font-size: 10px; }

/* ------------------------------- how it works ----------------------------- */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-card {
  padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-card); background: #f5f6f8;
  display: flex; flex-direction: column; min-height: 100%;
  transition: background .25s var(--ease);
}
.how-card:hover { background: #eef1f6; }
.how-num { font-family: var(--font-mono); font-size: 12px; color: var(--blue); margin-bottom: 18px; }
.how-card h3 { margin-bottom: 11px; }
.how-card > p { font-size: 15px; color: var(--muted); }
.how-art { margin-top: auto; padding-top: 28px; }

.art-paste { display: flex; flex-direction: column; gap: 8px; }
.ap-field {
  display: flex; align-items: center; height: 42px; padding: 0 13px; gap: 2px;
  background: #fff; border-radius: 12px; font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-2); overflow: hidden;
}
.ap-url { white-space: nowrap; }
.ap-caret { width: 1.5px; height: 14px; background: var(--blue); animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ap-hit { display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 13px; background: #fff; border-radius: 12px; }
.ap-img { width: 32px; height: 32px; border-radius: 8px; background: var(--blue-soft); flex: none; }
.ap-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.ap-lines i { height: 6px; border-radius: 3px; background: rgba(20,22,28,0.09); }
.ap-lines i:first-child { width: 86%; }
.ap-lines i:last-child { width: 48%; }
.ap-px { font-family: var(--font-mono); font-size: 11.5px; }

.art-stocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.as-chip { padding: 10px 4px; border-radius: 12px; background: #fff; text-align: center; }
.as-chip b { display: block; font-size: 11.5px; font-weight: 500; }
.as-chip i { font-family: var(--font-mono); font-style: normal; font-size: 9.5px; color: var(--muted); }
.as-chip.is-on { background: var(--blue); }
.as-chip.is-on b { color: #fff; }
.as-chip.is-on i { color: rgba(255,255,255,0.72); }

.art-track ol { display: flex; flex-direction: column; }
.art-track li { position: relative; padding: 0 0 15px 27px; font-size: 12.5px; color: var(--muted); }
.art-track li:last-child { padding-bottom: 0; }
.art-track li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1.5px; background: rgba(15,159,106,0.26); }
.art-track li:last-child::before { display: none; }
.art-track li span { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(15,159,106,0.14); }
.art-track li.now { color: var(--ink); }
.art-track li.now span { background: #fff; box-shadow: inset 0 0 0 2px var(--up), 0 0 0 3px rgba(15,159,106,0.14); }

/* --------------------------------- board ---------------------------------- */
.board-grid {
  margin-top: clamp(26px, 3vw, 38px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line);
}
.bq, .bq-skel { background: #fff; padding: 21px; min-height: 120px; transition: background .2s; }
.bq:hover { background: #fafbfc; }
.bq-skel { background: #f5f6f8; animation: pulse 1.1s ease-in-out infinite; }
.bq-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bq-sym { font-size: 15px; font-weight: 500; letter-spacing: -0.025em; }
.bq-name { font-size: 11.5px; color: var(--muted-2); }
.bq-px { font-family: var(--font-mono); font-size: 21px; letter-spacing: -0.035em; margin-top: 13px; }
.bq-chg { font-family: var(--font-mono); font-size: 12px; margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; }
.bq-chg.up { color: var(--up); }
.bq-chg.down { color: var(--down); }
.board-foot { margin-top: 16px; font-size: 12px; color: var(--muted-2); font-family: var(--font-mono); }


.rail-strip {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  margin-top: 22px; padding: 16px 20px; border-radius: var(--r-card);
  background: #f5f6f8; font-size: 12.5px; color: var(--muted);
  font-family: var(--font-mono);
}
.rail-strip b { color: var(--ink); font-weight: 500; }
.rail-strip a { color: var(--blue); }
.rail-strip a:hover { text-decoration: underline; }

/* ---------------------------------- rail ---------------------------------- */
.rail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 3vw, 46px) clamp(30px, 5vw, 72px); }
.rail-grid article { padding-top: 24px; border-top: 1px solid var(--line-d); }
.rail-grid h3 { margin-bottom: 10px; }
.rail-grid p { font-size: 15.5px; color: var(--on-dark-2); max-width: 44ch; }

.numbers {
  margin-top: clamp(46px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--r-card);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-d);
}
.numbers div { display: flex; flex-direction: column; gap: 5px; }
.numbers b { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 500; letter-spacing: -0.05em; color: var(--azure); }
.numbers span { font-size: 13.5px; color: var(--on-dark-3); }

/* ----------------------------------- faq ---------------------------------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 30px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(17px, 1.55vw, 20px); font-weight: 500; letter-spacing: -0.035em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { position: relative; flex: none; width: 15px; height: 15px; }
.faq .chev::before, .faq .chev::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .22s var(--ease), opacity .18s; }
.faq .chev::before { top: 7px; left: 0; width: 15px; height: 1.7px; }
.faq .chev::after { left: 7px; top: 0; width: 1.7px; height: 15px; }
.faq details[open] .chev::after { transform: rotate(90deg); opacity: 0; }
.faq details p { padding: 0 40px 26px 0; font-size: 15.5px; color: var(--muted); max-width: 58ch; margin-top: -8px; }

/* ----------------------------------- cta ---------------------------------- */
.cta { background: var(--hero-grad); color: #fff; text-align: center; padding-block: clamp(58px, 6.5vw, 96px); }
.cta h2 { font-size: clamp(32px, 4.8vw, 60px); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* --------------------------------- footer --------------------------------- */
.foot { padding: clamp(40px, 5vw, 64px) var(--pad-x) 40px; }
.foot .block-in { max-width: var(--maxw); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding-bottom: clamp(30px, 4vw, 46px); }
.foot-brand p { margin-top: 14px; font-size: 14.5px; color: var(--muted); max-width: 30ch; }
.foot-cols { display: flex; gap: clamp(34px, 6vw, 76px); }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; margin-bottom: 3px; }
.foot-cols a { font-size: 14.5px; color: var(--ink-2); }
.foot-cols a:hover { color: var(--blue); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }
.foot-legal .disc { max-width: 76ch; line-height: 1.55; }

/* --------------------------------- reveal --------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------- responsive -------------------------------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  /* the render leaves the absolute layer here, so the hero must stop being a
     row — column-reverse keeps the copy first and drops the terminal below it */
  .hero { min-height: 0; flex-direction: column-reverse; align-items: stretch; }
  .hero-render {
    position: relative; right: auto; bottom: auto;
    width: min(480px, 94%); margin: 36px auto -12px;
  }
  .hero-copy { max-width: none; }
  .split, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .tint .split { grid-template-columns: minmax(0, 1fr); }
  .ck-wrap { justify-self: stretch; max-width: 480px; }
  .faq .sec-head { position: static; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head-split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { max-width: 520px; }
}
@media (max-width: 720px) {
  :root { --r-block: 26px; }
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero-cta .btn { width: 100%; }
  .rail-grid { grid-template-columns: minmax(0, 1fr); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .nav-right .btn-sm { display: none; }
  .store-pills span { font-size: 13.5px; padding: 8px 15px; }
}
@media (max-width: 420px) {
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .ck { padding: 16px; }
}

/* ------------------------ delivery block (both pages) ---------------------- */
.ck-ship { display: block; }
.ship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ship-grid .wide { grid-column: 1 / -1; }
.ship-grid input, .ship-grid select {
  height: 44px; padding: 0 13px; border-radius: var(--r-md);
  background: #f5f6f8; border: 1px solid transparent; font-size: 13.5px; min-width: 0;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.ship-grid select { -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.ship-grid input:focus, .ship-grid select:focus {
  outline: none; background: #fff; border-color: var(--blue-line); box-shadow: 0 0 0 4px var(--blue-soft);
}
.ship-grid input::placeholder { color: var(--muted-2); }
.ship-note { margin-top: 9px; font-size: 11.5px; color: var(--muted-2); line-height: 1.45; }

.ship-done {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: var(--r-md); background: #f5f6f8; font-size: 12.5px;
}
.ship-ico {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--up-soft); color: var(--up); font-size: 11px;
}
.ship-txt { min-width: 0; color: var(--muted); line-height: 1.4; }
.ship-txt b { display: block; color: var(--ink); font-weight: 500; }
.ship-edit { margin-left: auto; flex: none; color: var(--blue); font-size: 12.5px; }
.ship-edit:hover { text-decoration: underline; }

.ord-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ord-title b { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-title em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.rc-memo {
  display: block; margin-top: 12px; font-size: 12px; color: var(--azure); text-decoration: underline;
}

.ck .ship-grid input, .ck .ship-grid select { font-size: 13px; }

.ship-save {
  margin-top: 10px; width: 100%; height: 40px; border-radius: var(--r-pill);
  background: var(--blue-soft); color: var(--blue); font-size: 13.5px; font-weight: 500;
  transition: background .15s;
}
.ship-save:hover { background: rgba(11, 91, 239, 0.14); }

/* the X handle sits in the nav as an icon, not a labelled link */
.nav-x {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-pill);
  color: #fff; opacity: .82; transition: opacity .15s, background .15s, color .15s;
}
.nav-x svg { width: 16px; height: 16px; }
.nav-x:hover { opacity: 1; background: rgba(255,255,255,0.14); }
.nav.scrolled .nav-x { color: var(--ink-2); }
.nav.scrolled .nav-x:hover { background: rgba(20,22,28,0.05); color: var(--ink); }
@media (max-width: 720px) { .nav-x { display: none; } }
