/* Shared interactive components styling */

/* ============================ */
/* BADGE LADDER — shared        */
/* ============================ */
.ladder-sec { padding: 100px 64px; position: relative; }
.ladder-editorial { background: var(--paper); border-top: 1px solid var(--border); }
.ladder-playful { background: var(--pur-soft); }
.ladder-product { background: #1C1C1C; color: #fff; }

/* Playful-only: decorative loop next to header */
.ladder-playful .ladder-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 48px;
  align-items: center;
}
.ladder-playful .ladder-head-text { max-width: 640px; }
.ladder-playful .ladder-head-loop {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  opacity: 0.85;
}
.ladder-playful .ladder-head-loop > svg,
.ladder-playful .ladder-head-loop .ladder-loop-glider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 900px) {
  .ladder-playful .ladder-head { grid-template-columns: 1fr; }
  .ladder-playful .ladder-head-loop { max-width: 380px; }
}

.ladder-head { max-width: 900px; margin-bottom: 48px; }
.ladder-product .ladder-head h2, .ladder-product .ladder-head .edi-body-lg { color: #fff; }
.ladder-product .pro-eyebrow { color: rgba(255,255,255,0.6); }

.ladder-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 40px;
  border-radius: 16px; overflow: hidden;
}
.ladder-tier {
  padding: 16px 20px;
  border-radius: 12px;
}
.ladder-tier-name { font-size: 15px; font-weight: 600; }
.ladder-tier-step { font-size: 12px; opacity: 0.7; margin-top: 2px; }

.ladder-track {
  position: relative;
  margin: 40px 0;
  padding: 20px 0;
}
.ladder-track-svg {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  width: 100%; height: 80px;
  pointer-events: none;
}
.ladder-nodes {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px;
}
.ladder-node {
  padding: 12px 6px 10px;
  border-radius: 14px; border: 2px solid;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center; min-height: 90px;
}
.ladder-node:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.ladder-node.active { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.ladder-node-n { font-size: 16px; font-weight: 700; font-family: 'Host Grotesk', sans-serif; }
.ladder-node-title { font-size: 10px; font-weight: 500; line-height: 1.2; }
.ladder-node-img { width: 40px; height: 40px; object-fit: contain; display: block; }
.ladder-detail-img { width: 56px; height: 56px; object-fit: contain; display: block; }


.ladder-detail {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  align-items: center;
}
.ladder-product .ladder-detail { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.ladder-detail-left { display: flex; align-items: center; gap: 16px; }
.ladder-detail-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  font-family: 'Host Grotesk', sans-serif;
  flex-shrink: 0;
}
.ladder-detail-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.ladder-product .ladder-detail-title { color: #fff; }
.ladder-detail-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}
.ladder-detail-body { font-size: 15px; color: var(--ink-mid); line-height: 1.6; text-wrap: pretty; }
.ladder-product .ladder-detail-body { color: rgba(255,255,255,0.7); }

/* ============================ */
/* AI CARD — shared             */
/* ============================ */
.ai-card-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}
.dir-product .ai-card-wrap { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: #fff; }
.dir-playful .ai-card-wrap { background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.ai-card-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ai-card-sub { font-size: 13px; color: var(--ink-mid); margin-bottom: 24px; }
.dir-product .ai-card-sub { color: rgba(255,255,255,0.6); }
.ai-prog-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.ai-prog-row { display: flex; align-items: center; gap: 12px; }
.ai-prog-label { font-size: 13px; min-width: 150px; color: var(--ink-mid); }
.dir-product .ai-prog-label { color: rgba(255,255,255,0.7); }
.ai-prog-bg { flex: 1; height: 8px; background: #f0f0f0; border-radius: 100px; overflow: hidden; }
.dir-product .ai-prog-bg { background: rgba(255,255,255,0.08); }
.ai-prog-fill { height: 100%; border-radius: 100px; }
.ai-prog-val { font-size: 12px; font-weight: 600; min-width: 40px; text-align: right; color: var(--ink-mid); }
.dir-product .ai-prog-val { color: rgba(255,255,255,0.8); }
.ai-prog-badge {
  padding: 10px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(178,110,255,0.3);
}

/* ============================ */
/* SAMPLE PROFILE CARD — shared */
/* ============================ */
.sp-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.dir-playful .sp-card { border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.dir-product .sp-card { background: #2A2A2A; border-color: rgba(255,255,255,0.12); color: #fff; }

.sp-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.dir-product .sp-head { border-color: rgba(255,255,255,0.12); }
.sp-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 600;
  flex-shrink: 0;
}
.sp-avatar-img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--ink);
}
.sp-name { font-size: 16px; font-weight: 600; }
.sp-role { font-size: 13px; color: var(--ink-mid); }
.dir-product .sp-role { color: rgba(255,255,255,0.6); }
.sp-status {
  font-size: 11px; font-weight: 600; color: #fff;
  padding: 5px 12px; border-radius: 100px;
}
.sp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-badge {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
}
.sp-note {
  background: var(--paper);
  border-radius: 12px; padding: 14px;
  font-size: 13px; color: var(--ink-mid);
  line-height: 1.5; font-style: italic;
}
.dir-product .sp-note { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); }
.sp-note-by { font-size: 11px; color: var(--ink-soft); font-style: normal; margin-top: 6px; }
.sp-footer { display: flex; gap: 8px; }
.sp-score, .sp-link, .sp-share {
  border-radius: 12px; padding: 10px 12px;
  flex: 1; text-align: center;
  border: 1px solid var(--border);
}
.dir-product .sp-score, .dir-product .sp-link, .dir-product .sp-share {
  border-color: rgba(255,255,255,0.12);
}
.sp-score { flex: 1; }
.sp-link { flex: 2; background: var(--paper); }
.dir-product .sp-link { background: rgba(255,255,255,0.04); }
.sp-share { flex: 0.7; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-score-n { font-size: 22px; font-weight: 700; }
.sp-score-l, .sp-link-l { font-size: 10px; color: var(--ink-soft); margin-top: 2px; }
.sp-link-val { font-size: 12px; font-weight: 500; font-family: 'JetBrains Mono', monospace; }

/* Responsive collapse */
@media (max-width: 820px) {
  .ladder-nodes { grid-template-columns: repeat(5, 1fr); }
  .ladder-track-svg { display: none; }
  .ladder-tiers { grid-template-columns: repeat(3, 1fr); }
  .edi-hero-grid, .edi-problem-grid, .edi-ai-grid, .edi-profile-grid {
    grid-template-columns: 1fr !important;
  }
  .edi-hero-loop { grid-row: auto; grid-column: 1; max-width: 100%; }
  .edi-webinars-list { grid-template-columns: 1fr 1fr; }
  .edi-tests-grid { grid-template-columns: 1fr; }
  .edi-plans { grid-template-columns: 1fr; }
  .edi-nav { padding: 16px 24px; flex-wrap: wrap; }
  .edi-nav-center { display: none; }
  .edi-hero, .edi-problem, .edi-ai, .edi-profile, .edi-pricing, .edi-tests, .edi-webinars, .ladder-sec, .edi-final { padding-left: 24px; padding-right: 24px; }
  .edi-stats { grid-template-columns: 1fr 1fr; }
}
