/* ── LINC DATA WORKS: GLOBAL PAGE CLASSES ── */

/* Containers & Sections */
.ldw-section { padding: 50px 40px; }
.ldw-section-alt { background: #f5f5f5; }
.ldw-container { max-width: 860px; margin: 0 auto; }

/* Typography */
.ldw-section h2 { margin-bottom: 24px; color: #1a1a2e; }
.ldw-text { font-size: 1.05em; margin-bottom: 24px; }
.ldw-text.mb-small { margin-bottom: 8px; }
.ldw-text.mb-none { margin-bottom: 0; }
.ldw-list { font-size: 1.05em; line-height: 2em; padding-left: 20px; }

/* ── HELPER CLASSES ── */
.ldw-pt-none { padding-top: 0; }
.ldw-mt-md { margin-top: 24px; }
.ldw-mb-md { margin-bottom: 24px; }
.ldw-card-alt { background: #f5f5f5; }

.ldw-lh-copy { line-height: 1.8em; }
.ldw-lh-card { line-height: 1.7em; }

/* Full-bleed utility for LDW color bands inside Astra content containers */
.site-content,
.ast-container,
.entry-content {
  overflow: visible !important;
}

.ldw-full-bleed {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

/* Buttons */
.ldw-btn {
  display: inline-block;
  background: #e8a020;
  color: #fff;
  padding: 14px 32px;
  text-decoration: none !important;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1.1em;
  transition: background 0.2s ease;
}
.ldw-btn:hover { background: #d4911a; color: #fff; }

/* Hero Block */
.ldw-page-hero {
  background: #1a1a2e;
  color: #fff;
  padding: 60px 40px;
  text-align: center;
  margin-top: 2rem;
}
.ldw-page-hero h1 { font-size: 2em; margin-bottom: 16px; color: #fff; }
.ldw-page-hero p { font-size: 1.15em; color: #ccc; max-width: 640px; margin: 0 auto 32px; }

/* Spoke Page Hero Helpers */
.ldw-hero-text-wide {
  max-width: 760px !important;
}

.ldw-hero-text-tight {
  margin-bottom: 20px !important;
}

.ldw-hero-text-emphasis {
  max-width: 760px !important;
  margin: 0 auto 32px !important;
  font-size: 1.05em !important;
  color: #fff !important;
}

.ldw-hero-text-emphasis strong {
  color: #fff;
}

/* Grids & Cards */
.ldw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.ldw-card {
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  border: 1px solid #ece7dd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.ldw-card h3 { margin-top: 0; margin-bottom: 12px; font-size: 1.1em; color: #1a1a2e; }
.ldw-card p { margin-bottom: 0; font-size: 0.95em; color: #555; line-height: 1.6em; }

/* ── MODULE: FOOTER CTA ── */
.ldw-cta-footer {
  background: #1a1a2e;
  color: #fff;
  padding: 56px 40px;
  text-align: center;
}

.ldw-cta-inner {
  max-width: 860px;
  margin: 0 auto;
}

.ldw-cta-footer h2 {
  max-width: 760px;
  margin: 0 auto 16px;
  color: #fff;
}

.ldw-cta-footer p {
  max-width: 760px;
  margin: 0 auto 32px;
  color: #ccc;
  font-size: 1.05em;
  line-height: 1.7;
}

.ldw-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.ldw-btn-secondary {
  display: inline-block;
  background: #fff;
  color: #1a1a2e !important;
  padding: 14px 32px;
  text-decoration: none !important;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1.1em;
  transition: background 0.2s ease;
}

.ldw-btn-secondary:hover {
  background: #f5f5f5;
  color: #1a1a2e !important;
}

/* ── MODULE: SERVICE CARDS (ENHANCED) ── */
.ldw-svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .ldw-svc-grid { grid-template-columns: 1fr; } }

.ldw-svc-card {
  display: block;
  background: #fff;
  border: 1px solid #ece7dd;
  border-left: 4px solid #e8a020;
  border-radius: 8px;
  padding: 24px 24px 52px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ldw-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.ldw-svc-card::after {
  content: 'Learn more →';
  position: absolute;
  right: 24px; bottom: 18px;
  font-size: 0.9em;
  font-weight: 600;
  color: #e8a020;
  opacity: 0.65;
}

/* ── MODULE: METHOD STEPS ── */
.ldw-method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.ldw-method-step {
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: all 0.25s ease;
}
.ldw-method-step:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}
.ldw-method-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid #e8a020;
  border-radius: 50%;
  margin-bottom: 14px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.ldw-method-step:hover .ldw-method-num {
  background: rgba(232,160,32,0.15);
  border-color: rgba(232,160,32,0.9);
}

/* ── MODULE: PRICING TABLES ── */
.ldw-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ldw-pricing-card {
  border: 1px solid #ece7dd;
  border-radius: 8px;
  padding: 28px 24px;
  background: #fff;
  position: relative;
}
.ldw-pricing-card.featured {
  border-color: #e8a020;
  box-shadow: 0 4px 16px rgba(232,160,32,0.1);
}
.ldw-pricing-badge {
  position: absolute;
  top: -10px; right: 20px;
  background: #e8a020; color: #fff;
  font-size: 11px; padding: 3px 12px;
  border-radius: 12px;
}
.ldw-pricing-rate { font-size: 1.8em; font-weight: 700; color: #1a1a2e; }

/* ── MODULE: HUB CARD GRID ── */
.ldw-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ldw-card-link {
  display: block;
  background: #fff;
  padding: 24px 24px 52px;
  border-radius: 6px;
  text-decoration: none !important;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid #ece7dd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
  cursor: pointer;
}

.ldw-card-link::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: #e8a020;
  opacity: 0.18;
  transition: opacity 0.22s ease;
}

.ldw-card-link::after {
  content: "Learn more →";
  position: absolute;
  right: 24px; bottom: 18px;
  font-size: 0.95em;
  font-weight: 600;
  color: #e8a020;
  opacity: 0.72;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ldw-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(232, 160, 32, 0.45);
  background: #fffdf9;
}

.ldw-card-link:hover::before { opacity: 1; }
.ldw-card-link:hover::after { opacity: 1; transform: translateX(4px); }
.ldw-card-link h3 { margin-top: 0; margin-bottom: 16px; transition: color 0.22s ease; }

/* ── MODULE: BADGES ── */
.ldw-badge-pill {
  position: absolute;
  top: -10px; right: 20px;
  background: #e8a020;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
}

/* ── MODULE: STEPPER WIDGET ── */
.ldw-stepper { font-family: inherit; padding: 0; }
.ldw-stages { display: flex; gap: 0; margin-bottom: 1.5rem; }
.ldw-stage-btn { flex: 1; padding: 10px 6px; border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; transition: opacity 0.2s; }
.ldw-stage-btn:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 18px; width: 1px; height: 20px; background: #ddd; }
.ldw-stage-dot { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; transition: all 0.25s; font-size: 16px; font-weight: 500; color: #888; }
.ldw-stage-label { font-size: 16px; color: #888; text-align: center; font-weight: 400; letter-spacing: 0.02em; }
.ldw-stage-btn.active .ldw-stage-dot { background: #1a1a2e; border-color: #1a1a2e; color: #e8a020; }
.ldw-stage-btn.active .ldw-stage-label { color: #1a1a2e; font-weight: 500; }
.ldw-stage-btn.done .ldw-stage-dot { background: #e8a020; border-color: #e8a020; color: #fff; }
.ldw-stage-btn:hover { background: #f9f9fb; border-radius: 6px;}
.ldw-stage-btn:hover .ldw-stage-dot { border-color: #1a1a2e;}
.ldw-stage-btn:hover:not(.active):not(.done) .ldw-stage-dot { color: #1a1a2e; }
.ldw-stage-btn:hover .ldw-stage-label { color: #1a1a2e;}
.ldw-panel { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 1.25rem 1.5rem; min-height: 160px; }
.ldw-panel-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ldw-panel-num { display: inline-block; white-space: nowrap; font-size: 14px; font-weight: 500; color: #e8a020; background: #faeeda; padding: 2px 8px; border-radius: 20px; border: 1px solid #ef9f27; line-height: 1.5;}
.ldw-panel-title { font-size: 16px; font-weight: 500; color: #1a1a2e; }
.ldw-panel-body { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 12px; }
.ldw-signals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ldw-signal { font-size: 12px; color: #633806; background: #faeeda; border: 1px solid #ef9f27; padding: 3px 10px; border-radius: 20px; }
.ldw-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.ldw-nav-btn { font-size: 13px; color: #555; background: none; border: 1px solid #ddd; border-radius: 6px; padding: 6px 14px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ldw-nav-btn:hover { background: #f5f5f5; color: #1a1a2e; }
.ldw-nav-btn:disabled { opacity: 0.3; cursor: default; }
.ldw-nav-btn.primary { background: #1a1a2e; color: #e8a020; border-color: #1a1a2e; }
.ldw-nav-btn.primary:hover { background: #2a2a3e; }
.ldw-progress { font-size: 12px; color: #aaa; }

/* ── MODULE: TRUST STRIP ── */
.ldw-trust-strip {
  background: #fdfdfd;
  padding: 30px 20px;
  border-bottom: 1px solid #eee;
}
.ldw-trust-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.ldw-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 0.95em;
  font-weight: 500;
}
.ldw-trust-icon {
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

/* ── HEADER LOGO: CHILD-THEME SVG ── */

.ldw-header-logo-link {
  display: inline-flex;
  align-items: center;
}

.ldw-header-logo {
  display: block;
  width: 427px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .ldw-header-logo {
    width: 300px;
  }
}

/* ── HOMEPAGE PARITY ADDITIONS ── */

/* Hero Glowing Orbs */
.ldw-hero-home { position: relative; overflow: hidden; }
.ldw-hero-home::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,160,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.ldw-hero-home::after {
  content: ''; position: absolute; bottom: -100px; left: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(232,160,32,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Trust Strip Hover Effects */
.ldw-trust-item { transition: transform 0.25s ease; cursor: default; }
.ldw-trust-item:hover { transform: translateY(-4px); }
.ldw-trust-item:hover .ldw-trust-icon { stroke: #e8a84c !important; }
.ldw-trust-item:hover .ldw-trust-num { color: #c8842a !important; }

/* Service Card Internals */
.ldw-svc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ldw-svc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ldw-svc-icon svg { width: 20px; height: 20px; }
.ldw-svc-label { font-size: 0.73em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #999; margin-bottom: 3px; }
.ldw-svc-copy { font-size: 0.93em; color: #555; line-height: 1.7; margin: 0 0 14px; }
.ldw-svc-result { color: #1a1a2e; font-weight: 600; }
.ldw-svc-signals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ldw-svc-signal { font-size: 11px; color: #633806; background: #faeeda; border: 1px solid #ef9f27; padding: 2px 9px; border-radius: 16px; white-space: nowrap; }

/* Credibility Quote Block */
.ldw-cred-accent-wrap { position: relative; display: inline-block; max-width: 600px; margin: 8px auto 0; padding: 24px 32px 20px; text-align: left; }
.ldw-cred-accent-wrap::before {
  content: '\201C'; position: absolute; top: -10px; left: 20px;
  font-size: 100px; line-height: 1; color: #e8a020; opacity: 0.13;
  font-family: Georgia, serif; pointer-events: none; user-select: none;
}
.ldw-cred-accent { display: block; font-size: 1.15em; color: #1a1a2e; line-height: 1.75; font-style: italic; font-family: Georgia, 'Times New Roman', serif; }
.ldw-cred-accent-attr { display: block; margin-top: 14px; font-size: 0.8em; color: #999; letter-spacing: 0.04em; }
.ldw-cred-accent-attr::before { content: ''; display: inline-block; width: 24px; height: 1px; background: #e8a020; vertical-align: middle; margin-right: 8px; opacity: 0.7; }

/* ── MODULE: CASE STUDY BLOCK ── */
.ldw-case-study-body {
  font-size: 1.02em;
  color: #555;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: left;
}
.ldw-case-study-label {
  color: #888;
  font-style: normal;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ── MODULE: ENGAGEMENT CAROUSEL ── */
.ldw-carousel-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ldw-carousel-tab {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
  transition: all 0.2s ease;
}
.ldw-carousel-tab:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
}
.ldw-carousel-tab.active {
  background: #1a1a2e;
  color: #e8a020;
  border-color: #1a1a2e;
}
.ldw-carousel-card {
  background: #fff;
  border: 1px solid #ece7dd;
  border-radius: 8px;
  padding: 32px 36px;
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
  min-height: 220px;
}
.ldw-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1.25rem;
}
.ldw-carousel-dot {
  appearance: none;
  -webkit-appearance: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  padding: 0;
  display: inline-block;
}

.ldw-carousel-dot.active {
  background: #e8a020;
}

/* ── RESPONSIVE FIXES: MOBILE STACKING ── */

/* Stack the 4-step method section */
@media (max-width: 720px) {
  .ldw-method-steps { grid-template-columns: 1fr 1fr; } /* 2x2 grid on tablets */
}
@media (max-width: 480px) {
  .ldw-method-steps { grid-template-columns: 1fr; } /* 1x4 stack on phones */
}

/* Stack the pricing cards */
@media (max-width: 600px) {
  .ldw-pricing-grid { grid-template-columns: 1fr; } /* 1x2 stack on phones */
}

/* ── MODULE: SCROLL REVEAL ──
   Applies to any element tagged with data-reveal.
   The element starts slightly lowered and transparent, then eases
   into place when it scrolls into view. Staggered children are
   handled by data-reveal="stagger" on the parent; each direct child
   gets a small cascading delay via --ldw-reveal-i (set by JS).

   Accessibility:
   If the visitor has prefers-reduced-motion set, no animation runs
   and the content appears in its normal position with full opacity.
*/

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children: the parent holds data-reveal="stagger",
   and each direct child gets a delay based on its index. */
[data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transition-delay: calc(var(--ldw-reveal-i, 0) * 80ms);
  will-change: opacity, transform;
}

[data-reveal="stagger"].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Respect the visitor's motion preference. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="stagger"] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── MODULE: HOMEPAGE DIAGNOSTIC FLOW HERO (ALL SVG) ──
   Purpose:
   Adds a restrained animated homepage hero visual showing fragile operational
   inputs moving through LDW toward clearer, more stable business outputs.

   Design approach:
   - Hero copy remains HTML.
   - Diagnostic illustration is fully SVG.
   - Cards, connectors, labels, and LDW use one coordinate system.
   - Connector paths are static visual guides.
   - Tracer dots use SVG animateMotion + mpath to show directional movement.
   - Core halo pulse provides subtle emphasis without making the hero feel busy.

   Accessibility:
   - The SVG is decorative and hidden from assistive technology in the HTML.
   - Reduced-motion handling hides tracer dots and disables CSS animation.
*/

.ldw-hero-home {
  text-align: left;
  padding: 70px 40px;
}

.ldw-hero-home-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 48px;
  align-items: center;
}

.ldw-hero-copy h1 {
  max-width: 560px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.ldw-hero-copy p {
  max-width: 600px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.65;
}

.ldw-diagnostic-flow {
  position: relative;
  min-height: clamp(440px, 42vw, 520px);
  display: flex;
  align-items: center;
}

.ldw-flow-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
}

.ldw-flow-panel {
  fill: rgba(255,255,255,0.035);
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

.ldw-flow-label {
  fill: rgba(255,255,255,0.84);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.ldw-flow-particle {
  fill: rgba(232,160,32,0.35);
  opacity: 0.25;
  /* Pulse animation removed — particles now sit as quiet static dots. */
}

.ldw-flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2;
  stroke-dasharray: 4 8;
  /* Dash animation removed — paths are static texture, not motion. */
}

.ldw-flow-path-gold {
  stroke: rgba(232,160,32,0.45);
}

.ldw-flow-path-mid {
  stroke: rgba(232,160,32,0.45);
}

.ldw-flow-tracers {
  pointer-events: none;
  opacity: 0;
  animation: ldwFlowTracersReady 0.01s linear 0.35s forwards;
}

@keyframes ldwFlowTracersReady {
  to {
    opacity: 1;
  }
}

.ldw-flow-tracer {
  opacity: 0.55;
  /* Glow filter removed so tracers read as quiet pulses, not fireflies. */
}

.ldw-flow-tracer-gold {
  fill: rgba(232,160,32,0.95);
}

.ldw-flow-tracer-mid {
  fill: rgba(232,160,32,0.95);
}

.ldw-flow-card-rect {
  fill: none;
  stroke: rgba(255,255,255,0.32);
  stroke-width: 1;
  /* Solid outline, no fill, no shadow — schematic but present. */
}

.ldw-flow-card-rect-output {
  stroke: rgba(232,160,32,0.55);
}

.ldw-flow-card-title {
  fill: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.ldw-flow-card-sub {
  fill: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 400;
}

.ldw-flow-core {
  fill: #e8a020;
  filter: url(#ldwFlowGlow);
}

.ldw-flow-core-text {
  fill: #1a1a2e;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

@keyframes ldwFlowDash {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes ldwFlowParticlePulse {
  0%, 100% {
    opacity: 0.28;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes ldwFlowInputCardGlow {
  0%, 100% {
    stroke: rgba(255,255,255,0.12);
  }

  50% {
    stroke: rgba(232,160,32,0.26);
  }
}

@keyframes ldwFlowOutputCardGlow {
  0%, 100% {
    stroke: rgba(232,160,32,0.28);
  }

  50% {
    stroke: rgba(232,160,32,0.55);
  }
}

/* ─────────────────────────────────────────────────────────
   Diagnostic flow — diagnosis cycle (INTAKE → DIAGNOSE → RELEASE → REST)
   Cycle timing (one full cycle = 7s):
     0.0s – 2.4s  INTAKE   tracers travel from input cards toward core
     2.4s – 4.0s  DIAGNOSE tracers vanish at core; halo intensifies and pulses
     4.0s – 6.4s  RELEASE  clean tracers emit from core; output cards
                           flash on tracer arrival (~6.4s–6.7s)
     6.4s – 7.0s  REST     brief beat before the next cycle begins
   ───────────────────────────────────────────────────────── */

/* Defect indicators on the input cards.
   These small status glyphs visually assert "this system is fragile" —
   the lived experience the hero copy describes. */

/* Access DB: red error dot that pulses */
.ldw-flow-defect-error {
  fill: #d94545;
  animation: ldwDefectErrorPulse 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ldwDefectErrorPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* Excel report: #REF! tag that flickers like a real broken formula. */
.ldw-flow-defect-ref {
  fill: rgba(217,69,69,0.18);
  stroke: rgba(217,69,69,0.55);
  stroke-width: 1;
}
.ldw-flow-defect-ref-text {
  fill: #d94545;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.5px;
  animation: ldwDefectRefFlicker 4.2s steps(1, end) infinite;
}
@keyframes ldwDefectRefFlicker {
  0%, 60%, 64%, 100% { opacity: 0.78; }
  62%                { opacity: 0.50; }
}

/* SQL pipeline: stalled spinner — rotates briefly, hangs, repeats */
.ldw-flow-defect-spinner {
  fill: none;
  stroke: #d94545;
  stroke-width: 1.5;
  stroke-linecap: round;
  transform-origin: center;
  transform-box: fill-box;
  animation: ldwDefectSpinnerStall 3.6s ease-in-out infinite;
}
@keyframes ldwDefectSpinnerStall {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(140deg); }
  35%  { transform: rotate(150deg); }   /* stall */
  65%  { transform: rotate(155deg); }   /* still stalled */
  100% { transform: rotate(360deg); }
}

/* Tracer visibility gates — keep motion phase-aligned with opacity */
.ldw-flow-tracers-in {
  animation: ldwIntakeVisibility 7s linear infinite;
}
@keyframes ldwIntakeVisibility {
  0%, 34%   { opacity: 1; }
  35%, 100% { opacity: 0; }
}

.ldw-flow-tracers-out {
  animation: ldwReleaseVisibility 7s linear infinite;
}
@keyframes ldwReleaseVisibility {
  0%, 56%    { opacity: 0; }
  57%, 91%   { opacity: 1; }
  92%, 100%  { opacity: 0; }
}

/* Output tracers are gold/clean, slightly larger to feel "resolved" */
.ldw-flow-tracer-clean {
  fill: #ffc25a;
  filter: drop-shadow(0 0 4px rgba(255,194,90,0.6));
}

/* Core halo synchronized with the diagnose phase */
.ldw-flow-core-halo-active {
  fill: rgba(232,160,32,0.10);
  filter: url(#ldwFlowGlow);
  transform-origin: center;
  transform-box: fill-box;
  animation: ldwDiagnosePulse 7s ease-in-out infinite;
}
@keyframes ldwDiagnosePulse {
  0%, 30%   { opacity: 0.30; transform: scale(1); }
  34%       { opacity: 0.85; transform: scale(1.18); }
  42%       { opacity: 0.55; transform: scale(1.08); }
  50%, 60%  { opacity: 0.80; transform: scale(1.14); }
  70%, 100% { opacity: 0.30; transform: scale(1); }
}

/* Output card flash on tracer arrival.
   Three keyframe sets because tracers arrive staggered (91% / 93% / 95%
   of the 7s cycle). Stroke peaks at rgba(255,194,90,0.95) to match the
   tracer's glow hue, so the flash reads as a consequence of arrival. */
.ldw-flow-card-rect-flash-1 { animation: ldwOutputFlash1 7s ease-out infinite; }
.ldw-flow-card-rect-flash-2 { animation: ldwOutputFlash2 7s ease-out infinite; }
.ldw-flow-card-rect-flash-3 { animation: ldwOutputFlash3 7s ease-out infinite; }

@keyframes ldwOutputFlash1 {
  0%, 88%    { stroke: rgba(232,160,32,0.55); stroke-width: 1;    fill: rgba(232,160,32,0); }
  91%        { stroke: rgba(255,194,90,0.95); stroke-width: 1.6;  fill: rgba(232,160,32,0.035); }
  94%        { stroke: rgba(255,194,90,0.78); stroke-width: 1.35; fill: rgba(232,160,32,0.022); }
  97%        { stroke: rgba(255,194,90,0.55); stroke-width: 1.15; fill: rgba(232,160,32,0.011); }
  100%       { stroke: rgba(232,160,32,0.55); stroke-width: 1;    fill: rgba(232,160,32,0); }
}
@keyframes ldwOutputFlash2 {
  0%, 90%    { stroke: rgba(232,160,32,0.55); stroke-width: 1;    fill: rgba(232,160,32,0); }
  93%        { stroke: rgba(255,194,90,0.95); stroke-width: 1.6;  fill: rgba(232,160,32,0.035); }
  95.5%      { stroke: rgba(255,194,90,0.78); stroke-width: 1.35; fill: rgba(232,160,32,0.022); }
  98.5%      { stroke: rgba(255,194,90,0.55); stroke-width: 1.15; fill: rgba(232,160,32,0.011); }
  100%       { stroke: rgba(232,160,32,0.55); stroke-width: 1;    fill: rgba(232,160,32,0); }
}
@keyframes ldwOutputFlash3 {
  0%, 91%    { stroke: rgba(232,160,32,0.55); stroke-width: 1;    fill: rgba(232,160,32,0); }
  94%        { stroke: rgba(255,194,90,0.95); stroke-width: 1.6;  fill: rgba(232,160,32,0.035); }
  96.5%      { stroke: rgba(255,194,90,0.78); stroke-width: 1.35; fill: rgba(232,160,32,0.022); }
  99%        { stroke: rgba(255,194,90,0.55); stroke-width: 1.15; fill: rgba(232,160,32,0.011); }
  100%       { stroke: rgba(232,160,32,0.55); stroke-width: 1;    fill: rgba(232,160,32,0); }
}






@media (max-width: 980px) {
  .ldw-hero-home {
    text-align: center;
    padding: 60px 28px;
  }

  .ldw-hero-home-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ldw-hero-copy h1,
  .ldw-hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .ldw-hero-copy p[style] {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ldw-diagnostic-flow {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .ldw-hero-home {
    padding: 48px 22px;
  }
  .ldw-diagnostic-flow {
    display: flex;
    width: 100%;
    max-width: 460px;
    min-height: 280px;
    margin: 24px auto 0;
  }

  .ldw-flow-svg {
    width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ldw-flow-path,
  .ldw-flow-particle,
  .ldw-flow-core-halo-active,
  .ldw-flow-card-rect,
  .ldw-flow-defect-error,
  .ldw-flow-defect-ref-text,
  .ldw-flow-defect-spinner,
  .ldw-flow-tracers-in,
  .ldw-flow-tracers-out,
  .ldw-flow-card-rect-flash-1,
  .ldw-flow-card-rect-flash-2,
  .ldw-flow-card-rect-flash-3 {
    animation: none !important;
  }

  .ldw-flow-tracer {
    display: none;
  }

  .ldw-flow-tracers-in,
  .ldw-flow-tracers-out {
    opacity: 0;
  }

  .ldw-flow-defect-spinner {
    transform: rotate(150deg);
  }
}