/* ═══════════════════════════════════════════════════
   GTS Trading — unified site components.
   Built on the GTS Desk tokens (style.css / dark-mode.css / home.css);
   only what the desk template doesn't already have lives here.
   ═══════════════════════════════════════════════════ */

/* ── Top disclaimer strip (from the trading landing) ── */
.gts-topstrip {
  background: #1e1b4b;
  color: #c7d2fe;
  font-size: 0.78rem;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.4;
}
.gts-topstrip strong { color: #fff; }
[data-theme="dark"] .gts-topstrip { background: #0b1022; border-bottom: 1px solid var(--theme-border); }

/* ── Wordmark (desk keeps its logo hidden pending a wordmark) ── */
.nav-wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--theme-text, #1f2937);
}
.nav-wordmark span { color: var(--primary-color, #6366f1); }
.nav-menu .nav-cta a {
  background: var(--primary-color, #6366f1);
  color: #fff !important;
  border-radius: 8px;
  padding: 6px 14px;
}

/* ── Six-step chain: idea → deploy ── */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: chain;
}
@media (max-width: 900px) { .chain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .chain-grid { grid-template-columns: 1fr; } }
.chain-step {
  background: var(--theme-card-bg, #fbfdff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 14px;
  padding: 22px 20px 18px;
  position: relative;
}
.chain-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  margin-bottom: 12px;
}
.chain-step h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--theme-text, #1f2937); }
.chain-step p { font-size: 0.88rem; color: var(--theme-text-secondary, #6b7280); margin: 0 0 10px; }
.chain-step code {
  display: block;
  font-size: 0.74rem;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.16);
  color: var(--theme-text, #1f2937);
  border-radius: 8px;
  padding: 7px 9px;
  white-space: normal;
  word-break: break-word;
}
[data-theme="dark"] .chain-step code { color: #c7d2fe; }

/* ── Two-column building-block cards (expression / handler / alerts / account) ── */
.block-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .block-grid { grid-template-columns: 1fr; } }
.block-card {
  background: var(--theme-card-bg, #fbfdff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 14px;
  padding: 24px 22px;
}
.block-card .block-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-color, #6366f1);
  margin-bottom: 6px;
}
[data-theme="dark"] .block-card .block-kicker { color: #a5b4fc; }
.block-card h3 { margin: 0 0 12px; font-size: 1.12rem; color: var(--theme-text, #1f2937); }
.block-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.block-card li {
  font-size: 0.88rem; line-height: 1.5;
  color: var(--theme-text-secondary, #6b7280);
  padding-left: 18px; position: relative;
}
.block-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.block-card li strong { color: var(--theme-text, #1f2937); }
.block-card code { font-size: 0.8rem; }

/* ── Marketplace ── */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .mp-grid { grid-template-columns: 1fr; } }
.mp-card {
  background: var(--theme-card-bg, #fbfdff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 16px;
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.mp-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}
.mp-card.mp-creator::before { background: linear-gradient(90deg, #10b981, #0ea5e9); }
.mp-card h3 { margin: 0 0 4px; font-size: 1.2rem; color: var(--theme-text, #1f2937); }
.mp-card .mp-sub { font-size: 0.9rem; color: var(--theme-text-secondary, #6b7280); margin: 0 0 16px; }
.mp-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 0 0 16px; color: var(--theme-text, #1f2937);
}
.mp-price .amt { font-size: 2rem; font-weight: 800; }
.mp-price .per { font-size: 0.88rem; color: var(--theme-text-secondary, #6b7280); }
.mp-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mp-card li {
  font-size: 0.88rem; line-height: 1.5; color: var(--theme-text-secondary, #6b7280);
  padding-left: 24px; position: relative;
}
.mp-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  font-weight: 800; color: #6366f1;
}
.mp-card.mp-creator li::before { color: #10b981; }
.mp-card li strong { color: var(--theme-text, #1f2937); }

.mp-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
@media (max-width: 860px) { .mp-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mp-flow { grid-template-columns: 1fr; } }
.mp-flow-step {
  text-align: center;
  padding: 18px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.04);
}
.mp-flow-step .ic { font-size: 1.3rem; color: #6366f1; margin-bottom: 6px; }
.mp-flow-step strong { display: block; font-size: 0.92rem; color: var(--theme-text, #1f2937); margin-bottom: 3px; }
.mp-flow-step span { font-size: 0.8rem; color: var(--theme-text-secondary, #6b7280); }
.mp-note {
  margin-top: 18px; text-align: center;
  font-size: 0.82rem; color: var(--theme-text-secondary, #6b7280);
}

/* ── Choose your path ── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) { .path-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.path-card {
  background: var(--theme-card-bg, #fbfdff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.path-card:hover { border-color: rgba(99, 102, 241, 0.45); transform: translateY(-2px); }
.path-card.featured { border: 2px solid #6366f1; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.14); }
.path-tag {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(99, 102, 241, 0.1); color: #6366f1;
  margin-bottom: 12px;
}
[data-theme="dark"] .path-tag { color: #a5b4fc; }
.path-card h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--theme-text, #1f2937); }
.path-card .path-sub { font-size: 0.88rem; color: var(--theme-text-secondary, #6b7280); margin: 0 0 16px; }
.path-card ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; flex: 1; }
.path-card li {
  font-size: 0.85rem; line-height: 1.45; color: var(--theme-text-secondary, #6b7280);
  padding-left: 22px; position: relative;
}
.path-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #6366f1; }
.path-card li strong { color: var(--theme-text, #1f2937); }
.path-price { font-size: 0.9rem; font-weight: 700; color: var(--theme-text, #1f2937); margin-bottom: 12px; }
.path-card .btn { text-align: center; }

/* ── Contact strip ── */
.contact-strip {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.contact-strip p { color: var(--theme-text-secondary, #6b7280); }
.contact-strip .hero-buttons { justify-content: center; margin-top: 18px; }

/* ── Fixes on top of the desk template ── */
/* Desk's .btn-secondary is white-on-transparent (hero only); outside the hero use an outline. */
.path-card .btn-secondary,
.contact-strip .btn-secondary {
  background: transparent;
  color: var(--primary-color, #6366f1);
  border: 2px solid var(--primary-color, #6366f1);
}
.path-card .btn-secondary:hover,
.contact-strip .btn-secondary:hover { background: var(--primary-color, #6366f1); color: #fff; }
[data-theme="dark"] .path-card .btn-secondary,
[data-theme="dark"] .contact-strip .btn-secondary { color: #c7d2fe; border-color: #818cf8; }

.path-card ul { align-content: start; }

/* Desk colors only four pillars; the unified home has six. */
.pillar-card:nth-child(5)::before { background: linear-gradient(90deg, #0ea5e9, #6366f1); }
.pillar-card:nth-child(6)::before { background: linear-gradient(90deg, #10b981, #0ea5e9); }
.pillar-card:nth-child(5) .pillar-icon { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.pillar-card:nth-child(6) .pillar-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
[data-theme="dark"] .pillar-card:nth-child(5) .pillar-icon { background: rgba(14, 165, 233, 0.15); color: #7dd3fc; }
[data-theme="dark"] .pillar-card:nth-child(6) .pillar-icon { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

/* Five execution modes on one row on wide screens. */
@media (min-width: 900px) { #execution-layer .mode-grid-6 { grid-template-columns: repeat(3, 1fr); } }

/* ── GTS Trading logo (same asset as the trading site; white artwork, darkened on light theme) ── */
.nav-logo { height: 40px; width: auto; display: block; }
:root:not([data-theme="dark"]) .nav-logo { filter: invert(1) brightness(0.25); }
.nav-brand small { font-size: 0.72rem; font-weight: 600; color: var(--theme-text-secondary, #6b7280); align-self: center; }

/* ── Agentic section ── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .agent-grid { grid-template-columns: 1fr; } }
.agent-card {
  background: var(--theme-card-bg, #fbfdff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 14px;
  padding: 22px 20px;
}
.agent-card .ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99, 102, 241, 0.1); color: #6366f1;
  font-size: 1.05rem; margin-bottom: 12px;
}
[data-theme="dark"] .agent-card .ic { background: rgba(165, 180, 252, 0.12); color: #a5b4fc; }
.agent-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--theme-text, #1f2937); }
.agent-card p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--theme-text-secondary, #6b7280); }
.agent-card code { font-size: 0.78rem; }
.agent-banner {
  margin-bottom: 26px;
  border-radius: 16px;
  padding: 26px 28px;
  color: #fff;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
@media (max-width: 700px) { .agent-banner { grid-template-columns: 1fr; text-align: center; } }
.agent-banner .big { font-size: 3rem; font-weight: 800; line-height: 1; }
.agent-banner .big small { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-top: 6px; }
.agent-banner p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: #e0e7ff; }
.agent-banner .rc-tags { margin-top: 12px; }

.path-grid.path-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 960px) { .path-grid.path-grid-2 { grid-template-columns: 1fr; max-width: 560px; } }

/* The trading nav has more tabs than desk's; keep the logo clear on small laptops. */
.navbar .nav-brand { flex-shrink: 0; margin-right: 18px; }
.nav-menu a i { margin-right: 4px; }
@media (min-width: 1024px) and (max-width: 1180px) {
  .navbar .nav-menu { gap: 0.55rem; }
  .navbar .nav-menu a { font-size: 0.82rem; }
  .nav-logo { height: 34px; }
}

/* ── Resources dropdown (shared header) ── */
.nav-menu a.active { color: var(--primary-color, #6366f1); font-weight: 700; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle i { font-size: 0.65rem; margin-left: 3px; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); left: -12px;
  min-width: 190px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--theme-card-bg, #fff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 1100;
}
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dropdown-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; font-size: 0.88rem;
}
.nav-dropdown-menu li a:hover { background: var(--theme-hover, rgba(99, 102, 241, 0.08)); }
.nav-dropdown-menu li a i { width: 16px; color: var(--primary-color, #6366f1); }
@media (min-width: 1024px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}
@media (max-width: 1023px) {
  .nav-dropdown-toggle { display: none !important; }
  .nav-dropdown-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0; background: transparent; min-width: 0; }
  .nav-dropdown-menu { display: flex; flex-direction: column; gap: 0.75rem; }
  .nav-dropdown-menu li a { padding: 0.5rem 0; font-size: inherit; }
}

/* Mobile menu: desk's panel is dark, keep links light on it; desk sizes .nav-brand img for a wide wordmark. */
@media (max-width: 1023px) {
  .navbar .nav-menu.is-open a,
  .navbar .nav-menu.is-open .nav-dropdown-menu li a { color: #f8fafc !important; }
  .navbar .nav-menu.is-open .nav-dropdown-menu li a i { color: #a5b4fc; }
  .navbar .nav-brand img.nav-logo { height: 34px !important; width: auto !important; max-width: none !important; }
}

/* ── Plan limits table ── */
.plan-note {
  max-width: 900px; margin: 0 auto 16px; text-align: center;
  font-size: 0.86rem; color: var(--theme-text, #1f2937);
  background: rgba(99, 102, 241, 0.07); border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px; padding: 10px 14px;
}
.plan-note i { color: #6366f1; margin-right: 6px; }
.plan-table-wrap { overflow-x: auto; border: 1px solid var(--theme-border, #e5e7eb); border-radius: 14px; background: var(--theme-card-bg, #fbfdff); }
.plan-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.86rem; }
.plan-table th, .plan-table td { padding: 10px 14px; border-bottom: 1px solid var(--theme-border, #e5e7eb); text-align: center; color: var(--theme-text-secondary, #6b7280); }
.plan-table thead th { font-size: 0.95rem; font-weight: 800; color: var(--theme-text, #1f2937); background: rgba(99, 102, 241, 0.05); }
.plan-table thead th.hl { color: #6366f1; }
.plan-table tbody th { text-align: left; font-weight: 600; color: var(--theme-text, #1f2937); white-space: nowrap; }
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table td:nth-child(4) { background: rgba(99, 102, 241, 0.04); }
[data-theme="dark"] .plan-table thead th.hl { color: #a5b4fc; }

/* All original trading-site tabs are top-level; give the bar more width and tighten on laptops so it stays one line. */
@media (min-width: 1024px) {
  .navbar > .container { max-width: 1440px; column-gap: 18px; }
  .navbar .nav-brand { min-width: max-content; }
}
@media (min-width: 1024px) and (max-width: 1599px) {
  .navbar .nav-menu { gap: 0.6rem; }
  .navbar .nav-menu a { font-size: 0.8rem; }
  .nav-menu .nav-cta a { padding: 5px 10px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .navbar .nav-menu { gap: 0.38rem; }
  .navbar .nav-menu a { font-size: 0.68rem; }
  .nav-logo { height: 28px; }
}
.plan-badge { display: block; margin: 4px auto 0; width: max-content; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: #b45309; }
.plan-badge.plan-badge-now { background: rgba(16, 185, 129, 0.14); color: #047857; }
[data-theme="dark"] .plan-badge { color: #fcd34d; }
[data-theme="dark"] .plan-badge.plan-badge-now { color: #6ee7b7; }

/* ── Operate with Claude: concrete examples ── */
.claude-block { margin-top: 34px; }
.claude-block-head { text-align: center; max-width: 820px; margin: 0 auto 18px; }
.claude-block-head h3 { font-size: 1.35rem; margin: 0 0 8px; color: var(--theme-text, #1f2937); }
.claude-block-head h3 i { color: #d97757; margin-right: 6px; }
.claude-block-head p { color: var(--theme-text-secondary, #6b7280); margin: 0; font-size: 0.95rem; }
.claude-setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) { .claude-setup { grid-template-columns: 1fr; } }
.claude-step {
  font-size: 0.85rem; color: var(--theme-text, #1f2937);
  border: 1px solid var(--theme-border, #e5e7eb); background: var(--theme-card-bg, #fbfdff);
  border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.claude-step b {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #d97757; color: #fff; font-size: 0.75rem;
}
.claude-step code { font-size: 0.75rem; word-break: break-all; }
.claude-snippet {
  background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 16px;
  font-size: 0.8rem; line-height: 1.6; overflow-x: auto; margin: 0 0 18px; white-space: pre;
}
.claude-snippet .c { color: #94a3b8; }
.claude-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .claude-grid { grid-template-columns: 1fr; } }
.claude-ex {
  background: var(--theme-card-bg, #fbfdff); border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 14px; padding: 18px 18px 14px; min-width: 0;
}
.claude-ex-head { font-weight: 800; font-size: 0.98rem; color: var(--theme-text, #1f2937); margin-bottom: 10px; }
.claude-ex-head i { color: #6366f1; margin-right: 6px; }
[data-theme="dark"] .claude-ex-head i { color: #a5b4fc; }
.claude-ex-prompt {
  font-size: 0.86rem; line-height: 1.5; color: var(--theme-text, #1f2937);
  background: rgba(217, 119, 87, 0.08); border-left: 3px solid #d97757;
  border-radius: 0 8px 8px 0; padding: 8px 10px; margin-bottom: 10px;
}
.claude-ex-prompt span, .claude-ex-calls span {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--theme-text-secondary, #6b7280); margin-bottom: 4px;
}
.claude-ex-calls { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.claude-ex-calls span { flex-basis: 100%; margin-bottom: 0; }
.claude-ex-calls code {
  font-size: 0.7rem; padding: 2px 7px; border-radius: 6px;
  background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.18);
  color: var(--theme-text, #1f2937); word-break: break-all;
}
[data-theme="dark"] .claude-ex-calls code { color: #c7d2fe; }
.claude-ex p { margin: 0; font-size: 0.84rem; color: var(--theme-text-secondary, #6b7280); }

/* ── Alert routing table (from the original trading landing) ── */
.ar-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 0.84rem; }
.ar-table th { padding: 10px 10px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--theme-text-secondary, #6b7280); background: rgba(99, 102, 241, 0.05); border-bottom: 1px solid var(--theme-border, #e5e7eb); text-align: center; white-space: nowrap; }
.ar-table th:first-child { text-align: left; }
.ar-table td { padding: 9px 10px; border-bottom: 1px solid var(--theme-border, #e5e7eb); text-align: center; color: var(--theme-text-secondary, #6b7280); }
.ar-table tbody tr:last-child td { border-bottom: 0; }
.ar-table td.ar-expr { text-align: left; color: var(--theme-text-secondary, #6b7280); }
.ar-table td.ar-expr code { font-size: 0.78rem; color: var(--theme-text, #1f2937); background: rgba(99, 102, 241, 0.07); padding: 1px 6px; border-radius: 5px; }
[data-theme="dark"] .ar-table td.ar-expr code { color: #c7d2fe; }
.ar-table td.ar-expr span { color: var(--theme-text-secondary, #6b7280) !important; font-size: 0.78rem; }
.ar-table td.ar-state { color: #10b981; font-weight: 800; }
.ar-table td.ar-on i { color: #10b981; }
.ar-table td.ar-off { color: var(--theme-text-secondary, #9ca3af); opacity: 0.6; }
.onsite-ai { margin-bottom: 4px; }
.rc-tag.ai-tag { background: rgba(99, 102, 241, 0.1); color: #4f46e5; border: 1px solid rgba(99, 102, 241, 0.22); }
[data-theme="dark"] .rc-tag.ai-tag { color: #c7d2fe; }
[data-theme="dark"] .mp-note a, [data-theme="dark"] .claude-block-head a, [data-theme="dark"] .path-price a { color: #a5b4fc; }

/* Desk's legal bar is fixed to the bottom; on phones it wraps to ~110px and hides content — let it flow. */
@media (max-width: 760px) {
  .gts-legalbar { position: static !important; }
  body { padding-bottom: 0 !important; }
}
[data-theme="dark"] .gts-legalbar a { color: #a5b4fc; }

/* ── Plan cards (replace the old "Choose your path"; desktop install hidden) ── */
.plan-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plan-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--theme-card-bg, #fbfdff); border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 16px; padding: 22px 18px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.plan-card:hover { border-color: rgba(99, 102, 241, 0.45); transform: translateY(-2px); }
.plan-card.featured { border: 2px solid #6366f1; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.14); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-card-head h3 { margin: 0; font-size: 1.2rem; color: var(--theme-text, #1f2937); }
.plan-card-head .plan-badge { margin: 0; }
.plan-card-price { margin: 10px 0 14px; color: var(--theme-text, #1f2937); display: flex; align-items: baseline; gap: 4px; }
.plan-card-price .amt { font-size: 1.9rem; font-weight: 800; }
.plan-card-price .per { font-size: 0.85rem; color: var(--theme-text-secondary, #6b7280); }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; align-content: start; }
.plan-card li { font-size: 0.84rem; line-height: 1.45; color: var(--theme-text-secondary, #6b7280); padding-left: 20px; position: relative; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #6366f1; }
.pricing-mini-cta .plan-compare { background: transparent; color: var(--primary-color, #6366f1); border: 2px solid var(--primary-color, #6366f1); }
[data-theme="dark"] .pricing-mini-cta .plan-compare { color: #c7d2fe; border-color: #818cf8; }

/* ── Contact form (from the original trading landing, desk styling) ── */
.contact-card {
  max-width: 820px; margin: 0 auto;
  background: var(--theme-card-bg, #fbfdff); border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 16px; padding: 26px 26px 22px;
}
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; position: relative; }
@media (max-width: 640px) { .cform { grid-template-columns: 1fr; } .contact-card { padding: 20px 16px; } }
.cf-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cfield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfield.full { grid-column: 1 / -1; }
.cfield label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--theme-text-secondary, #6b7280); }
.cfield input, .cfield textarea {
  font: inherit; font-size: 0.9rem; color: var(--theme-text, #1f2937); width: 100%;
  background: var(--theme-bg, #fff); border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 10px; padding: 10px 12px;
}
.cfield textarea { min-height: 120px; resize: vertical; }
.cfield input:focus, .cfield textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.cmsg { grid-column: 1 / -1; font-size: 0.86rem; min-height: 0; }
.cmsg.ok { color: #059669; }
.cmsg.err { color: #dc2626; }
[data-theme="dark"] .cmsg.ok { color: #6ee7b7; }
[data-theme="dark"] .cmsg.err { color: #fca5a5; }
.cform-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cnote { margin: 0; font-size: 0.8rem; color: var(--theme-text-secondary, #6b7280); max-width: 440px; }
.csend { border: 0; cursor: pointer; background: var(--primary-color, #6366f1) !important; color: #fff !important; }
.csend:disabled { opacity: 0.6; cursor: wait; }

/* Nav breathing room (owner 2026-10-26): wider bar + larger gaps on big screens. */
@media (min-width: 1600px) and (max-width: 1799px) {
  .navbar > .container { max-width: 1760px; }
  .navbar .nav-menu { gap: 1.3rem; }
  .navbar .nav-menu a { font-size: 0.9rem; }
}
@media (min-width: 1800px) {
  .navbar > .container { max-width: 1840px; }
  .navbar .nav-menu { gap: 2.2rem; }
  .navbar .nav-menu a { font-size: 0.95rem; }
}
@media (min-width: 1400px) and (max-width: 1599px) {
  .navbar > .container { max-width: 1580px; }
  .navbar .nav-menu { gap: 1.35rem; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar > .container { max-width: 1380px; }
  .navbar .nav-menu { gap: 1rem; }
}
/* Footer "Powered by GTS Edge" link: explicit colors (was default link blue). */
.gts-legalbar a { color: var(--theme-text-secondary, #475569); }
.gts-legalbar-left a { color: #4f46e5; font-weight: 600; text-decoration: none; }
[data-theme="dark"] .gts-legalbar-left a { color: #a5b4fc; }
/* Footer has no right column here: give the left text room so "Powered by GTS Edge" isn't clipped. */
@media (min-width: 761px) {
  .gts-legalbar-inner { grid-template-columns: auto minmax(0, 1fr); }
  .gts-legalbar-links { justify-content: flex-end; }
  .gts-legalbar-left { overflow: visible; }
}
.gts-legalbar > .container { padding-left: 20px; padding-right: 20px; }
@media (min-width: 1024px) and (max-width: 1199px) { .navbar .nav-menu { gap: 0.55rem; } }

/* ── "Open in app" row at the end of each section ── */
.app-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin-top: 30px;
}
.app-links-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--theme-text-secondary, #6b7280); margin-right: 4px;
}
.app-links .btn { font-size: 0.9rem; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; }
.app-links .btn-primary { background: var(--primary-color, #6366f1); color: #fff; border: 2px solid var(--primary-color, #6366f1); }
.app-links .app-link-outline { background: transparent; color: var(--primary-color, #6366f1); border: 2px solid var(--primary-color, #6366f1); }
.app-links .app-link-outline:hover { background: var(--primary-color, #6366f1); color: #fff; }
[data-theme="dark"] .app-links .app-link-outline { color: #c7d2fe; border-color: #818cf8; }
@media (max-width: 520px) { .app-links .btn { width: 100%; justify-content: center; } .app-links-label { width: 100%; text-align: center; margin: 0; } }
/* Edge bands where 14 tabs only just fit (measured 2026-10-27). */
@media (min-width: 1024px) and (max-width: 1099px) {
  .navbar .nav-menu { gap: 0.4rem; }
  .navbar .nav-menu a { font-size: 0.66rem; }
  .navbar > .container { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .navbar .nav-menu { gap: 0.55rem; }
  .navbar .nav-menu a { font-size: 0.76rem; }
}

/* ═══════════════════════════════════════════════════
   FRAMED LAYOUT (owner 2026-10-30): every section is a bordered card
   at a contained width, page background visible around it.
   ═══════════════════════════════════════════════════ */
:root { --frame-page-bg: #eef1f7; --frame-bg: #ffffff; --frame-border: #dfe3ee; --frame-shadow: 0 6px 24px rgba(15, 23, 42, 0.06); }
[data-theme="dark"] { --frame-page-bg: #03050b; --frame-bg: #0a1020; --frame-border: #1b2540; --frame-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
body { background: var(--frame-page-bg); }

/* sections: transparent band, the container is the card */
.hp-section, .hp-section.bg-base, .hp-section.bg-elevated, .hp-section.bg-dark-section { background: transparent !important; padding: 14px 0 !important; }
.hp-section > .container {
  max-width: 1180px;
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  border-radius: 24px;
  box-shadow: var(--frame-shadow);
  padding: 56px 52px 48px;
}
.hp-section:first-of-type { padding-top: 28px !important; }
.hp-section:last-of-type { padding-bottom: 120px !important; }
@media (max-width: 760px) {
  .hp-section { padding: 8px 0 !important; }
  .hp-section > .container { margin: 0 10px; width: auto; padding: 32px 18px 28px; border-radius: 18px; }
}
/* inner cards: a touch darker than the frame so they read as cards inside a card */
.pillar-card, .chain-step, .block-card, .mp-card, .plan-card, .agent-card, .mode-card, .research-stat, .content-card, .claude-ex, .contact-card, .community-card, .step4, .ai-ask, .alert-ex {
  background: var(--theme-bg-secondary, #f6f8fc);
}
[data-theme="dark"] .pillar-card, [data-theme="dark"] .chain-step, [data-theme="dark"] .block-card, [data-theme="dark"] .mp-card,
[data-theme="dark"] .plan-card, [data-theme="dark"] .agent-card, [data-theme="dark"] .mode-card, [data-theme="dark"] .research-stat,
[data-theme="dark"] .content-card, [data-theme="dark"] .claude-ex, [data-theme="dark"] .contact-card, [data-theme="dark"] .community-card,
[data-theme="dark"] .step4, [data-theme="dark"] .ai-ask, [data-theme="dark"] .alert-ex { background: #0e1729; }
.contact-card { box-shadow: none; }

/* hero: a rounded banner instead of a full-bleed block */
.hero {
  max-width: 1180px; margin: 24px auto 0; min-height: 0 !important;
  border-radius: 28px; padding: 72px 24px 76px !important;
  box-shadow: 0 14px 40px rgba(76, 29, 149, 0.25);
}
.hero-fade { display: none !important; }
.gts-topstrip { border-radius: 0; }
@media (max-width: 760px) { .hero { margin: 12px 10px 0; border-radius: 20px; padding: 44px 6px 48px !important; } }
[data-theme="dark"] .hero { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); border: 1px solid var(--frame-border); }

/* ── New plain-language home pieces ── */
.pillar-icon i { font-size: 1.15rem; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps4 { grid-template-columns: 1fr; } }
.step4 { border: 1px solid var(--theme-border, #e5e7eb); border-radius: 14px; padding: 20px 18px; }
.step4 h3 { margin: 0 0 6px; font-size: 1rem; color: var(--theme-text, #1f2937); }
.step4 p { margin: 0; font-size: 0.9rem; color: var(--theme-text-secondary, #6b7280); }

.ai-asks { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.ai-ask { border: 1px solid var(--theme-border, #e5e7eb); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; }
.ai-ask-q { font-size: 0.98rem; color: var(--theme-text, #1f2937); font-weight: 600; }
.ai-ask-q i { color: #6366f1; margin-right: 8px; }
.ai-ask-a { font-size: 0.9rem; color: var(--theme-text-secondary, #6b7280); }
.ai-ask-a i { color: #10b981; margin-right: 8px; }

.stats4 { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 860px) { .stats4 { grid-template-columns: repeat(2, 1fr) !important; } }

.alert-examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .alert-examples { grid-template-columns: 1fr; } }
.alert-ex { border: 1px solid var(--theme-border, #e5e7eb); border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; color: var(--theme-text, #1f2937); display: flex; gap: 12px; align-items: flex-start; }
.alert-ex i { color: #6366f1; margin-top: 3px; width: 18px; text-align: center; }
[data-theme="dark"] .alert-ex i, [data-theme="dark"] .ai-ask-q i { color: #a5b4fc; }
.channel-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.channel-row span { font-size: 0.86rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--theme-border, #e5e7eb); color: var(--theme-text, #1f2937); background: var(--frame-bg); }
.channel-row i { margin-right: 6px; color: #6366f1; }
[data-theme="dark"] .channel-row i { color: #a5b4fc; }

.mode-grid.mode-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .mode-grid.mode-grid-3 { grid-template-columns: 1fr; } }
.mode-card-icon i { font-size: 1.1rem; }
