:root {
  --red: #cd0511;
  --black: #000000;
  --white: #ffffff;
  --grey: #f5f5f5;
  --grey-deep: #ededed;
  --mid: #6b6b6b;
  --text: #171717;
  --body: #232323;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 24px 50px rgba(0, 0, 0, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}



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

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--red);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 0 0 10px 10px;
}

.skip-link:focus { left: 1rem; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand svg { width: 112px; height: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang a {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang a:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.75);
}

.lang a[aria-current="true"] {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.menu-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.25s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.6);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  display: none;
  width: min(100%, 420px);
  margin-left: auto;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-strong);
  animation: slideInRight 0.24s ease-out;
}

.nav-menu.active { display: block; }

@keyframes slideInRight {
  from { transform: translateX(18px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li + li { border-top: 1px solid rgba(0,0,0,0.06); }

.nav-menu a {
  display: block;
  padding: 16px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover {
  background: var(--grey);
  color: var(--red);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(205,5,17,0.22), transparent 26%), linear-gradient(135deg, #040404 0%, #111111 100%);
  color: var(--white);
  padding: 72px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 260px;
  height: 100%;
  background: rgba(205,5,17,0.92);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}

.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 14.5em;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.lead {
  margin-top: 22px;
  margin-bottom: 0;
  max-width: 34em;
  color: rgba(255,255,255,0.8);
  font-size: 1.12rem;
  line-height: 1.7;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.center-btns { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 45%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before { transform: translateX(120%); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(205,5,17,0.25);
  filter: brightness(1.06);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
}

.btn.secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.note {
  margin-top: 18px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-visual svg {
  width: min(100%, 620px);
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.35));
}

.riskband {
  background: linear-gradient(90deg, var(--red) 0%, #a70411 100%);
  color: var(--white);
  font-weight: 700;
  padding: 14px 0;
}

section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--grey);
  border: 1px solid var(--border);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--body);
  line-height: 1.7;
}

.alt { background: var(--grey); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 18px;
}

ol.steps { counter-reset: step; }

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.steps li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #a50412 100%);
  color: var(--white);
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--text);
}

.steps p {
  margin: 0;
  color: var(--body);
  line-height: 1.7;
}

.partner {
  background: linear-gradient(135deg, #0b0b0b 0%, #1b1b1b 100%);
  color: var(--white);
}

.partner h2 { color: var(--white); }
.partner p {
  max-width: 45em;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin: 0 0 12px;
}

.faq {
  max-width: 860px;
  margin: 0 auto;
}

details {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 18px 0;
}

details:hover summary { color: var(--red); }

summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }
summary::after {
  content: "▾";
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

details[open] summary::after { transform: rotate(180deg); }

details p {
  margin: 14px 0 0;
  color: var(--body);
  line-height: 1.7;
}

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 52px 0 56px;
}

.site-footer p {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.site-footer b { color: var(--white); }
.site-footer .small {
  margin-top: 22px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 840px) {
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { width: 160px; }
  .hero-visual { min-height: 280px; }
}

@media (max-width: 560px) {
  .site-header .wrap {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .brand svg { width: 92px; }
  .lang a { font-size: 0.68rem; padding: 5px 9px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero { padding-bottom: 64px; }
  .btns { flex-direction: column; }
  .btn { width: 100%; }
  .steps li { padding: 18px 16px; }
  section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.lang a { text-decoration: none; display: inline-block; }
.riskband a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.risk-full { font-size: 1.05rem; line-height: 1.75; padding: 18px 20px; border-left: 4px solid var(--red, #cd0511); background: var(--grey, #f2f2f2); border-radius: 0 8px 8px 0; }

.roles-head { margin-top: 56px; }
.callout { margin: 28px auto 0; max-width: 52em; padding: 16px 20px; border-left: 4px solid var(--red, #cd0511); background: var(--grey, #f2f2f2); border-radius: 0 8px 8px 0; font-size: 0.95rem; line-height: 1.55; }
.alt .callout, .callout { color: var(--text, #171717); }
/* ---- v2 additions ---- */
.site-footer a { color: var(--white); text-underline-offset: 3px; }
.site-footer .logo-footer { width: 112px; height: auto; }
.footer-links { margin-top: 12px; }
.disclosure { margin: 10px 0 0; max-width: 34em; color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.5; }
.disclosure.dark { color: var(--mid); text-align: center; margin-left: auto; margin-right: auto; }
.section-sub { margin: 12px 0 0; max-width: 40em; color: var(--mid); }

/* neutral demo-account illustration: no charts, no money imagery */
.demo-card { width: min(100%, 420px); background: #161616; border: 1px solid rgba(255,255,255,0.14); border-radius: 22px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.demo-head { display: flex; align-items: center; gap: 14px; }
.demo-head .mark { width: 52px; height: 52px; flex: none; background: #000; border-radius: 12px; }
.demo-title { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.demo-title small { color: rgba(255,255,255,0.7); font-size: 0.82rem; }
.demo-badge { border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 4px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; }
.demo-rows { display: grid; gap: 12px; margin: 26px 0; }
.demo-rows i { display: block; height: 14px; border-radius: 7px; background: rgba(255,255,255,0.1); }
.demo-rows i:nth-child(1) { width: 92%; }
.demo-rows i:nth-child(2) { width: 68%; }
.demo-rows i:nth-child(3) { width: 80%; background: rgba(205,5,17,0.55); }
.demo-foot { color: rgba(255,255,255,0.75); font-size: 0.92rem; }

/* legal + 404 pages */
.legal { padding: 64px 0 80px; }
.prose { max-width: 780px; }
.prose h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--text); }
.prose h2 { margin: 36px 0 8px; font-size: 1.3rem; letter-spacing: -0.01em; }
.prose p { margin: 0 0 12px; line-height: 1.75; }
.prose .muted { color: var(--mid); }
.prose.center { text-align: center; margin: 0 auto; }
.btn.secondary-dark { background: var(--black); border-color: var(--black); color: var(--white); }
@media (max-width: 840px) {
  .demo-card { margin: 0 auto; }
  .hero::before { right: 0; width: 100%; height: 8px; clip-path: none; }
}
.btn { text-align: center; }

.logo-chooser { width: 150px; height: auto; background: #000; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; }

/* ---- resources page, weekly card ---- */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html[data-lang="fr"] [data-only="en"] { display: none !important; }
.res-hero { padding: 56px 0 36px; background: var(--black); color: var(--white); }
.res-hero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 6.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; }
.lead-dark { margin: 0; max-width: 38em; color: rgba(255,255,255,0.82); font-size: 1.02rem; line-height: 1.65; }
.disclosure.left { margin-left: 0; text-align: left; }
.res-group { padding: 56px 0 8px; }
.res-group + .res-group { padding-top: 40px; }
.res-grid { display: grid; align-items: start; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 28px; }
.rcard { display: flex; flex-direction: column; }
.rcard.open-wide { grid-column: 1 / -1; }
.rcard h3 { margin-bottom: 8px; }
.rcard p { margin: 0 0 12px; }
.ractions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 6px; }
.rlink { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rlink2 { color: var(--mid); text-underline-offset: 3px; }
.reveal { appearance: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--black); background: var(--white); border: 2px solid var(--black); border-radius: 999px; padding: 8px 18px; min-height: 44px; }
.reveal:hover { background: var(--black); color: var(--white); }
.reveal:focus-visible, .rlink:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.reveal .when-open { display: none; }
.reveal[aria-expanded="true"] .when-open { display: inline; }
.reveal[aria-expanded="true"] .when-closed { display: none; }
.rnote { margin: 10px 0 0; color: var(--mid); font-size: 0.85rem; line-height: 1.5; }
.rslot:empty { display: none; }
.rslot { margin-top: 14px; max-width: 100%; overflow: hidden; }
.rslot img, .rslot iframe { display: block; max-width: 100%; height: auto; border: 0; border-radius: 8px; }
.rslot iframe { height: auto; }
.rslot-box iframe { width: 300px; height: 205px; }
.rslot-calc iframe { width: 100%; max-width: 450px; height: 700px; }
.rslot-ticker { background: #000; border-radius: 6px; height: 30px; }
.rslot-ticker iframe { width: 1600px; max-width: none; height: 20px; margin-top: 5px; border-radius: 0; animation: upyps-ticker 50s linear infinite; }
@keyframes upyps-ticker { from { transform: translateX(40%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .rslot-ticker { overflow-x: auto; } .rslot-ticker iframe { animation: none; } }
.small-callout { font-size: 0.85rem; max-width: none; margin-top: 28px; }
.res-empty { padding: 56px 0; color: var(--mid); }
.thisweek { padding: 40px 0; background: var(--grey); }
.eyebrow-dark { margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.spot { display: grid; gap: 18px; align-items: start; background: var(--white); border: 1px solid #e3e3e3; border-left: 4px solid var(--red); border-radius: 10px; padding: 24px; }
.spot h3 { margin: 0 0 8px; font-size: 1.15rem; }
.spot p { margin: 0 0 8px; }
@media (min-width: 841px) { .spot { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: 28px 32px; } }

/* ---- guide pages ---- */
.prose ul.list, .prose ol.list { margin: 0 0 16px; padding-left: 1.3em; line-height: 1.7; }
.prose .list li { margin: 0 0 8px; }
.prose ol.list { list-style: none; padding-left: 0; }
.tbl-wrap { overflow-x: auto; margin: 18px 0 8px; border: 1px solid #ddd; border-radius: 8px; }
.tbl { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid #e6e6e6; }
.tbl thead th { background: #f2f2f2; font-size: 0.85rem; letter-spacing: 0.02em; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.more-links { margin-top: 28px; font-size: 0.95rem; color: var(--mid); }
.prose .callout { margin: 28px 0 0; max-width: none; }
.guides-grid .card a { color: inherit; }
.guides-grid .card h3 a { text-decoration: none; }
.guides-grid .card h3 a:hover { color: var(--red); }

.disc-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }

/* ---- typography v3: calmer scale, shorter measure, more white space ---- */
.hero h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 13em; }
.lead { font-size: 1.04rem; line-height: 1.65; }
.section-header h2 { font-size: clamp(1.55rem, 6.4vw, 1.85rem); line-height: 1.18; letter-spacing: -0.02em; }
.card h3, .steps h3 { font-size: 1.1rem; }
section { padding: 56px 0; }
@media (min-width: 841px) {
  body { line-height: 1.65; }
  .hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 13em; }
  .lead { font-size: 1.1rem; line-height: 1.65; max-width: 32em; }
  .section-header h2 { font-size: clamp(1.7rem, 2.3vw, 2.15rem); }
  .section-sub { font-size: 1rem; max-width: 38em; }
  section { padding: 88px 0; }
  .res-group { padding: 64px 0 8px; }
  .grid, .res-grid { gap: 28px; }
  .steps, .faq { max-width: 820px; }
  .site-footer p { max-width: 62em; }
}
