/* ==========================================================================
   White Paper page — Figma frame 2569:8237 — site-v3 premium tune 2026-10-15 (review fix pass 2)
   Relies on tokens.css + base.css. No new colours: palette tokens + alpha/gradients only.
   Layout, grids, crops and copy = site-v3 step-1 backup. This file only adds depth, hairlines,
   kickers, hover states and spacing. Steps: desktop · <=1068 tablet · <=734 phone · <=374 small phone
   ========================================================================== */

/* ---- Shared ---- */
/* eyebrows: shared .kicker (white 80% on dark, blue on light) - no colour override here */
.wp-hero h1, .wp-inside h2, .wp-audience h2, .wp-evidence h2, .wp-chapter__title, .wp-aud-card__title { text-wrap: balance; }
.wp-hero p, .wp-lead, .wp-chapter__text, .wp-aud-card__text, .wp-author__text, .wp-stat__label { text-wrap: pretty; }
.wp-lead { margin-top: var(--gap-head-intro); max-width: var(--measure-intro); font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--color-text-muted); }
.wp-evidence .wp-lead { font-size: var(--fs-body); line-height: var(--lh-body); max-width: var(--measure-body); }   /* long contributors list: body size */

/* ---- 1. Hero ---- */
.wp-hero {
  position: relative; isolation: isolate;
  color: var(--color-white);   /* padding + min-height: shared inner-hero rule in polish.css */
  background: var(--gradient-hero);
  overflow: hidden;
}
/* hairline at the bottom edge of the band */
.wp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline-dark); }
.wp-hero__grid {
  display: grid; grid-template-columns: minmax(0, 741px) minmax(0, 1fr);
  gap: var(--space-8); align-items: start;
}
.wp-hero__copy { display: flex; flex-direction: column; max-width: 620px; }   /* one right edge for text, facts hairline and form */
.wp-hero__title { margin-top: 0; }   /* the kicker above carries the 20px gap */
.wp-hero__text { margin-top: var(--gap-head-intro); }   /* size + colour: shared hero rule */

/* facts strip: yellow numbers, hairline on top + hairline dividers between the three facts */
.wp-facts {
  display: flex; flex-wrap: wrap; gap: var(--space-4) 0;
  margin: var(--space-6) 0 0; padding-top: var(--space-5);
  border-top: 1px solid var(--hairline-dark);
}
.wp-facts__item { display: flex; flex-direction: column; padding-right: var(--space-6); }
.wp-facts__item + .wp-facts__item { padding-left: var(--space-6); border-left: 1px solid var(--hairline-dark); }
.wp-facts__item:last-child { padding-right: 0; }
.wp-facts__num { font-family: var(--font-display); font-size: var(--fs-display-md); line-height: var(--lh-display); letter-spacing: var(--ls-display); color: var(--color-yellow-400); }
.wp-facts__label { margin: var(--space-1) 0 0; color: var(--color-on-dark-muted); }

/* form: glass card (base .wp-form) + top highlight + one soft shadow so it floats on the navy */
.wp-form {
  display: flex; flex-direction: column; gap: var(--space-4);
  margin-top: var(--space-6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-rest);
}
.wp-form__title { margin-bottom: 0; color: var(--color-on-dark-muted); }
.wp-form .field__label { color: var(--color-on-dark-muted); }
.wp-form .field__input { background: var(--input-on-dark-bg); border-color: var(--input-on-dark-line); color: var(--color-white); }
.wp-form .field__input::placeholder { color: var(--color-on-dark-faint); }
.wp-form .field__input:hover { border-color: var(--color-ring-on-dark); }
.wp-form .field__input:focus { background: var(--input-on-dark-bg); border-color: var(--color-yellow-400); box-shadow: var(--focus-ring-dark); }
.wp-form .field__input[aria-invalid="true"], .wp-form .field__input[aria-invalid="true"]:hover { border-color: var(--color-error-on-dark); }
.wp-form .field__input[aria-invalid="true"]:focus { border-color: var(--color-error-on-dark); box-shadow: 0 0 0 4px rgba(255, 180, 168, 0.3); }   /* invalid keeps the red ring (error-on-dark #ffb4a8 at 30%) */
.wp-form .field__error { color: var(--color-error-on-dark); } /* same recipe as base .field--on-dark */

.wp-check { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-on-dark-muted); cursor: pointer; }
.wp-check__box {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0; border-radius: 4px;   /* checkbox: kept small (8px would read as a circle) */
  background: var(--input-on-dark-bg);
  box-shadow: inset 0 0 0 1px var(--color-ring-on-dark); cursor: pointer;
  transition: box-shadow var(--dur-mid) var(--ease), background-color var(--dur-mid) var(--ease);
}
.wp-check:hover .wp-check__box:not(:checked) { box-shadow: inset 0 0 0 1px var(--color-white); }
.wp-check__box:checked { background: var(--color-yellow-400); box-shadow: none; }
.wp-check__box:checked::after {
  content: ""; display: block; width: 6px; height: 11px; margin: 3px auto 0;
  border: solid var(--color-blue-700); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.wp-check__box:focus-visible { outline: 2px solid var(--color-yellow-400); outline-offset: 3px; }

.wp-form__submit { margin-top: var(--space-2); }
.wp-form__small { font-size: var(--fs-small); line-height: var(--lh-body); color: var(--color-on-dark-muted); }
.wp-form__status { font-weight: 600; color: var(--color-yellow-400); }
.wp-form__status:empty { display: none; }

/* ---- Book mock-up (site-v2 build: flat cover at -1.06deg, page strip, contact shadow) ----
   depth only: soft glow behind, 2-layer cover shadow (a cover on navy needs more than shadow-rest),
   paper edge on the page strip, darker contact shadow, gentle settle on hover */
.wp-book { position: relative; isolation: isolate; width: 100%; max-width: 513px; margin: var(--space-8) 0 0 auto; }
.wp-book::before {
  content: ""; position: absolute; inset: -16% -24%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(35, 136, 255, 0.22) 0%, rgba(35, 136, 255, 0) 100%);
}
.wp-book__cover {
  position: relative; z-index: 1; overflow: hidden;
  aspect-ratio: 512 / 751;
  transform: rotate(-1.06deg);
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 30px 60px rgba(2, 6, 21, 0.45), 0 10px 20px rgba(2, 6, 21, 0.3);
  transition: transform var(--dur-media) var(--ease-out), box-shadow var(--dur-media) var(--ease-out);
}
.wp-book__cover img { width: 100%; height: 100%; object-fit: cover; }
.wp-book__cover::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--gradient-book-shine);
}
.wp-book__cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 2.7px; background: var(--book-spine-line); }
.wp-book__pages {
  position: absolute; top: 4px; right: -5px; width: 7px; height: calc(100% - 8px);
  transform: rotate(-1.06deg);
  background: var(--gradient-book-pages);
  box-shadow: inset 0 0 0 1px rgba(2, 6, 21, 0.12), inset -3px 0 4px rgba(2, 6, 21, 0.22);
  border-radius: 1px;
}
.wp-book__shadow {
  position: absolute; left: 4%; right: -4%; bottom: -40px; height: 64px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(2, 6, 21, 0.55) 0%, rgba(2, 6, 21, 0) 100%);
  filter: blur(8px);
}
@media (hover: hover) {
  .wp-book:hover .wp-book__cover { transform: rotate(-0.5deg) translateY(-4px); box-shadow: 0 36px 72px rgba(2, 6, 21, 0.5), 0 12px 24px rgba(2, 6, 21, 0.32); }
}

/* ---- 2. What's inside ---- */
.wp-inside { position: relative; padding-block: var(--section-pad-y); background: var(--gradient-light); }
.wp-inside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 0% 0%, rgba(24, 61, 137, 0.06) 0%, rgba(24, 61, 137, 0) 100%);
}
.wp-inside .container { position: relative; }
.wp-chapters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));   /* 3 cards, then 2 wider cards: no empty slot */ gap: var(--grid-gap); margin-top: var(--gap-intro-content); }
.wp-chapter { grid-column: span 2;
  position: relative; display: flex; gap: var(--space-5);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
/* a short yellow tab on the top edge, in line with the number (clear of the 16px corner); grows on hover */
.wp-chapter::before {
  content: ""; position: absolute; top: -1px; left: var(--card-pad); width: var(--space-6); height: 3px; border-radius: 0 0 2px 2px;
  background: var(--color-yellow-400);
  transition: width var(--dur-mid) var(--ease);
}
@media (hover: hover) {
  .wp-chapter:hover { transform: translateY(-4px); border-color: var(--hairline-light-strong); box-shadow: 0 12px 32px rgba(2, 6, 21, 0.1); }
  .wp-chapter:hover::before { width: var(--space-9); }
}
.wp-chapter__num { flex: none; min-width: 2ch; font-family: var(--font-display); font-size: var(--fs-display-md); line-height: var(--lh-display); letter-spacing: var(--ls-display); color: rgba(24, 61, 137, 0.4); }   /* same blue, more alpha: readable order cue */
.wp-chapter__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-sm); line-height: var(--lh-display); letter-spacing: var(--ls-display); text-transform: uppercase; color: var(--color-blue-700); }
.wp-chapter:nth-child(n+4) { grid-column: span 3; }
@media (min-width: 1069px) and (max-width: 1599px) { .wp-chapter__title { min-height: calc(2 * var(--lh-display) * 1em); } }   /* 2 title lines in every card: text starts on one line */
.wp-chapter__text { max-width: var(--measure-body); margin-top: var(--space-3); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text-muted); }

/* ---- 3. Who it's for ---- */
.wp-audience {
  position: relative; padding-block: var(--section-pad-y); color: var(--color-white);
  background: radial-gradient(40% 30% at 85% 100%, rgba(35, 136, 255, 0.14) 0%, rgba(35, 136, 255, 0) 100%), var(--gradient-dark-glow);
  border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark);
}
.wp-audience__title { margin-top: 0; max-width: var(--measure-statement); }   /* 2 lines at 56px, not 3 */
.wp-audience__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: var(--gap-intro-content); }
.wp-aud-card {
  position: relative; min-width: 0;   /* fill/line/radius/padding: base.css .card--glass */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.wp-aud-card::before {   /* same yellow tab as the chapter cards */
  content: ""; position: absolute; top: -1px; left: var(--card-pad); width: var(--space-6); height: 3px; border-radius: 0 0 2px 2px;
  background: var(--color-yellow-400);
  transition: width var(--dur-mid) var(--ease);
}
@media (hover: hover) {
  .wp-aud-card:hover { border-color: var(--color-ring-on-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-rest); }
  .wp-aud-card:hover::before { width: var(--space-9); }
}
.wp-aud-card__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-sm); line-height: var(--lh-display); letter-spacing: var(--ls-display); text-transform: uppercase; color: var(--color-yellow-400); }
.wp-aud-card__text { max-width: var(--measure-body); margin-top: var(--space-4); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-on-dark-muted); }

/* ---- 4. Evidence ---- */
.wp-evidence { position: relative; padding-block: var(--section-pad-y); background: linear-gradient(180deg, var(--color-neutral-100) 0%, var(--color-white) 100%); }
.wp-evidence::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 100% 0%, rgba(24, 61, 137, 0.06) 0%, rgba(24, 61, 137, 0) 100%);
}
.wp-evidence .container { position: relative; }
.wp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); margin: var(--gap-intro-content) 0 0; }
.wp-stat { position: relative; min-width: 0; padding-top: var(--space-5); border-top: 1px solid var(--hairline-light-strong); }
.wp-stat::before { content: ""; position: absolute; top: -1px; left: 0; width: var(--space-6); height: 3px; border-radius: 0 0 2px 0; background: var(--color-blue-700); }
.wp-stat__num { font-family: var(--font-display); font-size: var(--fs-display-md); line-height: var(--lh-display); letter-spacing: var(--ls-display); color: var(--color-blue-700); }
.wp-stat__label { margin: var(--space-1) 0 0; font-family: var(--font-alt); font-weight: 600; font-size: var(--fs-label); line-height: 1.4; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--color-text-muted); }   /* same label voice as .wp-facts__label (base kicker type list) */

/* author card: site-v2 layout + hand-tuned portrait crop */
.wp-author {
  display: grid; grid-template-columns: 357px minmax(0, var(--measure-body)); justify-content: center; gap: var(--space-8); align-items: center;
  margin-top: var(--space-7); overflow: hidden;   /* content centred in the card: no empty right half */
}
.wp-author__photo { position: relative; align-self: end; aspect-ratio: 357 / 306; overflow: hidden; }
.wp-author__photo img { position: absolute; max-width: none; width: 196.55%; height: 152.96%; left: -59.05%; top: -15.32%; filter: var(--photo-grade); }
.wp-author__body { padding-block: var(--space-7); }
.wp-author__label { color: var(--color-text-muted); }
.wp-author__name { margin-top: var(--space-3); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-sm); line-height: var(--lh-display); letter-spacing: var(--ls-display); text-transform: uppercase; color: var(--color-blue-700); }
.wp-author__text { margin-top: var(--space-4); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text-muted); }
.wp-author__link { display: inline-flex; align-items: flex-end; min-height: 44px; margin-top: var(--space-3); }   /* look = base .link-underline */

/* ---- Responsive (steps match tokens: 1068 / 734) ---- */
@media (max-width: 1068px) {
  .wp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wp-hero__copy { max-width: 640px; }
  .wp-book { grid-row: 2; max-width: 280px; margin: var(--space-8) auto var(--space-4); }
  .wp-chapters { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .wp-chapter, .wp-chapter:nth-child(n+4) { grid-column: auto; }
  .wp-audience__grid { grid-template-columns: minmax(0, 1fr); }
  .wp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--grid-gap); }
  /* author: photo on top, text under it (one stacked layout from tablet down) */
  .wp-author { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wp-author__photo { width: 100%; max-width: 357px; margin: 0 auto; }
  .wp-author__photo img { top: -6%; }   /* headroom: the 357px crop otherwise cuts the top of the head */
  .wp-author__body { width: 100%; max-width: var(--measure-body); margin-inline: auto; padding: var(--space-6) var(--space-5); }
}
/* tablet landscape: form + book side by side, 3 audience cards in a row */
@media (min-width: 900px) and (max-width: 1068px) {
  .wp-hero__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-7); }
  .wp-book { grid-row: auto; max-width: 260px; margin: var(--space-8) 0 0 auto; }
  .wp-audience__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 734px) {
  .wp-facts { gap: var(--space-3) 0; padding-top: var(--space-4); }
  .wp-facts__item { padding-right: var(--space-4); }
  .wp-facts__item + .wp-facts__item { padding-left: var(--space-4); }
  .wp-facts__item:last-child { padding-right: 0; }
  .wp-book { max-width: 280px; }
  .wp-form__submit { width: 100%; }
  .wp-chapter { gap: var(--space-4); }
  .wp-audience__grid { gap: var(--space-4); }
  .wp-stats { gap: var(--space-6) var(--space-4); }
}
/* small phones (320-374): the 3 facts stay on one row */
@media (max-width: 374px) {
  .wp-facts__item { padding-right: var(--space-3); }
  .wp-facts__item + .wp-facts__item { padding-left: var(--space-3); }
  .wp-facts__item:last-child { padding-right: 0; }
}
.wp-nowrap { white-space: nowrap; }

/* ---- Reduced motion: no hover lift / settle ---- */
@media (prefers-reduced-motion: reduce) {
  .wp-book__cover, .wp-chapter, .wp-chapter::before, .wp-aud-card, .wp-aud-card::before { transition: none; }
  .wp-chapter:hover { transform: none; }
  .wp-book:hover .wp-book__cover { transform: rotate(-1.06deg); }
}
