/* Whitepaper acquisition pages (/whitepaper, /whitepaper/download). Uses site theme tokens from index.css. */
.wp-page { padding-top: 5.5rem; }
.wp-hero { position: relative; overflow: hidden; padding: 3.5rem 0 4.5rem; }
.wp-hero::before {
  content: ""; position: absolute; inset: 0 0 0 38%; pointer-events: none; z-index: 0;
  background: url("/assets/whitepaper-governance-field.svg") center / cover no-repeat;
  opacity: .5; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #161C16 30%); mask-image: linear-gradient(90deg, transparent, #161C16 30%);
}
[data-theme="dark"] .wp-hero::before { opacity: .12; mix-blend-mode: normal; filter: invert(1); }
.wp-hero .container { position: relative; z-index: 1; }
.wp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: start; }
.wp-eyebrow { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .16em; color: var(--brand-crimson); margin-bottom: 1rem; text-transform: uppercase; }
.wp-copy h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; color: var(--text-primary); margin: 0 0 1.25rem; }
.wp-standfirst { font-size: 1.12rem; line-height: 1.65; color: var(--text-secondary, var(--text-muted)); margin: 0 0 1rem; max-width: 34rem; }
.wp-partner { font-size: .92rem; color: var(--text-muted); margin: 0 0 1.75rem; display: flex; align-items: center; gap: .55rem; }
.wp-partner::before { content: ""; width: 22px; height: 1px; background: var(--text-muted); opacity: .5; }
.wp-takeaways { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.wp-takeaways li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-primary); font-size: .98rem; line-height: 1.5; }
.wp-takeaways li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .5rem; border-radius: 50%; background: var(--brand-crimson); }
.wp-cta-link { display: inline-flex; }

.wp-side { display: grid; gap: 1.5rem; }
.wp-cover { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: none; aspect-ratio: 4 / 3; background: #2f4a3a; }
.wp-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }

.wp-card { background: var(--bg-main); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: none; }
.wp-card h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .35rem; color: var(--text-primary); }
.wp-card .wp-help { font-size: .9rem; color: var(--text-muted); margin: 0 0 1.25rem; line-height: 1.55; }
.wp-form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.wp-field { display: grid; gap: .35rem; }
.wp-field.full { grid-column: 1 / -1; }
.wp-field label { font-size: .82rem; font-weight: 600; color: var(--text-primary); }
.wp-field label .opt { font-weight: 400; color: var(--text-muted); }
.wp-field input, .wp-field select {
  font: inherit; font-size: .95rem; color: var(--text-primary); background: var(--bg-main);
  border: 1px solid rgba(100, 116, 139, .45); border-radius: var(--radius-md); padding: .65rem .8rem; width: 100%; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.wp-field input:focus-visible, .wp-field select:focus-visible { outline: none; border-color: var(--text-primary); box-shadow: none; }
.wp-field[data-invalid] input, .wp-field[data-invalid] select { border-color: var(--brand-crimson); }
.wp-err { font-size: .8rem; color: #FF0000; min-height: 0; }
[data-theme="dark"] .wp-err { color: #FF0000; }
.wp-err:empty { display: none; }
.wp-check { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--text-primary); line-height: 1.5; }
.wp-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand-crimson); flex: none; }
.wp-check a { color: var(--text-primary); text-decoration: underline; }
.wp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wp-submit { grid-column: 1 / -1; justify-content: center; width: 100%; min-height: 48px; margin-top: .25rem; }
.wp-submit[disabled] { opacity: .7; cursor: progress; }
.wp-form-status { grid-column: 1 / -1; font-size: .88rem; color: #FF0000; }
.wp-form-status:empty { display: none; }
.wp-btn-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: wp-spin .7s linear infinite; margin-right: .5rem; vertical-align: -3px; }
@keyframes wp-spin { to { transform: rotate(360deg); } }

.wp-learn { padding: 4.5rem 0; background: var(--bg-surface-elevated); }
.wp-learn h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 2rem; color: var(--text-primary); }
.wp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.wp-pillar { background: var(--bg-main); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.6rem; }
.wp-pillar .n { font-family: var(--font-mono); font-size: .78rem; color: var(--brand-crimson); font-weight: 600; letter-spacing: .1em; }
.wp-pillar h3 { font-size: 1.1rem; font-weight: 700; margin: .7rem 0 .5rem; color: var(--text-primary); }
.wp-pillar p { font-size: .95rem; line-height: 1.6; color: var(--text-muted); margin: 0; }
.wp-value { max-width: 52rem; margin: 2.5rem 0 0; font-size: 1.05rem; line-height: 1.75; color: var(--text-primary); border-left: 2px solid var(--brand-crimson); padding-left: 1.25rem; }

/* Download page */
.wp-ready { padding: 4rem 0 5rem; }
.wp-ready .wp-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin: 0 0 2.25rem; }
.wp-inside { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; }
.wp-inside h2 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin: 0 0 1rem; }
.wp-inside ol { list-style: none; counter-reset: wp; padding: 0; margin: 0; display: grid; gap: .65rem; }
.wp-inside li { counter-increment: wp; display: flex; gap: .8rem; font-weight: 600; color: var(--text-primary); }
.wp-inside li::before { content: "0" counter(wp); font-family: var(--font-mono); font-weight: 600; color: var(--brand-crimson); font-size: .85rem; padding-top: .1rem; }
.wp-note { font-size: .85rem; color: var(--text-muted); margin-top: -1.25rem; margin-bottom: 2rem; }

@media (max-width: 960px) {
  .wp-grid { grid-template-columns: 1fr; gap: 2rem; }
  .wp-side { display: contents; }
  .wp-hero::before { inset: 30% 0 auto 0; height: 60%; opacity: .35; }
  .wp-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wp-form { grid-template-columns: 1fr; }
  .wp-card { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .wp-btn-spin { animation: none; } }

/* Checkbox alignment (override .wp-field input styles) */
.wp-field .wp-check, .wp-check { font-size: .86rem; font-weight: 400; align-items: flex-start; }
.wp-field .wp-check input, .wp-check input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: .17rem 0 0; border: 0; box-shadow: none; flex: none; }
.wp-check > span { flex: 1; }
.wp-check .wp-privacy-link { background: none; border: 0; padding: 0; font: inherit; color: var(--text-primary); text-decoration: underline; cursor: pointer; }

/* Privacy popup */
.wp-modal { margin: auto; inset: 0; position: fixed; border: 0; padding: 0; border-radius: var(--radius-md); width: min(760px, 92vw); max-height: 85vh; background: var(--bg-main); color: var(--text-primary); box-shadow: none; }
.wp-modal::backdrop { background: rgba(22, 28, 22,.55); backdrop-filter: blur(3px); }
.wp-modal-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: var(--bg-main); border-bottom: 1px solid var(--border-subtle); }
.wp-modal-head h2 { margin: 0; font-size: 1.1rem; }
.wp-modal-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-primary); }
.wp-modal-body { padding: 1.25rem 1.5rem 1.75rem; overflow: auto; max-height: calc(85vh - 64px); font-size: .92rem; line-height: 1.6; }
.wp-modal-body h1 { font-size: 1.3rem; }
.wp-modal-body h2 { font-size: 1.05rem; margin-top: 1.25rem; }
.wp-mc { flex: none; } .wp-mc-name { color: var(--text-primary); font-weight: 600; margin-left: -.2rem; }
.wp-hero::before { display: none !important; }
