/* ============================================================
   SINGLE WHITEPAPER — whitepaper.css
   ============================================================ */

:root {
  --mb:#0A0A56; --mb2:#15156D; --mb3:#312CA1; --mb-soft:#EEF0F7;
  --vi:#6617FF; --vi2:#9B54FF; --vi-soft:#F4EEFF;
  --mg:#FFBB4E; --mg2:#FFC776; --mg-soft:#FFF6E5;
  --ink:#0B0B1E; --ink2:#2A2A3C; --muted:#6B6B7B;
  --line:#E5E5EC; --line-2:#EFEFF4;
  --bg:#FFFFFF; --bg-soft:#F7F7FA; --wh:#FFFFFF;
}

/* ══════════════════════════════════
   HERO (dark navy)
══════════════════════════════════ */
.wp-hero {
  background: var(--mb);
  padding: 90px 32px 72px;
  position: relative;
  overflow: hidden;
}
/* grid texture */
.wp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* subtle violet glow bottom-left only */
.wp-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102,23,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.wp-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Breadcrumb on dark */
.wp-breadcrumb { color: rgba(255,255,255,0.5); }
.wp-breadcrumb a { font-size:13px;color: rgba(255,255,255,0.5); transition: color 0.15s; text-decoration: none; }
.wp-breadcrumb a:hover { color: var(--wh); }
.wp-breadcrumb .sep { color: rgba(255,255,255,0.2); }
.wp-breadcrumb .cur { font-size:13px;color: rgba(255,255,255,0.85); font-weight: 500; }

/* Split grid */
.wp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}

/* Pills */
.wp-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 30px;
}
.wp-pill.type-wp { background: rgba(102,23,255,0.22); color: var(--vi2); border: 1px solid rgba(102,23,255,0.35); }
.wp-pill.type-wp .pdot { width: 5px; height: 5px; background: var(--vi2); border-radius: 50%; }
.wp-pill.svc { background: rgba(255,187,78,0.15); color: var(--mg); border: 1px solid rgba(255,187,78,0.3); }
.wp-pill.svc .pdot { width: 5px; height: 5px; background: var(--mg); border-radius: 50%; }

/* Title & deck */
.wp-hero h1 {
  font-family: 'Archivo', sans-serif;
  font-size: 42px; font-weight: 700; color: var(--wh);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px; max-width: 600px;
}
.wp-deck {
  font-size: 18px; color: rgba(255,255,255,0.72);
  line-height: 1.7; font-weight: 300; max-width: 560px;
  margin-bottom: 36px;
}

/* Stats row */
.wp-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.wp-stat { padding: 0 28px 0 0; }
.wp-stat:first-child { padding-left: 0; }
.wp-stat-num {
  font-family: 'Archivo', sans-serif;
  font-size: 26px; font-weight: 700; color: var(--wh);
  letter-spacing: -0.015em; line-height: 1;
}
.wp-stat-lbl {
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-top: 5px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.wp-stat-div {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.12);
  margin-right: 28px; flex-shrink: 0;
}

/* ── PDF Cover visual ── */
.wp-cover {
  background: linear-gradient(135deg, var(--mb2) 0%, var(--mb3) 60%, var(--vi2) 100%);
  border-radius: 14px;
  padding: 40px 32px;
  position: relative; overflow: hidden;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.wp-cover::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,187,78,0.2) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(102,23,255,0.3) 0%, transparent 50%);
}
.wp-cover::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.wp-cover-doc {
  position: relative; z-index: 2;
  transform: rotate(-3deg);
  width: 200px; height: 272px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F0F8 100%);
  border-radius: 6px;
  box-shadow: 0 32px 60px -8px rgba(0,0,0,0.45), 0 8px 16px -4px rgba(0,0,0,0.25);
  padding: 24px 20px;
  display: flex; flex-direction: column;
}
.wcd-logo {
  width: 26px; height: 26px;
  position: relative; margin-bottom: 18px;
}
.wl-b1 {
  position: absolute; top: 0; left: 4px;
  width: 9px; height: 20px;
  background: var(--vi); border-radius: 2px 2px 0 0; transform: skewX(-8deg);
}
.wl-b2 {
  position: absolute; top: 6px; left: 0;
  width: 9px; height: 14px;
  background: var(--vi2); border-radius: 2px 2px 0 0; transform: skewX(-8deg);
}
.wl-d {
  position: absolute; bottom: 0; right: 2px;
  width: 6px; height: 6px;
  background: var(--mg); border-radius: 50%;
}
.wcd-type {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 12px;
}
.wcd-title {
  font-family: 'Archivo', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--mb);
  line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: auto; flex: 1;
}
.wcd-rule { width: 32px; height: 2px; background: var(--mg); margin: 16px 0 12px; }
.wcd-meta {
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}

/* ── Form card ── */
.wp-form-card {
  background: var(--wh);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.22);
}
.wfc-h {
  font-family: 'Archivo', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--mb);
  margin-bottom: 4px; letter-spacing: -0.01em;
}
.wfc-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.wf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.wf-row { margin-bottom: 12px; }
.wf-row:last-of-type { margin-bottom: 0; }
.wf-row label {
  display: block; font-size: 13px; letter-spacing: 0.06em;
  font-weight: 600; color: var(--ink); margin-bottom: 5px;
}
.wf-row label .req { color: var(--vi); }
.wf-row input, .wf-row select {
  width: 100%;
  font-family: 'Roboto', sans-serif; font-size: 15px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px; color: var(--ink);
  outline: none; transition: all 0.2s;
}
.wf-row input:focus, .wf-row select:focus {
  border-color: var(--mb); background: var(--wh);
  box-shadow: 0 0 0 3px rgba(10,10,86,0.08);
}
.wf-consent {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 14px 0 16px;
}
.wf-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.wf-consent label {
  font-size: 13px; color: var(--muted); line-height: 1.55; font-weight: 400;
}
.wf-consent label a { color: var(--vi); font-weight: 500; }
.wf-submit {
  width: 100%;
  background: var(--mb); color: var(--wh);
  font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 600;
  padding: 14px 20px; border: none; border-radius: 30px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: all 0.2s; letter-spacing: 0.02em;
}
.wf-submit:hover:not(:disabled) {
  background: var(--mb2); transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(10,10,86,0.4);
}
.wf-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.wf-submit svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.wf-error {
  font-size: 14px; color: #c0392b;
  margin-top: 10px; min-height: 0; display: none;
}
.wf-error:not(:empty) { display: block; }

/* Success state */
.wf-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.wp-form-card.success-mode form { display: none; }
.wp-form-card.success-mode .wf-success { display: block; }
.wf-success > svg {
  width: 44px; height: 44px;
  stroke: var(--mg); fill: none; stroke-width: 2;
  margin: 0 auto 14px; display: block;
}
.wf-success h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 19px; font-weight: 700; color: var(--mb);
  margin-bottom: 8px;
}
.wf-success p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.wf-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mb); color: var(--wh);
  font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 600;
  padding: 12px 24px; border-radius: 30px;
  transition: all 0.2s; text-decoration: none; letter-spacing: 0.02em;
}
.wf-dl-btn:hover { background: var(--mb2); transform: translateY(-1px); }
.wf-dl-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ══════════════════════════════════
   INFO SECTION
══════════════════════════════════ */
.wp-info {
  background: var(--bg-soft);
  padding: 72px 32px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.wp-info-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.wp-eyebrow {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mb); font-weight: 600;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.wp-eyebrow .eb { width: 28px; height: 2px; background: var(--mg); }
.wp-info-block h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 26px; font-weight: 700; color: var(--mb);
  line-height: 1.18; letter-spacing: -0.015em; margin-bottom: 14px;
}
.wp-info-intro {
  font-size: 16px; color: var(--ink2); line-height: 1.7; margin-bottom: 22px;
}
.wp-check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.wp-check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--ink2); line-height: 1.6;
}
.wp-check-list li > svg {
  width: 18px; height: 18px; stroke: var(--mb); fill: none; stroke-width: 2;
  flex-shrink: 0; margin-top: 1px;
  background: var(--mg-soft); border-radius: 50%; padding: 3px;
}
.wp-check-list li strong {
  color: var(--ink); font-weight: 600;
  display: block; margin-bottom: 2px;
  font-family: 'Archivo', sans-serif; font-size: 14px;
}

/* ══════════════════════════════════
   TOC PREVIEW
══════════════════════════════════ */
.wp-preview { background: var(--wh); padding: 72px 32px; }
.wp-preview-inner { max-width: 1040px; margin: 0 auto; }
.wp-preview-head { text-align: center; margin-bottom: 36px; }
.wp-sec-label {
  display: block;
  font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--mb); text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.wp-preview-title {
  font-family: 'Archivo', sans-serif;
  font-size: 30px; font-weight: 700; color: var(--mb);
  letter-spacing: -0.015em; line-height: 1.2;
}
.wp-toc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.wp-toc-item {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: all 0.2s;
}
.wp-toc-item:hover { border-color: var(--mb3); background: var(--wh); }
.wp-toc-num {
  font-family: 'Archivo', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--mg);
  background: var(--mb); width: 32px; height: 32px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.04em;
}
.wp-toc-info h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--mb);
  margin-bottom: 4px; line-height: 1.3;
}
.wp-toc-info p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ══════════════════════════════════
   RELATED RESOURCES
══════════════════════════════════ */
.wp-related {
  background: var(--bg-soft); padding: 64px 32px;
  border-top: 1px solid var(--line-2);
}
.wp-related-inner { max-width: 1320px; margin: 0 auto; }

/* reuse .sec-head / .sec-h / .sec-see from case-study.css if loaded; define here as fallback */
.sec-head { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.sec-h { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 600; color: var(--mb); text-transform: uppercase; letter-spacing: 0.15em; }
.sec-see { font-size: 14px; color: var(--vi); font-weight: 600; display: flex; align-items: center; gap: 5px; text-decoration: none; }
.sec-see svg { width: 12px; height: 12px; stroke: var(--vi); fill: none; stroke-width: 2; }

.wp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wp-rel-card {
  background: var(--wh); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: all 0.25s; display: flex; flex-direction: column;
}
.wp-rel-card:hover { border-color: var(--mb3); transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(10,10,86,0.12); }
.wp-rel-img {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.wp-rel-img.r1 { background: linear-gradient(135deg, #0A0A56 0%, #312CA1 100%); }
.wp-rel-img.r2 { background: linear-gradient(135deg, #15156D 0%, #6617FF 100%); }
.wp-rel-img.r3 { background: linear-gradient(135deg, #312CA1 0%, #9B54FF 100%); }
.wp-rel-img::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.wp-rel-cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
  color: var(--wh); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.22); z-index: 3;
}
.wp-rel-cover {
  position: relative; z-index: 2;
  transform: rotate(-3deg);
  width: 88px; height: 120px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F0F8 100%);
  border-radius: 4px;
  box-shadow: 0 12px 30px -4px rgba(0,0,0,0.35);
  padding: 10px 8px; display: flex; flex-direction: column;
}
.wrc-logo { width: 12px; height: 12px; position: relative; margin-bottom: 7px; }
.wrc-logo .b1 { position: absolute; top: 0; left: 2px; width: 4px; height: 10px; background: var(--vi); border-radius: 1px 1px 0 0; transform: skewX(-8deg); }
.wrc-logo .b2 { position: absolute; top: 3px; left: 0; width: 4px; height: 7px; background: var(--vi2); border-radius: 1px 1px 0 0; transform: skewX(-8deg); }
.wrc-logo .d  { position: absolute; bottom: 0; right: 1px; width: 3px; height: 3px; background: var(--mg); border-radius: 50%; }
.wrc-title { font-family: 'Archivo', sans-serif; font-size: 8.5px; font-weight: 700; color: var(--mb); line-height: 1.2; margin-bottom: auto; }
.wrc-rule { width: 12px; height: 1px; background: var(--mg); margin-top: 5px; }
.wp-rel-body { padding: 20px; }
.wp-rel-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; flex-wrap: wrap; }
.wp-rel-meta .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.type-badge.wp-badge { background: var(--vi-soft); color: var(--vi); }
.type-badge.wp-badge .tb-dot { background: var(--vi); }
.type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 30px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.type-badge .tb-dot { width: 4px; height: 4px; border-radius: 50%; }
.wp-rel-card h3 { font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 700; color: var(--mb); line-height: 1.3; margin-bottom: 10px; }
.wp-rel-link { font-size: 13px; color: var(--vi); font-weight: 600; }

/* ══════════════════════════════════
   SUBSCRIBE
══════════════════════════════════ */
.wp-subscribe {
  background: var(--mb2); padding: 80px 32px;
  position: relative; overflow: hidden;
}
.wp-subscribe::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102,23,255,0.25) 0%, transparent 60%);
}
.wp-subscribe::after {
  content: ''; position: absolute; bottom: -150px; left: -50px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,187,78,0.12) 0%, transparent 60%);
}
.wp-subscribe-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; position: relative; z-index: 2;
}
.wp-eyebrow-sub {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mg); font-weight: 600;
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.wp-eyebrow-sub .eb { width: 28px; height: 2px; background: var(--mg); }
.wps-left h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 40px; font-weight: 700; color: var(--wh);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}
.wps-left h2 em { font-style: normal; color: var(--mg); }
.wps-left p { font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.7; max-width: 480px; }
.wps-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 36px;
}
.wps-form-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mg); font-weight: 600; margin-bottom: 14px; }
.wps-form-row { display: flex; gap: 10px; margin-bottom: 16px; }
.wps-form input {
  flex: 1; font-family: 'Roboto', sans-serif; font-size: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px; padding: 15px 22px; color: var(--wh);
  outline: none; transition: all 0.2s;
}
.wps-form input::placeholder { color: rgba(255,255,255,0.45); }
.wps-form input:focus { border-color: var(--mg); background: rgba(255,255,255,0.12); }
.wps-form button {
  background: var(--mg); color: var(--mb);
  font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 600;
  padding: 15px 28px; border: none; border-radius: 30px;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.wps-form button:hover { background: var(--mg2); }
.wps-form-note {
  font-size: 13px; color: rgba(255,255,255,0.5);
  line-height: 1.6; display: flex; align-items: flex-start; gap: 8px;
}
.wps-form-note svg { width: 13px; height: 13px; stroke: rgba(255,255,255,0.5); flex-shrink: 0; margin-top: 1px; fill: none; stroke-width: 2; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .wp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wp-hero h1 { font-size: 34px; max-width: 100%; }
  .wp-deck { max-width: 100%; }
}
@media (max-width: 1024px) {
  .wp-info-inner { grid-template-columns: 1fr; gap: 40px; }
  .wp-toc-grid { grid-template-columns: 1fr; }
  .wp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-subscribe-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .wp-hero { padding: 36px 20px 56px; }
  .wp-hero h1 { font-size: 26px; }
  .wp-deck { font-size: 17px; }
  .wp-stats { flex-wrap: wrap; gap: 20px; }
  .wp-stat-div { display: none; }
  .wp-cover { min-height: 220px; }
  .wp-form-card { padding: 22px; }
  .wf-grid-2 { grid-template-columns: 1fr; }
  .wp-info { padding: 48px 20px; }
  .wp-info-block h2 { font-size: 22px; }
  .wp-preview { padding: 48px 20px; }
  .wp-preview-title { font-size: 24px; }
  .wp-related { padding: 48px 20px; }
  .wp-related-grid { grid-template-columns: 1fr; }
  .wp-subscribe { padding: 48px 20px; }
  .wps-left h2 { font-size: 28px; }
  .wps-form-row { flex-direction: column; }
  .wps-form { padding: 24px; }
}
