/* Mr Manual landing v4 — deep manifest */
:root {
  --w4-bg: #040404;
  --w4-surface: #0c0c0c;
  --w4-border: rgba(255, 255, 255, 0.07);
  --w4-text: #f4f4f5;
  --w4-muted: #9ca3af;
  --w4-accent: #39ff14;
  --w4-accent-dim: rgba(57, 255, 20, 0.32);
  --w4-danger: #ff4444;
  --w4-font: "Rubik", "Segoe UI", system-ui, sans-serif;
  --w4-display: "Rubik Mono One", "Rubik", sans-serif;
}

html.page-wmm4 {
  scroll-behavior: smooth;
  background-color: var(--w4-bg) !important;
  background-image: linear-gradient(180deg, #020202 0%, #071007 38%, #020202 100%) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

html.theme-cyber.page-wmm4 body.manualfc-body.page-home::before {
  opacity: 0.48;
}

body.page-wmm4 {
  margin: 0;
  color: var(--w4-text);
  font-family: var(--w4-font);
}

.wmm4 {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 88px;
}

/* scroll progress */
.wmm4-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--w4-accent), #bbf7d0);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
  pointer-events: none;
}

/* ─── HERO ─── */
.wmm4-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 40px;
  margin-bottom: 56px;
  overflow: hidden;
}

.wmm4-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.wmm4-hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 120%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(57, 255, 20, 0.12), transparent 65%);
  pointer-events: none;
  animation: w4-glow 4s ease-in-out infinite alternate;
}

@keyframes w4-glow {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.wmm4-eyebrow {
  position: relative;
  margin: 0 0 16px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--w4-muted);
}

.wmm4-title {
  position: relative;
  margin: 0 0 18px;
  font-family: var(--w4-display);
  font-size: clamp(2.8rem, 13vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.wmm4-title-static {
  display: block;
  color: var(--w4-text);
}

.wmm4-title-cycle {
  display: block;
  color: var(--w4-accent);
  text-shadow: 0 0 40px rgba(57, 255, 20, 0.4);
  min-height: 1em;
  transition: opacity 0.25s, transform 0.25s;
}

.wmm4-title-cycle.wmm4-cycle-out {
  opacity: 0;
  transform: translateY(12px);
}

.wmm4-lead {
  position: relative;
  margin: 0 0 24px;
  max-width: 36rem;
  font-size: clamp(1rem, 3vw, 1.18rem);
  line-height: 1.65;
  color: var(--w4-muted);
}

.wmm4-lead strong {
  color: var(--w4-text);
  font-weight: 500;
}

.wmm4-hero-stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.wmm4-hero-stat {
  flex: 1 1 120px;
  padding: 12px 14px;
  border: 1px solid var(--w4-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
}

.wmm4-stat-val {
  display: block;
  font-family: var(--w4-display);
  font-size: 1.5rem;
  color: var(--w4-accent);
  line-height: 1.1;
}

.wmm4-stat-val--text {
  font-size: 1.35rem;
}

.wmm4-stat-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--w4-muted);
}

.wmm4-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wmm4-actions--center {
  justify-content: center;
}

.wmm4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--w4-font);
  transition: transform 0.15s, box-shadow 0.2s;
}

.wmm4-btn--solid,
.wmm4-btn--pulse {
  background: var(--w4-accent);
  color: #000;
  border-color: var(--w4-accent);
}

.wmm4-btn--pulse {
  animation: w4-pulse-btn 2.4s ease-in-out infinite;
}

@keyframes w4-pulse-btn {
  0%, 100% { box-shadow: 0 0 20px rgba(57, 255, 20, 0.25); }
  50% { box-shadow: 0 0 40px rgba(57, 255, 20, 0.55); transform: scale(1.02); }
}

.wmm4-btn--ghost {
  background: transparent;
  border-color: var(--w4-border);
  color: var(--w4-text);
}

.wmm4-btn--ghost:hover {
  border-color: var(--w4-accent-dim);
  color: var(--w4-accent);
}

.wmm4-btn--xl {
  padding: 16px 32px;
  font-size: 0.88rem;
}

.wmm4-ticker {
  position: relative;
  margin-top: 36px;
  overflow: hidden;
  border-top: 1px solid var(--w4-border);
  border-bottom: 1px solid var(--w4-border);
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wmm4-ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: w4-ticker 28s linear infinite;
  font-family: var(--w4-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(57, 255, 20, 0.55);
}

@keyframes w4-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── BLOCKS ─── */
.wmm4-block {
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.wmm4-block.wmm4-visible {
  opacity: 1;
  transform: none;
}

.wmm4-block-head {
  margin-bottom: 24px;
}

.wmm4-block-head h2 {
  margin: 8px 0 10px;
  font-family: var(--w4-display);
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wmm4-block-head p {
  margin: 0;
  max-width: 38rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--w4-muted);
}

.wmm4-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w4-accent);
}

/* pain grid */
.wmm4-pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.wmm4-pain-card {
  padding: 20px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 68, 68, 0.2);
  background: linear-gradient(160deg, rgba(40, 8, 8, 0.35), var(--w4-surface));
  transition: border-color 0.25s, transform 0.25s;
}

.wmm4-pain-card:hover {
  border-color: rgba(255, 68, 68, 0.45);
  transform: translateY(-2px);
}

.wmm4-pain-card h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fca5a5;
}

.wmm4-pain-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--w4-muted);
}

.wmm4-pain-card p + p {
  margin-top: 10px;
}

.wmm4-pain-punch {
  color: #bbf7d0 !important;
  font-weight: 500;
  padding-top: 8px;
  border-top: 1px solid var(--w4-border);
}

/* match sim */
.wmm4-match-stage {
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid var(--w4-accent-dim);
  background: var(--w4-surface);
  text-align: center;
}

.wmm4-match-clock {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--w4-display);
}

.wmm4-clock-label {
  font-size: 0.6rem;
  color: var(--w4-muted);
  letter-spacing: 0.16em;
}

.wmm4-clock-val {
  font-size: 2.4rem;
  color: var(--w4-accent);
  min-width: 2.2em;
}

.wmm4-clock-score {
  font-size: 1.1rem;
  color: var(--w4-text);
}

.wmm4-match-pitch {
  max-width: 420px;
  margin: 0 auto 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--w4-border);
}

.wmm4-pitch-svg {
  display: block;
  width: 100%;
  height: auto;
}

.wmm4-grass { fill: #0a2a12; }
.wmm4-line { stroke: rgba(57, 255, 20, 0.3); stroke-width: 1.5; fill: none; }
.wmm4-ball { fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,0.8)); transition: cx 0.5s ease, cy 0.5s ease; }
.wmm4-player { fill: var(--w4-accent); filter: drop-shadow(0 0 6px rgba(57,255,20,0.7)); transition: cx 0.5s ease, cy 0.5s ease; }

.wmm4-match-event {
  min-height: 72px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  text-align: left;
}

.wmm4-event-min {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(57, 255, 20, 0.15);
  font-family: var(--w4-display);
  font-size: 0.65rem;
  color: var(--w4-accent);
}

.wmm4-event-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--w4-text);
}

.wmm4-match-stage.wmm4-goal-flash {
  animation: w4-goal-flash 0.6s ease;
}

@keyframes w4-goal-flash {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 60px rgba(57, 255, 20, 0.45); border-color: var(--w4-accent); }
}

/* strike */
.wmm4-strike-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border: 1px solid var(--w4-border);
  border-radius: 8px;
  overflow: hidden;
}

.wmm4-strike {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--w4-border);
  background: var(--w4-surface);
  position: relative;
  overflow: hidden;
}

.wmm4-strike:last-child { border-bottom: none; }

.wmm4-strike strong {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.3s, text-decoration 0.3s;
}

.wmm4-strike span {
  font-size: 0.84rem;
  color: var(--w4-muted);
  line-height: 1.5;
}

.wmm4-strike.wmm4-struck strong {
  text-decoration: line-through;
  text-decoration-color: var(--w4-danger);
  color: #71717a;
}

.wmm4-strike.wmm4-struck::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--w4-danger);
}

.wmm4-scale {
  position: relative;
  height: 160px;
  max-width: 380px;
  margin: 0 auto;
}

.wmm4-scale-beam {
  position: absolute;
  left: 10%;
  top: 56px;
  width: 80%;
  height: 4px;
  background: #555;
  transform: rotate(-10deg);
  transition: transform 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.wmm4-scale.wmm4-tipped .wmm4-scale-beam {
  transform: rotate(16deg);
}

.wmm4-scale-pivot {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--w4-accent);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
  z-index: 2;
}

.wmm4-scale-pan {
  position: absolute;
  top: 72px;
  width: 42%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--w4-border);
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.6s, transform 0.6s;
}

.wmm4-scale-pan--bad { left: 0; color: #71717a; }
.wmm4-scale-pan--you {
  right: 0;
  border-color: var(--w4-accent-dim);
  font-family: var(--w4-display);
  font-size: 1.2rem;
  color: var(--w4-accent);
}

.wmm4-scale.wmm4-tipped .wmm4-scale-pan--bad { opacity: 0.35; }
.wmm4-scale.wmm4-tipped .wmm4-scale-pan--you { transform: translateY(-8px); }

/* manual / stick */
.wmm4-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 22px;
  border-radius: 12px;
  border: 1px solid var(--w4-border);
  background: var(--w4-surface);
}

.wmm4-split h2 {
  margin: 8px 0 12px;
  font-family: var(--w4-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  text-transform: uppercase;
}

.wmm4-split p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--w4-muted);
}

.wmm4-split p + p { margin-top: 10px; }

.wmm4-checklist {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.wmm4-checklist li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.84rem;
  color: #bbf7d0;
}

.wmm4-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--w4-accent);
  font-weight: 700;
}

.wmm4-stick-demo {
  text-align: center;
}

.wmm4-pad { fill: #111; stroke: var(--w4-accent-dim); stroke-width: 2; }
.wmm4-stick-ring { fill: rgba(57,255,20,0.08); stroke: var(--w4-accent-dim); stroke-width: 1.5; }
.wmm4-knob { fill: var(--w4-accent); filter: drop-shadow(0 0 8px rgba(57,255,20,0.6)); }
.wmm4-trail { stroke: rgba(57,255,20,0.45); stroke-width: 2; fill: none; stroke-linecap: round; }

.wmm4-power { margin-top: 12px; }
.wmm4-power-bar {
  height: 8px;
  border-radius: 999px;
  background: #111;
  border: 1px solid var(--w4-border);
  overflow: hidden;
  margin-bottom: 6px;
}

.wmm4-power-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, var(--w4-accent));
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  transition: width 0.08s linear;
}

.wmm4-power span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--w4-muted);
}

/* ecosystem */
.wmm4-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wmm4-eco-card {
  display: block;
  padding: 18px 14px;
  border-radius: 8px;
  border: 1px solid var(--w4-border);
  background: var(--w4-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.wmm4-eco-card:hover {
  border-color: var(--w4-accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.wmm4-eco-ico {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.wmm4-eco-card h3 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--w4-accent);
}

.wmm4-eco-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--w4-muted);
}

/* journey */
.wmm4-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--w4-accent-dim);
  margin-left: 16px;
}

.wmm4-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 0 0 28px 18px;
  position: relative;
}

.wmm4-step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--w4-accent);
  background: var(--w4-bg);
}

.wmm4-step-n {
  font-family: var(--w4-display);
  font-size: 1.5rem;
  color: rgba(57, 255, 20, 0.25);
}

.wmm4-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wmm4-step p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--w4-muted);
}

/* faq */
.wmm4-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wmm4-faq-item {
  border: 1px solid var(--w4-border);
  border-radius: 8px;
  background: var(--w4-surface);
  overflow: hidden;
}

.wmm4-faq-item summary {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  list-style: none;
}

.wmm4-faq-item summary::-webkit-details-marker { display: none; }

.wmm4-faq-item[open] summary {
  color: var(--w4-accent);
  border-bottom: 1px solid var(--w4-border);
}

.wmm4-faq-item p {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--w4-muted);
}

/* final */
.wmm4-final {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  border: 2px solid var(--w4-accent-dim);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(57, 255, 20, 0.1), transparent),
    var(--w4-surface);
  overflow: hidden;
}

.wmm4-final-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(57,255,20,0.25), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.wmm4-final-flash.wmm4-flash-on {
  animation: w4-flash-on 0.8s ease;
}

@keyframes w4-flash-on {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

.wmm4-final h2 {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--w4-display);
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  text-transform: uppercase;
}

.wmm4-final > p {
  position: relative;
  margin: 0 0 22px;
  color: var(--w4-muted);
  font-size: 0.92rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.wmm4-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 32px;
  font-size: 0.78rem;
  color: var(--w4-muted);
  border-top: 1px solid var(--w4-border);
}

.wmm4-versions a {
  color: var(--w4-accent);
  text-decoration: none;
}

@media (max-width: 720px) {
  .wmm4-pain-grid,
  .wmm4-split,
  .wmm4-eco-grid {
    grid-template-columns: 1fr;
  }

  .wmm4-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wmm4-block,
  .wmm4-title-cycle,
  .wmm4-ticker-track,
  .wmm4-btn--pulse,
  .wmm4-hero-glow {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
