/* Trader's Landing v4 — shared styles */

:root {
  --tl-blue: #0062ff;
  --tl-blue-dark: #0049bd;
  --yellow: #ffde59;
  --bg: #f9fafb;
  --text: #333;
  --muted: #6b7280;
  --navy: #06122e;
  --navy-2: #0b1f4d;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(2, 12, 40, 0.35);
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tl-blue); }

/* ---------- Landing (login) — minimal ---------- */

.login-body { background: var(--navy); }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 24px 60px;
  color: #e9eef7;
  background: var(--navy);
}

.lp-inner {
  width: 100%;
  max-width: 480px;
  text-align: center;   /* centered layout */
}

.lp-head { margin-bottom: 40px; }

.lp-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);   /* white wordmark on dark */
}

/* Login box */
.login-box {
  border: 1px solid #2c3a5e;
  border-radius: 12px;
  background: #0e1e42;
  padding: 22px 22px 26px;
  margin: 0 auto 30px;
}

.login-box__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea3cc;
  margin-bottom: 16px;
}

/* Outseta embedded widget — light card for form legibility */
.outseta-login {
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 18px 16px;
  min-height: 210px;
  text-align: left;
}

/* Acknowledgment */
.lp-ack {
  font-size: 0.9rem;
  color: #aab6d4;
  margin: 0 auto 36px;
}
.lp-ack a { color: #dbe4f7; text-decoration: underline; }
.lp-ack a:hover { color: #fff; }

/* Contact support form */
.support { margin: 0 auto; }
.support__title {
  font-size: 1rem;
  font-weight: 600;
  color: #cdd6ec;
  margin: 0 0 16px;
}
.support__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}
.support__form input,
.support__form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: #12203f;
  background: #fff;
  border: 1px solid #3a4c74;
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
  resize: vertical;
}
.support__form input::placeholder,
.support__form textarea::placeholder { color: #8a93a8; }
.support__form input:focus,
.support__form textarea:focus {
  outline: none;
  border-color: var(--tl-blue);
  box-shadow: 0 0 0 3px rgba(0,98,255,.25);
}
.hp { position: absolute; left: -9999px; }   /* honeypot */

.support__btn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1a1b1f;
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color .15s ease, transform .06s ease;
}
.support__btn:hover { background: #ffe77e; }
.support__btn:active { transform: translateY(1px); }
.support__btn--block { width: 100%; margin-top: 4px; }

/* Support modal / pop-up */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s ease, visibility .18s ease;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 26, .72);
}
.modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--text);
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  padding: 30px 26px;
  text-align: left;
  transform: translateY(8px);
  transition: transform .18s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal.is-open .modal__panel { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: 0;
  font-size: 1.7rem; line-height: 1;
  color: #98a2b3; cursor: pointer;
  padding: 4px 9px;
}
.modal__close:hover { color: #333; }
.modal__title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.modal__sub { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
/* inside the light modal panel, soften input borders */
.modal__panel .support__form input,
.modal__panel .support__form textarea { border-color: #d3d9e6; }

[hidden] { display: none !important; }

/* Cookie consent banner */
.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1100;
  max-width: 720px;
  margin: 0 auto;
  background: #0e1e42;
  border: 1px solid #2c3a5e;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #cdd6ec;
}
.consent__text { font-size: .85rem; margin: 0; flex: 1 1 280px; line-height: 1.5; }
.consent__text a { color: #dbe4f7; text-decoration: underline; }
.consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent__btn {
  font-family: var(--font); font-size: .85rem; font-weight: 700;
  border-radius: 8px; padding: 9px 18px; cursor: pointer; border: 1px solid transparent;
}
.consent__btn--accept { background: var(--yellow); color: #1a1b1f; }
.consent__btn--accept:hover { background: #ffe77e; }
.consent__btn--ghost { background: transparent; color: #cdd6ec; border-color: #3a4c74; }
.consent__btn--ghost:hover { border-color: #6b82b5; color: #fff; }
@media (max-width: 520px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: flex-end; }
}

.form-error {
  font-size: 0.85rem;
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0;
}

.support-success { text-align: center; padding: 8px 0 4px; }
.success-check {
  width: 54px; height: 54px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: #e6f7ec;
  color: #1a9d4a;
  font-size: 1.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.support-success .modal__sub { text-align: center; }

.lp-rule {
  border: 0;
  border-top: 1px solid #223055;
  margin: 44px auto 24px;
}

.lp-risk {
  font-size: 0.85rem;
  color: #e9eef7;
  font-weight: 600;
  margin: 0 auto 18px;
}
.lp-copy {
  font-size: 0.85rem;
  color: #8695b8;
  margin: 0 0 10px;
}
.lp-foot {
  font-size: 0.85rem;
  color: #6b7aa0;
}
.lp-foot a { color: #aab6d4; text-decoration: none; }
.lp-foot a:hover { color: #fff; text-decoration: underline; }

/* ---------- Disclosures page ---------- */

.doc-header {
  background: var(--navy);
  padding: 18px 20px;
  text-align: center;
}
.doc-header a { display: inline-block; }
.doc-header img { height: 34px; filter: brightness(0) invert(1); vertical-align: middle; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 22px 80px;
}
.doc h1 {
  font-size: 2rem;
  color: var(--navy);
  margin: 0 0 6px;
}
.doc .lede { color: var(--muted); margin: 0 0 8px; }
.doc-updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 30px; }

.doc nav.toc {
  background: #eef2fb;
  border: 1px solid #dde5f5;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 40px;
}
.doc nav.toc a { display: inline-block; margin-right: 18px; font-weight: 600; text-decoration: none; }
.doc nav.toc a:hover { text-decoration: underline; }

.doc section { margin-bottom: 44px; scroll-margin-top: 20px; }
.doc h2 {
  font-size: 1.4rem;
  color: var(--navy);
  border-bottom: 2px solid var(--tl-blue);
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.doc h3 { font-size: 1.05rem; color: #1a2b52; margin: 22px 0 6px; }
.doc p { margin: 0 0 14px; }

.doc-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.doc-footer a { text-decoration: none; margin: 0 8px; }

@media (max-width: 480px) {
  .hero { padding: 30px 16px; }
  .card { padding: 24px 20px; }
}
