/* ── SETUP PAGE STYLES ────────────────────────────────────────────────────── */

.setup-hero {
  background: linear-gradient(180deg, rgba(248,250,252,0.4) 0%, transparent 100%);
  border-bottom: var(--glass-border);
  padding: 56px 24px 48px;
}
.setup-hero-inner { max-width: 920px; margin: 0 auto; }
.setup-hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(10, 37, 64,0.1); border: 1px solid rgba(10, 37, 64,0.25);
  color: var(--primary-light); font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; margin-bottom: 16px;
}
.setup-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900; letter-spacing: -1px;
  margin-bottom: 14px; line-height: 1.15;
}
.setup-hero-sub {
  color: var(--text-secondary); font-size: 17px;
  line-height: 1.6; max-width: 620px; margin-bottom: 32px;
}
.setup-toc {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-md); padding: 16px 20px;
  backdrop-filter: blur(12px);
}
.setup-toc a {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-secondary); text-decoration: none;
  padding: 6px 0; font-size: 15px;
}
.setup-toc a:hover { color: var(--primary-light); }
.toc-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(10, 37, 64,0.15); border: 1px solid rgba(10, 37, 64,0.25);
  color: var(--primary-light); font-family: var(--font-display);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.setup-main {
  max-width: 920px; margin: 40px auto 80px; padding: 0 24px;
  display: flex; flex-direction: column; gap: 24px;
}

.step-card {
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  backdrop-filter: blur(12px);
  scroll-margin-top: 20px;
}
.step-head { margin-bottom: 24px; }
.step-counter {
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--primary-light);
  margin-bottom: 10px;
}
.step-card h2 {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px);
  font-weight: 900; letter-spacing: -0.4px; line-height: 1.2;
}

.step-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .step-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Image column */
.step-image { display: flex; justify-content: center; }
.step-image img {
  width: 100%; max-width: 280px;
  border-radius: 22px; border: 1px solid rgba(10, 37, 64,0.08);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.55);
  display: block;
}
.image-placeholder {
  width: 100%; max-width: 280px;
  aspect-ratio: 9 / 19;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248,250,252,0.6), rgba(255,255,255,0.85));
  border: 2px dashed rgba(10, 37, 64,0.35);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
}
.ph-frame { text-align: center; }
.ph-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary-light);
  margin-bottom: 12px;
}
.ph-desc {
  color: var(--text-secondary); font-size: 13px; line-height: 1.55; font-weight: 500;
}

/* Copy column */
.step-copy { min-width: 0; }
.step-body {
  color: var(--text-secondary); font-size: 16px; line-height: 1.75;
  margin-bottom: 20px;
}
.step-body strong { color: var(--text-main); }
.step-body code, .step-body a { color: var(--primary-light); }
.step-body a { text-decoration: underline; text-underline-offset: 3px; }

.step-why {
  background: rgba(255,255,255,0.4); border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 14px 18px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.65;
}
.step-why strong { color: var(--accent); }

/* Carrier picker */
.carrier-picker { margin: 20px 0; }
.carrier-picker label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 8px;
}
.carrier-picker select {
  width: 100%; max-width: 340px;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(10, 37, 64,0.12);
  color: var(--text-main); font-family: var(--font-sans);
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.carrier-picker select option { background: #f8fafc; }
.codes-box {
  margin-top: 14px; background: rgba(255,255,255,0.6);
  border: 1px solid rgba(10, 37, 64,0.25); border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.code-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(10, 37, 64,0.04);
}
.code-row:last-of-type { border-bottom: none; }
.code-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.3px;
}
.codes-box code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 15px; font-weight: 700; color: var(--accent);
  background: transparent; padding: 0;
}
.code-note {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25);
  border-radius: 6px; color: #fbbf24; font-size: 13px; line-height: 1.55;
}
.code-hint {
  margin-top: 14px; font-size: 13px; color: var(--text-muted);
  line-height: 1.55;
}
.code-hint code {
  font-family: ui-monospace, monospace; background: rgba(10, 37, 64,0.05);
  padding: 2px 6px; border-radius: 3px; font-size: 12px;
}

/* Done card */
.step-done { text-align: center; padding: 48px 32px; }
.step-done h2 { margin-bottom: 16px; }
.step-done p {
  color: var(--text-secondary); font-size: 16px; line-height: 1.7;
  max-width: 600px; margin: 0 auto 12px;
}
.step-done-links {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.step-done-links .btn {
  padding: 14px 28px; font-size: 15px;
}

/* Desktop device-picker cards */
.picker-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 640px; margin: 0 auto;
}
@media (max-width: 520px) { .picker-grid { grid-template-columns: 1fr; } }
.picker-card {
  display: block;
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-md); padding: 40px 28px;
  text-align: center; text-decoration: none; color: var(--text-main);
  transition: .2s;
}
.picker-card:hover {
  background: var(--bg-card-hover); border-color: rgba(10, 37, 64,0.35);
  transform: translateY(-2px);
}
.picker-emoji, .picker-icon {
  font-size: 48px; margin-bottom: 14px;
  width: 64px; height: 64px; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 37, 64,0.15), rgba(201, 169, 97,0.08));
  border: 1px solid rgba(10, 37, 64,0.22);
  color: var(--primary-light);
}
.picker-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  margin-bottom: 8px;
}
.picker-card p {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
}

/* ── MOBILE REFINEMENTS ─────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .setup-hero { padding: 40px 18px 36px; }
  .setup-hero h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.18; }
  .setup-hero-sub { font-size: 15px; margin-bottom: 24px; }
  .setup-toc { padding: 14px 16px; gap: 6px; }
  .setup-toc a { font-size: 14px; padding: 8px 0; }

  .setup-main { margin: 28px auto 60px; padding: 0 16px; gap: 18px; }

  .step-card { padding: 26px 22px; }
  .step-card h2 { font-size: clamp(20px, 5vw, 26px); }
  .step-head { margin-bottom: 20px; }
  .step-counter { font-size: 11px; margin-bottom: 8px; }

  .step-body { font-size: 15px; }
  .step-why { font-size: 13px; padding: 12px 14px; }

  .carrier-picker select { max-width: 100%; padding: 12px; font-size: 16px; /* iOS no-zoom */ }
  .codes-box { padding: 14px 16px; }
  .codes-box code { font-size: 14px; }
  .code-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }

  .image-placeholder { max-width: 240px; }

  .step-done { padding: 36px 20px; }
  .step-done-links { flex-direction: column; gap: 10px; }
  .step-done-links .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .setup-hero { padding: 32px 14px 28px; }
  .step-card { padding: 22px 18px; }
  .step-card h2 { font-size: 20px; line-height: 1.2; }
  .step-body { font-size: 14px; line-height: 1.65; }
  .setup-toc a { font-size: 13px; }
  .toc-num { width: 22px; height: 22px; font-size: 11px; }
}
