/* SideQuest landing page: social package styles. Loads after style.css. Prefixed classes only. */

/* ======================================================================
   Meet Scout (ms-)
   ====================================================================== */

.section-header .ms-role {
  max-width: 640px;
}

/* The Rive artboard is 500x700, so the stage box is 5:7 and Scout fills it. */
.scout-stage-canvas {
  width: 200px;
  height: auto;
  aspect-ratio: 5 / 7;
  margin: 0 auto;
}

.ms-canvas-wrap {
  cursor: pointer;
  border-radius: var(--radius-card);
}

.ms-canvas-wrap .scout-fallback {
  pointer-events: none;
}

.ms-stage-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.ms-bubble {
  position: relative;
  width: 100%;
  max-width: 280px;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-badge);
  font-size: 14px;
  line-height: 21px;
  color: var(--sage-700);
  text-align: center;
}

.ms-bubble::before,
.ms-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
  border-top-width: 0;
}

.ms-bubble::before {
  top: -9px;
  margin-left: -9px;
  border-width: 9px;
  border-top-width: 0;
  border-bottom-color: var(--sage-200);
}

.ms-bubble::after {
  top: -8px;
  margin-left: -8px;
  border-width: 8px;
  border-top-width: 0;
  border-bottom-color: var(--sage-50);
}

.ms-group:last-child {
  margin-bottom: 0;
}

.ms-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .ms-chip:active {
    transform: translateY(1px);
  }
}

/* ======================================================================
   Social and progression (so-)
   ====================================================================== */

.so-dare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.so-dare-copy {
  max-width: 46ch;
}

.so-dare-copy h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--deep-charcoal);
  margin-bottom: var(--space-sm);
}

.so-dare-copy p {
  font-size: 16px;
  line-height: 26px;
  color: var(--sage-700);
}

.so-dare-copy p + p {
  margin-top: var(--space-sm);
}

.so-dare-card {
  max-width: 340px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-card);
}

.so-dare-from {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.so-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-200);
  color: var(--sage-800);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.so-dare-from-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-700);
}

.so-dare-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--deep-charcoal);
  margin-bottom: var(--space-md);
}

.so-dare-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.so-dare-xp {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-ink, var(--orange-700));
  font-variant-numeric: tabular-nums;
}

.so-accept {
  display: block;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--orange-cta, var(--orange-500));
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* Leaderboard and progression sit on the band, hairline only, so the dare leads. */
.so-module {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-card);
}

.so-module:last-child {
  margin-bottom: 0;
}

.so-module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.so-module-head h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--deep-charcoal);
}

.so-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-600);
}

.so-line {
  font-size: 14px;
  line-height: 22px;
  color: var(--sage-700);
}

.so-board-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.so-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.so-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.so-slot-1 { order: 2; }
.so-slot-2 { order: 1; }
.so-slot-3 { order: 3; }

.so-avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.so-slot-1 .so-avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 19px;
  background: var(--orange-100);
  color: var(--orange-ink, var(--orange-700));
}

.so-slot-xp {
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-charcoal);
  font-variant-numeric: tabular-nums;
}

.so-slot-block {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding-top: 6px;
  background: var(--sage-100);
  border-radius: var(--radius-badge) var(--radius-badge) 0 0;
  color: var(--sage-700);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.so-slot-1 .so-slot-block { height: 76px; background: var(--sage-200); }
.so-slot-2 .so-slot-block { height: 56px; }
.so-slot-3 .so-slot-block { height: 40px; }

.so-prog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.so-prog-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.so-streak-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.so-flame {
  flex: 0 0 auto;
}

.so-streak-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-charcoal);
  font-variant-numeric: tabular-nums;
}

.so-xp-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
}

.so-xp-level {
  color: var(--deep-charcoal);
}

.so-xp-goal {
  color: var(--sage-600);
  font-variant-numeric: tabular-nums;
}

.so-xp-track {
  display: block;
  height: 12px;
  overflow: hidden;
  background: var(--sage-100);
  border-radius: var(--radius-pill);
}

.so-xp-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange-400);
  border-radius: var(--radius-pill);
  transform: scaleX(0.7);
  transform-origin: left center;
}

html.so-js .so-xp-fill {
  transform: scaleX(0);
}

html.so-js .so-xp-fill.is-filled {
  transform: scaleX(0.7);
}

.so-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.so-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
}

.so-badge-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  border-radius: 50%;
}

.so-badge-name {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--sage-700);
  text-align: center;
}

/* ======================================================================
   Founder (fd-)
   ====================================================================== */

.fd-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 920px;
  margin: 0 auto;
}

.fd-note h2 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  color: var(--deep-charcoal);
  margin-bottom: var(--space-md);
}

.fd-body {
  font-size: 17px;
  line-height: 28px;
  color: var(--sage-700);
}

.fd-sign {
  margin-top: var(--space-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--sage-700);
}

.fd-next {
  padding: var(--space-lg);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-card);
}

.fd-next h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: var(--space-md);
}

.fd-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.fd-steps li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 24px;
  color: var(--sage-700);
}

.fd-steps li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--orange-400);
  border-radius: 50%;
}

/* ======================================================================
   Breakpoints
   ====================================================================== */

@media (min-width: 768px) {
  .scout-stage-canvas {
    width: 240px;
  }

  .ms-stage {
    max-width: 1000px;
    margin: 0 auto;
  }

  .so-dare {
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }

  .so-dare-copy {
  max-width: 46ch;
}

.so-dare-copy h3 {
    font-size: 28px;
    line-height: 36px;
  }

  .so-module {
    padding: var(--space-xl);
  }

  .so-board-row {
    grid-template-columns: 420px 1fr;
    align-items: center;
    gap: var(--space-2xl);
  }

  .so-podium {
    margin: 0;
  }

  .so-prog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .fd-wrap {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .fd-note h2 {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.so-js .so-xp-fill {
    transition: transform 0.9s ease;
  }
}
