/* ============================================================
 * WUC Technologies — Retail & E-Commerce Industry Page
 * Scoped tokens: --rtl-*
 * Loaded only on /industries/retail-ecommerce/ via wuc-rtl-page-enqueue.php
 * ============================================================ */

:root {
  --rtl-bg-page: #ffffff;
  --rtl-bg-section: #f7f9fc;
  --rtl-bg-section-alt: #eef2f8;
  --rtl-bg-panel: #ffffff;
  --rtl-bg-deep: #0a1628;
  --rtl-text-primary: #0a1628;
  --rtl-text-secondary: #475569;
  --rtl-text-muted: #64748b;
  --rtl-text-on-deep: #ffffff;
  --rtl-text-on-deep-muted: #cbd5e1;
  --rtl-brand: #0052B8;
  --rtl-brand-deep: #003a85;
  --rtl-brand-tint: #e7f0fb;
  --rtl-accent-success: #10b981;
  --rtl-accent-warning: #f59e0b;
  --rtl-accent-danger: #ef4444;
  --rtl-accent-peak: #dc2626;
  --rtl-accent-neutral: #94a3b8;
  --rtl-border: #e2e8f0;
  --rtl-border-strong: #cbd5e1;
  --rtl-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --rtl-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --rtl-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --rtl-radius-sm: 6px;
  --rtl-radius-md: 8px;
  --rtl-radius-lg: 12px;
  --rtl-space-1: 8px;
  --rtl-space-2: 16px;
  --rtl-space-3: 24px;
  --rtl-space-4: 40px;
  --rtl-space-5: 64px;
  --rtl-space-6: 96px;
}

.rtl-page * { box-sizing: border-box; }
.rtl-page p, .rtl-page h1, .rtl-page h2, .rtl-page h3, .rtl-page h4 { margin: 0; }

.rtl-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--rtl-text-primary); background: var(--rtl-bg-page);
  -webkit-font-smoothing: antialiased;
}

.rtl-container { max-width: 1240px; margin: 0 auto; padding: 0 var(--rtl-space-3); }
.rtl-section { padding: var(--rtl-space-6) 0; }
.rtl-section--tinted { background: var(--rtl-bg-section); }
.rtl-section--alt { background: var(--rtl-bg-section-alt); }

.rtl-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--rtl-brand); margin-bottom: var(--rtl-space-2);
}
.rtl-section-header { max-width: 760px; margin-bottom: var(--rtl-space-4); }
.rtl-section-title {
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: var(--rtl-space-2);
}
.rtl-section-sub { font-size: 17px; color: var(--rtl-text-secondary); line-height: 1.55; }

/* ============== HERO ============== */
.rtl-hero { padding: var(--rtl-space-5) 0 var(--rtl-space-6); background: linear-gradient(180deg, var(--rtl-bg-section) 0%, #ffffff 100%); }
.rtl-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--rtl-space-4); align-items: center; }
.rtl-hero-h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: var(--rtl-space-3); color: var(--rtl-text-primary);
}
.rtl-hero-h1 .accent { color: var(--rtl-brand); }
.rtl-hero-sub { font-size: 18px; line-height: 1.55; color: var(--rtl-text-secondary); margin-bottom: var(--rtl-space-3); max-width: 560px; }

.rtl-cta-row { display: flex; flex-wrap: wrap; gap: var(--rtl-space-2); }
.rtl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: var(--rtl-radius-md);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.15s ease; font-family: inherit;
}
.rtl-btn--primary { background: var(--rtl-brand); color: #fff; }
.rtl-btn--primary:hover { background: var(--rtl-brand-deep); transform: translateY(-1px); box-shadow: var(--rtl-shadow-md); }
.rtl-btn--secondary { background: transparent; color: var(--rtl-brand); border: 1.5px solid var(--rtl-brand); }
.rtl-btn--secondary:hover { background: var(--rtl-brand-tint); }
.rtl-btn--on-deep { background: #fff; color: var(--rtl-bg-deep); }
.rtl-btn--on-deep:hover { background: var(--rtl-bg-section-alt); }

.rtl-hero-card { background: var(--rtl-bg-deep); color: var(--rtl-text-on-deep); border-radius: var(--rtl-radius-lg); padding: var(--rtl-space-4); box-shadow: var(--rtl-shadow-lg); }
.rtl-hero-card-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rtl-text-on-deep-muted); margin-bottom: var(--rtl-space-3); }
.rtl-hero-card-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: var(--rtl-space-3); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: var(--rtl-space-3); }
.rtl-hero-card-row { display: flex; align-items: center; justify-content: space-between; }
.rtl-hero-card-label { font-size: 13px; font-weight: 500; color: #fff; }
.rtl-hero-card-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 10.5px; font-weight: 600; border-radius: 10px; letter-spacing: 0.3px; text-transform: uppercase; }
.rtl-hero-card-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.rtl-hero-card-pill--aligned { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.rtl-hero-card-pill--pending { background: rgba(245,158,11,0.18); color: #fbbf24; }
.rtl-hero-card-pill--peak { background: rgba(220,38,38,0.18); color: #fca5a5; }

.rtl-hero-card-peak-banner {
  background: rgba(220,38,38,0.10); border: 1px solid rgba(220,38,38,0.25);
  border-radius: var(--rtl-radius-sm); padding: 10px 12px;
  margin-bottom: var(--rtl-space-3);
  font-size: 12px; color: #fca5a5; line-height: 1.4;
  display: flex; align-items: flex-start; gap: 8px;
}
.rtl-hero-card-peak-banner::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fca5a5;
  flex-shrink: 0; margin-top: 6px;
}

.rtl-hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rtl-space-2); }
.rtl-hero-card-stat-num { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; color: #fff; line-height: 1; }
.rtl-hero-card-stat-label { font-size: 11px; color: var(--rtl-text-on-deep-muted); margin-top: 4px; }

/* ============== REALITY CARDS ============== */
.rtl-reality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rtl-space-3); }
.rtl-reality-card { background: var(--rtl-bg-panel); border: 1px solid var(--rtl-border); border-radius: var(--rtl-radius-md); padding: var(--rtl-space-4); position: relative; }
.rtl-reality-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--rtl-brand); }
.rtl-reality-card h3 { font-size: 18px; font-weight: 700; margin-bottom: var(--rtl-space-2); color: var(--rtl-text-primary); letter-spacing: -0.01em; line-height: 1.3; }
.rtl-reality-card p { font-size: 14.5px; line-height: 1.6; color: var(--rtl-text-secondary); }

/* ============== FRAMEWORK MATRIX ============== */
.rtl-framework-table-wrap { background: var(--rtl-bg-panel); border: 1px solid var(--rtl-border); border-radius: var(--rtl-radius-lg); overflow: hidden; box-shadow: var(--rtl-shadow-sm); }
.rtl-framework-scroll { overflow-x: auto; }
.rtl-framework-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.rtl-framework-table thead th { background: var(--rtl-bg-section-alt); color: var(--rtl-text-primary); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; padding: var(--rtl-space-2) var(--rtl-space-3); text-align: left; border-bottom: 2px solid var(--rtl-border-strong); }
.rtl-framework-table tbody td { padding: var(--rtl-space-3); border-bottom: 1px solid var(--rtl-border); font-size: 14px; color: var(--rtl-text-secondary); line-height: 1.5; vertical-align: top; }
.rtl-framework-table tbody tr:last-child td { border-bottom: none; }
.rtl-framework-name { font-weight: 700; color: var(--rtl-text-primary); font-size: 15px; display: block; margin-bottom: 2px; }
.rtl-framework-acronym { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--rtl-text-muted); display: block; }
.rtl-framework-scope { font-size: 13px; color: var(--rtl-text-secondary); max-width: 280px; }
.rtl-framework-posture { font-size: 13px; color: var(--rtl-text-primary); max-width: 360px; }
.rtl-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 12px; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
.rtl-status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rtl-status-pill--attested { background: #d1fae5; color: var(--rtl-accent-success); }
.rtl-status-pill--aligned { background: var(--rtl-brand-tint); color: var(--rtl-brand); }
.rtl-status-pill--pending { background: #fef3c7; color: var(--rtl-accent-warning); }
.rtl-status-pill--neutral { background: #f1f5f9; color: var(--rtl-accent-neutral); }
.rtl-framework-note { margin-top: var(--rtl-space-3); padding: var(--rtl-space-2) var(--rtl-space-3); background: var(--rtl-bg-section); border-left: 3px solid var(--rtl-brand-tint); font-size: 13px; color: var(--rtl-text-muted); line-height: 1.55; border-radius: 0 var(--rtl-radius-sm) var(--rtl-radius-sm) 0; }

/* ============== CAPABILITY MAP ============== */
.rtl-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rtl-space-3); }
.rtl-cap-card { background: var(--rtl-bg-panel); border: 1px solid var(--rtl-border); border-radius: var(--rtl-radius-md); padding: var(--rtl-space-3); display: flex; flex-direction: column; gap: var(--rtl-space-2); }
.rtl-cap-title { font-size: 15px; font-weight: 700; color: var(--rtl-text-primary); letter-spacing: -0.01em; line-height: 1.3; }
.rtl-cap-outcome { font-size: 13.5px; color: var(--rtl-text-secondary); line-height: 1.5; flex: 1; }
.rtl-cap-ref { font-size: 11.5px; color: var(--rtl-text-muted); font-style: italic; padding-top: var(--rtl-space-2); border-top: 1px dashed var(--rtl-border); margin-top: auto; }

/* ============== COMPARISON MATRIX ============== */
.rtl-matrix-wrap { background: var(--rtl-bg-panel); border: 1px solid var(--rtl-border); border-radius: var(--rtl-radius-md); overflow: hidden; box-shadow: var(--rtl-shadow-sm); }
.rtl-matrix-scroll { overflow-x: auto; }
.rtl-matrix { width: 100%; border-collapse: collapse; min-width: 1000px; }
.rtl-matrix thead th { background: var(--rtl-bg-section-alt); color: var(--rtl-text-primary); font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; padding: var(--rtl-space-2); text-align: left; border-bottom: 2px solid var(--rtl-border-strong); }
.rtl-matrix thead th.rtl-col-wuc { background: var(--rtl-brand); color: #fff; }
.rtl-matrix tbody td { padding: var(--rtl-space-2); border-bottom: 1px solid var(--rtl-border); font-size: 12.5px; color: var(--rtl-text-secondary); line-height: 1.4; vertical-align: top; }
.rtl-matrix tbody tr:last-child td { border-bottom: none; }
.rtl-matrix tbody td.rtl-row-label { font-weight: 600; color: var(--rtl-text-primary); background: var(--rtl-bg-section); width: 200px; }
.rtl-matrix tbody td.rtl-cell-wuc { background: rgba(0, 82, 184, 0.04); color: var(--rtl-text-primary); font-weight: 500; }
.rtl-mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; margin-right: 6px; flex-shrink: 0; }
.rtl-mark--good { background: #d1fae5; color: var(--rtl-accent-success); }
.rtl-mark--partial { background: #fef3c7; color: var(--rtl-accent-warning); }
.rtl-mark--gap { background: #fee2e2; color: var(--rtl-accent-danger); }
.rtl-cell-line { display: flex; align-items: flex-start; }

/* ============== ENGAGEMENT PROFILE ============== */
.rtl-engagement-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--rtl-space-4); align-items: stretch; }
.rtl-engagement-narrative { background: var(--rtl-bg-panel); border: 1px solid var(--rtl-border); border-left: 4px solid var(--rtl-brand); border-radius: var(--rtl-radius-md); padding: var(--rtl-space-4); }
.rtl-engagement-narrative h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--rtl-space-2); color: var(--rtl-text-primary); letter-spacing: -0.01em; }
.rtl-engagement-narrative p { font-size: 14.5px; line-height: 1.65; color: var(--rtl-text-secondary); margin-bottom: var(--rtl-space-2); }
.rtl-engagement-narrative p:last-child { margin-bottom: 0; }
.rtl-engagement-narrative .label-line { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--rtl-brand); margin-top: var(--rtl-space-3); margin-bottom: var(--rtl-space-1); }

.rtl-engagement-stats { background: var(--rtl-bg-deep); color: var(--rtl-text-on-deep); border-radius: var(--rtl-radius-md); padding: var(--rtl-space-4); display: flex; flex-direction: column; gap: var(--rtl-space-3); }
.rtl-engagement-stats-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rtl-text-on-deep-muted); margin-bottom: var(--rtl-space-2); }
.rtl-engagement-stat { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--rtl-space-2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.rtl-engagement-stat:last-child { border-bottom: none; padding-bottom: 0; }
.rtl-engagement-stat-label { font-size: 12.5px; color: var(--rtl-text-on-deep-muted); flex: 1; line-height: 1.3; padding-right: var(--rtl-space-2); }
.rtl-engagement-stat-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 600; color: #fff; white-space: nowrap; }

/* ============== FAQ ============== */
.rtl-faq-list { max-width: 880px; margin: 0 auto; }
.rtl-faq-item { border-bottom: 1px solid var(--rtl-border); }
.rtl-faq-item:first-child { border-top: 1px solid var(--rtl-border); }
.rtl-faq-q { width: 100%; background: none; border: none; padding: var(--rtl-space-3) 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: inherit; font-size: 16.5px; font-weight: 600; color: var(--rtl-text-primary); text-align: left; letter-spacing: -0.01em; list-style: none; }
.rtl-faq-q::-webkit-details-marker { display: none; }
.rtl-faq-q:hover { color: var(--rtl-brand); }
.rtl-faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--rtl-bg-section); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; margin-left: var(--rtl-space-2); transition: transform 0.2s ease, background 0.2s ease; }
.rtl-faq-item[open] .rtl-faq-icon { background: var(--rtl-brand); color: #fff; transform: rotate(45deg); }
.rtl-faq-a { padding: 0 0 var(--rtl-space-3) 0; font-size: 15px; line-height: 1.65; color: var(--rtl-text-secondary); max-width: 760px; }
.rtl-faq-a code { background: var(--rtl-bg-section); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; font-family: 'JetBrains Mono', monospace; }

/* ============== FINAL CTA ============== */
.rtl-final-cta { background: var(--rtl-brand); color: #fff; text-align: center; padding: var(--rtl-space-6) var(--rtl-space-3); }
.rtl-final-cta-inner { max-width: 720px; margin: 0 auto; }
.rtl-final-cta-h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--rtl-space-3); }
.rtl-final-cta-sub { font-size: 17px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; margin-bottom: var(--rtl-space-4); }
.rtl-final-cta-row { display: flex; justify-content: center; gap: var(--rtl-space-2); flex-wrap: wrap; }
.rtl-final-cta-fallback { margin-top: var(--rtl-space-3); font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.rtl-final-cta-fallback a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1080px) { .rtl-cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .rtl-hero-grid { grid-template-columns: 1fr; }
  .rtl-reality-grid { grid-template-columns: 1fr; }
  .rtl-cap-grid { grid-template-columns: 1fr; }
  .rtl-engagement-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rtl-section { padding: var(--rtl-space-5) 0; }
  .rtl-section-header { margin-bottom: var(--rtl-space-3); }
  .rtl-cta-row { flex-direction: column; align-items: stretch; }
  .rtl-btn { justify-content: center; }
}
