/* The public landing page.
 *
 * A separate stylesheet rather than more rules in style.css: that file is the
 * application's design system, loaded on every screen a paying customer uses,
 * and marketing layout has no business making it bigger. This one is loaded by
 * home.html alone, and neither is shipped inside the desktop build or the
 * Android app - both of those open on sign-in, never on the sales page.
 *
 * It reuses the tokens from style.css - same surfaces, same accent, same
 * spacing scale - so the page a visitor sees and the app they buy look like
 * the same product, and adds a layer of its own on top: wider measure, larger
 * type, and cards with more air than a trading desk can afford. */

body.home {
  /* Marketing-only scale. The app is a dense dashboard; a sales page is read
     at arm's length and gets to breathe. */
  --site-w: 1140px;
  --site-gutter: clamp(20px, 5vw, 40px);
  --site-r: 16px;
  --site-r-sm: 10px;
  --site-section: clamp(56px, 8vw, 104px);
  --site-card: color-mix(in srgb, var(--panel) 88%, var(--bg));
  --site-hairline: color-mix(in srgb, var(--border) 80%, transparent);
  /* The light theme's background is already a tint, so the same glow that
     reads as depth on black reads as a smudge on it. */
  --site-glow: color-mix(in srgb, var(--accent) 8%, transparent);

  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  line-height: 1.65;
  letter-spacing: -0.005em;
  /* The app is a fixed dashboard; this page scrolls. */
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  -webkit-font-smoothing: antialiased;
}

body.home main { display: block; }
body.home ::selection { background: var(--accent-dim); }

/* ---------- Navigation ---------- */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--site-hairline);
}
.home-nav-inner {
  max-width: var(--site-w);
  margin: 0 auto;
  padding: 14px var(--site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.home-brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.home-brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.home-brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--faint);
  font-weight: 600;
}
.home-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.home-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.home-nav-links a:hover { color: var(--text); }
.home-nav-links a.btn { color: inherit; }
.home-nav-links .btn-small { font-weight: 600; }

/* The in-page anchors are the first thing to go on a narrow screen: the two
   buttons are what the page is for. */
@media (max-width: 760px) {
  .home-nav-links a:not(.btn) { display: none; }
  .home-nav-inner { gap: var(--s3); }
  .home-brand-sub { display: none; }
  .home-nav-links { gap: var(--s2); }
  .home-nav-links .btn-small { padding: 8px 12px; white-space: nowrap; }
}

/* ---------- Shared section rhythm ---------- */

.home-section {
  max-width: var(--site-w);
  margin: 0 auto;
  padding: var(--site-section) var(--site-gutter);
}
.home-section-product { max-width: 1320px; }
.home-section-tight { padding-top: 0; }
.home-section h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s5);
  max-width: 22ch;
}
.home-section h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s2);
  color: var(--text);
}
.home-section p { color: var(--muted); margin: 0 0 var(--s3); }
.home-section > p { max-width: 68ch; }

/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  max-width: var(--site-w);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--site-gutter) clamp(40px, 6vw, 72px);
  text-align: center;
  isolation: isolate;
}
/* A single soft light behind the headline. Cheap, static, and the only
   decoration on the page - everything else earns its place by saying
   something. */
.home-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -140px;
  width: min(1100px, 130vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--site-glow) 0%, transparent 68%);
  pointer-events: none;
}
[data-theme='dark'] body.home { --site-glow: color-mix(in srgb, var(--accent) 18%, transparent); }
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 var(--s4);
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 999px;
  background: var(--accent-dim);
}
.home-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.home-hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 auto var(--s5);
  max-width: 17ch;
}
.home-lede {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto var(--s6);
}
.home-lede strong { color: var(--text); font-weight: 600; }
.home-cta {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lg { padding: 13px 26px; font-size: 15px; font-weight: 600; border-radius: var(--site-r-sm); }
.home-cta-note { color: var(--faint); font-size: 13px; margin-top: var(--s4); }
.home-cta-note a { color: var(--accent); }

/* Three claims under the hero, as chips: read in one pass on the way down,
   not studied. */
.home-highlights {
  list-style: none;
  margin: var(--s6) auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  max-width: 940px;
  font-size: 13px;
  color: var(--muted);
}
/* Block, not flex: each chip is a <strong> followed by loose text, and as flex
   items those two halves wrap into columns on a phone. */
.home-highlights li {
  position: relative;
  padding: 8px 16px 8px 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--site-card);
}
.home-highlights li::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.home-highlights strong { color: var(--text); font-weight: 600; }
.home-highlights a { color: inherit; text-decoration: none; }
.home-highlights a strong { color: var(--accent); }
.home-highlights li:has(a):hover { border-color: var(--accent); }

/* ---------- Facts band ---------- */
/*
 * Four numbers, all of them checkable: the virtual balance, the session the
 * screeners cover, the platforms one licence opens, and the amount of real
 * money involved. No growth figures and no customer counts - a simulator that
 * advertises returns is the thing this product exists not to be.
 */
.home-facts {
  border-top: 1px solid var(--site-hairline);
  border-bottom: 1px solid var(--site-hairline);
  background: color-mix(in srgb, var(--panel) 55%, var(--bg));
}
.home-facts-inner {
  max-width: var(--site-w);
  margin: 0 auto;
  padding: var(--s5) var(--site-gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s5);
}
.home-fact strong {
  display: block;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}
.home-fact span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Risk warning ---------- */

.home-warning-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--warning-dim);
}
.home-warning {
  max-width: var(--site-w);
  margin: 0 auto;
  padding: var(--s5) var(--site-gutter);
  font-size: 13.5px;
  color: var(--text);
  max-width: 90ch;
}
.home-warning strong:first-child { color: var(--warning); }

/* ---------- Grids and cards ---------- */

.home-grid-2,
.home-grid-3 { display: grid; gap: var(--s4); }
.home-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s6); }
.home-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.home-card {
  background: var(--site-card);
  border: 1px solid var(--border);
  border-radius: var(--site-r);
  padding: var(--s5);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.home-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.home-card p { margin: 0; font-size: 14px; }
.home-card-quiet { background: transparent; }
.home-card-quiet:hover { transform: none; }

/* A square rather than a circle: the app is built out of rectangles. */
.home-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--s4);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--site-r-sm);
  background: var(--accent-dim);
  color: var(--accent);
}
.home-card-icon svg { width: 17px; height: 17px; }

/* Screener spotlight: heading on the left, the scanners on the right, so the
   set reads as one idea rather than three more cards in the grid. */
.home-spotlight-wrap {
  border-top: 1px solid var(--site-hairline);
  padding-top: var(--site-section);
}
.home-spotlight {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s6);
  align-items: start;
}
.home-spotlight h2 { margin-bottom: var(--s3); }
.home-spotlight-cards {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.home-spotlight-note {
  margin: var(--s5) 0 0;
  font-size: 13px;
  color: var(--faint);
  max-width: 78ch;
}
.home-spotlight em { color: var(--text); font-style: normal; }
@media (max-width: 860px) {
  .home-spotlight { grid-template-columns: 1fr; }
}

/* A limitation stated on the card that advertises the feature, not in a
   footnote somebody finds after paying. */
.home-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--s2);
  padding: 1px var(--s2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warning);
}
.home-card-caveat {
  margin-top: var(--s3) !important;
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--faint);
}

/* The sample screener tables in the product preview carry their columns in a
   different order from the signed-in app, and the fixed widths in style.css are
   written for that order - Level landed in a 13% column and broke prices across
   lines mid-number. Sized by content here, and a figure never wraps inside a
   cell. */
.product-app .screener-table { table-layout: auto; }
.product-app .screener-table th,
.product-app .screener-table td {
  width: auto;
  white-space: nowrap;
  word-break: normal;
}
.product-app .screener-table .breakout-badge {
  display: inline-block;
  margin: 2px 0 0;
}

/* ---------- Pricing ---------- */

.home-pricing {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--s6);
  background: var(--site-card);
  border: 1px solid var(--border);
  border-radius: var(--site-r);
  padding: clamp(20px, 3vw, 36px);
}
@media (max-width: 820px) {
  .home-pricing { grid-template-columns: 1fr; }
}
.home-list { margin: 0 0 var(--s4); padding-left: 1.1em; color: var(--muted); font-size: 14px; }
.home-list li { margin-bottom: var(--s2); }
.home-list strong { color: var(--text); }
.home-fineprint { font-size: 12.5px; color: var(--faint); margin: 0; }
.home-fineprint a, .home-footer a { color: var(--accent); }

.home-pricing-side {
  border-left: 1px solid var(--border);
  padding-left: var(--s6);
}
@media (max-width: 820px) {
  .home-pricing-side { border-left: none; border-top: 1px solid var(--border); padding: var(--s5) 0 0; }
}
.home-price-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
  color: var(--faint);
  margin: 0 0 var(--s2);
}
/* auto-fit rather than a fixed three columns with a viewport media query: the
   card grid has to react to the width of its own container, which is narrower
   than the viewport wherever it is nested. The fixed version squeezed three
   cards into a 350px column and the price ran past the card edge. */
.home-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s3);
  margin: 0 0 var(--s5);
}
.home-plan-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.home-plan-card h3 {
  margin: 0;
  font-size: 1rem;
}
.home-plan-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
/* The badge shares a row with the plan name instead of being positioned over
   the corner, so a narrow card wraps it below the name rather than printing it
   on top of the word. */
.home-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
}
.home-plan-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}
.home-plan-price {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.home-plan-period {
  margin: 0 0 var(--s2);
  color: var(--muted);
  font-size: 0.9rem;
}
.home-plan-card .home-block { margin-top: auto; }
/* The price block. The figure people came for gets the size; the anchor and
   the discount badge sit above it, smaller, so the eye lands on what is
   actually being asked for rather than on the claim about it. */
.home-price {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s1);
}
.home-price-was {
  font-size: 16px;
  color: var(--faint);
  text-decoration: line-through;
}
.home-price-off {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: var(--r-sm);
  padding: 2px var(--s2);
}
.home-price-now {
  font-size: clamp(38px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0 0 var(--s1);
  line-height: 1.05;
}
.home-price-terms {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 var(--s4);
}
/* When the offer ends. Stated because a struck-through price with no end is a
   misleading advertisement rather than a discount. */
.home-price-after { color: var(--warning); }

/* The steps. Numbered because the order genuinely matters - paying before an
   account exists produces a payment nobody can match to a licence. */
.home-steps {
  margin: 0 0 var(--s5);
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 13px;
  color: var(--muted);
}
/* The number is positioned rather than laid out as a grid column: these items
   are a mix of <strong> and loose text, and every one of those text runs would
   become a grid item of its own, stacked one word wide. */
.home-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  margin-bottom: var(--s3);
}
.home-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.home-steps strong { color: var(--text); }
.home-steps em { color: var(--warning); font-style: normal; }

.home-price-note { font-size: 13px; margin-bottom: var(--s4); }
.home-price-note a { color: var(--accent); }
.home-block { display: block; text-align: center; margin-bottom: var(--s2); }
.home-block.is-disabled,
.home-block:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.home-pay-note { font-size: 13px; color: var(--muted); margin: 0 0 var(--s4); }

/* ---------- FAQ ---------- */

.home-faq details {
  border: 1px solid var(--border);
  border-radius: var(--site-r-sm);
  background: var(--site-card);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s2);
}
.home-faq details[open] { border-color: var(--border-strong); }
.home-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--s3);
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::before {
  content: '+';
  color: var(--accent);
  font-weight: 400;
  flex: none;
}
.home-faq details[open] summary::before { content: '\2212'; }
.home-faq details p {
  margin: var(--s3) 0 0 calc(var(--s3) + 1ch);
  font-size: 14px;
  color: var(--muted);
  max-width: 72ch;
}
.home-faq details a { color: var(--accent); }

/* ---------- Closing ---------- */

.home-final {
  position: relative;
  text-align: center;
  padding: var(--site-section) var(--site-gutter);
  border-top: 1px solid var(--site-hairline);
  background: radial-gradient(ellipse at 50% 0%, var(--site-glow) 0%, transparent 62%);
}
.home-final h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 var(--s2);
}
.home-final p { color: var(--muted); margin: 0 0 var(--s5); }
.home-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
}

/* ---------- After you pay ---------- */

.home-after { text-align: center; }
.home-after .home-eyebrow { margin-bottom: var(--s2); }
.home-after-lede {
  max-width: 58ch;
  margin: 0 auto var(--s6);
  color: var(--muted);
  font-size: 15.5px;
}
.home-after-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  text-align: left;
}
.home-after-card {
  background: var(--site-card);
  border: 1px solid var(--site-hairline);
  border-radius: var(--site-r);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.home-after-step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.home-after-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.home-after-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.home-after-note {
  margin: var(--s6) 0 0;
  font-size: 13.5px;
  color: var(--faint);
}
.home-after-note a { color: var(--accent); }

@media (max-width: 900px) {
  .home-after-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .home-after-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.home-footer {
  border-top: 1px solid var(--site-hairline);
  padding: var(--s6) var(--site-gutter);
  text-align: center;
}
.home-footer p { max-width: 78ch; margin: 0 auto var(--s3); font-size: 12.5px; color: var(--muted); }
.home-footer-fine { color: var(--faint); font-size: 11.5px; line-height: 1.55; }

/* ---------- Narrow screens ---------- */

@media (max-width: 760px) {
  .home-hero { text-align: left; }
  .home-hero h1 { max-width: none; margin-left: 0; margin-right: 0; }
  .home-lede { margin-left: 0; margin-right: 0; }
  .home-cta { justify-content: stretch; }
  .home-cta .btn { flex: 1 1 100%; text-align: center; }
  .home-cta-note { text-align: left; }
  .home-highlights { justify-content: flex-start; margin-left: 0; margin-right: 0; }
  /* A pill that has wrapped onto two lines is a lozenge; square it off. */
  .home-highlights li { border-radius: var(--site-r-sm); }
  .btn-lg { width: 100%; box-sizing: border-box; }
  .home-block { width: 100%; box-sizing: border-box; text-align: center; }
  .home-section h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-card { transition: none; }
  .home-card:hover { transform: none; }
}

/* Product chrome: a labeled UI frame copied from the app shell, with no
   invented prices. Missing real screenshots must not be replaced by a fake
   chart. */
.home-product-grid {
  display: grid;
  gap: var(--s5);
}
.product-frame {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--site-r);
  overflow: hidden;
}
.product-frame figcaption {
  padding: var(--s3) var(--s5);
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.product-chrome { background: var(--bg); }
.product-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s3);
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.product-search {
  justify-self: center;
  width: 100%;
  max-width: 280px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--faint);
  font-weight: 500;
  font-size: 12px;
}
.product-stats {
  display: flex;
  gap: var(--s4);
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.product-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.product-tabs span {
  padding: 6px 10px;
  border-radius: var(--r-md);
}
.product-tabs span.is-on { background: var(--panel-3); color: var(--text); font-weight: 600; }
.product-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 12px;
  padding: 12px;
  min-height: 220px;
}
.product-quote,
.product-chart,
.product-ticket,
.product-screener {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.product-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.product-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}
.product-quote-label { font-weight: 700; font-size: 15px; }
.product-chart {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--muted);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      var(--border) 28px
    );
}
.product-chart strong { color: var(--text); }
.product-ticket {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.product-ticket-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.product-ticket-sides span {
  text-align: center;
  padding: 8px;
  background: var(--panel-2);
}
.product-ticket-sides span:first-child { color: var(--green); }
.product-screener-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--faint);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.product-screener-empty {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.product-app {
  /* Match the signed-in Trade screen the visitor asked to see, not the
     marketing page theme. Tokens copied from style.css dark so the frame
     stays a sample of the desk rather than a second homepage. */
  color-scheme: dark;
  --bg: #080B10;
  --panel: #10151C;
  --panel-2: #141A22;
  --panel-3: #1A222C;
  --border: #202833;
  --border-strong: #2B3644;
  --text: #F2F5F8;
  --muted: #8B96A5;
  --faint: #5C6675;
  --green: #22C55E;
  --red: #EF4444;
  --accent: #4EA1FF;
  --warning: #F59E0B;
  --green-dim: #22C55E1F;
  --red-dim: #EF44441F;
  --accent-dim: #4EA1FF1F;
  --warning-dim: #F59E0B1F;
  --on-accent: #05131F;
  background: var(--bg);
  color: var(--text);
}
.product-brand-tag {
  display: block;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--faint);
  font-weight: 600;
}
.product-symbol-form {
  display: flex;
  gap: var(--s2);
  width: 100%;
  align-items: center;
}
.product-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.product-app .global-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.product-load-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.product-app .quote-card { margin-top: 0; }
.product-app .screener-row { cursor: default; }
.product-app [data-product-dead] {
  cursor: not-allowed;
  opacity: 0.85;
}
.product-app .topbar,
.product-app .tabs {
  position: static;
}
.product-app .trade-side { position: static; }
.product-app .trade-layout {
  padding: var(--s4);
}
.product-app .panel { margin: var(--s4); }
.product-app .trade-layout .panel { margin: 0; }
.product-search-input {
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 7px 12px 7px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.product-field-fake {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--faint);
  font-size: 13px;
}
.product-chart-sample {
  padding: 8px 8px 0;
}
.product-chart-sample svg { display: block; color: var(--faint); background: var(--bg); }
.product-chart-grid { stroke: var(--border); stroke-width: 1; }
.product-candle.up { stroke: var(--green); fill: var(--green); }
.product-candle.down { stroke: var(--red); fill: var(--red); }
.product-candle line { stroke-width: 1.5; }
.product-vol.up { fill: var(--green); opacity: 0.35; }
.product-vol.down { fill: var(--red); opacity: 0.35; }
.product-chart-caption {
  margin: 8px 4px 4px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.product-app .ticket-side span {
  border: none;
  background: var(--panel-2);
  color: var(--muted);
  padding: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  border-bottom: 2px solid transparent;
}
.product-app .ticket-side span.active {
  color: var(--green);
  background: var(--green-dim);
  border-bottom-color: var(--green);
}
.product-app .seg span {
  padding: 0 10px;
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}
.product-app .seg span.active {
  background: var(--panel-3);
  color: var(--text);
  font-weight: 600;
}
.product-app .btn-buy {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--r-md);
}
@media (max-width: 720px) {
  .product-topbar { grid-template-columns: 1fr; }
  .product-search, .product-stats { justify-self: start; max-width: none; }
  .product-workspace { grid-template-columns: 1fr; }
  .product-app .trade-layout { padding: var(--s3); gap: var(--s3); }
  .product-app .panel { margin: var(--s3); }
  .product-app .panel-header { gap: var(--s2); }
  .product-app .chart-toggle {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    gap: 2px;
  }
  .product-app .chart-toggle::-webkit-scrollbar { display: none; }
  .product-app .chart-toggle .btn,
  .product-app .chart-toggle button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .product-app .account-summary {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s2) var(--s3);
  }
  .product-app .topbar {
    padding: var(--s2) var(--s3);
  }
  .product-frame {
    margin-left: calc(-1 * var(--site-gutter));
    margin-right: calc(-1 * var(--site-gutter));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .home-section-product { padding-left: 0; padding-right: 0; }
  .home-section-product > h2,
  .home-section-product > p {
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
  }
}
