/* ===== Design tokens (fintech clean) ===== */
:root {
    --bg: #fbfcfe;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
  
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
  
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    --radius: 16px;
  
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  }
  
  html[data-theme="dark"] {
    --bg: #0b1220;
    --surface: #0f172a;
    --text: #e5e7eb;
    --muted: #a1a1aa;
    --border: #22304a;
  
    --primary: #3b82f6;
    --primary-hover: #2563eb;
  
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }
  
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
  }
  
  a { color: inherit; }
  .muted { color: var(--muted); }
  .fineprint { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; align-items: flex-start; gap: 6px; }
  .fineprint-icon { font-size: 18px; color: var(--muted); flex-shrink: 0; margin-top: -1px; }
  
  .container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
  }
  
  .skip {
    position: absolute;
    left: -999px;
    top: 8px;
  }
  .skip:focus {
    left: 16px;
    z-index: 9999;
    background: var(--surface);
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  
  /* ===== Header ===== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  html[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.7);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
  }

.header-left {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
  
  .brand { display: flex; gap: 12px; align-items: center; }
  .brand-mark img {
    width: 36px; height: 36px;
    /*border-radius: 12px;*/
    /*background: linear-gradient(135deg, var(--primary), rgba(37,99,235,0.2));
    border: 1px solid rgba(226,232,240,0.3);*/
  }
  .brand-name { font-weight: 800; letter-spacing: -0.2px; }
  .brand-sub { font-size: 13px; color: var(--muted); }
  
  /* ===== Hero ===== */
  .hero { padding: 42px 0 12px; }
  .hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
  }
  
  .hero-topline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
  .dot { opacity: 0.7; }
  
  .h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.6px;
  }
  .lead { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
  
  .hero-bullets {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--text);
  }
  .hero-ctas { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
  
  /* ===== Sections ===== */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 18px; }
  .h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.3px; }
  .h3 { margin: 0; font-size: 18px; letter-spacing: -0.2px; }
  
  /* ===== Pills / badges ===== */
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(226, 232, 240, 0.25);
    font-size: 12.5px;
    color: var(--muted);
  }
  html[data-theme="dark"] .pill {
    background: rgba(34, 48, 74, 0.35);
  }
  
  .badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(226, 232, 240, 0.25);
    font-size: 12.5px;
    color: var(--muted);
  }
  .badge-mid { opacity: 0.9; }
  
  /* ===== Buttons ===== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
  }
  
  .btn-primary {
    background: var(--primary);
    color: #fff;
  }
  .btn-primary:hover { background: var(--primary-hover); }
  
  .btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
  }
  .btn-secondary:hover { background: rgba(226,232,240,0.25); }
  html[data-theme="dark"] .btn-secondary:hover { background: rgba(34,48,74,0.35); }
  
  .btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
    padding: 10px 12px;
  }
  .btn-ghost:hover { background: rgba(226,232,240,0.25); }
  html[data-theme="dark"] .btn-ghost:hover { background: rgba(34,48,74,0.35); }
  
  .btn-small { padding: 10px 12px; border-radius: 12px; font-weight: 800; }
  
/* Locale links */
.locale-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.locale-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.locale-link:hover {
  color: var(--text);
}
.locale-link.is-active {
  color: var(--text);
  font-weight: 800;
}
.locale-link:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.locale-sep {
  color: var(--muted);
  opacity: 0.8;
}

/* Theme switch (MD3 segmented control – compact) */
  .theme-switch {
    display: inline-flex;
    display: none;
    align-items: center;
    padding: 2px;
    gap: 0;
    background: rgba(226, 232, 240, 0.25);
    border: 1px solid transparent;
    border-radius: 999px;
  }
  html[data-theme="dark"] .theme-switch {
    background: rgba(34, 48, 74, 0.25);
  }
  .theme-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }
  .theme-switch-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.4);
  }
  html[data-theme="dark"] .theme-switch-btn:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .theme-switch-btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  html[data-theme="dark"] .theme-switch-btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  .theme-switch-btn .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  }
  .theme-switch-btn[aria-pressed="true"] .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24 !important;
  }
  
  /* ===== Table ===== */
  .table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  
  .compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
  }
  .compare thead th {
    text-align: left;
    padding: 14px 16px;
    color: var(--muted);
    background: rgba(226,232,240,0.25);
    border-bottom: 1px solid var(--border);
    font-weight: 800;
  }
  html[data-theme="dark"] .compare thead th {
    background: rgba(34,48,74,0.35);
  }
  .compare tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .compare tbody tr:hover { background: rgba(226,232,240,0.18); }
  html[data-theme="dark"] .compare tbody tr:hover { background: rgba(34,48,74,0.20); }
  .th-cta { width: 1%; white-space: nowrap; }
  .exchange-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .exchange-logo { display: block; object-fit: contain; flex-shrink: 0; }
  .exchange-logo-table { width: 28px; height: 28px; border-radius: 6px; }
  .exchange-logo-card { width: 40px; height: 40px; border-radius: 8px; }
  
  /* ===== Cards ===== */
  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .card-tagline { display: block; }
  .rank {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(226,232,240,0.25);
    border: 1px solid var(--border);
    font-weight: 900;
    color: var(--muted);
  }
  html[data-theme="dark"] .rank { background: rgba(34,48,74,0.35); }
  
  .card-list { margin: 0; padding-left: 18px; color: var(--text); }
  .card-note { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
  
  /* ===== FAQ ===== */
  .faq { display: grid; gap: 10px; }
  .faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
  }
  .faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 16px;
    font-weight: 800;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-body {
    padding: 0 16px 16px;
    color: var(--muted);
  }
  
  /* ===== Footer ===== */
  .footer {
    padding: 40px 0 90px;
    border-top: 1px solid var(--border);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .footer-title { font-weight: 900; margin-bottom: 6px; }
  .footer-bottom { margin-top: 22px; font-size: 13px; }
  
  /* ===== Sticky CTA (mobile) ===== */
  .sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    display: none;
    z-index: 50;
  }
  html[data-theme="dark"] .sticky-cta { background: rgba(15, 23, 42, 0.72); }
  
  .sticky-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .sticky-title { font-weight: 900; }
  .sticky-sub { font-size: 13px; }
  
  /* ===== Responsive ===== */
  @media (max-width: 980px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
  }
  
  @media (max-width: 720px) {
    .container { width: min(1120px, calc(100% - 32px)); }
    .header-inner { align-items: flex-start; gap: 10px; }
    .header-left { flex-direction: column; align-items: flex-start; gap: 8px; }
    .locale-links { font-size: 13px; }
    .hero-card { padding: 18px; }
    .lead { font-size: 16.5px; }
    .hero-ctas .btn { width: 100%; }
    .cards { grid-template-columns: 1fr; }
  
    /* sticky CTA on mobile */
    .sticky-cta { display: block; }
  
    /* Table -> stacked rows */
    .compare thead { display: none; }
    .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
    .compare tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
    .compare tbody td {
      border: none;
      padding: 8px 16px;
    }
    .compare tbody td::before {
      content: attr(data-label);
      display: block;
      font-size: 12px;
      color: var(--muted);
      font-weight: 800;
      margin-bottom: 2px;
    }
    .compare tbody td:last-child { padding-top: 12px; }
    .compare tbody td:last-child .btn { width: calc(100% - 0px); }
  }
  