/* ===================================================================
   TraderFolks — partner join guides (/partners/<slug>/join/)
   Page components only; base tokens, header, footer, buttons and FAQ
   come from /assets/css/style.css.
   =================================================================== */

/* ─── Case selector cards ──────────────────────────────── */

.case-tabs { position: relative; }

/* The two radio inputs live as direct children of .case-tabs (siblings of .case-select
   and .case-panel--N) so the `~` combinator below can drive both the active card style
   and the panel visibility. Visually hidden but still focusable/keyboard-operable. */
.case-tabs > input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.case-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 820px;
  margin: 36px auto 0;
}
@media (max-width: 720px) {
  .case-select { grid-template-columns: 1fr; }
}

.case-card {
  display: block;
  text-align: left;
  cursor: pointer;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.case-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }

.case-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.case-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.case-card__desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.case-card__pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.case-card__pick::after { content: '\2192'; transition: transform 0.15s; }
.case-card:hover .case-card__pick::after { transform: translateX(3px); }

/* Active-state highlighting driven by the sibling radio inputs, which are DOM siblings
   of the .container wrapping .case-select (not of .case-select itself) — see index.html. */
#case-1:checked ~ .container label[for="case-1"],
#case-2:checked ~ .container label[for="case-2"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow);
}
#case-1:checked ~ .container label[for="case-1"] .case-card__pick,
#case-2:checked ~ .container label[for="case-2"] .case-card__pick {
  color: var(--orange-dark);
}
#case-1:focus-visible ~ .container label[for="case-1"],
#case-2:focus-visible ~ .container label[for="case-2"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ─── Case panels ──────────────────────────────────────── */

.case-panel { display: none; padding: 56px 0 8px; }
#case-1:checked ~ .case-panel--1 { display: block; }
#case-2:checked ~ .case-panel--2 { display: block; }

.panel-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.panel-head__kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.panel-head h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.panel-head p { color: var(--muted); margin: 0; }

.panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
}

.panel-media {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.device-frame {
  border: 10px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}
.device-frame img { width: 100%; }
.media-caption { font-size: 0.8rem; color: var(--muted-2); text-align: center; }

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { margin: 2px 0 4px; font-size: 1rem; font-weight: 700; }
.step-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.step-body a { font-weight: 600; }

.step-cta { margin-top: 28px; text-align: center; }

/* ─── Callout (IB transfer details) ────────────────────── */

.callout {
  background: var(--blue-soft);
  border: 1px solid #cfe6fb;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 32px;
}
.callout__title { font-weight: 800; font-size: 0.95rem; margin: 0 0 14px; }
.callout__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 135, 246, 0.15);
}
.callout__row:first-of-type { border-top: none; }
.callout__label { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.callout__value { display: flex; align-items: center; gap: 10px; }

.chip {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid #cfe6fb;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.copy-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  min-width: 96px;
}
.copy-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.copy-btn--done { border-color: #17a76a; color: #17a76a; }

/* ─── Transfer screenshots (side by side) ──────────────── */

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0 36px;
}
@media (max-width: 640px) {
  .shot-pair { grid-template-columns: 1fr; }
}
.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.note a { font-weight: 600; }

/* ─── FAQ ──────────────────────────────────────────────── */

.faq {
  max-width: 760px;
  margin: 72px auto 64px;
  padding: 0 0 8px;
}
.faq h2 { text-align: center; font-size: 1.5rem; font-weight: 800; margin: 0 0 24px; letter-spacing: -0.01em; }
