/* ==========================================================================
   Advantage Capital — ACT (Advantage Capital Trading) page styles (loaded after styles.css)
   ========================================================================== */

/* ---------- Hero: warmer variant with a rising equity curve ---------- */
.hero-card--act { background: linear-gradient(100deg, #0b1f1e 0%, #132623 26%, #2a1d15 50%, #93431f 76%, #d58a63 100%); }
.act-curve {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 30%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 30%, #000 62%);
}
.act-curve-line {
  fill: none; stroke: #ffd29a; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(255, 190, 110, .55));
  animation: act-draw 2.6s var(--ease-out) .4s forwards;
}
.act-curve-area { opacity: 0; animation: act-fade 1.4s var(--ease-out) 1.6s forwards; }
@keyframes act-draw { to { stroke-dashoffset: 0; } }
@keyframes act-fade { to { opacity: 1; } }

.proof-stack--icons span .icon { width: 18px; height: 18px; color: var(--ink); }

/* Hero desk: the offer at a glance */
.desk-tag--live { display: inline-flex; align-items: center; gap: 7px; }
.desk-tag--live .live-dot { width: 7px; height: 7px; }
.act-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; }
.act-term { padding: 14px 14px 12px; border-radius: 16px; background: var(--sand); }
.act-term dt { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.act-term dd { margin: 0; }
.act-term strong {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.act-term small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.act-term--accent { background: var(--grad-card); color: #fff; }
.act-term--accent dt, .act-term--accent small { color: rgba(255, 246, 240, .94); }
.act-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 16px; padding: 0 4px; }
.act-includes li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.act-includes .icon { width: 14px; height: 14px; flex: none; stroke-width: 2.6; color: var(--ember); }

/* ---------- Why ACT ---------- */
.split-intro .btn-row { margin-top: 28px; }

/* ---------- The deal ---------- */
.stat--ladder { justify-content: space-between; }
.act-ladder { margin: 0; padding-right: 64px; }
.act-ladder-bars { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 8px; height: 96px; }
.act-ladder-bars span {
  height: calc(var(--h) * 100%); border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(247, 165, 65, .9), rgba(226, 98, 29, .55));
  transform-origin: bottom; transition: transform 1s var(--ease-out);
}
.act-ladder-bars span:last-child { background: linear-gradient(180deg, #ffd29a, var(--amber)); }
.js .stat--ladder:not(.is-in) .act-ladder-bars span { transform: scaleY(.08); }
.act-ladder-bars span:nth-child(2) { transition-delay: .1s; }
.act-ladder-bars span:nth-child(3) { transition-delay: .2s; }
.act-ladder-bars span:nth-child(4) { transition-delay: .3s; }
.act-ladder-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; font-size: 12px; color: var(--on-dark-muted); text-align: center; }
.act-ladder-labels span:last-child { color: var(--on-dark); font-weight: 500; }

/* ---------- What you get: titles line up across each row ---------- */
#toolkit .offer { min-height: 340px; }
#toolkit .offer-title { margin-top: 0; padding-top: clamp(48px, 5vw, 72px); }
#toolkit .offer-foot { margin-top: auto; padding-top: 24px; }

/* ---------- How it works ---------- */
#how { --phase-cols: repeat(4, minmax(0, 1fr)); }

/* ---------- Apply: market chips ---------- */
.act-markets { min-width: 0; margin: 0; padding: 0; border: 0; }
.act-markets legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; display: inline-flex; }
.check-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 999px; background: #fff;
  font-size: 14px; color: var(--ink-soft);
  transition: background-color .2s, color .2s, border-color .2s;
}
.check-chip:hover span { border-color: var(--line-strong); }
.check-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.check-chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) and (min-width: 641px) {
  #how .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .act-curve { height: 45%; }
  .act-term strong { font-size: 32px; }
  .act-ladder { padding-right: 56px; }
  #toolkit .offer { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .act-curve-line { animation: none; stroke-dashoffset: 0; }
  .act-curve-area { animation: none; opacity: 1; }
  .js .stat--ladder:not(.is-in) .act-ladder-bars span { transform: none; }
}
