/* The product pages (/api/trading/, /api/lightspeed/, …), on top of the
   /api/ page's open look (landing.css, body.v2): a calmer, more businesslike
   layer. Neutral colours with orange kept for the one main action; centered
   section headings under a small label; content in soft cards; and each
   section on its own background (a light beam in the hero, dot fields,
   raised panels, a faint grid) instead of one grid behind the whole page. */

body.product {
  --p-bg: #0c0d11;
  --p-panel: #111319;
  --p-card: #15171d;
  --p-card2: #1a1c23;
  --p-edge: #23262e;
  --p-edge2: #30333c;
  /* The page's own colour (r, g, b), set per page below: glows, the hero's
     artwork, labels and links take it. */
  --acc: 255, 79, 96;
  --p-ink: #f2f3f5;
  --p-sub: #9a9ea8;
  --p-mute: #6f737d;
  --p-cool: 120, 140, 190;
  background-image: none;
}
@media (min-width: 1408px) { body.product::before { display: none; } }

/* ── Type: confident, not loud ── */
body.product h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; color: var(--p-ink); }
body.product h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -.032em; color: var(--p-ink); }
body.product h1 .tone, body.product h2 .tone { display: inline; background: none; color: #7d818b; animation: none; -webkit-text-fill-color: currentColor; }
body.product h3 { font-size: 18px; letter-spacing: -.015em; color: var(--p-ink); }
body.product .x-lead, body.product .lead { color: var(--p-sub); font-size: 18px; line-height: 1.65; }

/* The section label: the /api/ page's (number, short rule, name, in mono
   capitals), the number in the page's colour. */
body.product .eb i { color: rgb(var(--acc)); }
body.product .x-hero .eb i::after { display: none; }

body.product .more { color: var(--p-ink); }

/* ── Sections: centered heads, roomy ── */
body.product main > section { position: relative; isolation: isolate; }
body.product main > section::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
body.product .x-sec { padding: 128px 0; border-top: 1px solid var(--p-edge); }
body.product .x-head h2 .tone { display: block; }

/* Hero: centered, under a soft beam of light. */
body.product .x-hero { padding: 172px 0 128px; text-align: center; overflow: hidden; background:
  radial-gradient(1100px 520px at 50% -8%, rgba(var(--p-cool), .20), transparent 62%),
  linear-gradient(180deg, #0b0c10 0%, var(--p-bg) 100%); }
body.product .x-hero::before { background: linear-gradient(112deg, transparent 52%, rgba(214, 222, 240, .07) 60%, transparent 70%), linear-gradient(118deg, transparent 60%, rgba(214, 222, 240, .045) 66%, transparent 74%); }
body.product .x-hero .hero-grid { -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 55% 60% at 50% 30%, #000 10%, transparent 72%); opacity: .6; }
body.product .x-hero-in { display: flex; flex-direction: column; align-items: center; }
body.product .x-hero h1 { max-width: 16ch; text-align: center; }
body.product .x-hero h1 .tone { display: block; }
body.product .x-hero-row { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 26px; }
body.product .x-hero .lead { max-width: 720px; margin: 0 auto; text-align: center; }
body.product .x-hero-act { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 38px; }
body.product .x-hero-act .cta { justify-content: center; margin: 0; }
body.product .p-plan-line { margin: 20px 0 0; color: var(--p-mute); font-size: 14px; }
body.product .p-plan-line b { color: var(--p-sub); font-weight: 600; }

/* Each section its own ground. Every page has: how, two feature sections,
   plans, faq, related, then the end. */
body.product #how:not([class*=" g-"]) { background: var(--p-panel); }
body.product #how:not([class*=" g-"])::before { background: radial-gradient(900px 380px at 50% 0%, rgba(var(--p-cool), .07), transparent 70%); }
body.product .x-sec:not([class*=" g-"]):nth-of-type(3) { background: var(--p-bg); }
body.product .x-sec:not([class*=" g-"]):nth-of-type(3)::before {
  background-image: radial-gradient(rgba(170, 180, 205, .2) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 15%, transparent 70%);
}
body.product .x-sec:not([class*=" g-"]):nth-of-type(4) { background: var(--p-panel); }
body.product .x-sec:not([class*=" g-"]):nth-of-type(4)::before { background: radial-gradient(760px 420px at 88% 18%, rgba(var(--p-cool), .09), transparent 70%), radial-gradient(640px 380px at 6% 92%, rgba(60, 170, 150, .05), transparent 70%); }
body.product #plans:not([class*=" g-"]) { background: var(--p-bg); }
body.product #plans:not([class*=" g-"])::before {
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 75%);
}
body.product #faq:not([class*=" g-"]) { background: var(--p-panel); }
body.product #related:not([class*=" g-"]) { background: var(--p-bg); }
body.product #related:not([class*=" g-"])::before {
  background-image: radial-gradient(rgba(170, 180, 205, .14) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 10%, transparent 70%);
}
body.product .x-end { padding: 120px 0 128px; border-top: 1px solid var(--p-edge); text-align: center; background:
  radial-gradient(900px 420px at 50% 115%, rgba(255, 138, 61, .10), transparent 70%),
  radial-gradient(1000px 500px at 50% -20%, rgba(var(--p-cool), .10), transparent 70%),
  #0b0c0f; }
body.product .x-end .hero-grid { opacity: .5; }
body.product .x-end-in { flex-direction: column; align-items: center; gap: 34px; }
body.product .x-end h2 { font-size: clamp(32px, 4vw, 52px); }
body.product .x-end h2 .tone { display: inline; }
body.product .x-end .cta { justify-content: center; }

/* ── Content in soft cards ── */
body.product .card::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); }
body.product .card::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .035), transparent 45%); }
body.product .card-head { padding: 15px 18px; border-color: var(--p-edge); }
body.product .x-split { gap: 72px; align-items: center; }
body.product .x-pts li { font-size: 16px; padding: 22px 0 23px; border-color: var(--p-edge); }
body.product .x-pts { border-color: var(--p-edge); }
body.product .x-pts b { font-size: 17px; margin-bottom: 6px; }

/* Cells become cards with room between them. */
body.v2 .p-cells > * { display: flex; flex-direction: column; gap: 10px; }
body.v2 .p-cells h3 { margin: 0; }
body.v2 .p-cells p { margin: 0; color: var(--p-sub, var(--text2)); font-size: 15.5px; line-height: 1.6; }
body.v2 .p-cells .more { margin-top: auto; padding-top: 10px; }
body.v2 .x-cells.p-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.v2 .x-cells.p-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Launchpads: the same soft tiles. */

/* A code sample. */
.p-code pre {
  margin: 0;
  padding: 20px 22px 22px;
  overflow-x: auto;
  color: #c9cbd1;
  font: 13px/1.72 var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  tab-size: 2;
}
.p-code pre code { font: inherit; }
.p-code .c { color: #646873; }
.p-code .k { color: #b9a4f5; }
.p-code .s { color: #93cfa0; }
.p-code .n { color: #8fb8ff; }
.p-code .p { color: #e2e3e7; }
.p-code-out { border-top: 1px solid var(--p-edge, var(--line)); }
.p-code-out pre { color: #a3a6ae; font-size: 12.5px; }
.p-code-tabs { display: flex; gap: 2px; margin-left: auto; }
.p-code-tabs span { color: var(--text3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* Which plans include it: a table in a card. */
.p-plans-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-plans { width: 100%; border-collapse: collapse; font-size: 15px; }
.p-plans th, .p-plans td { padding: 17px 24px; border-bottom: 1px solid var(--p-edge, var(--line)); text-align: left; vertical-align: top; }
.p-plans tbody tr:last-child th, .p-plans tbody tr:last-child td { border-bottom: 0; }
.p-plans thead th { padding-top: 18px; padding-bottom: 16px; background: rgba(255, 255, 255, .02); color: var(--p-sub, var(--text3)); font: 600 13px/1.4 var(--font); letter-spacing: 0; text-transform: none; }
.p-plans tbody th { color: var(--p-ink, var(--text)); font-weight: 600; width: 30%; }
.p-plans tbody th small { display: block; margin-top: 3px; color: var(--p-mute, var(--text3)); font-size: 12.5px; font-weight: 400; }
.p-plans td { color: var(--p-sub, var(--text2)); }
.p-plans td b { color: var(--p-ink, var(--text)); font-weight: 600; }
.p-plans .no { color: #3d4048; }
.p-plans-foot { margin: 24px 0 0; color: var(--p-mute, var(--text3)); font-size: 14px; text-align: center; }
.p-plans-foot a { color: var(--p-sub, var(--text2)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }

/* FAQ: the questions in a card. */
body.product .x-faq .qa details:last-child { border-bottom: 0; }
body.product .x-faq-l .eb { margin-bottom: 22px; }

/* The other products: cards with an arrow. */
.p-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-rel a { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 32px; color: var(--p-ink, var(--text)); transition: background .2s; }
.p-rel a::after { content: '→'; position: absolute; top: 26px; right: 28px; color: var(--p-mute, #6f737d); transition: transform .2s, color .2s; }
.p-rel a:hover::after { color: var(--p-ink, #fff); transform: translateX(3px); }
.p-rel a b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.p-rel a span { color: var(--p-sub, var(--text3)); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 1060px) {
  body.v2 .x-cells.p-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.product .x-sec { padding: 104px 0; }
}
@media (max-width: 720px) {
  body.product .x-hero { padding: 132px 0 96px; }
  body.product .x-sec { padding: 84px 0; }
  body.product .x-head { margin-bottom: 44px; }
  body.product .x-lead, body.product .lead { font-size: 16.5px; }
  body.product .x-split { gap: 44px; }
  body.v2 .x-cells.p-four, body.v2 .x-cells.p-two, body.v2.product .x-cells { grid-template-columns: 1fr; }
  .p-rel { grid-template-columns: 1fr; }
  .p-plans th, .p-plans td { padding: 14px 14px; }
}

/* ── Motion ── */
/* The hero's light drifts slowly; the beam breathes. */
@keyframes p-drift { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-4%); opacity: .7; } }
body.product .x-hero::before { animation: p-drift 16s ease-in-out infinite; }
/* Code cards glow faintly under the pointer (site.js sets --mx/--my). */
/* FAQ rows highlight on hover. */
body.product .qa summary { transition: color .2s; }
body.product .qa summary:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  body.product *, body.product *::before { animation: none !important; transition: none !important; }
}

/* ── Every page its own colour and picture ───────────────────────────────
   The colour says what kind of product it is; the artwork (motifs/*.svg,
   made by scripts/motifs.py) is a picture of what it does. */
body.p-trading { --acc: 255, 79, 96; --motif: url(motifs/trading.svg); }          /* shrine red: one request routed to every launchpad */
body.p-lightspeed { --acc: 247, 190, 75; --motif: url(motifs/lightspeed.svg); }   /* gold: light racing down eight lanes */
body.p-streams { --acc: 52, 214, 164; --motif: url(motifs/streams.svg); }         /* green: data flowing past */
body.p-shred-stream { --acc: 96, 152, 255; --motif: url(motifs/shred-stream.svg); } /* blue: shreds, before the block */
body.p-historical-data { --acc: 166, 136, 255; --motif: url(motifs/historical-data.svg); } /* violet: rings of time */
body.p-x-telegram { --acc: 64, 196, 250; --motif: url(motifs/x-telegram.svg); }   /* sky: posts arriving */
body.p-embeds { --acc: 240, 98, 170; --motif: url(motifs/embeds.svg); }           /* pink: a holder bubble map */
body.c-solana { --acc: 153, 99, 255; --acc2: 20, 241, 149; --motif: url(motifs/solana.svg); }
body.c-bnb { --acc: 240, 185, 11; --motif: url(motifs/bnb.svg); }
body.c-robinhood { --acc: 61, 220, 90; --motif: url(motifs/robinhood.svg); }
body.c-arc { --acc: 91, 157, 255; --motif: url(motifs/arc.svg); }

/* Hero: the page's picture behind a soft glow of its colour, the middle kept
   calm for the words. */
body.product .x-hero { background:
  radial-gradient(900px 480px at 50% 0%, rgba(var(--acc), .22), transparent 65%),
  radial-gradient(700px 420px at 85% 70%, rgba(var(--acc2, var(--acc)), .10), transparent 70%),
  linear-gradient(180deg, #10121a 0%, var(--p-bg) 100%); }
body.product .x-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--motif) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 42% 46% at 50% 46%, transparent 0%, rgba(0, 0, 0, .35) 45%, #000 100%);
  mask-image: radial-gradient(ellipse 42% 46% at 50% 46%, transparent 0%, rgba(0, 0, 0, .35) 45%, #000 100%);
  opacity: .95; animation: p-fade 1.6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes p-fade { from { opacity: 0; transform: scale(1.03); } }
body.product .x-hero::before { background: linear-gradient(112deg, transparent 52%, rgba(var(--acc), .07) 60%, transparent 70%), linear-gradient(118deg, transparent 60%, rgba(255, 255, 255, .04) 66%, transparent 74%); }

/* The label pill and the second line of the headline take the colour. */
body.product .x-hero h1 .tone { background: linear-gradient(90deg, rgb(var(--acc)), rgba(var(--acc2, var(--acc)), .75)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
body.product .more { color: var(--p-ink); }
body.product .more:hover { color: rgb(var(--acc)); }

/* Sections, each its own ground, all tinted with the page's colour. */
body.product #how:not([class*=" g-"])::before { background: radial-gradient(900px 380px at 50% 0%, rgba(var(--acc), .10), transparent 70%); }
body.product .x-sec:not([class*=" g-"]):nth-of-type(3)::before {
  background-image: radial-gradient(rgba(var(--acc), .35) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 70%);
  opacity: .55;
}
/* The fourth section shows the page's picture again, faint and mirrored. */
body.product .x-sec:not([class*=" g-"]):nth-of-type(4) { background: linear-gradient(180deg, var(--p-panel), #0e1015); }
body.product .x-sec:not([class*=" g-"]):nth-of-type(4)::before { background: radial-gradient(760px 420px at 88% 18%, rgba(var(--acc), .12), transparent 70%), radial-gradient(640px 380px at 6% 92%, rgba(var(--acc2, var(--acc)), .07), transparent 70%); }
body.product .x-sec:not([class*=" g-"]):nth-of-type(4)::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--motif) center / cover no-repeat; transform: scaleX(-1); opacity: .28;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
body.product #plans:not([class*=" g-"])::before { background-image: linear-gradient(rgba(var(--acc), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc), .06) 1px, transparent 1px); }
body.product #faq:not([class*=" g-"]) { background: linear-gradient(180deg, var(--p-panel), var(--p-bg)); }
body.product #related:not([class*=" g-"])::before { background-image: radial-gradient(rgba(var(--acc), .3) 1px, transparent 1.3px); opacity: .6; }
body.product .x-end { background:
  radial-gradient(900px 420px at 50% 115%, rgba(var(--acc), .22), transparent 70%),
  radial-gradient(1000px 500px at 50% -20%, rgba(var(--acc2, var(--acc)), .08), transparent 70%),
  #0e1015; }

/* Cards and tables pick the colour up on hover. */
.p-rel a:hover::after { color: rgb(var(--acc, 255, 255, 255)); }
.p-plans thead th { background: rgba(var(--acc, 255, 255, 255), .05); }
body.product .p-code .k { color: rgb(var(--acc)); }

/* ── More motion ── */
/* Section pills breathe in their colour. */
@keyframes p-breathe { 50% { box-shadow: inset 0 0 0 1px rgba(var(--acc), .55), 0 0 22px -6px rgba(var(--acc), .45); } }
body.product .x-hero .eb { animation: p-breathe 4s ease-in-out infinite; }
/* The plans table rows light on hover. */
.p-plans tbody tr { transition: background .2s; }
.p-plans tbody tr:hover { background: rgba(var(--acc, 255, 255, 255), .04); }
@media (prefers-reduced-motion: reduce) {
  body.product .x-hero::after, body.product .x-hero .eb { animation: none !important; }
}

/* ══ Layout pieces (ly-*) ══════════════════════════════════════════════
   Each product page is built from these in its own order, so it reads as
   what it sells: a pipeline for the Trading API, a race for Lightspeed, a
   time axis for Shred Stream, a chat for the history MCP… Grounds (g-*) pick
   a section's background. */

/* Grounds: a section takes one. */
body.product .x-sec.g-panel { background: linear-gradient(180deg, var(--p-panel), #0f1116); }
body.product .x-sec.g-panel::before { background: radial-gradient(900px 380px at 50% 0%, rgba(var(--acc), .10), transparent 70%); }
body.product .x-sec.g-plain { background: var(--p-bg); }
body.product .x-sec.g-plain::before { background: none; }
body.product .x-sec.g-dots { background: var(--p-bg); }
body.product .x-sec.g-dots::before { background-image: radial-gradient(rgba(var(--acc), .35) 1px, transparent 1.3px); background-size: 18px 18px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 70%); }
body.product .x-sec.g-motif { background: linear-gradient(180deg, var(--p-panel), #0e1015); }
body.product .x-sec.g-motif::before { background: radial-gradient(760px 420px at 88% 18%, rgba(var(--acc), .12), transparent 70%), radial-gradient(640px 380px at 6% 92%, rgba(var(--acc2, var(--acc)), .07), transparent 70%); }
body.product .x-sec.g-motif::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--motif) center / cover no-repeat; transform: scaleX(-1); opacity: .28;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
body.product .x-sec.g-grid { background: var(--p-bg); }
body.product .x-sec.g-grid::before { background-image: linear-gradient(rgba(var(--acc), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc), .06) 1px, transparent 1px); background-size: 64px 64px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 75%); }
body.product .x-sec.g-glow { background: radial-gradient(1000px 520px at 50% 50%, rgba(var(--acc), .10), transparent 70%), var(--p-bg); }
body.product .x-sec.g-glow::before { background: none; }
body.product .x-sec.g-plain::after, body.product .x-sec.g-panel::after, body.product .x-sec.g-dots::after, body.product .x-sec.g-grid::after, body.product .x-sec.g-glow::after { content: none; }

body.product .x-head.ly-left .x-lead { margin-left: 0; }

/* Split hero: the words on the left, the product working on the right. */
body.product .x-hero.ly-split { text-align: left; padding: 150px 0 104px; }
body.product .x-hero.ly-split .x-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
body.product .ly-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
body.product .x-hero.ly-split h1 { text-align: left; max-width: 14ch; }
body.product .x-hero.ly-split .lead { margin: 24px 0 0; max-width: 560px; text-align: left; }
body.product .x-hero.ly-split .cta { justify-content: flex-start; margin-top: 34px; }
body.product .x-hero.ly-split .p-plan-line { text-align: left; }
body.product .x-hero.ly-split::after { -webkit-mask-image: radial-gradient(ellipse 36% 60% at 26% 50%, transparent 0%, rgba(0, 0, 0, .3) 50%, #000 100%); mask-image: radial-gradient(ellipse 36% 60% at 26% 50%, transparent 0%, rgba(0, 0, 0, .3) 50%, #000 100%); }
body.product .ly-hero-visual { position: relative; min-width: 0; }
body.product .ly-hero-visual::before { content: ''; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, rgba(var(--acc), .18), transparent); filter: blur(10px); }
/* Centered hero with a wide visual under the words. */
body.product .ly-hero-wide { width: 100%; margin-top: 64px; }

/* Pipeline: numbered steps in a row, joined by a line with light running along it. */
.ly-pipe { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: ly; }
.ly-pipe::before { content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, rgba(var(--acc), .1), rgba(var(--acc), .5), rgba(var(--acc), .1)); }
.ly-pipe::after { content: ''; position: absolute; top: 26px; left: 8%; width: 90px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgb(var(--acc)), transparent); animation: ly-run 3.2s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes ly-run { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(calc(84vw - 120px)); opacity: 0; } }
@media (min-width: 1408px) { @keyframes ly-run { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(1000px); opacity: 0; } } }
.ly-pipe > li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 8px; text-align: center; }
.ly-pipe-n { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 50%; background: var(--p-card); box-shadow: inset 0 0 0 1px rgba(var(--acc), .45), 0 0 0 6px var(--p-bg), 0 0 24px -4px rgba(var(--acc), .5); color: rgb(var(--acc)); font: 600 18px/1 var(--font); }
.ly-pipe > li b { color: var(--p-ink); font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.ly-pipe > li p { margin: 0; max-width: 300px; color: var(--p-sub); font-size: 15px; line-height: 1.6; }
.ly-pipe > li em { margin-top: 4px; padding: 4px 10px; background: rgba(var(--acc), .08); color: rgb(var(--acc)); font: 500 12.5px/1.2 var(--mono, ui-monospace, monospace); font-style: normal; }

/* Time axis: when each thing happens, left to right. */
.ly-time { position: relative; height: 300px; margin: 8px 0 0; }
.ly-time-axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .06)); }
.ly-time-axis::after { content: ''; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--acc)); box-shadow: 0 0 16px 2px rgba(var(--acc), .7); animation: ly-tick 5s linear infinite; }
@keyframes ly-tick { from { left: 0; } to { left: calc(100% - 10px); } }
.ly-time-label { position: absolute; top: calc(50% + 14px); color: var(--p-mute); font: 500 12px/1 var(--mono, ui-monospace, monospace); }
.ly-time-label.l { left: 0; } .ly-time-label.r { right: 0; }
.ly-mark { position: absolute; left: var(--at); top: 50%; display: flex; flex-direction: column; align-items: center; width: 220px; margin-left: -110px; text-align: center; }
.ly-mark::before { content: ''; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--p-card); box-shadow: inset 0 0 0 2px #4a4d56; }
.ly-mark > div { position: absolute; bottom: 26px; display: flex; flex-direction: column; gap: 4px; }
.ly-mark.down > div { top: 22px; bottom: auto; }
.ly-mark b { color: var(--p-ink); font-size: 15.5px; font-weight: 600; }
.ly-mark span { color: var(--p-sub); font-size: 13.5px; line-height: 1.45; }
.ly-mark.us::before { background: rgb(var(--acc)); box-shadow: 0 0 0 6px rgba(var(--acc), .15), 0 0 22px rgba(var(--acc), .8); }
.ly-mark.us b { color: rgb(var(--acc)); }
.ly-mark.us > div::after { content: ''; position: absolute; left: 50%; bottom: -22px; width: 1px; height: 18px; background: rgba(var(--acc), .5); }

/* A band of big numbers. */
.ly-nums { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ly-nums > div { display: flex; flex-direction: column; gap: 10px; padding: 36px 32px; }
.ly-nums > div + div { box-shadow: inset 1px 0 0 var(--p-edge); }
.ly-nums b { color: var(--p-ink); font-size: clamp(38px, 4.4vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ly-nums b small { margin-left: 4px; color: var(--p-sub); font-size: .45em; letter-spacing: -.01em; }
.ly-nums > div:first-child b { color: rgb(var(--acc)); }
.ly-nums span { color: var(--p-sub); font-size: 14.5px; line-height: 1.5; }

/* Side by side: two or three options compared. */
.ly-compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }
.ly-col { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 36px 36px 34px; box-shadow: inset 0 2px 0 var(--line2); transition: background-color .2s; }
.ly-col:hover { background-color: rgba(255, 255, 255, .02); }
.ly-col.is-pick { background: linear-gradient(180deg, rgba(var(--acc), .07), transparent 60%); box-shadow: inset 0 2px 0 rgb(var(--acc)); }
.ly-col-k { margin: 0; color: rgb(var(--acc)); font: 600 12px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; }
.ly-col h3 { margin: 0; font-size: 22px; }
.ly-col > p:not(.ly-col-k) { margin: 0; color: var(--p-sub); font-size: 15.5px; line-height: 1.6; }
.ly-col .more { margin-top: auto; padding-top: 8px; }
.ly-checks { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.ly-checks li { position: relative; padding-left: 26px; color: var(--p-sub); font-size: 15px; line-height: 1.55; }
.ly-checks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: rgba(var(--acc), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: inset 0 0 0 1px rgba(var(--acc), .4); }

/* Tabs without script: radio inputs pick the panel. Up to six. */
.ly-tabs { background: var(--bg1); box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.ly-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.ly-tab-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--p-edge); background: rgba(255, 255, 255, .015); }
.ly-tab-row label { padding: 7px 13px; color: var(--p-sub); font: 500 13px/1.2 var(--mono, ui-monospace, monospace); cursor: pointer; transition: color .15s, background .15s; }
.ly-tab-row label:hover { color: var(--p-ink); background: rgba(255, 255, 255, .04); }
.ly-panel { display: none; }
.ly-panel p.ly-panel-note { margin: 0; padding: 16px 22px 0; color: var(--p-sub); font-size: 14.5px; }
.ly-tabs > input:nth-of-type(1):checked ~ .ly-panels > .ly-panel:nth-child(1),
.ly-tabs > input:nth-of-type(2):checked ~ .ly-panels > .ly-panel:nth-child(2),
.ly-tabs > input:nth-of-type(3):checked ~ .ly-panels > .ly-panel:nth-child(3),
.ly-tabs > input:nth-of-type(4):checked ~ .ly-panels > .ly-panel:nth-child(4),
.ly-tabs > input:nth-of-type(5):checked ~ .ly-panels > .ly-panel:nth-child(5),
.ly-tabs > input:nth-of-type(6):checked ~ .ly-panels > .ly-panel:nth-child(6) { display: block; animation: ly-in .35s cubic-bezier(.16, 1, .3, 1); }
.ly-tabs > input:nth-of-type(1):checked ~ .ly-tab-row label:nth-of-type(1),
.ly-tabs > input:nth-of-type(2):checked ~ .ly-tab-row label:nth-of-type(2),
.ly-tabs > input:nth-of-type(3):checked ~ .ly-tab-row label:nth-of-type(3),
.ly-tabs > input:nth-of-type(4):checked ~ .ly-tab-row label:nth-of-type(4),
.ly-tabs > input:nth-of-type(5):checked ~ .ly-tab-row label:nth-of-type(5),
.ly-tabs > input:nth-of-type(6):checked ~ .ly-tab-row label:nth-of-type(6) { color: var(--p-ink); background: rgba(var(--acc), .1); box-shadow: inset 0 -2px 0 rgb(var(--acc)); }
.ly-tabs > input:focus-visible ~ .ly-tab-row { outline: 2px solid rgba(var(--acc), .6); outline-offset: -2px; }
@keyframes ly-in { from { opacity: 0; transform: translateY(4px); } }
.ly-tabs .p-code pre, .ly-panel pre { margin: 0; padding: 20px 22px 22px; overflow-x: auto; color: #c9cbd1; font: 13px/1.72 var(--mono, ui-monospace, monospace); }

/* A live-looking feed: rows rolling up in a window. */
.ly-ticker-win { position: relative; height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.ly-ticker-list { margin: 0; padding: 0; list-style: none; animation: ly-roll 26s linear infinite; }
.ly-ticker-win:hover .ly-ticker-list { animation-play-state: paused; }
@keyframes ly-roll { to { transform: translateY(-50%); } }
.ly-ticker-list li { display: grid; grid-template-columns: 74px 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--p-edge); color: var(--p-sub); font: 12.5px/1.3 var(--mono, ui-monospace, monospace); }
.ly-ticker-list li .ev { justify-self: start; padding: 3px 8px; background: rgba(var(--acc), .1); color: rgb(var(--acc)); font-size: 11.5px; }
.ly-ticker-list li .ev.sell { background: rgba(246, 70, 93, .1); color: #f6697e; }
.ly-ticker-list li .ev.new { background: rgba(255, 255, 255, .06); color: var(--p-ink); }
.ly-ticker-list li b { overflow: hidden; color: var(--p-ink); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

/* A browser window around a live embed. */
.ly-browser { overflow: hidden; background: #0f1014; box-shadow: inset 0 0 0 1px var(--edge); }
.ly-browser-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--p-edge); background: #15161b; }
.ly-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2e35; }
.ly-browser-bar span { flex: 1; max-width: 420px; margin: 0 auto; padding: 5px 14px; background: #0e0f12; color: var(--p-mute); font: 12.5px/1.2 var(--mono, ui-monospace, monospace); text-align: center; }
.ly-browser-body { position: relative; }
.ly-browser-body iframe { display: block; width: 100%; height: 560px; border: 0; }

/* Questions an AI can be asked, as message bubbles. */
.ly-asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ly-ask { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px; background: var(--bg1); box-shadow: inset 2px 0 0 rgba(var(--acc), .55); color: var(--p-ink); font-size: 16px; line-height: 1.5; transition: background-color .2s; }
.ly-ask:hover { background-color: #15161b; }
.ly-ask span { align-self: flex-start; padding: 4px 9px; background: rgba(var(--acc), .1); color: rgb(var(--acc)); font: 12px/1.2 var(--mono, ui-monospace, monospace); }

/* One plan includes it: a callout in place of a table. */
.ly-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 40px; align-items: center; padding: 40px 44px; background: linear-gradient(120deg, rgba(var(--acc), .1), transparent 60%); box-shadow: inset 0 2px 0 rgb(var(--acc)), inset 0 -1px 0 var(--line); }
.ly-plan h3 { margin: 6px 0 8px; font-size: 30px; letter-spacing: -.03em; }
.ly-plan > div > p:not(.ly-col-k) { margin: 0; color: var(--p-sub); font-size: 15.5px; line-height: 1.6; }
.ly-plan .cta { margin: 0; justify-content: flex-end; }

/* A code sample with notes beside it, joined by lines. */
.ly-annotated { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ly-notes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: note; border-bottom: 1px solid var(--line); }
.ly-notes li { position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); color: var(--p-sub); font-size: 15px; line-height: 1.55; counter-increment: note; }
.ly-notes li::before { content: counter(note); position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 24px; height: 24px; background: rgba(var(--acc), .14); color: rgb(var(--acc)); font: 600 12px/1 var(--font); }
.ly-notes li b { display: block; margin-bottom: 3px; color: var(--p-ink); }
.p-code .hl { display: inline-block; margin: 0 -4px; padding: 0 4px; background: rgba(var(--acc), .14); }
.p-code .hl[data-n]::after { content: attr(data-n); display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; background: rgb(var(--acc)); color: #0b0c10; font: 600 10px/1 var(--font); vertical-align: 1px; }

@media (max-width: 1060px) {
  body.product .x-hero.ly-split .x-hero-in { grid-template-columns: 1fr; gap: 48px; }
  .ly-asks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-plan { grid-template-columns: 1fr; gap: 24px; }
  .ly-plan .cta { justify-content: flex-start; }
  .ly-annotated { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ly-pipe { grid-auto-flow: row; gap: 34px; }
  .ly-pipe::before, .ly-pipe::after { display: none; }
  .ly-nums, .ly-compare { grid-auto-flow: row; }
  .ly-nums > div + div { box-shadow: inset 0 1px 0 var(--p-edge); }
  .ly-asks { grid-template-columns: 1fr; }
  .ly-time { height: auto; display: grid; gap: 18px; }
  .ly-time-axis, .ly-time-label { display: none; }
  .ly-mark { position: static; width: auto; margin: 0; flex-direction: row; align-items: flex-start; gap: 14px; text-align: left; }
  .ly-mark::before { flex: none; margin-top: 4px; }
  .ly-mark > div, .ly-mark.down > div { position: static; }
  .ly-mark.us > div::after { display: none; }
  .ly-ticker-list li { grid-template-columns: 64px 76px minmax(0, 1fr); }
  .ly-ticker-list li > :last-child { display: none; }
  .ly-browser-body iframe { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .ly-pipe::after, .ly-time-axis::after, .ly-ticker-list { animation: none !important; }
}

/* Fixes: the hero pill's chain logo sits beside the name; launchpad tiles
   keep their padding in every column (landing.css zeroes the first). */
body.product .x-hero .eb i { display: inline-flex; align-items: center; gap: 0; }
body.product .eb img { display: inline-block; flex: none; }
body.v2.product .x-pads > div { padding: 20px 22px !important; }

/* Fixes from the layout pass: titles in the plan callout and the compare
   columns keep their size (body.product h3 is 18px), a block after a
   pipeline gets room, a label can stay as typed (code names), and a head
   inside a split column sits closer to its points. */
body.product .ly-plan h3 { font-size: 30px; }
body.product .ly-col h3 { font-size: 22px; }
body.product .ly-pipe + * { margin-top: 88px; }
.ly-col-k.as-is { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
body.product .x-copy .x-head { margin-bottom: 28px; }
body.product .lanes.static li.win .lt i { width: 100%; }

/* More layout fixes: launchpad tiles in a centered hero read left to right;
   a chart in a browser window gets its height; a split holding tabs keeps
   its top still when the tabs change. */
body.product .ly-hero-wide { text-align: left; }
body.product .ly-browser .kline { height: 520px; }
body.product .x-split:has(.ly-tabs) { align-items: start; }

/* Last layout fixes: the ticker's event column fits token_update and
   wallet_trade; links in tab notes look like links; tab panels share one
   height (the tallest) so the page doesn't jump when a tab changes. */
.ly-ticker-list li { grid-template-columns: 74px 112px minmax(0, 1fr) auto; }
@media (max-width: 760px) { .ly-ticker-list li { grid-template-columns: 60px auto minmax(0, 1fr); } }
.ly-panel-note a { color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--acc), .5); }
.ly-panel-note a:hover { color: rgb(var(--acc)); }
.ly-panels { display: grid; }
.ly-panels > .ly-panel { display: block; grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.ly-tabs > input:nth-of-type(1):checked ~ .ly-panels > .ly-panel:nth-child(1),
.ly-tabs > input:nth-of-type(2):checked ~ .ly-panels > .ly-panel:nth-child(2),
.ly-tabs > input:nth-of-type(3):checked ~ .ly-panels > .ly-panel:nth-child(3),
.ly-tabs > input:nth-of-type(4):checked ~ .ly-panels > .ly-panel:nth-child(4),
.ly-tabs > input:nth-of-type(5):checked ~ .ly-panels > .ly-panel:nth-child(5),
.ly-tabs > input:nth-of-type(6):checked ~ .ly-panels > .ly-panel:nth-child(6) { visibility: visible; opacity: 1; }

/* The page's picture (assets/bg, from the image prompts in
   ~/Pictures/page-backgrounds): in the hero under the motif, the words'
   side kept dark and the bottom faded into the page; faintly again behind
   the closing call to action. Pages without one keep the glow alone. */
body.p-trading { --bg: url(bg/trading.webp); --bg-sm: url(bg/trading-sm.webp); }
body.p-lightspeed { --bg: url(bg/lightspeed.webp); --bg-sm: url(bg/lightspeed-sm.webp); }
body.p-streams { --bg: url(bg/streams.webp); --bg-sm: url(bg/streams-sm.webp); }
body.p-shred-stream { --bg: url(bg/shred-stream.webp); --bg-sm: url(bg/shred-stream-sm.webp); }
body.p-historical-data { --bg: url(bg/historical-data.webp); --bg-sm: url(bg/historical-data-sm.webp); }
body.p-x-telegram { --bg: url(bg/x-telegram.webp); --bg-sm: url(bg/x-telegram-sm.webp); }
body.p-embeds { --bg: url(bg/embeds.webp); --bg-sm: url(bg/embeds-sm.webp); }
body.c-solana { --bg: url(bg/solana.webp); --bg-sm: url(bg/solana-sm.webp); }
body.c-bnb { --bg: url(bg/bnb.webp); --bg-sm: url(bg/bnb-sm.webp); }
body.c-arc { --bg: url(bg/arc.webp); --bg-sm: url(bg/arc-sm.webp); }
body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) {
  --bg-fade: linear-gradient(180deg, rgba(12, 13, 17, .5) 0%, rgba(12, 13, 17, 0) 22%, rgba(12, 13, 17, 0) 44%, rgba(12, 13, 17, .28) 60%, rgba(12, 13, 17, .62) 76%, rgba(12, 13, 17, .88) 90%, var(--p-bg) 100%);
  --bg-glow: radial-gradient(900px 480px at 50% 0%, rgba(var(--acc), .12), transparent 65%);
}
body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-hero { background:
  var(--bg-fade),
  radial-gradient(ellipse 50% 56% at 50% 52%, rgba(12, 13, 17, .82), rgba(12, 13, 17, .45) 55%, rgba(12, 13, 17, 0) 100%),
  var(--bg-glow),
  var(--bg) center 35% / cover no-repeat,
  var(--p-bg); }
body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-hero.ly-split { background:
  var(--bg-fade),
  linear-gradient(90deg, rgba(12, 13, 17, .78) 0%, rgba(12, 13, 17, .5) 38%, rgba(12, 13, 17, 0) 64%),
  var(--bg-glow),
  var(--bg) center 35% / cover no-repeat,
  var(--p-bg); }
body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-hero::after { opacity: .5; }
body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-end { background:
  linear-gradient(180deg, #0e1015 0%, rgba(14, 16, 21, .8) 34%, rgba(14, 16, 21, .72) 100%),
  radial-gradient(900px 420px at 50% 115%, rgba(var(--acc), .22), transparent 70%),
  var(--bg) center 60% / cover no-repeat,
  #0e1015; }
@media (max-width: 700px) {
  body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-hero,
  body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-hero.ly-split { background:
    var(--bg-fade),
    linear-gradient(180deg, rgba(12, 13, 17, .2) 0%, rgba(12, 13, 17, .62) 40%),
    var(--bg-glow),
    linear-gradient(180deg, rgba(12, 13, 17, 0) 50%, rgba(12, 13, 17, .7) 80%, var(--p-bg) 100%) center top / 100% 620px no-repeat,
    var(--bg-sm) center top / auto 620px no-repeat,
    var(--p-bg); }
  body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-end { background:
    linear-gradient(180deg, #0e1015 0%, rgba(14, 16, 21, .8) 34%, rgba(14, 16, 21, .72) 100%),
    var(--bg-sm) center / cover no-repeat,
    #0e1015; }
}

/* Nothing moves in the backgrounds (Julian 11-20): the motifs hold still
   (each SVG now sets animation:none), the hero's light no longer drifts, its
   label no longer breathes, and the lights along the pipeline and the time
   axis no longer run. Where a
   page has its picture, the motif layers go: the picture is the background,
   and a section with the motif ground shows the picture faintly instead. */
body.product .x-hero::before, body.product .x-hero::after, body.product .x-hero .eb { animation: none; }
.ly-pipe::after, .ly-time-axis::after { content: none; animation: none; }
body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-hero::after { content: none; }
body.product:is(.p-trading, .p-lightspeed, .p-streams, .p-shred-stream, .p-historical-data, .p-x-telegram, .p-embeds, .c-solana, .c-bnb, .c-arc) .x-sec.g-motif::after { background: var(--bg) center / cover no-repeat; opacity: .14; }

/* The hero runs into the section below it: no rule between them, and that
   section starts in the colour the hero ends in, reaching its own ground a
   few hundred pixels down; its glow fades in rather than starting at the
   edge. */
body.product .x-hero + .x-sec, body.product .x-hero + #how { border-top-color: transparent; background: linear-gradient(180deg, var(--p-bg) 0, var(--p-panel) 440px, #0f1116 100%); }
body.product .x-hero + .x-sec::before, body.product .x-hero + #how::before { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 320px); mask-image: linear-gradient(180deg, transparent 0, #000 320px); }
/* The hero's light beams fade out before its bottom edge instead of being
   cut off by it. */
body.product .x-hero::before { -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 92%); mask-image: linear-gradient(180deg, #000 35%, transparent 92%); }

/* ══ The /api/ look on every product page (Julian 11-20) ══════════════════
   Square corners and no outlined boxes: cells, launchpads and the other
   products sit in hairline grids, as on /api/ (lines above and below,
   between columns and rows; the outer lines clipped), and light up a
   little on hover instead of lifting. */
body.product :is(.x-cells, .x-pads, .p-rel) { gap: 0; overflow: hidden; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.product :is(.x-cells, .x-pads, .p-rel) > * { border: 0 !important; border-radius: 0; background: none; box-shadow: -1px 0 0 var(--line), 0 1px 0 var(--line); transform: none; transition: background-color .2s; }
body.product :is(.x-cells, .x-pads, .p-rel) > *:hover { background: rgba(255, 255, 255, .02); }
body.product .x-cells > * { padding: 36px 34px; }
body.product .x-pads > div { padding: 24px 26px; }
body.product .x-cells + .x-cells { margin-top: 0; border-top: 0; }
/* In the hero the launchpads sit on the picture, so they keep a dark ground. */
body.product .x-hero .x-pads > div { background: rgba(12, 13, 17, .62); }
body.product .x-hero .x-pads > div:hover { background: rgba(20, 21, 26, .75); }
/* Comparisons: columns split by a hairline, a bar on top (the chosen one in
   the page's colour), as on /api/'s plans. */
body.product .ly-compare { gap: 0; border-bottom: 1px solid var(--line); }
body.product .ly-compare > .ly-col + .ly-col { box-shadow: inset 0 2px 0 var(--line2), inset 1px 0 0 var(--line); }
body.product .ly-compare > .ly-col + .ly-col.is-pick { box-shadow: inset 0 2px 0 rgb(var(--acc)), inset 1px 0 0 var(--line); }
/* Checks: a plain tick, no disc. */
body.product .ly-checks li::before { border-radius: 0; background-color: transparent; }
/* The second line of a section title in the page's colour. */
body.product h2 .tone { color: rgb(var(--acc)); -webkit-text-fill-color: currentColor; }
/* Anything still rounded in the pieces. */
body.product :is(.ly-pipe-n, .ly-tab-row label, .ly-ticker-list li .ev, .ly-browser, .ly-ask, .ly-ask span, .ly-plan, .p-code .hl, .card, .p-plans-wrap) { border-radius: 0; }
@media (max-width: 760px) {
  body.product .ly-compare > .ly-col + .ly-col, body.product .ly-compare > .ly-col + .ly-col.is-pick { box-shadow: inset 0 2px 0 var(--line2); }
  body.product .ly-compare > .ly-col + .ly-col.is-pick { box-shadow: inset 0 2px 0 rgb(var(--acc)); }
}

/* Trading: "Local Trade API or Lightspeed" over the page's picture, the
   columns on a dark ground so the words stay easy to read. */
body.p-trading #compare { background:
  linear-gradient(180deg, var(--p-panel) 0%, rgba(12, 13, 17, .35) 26%, rgba(12, 13, 17, .35) 74%, var(--p-bg) 100%),
  var(--bg) center 62% / cover no-repeat,
  var(--p-bg); }
body.p-trading #compare::before, body.p-trading #compare::after { content: none; }
body.p-trading #compare .ly-col { background-color: rgba(12, 13, 17, .72); }
body.p-trading #compare .ly-col:hover { background-color: rgba(16, 17, 22, .8); }
@media (max-width: 700px) {
  body.p-trading #compare { background:
    linear-gradient(180deg, var(--p-panel) 0%, rgba(12, 13, 17, .45) 20%, rgba(12, 13, 17, .45) 80%, var(--p-bg) 100%),
    var(--bg-sm) center / cover no-repeat,
    var(--p-bg); }
}

/* ══ Pictures over words (Julian 11-20: "more images less text") ═════════
   Cards open with a small still picture of what they do, in the /api/
   page's .vz style (faint grid, hairline edge, square), then a title and
   one line. New kinds here: a request and its answer (vz-json), rows of
   transactions (vz-tx), a token (vz-token), fees to claim (vz-claim) and a
   swap route (vz-route). Sample values only, no measurements. */
body.product .p-vz > * { gap: 0; }
body.product .p-vz .vz { height: 188px; margin: -6px -4px 24px; }
body.product .p-vz h3 { margin-bottom: 6px; }
body.product .ly-col .vz { height: auto; min-height: 150px; margin: 6px 0 4px; }
body.product .ly-side { display: flex; flex-direction: column; gap: 28px; }
body.product .ly-side .vz { height: auto; }
body.product .pill { border-radius: 0; }
body.product .pill.sell { background: rgba(246, 70, 93, .12); color: var(--red); }
body.product .pill:not(.buy):not(.sell) { background: rgba(255, 255, 255, .06); color: var(--text2); }

body.product .vz-h { display: flex; align-items: center; gap: 10px; margin: -18px -18px 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg1); font: 10.5px/1 var(--mono); letter-spacing: .02em; }
body.product .vz-h b { color: var(--text2); font-weight: 500; }
body.product .vz-h em { margin-left: auto; font-style: normal; color: var(--green); }
body.product .vz-tx .vz-h b { margin-left: auto; color: rgb(var(--acc)); }

body.product .vz-json pre { margin: 0; color: var(--text2); font: 12px/1.7 var(--mono); white-space: pre-wrap; word-break: break-all; }
body.product .vz-json pre i { font-style: normal; color: #8fb8ff; }
body.product .vz-json pre u { text-decoration: none; color: var(--green); }
body.product .vz-json pre s { text-decoration: none; color: #e6b673; }
body.product .vz-json .vz-h b { color: rgb(var(--acc)); font-weight: 600; }

body.product .vz-tx .r { display: grid; grid-template-columns: 14px 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .04); }
body.product .vz-tx .r i { font-style: normal; color: var(--text3); font-family: var(--mono); text-align: center; }
body.product .vz-tx .pill { justify-content: center; height: 18px; padding: 0 6px; font-size: 10px; }
body.product .vz-tx b { color: var(--text); font-size: 12px; font-weight: 600; }
body.product .vz-tx em { font-style: normal; color: var(--text2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

body.product .vz-token { display: flex; flex-direction: column; gap: 9px; }
body.product .tk-img { flex: none; display: inline-block; width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, #ffb3a1, #ff5a4f 45%, #8a1d2a 100%); }
body.product .vz-token .tk { display: flex; align-items: center; gap: 12px; }
body.product .vz-token .tk b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
body.product .vz-token .tk span:not(.tk-img) { color: var(--text3); font: 11px/1.4 var(--mono); }
body.product .vz-token .tk img { width: 22px; height: 22px; margin-left: auto; }
body.product .vz-token code { padding: 6px 9px; background: var(--bg2); color: var(--text2); font: 11.5px/1 var(--mono); }
body.product .vz-token code u { text-decoration: none; color: rgb(var(--acc)); }
body.product .vz-token .tk-row { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .04); font-size: 11.5px; }
body.product .vz-token .tk-row b { color: var(--green); font-weight: 600; }

body.product .vz-claim { display: flex; flex-direction: column; justify-content: space-between; }
body.product .vz-claim .cl-top { display: flex; align-items: flex-start; justify-content: space-between; }
body.product .vz-claim .cl-top span { display: block; font: 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
body.product .vz-claim .cl-top b { display: block; margin-top: 8px; color: var(--text); font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
body.product .vz-claim .cl-btn { padding: 7px 14px; background: var(--ink, #dcdde1); color: #0b0c0f !important; font: 600 11.5px/1 var(--font) !important; letter-spacing: 0 !important; text-transform: none !important; }
body.product .vz-claim .cl-bars { display: flex; align-items: flex-end; gap: 5px; height: 58px; }
body.product .vz-claim .cl-bars i { flex: 1; height: var(--h); background: rgba(var(--acc), .35); }
body.product .vz-claim .cl-bars i:last-child { background: rgb(var(--acc)); }

body.product .vz-route { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
body.product .vz-route .rt { display: flex; align-items: center; gap: 0; }
body.product .vz-route .rt > i { width: 26px; height: 1px; background: var(--line2); position: relative; }
body.product .vz-route .rt > i::after { content: ''; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--line2); border-right: 0; }
body.product .vz-route .chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); font-size: 12px; font-weight: 600; }
body.product .vz-route .chip img, body.product .vz-route .chip .tk-img { width: 16px; height: 16px; }
body.product .vz-route .rt-cap { font: 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 720px) {
  body.product .p-vz .vz { margin: 0 0 20px; }
}
@media (max-width: 720px) {
  body.product .x-cells > * { padding: 30px 2px; }
  body.product .x-pads > div { padding: 18px 16px; }
}

/* Embeds: the hero is tall (it holds the live map), so its picture is fitted
   to the width rather than covering the whole hero, which zoomed in on the
   moon and hid the torii; its lower edge fades into the page. */
@media (min-width: 701px) {
  body.product.p-embeds .x-hero { background:
    var(--bg-fade),
    radial-gradient(ellipse 46% 40% at 50% 30%, rgba(12, 13, 17, .78), rgba(12, 13, 17, .4) 55%, rgba(12, 13, 17, 0) 100%),
    linear-gradient(180deg, rgba(12, 13, 17, 0) 55%, var(--p-bg) 100%) center top / 100% 56.3vw no-repeat,
    var(--bg) center top / 100% auto no-repeat,
    var(--p-bg); }
}
