/* ==========================================================================
   Editorial Brutalism — standalone design system
   No Bootstrap, no Tailwind, no jQuery. Fonts loaded via <link> in layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Light — Lavender Paper & Ink (brand: #6D3EF2) */
  --bg: 256 40% 96%;
  --fg: 258 35% 10%;
  --card: 256 45% 98%;
  --primary: 258 35% 12%;
  --primary-fg: 256 40% 97%;
  --accent: 256 87% 60%;
  --accent-fg: 256 40% 98%;
  --muted: 256 20% 90%;
  --muted-fg: 258 12% 38%;
  --border: 258 28% 22%;
  --grid-line: 258 22% 42%;
  --shadow-ink: 258 35% 12%;

  --font-sans: 'Archivo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  /* Dark — Violet Ink Console */
  --bg: 258 40% 6%;
  --fg: 256 24% 93%;
  --card: 258 34% 9%;
  --primary: 256 75% 68%;
  --primary-fg: 258 40% 7%;
  --accent: 256 75% 68%;
  --accent-fg: 258 40% 7%;
  --muted: 258 28% 13%;
  --muted-fg: 256 16% 65%;
  --border: 257 24% 22%;
  --grid-line: 256 14% 42%;
  --shadow-ink: 256 60% 55%;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

body.ed-body {
  margin: 0;
  background-color: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}

.ed-body *,
.ed-body *::before,
.ed-body *::after {
  box-sizing: border-box;
  border-radius: 0;
}

.ed-body h1,
.ed-body h2,
.ed-body h3,
.ed-body h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ed-body a {
  color: inherit;
}

.ed-body img {
  max-width: 100%;
  height: auto;
}

.ed-body :focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

.ed-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .ed-container {
    padding-inline: 28px;
  }
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.ed-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: hsl(var(--bg));
  border-bottom: 1px solid hsl(var(--border));
  transition: box-shadow 0.25s var(--ease), background-color 0.3s;
}

.ed-header.is-scrolled {
  box-shadow: 0 4px 0 hsl(var(--shadow-ink) / 0.12);
}

.ed-progress {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

#ed-progress-bar {
  height: 100%;
  width: 0%;
  background: hsl(var(--accent));
}

.ed-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.ed-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ed-header__logo img {
  max-height: 34px;
  width: auto;
}

.ed-header__logo em {
  font-style: normal;
  color: hsl(var(--accent));
}

/* Desktop navigation */

.ed-nav {
  display: none;
}

@media (min-width: 1024px) {
  .ed-nav {
    display: block;
  }
}

.ed-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-nav li {
  position: relative;
}

.ed-nav a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s var(--ease);
}

.ed-nav a:hover,
.ed-nav a.is-current,
.ed-nav li.is-current > a {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.ed-nav ul.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 5px 5px 0 hsl(var(--shadow-ink));
  padding: 8px 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.ed-nav li:hover > ul.submenu,
.ed-nav li:focus-within > ul.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ed-nav ul.submenu li {
  position: static;
}

.ed-nav ul.submenu a {
  display: block;
  padding: 10px 16px;
}

.ed-nav ul.submenu a:hover {
  background: hsl(var(--muted));
  text-decoration: none;
}

/* Header actions */

.ed-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ed-theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease);
}

.ed-theme-toggle:hover {
  background: hsl(var(--muted));
}

.ed-theme-toggle svg {
  width: 16px;
  height: 16px;
}

.ed-theme-toggle__sun {
  display: none;
}

.ed-theme-toggle__moon {
  display: block;
}

html[data-theme="dark"] .ed-theme-toggle__sun {
  display: block;
}

html[data-theme="dark"] .ed-theme-toggle__moon {
  display: none;
}

/* Buttons */

.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 13px 22px;
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ed-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 hsl(var(--shadow-ink));
}

.ed-btn--primary {
  background: hsl(var(--accent));
  color: hsl(var(--accent-fg));
  border-color: hsl(var(--accent));
}

.ed-btn--accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-fg));
  border-color: hsl(var(--border));
}

.ed-btn--ghost {
  background: transparent;
}

/* Burger */

.ed-burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.ed-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: hsl(var(--fg));
  margin: 2px auto;
}

@media (min-width: 1024px) {
  .ed-burger {
    display: none;
  }
}

@media (max-width: 559.98px) {
  .ed-header__cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   4. Mobile menu
   -------------------------------------------------------------------------- */

.ed-mobilemenu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: hsl(var(--bg));
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}

.ed-mobilemenu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.ed-mobilemenu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.ed-mobilemenu__close {
  width: 40px;
  height: 40px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ed-mobilemenu__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ed-mobilemenu__nav li {
  border-bottom: 1px solid hsl(var(--border));
}

.ed-mobilemenu__nav a {
  display: block;
  padding: 18px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ed-mobilemenu__nav ul.submenu {
  position: static;
  padding-left: 16px;
}

.ed-mobilemenu__nav ul.submenu li:last-child {
  border-bottom: none;
}

.ed-mobilemenu__nav ul.submenu a {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
}

.ed-mobilemenu__meta {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: hsl(var(--muted-fg));
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   5. Sections and typography helpers
   -------------------------------------------------------------------------- */

.ed-section {
  padding-block: 80px;
}

@media (min-width: 768px) {
  .ed-section {
    padding-block: 112px;
  }
}

.ed-section--muted {
  background: hsl(var(--muted));
}

.ed-section--bordered {
  border-top: 1px solid hsl(var(--border));
}

.ed-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--muted-fg));
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ed-kicker::after {
  content: "";
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: hsl(var(--border));
}

.ed-kicker .ed-kicker__num {
  color: hsl(var(--accent));
}

.ed-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.ed-lead {
  font-size: 17px;
  line-height: 1.7;
  color: hsl(var(--muted-fg));
  max-width: 640px;
  margin: 0 0 40px;
}

/* --- Inline title icons (SVG, currentColor) --- */

.ed-icon-flame,
.ed-icon-handshake {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.08em;
  color: hsl(var(--accent));
}

.ed-icon-flame {
  animation: ed-flame-flicker 1.6s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes ed-flame-flicker {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.82;
    transform: scale(0.96) rotate(-1.5deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.04) rotate(1deg);
  }
  75% {
    opacity: 0.88;
    transform: scale(0.98) rotate(-0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-icon-flame {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   6. Bordered grid system
   -------------------------------------------------------------------------- */

.ed-grid {
  display: grid;
  border-top: 1px solid hsl(var(--border));
  border-left: 1px solid hsl(var(--border));
}

.ed-grid > * {
  border-right: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.ed-grid--2 {
  grid-template-columns: 1fr;
}

.ed-grid--3 {
  grid-template-columns: 1fr;
}

.ed-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ed-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ed-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .ed-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ed-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ed-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ed-cell {
  padding: 28px;
  background: hsl(var(--card));
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.ed-card {
  background: hsl(var(--card));
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ed-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 hsl(var(--shadow-ink));
  z-index: 1;
}

.ed-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: hsl(var(--accent));
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease);
}

.ed-card:hover::after {
  transform: rotate(45deg) scale(1);
}

.ed-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: hsl(var(--accent));
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  display: block;
}

.ed-card__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
}

.ed-card__title a {
  text-decoration: none;
}

.ed-card__title a:hover {
  color: hsl(var(--accent));
}

.ed-card__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: hsl(var(--muted-fg));
  margin: 0 0 20px;
}

.ed-card__link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s var(--ease);
}

.ed-card__link svg {
  width: 20px;
  height: auto;
  transition: transform 0.2s var(--ease);
}

.ed-card__link:hover {
  color: hsl(var(--accent));
}

.ed-card__link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.ed-hero {
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
  background-image: radial-gradient(hsl(var(--grid-line) / 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ed-hero__grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 1024px) {
  .ed-hero__grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }
}

.ed-hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--muted-fg));
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ed-hero__kicker::after {
  content: "";
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: hsl(var(--border));
}

.ed-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: hsl(var(--accent));
  flex-shrink: 0;
  animation: ed-blink 1.6s infinite;
}

.ed-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 24px;
}

.ed-hero h1 span {
  color: hsl(var(--accent));
  border-bottom: 4px solid hsl(var(--accent));
}

.ed-hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: hsl(var(--muted-fg));
  max-width: 640px;
  margin: 0 0 36px;
}

.ed-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.ed-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ed-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   9. Status board (hero right)
   -------------------------------------------------------------------------- */

.ed-board {
  background: hsl(var(--card));
  border: 1.5px solid hsl(var(--border));
  box-shadow: 8px 8px 0 hsl(var(--shadow-ink));
}

.ed-board__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.ed-board__head > :first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ed-board__head > :last-child {
  color: hsl(var(--muted-fg));
}

.ed-board__body {
  padding: 10px 0;
  min-height: 300px;
}

.ed-livelog {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-livelog__row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px dashed hsl(var(--border) / 0.35);
  animation: ed-login 0.35s var(--ease);
}

.ed-livelog__time {
  color: hsl(var(--muted-fg));
}

.ed-livelog__ok {
  color: hsl(var(--accent));
}

.ed-livelog__warn {
  color: hsl(var(--fg));
}

.ed-board__foot {
  padding: 12px 18px;
  border-top: 1px solid hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 11px;
  color: hsl(var(--muted-fg));
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   10. Ticker
   -------------------------------------------------------------------------- */

.ed-ticker {
  border-block: 1px solid hsl(var(--border));
  overflow: hidden;
  padding-block: 14px;
  background: hsl(var(--card));
}

.ed-ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ed-marquee 30s linear infinite;
}

.ed-ticker:hover .ed-ticker__track {
  animation-play-state: paused;
}

.ed-ticker__item {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}

.ed-ticker__item::after {
  content: "\2726";
  color: hsl(var(--accent));
}

/* --------------------------------------------------------------------------
   11. Split (about)
   -------------------------------------------------------------------------- */

.ed-split {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .ed-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.ed-split__panel {
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 36px;
  box-shadow: 8px 8px 0 hsl(var(--shadow-ink));
}

.ed-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ed-checklist li {
  padding: 12px 0;
  border-bottom: 1px dashed hsl(var(--border) / 0.35);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
}

.ed-checklist li svg {
  color: hsl(var(--accent));
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Accordion
   -------------------------------------------------------------------------- */

.ed-accordion {
  border-top: 1px solid hsl(var(--border));
}

.ed-accordion__item {
  border-bottom: 1px solid hsl(var(--border));
}

.ed-accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: inherit;
}

.ed-accordion__icon {
  font-family: var(--font-mono);
  font-size: 14px;
  width: 24px;
  height: 24px;
  border: 1px solid hsl(var(--border));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.ed-accordion__item.is-open .ed-accordion__icon {
  transform: rotate(45deg);
  background: hsl(var(--accent));
  color: hsl(var(--accent-fg));
  border-color: hsl(var(--border));
}

.ed-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.ed-accordion__panel > div {
  overflow: hidden;
}

.ed-accordion__item.is-open .ed-accordion__panel {
  grid-template-rows: 1fr;
}

.ed-accordion__body {
  padding: 0 0 22px;
  color: hsl(var(--muted-fg));
  line-height: 1.7;
  font-size: 15px;
  max-width: 640px;
}

/* FAQ layout */

.ed-faq {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .ed-faq {
    grid-template-columns: 5fr 7fr;
  }

  .ed-faq__side {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */

.ed-pricing {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .ed-pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ed-pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ed-price-card {
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ed-price-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 hsl(var(--shadow-ink));
}

.ed-price-card--featured {
  border: 2px solid hsl(var(--accent));
  box-shadow: 8px 8px 0 hsl(var(--shadow-ink));
}

.ed-price-card__badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-fg));
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 5px 12px;
}

.ed-price-card__plan {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsl(var(--muted-fg));
  margin-bottom: 14px;
}

.ed-price-card__amount {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 26px;
}

.ed-price-card__amount small {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--muted-fg));
  letter-spacing: 0;
}

.ed-price-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.ed-price-card__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed hsl(var(--border) / 0.3);
}

.ed-check,
.ed-cross {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ed-check {
  color: hsl(var(--accent));
}

.ed-cross {
  color: hsl(var(--muted-fg));
  opacity: 0.6;
}

.ed-price-card__list li.is-off span {
  color: hsl(var(--muted-fg));
  opacity: 0.7;
}

.ed-price-card__cta {
  margin-top: auto;
  justify-content: center;
}

/* Included in every plan */

.ed-included {
  margin-top: 56px;
}

.ed-included__head {
  text-align: center;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-bottom: none;
  background: hsl(var(--card));
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.ed-included__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ed-included__list li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  padding: 6px 0;
}

.ed-included__list svg {
  width: 14px;
  height: 14px;
  color: hsl(var(--accent));
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. Quotes (testimonials)
   -------------------------------------------------------------------------- */

.ed-quotes {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .ed-quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ed-quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ed-quote {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ed-quote:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 hsl(var(--shadow-ink));
}

.ed-quote__mark {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: hsl(var(--accent));
  margin-bottom: 14px;
}

.ed-quote__text {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  flex: 1;
}

.ed-quote__who {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid hsl(var(--border));
  padding-top: 18px;
}

.ed-quote__avatar {
  width: 42px;
  height: 42px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-fg));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.ed-quote__name {
  font-weight: 700;
  font-size: 14.5px;
}

.ed-quote__role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-fg));
}

/* --------------------------------------------------------------------------
   15. Stats
   -------------------------------------------------------------------------- */

.ed-stats .ed-cell {
  text-align: left;
}

.ed-stat__value {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ed-stat__value .ed-stat__plus {
  color: hsl(var(--accent));
}

.ed-stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsl(var(--muted-fg));
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */

.ed-cta {
  background: hsl(var(--primary));
  color: hsl(var(--primary-fg));
  padding-block: 80px;
  text-align: center;
}

.ed-cta .ed-title {
  color: inherit;
}

.ed-cta__sub {
  color: hsl(var(--primary-fg) / 0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.7;
}

.ed-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.ed-cta .ed-btn:hover {
  box-shadow: 4px 4px 0 hsl(var(--accent));
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.ed-footer {
  border-top: 2px solid hsl(var(--border));
  background: hsl(var(--card));
}

.ed-footer__top {
  padding-block: 64px;
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .ed-footer__top {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

.ed-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ed-footer__logo img {
  max-height: 34px;
  width: auto;
}

.ed-footer__logo em {
  font-style: normal;
  color: hsl(var(--accent));
}

.ed-footer__brand p {
  font-size: 14.5px;
  color: hsl(var(--muted-fg));
  line-height: 1.7;
  max-width: 300px;
}

.ed-footer__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--muted-fg));
  margin: 0 0 18px;
}

.ed-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ed-footer__links li {
  margin-bottom: 12px;
}

.ed-footer__links a {
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.ed-footer__links a:hover {
  color: hsl(var(--accent));
}

.ed-footer select.language-switch {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: var(--font-mono);
  font-size: 12px;
  appearance: auto;
  cursor: pointer;
}

.ed-footer__bottom {
  border-top: 1px solid hsl(var(--border));
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--muted-fg));
}

/* --------------------------------------------------------------------------
   18. Back to top
   -------------------------------------------------------------------------- */

.ed-backtotop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--fg));
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 hsl(var(--shadow-ink));
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease), box-shadow 0.2s var(--ease);
}

.ed-backtotop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ed-backtotop:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 hsl(var(--shadow-ink));
}

.ed-backtotop svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   20. Keyframes
   -------------------------------------------------------------------------- */

@keyframes ed-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

@keyframes ed-marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes ed-login {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   21. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ed-ticker__track {
    animation: none;
  }

  .ed-dot {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   22. Inner pages — editorial conversion additions
   Page header (breadcrumb replacement), forms, alerts, blog list/detail,
   sidebar widgets, pagination, prose, team cards, auth panel, data table.
   Uses existing design tokens only: hard offset shadows, 1.5px borders,
   JetBrains Mono uppercase kickers, no border-radius, no soft shadows.
   ========================================================================== */

/* --- Page header (replaces old Bootstrap breadcrumb hero) --- */

.ed-pagehead {
  padding-top: 140px;
  padding-bottom: 56px;
  border-bottom: 1px solid hsl(var(--border));
  background-image: radial-gradient(hsl(var(--grid-line) / 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ed-pagehead__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
}

.ed-pagehead__lead {
  margin: 18px 0 0;
}

/* --- Forms --- */

.ed-form__grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .ed-form__grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ed-form__grid--2 > .ed-field--full {
    grid-column: 1 / -1;
  }
}

.ed-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ed-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted-fg));
}

.ed-input,
.ed-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--fg));
  font-family: var(--font-sans);
  font-size: 15px;
  transition: box-shadow 0.2s var(--ease);
}

.ed-textarea {
  min-height: 160px;
  resize: vertical;
}

.ed-input:focus,
.ed-textarea:focus {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 0;
  box-shadow: 4px 4px 0 hsl(var(--shadow-ink));
}

.ed-input::placeholder,
.ed-textarea::placeholder {
  color: hsl(var(--muted-fg));
}

.ed-input.is-invalid,
.ed-textarea.is-invalid {
  border-color: hsl(0 72% 45%);
}

.ed-error-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: hsl(0 72% 45%);
}

/* --- Alerts --- */

.ed-alert {
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 5px 5px 0 hsl(var(--shadow-ink));
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 14.5px;
  text-align: left;
}

.ed-alert ul {
  margin: 0;
  padding-left: 18px;
}

.ed-alert--success {
  border-color: hsl(150 60% 32%);
}

.ed-alert--error {
  border-color: hsl(0 72% 45%);
}

/* --- Blog layout, post cards --- */

.ed-bloglayout {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .ed-bloglayout {
    grid-template-columns: 8fr 4fr;
    align-items: start;
  }
}

.ed-post {
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  margin-bottom: 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ed-post:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 hsl(var(--shadow-ink));
}

.ed-post__thumb {
  display: block;
  border-bottom: 1px solid hsl(var(--border));
}

.ed-post__thumb img {
  display: block;
  width: 100%;
}

.ed-post__body {
  padding: 28px;
}

.ed-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--muted-fg));
  margin-bottom: 14px;
}

.ed-post__meta a {
  text-decoration: none;
  color: inherit;
}

.ed-post__meta a:hover {
  color: hsl(var(--accent));
}

.ed-post__title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
}

.ed-post__title a {
  text-decoration: none;
}

.ed-post__title a:hover {
  color: hsl(var(--accent));
}

.ed-post__excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: hsl(var(--muted-fg));
  margin: 0 0 20px;
}

/* --- Sidebar widgets --- */

.ed-widget {
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 24px;
  margin-bottom: 28px;
}

.ed-widget__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--muted-fg));
  margin: 0 0 18px;
}

.ed-search {
  display: flex;
  border: 1.5px solid hsl(var(--border));
}

.ed-search input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 12px 14px;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: var(--font-sans);
  font-size: 14px;
}

.ed-search input:focus {
  outline: 2px solid hsl(var(--accent));
  outline-offset: -2px;
}

.ed-search button {
  border: none;
  border-left: 1.5px solid hsl(var(--border));
  background: hsl(var(--primary));
  color: hsl(var(--primary-fg));
  padding: 0 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ed-search button svg {
  width: 16px;
  height: 16px;
}

.ed-linklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-linklist li {
  border-bottom: 1px dashed hsl(var(--border) / 0.35);
}

.ed-linklist li:last-child {
  border-bottom: none;
}

.ed-linklist a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14.5px;
  text-decoration: none;
}

.ed-linklist a:hover {
  color: hsl(var(--accent));
}

.ed-minipost {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed hsl(var(--border) / 0.35);
}

.ed-minipost:last-child {
  border-bottom: none;
}

.ed-minipost__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

.ed-minipost__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ed-minipost__date {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--muted-fg));
  margin-bottom: 4px;
}

.ed-minipost__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.ed-minipost__title a {
  text-decoration: none;
}

.ed-minipost__title a:hover {
  color: hsl(var(--accent));
}

.ed-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ed-taglist a,
.ed-taglist span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ed-taglist a:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-fg));
}

/* --- Pagination (styles the Laravel default pagination view) --- */

.ed-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.ed-pagination li a,
.ed-pagination li span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ed-pagination li.active span {
  background: hsl(var(--accent));
  color: hsl(var(--accent-fg));
}

.ed-pagination li.disabled span {
  opacity: 0.45;
}

.ed-pagination li a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 hsl(var(--shadow-ink));
}

/* --- Prose (CMS pages, blog detail, feature detail) --- */

.ed-prose {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.8;
}

.ed-prose h1,
.ed-prose h2,
.ed-prose h3,
.ed-prose h4 {
  margin: 1.6em 0 0.6em;
  line-height: 1.25;
}

.ed-prose p {
  margin: 0 0 1.2em;
}

.ed-prose a {
  color: hsl(var(--accent));
}

.ed-prose img {
  border: 1.5px solid hsl(var(--border));
}

.ed-prose blockquote {
  border-left: 4px solid hsl(var(--accent));
  margin: 24px 0;
  padding: 8px 0 8px 20px;
  color: hsl(var(--muted-fg));
}

.ed-prose pre,
.ed-prose code {
  font-family: var(--font-mono);
  font-size: 13px;
}

.ed-prose pre {
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--muted));
  padding: 18px;
  overflow-x: auto;
}

.ed-prose ul,
.ed-prose ol {
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.ed-prose li {
  margin: 0 0 0.4em;
}

.ed-prose strong,
.ed-prose b {
  font-weight: 700;
}

.ed-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 15px;
}

.ed-prose table th,
.ed-prose table td {
  border: 1.5px solid hsl(var(--border));
  padding: 10px 14px;
  text-align: left;
}

.ed-prose table th {
  background: hsl(var(--muted));
}

/* Neutralize colors pasted into CMS content (e.g. white text from a
   copy/paste) so prose always inherits the theme foreground. */
.ed-prose [style] {
  color: inherit !important;
  background: transparent !important;
}

.ed-prose font {
  color: inherit !important;
}

.ed-prose h1,
.ed-prose h2,
.ed-prose h3,
.ed-prose h4,
.ed-prose p,
.ed-prose li {
  color: hsl(var(--fg));
}

/* --- Team cards --- */

.ed-team-card__img {
  border: 1.5px solid hsl(var(--border));
  margin-bottom: 18px;
  overflow: hidden;
}

.ed-team-card__img img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ed-team-card__name {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}

.ed-team-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted-fg));
}

.ed-team-card__social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.ed-team-card__social a {
  width: 32px;
  height: 32px;
  border: 1px solid hsl(var(--border));
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ed-team-card__social a:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-fg));
}

.ed-team-card__social svg {
  width: 14px;
  height: 14px;
}

/* --- Auth / register panel --- */

.ed-auth {
  max-width: 520px;
  margin-inline: auto;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 40px 36px;
  box-shadow: 8px 8px 0 hsl(var(--shadow-ink));
}

.ed-auth .ed-field {
  margin-bottom: 18px;
}

.ed-auth__links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
}

.ed-auth__links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ed-auth__links a:hover {
  color: hsl(var(--accent));
}

/* --- Data table (callback / token page) --- */

.ed-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 8px 8px 0 hsl(var(--shadow-ink));
}

.ed-table th,
.ed-table td {
  padding: 14px 16px;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
  vertical-align: top;
}

.ed-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted-fg));
}

.ed-table td {
  font-family: var(--font-mono);
  font-size: 12.5px;
  word-break: break-all;
}

/* --- Misc: feature card icon, badge images (why-choose) --- */

.ed-card__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--bg));
  padding: 8px;
  display: block;
  margin-bottom: 18px;
}

.ed-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 48px;
}

.ed-badges img {
  max-height: 52px;
  width: auto;
  border: 1px solid hsl(var(--border));
}

/* --------------------------------------------------------------------------
   23. Auth pages — login / register / forgot / reset
   -------------------------------------------------------------------------- */

/* Shared shadow token: full-strength ink offset in light mode,
   dimmed in dark mode so hard shadows don't glow. */
.ed-auth-split,
.ed-auth-simple-page {
  --auth-shadow: var(--shadow-ink);
}

html[data-theme="dark"] .ed-auth-split,
html[data-theme="dark"] .ed-auth-simple-page {
  --auth-shadow: var(--shadow-ink) / 0.55;
}

/* ---- Split shell (full-bleed, bypasses ed-container) ---- */
.ed-auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 68px; /* fixed site header */
  background: hsl(var(--bg));
}

@media (max-width: 960px) {
  .ed-auth-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Brand panel (left) ----
   Theme-safe panel tokens: a deep violet-ink console panel reads correctly
   in BOTH light and dark mode. Never paint this surface with bare
   hsl(var(--primary)) — in dark mode --primary is a bright accent. */
.ed-auth-brand {
  /* Light mode: rich deep purple paper (NOT near-black — keeps editorial
     character while clearly visible against the 96% form panel). */
  --auth-panel-bg: 262 45% 24%;
  --auth-panel-fg: 256 55% 94%;
  --auth-panel-line: 262 30% 38%;
  --auth-panel-accent: 262 90% 72%;
  --auth-panel-well: 262 48% 18%;

  background: hsl(var(--auth-panel-bg));
  color: hsl(var(--auth-panel-fg));
  border-right: 1.5px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 56px clamp(36px, 4.5vw, 64px) 44px;
}

html[data-theme="dark"] .ed-auth-brand {
  /* Dark panel: slightly lighter than --bg (6%) so it stays distinct;
     the 1.5px border-right (--border) keeps the visual separation. */
  --auth-panel-bg: 262 36% 12%;
  --auth-panel-fg: 256 24% 93%;
  --auth-panel-line: 262 22% 24%;
  --auth-panel-accent: 256 75% 68%;
  --auth-panel-well: 262 38% 9%;

  border-right-color: hsl(var(--border));
}

@media (max-width: 960px) {
  .ed-auth-brand {
    display: none;
  }
}

.ed-auth-brand__logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.ed-auth-brand__logo img {
  max-height: 34px;
  width: auto;
  display: block;
}

.ed-auth-brand__logo span {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ed-auth-brand__back {
  margin-bottom: 8px;
}

.ed-auth-brand__back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--auth-panel-fg) / 0.55);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ed-auth-brand__back a:hover {
  color: hsl(var(--auth-panel-accent));
  transform: translateX(-2px);
}

.ed-auth-brand__back svg {
  color: hsl(var(--auth-panel-accent));
  flex-shrink: 0;
}

.ed-auth-brand__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  max-width: 480px;
}

.ed-auth-brand__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--auth-panel-accent));
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-auth-brand__kicker .ed-dot {
  background: hsl(var(--auth-panel-accent));
}

.ed-auth-brand__heading {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  color: hsl(var(--auth-panel-fg));
}

.ed-auth-brand__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ed-auth-brand__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: hsl(var(--auth-panel-fg) / 0.78);
}

.ed-auth-brand__list svg {
  color: hsl(var(--auth-panel-accent));
  flex-shrink: 0;
}

/* Mini status board on the ink panel */
.ed-auth-brand__board {
  background: hsl(var(--auth-panel-well));
  border: 1.5px solid hsl(var(--auth-panel-line));
  box-shadow: 6px 6px 0 hsl(262 50% 12% / 0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.ed-auth-brand__board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1.5px solid hsl(var(--auth-panel-line));
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--auth-panel-fg) / 0.6);
}

.ed-auth-brand__board-head .ed-dot {
  width: 7px;
  height: 7px;
  background: hsl(var(--auth-panel-accent));
  margin-right: 6px;
}

.ed-auth-brand__board-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ed-auth-brand__log-line {
  color: hsl(var(--auth-panel-fg) / 0.55);
  white-space: pre;
}

.ed-auth-brand__log-line:first-child {
  color: hsl(var(--auth-panel-accent));
}

/* Plan summary box (register) */
.ed-auth-plan {
  background: hsl(var(--auth-panel-well));
  border: 1.5px solid hsl(var(--auth-panel-line));
  box-shadow: 6px 6px 0 hsl(262 50% 12% / 0.85);
  padding: 22px 24px;
}

.ed-auth-plan__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--auth-panel-accent));
  margin: 0 0 10px;
}

.ed-auth-plan__price {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  color: hsl(var(--auth-panel-fg));
}

.ed-auth-plan__period {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: hsl(var(--auth-panel-fg) / 0.55);
  margin-left: 6px;
}

.ed-auth-plan__trial {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid hsl(var(--auth-panel-line));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--auth-panel-accent));
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-auth-brand__foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: hsl(var(--auth-panel-fg) / 0.42);
}

/* ---- Form panel (right, paper) ---- */
.ed-auth-form {
  background: hsl(var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
}

@media (max-width: 960px) {
  .ed-auth-form {
    padding: 48px 24px;
  }
}

@media (max-width: 520px) {
  .ed-auth-form {
    padding: 36px 18px;
  }
}

.ed-auth-form__inner {
  width: 100%;
  max-width: 410px;
}

/* Mono kicker with accent dash */
.ed-auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-fg));
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-auth-eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: hsl(var(--accent));
  flex-shrink: 0;
}

.ed-auth-h1 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 8px;
  color: hsl(var(--fg));
}

.ed-auth-sub {
  color: hsl(var(--muted-fg));
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 30px;
}

/* Fields */
.ed-auth-form__inner .ed-field {
  margin-bottom: 18px;
}

.ed-auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ed-auth-label-row .ed-label {
  margin: 0;
}

.ed-auth-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--accent));
  text-decoration: none;
}

.ed-auth-link:hover,
.ed-auth-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Custom square checkbox */
.ed-auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.ed-auth-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0;
  background: hsl(var(--card));
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.ed-auth-remember input[type="checkbox"]:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

.ed-auth-remember input[type="checkbox"]:checked {
  background: hsl(var(--accent));
  border-color: hsl(var(--accent));
}

.ed-auth-remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 4.5px;
  border-left: 2px solid hsl(var(--accent-fg));
  border-bottom: 2px solid hsl(var(--accent-fg));
  transform: rotate(-45deg);
}

.ed-auth-remember label {
  font-size: 13.5px;
  color: hsl(var(--fg));
  cursor: pointer;
  margin: 0;
  user-select: none;
}

/* Turnstile widget slot — reserve height so the layout doesn't jump */
.ed-auth-turnstile {
  margin-bottom: 20px;
  min-height: 65px;
  transition: opacity 0.2s var(--ease);
}

/* Submit */
.ed-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 15px 22px;
  border-width: 1.5px;
  margin-bottom: 22px;
  box-shadow: 4px 4px 0 hsl(var(--auth-shadow, var(--shadow-ink)));
}

.ed-auth-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 hsl(var(--auth-shadow, var(--shadow-ink)));
}

.ed-auth-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  margin: 0;
}

.ed-auth-footer a {
  color: hsl(var(--accent));
  text-decoration: none;
  margin-left: 4px;
  font-weight: 600;
}

.ed-auth-footer a:hover,
.ed-auth-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Auth-scoped input focus: dim the hard shadow in dark mode */
html[data-theme="dark"] .ed-auth-form .ed-input:focus,
html[data-theme="dark"] .ed-auth-form .ed-textarea:focus,
html[data-theme="dark"] .ed-auth-card .ed-input:focus,
html[data-theme="dark"] .ed-auth-card .ed-textarea:focus {
  box-shadow: 4px 4px 0 hsl(var(--shadow-ink) / 0.55);
}

/* Auth-scoped alerts: dim hard shadow in dark mode */
html[data-theme="dark"] .ed-auth-form .ed-alert,
html[data-theme="dark"] .ed-auth-card .ed-alert {
  box-shadow: 5px 5px 0 hsl(var(--shadow-ink) / 0.55);
}

/* ---- Simple auth (forgot / reset / verify) — centered card ---- */
.ed-auth-simple-page {
  min-height: 100vh;
  padding: 68px 20px 48px; /* top offset for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--bg));
}

.ed-auth-card {
  width: 100%;
  max-width: 460px;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0;
  padding: 48px;
  background: hsl(var(--card));
  box-shadow: 8px 8px 0 hsl(var(--auth-shadow, var(--shadow-ink)));
}

@media (max-width: 520px) {
  .ed-auth-card {
    padding: 30px 20px;
  }
}

.ed-auth-card .ed-auth-h1 {
  font-size: clamp(22px, 5vw, 30px);
  margin-bottom: 8px;
}

.ed-auth-card .ed-auth-sub {
  margin-bottom: 28px;
}

.ed-auth-card .ed-field {
  margin-bottom: 16px;
}

.ed-auth-card .ed-auth-submit {
  margin-top: 8px;
}

/* Reduced motion: kill auth transitions */
@media (prefers-reduced-motion: reduce) {
  .ed-auth-turnstile,
  .ed-auth-submit,
  .ed-auth-remember input[type="checkbox"] {
    transition: none;
  }

  .ed-auth-submit:hover {
    transform: none;
  }
}

/* Feature card SVG icon */
.ed-card__icon-svg {
  width: 44px;
  height: 44px;
  border: 1.5px solid hsl(var(--border));
  display: grid;
  place-items: center;
  color: hsl(var(--accent));
  margin-bottom: 16px;
  background: hsl(var(--muted));
}
