/**
 * Website Redesign Solution Page Stylesheet
 * Scoped under .solution-redesign-page
 * 
 * Strict alignment with Code1001 Design System (note.md)
 * Native Dark Mode and Light Mode support via CSS variables
 */

/* ==========================================================================
   GLOBAL SCOPED PAGE RESETS & TYPOGRAPHY
   ========================================================================== */
.solution-redesign-page {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

.solution-redesign-page * {
  box-sizing: border-box;
}

.solution-redesign-page .wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
}

.solution-redesign-page .rd-section {
  padding: 80px 0;
  position: relative;
}

@media (max-width: 768px) {
  .solution-redesign-page .rd-section {
    padding: 56px 0;
  }
}

/* Gradient text utility */
.rd-gradient-text {
  background: linear-gradient(135deg, var(--text) 30%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Common Badges */
.solution-redesign-page .rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.solution-redesign-page .tag-green {
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.25);
}

.solution-redesign-page .tag-blue {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.solution-redesign-page .tag-purple {
  background: rgba(167, 139, 250, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.solution-redesign-page .tag-pink {
  background: rgba(244, 114, 182, 0.14);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.solution-redesign-page .tag-yellow {
  background: rgba(250, 204, 21, 0.16);
  color: #b38800;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

/* Pulse dot animation */
.solution-redesign-page .rd-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #13a57f;
  box-shadow: 0 0 10px #13a57f;
  display: inline-block;
  animation: rdPulse 2s infinite ease-in-out;
}

@keyframes rdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.rd-hero {
  padding: 88px 0 60px;
  position: relative;
  text-align: center;
}

.rd-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rd-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.12) 0%, rgba(96, 165, 250, 0.06) 45%, transparent 75%);
  filter: blur(60px);
}

.rd-grid-pattern {
  display: none !important;
}

.rd-hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.rd-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.rd-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.rd-hero-title {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 auto 20px;
  max-width: 960px;
}

.rd-hero-title .rd-title-top {
  display: block;
}

.rd-hero-title .rd-title-bottom {
  display: block;
}

@media (max-width: 768px) {
  .rd-hero-title {
    font-size: 34px;
    line-height: 1.2;
  }
}

.rd-hero-lead {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 32px;
}

.rd-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.rd-hero-btn {
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.rd-hero-btn:hover {
  transform: translateY(-2px);
}

.rd-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.rd-hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.rd-hbadge svg {
  width: 16px;
  height: 16px;
}

.rd-icon-green { color: #13a57f; }
.rd-icon-blue { color: #60a5fa; }
.rd-icon-purple { color: #a78bfa; }

/* Cockpit Window & Metrics */
.rd-cockpit-wrapper {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.rd-cockpit-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: none;
  overflow: hidden;
  text-align: left;
}

.rd-cockpit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 12px;
}

.rd-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rd-window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rd-window-dots .red { background: #ef4444; opacity: 0.8; }
.rd-window-dots .yellow { background: #f59e0b; opacity: 0.8; }
.rd-window-dots .green { background: #10b981; opacity: 0.8; }

.rd-cockpit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.rd-cockpit-title svg {
  width: 16px;
  height: 16px;
}

.rd-cockpit-tab-pills {
  display: flex;
  align-items: center;
  background: var(--card-3);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.rd-tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rd-tab-btn.active {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: none;
}

/* Cockpit Animated Graph Visualizer */
.rd-cockpit-graph-panel {
  padding: 22px 24px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--card-2);
}

.rd-cgraph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.rd-cgraph-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rd-cgraph-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.25);
  transition: all 0.3s ease;
}

.rd-cgraph-desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease;
}

.rd-cgraph-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #13a57f;
  transition: color 0.3s ease;
}

.rd-cgraph-legend .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #13a57f;
  display: inline-block;
  transition: background 0.3s ease;
}

.rd-cgraph-svg-wrap {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
}

.rd-cgraph-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cgraph-area {
  opacity: 0;
  animation: cgraphAreaFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
  transition: d 0.6s cubic-bezier(0.16, 1, 0.3, 1), fill 0.4s ease, opacity 0.4s ease;
}

@keyframes cgraphAreaFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.cgraph-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: cgraphStrokeDraw 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: d 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

@keyframes cgraphStrokeDraw {
  0% { stroke-dashoffset: 1400; }
  100% { stroke-dashoffset: 0; }
}

#cgraphPeakGroup {
  opacity: 0;
  animation: cgraphPeakFade 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

@keyframes cgraphPeakFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.cgraph-ping-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: cgraphPing 2.5s infinite ease-out 1.4s;
}

@keyframes cgraphPing {
  0% { transform: scale(0.9); opacity: 0.6; }
  60% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.cgraph-cutover-marker {
  opacity: 0;
  animation: cgraphCutoverFade 0.7s ease 0.4s forwards;
}

@keyframes cgraphCutoverFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Cockpit Metric Body: 4 Column Cards */
.rd-cockpit-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
}

@media (max-width: 1024px) {
  .rd-cockpit-body {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rd-cockpit-body {
    grid-template-columns: 1fr;
  }
}

.rd-cockpit-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.rd-cockpit-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .rd-cockpit-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.rd-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 14px;
}

.rd-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.rd-cockpit-card .rd-badge {
  margin-bottom: 0;
  padding: 3px 8px;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rd-metric-display {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rd-circle-gauge {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: var(--card-3);
  stroke-width: 3.8;
}

.circle-fill {
  fill: none;
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke: #13a57f;
  transition: stroke-dasharray 0.5s ease, stroke 0.4s ease;
}

.rd-gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.rd-metric-meta .rd-meta-strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}

.rd-metric-meta .rd-meta-sub {
  font-size: 11.5px;
  color: var(--text-faint);
  margin: 0;
  line-height: 1.4;
}

.rd-metric-num-wrap {
  margin-bottom: 12px;
}

.rd-big-stat {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.rd-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
}

.rd-stat-comparison {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 6px;
}

.rd-comp-arrow {
  font-weight: 700;
  color: #13a57f;
}

.rd-bar-track {
  width: 100%;
  height: 6px;
  background: var(--card-3);
  border-radius: 999px;
  overflow: hidden;
}

.rd-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease, background 0.4s ease;
}

.speed-bar { background: #60a5fa; }
.conv-bar { background: #b38800; }
.weight-bar { background: #a78bfa; }

.rd-cockpit-footer {
  padding: 12px 24px;
  background: var(--card-2);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rd-footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
}

.rd-footer-info svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   2. SYMPTOMS OF AN OUTDATED SITE: 6-CARD DIAGNOSTIC MATRIX
   ========================================================================== */
.rd-symptoms-section {
  background: var(--bg-soft);
  border-top: none;
  border-bottom: 1px solid var(--layout-grid-line);
}

.rd-section-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 8px 0 12px;
}

.rd-section-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0;
}

.rd-symptoms-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .rd-symptoms-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rd-symptoms-matrix {
    grid-template-columns: 1fr;
  }
}

.rd-symptom-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.rd-symptom-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .rd-symptom-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.rd-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rd-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-3);
  border: 1px solid var(--border);
}

.rd-icon-box svg {
  width: 20px;
  height: 20px;
}

.danger-icon { color: #f87171; background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.25); }
.warn-icon { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.25); }
.brand-icon { color: #f472b6; background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.25); }
.seo-icon { color: #60a5fa; background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.25); }
.security-icon { color: #f97316; background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.25); }
.funnel-icon { color: #a78bfa; background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.25); }

.rd-flag-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

.flag-critical { background: rgba(239, 68, 68, 0.14); color: #ef4444; }
.flag-revenue { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }
.flag-brand { background: rgba(236, 72, 153, 0.14); color: #ec4899; }
.flag-seo { background: rgba(59, 130, 246, 0.14); color: #3b82f6; }
.flag-security { background: rgba(249, 115, 22, 0.14); color: #f97316; }
.flag-funnel { background: rgba(168, 85, 247, 0.14); color: #a855f7; }

.rd-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.35;
}

.rd-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 18px;
  flex-grow: 1;
}

.rd-impact-meta {
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rd-impact-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rd-impact-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #f87171;
}

/* ==========================================================================
   3. FORENSIC AUDIT & DISCOVERY
   ========================================================================== */
.rd-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 1024px) {
  .rd-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.rd-inspector-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
}

.rd-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border-soft);
}

.rd-terminal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.rd-audit-checklist {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rd-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.rd-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-ok {
  background: rgba(19, 165, 127, 0.16);
  color: #13a57f;
}

.rd-item-icon svg {
  width: 16px;
  height: 16px;
}

.rd-item-info {
  flex-grow: 1;
}

.rd-item-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px;
}

.rd-item-info p {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.rd-telemetry-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  background: var(--card-3);
  border-radius: 6px;
  color: var(--text);
  white-space: nowrap;
}

.rd-terminal-footer {
  padding: 12px 20px;
  background: #111114;
  border-top: 1px solid var(--border-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #98989f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd-prompt {
  color: #13a57f;
  font-weight: 700;
}

.rd-terminal-footer code {
  color: #e4e4e7;
}

.rd-cursor {
  width: 7px;
  height: 14px;
  background: #13a57f;
  display: inline-block;
  animation: rdCursorBlink 1s infinite;
}

@keyframes rdCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.rd-discovery-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.rd-pillar {
  display: flex;
  gap: 18px;
}

.rd-pillar-num {
  font-size: 14px;
  font-weight: 800;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.rd-pillar-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.rd-pillar-text p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   4. UX & VISUAL REDESIGN
   ========================================================================= */
.rd-design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .rd-design-grid {
    grid-template-columns: 1fr;
  }
}

.rd-design-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rd-dcard-preview {
  height: 180px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.preview-tokens {
  flex-direction: column;
  gap: 14px;
}

.rd-token-swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.s-dark { background: #17171a; }
.s-card { background: #212124; }
.s-green { background: #13a57f; }
.s-blue { background: #60a5fa; }
.s-purple { background: #a78bfa; }

.rd-token-code {
  font-family: monospace;
  font-size: 11px;
  background: var(--card-3);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-dim);
}

/* Mini Wireframe Mockup */
.rd-mini-wireframe {
  width: 100%;
  max-width: 240px;
  background: var(--card-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.wf-bar {
  height: 6px;
  width: 40%;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
}

.wf-split {
  display: flex;
  gap: 10px;
}

.wf-col-l { flex: 1; }
.wf-col-r { flex: 1; }

.wf-line {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 5px;
}

.wf-line.title { width: 80%; background: #60a5fa; opacity: 0.6; }
.wf-line.body { width: 100%; }
.wf-line.body.sm { width: 60%; }

.wf-btn {
  height: 14px;
  width: 50%;
  background: var(--border);
  border-radius: 4px;
  margin-top: 8px;
}

.wf-box {
  height: 48px;
  background: var(--border);
  border-radius: 6px;
}

/* Motion Demo */
.preview-motion {
  flex-direction: column;
  gap: 12px;
}

.rd-motion-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--card-3);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.rd-motion-slider-rail {
  width: 180px;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
}

.rd-rail-thumb {
  position: absolute;
  top: -4px;
  left: 30%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px #a78bfa;
}

.rd-dcard-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rd-dcard-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a78bfa;
  margin-bottom: 8px;
}

.rd-dcard-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.35;
}

.rd-dcard-content p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.rd-feature-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rd-feature-list li {
  font-size: 12.5px;
  color: var(--text-dim);
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
}

.rd-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #13a57f;
  font-weight: 700;
}

/* ==========================================================================
   5. SEO PRESERVATION PROTOCOL (SHIELD BOX)
   ========================================================================== */
.rd-seo-shield-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .rd-seo-shield-box {
    padding: 28px 20px;
  }
}

.rd-shield-header {
  max-width: 780px;
  margin-bottom: 40px;
}

.rd-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(19, 165, 127, 0.12);
  border: 1px solid rgba(19, 165, 127, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #13a57f;
  margin-bottom: 14px;
}

.rd-shield-badge svg {
  width: 14px;
  height: 14px;
}

.rd-shield-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
}

.rd-shield-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
}

.rd-protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .rd-protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rd-protocol-grid {
    grid-template-columns: 1fr;
  }
}

.rd-protocol-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.rd-pcard-step {
  font-size: 13px;
  font-weight: 800;
  color: #13a57f;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.rd-protocol-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.rd-protocol-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.rd-protocol-card.highlight-card {
  background: linear-gradient(135deg, rgba(19, 165, 127, 0.1) 0%, rgba(96, 165, 250, 0.08) 100%);
  border-color: rgba(19, 165, 127, 0.3);
}

.rd-guarantee-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #13a57f;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.rd-guarantee-icon svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   6. DEVELOPMENT: ARCHITECTURE COMPARISON TABLE
   ========================================================================== */
.rd-compare-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
  margin-top: 40px;
}

.rd-compare-head {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1.3fr;
  padding: 16px 24px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.col-legacy { color: #f87171; }
.col-modern { color: #13a57f; }

.rd-compare-rows .rd-row {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1.3fr;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}

.rd-compare-rows .rd-row:last-child {
  border-bottom: none;
}

.rd-row .col-feature strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.rd-row .col-feature span {
  font-size: 12px;
  color: var(--text-faint);
}

.rd-row .status-bad {
  font-size: 13.5px;
  font-weight: 700;
  color: #f87171;
  display: block;
  margin-bottom: 3px;
}

.rd-row .status-good {
  font-size: 13.5px;
  font-weight: 700;
  color: #13a57f;
  display: block;
  margin-bottom: 3px;
}

.rd-row p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .rd-compare-head {
    display: none;
  }
  .rd-compare-rows .rd-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   7. LAUNCH PLAN: 4-STAGE TIMELINE
   ========================================================================== */
.rd-launch-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

@media (max-width: 1024px) {
  .rd-launch-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rd-launch-timeline {
    grid-template-columns: 1fr;
  }
}

.rd-timeline-step {
  display: flex;
  flex-direction: column;
}

.rd-step-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b38800;
}

.marker-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
}

.rd-step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rd-step-timing {
  font-size: 11px;
  font-weight: 700;
  color: #b38800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.rd-step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.rd-step-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 16px;
  flex-grow: 1;
}

.rd-step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.rd-step-pills span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--card-3);
  border-radius: 6px;
  color: var(--text-dim);
}

/* ==========================================================================
   8. BEFORE / AFTER WORK SHOWCASE (INTERACTIVE SLIDER)
   ========================================================================== */
.rd-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--border);
  background: var(--card);
  user-select: none;
  margin-top: 40px;
  touch-action: pan-y;
  --slider-pos: 50%;
}

@media (max-width: 768px) {
  .rd-slider-container {
    height: 430px;
  }
}

.rd-slider-layer {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

.layer-after {
  z-index: 1;
}

.layer-before {
  z-index: 2;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  clip-path: polygon(0 0, var(--slider-pos, 50%) 0, var(--slider-pos, 50%) 100%, 0 100%) !important;
  -webkit-clip-path: polygon(0 0, var(--slider-pos, 50%) 0, var(--slider-pos, 50%) 100%, 0 100%) !important;
  border-right: none;
}

.rd-preview-mockup {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Modern Mockup Styles */
.modern-mockup {
  background: #17171a;
  color: #f4f4f5;
}

.rm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.rm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  white-space: nowrap;
}

.rm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #13a57f;
}

.rm-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: #98989f;
  white-space: nowrap;
}

.rm-cta-btn {
  padding: 6px 14px;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11.5px;
  white-space: nowrap;
}

.rm-body {
  padding: 24px 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.rm-hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.rm-hero-text {
  flex: 1 1 auto;
  max-width: calc(100% - 270px);
  min-width: 0;
}

.rm-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.rm-hero-text h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
}

.rm-hero-text p {
  font-size: 13px;
  color: #98989f;
  margin: 0 0 16px;
  line-height: 1.5;
}

.rm-btns {
  display: flex;
  gap: 10px;
}

.rm-b1 {
  padding: 7px 14px;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.rm-b2 {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.rm-hero-card {
  width: 240px;
  flex-shrink: 0;
  background: #212124;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}

.rm-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #13a57f;
  font-weight: 700;
  margin-bottom: 12px;
}

.rm-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13a57f;
}

.rm-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #98989f;
}

.rm-stat-line strong {
  color: #ffffff;
}

.rd-after-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(19, 165, 127, 0.18);
  border: 1px solid #13a57f;
  color: #13a57f;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Legacy Mockup Styles */
.legacy-mockup {
  background: #f1f5f9;
  color: #1e293b;
  font-family: Arial, Helvetica, sans-serif;
}

.legacy-header {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.legacy-logo-box {
  font-weight: bold;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: #38bdf8;
  white-space: nowrap;
}

.legacy-nav {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
}

.legacy-body {
  padding: 22px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legacy-banner {
  background: #fef08a;
  color: #854d0e;
  font-size: 11px;
  font-weight: bold;
  padding: 6px;
  border: 1px dashed #ca8a04;
  margin-bottom: 14px;
}

.legacy-title {
  font-size: 21px;
  color: #0f172a;
  margin: 0 0 8px;
  font-weight: bold;
}

.legacy-sub {
  font-size: 12px;
  color: #475569;
  max-width: 520px;
  margin: 0 auto 14px;
  line-height: 1.4;
}

.legacy-btn {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 8px 18px;
  font-size: 11.5px;
  font-weight: bold;
  border-radius: 3px;
  box-shadow: none;
}

.legacy-widgets {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.lw-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  font-size: 10px;
  color: #64748b;
  border-radius: 3px;
}

.rd-before-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Slider Handle */
.rd-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%) !important;
  width: 40px;
  margin-left: -20px;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  touch-action: none;
}

.rd-handle-line {
  flex-grow: 1;
  width: 2px;
  background: #ffffff;
  box-shadow: none;
}

.rd-handle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 2px solid var(--border);
}

.rd-handle-btn svg {
  width: 13px;
  height: 13px;
}

/* Transformation Stats Ribbon */
.rd-transformation-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .rd-transformation-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rd-transformation-stats {
    grid-template-columns: 1fr;
  }
}

.rd-tstat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.tstat-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #13a57f;
  line-height: 1.1;
  margin-bottom: 4px;
}

.tstat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.tstat-sub {
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   9. FAQ ACCORDION WITH SCHEMA.ORG (FULL WIDTH)
   ========================================================================== */
.rd-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 36px 0 0;
}

.rd-faq-item {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.rd-faq-item.active {
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .rd-faq-item.active {
  border-color: rgba(0, 0, 0, 0.22);
}

.rd-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

.rd-faq-q {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.rd-faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.rd-faq-item.active .rd-faq-icon {
  transform: rotate(45deg);
  color: #13a57f;
}

.rd-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.rd-answer-inner {
  padding: 0 24px 20px;
}

.rd-answer-inner p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   10. SIGNATURE MOSAIC CTA SECTION
   ========================================================================== */
.rd-cta-section {
  padding-bottom: 100px;
}

.rd-cta-mosaic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

@media (max-width: 768px) {
  .rd-cta-mosaic {
    padding: 44px 20px;
  }
}

.rd-cta-inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.rd-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.rd-cta-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 18px;
}

@media (max-width: 768px) {
  .rd-cta-title {
    font-size: 30px;
  }
}

.rd-cta-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.rd-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.rd-cta-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rd-cta-btn:hover {
  transform: translateY(-2px);
}

.rd-cta-guarantees {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.c-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.c-item svg {
  width: 15px;
  height: 15px;
  color: #13a57f;
}
