/* Orderblock marketing site. One stylesheet, tokens from docs/agent-briefs/site-design.md. */

:root {
  --canvas: #ffffff;
  --tint: #f2f3f5;
  --hairline: #e3e6ea;
  --hairline-strong: #c9ced6;
  --ink: #0e1420;
  --ink-soft: #1b2537;
  --muted: #5b6472;
  --surface: #0f1726;
  --surface-grid: #1b2537;
  --surface-text: #e8ecf2;
  --surface-muted: rgba(232, 236, 242, 0.62);
  --surface-hair: rgba(232, 236, 242, 0.1);
  --profit: #19b36b;
  --loss: #e5484d;
  --amber: #f2b134;

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mark: 'Ubuntu', 'Inter', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --section: 112px;
  --radius: 12px;
  --radius-small: 8px;
}

@media (max-width: 720px) {
  :root {
    --section: 72px;
    --gutter: 16px;
  }
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 26px;
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: 56px;
  line-height: 1.04;
}

h2 {
  font-size: 40px;
  line-height: 1.1;
}

h3 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

h4 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

@media (max-width: 720px) {
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 20px;
    line-height: 28px;
  }
}

p {
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(14, 20, 32, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

table {
  border-collapse: collapse;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero-panel :focus-visible {
  outline-color: var(--surface-text);
}

.num {
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

.is-profit {
  color: var(--profit);
}

.is-loss {
  color: var(--loss);
}

/* Visually hidden, still read out. */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-small);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------------------------------------------------------------------------
   Buttons and text links
--------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-small);
  border: 1px solid var(--ink);
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.button:hover {
  text-decoration: none;
  background: var(--tint);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.button-large {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.button-small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.text-link {
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  font-family: var(--font-mark);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.wordmark-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: space-between;
  margin-left: 40px;
}

.site-nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav-list a:hover,
.site-nav-list a[aria-current='page'] {
  border-bottom-color: var(--ink);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-signin {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-signin:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  background: var(--canvas);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
  }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
  }
  .site-header {
    position: relative;
  }
  .site-nav-list {
    flex-direction: column;
    gap: 0;
  }
  .site-nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav-list a[aria-current='page'] {
    border-bottom-color: var(--hairline);
    font-weight: 600;
  }
  .site-nav-actions {
    justify-content: space-between;
    padding-top: 16px;
  }
}

/* ---------------------------------------------------------------------------
   Sections and the editorial split
--------------------------------------------------------------------------- */

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section:not(.section-tint) + .section:not(.section-tint) {
  padding-top: 0;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2,
.split-text h2 {
  margin-bottom: 20px;
}

.section-head p,
.split-text p {
  color: var(--muted);
  font-size: 17px;
  line-height: 28px;
  max-width: 60ch;
}

.split-text p + p {
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
}

.split-text {
  grid-column: 1 / span 4;
}

.split-content {
  grid-column: 6 / -1;
  min-width: 0;
}

.split-content .block-faq {
  margin: 0;
}

@media (max-width: 960px) {
  .split-text {
    grid-column: 1 / -1;
  }
  .split-content {
    grid-column: 1 / -1;
  }
}

.page-head {
  padding-top: 64px;
  padding-bottom: 24px;
}

.page-head h1 {
  max-width: 20ch;
  margin-bottom: 24px;
}

.page-head + .section {
  padding-top: 48px;
}

.section > .wrap > h2:first-child,
.section.wrap > h2:first-child {
  margin-bottom: 24px;
}

.page-head .broker-search {
  max-width: 600px;
}

.lede {
  font-size: 20px;
  line-height: 32px;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 720px) {
  .page-head {
    padding-top: 40px;
  }
  .lede {
    font-size: 18px;
    line-height: 28px;
  }
}

/* Feature rows on the product page: text 5, illustration 7. */
.feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: start;
}

.feature-text {
  grid-column: 1 / span 5;
}

.feature-text h2 {
  margin-bottom: 20px;
}

.feature-text p {
  font-size: 17px;
  line-height: 28px;
  color: var(--muted);
}

.feature-text p + p {
  margin-top: 14px;
}

.feature-visual {
  grid-column: 6 / -1;
  min-width: 0;
}

.feature-visual .hero-panel {
  box-shadow: none;
}

@media (max-width: 960px) {
  .feature-text,
  .feature-visual {
    grid-column: 1 / -1;
  }
}

.figure-note,
.footnote {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

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

.hero {
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: center;
}

.hero-text {
  grid-column: 1 / span 5;
}

.hero-text h1 {
  font-size: 64px;
  margin-bottom: 24px;
}

.hero-text .lede {
  margin-bottom: 32px;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  grid-column: 6 / -1;
  min-width: 0;
}

.hero-brokers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  max-width: none;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--muted);
}

.hero-brokers-label {
  color: var(--ink);
  font-weight: 500;
  margin-right: 4px;
}

.hero-broker {
  white-space: nowrap;
}

.hero-brokers-more {
  color: var(--ink);
}

@media (max-width: 960px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .hero-text {
    grid-column: 1 / -1;
    order: 2;
  }
  .hero-visual {
    grid-column: 1 / -1;
    order: 1;
  }
  .hero-brokers {
    order: 3;
  }
  .hero-text h1 {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 40px;
  }
  .hero-actions .button {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   The product panel (hero and product page)
--------------------------------------------------------------------------- */

.hero-panel {
  background: var(--surface);
  color: var(--surface-text);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(14, 20, 32, 0.45);
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--surface-hair);
  font-size: 12px;
  color: var(--surface-muted);
}

.panel-account strong {
  color: var(--surface-text);
  font-weight: 600;
  margin-right: 6px;
}

.panel-account span {
  margin-right: 6px;
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--surface-text);
  font-weight: 500;
}

.panel-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface-text);
  opacity: 0.9;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--surface-grid);
}

.panel-card {
  background: var(--surface);
  padding: 14px 16px 16px;
  min-width: 0;
}

.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-label {
  font-size: 12px;
  color: var(--surface-muted);
  font-weight: 500;
}

.panel-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--surface-text);
}

.panel-count {
  font-size: 12px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--surface-grid);
  color: var(--surface-text);
}

/* Equity */
.hero-equity {
  width: 100%;
  height: auto;
}

.hero-grid-line,
.hero-grid {
  stroke: var(--surface-hair);
  stroke-width: 1;
}

.hero-axis {
  fill: var(--surface-muted);
  font-size: 10px;
  font-family: var(--font-text);
}

.hero-equity-main,
.hero-equity-last {
  fill: none;
  stroke: var(--surface-text);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-equity-main {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-equity-last {
  transition: stroke-dashoffset 0.6s ease-out;
}

.hero-equity-dot {
  fill: var(--surface-text);
  stroke: var(--surface);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-panel[data-hero='done'] .hero-equity-dot-post,
.hero-panel[data-hero='closing'] .hero-equity-dot-post {
  opacity: 1;
  transition-delay: 0.5s;
}

.hero-panel[data-hero='drawing'] .hero-equity-dot-pre {
  opacity: 1;
  transition-delay: 1.5s;
}

.hero-panel[data-hero='open'] .hero-equity-dot-pre {
  opacity: 1;
}

.hero-panel[data-hero='idle'] .hero-equity-main,
.hero-panel[data-hero='idle'] .hero-equity-last,
.hero-panel[data-hero='drawing'] .hero-equity-last,
.hero-panel[data-hero='open'] .hero-equity-last {
  stroke-dashoffset: 1;
}

/* Open position */
.panel-position {
  position: relative;
}

.panel-position .panel-card-head {
  margin-bottom: 8px;
}

/* The card collapses with a grid-row transition instead of vanishing, so the
   panel reflows smoothly when the position closes and has no hole without JS. */
.pos-stack {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s ease;
}

.pos-stack > .pos-card {
  min-height: 0;
  overflow: hidden;
}

.hero-panel[data-hero='done'] .pos-stack {
  grid-template-rows: 0fr;
}

.hero-panel[data-hero='done'] .pos-stack > .pos-card {
  border-width: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.panel-position {
  min-height: 92px;
}

.pos-card {
  border: 1px solid var(--surface-hair);
  border-radius: 8px;
  padding: 10px 12px 10px;
  transition: opacity 0.4s, transform 0.4s;
}

.pos-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.pos-symbol {
  font-weight: 600;
  font-size: 14px;
}

.pos-side {
  color: var(--surface-muted);
}

.pos-pnl {
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
}

.pos-spark {
  width: 100%;
  height: auto;
  margin: 2px 0 6px;
}

.pos-zone {
  fill: rgba(242, 177, 52, 0.22);
  stroke: rgba(242, 177, 52, 0.55);
  stroke-width: 1;
}

.pos-path {
  fill: none;
  stroke: var(--surface-text);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pos-dot {
  fill: var(--surface-text);
  stroke: var(--surface);
  stroke-width: 2;
}

.pos-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: var(--surface-muted);
}

.pos-empty {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 44px;
  font-size: 12px;
  color: var(--surface-muted);
  max-width: none;
  transition: opacity 0.3s;
}

/* The card stays in the layout when hidden so the panel never changes height. */
.hero-panel[data-hero='done'] .pos-card {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0s 0.2s, border-width 0s 0.4s, padding 0.4s;
}

.hero-panel[data-hero='closing'] .pos-card {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-panel[data-hero='idle'] .pos-card,
.hero-panel[data-hero='drawing'] .pos-card {
  opacity: 0;
  transform: translateY(8px);
}

.hero-panel[data-hero='open'] .pos-empty,
.hero-panel[data-hero='static'] .pos-empty,
.hero-panel[data-hero='closing'] .pos-empty {
  opacity: 0;
}

.hero-panel[data-hero='idle'] .pos-empty,
.hero-panel[data-hero='drawing'] .pos-empty {
  opacity: 1;
}

.hero-panel[data-hero='open'] .pos-card {
  opacity: 1;
  transform: none;
}

/* Trade list */
.trade-list {
  width: 100%;
  font-size: 12px;
  line-height: 16px;
}

.trade-list td {
  padding: 7px 0;
  border-top: 1px solid var(--surface-hair);
  white-space: nowrap;
}

.trade-list td:first-child {
  color: var(--surface-muted);
  padding-right: 10px;
}

.trade-symbol {
  font-weight: 600;
  padding-right: 10px;
}

.trade-list td:nth-child(3) {
  color: var(--surface-muted);
}

.trade-list td:last-child {
  text-align: right;
  font-weight: 600;
}

.trade-row-old {
  display: none;
}

.hero-panel[data-hero='idle'] .trade-row-old,
.hero-panel[data-hero='drawing'] .trade-row-old,
.hero-panel[data-hero='open'] .trade-row-old {
  display: table-row;
}

.hero-panel[data-hero='idle'] .trade-row-new,
.hero-panel[data-hero='drawing'] .trade-row-new,
.hero-panel[data-hero='open'] .trade-row-new {
  display: none;
}

.hero-panel[data-hero='closing'] .trade-row-new {
  animation: row-in 0.5s ease-out;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero calendar */
.hero-cal {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
  margin: 0 -2px;
  font-size: 11px;
}

.hero-cal th {
  font-weight: 500;
  color: var(--surface-muted);
  padding: 0 0 2px;
  text-align: left;
  font-size: 10px;
}

.hero-cal td {
  height: 36px;
  vertical-align: top;
  padding: 3px 4px;
  border-radius: 3px;
  background: var(--surface-grid);
  transition: background-color 0.5s;
}

.hero-cal td.is-blank {
  background: transparent;
}

.hero-cal td.is-future {
  background: transparent;
  outline: 1px solid var(--surface-hair);
  outline-offset: -1px;
}

.hero-cal-num {
  display: block;
  color: var(--surface-muted);
  font-size: 10px;
  line-height: 12px;
}

.hero-cal td.is-future .hero-cal-num {
  opacity: 0.5;
}

.hero-cal-val {
  display: block;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  color: var(--surface-text);
  white-space: nowrap;
  overflow: hidden;
}

.chart-narrow {
  display: none;
}

@media (max-width: 600px) {
  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .trade-list tr:nth-child(n + 5) {
    display: none !important;
  }
  .chart-wide {
    display: none;
  }
  .chart-narrow {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-panel *,
  .hero-panel *::before,
  .hero-panel *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------------------------------------------------------------------------
   Broker search and region tabs
--------------------------------------------------------------------------- */

.broker-search {
  margin-top: 28px;
}

.broker-search-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.broker-search-row {
  display: flex;
  gap: 8px;
}

.broker-search-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-small);
  background: var(--canvas);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.broker-search-input:focus-visible {
  outline-offset: 0;
  border-color: var(--ink);
}

.broker-search-hint {
  margin-top: 10px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.regions {
  position: relative;
}

.region-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 28px;
}

.region-labels label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.region-labels label:hover {
  color: var(--ink);
}

.region-count {
  font-size: 12px;
  color: var(--muted);
}

.region-panel {
  display: none;
}

.regions > input[value='uk']:checked ~ .region-panels > [data-region='uk'],
.regions > input[value='europe']:checked ~ .region-panels > [data-region='europe'],
.regions > input[value='us']:checked ~ .region-panels > [data-region='us'],
.regions > input[value='australia']:checked ~ .region-panels > [data-region='australia'],
.regions > input[value='all']:checked ~ .region-panels > [data-region='all'] {
  display: grid;
  gap: 32px;
}

.regions > input[value='uk']:checked ~ .region-labels > label[for$='-uk'],
.regions > input[value='europe']:checked ~ .region-labels > label[for$='-europe'],
.regions > input[value='us']:checked ~ .region-labels > label[for$='-us'],
.regions > input[value='australia']:checked ~ .region-labels > label[for$='-australia'],
.regions > input[value='all']:checked ~ .region-labels > label[for$='-all'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.regions > input[value='uk']:focus-visible ~ .region-labels > label[for$='-uk'],
.regions > input[value='europe']:focus-visible ~ .region-labels > label[for$='-europe'],
.regions > input[value='us']:focus-visible ~ .region-labels > label[for$='-us'],
.regions > input[value='australia']:focus-visible ~ .region-labels > label[for$='-australia'],
.regions > input[value='all']:focus-visible ~ .region-labels > label[for$='-all'] {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  border-radius: 4px;
}

.route-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 12px;
}

.route-title {
  font-size: 18px;
  line-height: 26px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.route-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.route-summary {
  font-size: 15px;
  color: var(--muted);
}

.route-brokers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-brokers li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  background: var(--canvas);
}

.route-assets {
  font-size: 12px;
  color: var(--muted);
}

.route-more {
  border-style: dashed !important;
}

.route-more a {
  text-decoration: none;
  font-weight: 500;
}

.route-more a:hover {
  text-decoration: underline;
}

/* Routes explained (brokers page) */
.routes-explained {
  display: grid;
  gap: 28px;
}

.route-explained dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.route-explained-count {
  font-size: 14px;
  color: var(--muted);
}

.route-explained dd p {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.route-explained dd p + p {
  margin-top: 6px;
}

.route-needs {
  color: var(--ink) !important;
}

.route-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.route-badge-live {
  background: var(--ink);
  color: #fff;
}

.route-badge-statement {
  border-color: var(--hairline-strong);
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   Analytics bento and charts
--------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.tile {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  background: var(--canvas);
}

.tile-calendar {
  grid-column: span 7;
}

.tile-heatmap {
  grid-column: span 5;
}

.tile-hist {
  grid-column: span 5;
}

.tile-equity {
  grid-column: span 7;
}

@media (max-width: 960px) {
  .tile {
    grid-column: 1 / -1 !important;
  }
}

.tile-title {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 10px;
}

.tile-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 20px;
  max-width: none;
}

.tile-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: normal;
}

.tile-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  max-width: 48ch;
}

/* Light-surface chart marks */
.chart-grid {
  stroke: var(--hairline);
  stroke-width: 1;
}

.chart-axis {
  stroke: var(--hairline-strong);
  stroke-width: 1;
}

.chart-axis-text {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--font-text);
  font-variant-numeric: tabular-nums;
}

.chart-label {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-text);
}

.hist-win {
  fill: var(--profit);
}

.hist-loss {
  fill: var(--loss);
}

.eq-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.eq-dd-area {
  fill: rgba(229, 72, 77, 0.14);
}

.eq-dd-bracket {
  stroke: var(--loss);
  stroke-width: 1.5;
}

.eq-dot {
  fill: var(--ink);
  stroke: var(--canvas);
  stroke-width: 2;
}

/* Calendar heat table */
.cal-heat,
.heatmap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  margin: 0 -2px;
  font-size: 12px;
  line-height: 16px;
  table-layout: fixed;
}

.cal-heat th,
.heatmap th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  padding: 2px 4px 6px;
}

.cal-heat th.cal-heat-week,
.cal-heat tbody th {
  width: 54px;
  white-space: nowrap;
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}

.cal-heat th.cal-heat-total {
  text-align: right;
}

.cal-heat td {
  height: 50px;
  vertical-align: top;
  padding: 5px 6px;
  border-radius: 4px;
  background: var(--tint);
}

.cal-heat td.is-empty {
  background: transparent;
  outline: 1px solid var(--hairline);
  outline-offset: -1px;
}

.cal-heat-day {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.cal-heat-val {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cal-heat td.cal-heat-total {
  background: transparent;
  text-align: right;
  vertical-align: middle;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 76px;
}

.heatmap tbody th {
  width: 40px;
  padding-top: 10px;
}

.heatmap td {
  height: 46px;
  vertical-align: top;
  padding: 5px 6px;
  border-radius: 4px;
  background: var(--tint);
}

.heatmap td.is-empty {
  background: transparent;
  outline: 1px solid var(--hairline);
  outline-offset: -1px;
  text-align: center;
  vertical-align: middle;
  color: var(--hairline-strong);
}

.heatmap-val {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.heatmap-n {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.hist,
.eq {
  width: 100%;
  height: auto;
}

.val-short {
  display: none;
}

@media (max-width: 600px) {
  .val-full {
    display: none;
  }
  .val-short {
    display: inline;
  }
  .cal-heat,
  .heatmap {
    font-size: 11px;
  }
  .cal-heat td,
  .heatmap td {
    padding: 4px 4px;
  }
  .cal-heat th.cal-heat-week,
  .cal-heat tbody th {
    width: 42px;
    padding-left: 0;
    padding-right: 2px;
  }
  .cal-heat td.cal-heat-total {
    width: 48px;
  }
  .heatmap tbody th {
    width: 32px;
    padding-left: 0;
  }
}

/* Metric definitions */
.metric-defs {
  display: grid;
  gap: 0;
}

.metric-defs.is-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 48px;
  margin-top: 48px;
}

.metric-def {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.metric-def dt {
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-def dd {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.metric-defs.is-grid + p {
  margin-top: 24px;
}

/* ---------------------------------------------------------------------------
   Coach transcript
--------------------------------------------------------------------------- */

.coach {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--canvas);
  display: grid;
  gap: 20px;
}

.coach-turn p {
  max-width: none;
}

.coach-user p {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 14px 14px 14px 4px;
  background: var(--tint);
  font-weight: 500;
}

.coach-answer {
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 24px;
}

.coach-answer em {
  font-style: normal;
  font-weight: 600;
}

.cited {
  width: 100%;
  font-size: 13px;
  line-height: 18px;
}

.cited th,
.cited td {
  padding: 8px 10px 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.cited thead th {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}

.cited tbody th {
  font-weight: 600;
}

@media (max-width: 600px) {
  .coach {
    padding: 20px 16px;
  }
  .cited {
    font-size: 12px;
  }
  .cited th,
  .cited td {
    padding-right: 8px;
  }
}

.coach-quote {
  padding: 12px 16px;
  border-left: 2px solid var(--hairline-strong);
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.coach-quote footer {
  margin-top: 4px;
  font-size: 12px;
}

.coach-foot {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

/* ---------------------------------------------------------------------------
   Tables
--------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  font-size: 15px;
  line-height: 24px;
}

.data-table caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.data-table th,
.data-table td {
  padding: 14px 20px 14px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 0;
}

.data-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0;
  padding-bottom: 10px;
  border-bottom-color: var(--ink);
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  min-width: 140px;
}

.data-table td.num,
.data-table th.num {
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .data-table.is-stack,
  .data-table.is-stack tbody,
  .data-table.is-stack tr,
  .data-table.is-stack th,
  .data-table.is-stack td {
    display: block;
  }
  .data-table.is-stack thead {
    display: none;
  }
  .data-table.is-stack tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .data-table.is-stack tr:first-child {
    border-top: 1px solid var(--ink);
  }
  .data-table.is-stack th,
  .data-table.is-stack td {
    padding: 0;
    border: 0;
    min-width: 0;
    white-space: normal;
  }
  .data-table.is-stack th {
    margin-bottom: 8px;
  }
  .data-table.is-stack td + td {
    margin-top: 8px;
  }
  .data-table.is-stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
  }
  .data-table.is-stack th:first-child {
    width: auto;
  }
}

.compare-table th:first-child {
  width: 20%;
}

.compare-table .compare-verdict {
  font-weight: 600;
  white-space: nowrap;
}

.compare-table.is-full th:first-child {
  width: 16%;
}

.compare-table.is-full td {
  min-width: 220px;
}

.compare-plans td {
  font-variant-numeric: tabular-nums;
}

.reconciled {
  font-size: 14px;
}

.reconciled th,
.reconciled td {
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Points, steps, FAQ, callouts
--------------------------------------------------------------------------- */

.points {
  display: grid;
}

.point {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 8px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.point:last-child {
  border-bottom: 1px solid var(--hairline);
}

.point dt {
  font-weight: 600;
}

.point dd {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

@media (max-width: 600px) {
  .point {
    grid-template-columns: 1fr;
  }
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.steps h3 {
  font-size: 18px;
  line-height: 26px;
}

.steps p {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.faq {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.callout {
  padding: 20px 24px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-small);
}

.callout-title {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.callout p {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

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

.interval {
  display: inline-flex;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-small);
  padding: 3px;
  margin-bottom: 32px;
  background: var(--canvas);
}

.interval-option {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.interval-option[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

@media (max-width: 720px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan {
  position: relative;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--canvas);
  display: flex;
  flex-direction: column;
}

.plan.is-recommended {
  border-color: var(--hairline-strong);
}

.plan.is-recommended::before {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  top: -1px;
  height: 3px;
  background: var(--amber);
  border-radius: 0 0 2px 2px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.plan-line {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-amount {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: normal;
}

.plan-per {
  color: var(--muted);
  font-size: 15px;
}

.plan-billing {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  margin: 8px 0 24px;
}

.plan-cta {
  align-self: flex-start;
  margin-bottom: 28px;
}

.plan-points {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 24px;
}

.plan-points li {
  padding-left: 20px;
  position: relative;
}

.plan-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--ink);
}

.plans-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   CTA block
--------------------------------------------------------------------------- */

.cta-block {
  padding: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--canvas);
}

.cta-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 28px;
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .cta-block {
    padding: 28px 24px;
  }
  .cta-title {
    font-size: 28px;
  }
}

/* ---------------------------------------------------------------------------
   Articles and legal documents
--------------------------------------------------------------------------- */

.article-head {
  padding-top: 56px;
  padding-bottom: 40px;
}

.article-head h1 {
  max-width: 22ch;
  margin-bottom: 24px;
}

.crumbs {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--hairline-strong);
}

.article-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.article-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-bottom: 64px;
}

.toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: 14px;
  line-height: 22px;
}

.toc-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 8px;
  border-left: 1px solid var(--hairline);
}

.toc li {
  padding-left: 14px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.prose {
  grid-column: 4 / span 8;
  max-width: 68ch;
  min-width: 0;
}

.prose-wide .block-table {
  margin: 0;
}

.block {
  margin-top: 56px;
}

.block:first-child {
  margin-top: 0;
}

.block-title {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.block-intro {
  color: var(--muted);
  margin-bottom: 20px;
}

.block-prose p + p {
  margin-top: 16px;
}

.prose .data-table {
  font-size: 15px;
}

.prose .cta-block {
  margin-top: 64px;
  padding: 32px;
}

.prose .cta-title {
  font-size: 28px;
}

.prose .callout {
  margin-top: 40px;
}

.directory-group {
  margin-top: 24px;
}

.directory-group h3 {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 6px;
}

.directory-group p {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 12px;
}

.name-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.name-list li {
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
}

.link-cards {
  list-style: none;
  display: grid;
  gap: 12px;
}

.link-cards a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  text-decoration: none;
}

.link-cards a:hover {
  border-color: var(--ink);
}

.link-cards strong {
  font-weight: 600;
}

.link-cards span {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.article-foot {
  padding-bottom: var(--section);
}

.reviewed {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.related {
  margin-top: 48px;
}

.related h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.related ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gutter);
}

.related li {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  font-size: 15px;
  line-height: 24px;
}

.related li a {
  font-weight: 600;
  text-decoration: none;
}

.related li a:hover {
  text-decoration: underline;
}

.related li span {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.prose-narrow p {
  color: var(--muted);
  font-size: 17px;
  line-height: 28px;
}

.prose-narrow p + p {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .toc {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 40px;
  }
  .prose {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------------------
   Contact, trade card, not found
--------------------------------------------------------------------------- */

.addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
}

.address {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.address-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  word-break: break-all;
}

.address p {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.trade-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.trade-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}

.trade-card-id {
  color: var(--muted);
}

.trade-card-symbol {
  font-weight: 600;
}

.trade-card-pnl {
  margin-left: auto;
  font-weight: 600;
  font-size: 18px;
}

.trade-card-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 24px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 20px;
}

.trade-card-facts dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.trade-card-facts dd {
  font-weight: 500;
}

.trade-card-note {
  padding: 20px 24px 24px;
  background: var(--tint);
}

.trade-card-note h3 {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.trade-card-note p {
  font-size: 15px;
  line-height: 24px;
}

.not-found {
  padding-bottom: var(--section);
}

.not-found-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  font-weight: 500;
}

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

.site-footer {
  background: var(--tint);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
  font-size: 14px;
  line-height: 22px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
}

.footer-brand {
  grid-column: 1 / span 4;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 36ch;
}

.footer-groups {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-group ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-group a {
  color: var(--muted);
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

.footer-bottom p {
  max-width: none;
}

.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .footer-brand,
  .footer-groups {
    grid-column: 1 / -1;
  }
  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
