@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =============================================================================
 * Mettle — "Forged" design system, ported verbatim from the Next.js portal
 * (web/app/tokens.css + web/app/globals.css). Served as a static stylesheet so
 * the Laravel-rendered trader portal + marketing site share one source of truth
 * with the reference app. Read doc 08 before touching any UI.
 *
 * The three font tokens below bind the design tokens to the families loaded via
 * <link> in the Blade layouts (Hanken Grotesk · Playfair Display · Geist Mono),
 * exactly as next/font wired them as CSS variables in web/app/layout.tsx.
 * ========================================================================== */
:root {
  --font-hanken: "Vazirmatn";
  --font-playfair: "Vazirmatn";
  --font-geist-mono: "Geist Mono";
}

/* ===== tokens.css ========================================================= */
:root {
  color-scheme: dark;

  /* --- Base: near-black with layered elevation. Elevation = lighter + hairline. */
  --bg-0: #08090B;            /* app background — deep black */
  --bg-1: #101216;           /* panel / card */
  --bg-2: #181A1F;           /* raised card, popover */
  --bg-3: #202329;           /* hover / input */
  --hairline: #292D33;       /* 1px borders — the "crafted" detail */
  --hairline-strong: #383D45;

  /* --- Platinum neutral text ramp — never pure white on pure black. */
  --ink-0: #F4F5F7;          /* primary text */
  --ink-1: #C3C7CE;          /* secondary */
  --ink-2: #8A909A;          /* tertiary / labels / eyebrows */
  --ink-3: #5B616B;          /* disabled / faint */

  /* --- Vivid gold accent — the brand-energy color (GOAT-style gold on black).
   *     White-label wizard overrides ONLY this group (derived from one hue). */
  --accent: #F4B81C;         /* vivid gold */
  --accent-bright: #FFCD42;  /* hover / focus glow */
  --accent-dim: #6E5210;     /* pressed / track */
  --accent-tint: rgba(244, 184, 28, 0.10); /* selected row, subtle fill */
  --accent-ink: #0A0A0B;     /* label color on the gold button (machined dark) */

  /* --- Functional — P&L + state. The ONLY other saturated colors. */
  --gain: #3FB87A;           /* profit / pass */
  --loss: #E0584F;           /* loss / breach */
  --warn: #D9A441;           /* near-limit / flag */
  --info: #5B8DB8;           /* neutral notice (muted, not loud blue) */

  /* --- Focus ring (doc 08 §2). */
  --focus-ring: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent-bright);

  /* --- Typography (doc 08 §3). None are Inter/Roboto/Space Grotesk.
   *     Prefer licensed faces for the flagship; documented free fallbacks. */
  --font-display: var(--font-hanken), "Neue Haas Grotesk Display", "GT America",
                  "Aktiv Grotesk", "Hanken Grotesk", sans-serif;
  --font-text: var(--font-hanken), "Suisse Int'l", "Hanken Grotesk", sans-serif;
  --font-mono: var(--font-geist-mono), "Commit Mono", "JetBrains Mono", "SFMono-Regular", monospace;

  /* Type scale (major-third-ish, tight) — doc 08 §3 */
  --fs-display-1: 48px;
  --fs-display-2: 40px;
  --fs-display-3: 32px;
  --fs-heading-1: 24px;
  --fs-heading-2: 20px;
  --fs-body-1: 16px;
  --fs-body-2: 14px;
  --fs-label-1: 13px;
  --fs-label-2: 12px;
  --tracking-display: -0.02em;
  --tracking-label: 0.06em;     /* uppercase eyebrows/labels */
  --leading-body: 1.55;
  --measure: 70ch;

  /* --- Space: 8px system (4px for fine work) — doc 08 §4 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* --- Shape: sharp-ish reads more serious than rounded-2xl — doc 08 §4 */
  --r-sm: 6px;   /* inputs, chips */
  --r-md: 10px;  /* cards */
  --r-lg: 14px;  /* modals */

  /* --- Elevation: borders over shadows; shadows tight, never big soft glow. */
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.40);

  /* --- Motion (doc 08 §6): purposeful, fast, few. */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 200ms;
  --dur-slow: 240ms;
  --reveal-stagger: 40ms;

  /* --- Layout */
  --content-max: 72rem;
  --grid-cols: 12;
}

/* Light mode: derived warm paper, not separately designed (doc 08 §2/§9).
 * Editorial, not stark. Same bronze accent, same gain/loss. */
[data-theme="light"] {
  color-scheme: light;
  --bg-0: #F6F4F1;   /* warm off-white paper */
  --bg-1: #FFFFFF;
  --bg-2: #F1EEE9;
  --bg-3: #E8E4DD;
  --hairline: #DED9D0;
  --hairline-strong: #C9C3B8;
  --ink-0: #16171A;
  --ink-1: #3C3F45;
  --ink-2: #6B7078;
  --ink-3: #9AA0A8;
  --accent-ink: #FFFFFF;
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* operators default dark-first; light only when explicitly chosen */
  }
}

/* ---- Money is always mono + tabular. The strongest "serious money" signal. */
.mono,
[data-money],
.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.gain { color: var(--gain); }
.loss { color: var(--loss); }
.warn { color: var(--warn); }

/* Reduced motion respected (doc 08 §6/§10). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== globals.css ======================================================== */

/* ---- Marketing landing (doc 08 §8) ---- */
.mkt-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: center; padding: var(--space-8) 0; }
@media (max-width: 900px) { .mkt-hero { grid-template-columns: 1fr; gap: var(--space-6); } }
.mkt-h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin: var(--space-3) 0 var(--space-4); }
.mkt-lead { color: var(--ink-1); font-size: var(--fs-body-1); line-height: 1.6; max-width: 54ch; }
.mkt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-5); padding: var(--space-6) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.mkt-stat .num { font-variant-numeric: tabular-nums; }
.mkt-section { padding: var(--space-8) 0; }
.mkt-footer { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-7) 0 var(--space-8); border-top: 1px solid var(--hairline); margin-top: var(--space-6); }

/* Bind the loaded free faces onto the design tokens. Hanken Grotesk (doc 08 §3
   documented free flagship fallback) carries display + UI; Geist Mono carries
   money. Söhne/Neue Haas would be the licensed flagship swap. */
:root {
  --font-text: var(--font-hanken), "Hanken Grotesk", sans-serif;
  --font-display: var(--font-playfair), "Playfair Display", Georgia, serif;
  --font-mono: var(--font-geist-mono), "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-text);
  font-size: var(--fs-body-1);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: var(--tracking-display); font-weight: 600; margin: 0; }
h1 { font-size: var(--fs-display-3); }
h2 { font-size: var(--fs-heading-1); }
h3 { font-size: var(--fs-heading-2); }

::selection { background: var(--accent-dim); color: var(--ink-0); }

/* Subtle grain on the app background — the anti-flat tactile move (doc 08 §7). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout shell ---- */
.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-5); }
.page { padding: var(--space-6) 0 var(--space-8); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-5); gap: var(--space-4); }

.promobar { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 7px var(--space-5); font-size: var(--fs-label-1); font-weight: 600; letter-spacing: 0.01em; }
.promobar b { font-weight: 800; }
.promobar .code { font-family: var(--font-mono); font-weight: 700; background: rgba(0,0,0,0.16); padding: 1px 7px; border-radius: 4px; }

.topnav {
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-1) 80%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.topnav .container { display: flex; align-items: center; gap: var(--space-6); height: 60px; }
.navlinks { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; }
.navlink { color: var(--ink-2); font-size: var(--fs-body-2); transition: color var(--dur-fast) var(--ease-standard); }
.navlink:hover, .navlink[data-active="true"] { color: var(--ink-0); }

/* ---- Brand mark ---- */
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand .spark { width: 18px; height: 18px; color: var(--accent); }

/* ---- Eyebrow / label (bold gold) ---- */
.eyebrow { font-family: var(--font-display); font-size: var(--fs-label-1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-bright); font-weight: 700; }

/* ---- Card ---- */
.card { background: var(--bg-1); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--space-5); }
.card.raised { background: var(--bg-2); }
.card.flush { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--space-3); margin-bottom: var(--space-4); border-bottom: 1px solid var(--hairline); }
.card-title { font-size: var(--fs-label-1); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-size: var(--fs-body-2); font-weight: 550;
  padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-secondary { background: var(--bg-2); color: var(--ink-0); border-color: var(--hairline-strong); }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-1); }
.btn-ghost:hover { color: var(--accent-bright); }
.btn-buy { background: var(--gain); color: #07140d; }
.btn-sell { background: var(--loss); color: #1a0807; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: var(--fs-label-1); }
.btn-block { width: 100%; }

/* ---- Inputs ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-label-1); color: var(--ink-2); }
.input {
  background: var(--bg-3); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  color: var(--ink-0); padding: 10px 12px; font-family: var(--font-text); font-size: var(--fs-body-2); width: 100%;
}
.input:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--accent); }
.input.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
select.input { appearance: none; }

/* ---- Status pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label-2); text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-active   { color: var(--accent-bright); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-tint); }
.pill-funded, .pill-payout_eligible { color: var(--gain); border-color: color-mix(in srgb, var(--gain) 35%, transparent); background: color-mix(in srgb, var(--gain) 8%, transparent); }
.pill-breached { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 35%, transparent); background: color-mix(in srgb, var(--loss) 8%, transparent); }
.pill-pending, .pill-passed_phase, .pill-retired { color: var(--ink-1); border-color: var(--hairline-strong); background: var(--bg-2); }

/* ---- Money / numerals ---- */
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- Stat cards ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.stat { padding: var(--space-4); }
.stat .k { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); }
.stat .v { font-size: 26px; margin-top: 6px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Rule meter ---- */
.meter { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--space-4); }
.meter:last-child { margin-bottom: 0; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; }
.meter-label { font-size: var(--fs-label-1); color: var(--ink-1); }
.meter-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-body-2); }
.meter-track { height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; border: 1px solid var(--hairline); }
.meter-fill { height: 100%; border-radius: 999px; transition: width var(--dur-slow) var(--ease-standard); }

/* ---- Data table ---- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--hairline); }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--hairline); font-size: var(--fs-body-2); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--accent-tint); }
.table .num { text-align: right; }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.row { display: flex; gap: var(--space-3); align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.muted { color: var(--ink-2); }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.warn { color: var(--warn); }

/* ---- Empty state ---- */
.empty { text-align: center; padding: var(--space-8) var(--space-5); color: var(--ink-2); border: 1px dashed var(--hairline-strong); border-radius: var(--r-md); }
.empty .spark { color: var(--ink-3); width: 32px; height: 32px; margin-bottom: var(--space-3); }

/* ---- Breach explainer ---- */
.breach { border: 1px solid color-mix(in srgb, var(--loss) 40%, transparent); background: color-mix(in srgb, var(--loss) 7%, transparent); border-radius: var(--r-md); padding: var(--space-4); }

/* ---- Auth ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; position: relative; z-index: 1; padding: var(--space-5); }
.auth-card { width: 100%; max-width: 380px; }

/* ---- Reveal ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp var(--dur-slow) var(--ease-standard) both; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ============================================================================
 * PREMIUM LANDING (doc 08 §8) — depth, rhythm, and trust signals befitting a
 * mature prop firm. One accent, hairline structure, tabular numerals on figures.
 * ========================================================================== */

.lp { position: relative; z-index: 1; }

/* Nav CTA cluster */
.nav-cta { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
@media (max-width: 720px) { .nav-hide { display: none; } }

.btn-lg { padding: 13px 24px; font-size: var(--fs-body-1); }
.lp-textlink { color: var(--ink-1); font-size: var(--fs-body-1); font-family: var(--font-mono); border-bottom: 1px solid var(--hairline-strong); padding-bottom: 2px; transition: color var(--dur-fast), border-color var(--dur-fast); }
.lp-textlink:hover { color: var(--ink-0); border-color: var(--accent); }

/* ============================================================================
 * BOLD HERO — gold-on-black, huge uppercase headline, product showcase + a gold
 * wave motif. Energetic prop-firm identity.
 * ========================================================================== */
.g-hero { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--space-8); align-items: center; padding: var(--space-8) 0 var(--space-7); }
.g-hero > .g-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.6; }
.g-hero > *:not(.g-wave) { position: relative; z-index: 1; }
@media (max-width: 960px) { .g-hero { grid-template-columns: 1fr; gap: var(--space-7); } }

.g-trust { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-label-1); color: var(--ink-2); margin-bottom: var(--space-5); }
.g-trust .stars { color: var(--accent-bright); letter-spacing: 1px; font-size: 13px; }
.g-trust b { color: var(--ink-0); font-weight: 700; }
.g-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, 8vw, 116px); line-height: 0.95; letter-spacing: -0.01em; margin: 0; }
.g-h1 .accent { color: var(--accent-bright); font-style: italic; font-weight: 600; }
.g-sub { color: var(--ink-1); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 50ch; margin: var(--space-5) 0 0; }
.g-sub .hi { color: var(--accent-bright); font-weight: 600; }
.g-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; margin-top: var(--space-6); }
.g-quick { display: flex; gap: var(--space-4) var(--space-6); flex-wrap: wrap; margin-top: var(--space-6); }
.g-quick span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label-1); color: var(--ink-2); }
.g-quick svg { color: var(--accent-bright); }

/* Product showcase card (the "phone") */
.g-show { position: relative; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); padding: var(--space-6); box-shadow: 0 44px 90px -46px rgba(0,0,0,0.95); }
.g-show-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-6); }
.g-emblem { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.g-show-name { font-family: var(--font-mono); font-size: var(--fs-label-1); color: var(--ink-1); text-transform: uppercase; letter-spacing: 0.04em; }
.g-show-lbl { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.g-show-bal { font-family: var(--font-mono); font-weight: 500; font-size: clamp(38px, 4.4vw, 54px); letter-spacing: -0.02em; line-height: 1; margin: 6px 0 var(--space-4); font-variant-numeric: tabular-nums; }
.g-show-bal .gain { color: var(--gain); font-size: 0.42em; font-weight: 700; margin-left: 8px; vertical-align: middle; }
.g-show .btn-block { margin-top: var(--space-5); }
.g-toast { display: flex; align-items: center; gap: 10px; margin-top: var(--space-4); padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--gain) 30%, transparent); background: color-mix(in srgb, var(--gain) 9%, transparent); border-radius: var(--r-sm); font-size: var(--fs-body-2); color: var(--ink-0); }
.g-toast .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--gain); color: #07140d; display: grid; place-items: center; flex: none; }

/* Bold stat band — big gold numbers */
.g-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin: var(--space-6) 0; }
.g-stats > div { background: var(--bg-0); padding: var(--space-5) var(--space-4); text-align: center; }
.g-stats .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; color: var(--accent-bright); font-variant-numeric: tabular-nums; }
.g-stats .l { font-size: var(--fs-label-1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin-top: 6px; }

@media (max-width: 640px) { .g-stats { grid-template-columns: repeat(2, 1fr); } }

/* Operator hero: headline + product panel side by side (collapses on small screens) */
.lp-hero-split { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: var(--space-7); align-items: center; }
@media (max-width: 940px) { .lp-hero-split { grid-template-columns: 1fr; gap: var(--space-6); } }

/* Hero CTAs + trust row — these had no base spacing, so the buttons gummed into the trust line */
.lp-h1 + .lp-sub, .lp-sub { margin-top: var(--space-4); }
.lp-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.lp-trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); color: var(--ink-2); font-size: var(--fs-body-2); }
.lp-trust > span { display: inline-flex; align-items: center; gap: 7px; }

/* Hero product panel */
.lp-panel { background: var(--bg-2); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); padding: var(--space-5); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8); }
.lp-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.lp-mini { display: flex; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.lp-mini .k { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); }
.lp-mini .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 22px; margin-top: 3px; }

/* Broker-agnostic strip */
.lp-rail { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; padding: var(--space-5) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.lp-rail .lbl { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.lp-rail .src { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-1); font-weight: 600; font-size: var(--fs-body-2); }
.lp-rail .src.soon { color: var(--ink-3); font-weight: 500; }

/* Trust band — big numbers */
.lp-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; margin: var(--space-7) 0; }
@media (max-width: 760px) { .lp-band { grid-template-columns: repeat(2, 1fr); } }
.lp-band > div { background: var(--bg-1); padding: var(--space-5); }
.lp-band .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.lp-band .l { color: var(--ink-2); font-size: var(--fs-label-1); margin-top: 4px; }

/* Section header */
.lp-sec { padding: var(--space-8) 0; }
.lp-sec-head { max-width: 70ch; margin: 0 auto var(--space-7); text-align: center; }
.lp-sec-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -0.01em; line-height: 1.04; margin-top: var(--space-3); }
.lp-sec-head h2 em, .lp-sec-head h2 .accent { font-style: italic; color: var(--accent-bright); font-weight: 600; }
.lp-sec-head p { color: var(--ink-1); margin: var(--space-3) auto 0; max-width: 60ch; font-size: var(--fs-body-1); }

/* Icon chip */
.chip { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--hairline-strong); background: var(--bg-2); color: var(--accent-bright); }
.chip.gain { color: var(--gain); }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 820px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step { position: relative; padding: var(--space-5); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--bg-1); }
.lp-step .step-n { font-family: var(--font-mono); font-size: var(--fs-label-1); color: var(--accent-bright); letter-spacing: 0.1em; }
.lp-step h3 { font-size: var(--fs-heading-2); margin: var(--space-3) 0 var(--space-2); }
.lp-step p { color: var(--ink-2); font-size: var(--fs-body-2); margin: 0; }

/* Feature grid */
.lp-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .lp-feat { grid-template-columns: 1fr; } }
.lp-feat .card { transition: border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast); }
.lp-feat .card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.lp-feat h3 { font-size: var(--fs-heading-2); margin: var(--space-4) 0 var(--space-2); }
.lp-feat p { color: var(--ink-2); font-size: var(--fs-body-2); margin: 0; }

/* Pricing */
.lp-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.price { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--bg-1); position: relative; }
.price.featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--bg-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 20px 50px -30px rgba(0,0,0,0.7); }
.price .tag { position: absolute; top: -10px; right: var(--space-4); font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.price .pname { font-size: var(--fs-heading-1); font-family: var(--font-display); font-weight: 500; }
.price .pprice { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 30px; letter-spacing: -0.02em; }
.price .pmeta { color: var(--ink-2); font-size: var(--fs-body-2); }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.price li { display: flex; align-items: center; gap: 9px; color: var(--ink-1); font-size: var(--fs-body-2); }
.price li svg { color: var(--gain); flex: none; }

/* Proof / transparency split */
.lp-proof { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
@media (max-width: 900px) { .lp-proof { grid-template-columns: 1fr; } }
.proof-row { display: flex; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--hairline); }
.proof-row:last-child { border-bottom: none; }
.proof-row h4 { margin: 0 0 4px; font-size: var(--fs-body-1); }
.proof-row p { margin: 0; color: var(--ink-2); font-size: var(--fs-body-2); }

/* Testimonials */
.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .lp-quotes { grid-template-columns: 1fr; } }
.quote { padding: var(--space-5); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--bg-1); }
.quote p { font-size: var(--fs-body-1); line-height: 1.5; margin: 0 0 var(--space-4); }
.quote .who { display: flex; align-items: center; gap: 10px; }
.quote .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-bright); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.quote .who .nm { font-size: var(--fs-body-2); font-weight: 600; }
.quote .who .mt { font-size: var(--fs-label-1); color: var(--ink-2); }

/* FAQ */
.lp-faq { display: flex; flex-direction: column; gap: var(--space-2); max-width: 760px; }
.faq { border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--bg-1); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-4); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); font-weight: 600; font-size: var(--fs-body-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--accent-bright); transition: transform var(--dur-fast); }
.faq[open] summary .pm { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 var(--space-4) var(--space-4); color: var(--ink-2); font-size: var(--fs-body-2); line-height: 1.55; }

/* CTA banner — flat surface + hairline, no gradient. */
.lp-cta-banner { text-align: center; padding: var(--space-8) var(--space-5); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); background: var(--bg-1); margin: var(--space-7) 0; }
.lp-cta-banner h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.015em; }
.lp-cta-banner p { color: var(--ink-1); max-width: 50ch; margin: var(--space-3) auto var(--space-5); }

/* Footer */
.lp-foot { border-top: 1px solid var(--hairline); padding: var(--space-7) 0 var(--space-6); margin-top: var(--space-7); }
.lp-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 820px) { .lp-foot-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.lp-foot h5 { font-size: var(--fs-label-1); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); margin: 0 0 var(--space-3); font-weight: 600; }
.lp-foot a { display: block; color: var(--ink-1); font-size: var(--fs-body-2); padding: 5px 0; }
.lp-foot a:hover { color: var(--accent-bright); }
.lp-foot-bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--hairline); color: var(--ink-3); font-size: var(--fs-label-1); }

/* ============================================================================
 * DASHBOARD — richer overview: stat tiles, activity feed, transactions.
 * ========================================================================== */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-stat { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.dash-stat .top { display: flex; align-items: center; justify-content: space-between; }
.dash-stat .k { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); }
.dash-stat .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 26px; letter-spacing: -0.01em; }
.dash-stat .chip { width: 32px; height: 32px; }

/* Account card meter line */
.acct-card { display: block; transition: border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast); }
.acct-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.acct-meter { height: 5px; border-radius: 999px; background: var(--bg-3); overflow: hidden; margin-top: var(--space-4); }
.acct-meter > span { display: block; height: 100%; border-radius: 999px; }

/* Activity feed */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); }
.feed-item:last-child { border-bottom: none; }
.feed-ic { width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--hairline); background: var(--bg-2); color: var(--ink-1); }
.feed-ic.gain { color: var(--gain); border-color: color-mix(in srgb, var(--gain) 30%, transparent); }
.feed-ic.loss { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 30%, transparent); }
.feed-ic.accent { color: var(--accent-bright); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.feed-body { flex: 1; min-width: 0; }
.feed-body .t { font-size: var(--fs-body-2); font-weight: 600; }
.feed-body .d { font-size: var(--fs-label-1); color: var(--ink-2); }
.feed-meta { text-align: right; flex: none; }
.feed-meta .when { font-size: var(--fs-label-1); color: var(--ink-3); }

/* Referral mini */
.ref-code { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); background: var(--bg-3); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 10px 12px; }
.ref-code code { font-family: var(--font-mono); font-size: var(--fs-body-1); letter-spacing: 0.06em; color: var(--ink-0); }

/* KYC banner */
.kyc-banner { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 7%, transparent); margin-bottom: var(--space-5); }
.kyc-banner .chip { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* Notification bell (nav) */
.navbell { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); color: var(--ink-2); transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast); }
.navbell:hover { color: var(--ink-0); background: var(--bg-2); }
.navbell-badge { position: absolute; top: 1px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; font-family: var(--font-mono); border: 2px solid var(--bg-0); }

/* Notification rows */
.notif { display: flex; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--bg-1); }
.notif.unread { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============================================================================
 * INNER PAGES (legal + marketing) — shared chrome + long-form prose.
 * ========================================================================== */
.site-hero { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--hairline); margin-bottom: var(--space-7); }
.site-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.015em; line-height: 1.06; margin-top: var(--space-2); }
.site-hero p { color: var(--ink-1); font-size: var(--fs-body-1); margin-top: var(--space-3); max-width: 60ch; }

/* Legal layout: sticky table of contents + readable article column. */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-7); align-items: start; padding-bottom: var(--space-8); }
@media (max-width: 880px) { .legal-wrap { grid-template-columns: 1fr; gap: var(--space-5); } }
.legal-toc { position: sticky; top: 84px; }
@media (max-width: 880px) { .legal-toc { position: static; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--space-4); background: var(--bg-1); } }
.legal-toc .toc-label { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); font-weight: 600; margin-bottom: var(--space-3); }
.legal-toc a { display: block; color: var(--ink-2); font-size: var(--fs-body-2); padding: 5px 0; border-left: 2px solid transparent; padding-left: 12px; margin-left: -2px; }
.legal-toc a:hover { color: var(--ink-0); border-color: var(--hairline-strong); }

.legal { max-width: 72ch; color: var(--ink-1); font-size: var(--fs-body-1); line-height: 1.7; }
.legal .updated { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label-1); color: var(--ink-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 12px; margin-bottom: var(--space-5); }
.legal h2 { font-size: var(--fs-heading-1); letter-spacing: -0.01em; margin: var(--space-7) 0 var(--space-3); scroll-margin-top: 84px; color: var(--ink-0); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: var(--fs-heading-2); margin: var(--space-5) 0 var(--space-2); color: var(--ink-0); }
.legal p { margin: 0 0 var(--space-4); }
.legal ul, .legal ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
.legal li { margin-bottom: var(--space-2); }
.legal a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink-0); font-weight: 600; }
.legal .callout { border: 1px solid var(--hairline-strong); border-left: 3px solid var(--accent); background: var(--bg-1); border-radius: var(--r-sm); padding: var(--space-4); margin: 0 0 var(--space-4); color: var(--ink-1); }

/* Marketing inner sections reuse .lp-* ; a couple of extras: */
.steps-num { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.steps-num + .steps-num { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.steps-num .n { font-family: var(--font-mono); font-size: 22px; color: var(--accent-bright); width: 48px; height: 48px; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); display: grid; place-items: center; background: var(--bg-1); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================================
 * INTERACTIONS + MEGA MENU — restrained hover states only, no ambient motion.
 * ========================================================================== */

/* Card hover — the hairline strengthens and the card lifts 2px. Nothing ambient. */
.card { transition: transform var(--dur-fast) var(--ease-standard), border-color var(--dur-fast); }
.card.hover-lift:hover, .lp-feat .card:hover, .price:hover { transform: translateY(-2px); border-color: var(--hairline-strong); }

.lp-rail .src svg { color: var(--accent); }
.lp-rail .src.soon svg { color: var(--ink-3); }

/* ---- Mega menu ---- */
.has-mega { position: relative; }
.mega-trigger { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: var(--fs-body-2); cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }
.mega-trigger:hover, .has-mega[data-open="true"] .mega-trigger { color: var(--ink-0); }
.mega-trigger .caret { transition: transform var(--dur-fast); }
.has-mega[data-open="true"] .mega-trigger .caret { transform: rotate(180deg); }
.mega-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(720px, 92vw); background: var(--bg-2); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85); padding: var(--space-5); opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast); z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: var(--space-5);
}
.has-mega[data-open="true"] .mega-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col h6 { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); margin: 0 0 var(--space-3); font-weight: 600; }
.mega-link { display: flex; gap: 10px; padding: 8px; border-radius: var(--r-sm); margin: 0 -8px; transition: background var(--dur-fast); }
.mega-link:hover { background: var(--bg-3); }
.mega-link .mi { width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--hairline); background: var(--bg-1); color: var(--accent-bright); }
.mega-link .mt { font-size: var(--fs-body-2); font-weight: 600; color: var(--ink-0); }
.mega-link .md { font-size: var(--fs-label-1); color: var(--ink-2); }
.mega-feature { background: var(--bg-1); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--space-4); display: flex; flex-direction: column; }
.mega-feature .me { font-size: var(--fs-label-2); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--accent-bright); }
@media (max-width: 920px) { .mega-panel { display: none !important; } }

/* Mobile nav drawer */
.nav-burger { display: none; background: none; border: 1px solid var(--hairline-strong); color: var(--ink-1); border-radius: var(--r-sm); width: 38px; height: 38px; place-items: center; cursor: pointer; }
.mobile-drawer { display: none; }
@media (max-width: 920px) {
  .nav-burger { display: grid; }
  .nav-hide { display: none !important; }
  .mobile-drawer { display: block; border-top: 1px solid var(--hairline); background: var(--bg-1); padding: var(--space-4) var(--space-5); }
  .mobile-drawer a { display: block; padding: 10px 0; color: var(--ink-1); border-bottom: 1px solid var(--hairline); }
  .mobile-drawer a:last-child { border-bottom: none; }
}


/* Comparison: typical firm vs this firm */
.compare { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare .ch-hide { display: none; } }
.compare > div { background: var(--bg-1); padding: var(--space-4) var(--space-5); display: flex; align-items: center; }
.compare .ch { font-size: var(--fs-label-1); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); font-weight: 600; background: var(--bg-2); }
.compare .ch.us { color: var(--accent-bright); }
.compare .rh { color: var(--ink-1); font-weight: 500; }
.compare .neg { color: var(--ink-2); gap: 8px; }
.compare .pos { color: var(--ink-0); gap: 8px; }
.compare .pos svg { color: var(--gain); flex: none; }
.compare .neg svg { color: var(--loss); flex: none; }

/* Section title row inside cards */
.sec-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.sec-title h3 { font-size: var(--fs-heading-2); }
.link-more { color: var(--accent-bright); font-size: var(--fs-label-1); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.link-more:hover { color: var(--accent); }

/* ----------------------------------------------------------------------------
 * MOBILE HARDENING — no horizontal overflow on small screens.
 * Grid/flex children default to min-width:auto, so wide mono numerals
 * ("$25k–$200k", "USD 106,400.00") can force a track wider than the viewport
 * and shove the whole page — and the nav's right edge (Get funded + burger) —
 * off-screen. Fix: (1) let those items shrink, (2) cap media to 100%,
 * (3) single-column the stat band on small phones, (4) clip any stray
 * horizontal scroll. `overflow-x: clip` (not hidden) so the sticky nav still works.
 * ------------------------------------------------------------------------- */
html, body { overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; }
.lp-band > div, .lp-mini > *, .dash-stats > *, .compare > div,
.lp-prices > .price, .lp-quotes > .quote, .lp-feat > .card { min-width: 0; }

@media (max-width: 560px) {
  .lp-band { grid-template-columns: 1fr; }
  .lp-band > div { padding: var(--space-4) var(--space-5); }
  .lp-cta { gap: var(--space-3); }
  .lp-cta .btn { flex: 1 1 auto; justify-content: center; }
  .lp-trust { gap: var(--space-3) var(--space-4); }
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* ----------------------------------------------------------------------------
 * LOCALE SWITCHER (i18n) — language picker in the footer / auth pages.
 * Pure CSS + Alpine toggle; mirrors automatically under [dir="rtl"].
 * ------------------------------------------------------------------------- */
.lp-foot-bottom__end { display: inline-flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.locale-switcher { position: relative; display: inline-block; }
.locale-switcher__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--hairline); border-radius: var(--radius-2, 8px); padding: 6px 10px; color: var(--ink-2); font: inherit; font-size: var(--fs-label-1); cursor: pointer; }
.locale-switcher__btn:hover { color: var(--ink-1); border-color: var(--hairline-strong, var(--hairline)); }
.locale-switcher__menu { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 0; min-width: 180px; list-style: none; margin: 0; padding: 6px; background: var(--surface-1, #101216); border: 1px solid var(--hairline); border-radius: var(--radius-3, 12px); box-shadow: 0 12px 32px rgba(0,0,0,.4); z-index: 60; }
.locale-switcher__menu li { margin: 0; }
.locale-switcher__menu form { margin: 0; }
.locale-switcher__menu button { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: start; background: none; border: 0; border-radius: var(--radius-2, 8px); padding: 8px 10px; color: var(--ink-1); font: inherit; cursor: pointer; }
.locale-switcher__menu button:hover { background: var(--surface-2, rgba(255,255,255,.04)); }
.locale-switcher__menu button.is-active { color: var(--accent-bright); }

/* RTL mirroring for the document — flip text alignment + logical insets. */
[dir="rtl"] body { text-align: right; }
