/* CK home-match restyle (2026-11-13, preview only)
   Maps the indicator store to cktraderpro.com homepage tokens:
   black ink, warm paper, brand gold, Bricolage / Manrope / JetBrains Mono,
   pill buttons, header/footer feel.
   Visual only: no copy, URL, or checkout changes.
*/

:root {
  --bg: #000;
  --bg2: #0A0A0B;
  --panel: #0A0A0B;
  --panel2: #111113;
  --line: #222225;
  --text: #ECE8E0;
  --muted: #A8AAB0;
  --gold: #C4964E;
  --gold2: #C4964E;
  --teal: #C4964E;
  --red: #dc2626;
  --green: #16a34a;
  --ink: #000;
  --paper: #ECE8E0;
  --dim: #8D9097;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); }
a:hover { color: var(--paper); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  background: var(--paper);
  color: #000;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
}

.wrap {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
}

h1, h2, h3, h4,
.brand b,
.card.pc h3,
.prod h1,
.acct h1,
.doc h1,
.doc h2 {
  font-family: var(--display);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--paper);
}

h1 { font-size: 46px; line-height: 1.05; }
h2 { font-size: 30px; line-height: 1.15; }

/* ----- Buttons: filled paper pill + outlined pill ----- */
.btn,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--paper);
  color: #000 !important;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--paper);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background .15s, color .15s, border-color .15s;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  background: transparent;
  color: var(--paper) !important;
  border-color: var(--paper);
}

.btn.ghost,
a.btn.ghost {
  background: transparent;
  color: var(--paper) !important;
  border: 1px solid rgba(236, 232, 224, .55);
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn.ghost:hover,
a.btn.ghost:hover {
  background: var(--paper);
  color: #000 !important;
  border-color: var(--paper);
}

.btn.sm,
a.btn.sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.big,
a.btn.big,
a.btn.big:link,
a.btn.big:visited {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 50px;
  padding: 14px 26px;
  font-size: 16px;
  text-align: center;
}

button.btn:disabled,
button.btn[disabled],
.plan button[disabled] {
  background: #1a1a1c !important;
  color: var(--dim) !important;
  border: 1px solid var(--line) !important;
  cursor: not-allowed;
  opacity: 1;
  border-radius: 999px;
}

button.btn:disabled:hover,
button.btn[disabled]:hover,
.plan button[disabled]:hover {
  background: #1a1a1c !important;
  color: var(--dim) !important;
}

/* ----- Header ----- */
header.site {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--paper);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
  flex-wrap: nowrap;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper) !important;
  flex: 0 0 auto;
  min-width: 0;
}

.brand:hover { color: var(--paper) !important; }

.logo {
  display: none;
}

.logo-img {
  width: 36px;
  height: auto;
  display: block;
  flex: none;
}

.brand b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

nav.main {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
  overflow: visible;
}

nav.main > a,
nav.main .add4-menu > summary {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  background: none;
  border: 0;
  padding: 0;
  list-style: none;
}

nav.main > a:hover,
nav.main > a.on,
nav.main .add4-menu > summary:hover,
nav.main .add4-menu[open] > summary {
  color: var(--paper);
}

nav.main .add4-menu > summary::-webkit-details-marker { display: none; }
nav.main .add4-menu > summary::marker { content: ""; }

/* Outlined "Log in" style on My account (header + mobile panel only) */
nav.main > a[href="/account"],
.menu .panel > a[href="/account"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid rgba(236, 232, 224, .55);
  background: transparent;
  color: var(--paper) !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

nav.main > a[href="/account"]:hover,
.menu .panel > a[href="/account"]:hover {
  background: var(--paper);
  color: #000 !important;
  border-color: var(--paper);
}

.add4-menu { position: relative; }
.add4-menu > div {
  position: absolute;
  z-index: 40;
  min-width: 250px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 10px;
  right: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.add4-menu > div a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: .5rem;
  white-space: nowrap;
}
.add4-menu > div a:hover {
  color: var(--paper);
  background: rgba(255,255,255,.05);
}

.menu { display: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::marker { content: ""; }

.ck-burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}
.ck-burger i {
  width: 24px;
  height: 1.5px;
  background: var(--paper);
  display: block;
}

/* Keep labels on one line at 1024–1440 */
@media (min-width: 901px) and (max-width: 1280px) {
  .wrap { padding: 0 28px; }
  header.site .wrap { gap: 12px; }
  nav.main { gap: 14px; }
  nav.main > a,
  nav.main .add4-menu > summary {
    font-size: 13px;
  }
  nav.main > a[href="/account"] {
    height: 36px;
    padding: 0 14px;
    margin-left: 4px;
    font-size: 13px;
  }
  .brand small { display: none; }
  .brand { gap: 10px; }
  .logo-img { width: 32px; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .wrap { padding: 0 20px; }
  nav.main { gap: 10px; }
  nav.main > a,
  nav.main .add4-menu > summary { font-size: 13px; }
}

/* ----- Mobile menu (existing details.menu, restyled) ----- */
@media (max-width: 900px) {
  nav.main { display: none; }
  .menu { display: block; }
  header.site .wrap {
    height: 70px;
    padding: 0;
  }
  .wrap { padding: 0 20px; }
  .brand small { display: none; }
  .menu summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--paper);
    font-size: 0;
  }
  .menu[open] summary { border: 0; color: var(--paper); }
  .menu[open] .ck-burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu[open] .ck-burger i:nth-child(2) { opacity: 0; }
  .menu[open] .ck-burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .ck-burger i { transition: transform .2s, opacity .2s; }
  .menu .panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    min-width: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    padding: 8px 20px 24px;
    box-shadow: none;
    z-index: 30;
  }
  .menu .panel a {
    display: block;
    padding: 14px 0;
    color: var(--paper);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 500;
  }
  .menu .panel a:hover,
  .menu .panel a.on {
    color: var(--paper);
    background: transparent;
  }
  .menu .panel > a[href="/account"] {
    margin: 18px 0 0;
    width: 100%;
    height: 46px;
    border-bottom: 1px solid rgba(236, 232, 224, .55);
  }
  .add4-mobile a { border-bottom: 1px solid var(--line); }
  h1 { font-size: 34px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
}

/* ----- Banners / notices (text unchanged) ----- */
.dontrade {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.dontrade.foot {
  border: 1px solid var(--gold);
  border-radius: .75rem;
  background: var(--bg2);
  color: var(--paper);
}

.shot-rule {
  background: var(--bg2);
  border: 1px solid var(--gold);
  color: var(--paper);
  border-radius: .75rem;
}

.ribbon {
  background: var(--bg2);
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.add4-preview {
  background: var(--panel2);
  color: var(--paper);
}

/* ----- Layout / surfaces ----- */
section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

.card,
.blk,
.doc blockquote,
.risk,
.buybox,
.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.blk {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: .75rem !important;
  color: var(--text) !important;
}
.blk a,
.doc a { color: var(--gold) !important; }
.blk a:hover,
.doc a:hover { color: var(--paper) !important; }
.blk strong,
.doc strong { color: var(--paper) !important; }
.doc blockquote {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.billing { color: var(--gold) !important; }

.hero,
.cards .card,
.acct,
.legalgrid > * {
  background-clip: padding-box;
}

/* ----- Footer ----- */
footer.site {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 64px 0 56px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 14px;
}

footer.site h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 14px;
}

footer.site a {
  color: var(--muted);
  margin: 8px 0;
}

footer.site a:hover { color: var(--paper); }

footer.site a.brand { margin: 0 0 12px; }

.risk {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.risk b {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 500;
}

.entity {
  border-top: 1px solid var(--line);
}

.copyright-line,
.vendor,
.entity {
  color: var(--dim);
  font-size: 12.5px;
}

.copyright-line { color: var(--dim); }

/* Card captions in mono, like the main site eyebrows */
.card.pc .pcap {
  font-family: var(--mono);
  letter-spacing: .14em;
}
