/**
 * Premium tabbed guide — /learn/what-is-alchemy
 * Tokens: site-premium.css (.page-learn-what)
 */

.page-learn-what--premium .bg {
  background:
    radial-gradient(ellipse 120% 70% at 50% -18%, rgba(0, 230, 122, 0.14), transparent 52%),
    radial-gradient(900px 520px at 92% 88%, rgba(0, 184, 95, 0.09), transparent 58%),
    radial-gradient(760px 480px at 4% 72%, rgba(0, 230, 122, 0.07), transparent 55%),
    linear-gradient(168deg, #010203 0%, #060908 42%, #030504 100%);
}

.page-learn-what--premium .bg::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* —— Layout —— */
.page-learn-what--premium main.learn-what-page.wrap {
  max-width: min(1080px, 94vw);
  padding-top: clamp(12px, 2.5vw, 24px);
  padding-bottom: max(72px, calc(40px + env(safe-area-inset-bottom)));
}

.learn-what-page {
  animation: reviewSpotIn 0.55s ease both;
}

/* —— Hero —— */
.learn-what-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 36px);
  text-align: center;
}

@media (min-width: 820px) {
  .learn-what-hero {
    grid-template-columns: 1fr minmax(200px, 280px);
    gap: 32px 40px;
    text-align: left;
  }
}

.learn-what-hero-copy {
  position: relative;
  z-index: 1;
}

.learn-what-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.learn-what-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-bright);
  box-shadow: 0 0 14px rgba(0, 230, 122, 0.55);
  animation: learn-what-pulse 2.6s ease-in-out infinite;
}

@keyframes learn-what-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.learn-what-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--ink);
}

.learn-what-lead {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 820px) {
  .learn-what-lead {
    margin-inline: 0;
  }
}

@media (max-width: 819px) {
  .learn-what-lead {
    margin-inline: auto;
  }
}

.learn-what-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

@media (min-width: 820px) {
  .learn-what-meta {
    justify-content: flex-start;
  }
}

.learn-what-meta span {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.learn-what-hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 260px);
  aspect-ratio: 1;
}

@media (min-width: 820px) {
  .learn-what-hero-visual {
    justify-self: end;
    width: 100%;
  }
}

.learn-what-hero-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 122, 0.35) 0%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.learn-what-hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

/* —— Stage (tabs + content) —— */
.learn-what-stage {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.72) 100%);
  box-shadow:
    var(--shadow-soft),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.learn-what-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 122, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
}

.learn-what-tabs-wrap {
  padding: clamp(14px, 2.5vw, 20px) clamp(14px, 2.5vw, 20px) 0;
  border-bottom: 1px solid var(--line2);
}

.learn-what-tabs.learn-what-tabs--premium {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.learn-what-tab {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 7.5rem);
}

.learn-what-tab-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}

.learn-what-tab-btn:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.learn-what-tab-btn[aria-selected="true"] {
  color: #eafff4;
  border-color: rgba(0, 230, 122, 0.4);
  background: linear-gradient(180deg, rgba(0, 230, 122, 0.22) 0%, rgba(0, 230, 122, 0.08) 100%);
  box-shadow:
    0 4px 20px rgba(0, 230, 122, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* —— Panels —— */
.learn-what-panels {
  padding: clamp(18px, 3vw, 28px);
}

.learn-what-panel {
  display: none;
  animation: learn-what-fade 0.32s ease both;
}

.learn-what-panel.is-active {
  display: block;
}

@keyframes learn-what-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.learn-what-panel .article-body {
  line-height: 1.72;
  font-size: 0.9375rem;
  font-weight: 500;
}

.learn-what-panel .article-body h2 {
  margin: 2rem 0 0.65rem;
  padding: 10px 0 10px 14px;
  border-left: 3px solid rgba(0, 230, 122, 0.65);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(0, 230, 122, 0.1), transparent 72%);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.learn-what-panel .article-body h2:first-child {
  margin-top: 0;
}

.learn-what-panel .article-body p {
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
}

.learn-what-panel .article-body ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.learn-what-panel .article-body li {
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.84);
}

.learn-what-panel .article-body a {
  color: var(--brand-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 230, 122, 0.35);
  font-weight: 600;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.learn-what-panel .article-body a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* —— Getting started timeline —— */
.learn-what-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.learn-what-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px 18px;
  align-items: start;
  padding: 18px 18px 18px 12px;
  margin-left: 20px;
  border-left: 2px solid rgba(0, 230, 122, 0.2);
}

.learn-what-steps > li:last-child {
  border-left-color: transparent;
}

.learn-what-steps > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 230, 122, 0.15), 0 0 20px rgba(0, 230, 122, 0.45);
}

.learn-what-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #021208;
  background: linear-gradient(180deg, var(--brand-bright) 0%, var(--brand-dim) 100%);
  border: 1px solid rgba(0, 230, 122, 0.45);
  box-shadow:
    0 8px 24px rgba(0, 230, 122, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.learn-what-step-body {
  padding: 4px 16px 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.learn-what-step-body h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 1rem !important;
}

.learn-what-step-body p:last-child {
  margin-bottom: 0;
}

/* Free vs Premium comparison */
.learn-tier-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin: 20px 0 24px;
}

.learn-tier-card {
  padding: clamp(16px, 2.5vw, 20px) clamp(16px, 2.5vw, 22px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.learn-tier-card--free {
  border-top: 3px solid rgba(255, 255, 255, 0.22);
}

.learn-tier-card--premium {
  border-top: 3px solid rgba(0, 230, 122, 0.55);
  background:
    linear-gradient(160deg, rgba(0, 230, 122, 0.08) 0%, rgba(0, 0, 0, 0.38) 50%),
    rgba(0, 0, 0, 0.32);
}

.learn-tier-card h3 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.learn-tier-card--premium h3 {
  color: var(--brand) !important;
}

.learn-tier-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.learn-tier-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.learn-tier-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.learn-tier-card--premium li::before {
  background: var(--brand);
}

@media (max-width: 720px) {
  .learn-tier-compare {
    grid-template-columns: 1fr;
  }
}

.learn-what-cta-bar {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 230, 122, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 230, 122, 0.12) 0%, rgba(0, 0, 0, 0.5) 55%),
    rgba(0, 0, 0, 0.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.learn-what-cta-bar p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
}

.learn-what-cta-bar .btn.primary,
.learn-what-foot .btn.primary {
  height: 40px;
  padding: 0 20px;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-bright) 0%, var(--brand-dim) 100%);
  border-color: rgba(0, 230, 122, 0.45);
  color: #021208;
  box-shadow:
    0 10px 28px rgba(0, 230, 122, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* —— Footer —— */
.learn-what-foot--premium {
  margin-top: clamp(20px, 3vw, 28px);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: center;
}

.learn-what-foot--premium a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.learn-what-foot--premium a:not(.btn):hover {
  color: var(--brand-bright);
}

@media (max-width: 640px) {
  .learn-what-tab {
    min-width: calc(50% - 4px);
  }

  .learn-what-steps > li {
    grid-template-columns: 1fr;
    margin-left: 12px;
    padding-left: 8px;
  }

  .learn-what-step-num {
    width: 42px;
    height: 42px;
    font-size: 0.9375rem;
  }

  .learn-what-step-body {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learn-what-page,
  .learn-what-panel,
  .learn-what-eyebrow i {
    animation: none;
  }
}
