/* How to Join Copy Trading — section styles (scoped with .jc-) */

.jc {
  --jc-gold: #d4af37;
  --jc-gold-bright: #f5c542;
  --jc-gold-soft: #ffe7a0;
  --jc-muted: #a1a1a1;
  --jc-border: rgba(212, 175, 55, 0.22);
  --jc-border-strong: rgba(212, 175, 55, 0.5);
  --jc-gap: 20px;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem;
  scroll-margin-top: 5rem;
  overflow-x: clip;
}

@media (min-width: 640px) {
  .jc { padding: 7rem 1.5rem; }
}
@media (min-width: 1024px) {
  .jc { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1280px) {
  .jc { max-width: 1480px; }
}

/* header mirrors the bundle's section header */
.jc-head {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.jc-eyebrow {
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--jc-gold);
  margin: 0 0 1rem;
}

.jc-title {
  font-family: var(--font-display, "Satoshi", "Inter", sans-serif);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .jc-title { font-size: 3.25rem; line-height: 1.04; letter-spacing: -0.034em; }
}

.jc-lede {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.008em;
  color: var(--jc-muted);
}

/* ---------- steps grid ---------- */
.jc-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  position: relative;
}

.jc-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border-radius: 1.5rem;
  padding: 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.jc-step:hover {
  border-color: var(--jc-border-strong);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 231, 160, 0.06),
    0 0 48px -16px rgba(212, 175, 55, 0.35);
}

/* mobile content order: number → image → title/desc → cta */
.jc-step-head { order: 0; }
.jc-step-visual { order: 1; }
.jc-step-body { order: 2; }
.jc-step-cta { order: 3; }

/* vertical connector between stacked steps */
.jc-step + .jc-step::before {
  content: "";
  position: absolute;
  left: calc(1.25rem + 21px);
  top: -2.25rem;
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15), var(--jc-gold));
}
.jc-step + .jc-step::after {
  content: "";
  position: absolute;
  left: calc(1.25rem + 21px - 3px);
  top: -6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--jc-gold-bright);
  box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.55);
}

.jc-step-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.jc-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, "Satoshi", "Inter", sans-serif);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #0a0700;
  background: linear-gradient(160deg, var(--jc-gold-bright), var(--jc-gold) 60%, #9d7515);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 6px 20px -8px rgba(212, 175, 55, 0.7);
}

.jc-step-label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--jc-muted);
}

.jc-step-title {
  font-family: var(--font-display, "Satoshi", "Inter", sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

.jc-step-desc {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--jc-muted);
}

.jc-step-desc + .jc-step-desc { margin-top: 0.5rem; }

.jc-step-desc strong {
  color: var(--jc-gold-soft);
  font-weight: 600;
}

.jc-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.jc-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.925rem;
  line-height: 1.5;
  color: #e7e7e7;
  font-weight: 600;
}

.jc-list li span:first-child {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  color: var(--jc-gold);
}

.jc-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.jc-chip {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--jc-border-strong);
  background: rgba(212, 175, 55, 0.08);
  color: var(--jc-gold-soft);
  white-space: nowrap;
}

.jc-flow-arrow {
  color: var(--jc-gold);
  font-size: 0.95rem;
  line-height: 1;
}

/* ---------- screenshot frame ---------- */
.jc-frame {
  border-radius: 1rem;
  border: 1px solid var(--jc-border);
  background: linear-gradient(180deg, #0f0d08, #070604);
  padding: 6px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9), inset 0 1px rgba(255, 231, 160, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.jc-step:hover .jc-frame {
  border-color: var(--jc-border-strong);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9), 0 0 30px -10px rgba(212, 175, 55, 0.35);
}

.jc-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem 0.55rem;
}

.jc-chrome i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.35);
}
.jc-chrome i:first-child { background: rgba(245, 197, 66, 0.7); }

.jc-chrome span {
  margin-left: auto;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(161, 161, 161, 0.8);
}

.jc-shot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0.65rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
    #0c0b08;
  cursor: zoom-in;
  outline: none;
}

.jc-shot:focus-visible {
  box-shadow: 0 0 0 2px var(--jc-gold-bright);
}

.jc-shot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}

.jc-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 3, 0.8);
  border: 1px solid var(--jc-border-strong);
  color: var(--jc-gold-soft);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.jc-zoom svg { width: 14px; height: 14px; }

.jc-shot:hover .jc-zoom,
.jc-shot:focus-visible .jc-zoom { opacity: 1; transform: none; }

/* Step 4 fallback panel: shown only if the step-4 screenshot is missing */
.jc-panel { display: none; }

.jc-shot--fallback { cursor: default; }
.jc-shot--fallback img,
.jc-shot--fallback .jc-zoom { display: none; }

.jc-shot--fallback .jc-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  padding: 1rem;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), rgba(212, 175, 55, 0.015));
  border: 1px solid var(--jc-border);
}

.jc-panel-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jc-muted);
  font-weight: 600;
}

.jc-panel-amount {
  font-family: var(--font-display, "Satoshi", "Inter", sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.jc-panel-amount small {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--jc-gold-soft);
  margin-left: 0.4rem;
  font-weight: 600;
}

.jc-panel-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.jc-panel-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--jc-gold), var(--jc-gold-bright));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.jc-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--jc-muted);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.jc-panel-row b { color: var(--jc-gold-soft); font-weight: 600; }

.jc-panel-tg {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--jc-border-strong);
  background: rgba(3, 3, 3, 0.5);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--jc-gold-soft);
}
.jc-panel-tg svg { width: 16px; height: 16px; flex-shrink: 0; fill: var(--jc-gold-bright); }

/* ---------- buttons (mirror bundle button) ---------- */
.jc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--jc-gold);
  color: #000;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.jc-btn:hover {
  background: var(--jc-gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(245, 197, 66, 0.7);
}

.jc-btn:focus-visible {
  outline: 2px solid var(--jc-gold-bright);
  outline-offset: 2px;
}

.jc-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- ready banner ---------- */
.jc-ready {
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jc-ready::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%);
  pointer-events: none;
}

.jc-ready-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--jc-border-strong);
  color: var(--jc-gold-bright);
  position: relative;
}
.jc-ready-icon svg { width: 20px; height: 20px; }

.jc-ready-title {
  position: relative;
  font-family: var(--font-display, "Satoshi", "Inter", sans-serif);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

@media (min-width: 640px) {
  .jc-ready-title { font-size: 2rem; }
}

.jc-disclaimer {
  position: relative;
  margin: 0.9rem auto 0;
  max-width: 34rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--jc-muted);
}

/* ---------- lightbox ---------- */
.jc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 3, 3, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.jc-lightbox.is-open { opacity: 1; visibility: visible; }

.jc-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 0.9rem;
  border: 1px solid var(--jc-border-strong, rgba(212, 175, 55, 0.5));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(212, 175, 55, 0.35);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.jc-lightbox.is-open img { transform: none; }

.jc-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(3, 3, 3, 0.7);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.jc-lightbox-close:hover { border-color: #f5c542; color: #ffe7a0; }

.jc-lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a1a1a1;
  white-space: nowrap;
}

/* ---------- tablet: 2 × 2 ---------- */
@media (min-width: 768px) {
  .jc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--jc-gap);
  }

  .jc-step { padding: 1.5rem; }

  /* desktop content order: number → title/desc → image → cta */
  .jc-step-head { order: 0; }
  .jc-step-body { order: 1; }
  .jc-step-visual { order: 2; margin-top: auto; }
  .jc-step-cta { order: 3; }

  /* horizontal connector into each card from the previous one */
  .jc-step + .jc-step::before {
    left: calc(-1 * var(--jc-gap));
    top: calc(1.5rem + 21px);
    width: var(--jc-gap);
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), var(--jc-gold));
  }
  .jc-step + .jc-step::after {
    left: -4px;
    top: calc(1.5rem + 21px - 3px);
  }

  /* row wraps after every second card at this width */
  .jc-step:nth-child(odd)::before,
  .jc-step:nth-child(odd)::after { display: none; }

  .jc-ready { padding: 2.75rem 2rem; }
}

/* ---------- desktop: 4-in-a-row journey ---------- */
@media (min-width: 1280px) {
  .jc-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .jc-step:nth-child(odd)::before,
  .jc-step:nth-child(odd)::after { display: block; }
  .jc-step:first-child::before,
  .jc-step:first-child::after { display: none; }

  .jc-step { padding: 1.5rem 1.25rem; }
}

/* align header / body / visual / cta rows across cards where supported */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .jc-step {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 1.1rem;
    }
    .jc-step-visual { margin-top: 0; align-self: end; }
    .jc-step-cta { align-self: end; }
  }
}

/* phones: let each screenshot fill the card width at its natural ratio */
@media (max-width: 767px) {
  .jc-shot:not(.jc-shot--fallback) { aspect-ratio: auto; }
  .jc-shot:not(.jc-shot--fallback) img { width: 100%; max-height: none; }
  .jc-shot--fallback { aspect-ratio: 3 / 4; }
}

/* ---------- standalone /join page chrome ---------- */
.jc-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(212, 175, 55, 0.07), transparent 50%),
    #030303;
}
.jc-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1480px; margin: 0 auto; padding: 1rem 1rem 0.5rem;
}
@media (min-width: 640px) { .jc-topbar { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .jc-topbar { padding-left: 2rem; padding-right: 2rem; } }
.jc-brand {
  font-family: var(--font-display, "Satoshi", "Inter", sans-serif);
  font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em;
  text-transform: uppercase; color: #fff; text-decoration: none;
}
.jc-back {
  font-size: 0.875rem; font-weight: 600; color: #ffe7a0; text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 999px; padding: 0.5rem 1.1rem;
  transition: background 0.2s ease;
}
.jc-back:hover { background: rgba(212, 175, 55, 0.1); }
.jc-page { padding-top: 3.5rem; }
.jc-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.15); background: rgba(0, 0, 0, 0.7);
  padding: 2.5rem 1rem; text-align: center; font-size: 0.75rem; line-height: 1.7; color: #a1a1a1;
}
.jc-footer p { max-width: 56rem; margin: 0 auto 0.5rem; }
.jc-footer a { color: #ffe7a0; text-decoration: none; }
