/* Phoenix AI — /learn/ (distinct DC-interior page) */
:root {
  --ink: #090909;
  --cream: #F8F4E9;
  --cream-muted: #c8c0b4;
  --purple: #6B4FC8;
  --purple-light: #E0D0FF;
  --blue: #4A7FD4;
  --sky: #5A9FD8;
  --wine: #A81830;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(1.25rem, 3vw, 2.5rem);
  --shell-max: 56rem;
  --wide-max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Futuristic digital learn world — neon grid / holo UI / data architecture (NO phoenix) */
.learn-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 44% at 72% 30%, rgba(107, 79, 200, 0.22), transparent 62%),
    radial-gradient(ellipse 36% 32% at 16% 68%, rgba(74, 127, 212, 0.10), transparent 56%),
    url("../assets/world-learn-digital.jpg?v=1789122000") 62% 40% / cover no-repeat,
    #090909;
  filter: brightness(0.94) contrast(1.06) saturate(1.08);
  opacity: 0.98;
}

.learn-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Readable dark UI; keep luminous digital/holo zone alive on the right */
  background:
    linear-gradient(
      90deg,
      rgba(9, 9, 9, 0.82) 0%,
      rgba(9, 9, 9, 0.68) 26%,
      rgba(9, 9, 9, 0.42) 48%,
      rgba(9, 9, 9, 0.22) 70%,
      rgba(9, 9, 9, 0.38) 100%
    ),
    linear-gradient(
      180deg,
      rgba(9, 9, 9, 0.55) 0%,
      rgba(9, 9, 9, 0.22) 14%,
      rgba(9, 9, 9, 0.28) 52%,
      rgba(9, 9, 9, 0.62) 82%,
      rgba(9, 9, 9, 0.92) 100%
    );
}

.learn-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.learn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Match homepage .topbar: full bleed so CONTACT right inset == --pad-x */
  width: 100%;
  margin: 0;
  padding: 1rem var(--pad-x);
  box-sizing: border-box;
}

.learn-top__brand {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  /* Optical flush: cancel SVG lockup left transparent (~37/623 ≈ 5.94%) */
  --lockup-w: clamp(9.5rem, 22vw, 12.5rem);
  margin-left: calc(var(--lockup-w) * -0.059);
}

.learn-top__brand img {
  display: block;
  width: var(--lockup-w);
  height: auto;
  margin: 0;
  padding: 0;
  filter: drop-shadow(0 8px 24px rgba(74, 40, 160, 0.35));
}

.learn-top__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}

.learn-top__nav a {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.88;
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 55%, transparent);
  padding-bottom: 0.15rem;
  transition: opacity 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.learn-top__nav a:hover {
  opacity: 1;
  color: var(--sky);
  border-bottom-color: var(--sky);
}

main {
  flex: 1;
  width: min(100%, var(--wide-max));
  margin-left: 0;
  margin-right: auto;
  padding: 0 var(--pad-x) 3.5rem;
  box-sizing: border-box;
}

.learn-hero {
  max-width: var(--shell-max);
  padding: clamp(1.75rem, 5vh, 3.25rem) 0 clamp(2.5rem, 6vh, 3.75rem);
}

.learn-kicker {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream-muted) 80%, var(--sky));
  margin-bottom: 1rem;
}

.learn-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--cream);
  text-shadow:
    0 0 0.4em rgba(190, 170, 245, 0.28),
    0 1px 18px rgba(9, 9, 9, 0.65);
  margin-bottom: 1.25rem;
}


.learn-plain {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--purple-light);
  max-width: 46rem;
  margin-bottom: 0.95rem;
}

.learn-define {
  font-size: clamp(0.95rem, 1.55vw, 1.05rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 82%, var(--cream-muted));
  max-width: 48rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--purple) 12%, rgba(9, 9, 9, 0.35));
  border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent);
}

.learn-define strong {
  color: var(--cream);
  font-weight: 650;
}

.learn-lede {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 88%, var(--cream-muted));
  max-width: 48rem;
  margin-bottom: 1rem;
}

.learn-lede--follow {
  margin-top: 0.85rem;
  max-width: 48rem;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.55;
  color: var(--cream-muted);
}
.learn-oneliner {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cream);
  border-left: 3px solid color-mix(in srgb, var(--wine) 70%, var(--purple));
  padding-left: 0.9rem;
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.learn-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.learn-btn--primary {
  border: 1px solid color-mix(in srgb, var(--purple) 55%, transparent);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--purple) 38%, transparent),
      color-mix(in srgb, var(--blue) 26%, transparent));
  color: var(--cream);
  box-shadow: 0 14px 36px rgba(74, 127, 212, 0.2);
}

.learn-btn--primary:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--sky) 60%, transparent);
}

.learn-btn--ghost {
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  background: rgba(9, 9, 9, 0.35);
  color: var(--cream);
}

.learn-btn--ghost:hover {
  border-color: color-mix(in srgb, var(--sky) 50%, transparent);
  color: var(--sky);
}

.learn-section {
  max-width: var(--shell-max);
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 9%, transparent);
}

.learn-section h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 1.35rem 0 0.85rem;
  color: var(--cream);
}

.learn-section p,
.learn-section li {
  font-size: 0.98rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 86%, var(--cream-muted));
}

.learn-sub {
  color: var(--cream-muted) !important;
  margin-bottom: 1rem;
  font-size: 0.92rem !important;
}

.learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.learn-list li {
  position: relative;
  padding-left: 1.15rem;
}

.learn-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wine) 65%, var(--purple));
  box-shadow: 0 0 10px color-mix(in srgb, var(--purple) 40%, transparent);
}

.learn-list--muted li {
  color: var(--cream-muted);
}

.learn-phases {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.learn-phases li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(14, 12, 20, 0.72);
  border: 1px solid color-mix(in srgb, var(--purple) 24%, transparent);
}

.learn-phases__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}

.learn-phases strong {
  color: var(--cream);
  font-size: 1.02rem;
}

.learn-phases span:last-child {
  color: var(--cream-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.learn-section--card {
  margin-top: 1.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
  background:
    linear-gradient(160deg, rgba(107, 79, 200, 0.12), rgba(9, 9, 9, 0.55)),
    rgba(12, 10, 18, 0.82);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.learn-section--card h2 {
  margin-top: 0.15rem;
}

.learn-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.learn-split h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.45rem;
}

.learn-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.learn-chips li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--cream);
  background: rgba(18, 14, 28, 0.75);
  border: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}

.learn-engage {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: rgba(14, 12, 20, 0.75);
  border: 1px solid color-mix(in srgb, var(--wine) 28%, transparent);
}

.learn-engage p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cream);
}

.learn-engage__note {
  margin-top: 0.65rem;
  font-size: 0.85rem !important;
  color: var(--cream-muted) !important;
}

.learn-cta {
  margin-top: 2.25rem;
  padding: 1.75rem 1.35rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 80% at 15% 0%, color-mix(in srgb, var(--wine) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 70% at 95% 100%, color-mix(in srgb, var(--purple) 26%, transparent), transparent 50%),
    rgba(12, 10, 18, 0.88);
  border: 1px solid color-mix(in srgb, var(--purple) 32%, transparent);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.learn-cta h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 0.65rem;
}

.learn-cta p {
  max-width: 46rem;
  margin-bottom: 1.35rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 88%, var(--cream-muted));
}

.learn-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem var(--pad-x) 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.learn-foot a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 45%, transparent);
  padding-bottom: 0.08rem;
}

.learn-foot a:hover {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

.learn-foot__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--wine);
  opacity: 0.8;
}


/* FAQ accordion — native details/summary, exclusive via name= */
.learn-faq {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
  max-width: none;
  width: 100%;
}

.learn-faq details {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--cream) 10%, transparent);
  background: rgba(14, 12, 20, 0.72);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.learn-faq details[open] {
  border-color: color-mix(in srgb, var(--purple) 36%, transparent);
  background:
    linear-gradient(160deg, rgba(107, 79, 200, 0.1), rgba(9, 9, 9, 0.45)),
    rgba(14, 12, 20, 0.82);
}

.learn-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--cream);
  font-family: inherit;
  user-select: none;
  transition: color 0.2s ease;
}

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

.learn-faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid color-mix(in srgb, var(--sky) 75%, var(--cream));
  border-bottom: 2px solid color-mix(in srgb, var(--sky) 75%, var(--cream));
  transform: rotate(45deg) translateY(-0.1rem);
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease;
  opacity: 0.85;
}

.learn-faq details[open] > summary::after {
  transform: rotate(225deg) translateY(-0.05rem);
  border-color: var(--sky);
}

.learn-faq summary:hover {
  color: color-mix(in srgb, var(--cream) 88%, var(--sky));
}

.learn-faq summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sky) 70%, transparent);
  outline-offset: -2px;
}

.learn-faq__body {
  padding: 0 1.15rem 1.15rem;
}

.learn-faq__body p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 86%, var(--cream-muted));
}

.learn-faq__body a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}
.learn-faq__body a:hover {
  color: color-mix(in srgb, var(--sky) 70%, #ffffff);
}

.learn-faq__body .learn-list {
  margin-top: 0.15rem;
}

.learn-faq__body .learn-sub {
  margin-bottom: 0.75rem;
}

@media (max-width: 720px) {
  .learn-split {
    grid-template-columns: 1fr;
  }
  .learn-top {
    align-items: flex-start;
  }
  .learn-top__nav {
    gap: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


@media (min-width: 900px) {
  .learn-phases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .learn-section,
  .learn-hero {
    max-width: none;
  }
  .learn-cta {
    max-width: none;
  }
}
