/* ============================================================================
   landing-editorial.css — "Editorial Tech Journal" redesign for the homepage
   Scoped entirely under .z2h-home-editorial so no other page is affected.
   Builds on the existing violet/cyan brand system (see project_ui_design_system).
   Typography: Space Grotesk display + Plus Jakarta Sans body (brand pair).
   Adds: numbered magazine sections, hairline rules, kinetic ticker,
   gradient-mesh atmosphere, grain, count-up, magnetics.
   ========================================================================== */

/* Mobile safety net: stop any wide descendant (e.g. the collapsed shared nav)
   from creating horizontal scroll. `clip` leaves vertical scroll & sticky intact. */
body { overflow-x: clip; }

.z2h-home-editorial,
.ed-auth {
  /* ---- Editorial tokens (inherit brand violet/cyan) ---- */
  --ed-ink:        #0b0a14;
  --ed-ink-soft:   #3a3650;
  --ed-muted:      #6b6680;
  --ed-paper:      #fbfaff;
  --ed-line:       rgba(20, 16, 40, 0.12);
  --ed-line-soft:  rgba(20, 16, 40, 0.07);
  --ed-violet:     #7c3aed;
  --ed-violet-2:   #6d28d9;
  --ed-cyan:       #0ea5e9;
  --ed-grad:       linear-gradient(115deg, #7c3aed 0%, #6366f1 45%, #0ea5e9 100%);
  --ed-serif:      "Space Grotesk", system-ui, -apple-system, sans-serif; /* unified: display = Space Grotesk (Fraunces removed) */
  --ed-grotesk:    "Space Grotesk", system-ui, sans-serif;
  --ed-body:       "Plus Jakarta Sans", system-ui, sans-serif;
  --ed-maxw:       1180px;
  --ed-ease:       cubic-bezier(0.22, 1, 0.36, 1);

  color: var(--ed-ink);
  font-family: var(--ed-body);
  position: relative;
  overflow-x: clip; /* contain decorative orbs / ticker bleed — no horizontal scroll */
}

/* Paper canvas + faint grain + drifting mesh sit behind everything */
.z2h-home-editorial {
  background:
    radial-gradient(60% 50% at 88% -5%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(55% 45% at 0% 18%, rgba(14, 165, 233, 0.08), transparent 60%),
    var(--ed-paper);
}
.z2h-home-editorial::before {
  /* tactile grain overlay */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
.z2h-home-editorial > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- Section frame */
.ed-section { max-width: var(--ed-maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1.1rem, 4vw, 2rem); }
.ed-section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* numbered, ruled editorial header */
.ed-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.ed-head__rule {
  display: flex; align-items: baseline; gap: 1rem;
  border-top: 1.5px solid var(--ed-ink);
  padding-top: 0.7rem;
}
.ed-head__index {
  font-family: var(--ed-grotesk);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--ed-violet); font-variant-numeric: tabular-nums;
}
.ed-head__kicker {
  font-family: var(--ed-grotesk);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.7rem; font-weight: 600; color: var(--ed-muted);
  margin-left: auto;
}
.ed-head__title {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 1.1rem 0 0;
  color: var(--ed-ink);
  max-width: 18ch;
}
.ed-head__title em { font-style: italic; color: var(--ed-violet-2); }
.ed-head__lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6; color: var(--ed-ink-soft);
  max-width: 56ch; margin: 1.1rem 0 0;
}
.ed-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.ed-head__link {
  font-family: var(--ed-grotesk); font-weight: 600; font-size: 0.9rem;
  color: var(--ed-ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1.5px solid transparent; transition: border-color 0.25s var(--ed-ease), gap 0.25s var(--ed-ease);
}
.ed-head__link i { transition: transform 0.3s var(--ed-ease); }
.ed-head__link:hover { border-color: var(--ed-violet); gap: 0.75rem; color: var(--ed-violet-2); }
.ed-head__link:hover i { transform: translateX(3px); }

/* ============================================================ HERO */
.ed-hero {
  max-width: var(--ed-maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.1rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
  position: relative;
}
/* Full-bleed aurora band behind the hero (breaks out of the centered column to
   the viewport width) + a faint tech grid. Fills the hero evenly instead of a
   single lopsided blob, and fades softly into the next section. */
.ed-hero__deco {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw;
  transform: translateX(-50%);
  overflow: hidden; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 55% at 82% 6%, rgba(124, 58, 237, 0.32), transparent 60%),
    radial-gradient(44% 55% at 8% 84%, rgba(14, 165, 233, 0.28), transparent 62%),
    radial-gradient(40% 48% at 52% 44%, rgba(139, 92, 246, 0.13), transparent 66%),
    linear-gradient(180deg, #fbfaff 0%, #f2effe 52%, #fbfaff 100%);
}
.ed-hero__deco::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(92% 82% at 50% 28%, #000 40%, transparent 82%);
  mask-image: radial-gradient(92% 82% at 50% 28%, #000 40%, transparent 82%);
}
.ed-hero__orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: ed-drift 18s ease-in-out infinite alternate;
}
.ed-hero__orb--1 { width: 46vmax; height: 46vmax; top: -22vmax; right: -16vmax; background: radial-gradient(circle, rgba(124,58,237,0.45), transparent 65%); }
.ed-hero__orb--2 { width: 34vmax; height: 34vmax; bottom: -20vmax; left: -12vmax; background: radial-gradient(circle, rgba(14,165,233,0.38), transparent 65%); animation-delay: -6s; }
.ed-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--ed-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--ed-line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 78%);
}
@keyframes ed-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(2rem, 1.5rem, 0) scale(1.08); } }

.ed-hero__inner { position: relative; z-index: 1; }
.ed-hero__topline {
  display: flex; align-items: center; gap: 1rem;
  border-top: 1.5px solid var(--ed-ink);
  padding-top: 0.7rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  font-family: var(--ed-grotesk); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ed-muted); font-weight: 600;
}
.ed-hero__topline .ed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ed-violet); box-shadow: 0 0 0 4px rgba(124,58,237,0.16); }
.ed-hero__topline .ed-edition { margin-left: auto; font-variant-numeric: tabular-nums; }

.ed-hero__grid-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.ed-hero__title {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ed-ink);
}
.ed-hero__title .ed-em {
  font-style: italic; font-weight: 420;
  background: var(--ed-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: ed-sheen 8s ease-in-out infinite;
}
.ed-hero__title .ed-grotesk {
  font-family: var(--ed-grotesk); font-style: normal; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ed-ink);
}
@keyframes ed-sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.ed-hero__lead {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.6; color: var(--ed-ink-soft);
  max-width: 46ch; margin: clamp(1.4rem, 3vw, 2rem) 0 0;
}
.ed-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); }

/* Editorial buttons (self-contained, don't rely on bootstrap btn) */
.ed-btn {
  --b: var(--ed-ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--ed-grotesk); font-weight: 600; font-size: 0.98rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ed-ease), box-shadow 0.3s var(--ed-ease), background 0.3s var(--ed-ease), color 0.3s var(--ed-ease);
  will-change: transform;
}
.ed-btn i { transition: transform 0.3s var(--ed-ease); }
.ed-btn--primary {
  color: #fff; background: var(--ed-ink); position: relative; overflow: hidden;
  box-shadow: 0 12px 30px -12px rgba(124,58,237,0.6);
}
.ed-btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ed-grad); background-size: 180% 180%;
  opacity: 0; transition: opacity 0.35s var(--ed-ease); animation: ed-sheen 7s ease-in-out infinite;
}
.ed-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124,58,237,0.7); }
.ed-btn--primary:hover::before { opacity: 1; }
.ed-btn--primary:hover i { transform: translateX(4px); }
.ed-btn--ghost {
  color: var(--ed-ink); background: transparent; border-color: var(--ed-line);
}
.ed-btn--ghost:hover { transform: translateY(-2px); border-color: var(--ed-ink); background: rgba(124,58,237,0.04); }

/* hero proof strip */
.ed-hero__proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  padding-top: 1.2rem; border-top: 1px solid var(--ed-line-soft);
  font-family: var(--ed-grotesk); font-size: 0.9rem; color: var(--ed-ink-soft);
}
.ed-hero__proof strong { color: var(--ed-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ed-hero__proof-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ed-muted); opacity: 0.5; }

/* hero figure: framed editorial plate with caption */
.ed-hero__figure { margin: 0; position: relative; }
.ed-hero__frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--ed-line);
  box-shadow: 0 40px 80px -40px rgba(20,16,40,0.45), 0 2px 6px rgba(20,16,40,0.06);
  background: #fff;
  transform: rotate(0.6deg);
  transition: transform 0.5s var(--ed-ease), box-shadow 0.5s var(--ed-ease);
}
.ed-hero__frame:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 48px 90px -38px rgba(124,58,237,0.5); }
.ed-hero__frame img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }
.ed-hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(124,58,237,0.12));
  pointer-events: none;
}
.ed-hero__plate-tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-family: var(--ed-grotesk); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(11,10,20,0.78); color: #fff; padding: 0.4rem 0.7rem; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ed-hero__caption {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.85rem; font-family: var(--ed-serif); font-style: italic;
  font-size: 0.92rem; color: var(--ed-muted);
}
.ed-hero__caption::before { content: ""; width: 1.6rem; height: 1px; background: var(--ed-muted); opacity: 0.6; }

/* ============================================================ TICKER */
.ed-ticker {
  border-top: 1.5px solid var(--ed-ink);
  border-bottom: 1.5px solid var(--ed-ink);
  overflow: hidden; padding: 0.85rem 0; margin: clamp(1rem,3vw,2rem) 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  background: linear-gradient(0deg, rgba(124,58,237,0.03), transparent);
}
.ed-ticker__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ed-marquee 32s linear infinite; }
.ed-ticker:hover .ed-ticker__track { animation-play-state: paused; }
.ed-ticker__item {
  font-family: var(--ed-serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--ed-ink); padding: 0 1.5rem; display: inline-flex; align-items: center; gap: 1.5rem;
}
.ed-ticker__item::after { content: "✦"; font-style: normal; font-size: 0.7em; color: var(--ed-violet); }
@keyframes ed-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================ shared reveal
   Only hide when JS is active (.ed-js added by script). Without JS, everything
   stays visible — content is never trapped behind a failed/disabled observer. */
.z2h-home-editorial.ed-js [data-ed-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ed-ease), transform 0.7s var(--ed-ease);
}
.z2h-home-editorial.ed-js [data-ed-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================ SEMILLEROS rows */
.ed-rows { display: flex; flex-direction: column; }
.ed-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--ed-line);
  text-decoration: none; color: var(--ed-ink);
  position: relative; transition: background 0.4s var(--ed-ease);
}
.ed-rows .ed-row:last-child { border-bottom: 1px solid var(--ed-line); }
.ed-row::before {
  content: ""; position: absolute; left: -2vw; right: -2vw; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(124,58,237,0.06), transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ed-ease); border-radius: 14px; z-index: -1;
}
.ed-row:hover::before { opacity: 1; }
.ed-row__num {
  font-family: var(--ed-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ed-line); transition: color 0.4s var(--ed-ease); min-width: 2.2ch;
}
.ed-row:hover .ed-row__num { color: var(--ed-violet); }
.ed-row__copy { min-width: 0; }
.ed-row__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.ed-chip {
  font-family: var(--ed-grotesk); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--ed-violet-2); background: rgba(124,58,237,0.08);
  padding: 0.28rem 0.6rem; border-radius: 999px;
}
.ed-row__title { font-family: var(--ed-grotesk); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin: 0; letter-spacing: -0.01em; color: var(--ed-ink); }
.ed-row__tagline { color: var(--ed-muted); font-size: 0.95rem; margin: 0.3rem 0 0; max-width: 52ch; }
.ed-row__stats { display: flex; gap: 1.4rem; }
.ed-row__stats span { display: flex; flex-direction: column; line-height: 1.1; }
.ed-row__stats strong { font-family: var(--ed-grotesk); font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--ed-ink); }
.ed-row__stats em { font-style: normal; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ed-muted); }
.ed-row__go {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ed-line);
  display: grid; place-items: center; color: var(--ed-ink);
  transition: background 0.3s var(--ed-ease), color 0.3s var(--ed-ease), border-color 0.3s var(--ed-ease), transform 0.3s var(--ed-ease);
}
.ed-row:hover .ed-row__go { background: var(--ed-ink); color: #fff; border-color: var(--ed-ink); transform: rotate(-45deg); }

/* ============================================================ services trio */
.ed-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ed-line); border: 1px solid var(--ed-line); border-radius: 16px; overflow: hidden; margin-top: clamp(1.5rem,3vw,2.25rem); }
.ed-service { background: #fff; padding: clamp(1.3rem, 2.5vw, 1.8rem); transition: background 0.35s var(--ed-ease); }
.ed-service:hover { background: linear-gradient(180deg, rgba(124,58,237,0.05), #fff); }
.ed-service__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(124,58,237,0.1); color: var(--ed-violet-2); font-size: 1.1rem; margin-bottom: 0.9rem; }
.ed-service__title { font-family: var(--ed-grotesk); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.35rem; }
.ed-service__desc { color: var(--ed-muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }

/* ============================================================ generic editorial card grid (communities, courses, packages reuse existing — we only add wrapper spacing) */
.ed-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.ed-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ed-grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ============================================================ FULL ACCESS band */
.ed-fa {
  position: relative; border-radius: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #1a1230, #0b0a14 60%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.ed-fa::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(124,58,237,0.4), transparent 60%), radial-gradient(50% 60% at 90% 100%, rgba(14,165,233,0.28), transparent 60%); pointer-events: none; }
.ed-fa > * { position: relative; z-index: 1; }
.ed-fa__eyebrow { font-family: var(--ed-grotesk); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 600; color: #c4b5fd; display: inline-flex; align-items: center; gap: 0.5rem; }
.ed-fa__title { font-family: var(--ed-serif); font-weight: 360; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; margin: 0.8rem 0 0; color: #fff; }
.ed-fa__title em { font-style: italic; color: #c4b5fd; }
.ed-fa__sub { color: rgba(255,255,255,0.72); margin: 0.9rem 0 0; max-width: 46ch; line-height: 1.6; }
.ed-fa__list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 0.6rem; }
.ed-fa__list li { display: flex; align-items: flex-start; gap: 0.6rem; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.ed-fa__list i { color: #34d399; margin-top: 0.15rem; }
.ed-fa__btn { margin-top: 1.6rem; }
.ed-fa__btn.ed-btn--primary { background: #fff; color: var(--ed-ink); box-shadow: 0 18px 40px -16px rgba(255,255,255,0.4); }
.ed-fa__btn.ed-btn--primary::before { background: var(--ed-grad); }
.ed-fa__btn.ed-btn--primary:hover { color: #fff; }
.ed-fa__plans { display: grid; gap: 0.9rem; }
.ed-fa__plan { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.2rem 1.4rem; backdrop-filter: blur(8px); position: relative; }
.ed-fa__plan--featured { border-color: rgba(196,181,253,0.5); background: rgba(124,58,237,0.16); }
.ed-fa__plan-tag { position: absolute; top: -0.7rem; right: 1rem; font-family: var(--ed-grotesk); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ed-grad); color: #fff; padding: 0.3rem 0.6rem; border-radius: 999px; }
.ed-fa__plan-label { font-family: var(--ed-grotesk); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }
.ed-fa__plan-price { display: block; font-family: var(--ed-serif); font-size: 1.9rem; margin: 0.3rem 0; }
.ed-fa__plan-desc { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* ============================================================ RESPONSIVE */
@media (max-width: 920px) {
  .ed-hero__grid-layout { grid-template-columns: 1fr; }
  .ed-hero__figure { order: -1; max-width: 480px; }
  .ed-services { grid-template-columns: 1fr; }
  .ed-fa { grid-template-columns: 1fr; }
  .ed-row { grid-template-columns: auto 1fr auto; }
  .ed-row__stats { display: none; }
}
@media (max-width: 560px) {
  .ed-row { grid-template-columns: 1fr auto; }
  .ed-row__num { display: none; }
  .ed-head__kicker { display: none; }
}

/* ============================================================ MOTION SAFETY */
@media (prefers-reduced-motion: reduce) {
  .z2h-home-editorial * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .z2h-home-editorial [data-ed-reveal] { opacity: 1 !important; transform: none !important; }
  .ed-ticker__track { animation: none !important; }
  .ed-hero__orb { animation: none !important; }
}

/* ============================================================================
   EDITORIAL AUTH SCREENS (.ed-auth) — login, signup
   Split editorial layout: brand aside (dark mesh) + form panel (paper).
   Reuses brand bootstrap form classes; restyled within .ed-auth scope only.
   ========================================================================== */
.ed-auth {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 220px);
  padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem);
}
.ed-auth__shell {
  width: 100%; max-width: 1040px;
  display: grid; grid-template-columns: 1.02fr 1fr;
  background: #fff;
  border: 1px solid var(--ed-line);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(20,16,40,0.5), 0 2px 8px rgba(20,16,40,0.05);
  animation: ed-auth-in 0.6s var(--ed-ease) both;
}
.ed-auth__shell--wide { max-width: 1120px; }
@keyframes ed-auth-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- Brand aside ---- */
.ed-auth__aside {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 110% at 0% 0%, #1c1338 0%, #0b0a14 58%);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.ed-auth__aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(124,58,237,0.45), transparent 60%),
    radial-gradient(50% 55% at 85% 100%, rgba(14,165,233,0.30), transparent 60%);
}
.ed-auth__aside::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 20%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 30% 20%, #000, transparent 75%);
}
.ed-auth__aside > * { position: relative; z-index: 1; }
.ed-auth__brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.ed-auth__brand-glyph {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ed-grad); color: #fff; font-size: 1.05rem;
  box-shadow: 0 10px 26px -10px rgba(124,58,237,0.8);
}
.ed-auth__brand-name { font-family: var(--ed-grotesk); font-weight: 700; font-size: 1.05rem; display: block; line-height: 1.1; color: #fff; }
.ed-auth__brand-sub { font-family: var(--ed-grotesk); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(196,181,253,0.85); }
.ed-auth__aside-headline {
  font-family: var(--ed-serif); font-weight: 340; font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.05; letter-spacing: -0.015em; margin: 0; color: #fff;
}
.ed-auth__aside-headline em { font-style: italic; color: #c4b5fd; }
.ed-auth__aside-lead { color: rgba(255,255,255,0.7); margin: 0.9rem 0 0; line-height: 1.6; font-size: 0.96rem; max-width: 36ch; }
.ed-auth__points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.ed-auth__points li { display: flex; align-items: flex-start; gap: 0.6rem; color: rgba(255,255,255,0.82); font-size: 0.92rem; }
.ed-auth__points i { color: #34d399; margin-top: 0.18rem; }
.ed-auth__edition {
  font-family: var(--ed-grotesk); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 0.6rem;
}
.ed-auth__edition::before { content: ""; width: 1.8rem; height: 1px; background: rgba(255,255,255,0.3); }

/* ---- Form panel ---- */
.ed-auth__panel { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; }
.ed-auth__panel-head { margin-bottom: 1.5rem; }
.ed-auth__index {
  display: flex; align-items: baseline; gap: 0.8rem;
  border-top: 1.5px solid var(--ed-ink); padding-top: 0.6rem; margin-bottom: 1.1rem;
  font-family: var(--ed-grotesk); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ed-muted); font-weight: 600;
}
.ed-auth__index-num { color: var(--ed-violet); }
.ed-auth__title { font-family: var(--ed-serif); font-weight: 360; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0; color: var(--ed-ink); }
.ed-auth__title em { font-style: italic; color: var(--ed-violet-2); }
.ed-auth__subtitle { color: var(--ed-muted); margin: 0.5rem 0 0; font-size: 0.96rem; }

/* form fields (restyle bootstrap within scope) */
.ed-auth .form-label {
  font-family: var(--ed-grotesk); font-weight: 600; font-size: 0.8rem;
  color: var(--ed-ink-soft); margin-bottom: 0.35rem; letter-spacing: 0.01em;
}
.ed-auth .form-control,
.ed-auth .form-select,
.ed-auth textarea.form-control {
  font-family: var(--ed-body); font-size: 0.98rem; color: var(--ed-ink);
  background: #fbfaff;
  border: 1.5px solid var(--ed-line);
  border-radius: 12px; padding: 0.75rem 0.95rem;
  transition: border-color 0.2s var(--ed-ease), box-shadow 0.2s var(--ed-ease), background 0.2s var(--ed-ease);
  min-height: 48px;
}
.ed-auth .form-control:focus,
.ed-auth .form-select:focus,
.ed-auth textarea.form-control:focus {
  border-color: var(--ed-violet);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.14);
  outline: none;
}
.ed-auth .form-control::placeholder { color: #a7a2bb; }

.ed-auth__section {
  font-family: var(--ed-grotesk); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ed-violet-2);
  display: flex; align-items: center; gap: 0.8rem; margin-top: 0.4rem;
}
.ed-auth__section::after { content: ""; flex: 1; height: 1px; background: var(--ed-line); }

/* password show/hide */
.ed-auth .z2h-pw-wrap { position: relative; }
.ed-auth .z2h-pw-wrap .form-control { padding-right: 2.8rem; }
.ed-auth .z2h-pw-toggle {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--ed-muted); cursor: pointer;
  width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center;
  transition: color 0.2s var(--ed-ease), background 0.2s var(--ed-ease);
}
.ed-auth .z2h-pw-toggle:hover { color: var(--ed-violet-2); background: rgba(124,58,237,0.08); }

/* submit + secondary buttons */
.ed-auth .ed-btn--block { width: 100%; justify-content: center; }
.ed-auth__btnrow { display: grid; gap: 0.7rem; margin-top: 0.4rem; }

/* alerts */
.ed-auth .alert { border-radius: 12px; border: 1.5px solid transparent; font-size: 0.9rem; padding: 0.75rem 0.95rem; }
.ed-auth .alert-info { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); color: var(--ed-violet-2); }
.ed-auth .alert-danger { background: rgba(220,38,38,0.07); border-color: rgba(220,38,38,0.25); color: #b91c1c; }
.ed-auth .alert-secondary { background: #f4f3fb; border-color: var(--ed-line); color: var(--ed-ink-soft); }

/* footer separators / links */
.ed-auth__sep { border: 0; border-top: 1px solid var(--ed-line); margin: 1.4rem 0 1rem; }
.ed-auth__foot { font-size: 0.9rem; color: var(--ed-muted); margin: 0; }
.ed-auth__foot + .ed-auth__foot { margin-top: 0.35rem; }
.ed-auth__foot a { color: var(--ed-violet-2); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color 0.2s var(--ed-ease); }
.ed-auth__foot a:hover { border-color: var(--ed-violet); }

/* responsive */
@media (max-width: 820px) {
  .ed-auth { min-height: 0; }
  .ed-auth__shell, .ed-auth__shell--wide { grid-template-columns: 1fr; max-width: 560px; }
  .ed-auth__aside {
    flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem;
    padding: 1.3rem 1.4rem;
  }
  .ed-auth__aside-headline, .ed-auth__aside-lead, .ed-auth__points, .ed-auth__edition { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-auth__shell { animation: none; }
}

/* ============================================================================
   UNIFIED TYPOGRAPHY — display headings use Space Grotesk (no serif/italic).
   Space Grotesk has no true italic, so accent words use weight + color instead.
   ========================================================================== */
.ed-head__title,
.ed-hero__title,
.ed-fa__title,
.ed-auth__aside-headline,
.ed-auth__title { font-weight: 600; }

.ed-head__title em,
.ed-hero__title .ed-em,
.ed-fa__title em,
.ed-auth__aside-headline em,
.ed-auth__title em,
.ed-hero__caption,
.ed-ticker__item,
.ed-row__num { font-style: normal; }

.ed-head__title em,
.ed-hero__title .ed-em,
.ed-fa__title em,
.ed-auth__aside-headline em,
.ed-auth__title em { font-weight: 700; }

/* ============================================================================
   HERO — cleaner & minimal refinement (calmer atmosphere, more whitespace,
   a clean unframed-feeling image; gridlines/badge/caption removed in markup).
   ========================================================================== */
.ed-hero--minimal {
  padding-top: clamp(2.75rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.ed-hero--minimal .ed-hero__orb--1 { opacity: 0.24; }
.ed-hero--minimal .ed-hero__grid-layout { gap: clamp(2rem, 5vw, 4.5rem); }
.ed-hero--minimal .ed-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.05;
}
.ed-hero--minimal .ed-hero__title .ed-em { animation: none; background-position: 0% 50%; }
.ed-hero--minimal .ed-hero__lead { max-width: 42ch; }
.ed-hero--minimal .ed-hero__frame {
  transform: none;
  border-radius: 20px;
  box-shadow: 0 30px 64px -42px rgba(20,16,40,0.4);
}
.ed-hero--minimal .ed-hero__frame::after { display: none; }
.ed-hero--minimal .ed-hero__frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 42px 84px -42px rgba(124,58,237,0.32);
}

/* ============================================================================
   FULL ACCESS — premium plan cards (price hierarchy, "most popular" ribbon,
   savings pill, animated gradient border + glow on the featured plan).
   ========================================================================== */
@property --ed-fa-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.ed-fa__plans { gap: 1.1rem; }
.ed-fa__plan {
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  transition: transform 0.35s var(--ed-ease), box-shadow 0.35s var(--ed-ease), border-color 0.35s var(--ed-ease);
}
.ed-fa__plan:hover { transform: translateY(-3px); }
.ed-fa__plan-label { display: block; }
.ed-fa__plan-pricewrap { display: flex; align-items: baseline; gap: 0.45rem; margin-top: 0.5rem; }
.ed-fa__plan-price {
  font-family: var(--ed-grotesk); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1; margin: 0;
  color: #fff; font-variant-numeric: tabular-nums;
}
.ed-fa__plan-per { font-family: var(--ed-grotesk); font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.5); }
.ed-fa__plan-desc { margin-top: 0.75rem; color: rgba(255,255,255,0.64); }

.ed-fa__plan--featured {
  background: linear-gradient(180deg, rgba(124,58,237,0.20), rgba(18,13,38,0.65));
  border-color: transparent;
  box-shadow: 0 24px 54px -22px rgba(124,58,237,0.55);
}
.ed-fa__plan--featured > * { position: relative; z-index: 1; }
.ed-fa__plan--featured::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--ed-fa-angle), #7c3aed, #0ea5e9, #c4b5fd, #7c3aed);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 0;
  animation: ed-fa-border 6s linear infinite;
}
@keyframes ed-fa-border { to { --ed-fa-angle: 360deg; } }

.ed-fa__plan-ribbon {
  position: absolute; top: -0.75rem; left: 1.4rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--ed-grotesk); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ed-grad); color: #fff;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(124,58,237,0.7);
}
.ed-fa__plan-ribbon i { font-size: 0.7em; }
.ed-fa__plan-save {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.7rem;
  font-family: var(--ed-grotesk); font-size: 0.72rem; font-weight: 600;
  color: #6ee7b7; background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3); padding: 0.3rem 0.6rem; border-radius: 999px;
}
.ed-fa__plan-save i { font-size: 0.85em; }

@media (prefers-reduced-motion: reduce) {
  .ed-fa__plan--featured::after { animation: none; }
  .ed-fa__plan:hover { transform: none; }
}

/* ============================================================ HERO VISUAL
   Animated "code editor" composition that replaces the old static image:
   a dark glass IDE card with a violet glow, live typing reveal, floating
   skill chips and a stat badge. Reads instantly as "software + academy". */
.ed-viz { position: relative; margin: 0; perspective: 1400px; }
.ed-viz__glow {
  position: absolute; inset: -14% -10% -18% -8%; z-index: 0; border-radius: 40px;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(124,58,237,0.45), transparent 62%),
    radial-gradient(55% 55% at 20% 85%, rgba(14,165,233,0.38), transparent 60%);
  filter: blur(14px); animation: edVizGlow 9s ease-in-out infinite;
}
@keyframes edVizGlow {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  50%      { transform: translate3d(0,-14px,0) scale(1.04); opacity: 1; }
}
.ed-code {
  position: relative; z-index: 2; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #151228 0%, #100d1f 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 90px -40px rgba(76,29,149,0.75), 0 2px 0 rgba(255,255,255,0.05) inset;
  transform: rotate(-1.6deg); transition: transform 0.5s var(--ed-ease);
}
.ed-viz:hover .ed-code { transform: rotate(0deg) translateY(-4px); }
.ed-code__bar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ed-code__dot { width: 11px; height: 11px; border-radius: 50%; }
.ed-code__dot--r { background: #ff5f56; } .ed-code__dot--y { background: #ffbd2e; } .ed-code__dot--g { background: #27c93f; }
.ed-code__file { margin-left: 0.6rem; font-family: var(--ed-grotesk); font-size: 0.78rem; color: #9a92c0; letter-spacing: 0.02em; }
.ed-code__tab { margin-left: auto; font-size: 0.68rem; color: #6f6a92; text-transform: uppercase; letter-spacing: 0.16em; }
.ed-code__body {
  padding: 1.2rem 1.3rem 1.5rem; font-family: ui-monospace, "SFMono-Regular", "Space Grotesk", monospace;
  font-size: 0.86rem; line-height: 1.85; color: #d8d3f0;
}
.ed-cl { display: block; white-space: pre; opacity: 0; transform: translateY(6px); animation: edClIn 0.5s var(--ed-ease) forwards; }
.ed-cl:nth-child(1){animation-delay:.20s;} .ed-cl:nth-child(2){animation-delay:.45s;} .ed-cl:nth-child(3){animation-delay:.70s;}
.ed-cl:nth-child(4){animation-delay:.95s;} .ed-cl:nth-child(5){animation-delay:1.20s;} .ed-cl:nth-child(6){animation-delay:1.45s;}
@keyframes edClIn { to { opacity: 1; transform: none; } }
.ed-code__body .t-key { color: #c084fc; } .ed-code__body .t-fn { color: #38bdf8; }
.ed-code__body .t-str { color: #5eead4; } .ed-code__body .t-num { color: #fca5a5; }
.ed-code__body .t-com { color: #6b6690; font-style: italic; }
.ed-cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--ed-cyan); margin-left: 2px; animation: edBlink 1s steps(2) infinite; }
@keyframes edBlink { 50% { opacity: 0; } }

.ed-vchip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem; border-radius: 999px; font-family: var(--ed-grotesk); font-weight: 600; font-size: 0.82rem;
  background: rgba(255,255,255,0.92); color: var(--ed-ink);
  box-shadow: 0 16px 34px -16px rgba(76,29,149,0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(124,58,237,0.16); animation: edFloaty 6s ease-in-out infinite;
}
.ed-vchip i { color: var(--ed-violet); }
.ed-vchip--1 { top: -6%; left: -4%; animation-delay: 0s; }
.ed-vchip--2 { top: 34%; right: -9%; animation-delay: -2s; }
.ed-vchip--3 { bottom: -7%; left: 16%; animation-delay: -4s; }
@keyframes edFloaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
.ed-vstat {
  position: absolute; z-index: 4; bottom: -9%; right: -4%;
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.95rem; border-radius: 16px;
  background: #100d1f; color: #fff; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 50px -22px rgba(76,29,149,0.8); animation: edFloaty 7s ease-in-out infinite; animation-delay: -3s;
}
.ed-vstat__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ed-grad); color: #fff; }
.ed-vstat b { font-family: var(--ed-grotesk); font-size: 1.05rem; display: block; line-height: 1; }
.ed-vstat span span { font-size: 0.72rem; color: #a49ecb; }

@media (max-width: 860px) {
  .ed-viz { order: -1; max-width: 440px; margin: 0 auto 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-viz__glow, .ed-vchip, .ed-vstat, .ed-cursor { animation: none; }
  .ed-cl { animation: none; opacity: 1; transform: none; }
}
