/* ============================================================
   IMMERSIVE LAYER — Additive only. No existing rules modified.
   ============================================================ */

/* 1. GLOBAL — Hide default orbs when JS immersive layer loads */
html.js .site-atmosphere__orb,
html.js .site-atmosphere__mesh {
  opacity: 0 !important;
  transition: opacity 1.2s ease;
}

/* 2. NEURAL FIELD */
.immersive-neural-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 3. CUSTOM CURSOR */
body.immersive-cursor-active {
  cursor: none;
}
body.immersive-cursor-active a,
body.immersive-cursor-active button,
body.immersive-cursor-active input,
body.immersive-cursor-active textarea,
body.immersive-cursor-active summary,
body.immersive-cursor-active label,
body.immersive-cursor-active select {
  cursor: none;
}

.immersive-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

.immersive-cursor__ring {
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(32, 38, 25, 0.45);
  border-radius: 50%;
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, background 0.15s ease, border-radius 0.15s ease;
  transform: translate(-50%, -50%);
}

.immersive-cursor--lens .immersive-cursor__ring {
  width: 48px;
  height: 48px;
  border-color: rgba(217, 119, 6, 0.7);
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 65%);
}

.immersive-cursor--threat .immersive-cursor__ring {
  width: 40px;
  height: 40px;
  border-color: rgba(225, 29, 72, 0.75);
  animation: immersive-cursor-pulse 0.9s ease-in-out infinite;
}

.immersive-cursor--crosshair .immersive-cursor__ring {
  width: 20px;
  height: 20px;
  border-color: rgba(52, 211, 153, 0.85);
  border-radius: 0;
  position: relative;
}
.immersive-cursor--crosshair .immersive-cursor__ring::before,
.immersive-cursor--crosshair .immersive-cursor__ring::after {
  content: '';
  position: absolute;
  background: rgba(52, 211, 153, 0.85);
}
.immersive-cursor--crosshair .immersive-cursor__ring::before {
  top: 50%; left: -5px; right: -5px; height: 1.5px; transform: translateY(-50%);
}
.immersive-cursor--crosshair .immersive-cursor__ring::after {
  left: 50%; top: -5px; bottom: -5px; width: 1.5px; transform: translateX(-50%);
}

@keyframes immersive-cursor-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.6; }
}

/* 4. TELEMETRY FOOTER */
.immersive-telemetry {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 26px;
  background: rgba(15, 23, 12, 0.92);
  border-top: 1px solid rgba(52, 211, 153, 0.2);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 190, 200, 0.9);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.immersive-telemetry.is-visible {
  transform: translateY(0);
}
.immersive-telemetry__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.immersive-telemetry__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: immersive-telemetry-blink 2s ease-in-out infinite;
}
@keyframes immersive-telemetry-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* 5. SIGNAL TRANSITION */
.immersive-signal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background: #0b0f0a;
  transform: scaleX(0);
  transform-origin: left center;
}
.immersive-signal-overlay.is-active {
  animation: immersive-signal-wipe 0.55s ease-in-out forwards;
}
@keyframes immersive-signal-wipe {
  0% { transform: scaleX(0); transform-origin: left center; }
  50% { transform: scaleX(1); transform-origin: left center; }
  50.01% { transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}
.immersive-signal-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.2) 2px,
    rgba(0,0,0,0.2) 4px
  );
  opacity: 0;
  transition: opacity 0.15s;
}
.immersive-signal-overlay.is-active .immersive-signal-scanlines {
  opacity: 1;
}

/* 6. BOOT SEQUENCE */
.immersive-boot-text {
  display: inline;
}
.immersive-boot-text.is-typing::after {
  content: '_';
  animation: immersive-caret-blink 0.8s step-end infinite;
}
@keyframes immersive-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.immersive-scanline-reveal {
  position: relative;
  overflow: hidden;
}
.immersive-scanline-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(52, 211, 153, 0.12) 50%,
    transparent 65%
  );
  background-size: 100% 300%;
  background-position: 0% 0%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.immersive-scanline-reveal.is-scanning::before {
  opacity: 1;
  animation: immersive-scanline-sweep 1s ease-in-out forwards;
}
@keyframes immersive-scanline-sweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

/* 7. PERSPECTIVE CARDS */
.immersive-perspective-card {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
}
.immersive-perspective-card:hover {
  z-index: 10;
}

/* 8. TRAP REVEAL */
.immersive-trap-card {
  position: relative;
  overflow: hidden;
}

.immersive-trap-scanner {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.immersive-trap-scanner__bar {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(217, 119, 6, 0.2),
    rgba(225, 29, 72, 0.3),
    transparent
  );
  opacity: 0;
  transform: translateY(-100%);
}
.immersive-trap-scanner.is-scanning .immersive-trap-scanner__bar {
  opacity: 1;
  animation: immersive-trap-scan 0.9s ease-in-out forwards;
}
@keyframes immersive-trap-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(350%); }
}

.immersive-trap-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 15;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e11d48;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.22);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.immersive-trap-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.immersive-trap-glitch.is-revealed {
  color: #991b1b !important;
  text-shadow: 1px 0 rgba(225,29,72,0.25), -1px 0 rgba(34,197,94,0.25);
  animation: immersive-trap-shake 0.35s ease-in-out;
}
@keyframes immersive-trap-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
}

/* 9. VAULT GATE */
.immersive-vault-frame {
  position: relative;
}
.immersive-vault-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.75rem;
  padding: 2px;
  background: linear-gradient(180deg, rgba(52,211,153,0.35), rgba(52,211,153,0.06) 40%, transparent 60%, rgba(52,211,153,0.06) 80%, rgba(52,211,153,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.immersive-vault-frame.is-armed::before {
  opacity: 1;
}

.immersive-vault-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s, height 0.3s;
}
.immersive-vault-lock.is-active {
  opacity: 1;
  height: auto;
}
.immersive-vault-lock__glyph {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(52, 211, 153, 0.35);
  border-radius: 50%;
  border-top-color: #34d399;
  animation: immersive-vault-spin 0.7s linear infinite;
}
@keyframes immersive-vault-spin {
  to { transform: rotate(360deg); }
}

.immersive-vault-flash {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(220, 38, 38, 0.18);
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
.immersive-vault-flash.is-active {
  animation: immersive-vault-flash-anim 0.35s ease-out forwards;
}
@keyframes immersive-vault-flash-anim {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.immersive-vault-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2) rotate(-14deg);
  z-index: 60;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.9);
  border: 3px solid rgba(52, 211, 153, 0.55);
  padding: 0.6rem 1.25rem;
  border-radius: 0.4rem;
  opacity: 0;
  pointer-events: none;
}
.immersive-vault-stamp.is-visible {
  animation: immersive-vault-stamp-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes immersive-vault-stamp-in {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-10deg); }
}

/* 10. CLASSIFIED STATE */
.immersive-classified-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: rgba(52, 211, 153, 0.035);
  text-transform: uppercase;
  transform: rotate(-28deg);
  animation: immersive-classified-drift 24s linear infinite;
}
@keyframes immersive-classified-drift {
  0%, 100% { transform: rotate(-28deg) translateX(-4%); }
  50% { transform: rotate(-28deg) translateX(4%); }
}

.immersive-classified-status {
  position: relative;
  z-index: 35;
  height: 22px;
  background: rgba(15, 23, 12, 0.92);
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #34d399;
}

/* 11. TEXT SCRAMBLE */
.immersive-scramble-text {
  display: inline;
}
.immersive-scramble-text.is-scrambling {
  color: rgba(52, 211, 153, 0.5);
}

/* 12. CLASSIFIED NAV */
.immersive-classified-nav {
  filter: grayscale(0.35);
  transition: filter 0.6s ease;
}

/* 13. THREAT ZONES */
.immersive-threat-zone {
  position: absolute;
  pointer-events: none;
}


/* ============================================================
   15. LIBRARY PAGE — Pro light UI
   ============================================================ */

/* Hero */
.lib-hero {
  background: linear-gradient(180deg, #f6f7f4 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(15, 26, 11, 0.06);
  padding: 4rem 0 3rem;
}

.lib-hero__layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .lib-hero__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.lib-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15, 26, 11, 0.5);
  margin-bottom: 1.25rem;
}

.lib-hero__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
  animation: lib-pulse-dot 2s ease-in-out infinite;
}

@keyframes lib-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lib-hero__headline {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f1a0b;
}

.lib-hero__highlight {
  color: #059669;
}

.lib-hero__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(15, 26, 11, 0.72);
  max-width: 480px;
  margin-top: 1.25rem;
}

/* Hub */
.lib-hub {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lib-hub__center {
  position: relative;
  z-index: 10;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(15, 26, 11, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 8px rgba(52, 211, 153, 0.06);
}

.lib-hub__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #059669;
  line-height: 1;
}

.lib-hub__label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 26, 11, 0.7);
  margin-top: 0.2rem;
}

.lib-hub__count {
  font-size: 0.5rem;
  color: rgba(15, 26, 11, 0.72);
  margin-top: 0.1rem;
}

.lib-hub__spoke {
  position: absolute;
  display: flex;
  align-items: center;
}

.lib-hub__spoke--1 { top: 2%; left: 50%; transform: translateX(-50%); flex-direction: column; }
.lib-hub__spoke--2 { top: 20%; right: 0; flex-direction: row-reverse; }
.lib-hub__spoke--3 { bottom: 20%; right: 0; flex-direction: row-reverse; }
.lib-hub__spoke--4 { bottom: 2%; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; }
.lib-hub__spoke--5 { bottom: 20%; left: 0; }
.lib-hub__spoke--6 { top: 20%; left: 0; }

.lib-hub__connector {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 26, 11, 0.15), transparent);
}

.lib-hub__spoke--1 .lib-hub__connector,
.lib-hub__spoke--4 .lib-hub__connector {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(15, 26, 11, 0.15), transparent);
}

.lib-hub__pill {
  background: white;
  border: 1px solid rgba(15, 26, 11, 0.1);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f1a0b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.lib-hub__pill:hover {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: scale(1.03);
}

.lib-hub__pill--highlight {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.02));
  animation: lib-hub-pulse 2.5s ease-in-out infinite;
}

@keyframes lib-hub-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.lib-hub__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lib-hub__pill-label {
  white-space: nowrap;
  font-size: 0.75rem;
}

/* Featured scenarios */
.lib-featured {
  display: grid;
  gap: 1rem;
}

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

.lib-featured__card {
  position: relative;
  background: white;
  border: 1px solid rgba(15, 26, 11, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.lib-featured__card:hover {
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: rgba(15, 26, 11, 0.14);
}

.lib-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.lib-featured__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  color: rgba(15, 26, 11, 0.35);
  letter-spacing: 0.08em;
}

.lib-featured__badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.lib-featured__badge--graduate { background: rgba(52, 211, 153, 0.1); color: #059669; }
.lib-featured__badge--professional { background: rgba(96, 165, 250, 0.1); color: #2563eb; }
.lib-featured__badge--expert { background: rgba(245, 158, 11, 0.1); color: #b45309; }
.lib-featured__badge--senior-expert { background: rgba(244, 63, 94, 0.1); color: #be123c; }

.lib-featured__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1a0b;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.lib-featured__teaser {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(15, 26, 11, 0.55);
}

.lib-featured__reveal {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 26, 11, 0.06);
}

.lib-featured__reveal-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #be123c;
}

.lib-featured__footer {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: rgba(15, 26, 11, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Steps */
.lib-steps {
  display: grid;
  gap: 1rem;
}

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

.lib-steps__card {
  padding: 1.5rem;
}

.lib-steps__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.lib-steps__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1a0b;
  margin-bottom: 0.35rem;
}

.lib-steps__desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(15, 26, 11, 0.55);
}


/* ════════════════════════════════════════════════════════════
   LEAD MAGNETS
   ════════════════════════════════════════════════════════════ */

/* Section */
.lm-section {
  background: #f6f7f4;
}

.lm-grid {
  display: grid;
  gap: 1.25rem;
}

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

/* Card (shared: magnet list + form) */
.lm-card {
  padding: 1.5rem;
}

.lm-card--magnet {
  display: flex;
  flex-direction: column;
}

.lm-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.lm-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1a0b;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.lm-card__desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(15, 26, 11, 0.7);
  margin-bottom: 0.75rem;
  flex: 1;
}

.lm-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.lm-card__bullets li {
  font-size: 0.8rem;
  color: rgba(15, 26, 11, 0.65);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.lm-card__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #059669;
  font-size: 0.7rem;
}

.lm-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #047857;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.lm-card__link:hover {
  gap: 0.6rem;
  color: #065f46;
}

.lm-card__hint {
  font-size: 0.8rem;
  color: rgba(15, 26, 11, 0.45);
  text-align: center;
  margin-bottom: 1.25rem;
}

.lm-card__footer {
  font-size: 0.7rem;
  color: rgba(15, 26, 11, 0.35);
  text-align: center;
  margin-top: 1rem;
}

/* Form */
.lm-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lm-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lm-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(15, 26, 11, 0.7);
}

.lm-form__input {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 26, 11, 0.1);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  background: white;
  color: #0f1a0b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lm-form__input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.lm-form__submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0f1a0b;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lm-form__submit:hover {
  background: #1a2e12;
  transform: translateY(-1px);
}

.lm-form__errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #dc2626;
}

.lm-form__errors p {
  margin: 0;
}

/* Resource page */
.lm-resource {
  padding: 3rem 0 4rem;
  background: #f6f7f4;
  min-height: 100vh;
}

.lm-resource__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lm-resource__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.lm-resource__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #0f1a0b;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.lm-resource__subtitle {
  font-size: 1.05rem;
  color: rgba(15, 26, 11, 0.55);
  margin-bottom: 0.5rem;
}

.lm-resource__meta {
  font-size: 0.75rem;
  color: rgba(15, 26, 11, 0.35);
}

.lm-resource__body {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(15, 26, 11, 0.06);
}

@media (min-width: 768px) {
  .lm-resource__body {
    padding: 2.5rem;
  }
}

/* 7 Sins */
.lm-sin {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(15, 26, 11, 0.06);
}

.lm-sin:last-child {
  border-bottom: none;
}

.lm-sin__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #059669;
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
}

.lm-sin__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1a0b;
  margin-bottom: 0.5rem;
}

.lm-sin__content p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(15, 26, 11, 0.6);
  margin-bottom: 0.5rem;
}

.lm-sin__content p strong {
  color: #0f1a0b;
}

.lm-sin__content p em {
  color: #059669;
  font-style: normal;
  font-weight: 600;
}

/* Checklist */
.lm-checklist-intro {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(15, 26, 11, 0.6);
  margin-bottom: 1.5rem;
}

.lm-checklist-intro p {
  margin-bottom: 0.75rem;
}

.lm-checklist-section {
  margin-bottom: 2rem;
}

.lm-checklist-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1a0b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(5, 150, 105, 0.15);
}

.lm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 26, 11, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 0.35rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin: 0 -0.5rem;
}

.lm-check:hover {
  background: rgba(5, 150, 105, 0.03);
}

.lm-check__input {
  display: none;
}

.lm-check__box {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(15, 26, 11, 0.2);
  border-radius: 0.3rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lm-check__input:checked + .lm-check__box {
  background: #059669;
  border-color: #059669;
}

.lm-check__input:checked + .lm-check__box::after {
  content: "✓";
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.lm-check__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #0f1a0b;
}

.lm-check__text strong {
  display: block;
  margin-bottom: 0.2rem;
}

.lm-check__why {
  display: block;
  font-size: 0.8rem;
  color: rgba(15, 26, 11, 0.5);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.lm-redflags {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lm-redflags li {
  font-size: 0.9rem;
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: rgba(15, 26, 11, 0.65);
  border-bottom: 1px solid rgba(15, 26, 11, 0.04);
}

.lm-redflags li::before {
  content: "🚩";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* Calculator */
.lm-calc {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lm-calc {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.lm-calc__inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lm-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lm-calc__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(15, 26, 11, 0.7);
}

.lm-calc__input {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 26, 11, 0.1);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  background: white;
  color: #0f1a0b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lm-calc__input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.lm-calc__results {
  background: #f6f7f4;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lm-calc__result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lm-calc__result--primary {
  background: #0f1a0b;
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.lm-calc__result--primary .lm-calc__result-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.lm-calc__result--primary .lm-calc__result-value {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.lm-calc__result-label {
  font-size: 0.8rem;
  color: rgba(15, 26, 11, 0.55);
}

.lm-calc__result-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1a0b;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lm-calc__breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lm-calc__insight {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(5, 150, 105, 0.06);
  border-left: 3px solid #059669;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.95rem;
  color: rgba(15, 26, 11, 0.7);
}

.lm-calc__savings {
  color: #059669;
  font-weight: 700;
}

/* CTA block inside resources */
.lm-resource__cta {
  background: #f6f7f4;
  border-radius: 0.75rem;
  padding: 1.75rem;
  text-align: center;
  margin-top: 2rem;
}

.lm-resource__cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1a0b;
  margin-bottom: 0.5rem;
}

.lm-resource__cta p {
  font-size: 0.9rem;
  color: rgba(15, 26, 11, 0.55);
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.lm-resource__cta-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #0f1a0b;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lm-resource__cta-btn:hover {
  background: #1a2e12;
  transform: translateY(-1px);
}


/* ════════════════════════════════════════════════════════════
   COMPARISON TABLE (Meribas vs TestGorilla)
   ════════════════════════════════════════════════════════════ */

.lm-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.lm-compare-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(15, 26, 11, 0.4);
  border-bottom: 2px solid rgba(15, 26, 11, 0.08);
}

.lm-compare-table th:not(:first-child) {
  text-align: center;
}

.lm-compare-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 26, 11, 0.04);
  vertical-align: top;
}

.lm-compare-table td:first-child {
  font-weight: 600;
  color: #0f1a0b;
  width: 22%;
}

.lm-compare-table td:not(:first-child) {
  width: 39%;
}

.lm-compare-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(15, 26, 11, 0.4);
  margin-top: 0.15rem;
}

.lm-compare-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.lm-compare-tag--pos {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.lm-compare-tag--neg {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.lm-compare-tag--neutral {
  background: rgba(15, 26, 11, 0.06);
  color: rgba(15, 26, 11, 0.6);
}

.lm-compare-cell {
  font-size: 0.85rem;
  color: rgba(15, 26, 11, 0.55);
  line-height: 1.5;
  margin: 0;
}

/* Quotes */
.lm-quote {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  background: #f6f7f4;
  border-radius: 0.75rem;
  border-left: 3px solid #059669;
}

.lm-quote p {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(15, 26, 11, 0.7);
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.lm-quote cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: rgba(15, 26, 11, 0.45);
}

/* Grid responsive: 5 cards */
@media (min-width: 768px) {
  .lm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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