/* Earn without investing — Figma 2329:517 / 2347:1561 (EarnDeck) */
.earn {
  --earn-soft: #a8c6c0;                    /* secondary text on the dark deck */
  --earn-line: rgba(255, 255, 255, .14);   /* hairlines + panel borders */
  --earn-panel: rgba(255, 255, 255, .05);  /* pay boxes, flow panel, links */
  padding-top: 58px;
  padding-bottom: var(--sec-pad);
}

.earn__deck {
  overflow: hidden;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(168.79deg, var(--ink-deep) 7.84%, #0a3733 92.16%);
  color: #fff;
}

/* ---------- DeckHead ---------- */
.earn__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.earn__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.earn__kicker::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.earn__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
}
.earn__lede {
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--earn-soft);
}

/* Desktop / mobile copy variants (the 390 frame uses shorter copy) */
.earn__m { display: none; }

/* ---------- Streams — minimal expanding columns ----------
   No boxes: four open columns divided by hairlines, pay figures sharing one
   baseline at the foot. The open column widens, shows its description and gets
   a 2px mint rule on top; the others dim. Mint is spent only on the open
   column's figure. Hover / focus / tap opens a column (js/sections/09-earn.js).
   ≤1060px the columns become stacked rows. Copy unchanged. */
.earn__streams {
  display: flex;
  margin-top: 40px;
  border-top: 1px solid var(--earn-line);
  border-bottom: 1px solid var(--earn-line);
}
.earn__stream {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px 26px 30px;
  cursor: pointer;
  transition: flex-grow .7s var(--ease);
}
.earn__stream + .earn__stream { border-left: 1px solid var(--earn-line); }
.earn__stream::before {                  /* open-column marker */
  content: "";
  position: absolute;
  left: -1px;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.earn__stream.is-active { flex-grow: 2.4; }
.earn__stream.is-active::before { transform: none; }
.earn__stream:focus-visible { outline-offset: -3px; border-radius: 0; }

.earn__num {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--earn-soft);
}
.earn__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  max-width: 46ch;
}
.earn__row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.earn__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
  transition: opacity .5s var(--ease);
}
.earn__who {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--earn-soft);
}
.earn__text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--earn-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .45s var(--ease);
}
.earn__stream.is-active .earn__text { opacity: 1; transform: none; transition-delay: .25s, .25s; }
/* Desktop: closed columns don't reserve room for their description; one fixed
   row height holds the longest open description so nothing jumps on switch. */
@media (min-width: 1061px) {
  .earn__stream { min-height: 420px; }
  .earn__text { display: none; }
  .earn__stream.is-active .earn__text { display: block; animation: earn-text-in .45s var(--ease) .2s both; }
}
@keyframes earn-text-in { from { opacity: 0; transform: translateY(8px); } }

.earn__pay {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 28px;
}
.earn__pay-val {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: #fff;
  transition: color .5s var(--ease);
}
.earn__stream.is-active .earn__pay-val { color: var(--accent); }
.earn__pay-lbl {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--earn-soft);
}
/* closed columns step back */
.earn__stream:not(.is-active) .earn__name,
.earn__stream:not(.is-active) .earn__pay-val { opacity: .62; }
.earn__stream .earn__name, .earn__stream .earn__pay-val { transition: opacity .5s var(--ease), color .5s var(--ease); }
@media (hover: hover) {
  .earn__stream:not(.is-active):hover .earn__name,
  .earn__stream:not(.is-active):hover .earn__pay-val { opacity: 1; }
}

/* ---------- Stacked rows (≤1060px) ---------- */
@media (max-width: 1060px) {
  .earn__streams { flex-direction: column; border-bottom: 0; }
  .earn__stream, .earn__stream.is-active { flex: none; }
  .earn__stream {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: start;
    min-height: 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--earn-line);
  }
  .earn__stream + .earn__stream { border-left: 0; }
  .earn__stream::before { left: 0; top: -1px; width: 48px; right: auto; }
  .earn__num { padding-top: 6px; }
  .earn__copy { margin-top: 0; max-width: none; }
  .earn__text {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    transition: grid-template-rows .55s var(--ease), opacity .3s var(--ease), transform .45s var(--ease), margin-top .55s var(--ease);
  }
  .earn__text > span { min-height: 0; overflow: hidden; }
  .earn__stream.is-active .earn__text { grid-template-rows: 1fr; margin-top: 6px; }
  .earn__pay { margin-top: 0; padding-top: 2px; align-items: flex-end; text-align: right; }
  .earn__pay-val { font-size: 26px; }
  .earn__pay-lbl { max-width: 13ch; font-size: 12px; }
}
@media (max-width: 720px) {
  .earn__streams { margin-top: 28px; }
  .earn__stream { grid-template-columns: 24px minmax(0, 1fr); row-gap: 14px; }
  .earn__pay { grid-column: 2; flex-direction: row; align-items: baseline; gap: 10px; text-align: left; }
  .earn__pay-lbl { max-width: none; }
  .earn__name { font-size: 18px; }
}

/* ---------- Team override worked example ---------- */
.earn__flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--earn-line);
  border-radius: 18px;
  background: var(--earn-panel);
}
.earn__flow-title {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.earn__chain {
  display: flex;
  align-items: center;
  gap: 10px;
}
.earn__link {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--earn-line);
  border-radius: 13px;
  background: var(--earn-panel);
}
.earn__link--result {
  border-color: rgba(49, 226, 154, .4);
  background: linear-gradient(142.69deg, rgba(49, 226, 154, .2) 10.99%, rgba(25, 154, 172, .14) 89.01%);
}
.earn__link-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.earn__link--result .earn__link-title { color: var(--accent); }
.earn__link-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--earn-soft);
}
.earn__arrow { flex: none; width: 18px; height: 18px; }

.earn__note {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--earn-soft);
  opacity: .8;
}
.earn__note-link {
  color: var(--accent);
  transition: color var(--t-hover) var(--ease);
}
@media (hover: hover) {
  .earn__note-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .earn__deck { padding: 40px 32px; }
  .earn__chain { flex-direction: column; align-items: stretch; }
  .earn__arrow { align-self: center; transform: rotate(90deg); }
}

/* ---------- Phone (390 frame) ---------- */
@media (max-width: 720px) {
  .earn { padding-top: 34px; }
  .earn__deck {
    padding: 32px 22px;
    border-radius: 24px;
    background: linear-gradient(140.36deg, var(--ink-deep) 7.84%, #0a3733 92.16%);
  }
  .earn__d { display: none; }
  .earn__m { display: inline; }

  .earn__kicker { line-height: 1.4; }
  .earn__title { font-size: 26px; line-height: 1.15; }
  .earn__lede { font-size: 14px; }



  /* The Mobile 390 frame ends the deck after stream 05 — no worked example. */
  .earn__flow { display: none; }
}
