/* ══════════════════════════════════════════════════════════════════════
   Evie — landing page

   Flat by design: every colour is a solid value. There is not a single
   gradient in this file — no linear-gradient, no radial-gradient, no
   gradient text. Depth comes from solid surfaces, 1px borders and
   spacing instead.

   Full-bleed: content runs to the edges of the viewport with a padding
   gutter, so nothing is boxed into a narrow centred column.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Theme ──────────────────────────────────────────────────────────────
   Light is the default, the way the analysis tools it mirrors are. Dark is
   one class away: everything below is a token, so the palette swaps and
   nothing else moves.

   data-theme on <html> wins over the system preference, because a person
   who has pressed the button has said what they want.                     */

:root {
  /* Surfaces — four flat steps from the page up to a raised card. */
  --base:      #f3f4f7;
  --raise:     #ffffff;
  --surface:   #ffffff;
  --surface-2: #f1f3f6;

  --line:      #e2e6ec;
  --line-hi:   #cdd3dc;

  --ink:       #14161a;
  --ink-muted: #59616d;
  --ink-faint: #838b97;

  /* Accents deep enough to carry white text on a light page. */
  --pink:      #e11d74;
  --pink-hi:   #c4165f;
  --blue:      #0d8ecf;
  --blue-hi:   #0a76ae;
  --ok:        #14a05a;

  /* Text sitting ON an accent fill. */
  --on-accent: #ffffff;
  /* The ring around a "leading" control — must contrast with the fill. */
  --ring:      rgba(0, 0, 0, 0.45);

  /* The dotted ground, and the tint of an alternating band. */
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23000000' fill-opacity='0.06'/%3E%3C/svg%3E");
  --alt-tint: rgba(0, 0, 0, 0.025);

  /* The full-bleed gutter — the only horizontal rhythm on the page. */
  --gutter:    clamp(20px, 4.5vw, 72px);
  --radius:    16px;
  --radius-sm: 12px;
}

:root[data-theme="dark"] {
  --base:      #0b0b0f;
  --raise:     #121218;
  --surface:   #16161d;
  --surface-2: #1c1c24;

  --line:      #26262f;
  --line-hi:   #34343f;

  --ink:       #f2f2f5;
  --ink-muted: #a3a3ae;
  --ink-faint: #6e6e7a;

  /* Brighter, because they sit on near-black and carry dark text. */
  --pink:      #ff3d87;
  --pink-hi:   #ff5c9c;
  --blue:      #38c6ff;
  --blue-hi:   #5bd2ff;
  --ok:        #5fd39a;

  --on-accent: #0b0b0f;
  --ring:      rgba(255, 255, 255, 0.55);

  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
  --alt-tint: rgba(255, 255, 255, 0.026);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* anchors clear the fixed nav */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  /* Dotted ground. The dots are an SVG tile of solid circles rather than a
     radial-gradient, so the page keeps its no-gradient rule. `fixed` pins the
     grid to the viewport, so it never scrolls out of register or stretches —
     the tile is a constant 26px at every screen size, which is why this needs
     no breakpoints. */
  background-color: var(--base);
  background-image: var(--dots);
  background-size: 26px 26px;
  background-attachment: fixed;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

/* Full width, gutter only — no max-width, so the page fills the screen. */
.bleed { width: 100%; padding-inline: var(--gutter); }

/* ── Home dashboard ─────────────────────────────────────────────────────── */

.dash { min-height: 100svh; }

.dash-main { padding-top: clamp(104px, 13vh, 132px); padding-bottom: 64px; }
.dash-title {
  margin-bottom: clamp(22px, 3vw, 30px);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
}

/* The real balance, perched top right in the nav. */
.perch { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.perch-v {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-sub { max-width: 56ch; margin-top: -8px; margin-bottom: 28px; color: var(--ink-muted); }

/* Real vs demo. Blue is the live account; the demo is deliberately quieter so
   the two can never be mistaken for one another at a glance. */
.badge {
  padding: 5px 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.badge:hover { color: var(--blue-hi); border-color: var(--blue-hi); }

/* The two things you can actually do from here. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  max-width: 720px;
  margin-bottom: 24px;
}
.tile {
  display: grid;
  gap: 6px;
  padding: clamp(22px, 2.6vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.tile:hover { background: var(--surface-2); border-color: var(--line-hi); }
.tile-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-hi);
  border-radius: 11px;
}
.tile-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tile-t { font-size: 1.1rem; font-weight: 650; }
.tile-s { font-size: 0.92rem; color: var(--ink-muted); }

/* What the tile actually is. Outlined rather than filled, so it labels the
   heading without competing with it. */
.tag-bot {
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  white-space: nowrap;
}

/* A blank canvas for a page that has not been built yet. */
.panel { min-height: 220px; border: 1px dashed var(--line-hi); border-radius: var(--radius); }

/* ── Detail sheet ───────────────────────────────────────────────────────── */

.sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); opacity: 0; transition: opacity 0.2s ease; }
.sheet.is-in .sheet-back { opacity: 1; }

.sheet-card {
  position: relative;
  width: min(100%, 480px);
  max-height: min(84vh, 680px);
  overflow-y: auto;
  padding: clamp(22px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sheet.is-in .sheet-card { opacity: 1; transform: none; }

.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.sheet-t { margin-top: 6px; font-size: 1.2rem; font-weight: 700; }
.sheet-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.sheet-x:hover { color: var(--ink); border-color: var(--line-hi); }

.sheet-body { margin-top: 20px; }
.sheet-who { font-size: 14px; font-weight: 650; margin-bottom: 16px; }
.sheet-note { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--ink-faint); }
.sheet-note strong { color: var(--ink-muted); font-weight: 650; }
.sheet-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.grp + .grp { margin-top: 18px; }
.grp-t {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

/* Every account: kind, id, balance — the figures line up down the right. */
.accts { border-top: 1px solid var(--line); }
.acct {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.acct:last-child { border-bottom: 0; }
.acct-kind {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  background: var(--surface-2);
  border-radius: 6px;
}
.acct-id { color: var(--ink-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acct-bal { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct--none { display: block; color: var(--ink-faint); }

/* The one link that stays on the page. */
.notice-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.notice-go:hover { color: var(--blue-hi); border-color: var(--blue); background: var(--surface); }

/* ── Flash messages ─────────────────────────────────────────────────────── */

.flash {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.flash.is-in { opacity: 1; transform: none; }
.flash[hidden] { display: none; }
.flash--ok { color: var(--ok); border-color: var(--ok); background: var(--surface); }

/* On the landing page the flash is a failure, and floats over the page. */
.flash--error {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 8px);
  color: var(--pink);
  border-color: var(--pink);
  background: var(--surface);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.flash--error.is-in { transform: translate(-50%, 0); }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  /* Explicit, because a <button> defaults to the OS button face — without
     this, .btn-line renders as a white pill instead of an outline. */
  background: transparent;
  color: var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-lg { padding: 14px 28px; font-size: 15.5px; }

/* Two bright solid fills, equal weight — pink for "free", blue to start. */
.btn-solid { background: var(--pink); color: var(--on-accent); }
.btn-solid:hover { background: var(--pink-hi); }

.btn-blue { background: var(--blue); color: var(--on-accent); }
.btn-blue:hover { background: var(--blue-hi); }

.btn-line { border-color: var(--line-hi); color: var(--ink); }
.btn-line:hover { background: var(--surface); border-color: #45454f; }


/* ── Nav ────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--base);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: block; width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 28px; margin-inline: auto; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--pink); }

.nav-cta { display: flex; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  margin-left: auto;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--gutter) 20px;
  background: var(--base);
  border-top: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 12px 2px; font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.nav-mobile a:hover { color: var(--ink); }
.nav-mobile .btn { margin-top: 10px; color: var(--on-accent); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(104px, 13vh, 148px); border-bottom: 1px solid var(--line); }

.hero-inner {
  display: grid;
  /* Copy takes the room it needs; the panel is a fixed-ish companion.
     Below 1040px they stack (see the breakpoint). */
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 7vh, 84px);
}

.hero-copy { display: grid; gap: 22px; justify-items: start; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex: none; }

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero-sub {
  max-width: 52ch;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--ink-muted);
}

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

/* The spec card beside the headline — flat surface, plain rows. */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(16px, 1.6vw, 22px);
  font-size: 14px;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
.panel-row:last-child { border-bottom: 0; }
.panel-row .val { color: var(--ink); font-weight: 600; }
.panel-row .val.ok { color: var(--ok); }

.panel-head {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.live {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--raise);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
}
.panel-foot { background: var(--raise); }

/* Full-width mark strip across the bottom of the hero — every platform and
   prop firm in one quiet row, so the fold answers "does it work with mine?" */
.marks { padding-block: clamp(26px, 3.4vw, 40px); border-top: 1px solid var(--line); }

.marks-label {
  margin-bottom: clamp(18px, 2.2vw, 26px);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.marks-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Even optical spacing whatever the row count, and it wraps rather than
     scrolling sideways, so nothing is ever hidden off-screen. */
  gap: clamp(24px, 3.6vw, 56px) clamp(28px, 4vw, 64px);
}
.marks-row li { display: flex; align-items: center; flex: 0 0 auto; }
.marks-row img {
  /* A definite height, not max-height: several of these SVGs carry a viewBox
     with no width/height, so they have no intrinsic size and would collapse
     to 0x0 in a flex row. Fixing the height lets the aspect ratio set width. */
  height: 26px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  /* Muted by default so the row reads as one texture, not twelve brands
     competing with the headline; each lifts to full on hover. */
  opacity: 0.62;
  transition: opacity 0.18s ease;
}
.marks-row li:hover img { opacity: 1; }

/* ── Sections ───────────────────────────────────────────────────────── */

.section { padding: clamp(64px, 9vh, 110px) 0; border-bottom: 1px solid var(--line); }
/* Translucent rather than the solid --raise, so the dotted ground still
   reads through the alternating bands instead of being painted over. */
.section--alt { background: var(--alt-tint); }

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4.5vw, 52px); }

.eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink);
}

.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; max-width: 20ch; }
.section-sub { margin-top: 16px; font-size: clamp(0.97rem, 1.3vw, 1.05rem); color: var(--ink-muted); }

/* ── Platform logos ─────────────────────────────────────────────────── */

.logo-grid {
  display: grid;
  /* 8 across on a wide screen, down to 2 on a phone — no media query. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}

.logo-card {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 128px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.logo-card:hover { background: var(--surface-2); border-color: var(--line-hi); }
.logo-card img { max-height: 28px; max-width: 80%; width: auto; object-fit: contain; }
.logo-card span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

/* ── Feature cards ──────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.card {
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}
.card:hover { border-color: var(--line-hi); }
.card h3 { margin: 18px 0 9px; font-size: 1.1rem; font-weight: 650; }
.card p { font-size: 0.94rem; color: var(--ink-muted); }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-hi);
  border-radius: 11px;
  background: var(--surface-2);
}
.icon-pink { color: var(--pink); }
.icon-blue { color: var(--blue); }

/* ── Steps ──────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}

.step { padding-top: 22px; border-top: 2px solid var(--pink); }
.step-num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.step h3 { margin-bottom: 9px; font-size: 1.1rem; font-weight: 650; }
.step p { font-size: 0.94rem; color: var(--ink-muted); }

/* ── Prop firms ─────────────────────────────────────────────────────── */

.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.prop-card {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.prop-card:hover { background: var(--surface-2); border-color: var(--line-hi); }
.prop-card img { max-height: 28px; max-width: 78%; width: auto; object-fit: contain; }

/* ── Closing CTA ────────────────────────────────────────────────────── */

.cta { padding: clamp(56px, 8vh, 96px) 0; border-bottom: 1px solid var(--line); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; max-width: 18ch; }
.cta p { margin-top: 12px; max-width: 52ch; font-size: 1rem; color: var(--ink-muted); }

/* ── Footer ─────────────────────────────────────────────────────────── */

.footer { padding: clamp(40px, 5vw, 60px) 0 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 42ch; }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; color: var(--ink-faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: 0.9rem; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 30px; padding-top: 22px; }
.footer-legal p { font-size: 0.76rem; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 22px; }

/* ── Reveal on scroll ───────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Width breakpoints ──────────────────────────────────────────────── */

@media (max-width: 1040px) {
  /* The spec panel stops earning its column and moves under the copy. */
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-title { max-width: 20ch; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  /* Tighter mark spacing so the strip stays a few rows, not a long ladder. */
  .marks-row { gap: 22px 30px; }
  .marks-row img { height: 22px; max-width: 104px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}

/* ── Accessibility ──────────────────────────────────────────────────── */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Automatic AI ───────────────────────────────────────────────────────── */

/* Settings is a control column at a readable width; Session takes whatever is
   left. On a wide screen that fills the page instead of leaving the right half
   empty, and the two cards stay the same height so the layout does not step. */
.run {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.panel-solid {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.grp-t--sub { margin-top: 24px; }

.fld { display: block; margin-top: 14px; }

/* The A in "Account" — a handle, not a button. It looks like the rest of the
   label until it has been used, so nothing advertises the demo accounts.
   NOT named .reveal: that class already exists for the landing page's
   scroll-in animation and starts at opacity 0, which would hide this. */
.acct-reveal { cursor: pointer; user-select: none; }
.acct-reveal--on { color: var(--blue); }
.fld-k {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
}
.fld-i {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--base);
  border: 1px solid var(--line-hi);
  border-radius: 10px;
}
.fld-i:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.fld-i:disabled { opacity: 0.55; cursor: not-allowed; }
.fld-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; }

/* Pushed to the bottom of the card, so Settings and Session line up however
   tall the trade list grows. */
.run-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.run-actions .btn { flex: 1 1 130px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Which account is about to be traded. Real money says so, in pink. */
.risk { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); }
.risk--real { color: var(--pink); }

.status { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); min-height: 1.2em; }
.status--error { color: var(--pink); }
.status--success { color: var(--ok); }
.status--warning { color: #e3b341; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 16px 14px;
  margin-top: 16px;
}
.stats-grid > div { min-width: 0; }
.stats-grid dt {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
}
.stats-grid dd {
  margin: 5px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stats-grid .is-up { color: var(--ok); }
.stats-grid .is-down { color: var(--pink); }

/* The trade list fills the rest of the card and scrolls inside itself, so the
   page never grows a second scrollbar as a session runs on. */
.hist {
  flex: 1 1 auto;
  min-height: 150px;
  /* Bounded, or `flex: 1` simply grows the card to the length of the session:
     a long run would push the page metres tall instead of scrolling inside. */
  max-height: clamp(200px, 42vh, 440px);
  margin-top: 8px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  /* A thin, self-coloured bar — the OS default is a light slab on a dark card. */
  scrollbar-width: thin;
  scrollbar-color: var(--line-hi) transparent;
  overscroll-behavior: contain;
}
.hist::-webkit-scrollbar { width: 8px; }
.hist::-webkit-scrollbar-track { background: transparent; }
.hist::-webkit-scrollbar-thumb {
  background: var(--line-hi);
  border-radius: 999px;
  /* Inset from the edge so the bar reads as a thin pill, not a filled gutter. */
  border: 2px solid var(--surface);
}
.hist::-webkit-scrollbar-thumb:hover { background: #45454f; }

.trade {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.trade:last-child { border-bottom: 0; }
.trade-r {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 6px;
}
.trade--win .trade-r { color: var(--ok); background: rgba(95, 211, 154, 0.12); }
.trade--loss .trade-r { color: var(--pink); background: rgba(255, 61, 135, 0.12); }
.trade-m { color: var(--ink-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trade-p { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trade--win .trade-p { color: var(--ok); }
.trade--loss .trade-p { color: var(--pink); }

@media (max-width: 860px) {
  /* Below this the control column has nothing to sit beside. */
  .run { grid-template-columns: minmax(0, 1fr); }
  .run-actions { margin-top: 20px; padding-top: 0; }
}

/* ── Home: content + markets rail ───────────────────────────────────────── */

/* On a wide screen the rail fills the space the tiles were leaving empty on
   the right. Below 1180px it drops underneath them, full width. */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}
.dash-col { min-width: 0; }

.markets {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.mk-chev { color: var(--ink-faint); transition: transform 0.2s ease; }
.markets.is-open .mk-chev { transform: rotate(180deg); }

.mk-list { display: none; padding: 0 6px 6px; }
.markets.is-open .mk-list { display: block; }

.mk {
  display: grid;
  /* Name takes the slack; the sparkline and the figure keep fixed widths so
     the percentages line up as a column down the right. */
  grid-template-columns: minmax(0, 1fr) 96px 64px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}
.mk:first-child { border-top: 0; }

.mk-name {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-spark { display: block; width: 96px; height: 34px; }

.mk-pct {
  padding: 4px 0;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  border-radius: 7px;
  white-space: nowrap;
}
.mk-pct--up { color: var(--ok); background: rgba(95, 211, 154, 0.12); }
.mk-pct--down { color: var(--pink); background: rgba(255, 61, 135, 0.12); }

.mk--none {
  display: block;
  padding: 14px 12px;
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 0;
}

@media (max-width: 1180px) {
  /* No room beside the tiles — the rail goes under them, full width. */
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .markets { max-width: 520px; }
}

/* The light/dark button. Icon plus word, so it is not a mystery glyph. */
.theme-b { display: inline-flex; align-items: center; gap: 7px; }
