/* ==========================================================
   YOGERA SHARED DESIGN SYSTEM — tokens, backdrop, navbar,
   mega menus, pricing entry modal, mobile menu, shared
   buttons/scaffolding, workflow track, node explorer,
   monthly/yearly toggle, price value, FAQ accordion, footer.
   Used by: index.html, pricing.html, onboarding.html
   Do not duplicate these rules in page-specific stylesheets —
   page CSS files assume these tokens/components already exist.
   ========================================================== */

/* ===== INLINED shared.css ===== */
/* ==========================================================
   YOGERA SHARED DESIGN SYSTEM — tokens, navbar, mega menus,
   pricing entry modal, mobile menu, shared buttons/scaffolding
   Used by: index.html, pricing.html, onboarding.html
   ========================================================== */

/* ============ TOKENS ============ */
:root {
  --bg-void: #0a0b12;
  --bg-deep: #0d0f19;
  --surface: #13151f;
  --surface-raised: #181b28;
  --surface-hover: #1f2233;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #f3f4f8;
  --text-secondary: #c3c6d4;
  --text-muted: #888ca0;
  --text-faint: #5a5e72;

  --blue: #33abde;
  --blue-soft: #33abde33;
  --blue-glow: #33abde66;
  --purple: #8347a8;
  --purple-soft: #8347a833;
  --purple-glow: #8347a866;

  --success: #3fd08a;
  --warn: #e3a83f;
  --error: #e35c5c;
  --error-soft: #e35c5c22;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --dur-micro: 180ms;
  --dur-comp: 260ms;
  --dur-page: 420ms;

  --font-display: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --card-tilt: rotateX(0deg) rotateY(0deg);

  /* Glass/translucent surfaces (navbar, mega-menu panel, modal scrim) — these were previously
     hardcoded dark regardless of theme, which is exactly what made light mode feel like "the
     same dark UI with swapped text colors." Each has an independently-tuned light variant. */
  --glass-navbar: rgba(15, 16, 25, 0.55);
  --glass-navbar-scrolled: rgba(11, 12, 19, 0.82);
  --glass-panel: rgba(14, 15, 24, 0.92);
  --glass-overlay: rgba(6, 7, 12, 0.7);
  --inset-highlight: rgba(255, 255, 255, 0.04);

  /* Shadow tiers — dark mode needs fairly opaque black to read as elevation against dark
     surfaces; light mode needs much softer, lower-opacity shadows or cards look muddy. */
  --shadow-sm: rgba(0, 0, 0, 0.22);
  --shadow-md: rgba(0, 0, 0, 0.32);
  --shadow-lg: rgba(0, 0, 0, 0.42);
  --shadow-xl: rgba(0, 0, 0, 0.55);
  --scrollbar-thumb: #2a2d3d;
  --ket-tag-text: #c9a3e6;
  --warn-text: #e3c98a;
  --bubble-bg: linear-gradient(
    180deg,
    rgba(24, 27, 40, 0.9),
    rgba(16, 18, 28, 0.9)
  );
  --particle-color: 255, 255, 255;
  --particle-alpha: 0.5;
}

html[data-theme="light"] {
  --glass-navbar: rgba(255, 255, 255, 0.68);
  --glass-navbar-scrolled: rgba(255, 255, 255, 0.9);
  --glass-panel: rgba(255, 255, 255, 0.97);
  --glass-overlay: rgba(15, 23, 42, 0.4);
  --inset-highlight: rgba(255, 255, 255, 0.7);

  --shadow-sm: rgba(30, 41, 59, 0.08);
  --shadow-md: rgba(30, 41, 59, 0.11);
  --shadow-lg: rgba(30, 41, 59, 0.15);
  --shadow-xl: rgba(30, 41, 59, 0.2);
  --scrollbar-thumb: #cbd2dd;
  --ket-tag-text: #6b3f94;
  --warn-text: #7a5008;
  --bubble-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(246, 248, 252, 0.94)
  );
  --particle-color: 20, 30, 55;
  --particle-alpha: 0.32;
}

/* hover.tilt-3d — a subtle perspective tilt layered on top of each card's
   existing lift-on-hover transform. Centralized here as a single custom
   property so every card family (mega/role/plan/benefit/cross/res/post)
   picks it up with a one-line addition rather than duplicated rules.
   Disabled under reduced-motion — cards still lift, they just don't tilt. */
@media (prefers-reduced-motion: no-preference) {
  .mega-card:hover,
  .role-card:hover,
  .plan-card:hover,
  .benefit-card:hover,
  .cross-card:hover,
  .res-card:hover,
  .post-card:hover {
    --card-tilt: rotateX(3deg) rotateY(-3deg);
  }
}

/* Ambient background glow — on a dark canvas, blurred color blobs at 0.28
   opacity read as an ambient light source. On a light canvas the same
   opacity/blur reads as a dirty color smudge rather than a glow, so light
   mode gets its own, much softer treatment: lower opacity, larger blur
   radius, so it lands as a barely-there tint rather than a visible stain. */
html[data-theme="light"] .ambient span {
  opacity: 0.12;
  filter: blur(130px);
}

/* ============ LIGHT THEME ============
   Same spacing/radius/motion/type scale as dark (per design-system
   principle: one token set, two themes) — only color, gradient, and
   glow tokens differ, and each is independently tuned here rather
   than a simple dim/brighten of the dark-mode value. */
html[data-theme="light"] {
  --bg-void: #f5f7fb;
  --bg-deep: #eef1f7;
  --surface: #fcfdfe;
  --surface-raised: #ffffff;
  --surface-hover: #eef1f7;
  --line: rgba(10, 15, 30, 0.09);
  --line-strong: rgba(10, 15, 30, 0.18);
  --text-primary: #10131c;
  --text-secondary: #3f4657;
  --text-muted: #6b7280;
  --text-faint: #96a0b0;

  --blue: #1789b8;
  --blue-soft: #1789b833;
  --blue-glow: #1789b866;
  --purple: #6b3f94;
  --purple-soft: #6b3f9433;
  --purple-glow: #6b3f9466;

  --success: #188a58;
  --warn: #a06a0a;
  --error: #b83a3a;
  --error-soft: #b83a3a22;
}

/* Brief, !important-guarded transition window applied only while the
   theme is actively switching — avoids permanently overriding each
   component's own per-property transition timing (hover, focus, etc.)
   while still guaranteeing a smooth, flash-free cross-fade on toggle. */
html.theme-transitioning,
html.theme-transitioning * {
  transition:
    background-color 380ms ease,
    color 380ms ease,
    border-color 380ms ease,
    box-shadow 380ms ease !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 12px;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.action-point-button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  padding-left: 0 !important;
  margin-top: 5px !important;
}

ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--purple-glow);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* subtle scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
}

/* ============ BACKDROP ============ */
.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    black 30%,
    transparent 75%
  );
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.ambient span.ambient-orb-1 {
  width: 520px;
  height: 520px;
  background: var(--blue);
  top: -180px;
  left: -120px;
}
.ambient span.ambient-orb-2 {
  width: 480px;
  height: 480px;
  background: var(--purple);
  top: 120px;
  right: -160px;
}
.ambient span.ambient-orb-3 {
  width: 420px;
  height: 420px;
  background: var(--blue);
  bottom: -220px;
  left: 30%;
}

.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  background: var(--glass-navbar);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 30px var(--shadow-sm);
  transition:
    padding var(--dur-comp) var(--ease),
    background var(--dur-comp) var(--ease),
    box-shadow var(--dur-comp) var(--ease),
    top var(--dur-comp) var(--ease),
    transform var(--dur-comp) var(--ease);
}
.navbar.scrolled {
  padding: 6px 8px 6px 18px;
  background: var(--glass-navbar-scrolled);
  box-shadow: 0 12px 34px var(--shadow-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 34px;
  width: auto;
  transition:
    transform var(--dur-micro) var(--ease),
    filter var(--dur-micro) var(--ease);
}
.nav-logo:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px var(--blue-glow));
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-item {
  position: relative;
}
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color var(--dur-micro) var(--ease),
    background var(--dur-micro) var(--ease);
  position: relative;
}
.nav-trigger::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-micro) var(--ease);
}
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  color: var(--text-primary);
  background: var(--surface-hover);
}
.nav-trigger:hover::after,
.nav-trigger[aria-expanded="true"]::after {
  transform: scaleX(1);
}
.chev {
  width: 9px;
  height: 9px;
  font-size: 9px;
  transition: transform var(--dur-micro) var(--ease);
  opacity: 0.7;
}
.nav-trigger[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ---- Theme toggle ---- */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 15px;
  transition:
    transform var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    color var(--dur-micro) var(--ease);
}
.theme-toggle:hover {
  transform: scale(1.06);
  border-color: var(--blue-glow);
  color: var(--blue);
}
.theme-toggle i {
  position: absolute;
  transition:
    opacity var(--dur-comp) var(--ease),
    transform var(--dur-comp) var(--ease);
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
html[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
html[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

.btn-signin {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-micro) var(--ease);
  display: none;
}
.btn-signin:hover {
  color: var(--text-primary);
}
.btn-start {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 4px 18px var(--blue-glow);
  transition:
    transform var(--dur-micro) var(--ease),
    box-shadow var(--dur-comp) var(--ease),
    padding var(--dur-comp) var(--ease);
}
.btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px var(--purple-glow);
  padding-right: 26px;
}
.btn-start:active {
  transform: translateY(0px) scale(0.98);
}
.btn-start .arrow {
  transition: transform var(--dur-micro) var(--ease);
}
.btn-start:hover .arrow {
  transform: translateX(3px);
}
.btn-start .shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine-sweep 5.5s ease-in-out infinite;
}
@keyframes shine-sweep {
  0%,
  60% {
    left: -60%;
  }
  85%,
  100% {
    left: 130%;
  }
}

.nav-mobile-toggle {
  display: none;
  padding: 10px;
  border-radius: var(--radius-pill);
}
.nav-mobile-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-mobile-toggle i {
  font-size: 20px;
}

/* ---- Mega menu ---- */
.mega {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.98);
  width: min(920px, calc(100% - 32px));
  background: var(--glass-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 26px 60px var(--shadow-xl);
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-comp) var(--ease),
    transform var(--dur-comp) var(--ease),
    visibility var(--dur-comp);
  z-index: 99;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.mega-head {
  margin-bottom: 20px;
}
.mega-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}
.mega-head p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  perspective: 1200px;
}
.mega-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.mega-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform var(--dur-comp) var(--ease),
    border-color var(--dur-comp) var(--ease),
    background var(--dur-comp) var(--ease),
    box-shadow var(--dur-comp) var(--ease);
}
.mega-card:hover {
  transform: translateY(-3px) var(--card-tilt);
  border-color: var(--blue-glow);
  background: var(--surface-raised);
  box-shadow: 0 14px 30px var(--shadow-md);
}
.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft));
  border: 1px solid var(--line-strong);
  transition: transform var(--dur-comp) var(--ease);
}
.mega-card:hover .mega-icon {
  transform: scale(1.08) rotate(-4deg);
}
.mega-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--blue);
}
.mega-icon i {
  font-size: 19px;
  color: var(--blue);
}
.mega-card h4 {
  font-size: 14.5px;
  font-weight: 600;
}
.mega-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.mega-card .card-cta-arrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 5px;
}
.mega-card .card-cta-arrow svg {
  width: 12px;
  height: 12px;
  transition: transform var(--dur-micro) var(--ease);
}
.mega-card:hover .card-cta-arrow svg {
  transform: translateX(3px);
}
.mega-card .card-cta-arrow i {
  font-size: 12px;
  transition: transform var(--dur-micro) var(--ease);
}
.mega-card:hover .card-cta-arrow i {
  transform: translateX(3px);
}
.mega-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.mega-foot a {
  color: var(--blue);
  font-weight: 600;
}

/* ---- Pricing modal ---- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-overlay);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-comp) var(--ease),
    visibility var(--dur-comp);
  padding: 20px;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}
.price-modal {
  width: min(760px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  position: relative;
  transform: translateY(14px) scale(0.97);
  transition: transform var(--dur-comp) var(--ease);
  box-shadow: 0 40px 90px var(--shadow-xl);
}
.overlay.open .price-modal {
  transform: translateY(0) scale(1);
}
.price-modal .close-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition:
    background var(--dur-micro),
    color var(--dur-micro);
}
.price-modal .close-x:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.price-modal h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 6px;
}
.price-modal > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.price-card {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-deep);
  text-align: left;
  transition: all var(--dur-comp) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card:hover {
  border-color: var(--blue-glow);
  transform: translateY(-3px);
}
.price-card.selected {
  border-color: var(--blue);
  box-shadow:
    0 0 0 1px var(--blue),
    0 12px 26px var(--blue-glow);
}
.price-card .price-card-icon {
  font-size: 20px;
}
.price-card h4 {
  font-size: 14.5px;
  font-weight: 600;
}
.price-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.price-continue {
  margin-top: 24px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 600;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--dur-micro);
}
.price-continue.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============ SHARED RESPONSIVE ============ */
@media (min-width: 861px) {
  .btn-signin {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .nav-center {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .mega {
    display: none;
  }
}
@media (max-width: 860px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    top: 12px;
  }
  .btn-start span.label {
    display: none;
  }
  .btn-start {
    padding: 12px 14px;
  }
}

/* ---- Mobile full-screen menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  padding: 100px 26px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-comp) var(--ease),
    transform var(--dur-comp) var(--ease),
    visibility var(--dur-comp);
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu .m-item {
  border-bottom: 1px solid var(--line);
}
.mobile-menu .m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 600;
}
.mobile-menu .m-head svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-micro);
}
.mobile-menu .m-item.is-open .m-head svg {
  transform: rotate(180deg);
}
.mobile-menu .m-head i {
  font-size: 16px;
  transition: transform var(--dur-micro);
}
.mobile-menu .m-item.is-open .m-head i {
  transform: rotate(180deg);
}
.mobile-menu .m-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-comp) var(--ease);
}
.mobile-menu .m-item.is-open .m-body {
  max-height: 400px;
  padding-bottom: 16px;
}
.mobile-menu .m-body a {
  display: block;
  padding: 9px 4px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.mobile-menu .m-cta {
  margin-top: 28px;
}
.mobile-close {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 10px;
}

/* ============ SHARED PAGE SCAFFOLDING ============ */
.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    black 30%,
    transparent 75%
  );
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.ambient span.ambient-orb-1 {
  width: 520px;
  height: 520px;
  background: var(--blue);
  top: -180px;
  left: -120px;
}
.ambient span.ambient-orb-2 {
  width: 480px;
  height: 480px;
  background: var(--purple);
  top: 120px;
  right: -160px;
}
.ambient span.ambient-orb-3 {
  width: 420px;
  height: 420px;
  background: var(--blue);
  bottom: -220px;
  left: 30%;
}

/* ============ SHARED BUTTONS ============ */
.btn-primary-lg {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  box-shadow: 0 10px 34px var(--blue-glow);
  transition:
    transform var(--dur-micro) var(--ease),
    box-shadow var(--dur-comp) var(--ease),
    padding var(--dur-comp) var(--ease);
}
.btn-primary-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--purple-glow);
  padding-right: 34px;
}
.btn-primary-lg:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary-lg .arrow {
  transition: transform var(--dur-micro) var(--ease);
}
.btn-primary-lg:hover .arrow {
  transform: translateX(4px);
}
.btn-primary-lg .shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine-sweep 6s ease-in-out infinite 1s;
}
.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--dur-micro) var(--ease);
}
.btn-secondary-lg:hover {
  color: var(--text-primary);
  border-color: var(--blue-glow);
  background: var(--surface);
}
.btn-secondary-lg svg {
  transition: transform var(--dur-micro) var(--ease);
}
.btn-secondary-lg:hover svg {
  transform: translateX(3px);
}
.btn-secondary-lg i {
  transition: transform var(--dur-micro) var(--ease);
}
.btn-secondary-lg:hover i {
  transform: translateX(3px);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}
.btn-ghost-sm svg {
  width: 12px;
  height: 12px;
  transition: transform var(--dur-micro) var(--ease);
}
.btn-ghost-sm:hover svg {
  transform: translateX(3px);
}
.btn-ghost-sm i {
  font-size: 12px;
  transition: transform var(--dur-micro) var(--ease);
}
.btn-ghost-sm:hover i {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ SHARED SECTION SCAFFOLDING ============ */
.wrap {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  position: relative;
  z-index: 1;
  padding: 96px 24px;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-head .eyebrow-sm {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.section-foot-link {
  text-align: center;
  margin-top: 46px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SHARED WORKFLOW TRACK ============ */
.track-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
}
.track {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-width: 560px;
  padding: 0 4px;
}
.track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: var(--t-start, 22px);
  right: var(--t-end, 22px);
  height: 2px;
  background: var(--line);
}
.track .track-fill {
  position: absolute;
  top: 22px;
  left: var(--t-start, 22px);
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 900ms var(--ease);
}
.track-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  z-index: 1;
}
.track-step .track-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: all var(--dur-comp) var(--ease);
  flex-shrink: 0;
}
.track-step.is-active .track-node {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 22px var(--blue-glow);
  color: var(--text-primary);
  transform: scale(1.08);
}
.track-step.is-done .track-node {
  border-color: var(--success);
  background: rgba(63, 208, 138, 0.14);
  color: var(--text-secondary);
}
.track-step .track-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  color: var(--text-faint);
  transition: color var(--dur-comp);
  white-space: nowrap;
}
.track-step.is-active .track-label,
.track-step.is-done .track-label {
  color: var(--text-secondary);
}
.track-step[role="button"] {
  cursor: pointer;
}
.track-step[role="button"]:hover .track-node {
  border-color: var(--blue-glow);
}

.track-detail {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  transition: opacity 200ms var(--ease);
}
.track-detail .track-detail-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.track-detail .track-detail-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============ SHARED NODE EXPLORER (progressive disclosure diagrams) ============ */
.node-explorer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.node-center {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: radial-gradient(
    circle at 50% 40%,
    var(--surface-raised),
    var(--surface)
  );
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 60px var(--shadow-lg),
    inset 0 0 40px var(--blue-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.node-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
}
.node-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur-micro) var(--ease);
}
.node-chip:hover,
.node-chip.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--text-primary);
}
.node-chip .node-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

/* ============ SHARED MONTHLY/YEARLY TOGGLE ============ */
.cycle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
}
.cycle-toggle button {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur-micro) var(--ease);
  position: relative;
}
.cycle-toggle button.is-active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
}
.save-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(63, 208, 138, 0.15);
  border: 1px solid rgba(63, 208, 138, 0.4);
  color: var(--success);
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--dur-micro) var(--ease);
}
.save-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ============ SHARED PRICE VALUE ============ */
.price-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}
.price-value .price-amount {
  font-size: 34px;
  font-weight: 800;
}
.price-value .price-was {
  font-size: 16px;
  color: var(--text-faint);
  text-decoration: line-through;
}
.price-value .price-period {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ SHARED FAQ ACCORDION ============ */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 15px;
}
.faq-q svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-micro) var(--ease);
  color: var(--text-muted);
}
.faq-item.is-open .faq-q svg {
  transform: rotate(45deg);
}
.faq-q i {
  font-size: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-micro) var(--ease);
  color: var(--text-muted);
}
.faq-item.is-open .faq-q i {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-comp) var(--ease);
}
.faq-item.is-open .faq-a {
  max-height: 200px;
}
.faq-a p {
  padding: 0 4px 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---- Site footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 36px 24px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-row img {
  height: 22px;
  opacity: 0.85;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--dur-micro);
}
.footer-links a:hover {
  color: var(--text-primary);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* ==========================================================
   SHARED — ROLE SELECTION CARDS
   Used by: pricing.html (choose how you use Yogera),
            onboarding.html (how will you use Yogera)
   ========================================================== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  perspective: 1200px;
}
.role-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.role-card {
  position: relative;
  text-align: left;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  overflow: hidden;
  min-height: 216px;
  background:
    linear-gradient(
      135deg,
      var(--blue-soft) 0%,
      transparent 55%,
      var(--purple-soft) 100%
    ),
    var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition:
    transform var(--dur-comp) var(--ease),
    border-color var(--dur-comp) var(--ease),
    background var(--dur-comp) var(--ease),
    box-shadow var(--dur-comp) var(--ease);
}
.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    var(--blue-glow) 48%,
    var(--purple-glow) 56%,
    transparent 74%
  );
  opacity: 0;
  transform: translateX(-120%);
}
.role-card:hover::before {
  opacity: 0.6;
  animation: role-sheen 1s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .role-card:hover::before {
    animation: none;
    opacity: 0;
  }
}
@keyframes role-sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}
.role-card > * {
  position: relative;
  z-index: 1;
}
.role-card:hover {
  transform: translateY(-6px) var(--card-tilt);
  border-color: var(--blue-glow);
  background:
    linear-gradient(
      135deg,
      var(--blue-glow) 0%,
      transparent 55%,
      var(--purple-glow) 100%
    ),
    var(--surface-raised);
  box-shadow:
    0 22px 46px var(--shadow-lg),
    0 0 0 1px var(--blue-glow);
}
.role-card.is-selected {
  border-color: var(--blue);
  background:
    linear-gradient(
      135deg,
      var(--blue-soft) 0%,
      transparent 55%,
      var(--purple-soft) 100%
    ),
    var(--surface-raised);
  box-shadow:
    0 0 0 2px var(--blue),
    0 18px 38px var(--blue-glow);
}
.role-card.is-selected::after {
  content: "✓";
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--blue-glow);
}
.role-card .role-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  box-shadow: 0 8px 18px var(--blue-glow);
  transition:
    transform var(--dur-comp) var(--ease),
    box-shadow var(--dur-comp) var(--ease);
}
.role-card:hover .role-card-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 24px var(--purple-glow);
}
.role-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.role-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}
.role-card .role-card-cta {
  margin-top: 6px;
  padding: 12px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1.5px solid var(--line-strong);
  transition: all var(--dur-micro) var(--ease);
}
.role-card:hover .role-card-cta {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px var(--blue-glow);
}
.role-card.is-selected .role-card-cta {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border-color: transparent;
}

@media (max-width: 960px) {
  .role-grid,
  .role-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .role-grid,
  .role-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   SHARED — PLAN CARDS (full pricing detail, larger than the
   compact .price-card used inside the homepage entry modal)
   ========================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  perspective: 1200px;
}
.plan-card {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform var(--dur-comp) var(--ease),
    box-shadow var(--dur-comp) var(--ease);
}
.plan-card:hover {
  transform: translateY(-3px) var(--card-tilt);
  box-shadow: 0 20px 44px var(--shadow-md);
}
.plan-card.featured {
  border-color: var(--blue-glow);
  background: var(--surface-raised);
  box-shadow: 0 20px 50px var(--shadow-md);
  position: relative;
}
.plan-card.featured::before {
  content: "Premium";
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.plan-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}
.plan-card .plan-tag {
  font-size: 13px;
  color: var(--text-muted);
}
.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 4px 0;
}
.plan-feats li {
  list-style: none;
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.plan-feats li .plan-feat-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 2px;
  background: rgba(63, 208, 138, 0.18);
  border: 1px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-feats li .plan-feat-check i {
  font-size: 9px;
  color: var(--success);
}
.plan-note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.plan-note.warn {
  border-color: rgba(227, 168, 63, 0.4);
  background: rgba(227, 168, 63, 0.08);
  color: var(--warn-text);
}
.plan-note.calm {
  border: none;
  background: none;
  padding: 0;
  color: var(--text-muted);
}
.plan-cta {
  margin-top: auto;
}

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

/* ==========================================================
   SHARED — PLATFORM FEES / SMALL INFO CARD ROW
   ========================================================== */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fee-card {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-deep);
}
.fee-card h5 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.fee-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .fee-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .fee-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   SHARED — CHANGE ACCOUNT TYPE / BREADCRUMB NOTE
   ========================================================== */
.role-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.role-note b {
  color: var(--text-primary);
}
.role-note a {
  color: var(--blue);
  font-weight: 600;
  margin-left: 6px;
}

/* ==========================================================
   SHARED — WIZARD SHELL (Start Building onboarding)
   ========================================================== */
.wizard-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 150px 24px 80px;
  display: flex;
  justify-content: center;
}
.wizard-card {
  width: min(720px, 100%);
}
.progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.progress-dots .progress-dot-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-dots .progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  transition: all var(--dur-comp) var(--ease);
}
.progress-dots .progress-dot.is-active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}
.progress-dots .progress-dot.is-done {
  background: var(--success);
  border-color: var(--success);
}
.progress-dots .progress-dot-line {
  width: 26px;
  height: 1.5px;
  background: var(--line);
}

.wiz-head {
  text-align: center;
  margin-bottom: 30px;
}
.wiz-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}
.wiz-head p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.wiz-panel {
  display: none;
}
.wiz-panel.is-active {
  display: block;
  animation: panel-in var(--dur-page) var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition:
    border-color var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field .hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---- Field error state (color-independent: border + icon + message, never color alone) ---- */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: color-mix(in srgb, var(--error) 6%, var(--bg-deep));
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}
.field-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--error);
  line-height: 1.4;
}
.field-error-msg::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.field.has-error .field-error-msg {
  display: flex;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.pw-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pw-strength span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
  transition: background var(--dur-micro);
}

.chip-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-deep);
}
.chip-input .chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-hover);
  font-size: 12.5px;
}
.chip-input .chip button {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
}
.chip-input input {
  flex: 1;
  min-width: 120px;
  border: none;
  background: none;
  padding: 6px;
  font-size: 13.5px;
  color: var(--text-primary);
}
.chip-input input:focus {
  outline: none;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-faint);
  font-size: 12px;
}
.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-micro) var(--ease);
}
.social-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .social-row {
    grid-template-columns: 1fr;
  }
}

.skip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.wiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  gap: 12px;
}
.wiz-actions .spacer {
  flex: 1;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.checklist .checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.checklist .checklist-item.is-done {
  color: var(--text-primary);
}
.checklist .checklist-item .cmark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.3s var(--ease);
}
.checklist .checklist-item.is-done .cmark {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.checklist .checklist-item.pending .cmark {
  border-color: var(--line);
}

.pct-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  margin: 14px 0;
}
.pct-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 4px;
  transition: width var(--dur-page) var(--ease);
}
.pct-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.upload-row .upload-row-name {
  font-size: 13.5px;
  font-weight: 600;
}
.upload-row .upload-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.upload-row .upload-row-reason {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upload-row .upload-row-reason i {
  font-size: 11px;
  flex-shrink: 0;
}
.doc-status {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.doc-status i {
  font-size: 10px;
}
.doc-status.not-uploaded {
  background: var(--surface-hover);
  color: var(--text-muted);
}
.doc-status.uploaded {
  background: rgba(51, 171, 222, 0.15);
  color: var(--blue);
}
.doc-status.verified {
  background: rgba(63, 208, 138, 0.15);
  color: var(--success);
}
.doc-status.rejected {
  background: var(--error-soft);
  color: var(--error);
}
.upload-row button.upload-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.upload-row button.upload-btn:hover {
  color: var(--text-primary);
  border-color: var(--blue-glow);
}
.upload-row button.upload-btn.reupload {
  border-color: var(--error);
  color: var(--error);
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
}
.tree-row .indent {
  display: inline-block;
}
.tree-row .add-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.role-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.provisioning {
  text-align: center;
  padding: 60px 0;
}
.provisioning .p-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
  margin: 0 auto 26px;
}
.provisioning .p-wave span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  animation: mini-breathe 2.4s ease-in-out infinite;
}
.provisioning h3 {
  font-family: var(--font-display);
  font-size: 20px;
}
.provisioning p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================
   EXTRA-SMALL SCREENS (< 480px) — no tier below 640px existed
   previously; padding-heavy shared components (wizard shell,
   plan/role cards, the hero's voice bubble) felt cramped on
   360px/375px/320px phones without their own reduction.
   ========================================================== */
@media (max-width: 480px) {
  .wizard-wrap {
    padding: 130px 14px 60px;
  }
  .plan-card {
    padding: 22px 18px;
  }
  .role-card {
    padding: 20px 16px;
  }
  .mega-card {
    padding: 16px 14px;
  }
  .field-row {
    gap: 0;
  }
  .wiz-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .checkout-summary {
    padding: 16px;
  }
  .upload-row {
    padding: 12px;
  }
  .tree-actions {
    gap: 0;
  }
  .navbar {
    padding: 8px 6px 8px 14px;
  }
  .nav-logo img {
    height: 28px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}
