/* AcademiaPro website — steps, lab, demo, pricing, FAQ, CTA, footer. */

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.steps__line {
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 2px;
  overflow: visible;
}

.steps__line path {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.2s var(--ease);
}

.steps.is-visible .steps__line path {
  stroke-dashoffset: 0;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.step__num {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.7rem;
  border: 2px solid var(--gold);
  position: relative;
  z-index: 1;
}

.step p {
  margin-top: 10px;
  color: var(--muted-light);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps__line {
    display: none;
  }
}

/* ── Backtesting lab ──────────────────────────────────────────────────── */

.lab {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.lab__points {
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.lab__points li {
  display: flex;
  gap: 14px;
  color: var(--muted-dark);
}

.lab__points li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(199, 162, 82, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7a252' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.lab__art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-dark);
}

@media (max-width: 960px) {
  .lab {
    grid-template-columns: 1fr;
  }
}

/* ── Market Call demo ─────────────────────────────────────────────────── */

.demo {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.demo__panel {
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
  padding: 22px;
  box-shadow: var(--shadow);
}

.demo__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--muted-dark);
}

.demo__streak strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.demo canvas {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.demo__question {
  margin: 16px 0 14px;
  text-align: center;
  font-weight: 600;
}

.demo__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.demo__actions .btn {
  min-width: 150px;
}

.btn--up {
  background: rgba(61, 220, 151, 0.14);
  border-color: rgba(61, 220, 151, 0.5);
  color: var(--green);
}

.btn--down {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.5);
  color: var(--red);
}

.demo__result {
  min-height: 28px;
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
}

.demo__result.is-correct {
  color: var(--green);
}

.demo__result.is-wrong {
  color: var(--red);
}

.demo__note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted-light);
}

@media (max-width: 960px) {
  .demo {
    grid-template-columns: 1fr;
  }
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 24px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line-light);
}

.plan--featured {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-950));
  color: var(--white);
  border: 1px solid rgba(199, 162, 82, 0.5);
  box-shadow: 0 40px 80px -40px rgba(199, 162, 82, 0.45);
}

.plan__badge {
  position: absolute;
  top: -13px;
  right: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-950);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__price {
  margin: 14px 0 6px;
  font-family: var(--serif);
  font-size: 2.6rem;
}

.plan__note {
  color: var(--muted-light);
  font-size: 0.95rem;
}

.plan--featured .plan__note,
.plan--featured li {
  color: var(--muted-dark);
}

.plan ul {
  flex: 1;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: start;
}

.plan li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  margin-right: 10px;
}

@media (max-width: 760px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line-light);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  font-family: var(--sans);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold);
  border-color: var(--gold);
}

.faq__answer {
  padding: 0 0 24px;
  color: var(--muted-light);
  max-width: 700px;
  animation: faq-open 0.5s var(--ease);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ── Final CTA ────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 72px);
  text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, #22397d, var(--navy-900) 60%, var(--navy-950));
  color: var(--white);
  isolation: isolate;
}

.cta .aurora--gold {
  top: -260px;
  left: 50%;
  right: auto;
  translate: -50% 0;
}

.cta p {
  max-width: 560px;
  margin: 18px auto 34px;
  color: var(--muted-dark);
  font-size: 1.12rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy-950);
  color: var(--muted-dark);
  padding: 72px 0 40px;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer .brand {
  color: var(--white);
}

.footer__tagline {
  margin-top: 14px;
  max-width: 320px;
}

.footer h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
}

.footer__legal {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 14px;
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}
