/* ============================================================
   Working with AI — HAC White Paper landing page
   Report palette (deep teal + gold) taken from the report cover.
   ============================================================ */

:root {
  --wp-deep: #143e46;
  --wp-teal: #00686b;
  --wp-gold: #e6b865;
  --wp-a: #4fd1c5;      /* chart / accent primary   */
  --wp-b: #f6c76b;      /* chart / accent secondary */
  --wp-a-soft: rgba(79,209,197,.12);
  --wp-b-soft: rgba(246,199,107,.12);
}
[data-theme="light"] {
  --wp-a: #0b7a7d;
  --wp-b: #b7791f;
  --wp-a-soft: rgba(11,122,125,.08);
  --wp-b-soft: rgba(183,121,31,.1);
}

.wp-main { padding-top: var(--nav-h); }
.wp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wp-narrow { max-width: 780px; }

/* ── Hero ─────────────────────────────────────────────────── */
.wp-hero {
  background: linear-gradient(160deg, var(--wp-deep) 0%, #0f3339 55%, var(--wp-teal) 130%);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.wp-hero::after {
  content: '';
  position: absolute; inset: auto -10% -60% auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,184,101,.16), transparent 65%);
  pointer-events: none;
}
.wp-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 56px;
  align-items: center;
  position: relative; z-index: 1;
}
.wp-kicker {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--wp-gold);
  border-left: 3px solid var(--wp-gold);
  padding-left: 10px;
  margin-bottom: 26px;
}
.wp-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -1px;
  margin-bottom: 18px;
}
.wp-hero h1::after {
  content: ''; display: block; width: 64px; height: 3px;
  background: var(--wp-gold); margin-top: 26px;
}
.wp-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 300; line-height: 1.35;
  color: rgba(255,255,255,.82);
  margin: 26px 0 30px; max-width: 560px;
}
.wp-hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: .85rem; color: rgba(255,255,255,.65);
  margin-bottom: 34px;
}
.wp-hero-meta b { color: #fff; font-weight: 600; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 600;
  padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s;
}
.wp-btn:hover { opacity: 1; transform: translateY(-2px); }
.wp-btn-gold { background: var(--wp-gold); color: #10292d; }
.wp-btn-gold:hover { background: #f0c97c; }
.wp-btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.wp-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.wp-cover {
  display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(2deg);
  transition: transform .4s;
}
.wp-cover:hover { transform: rotate(0deg) scale(1.02); }

/* ── Sticky in-page nav ───────────────────────────────────── */
.wp-subnav {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.wp-subnav ul {
  list-style: none; display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  padding: 10px 0;
}
.wp-subnav ul::-webkit-scrollbar { display: none; }
.wp-subnav a {
  display: block; white-space: nowrap;
  font-size: .82rem; font-weight: 500;
  color: var(--text-muted);
  padding: 7px 14px; border-radius: 100px;
  transition: background .2s, color .2s;
}
.wp-subnav a:hover { opacity: 1; background: var(--nav-hover-bg); color: var(--text); }
.wp-subnav a.active { background: var(--wp-a-soft); color: var(--wp-a); }

/* ── Generic sections ─────────────────────────────────────── */
.wp-section { padding: 88px 0; scroll-margin-top: calc(var(--nav-h) + 52px); }
.wp-section.alt { background: var(--bg2); }
.wp-section.tint { background: var(--bg3); }
.wp-eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--wp-a); margin-bottom: 12px;
}
.wp-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.5px;
  margin-bottom: 18px;
}
.wp-lead {
  font-size: 1.12rem; line-height: 1.75; color: var(--text-muted);
  max-width: 760px; margin-bottom: 40px;
}
.wp-lead strong, .wp-prose strong { color: var(--text); font-weight: 600; }
.wp-prose { font-size: 1rem; line-height: 1.8; color: var(--text-muted); max-width: 760px; }
.wp-prose p + p { margin-top: 16px; }
.wp-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 700; margin: 56px 0 8px;
}
.wp-h3-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 24px; max-width: 700px; }

/* ── Top takeaways ────────────────────────────────────────── */
.wp-takeaways {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.wp-take {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 28px 26px;
  transition: border-color .25s, transform .25s;
}
.wp-take:hover { border-color: var(--wp-a); transform: translateY(-3px); }
.wp-take-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--wp-a); margin-bottom: 14px;
}
.wp-take h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.wp-take p { font-size: .9rem; line-height: 1.7; color: var(--text-muted); }
.wp-take:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, var(--wp-deep), var(--wp-teal)); border-color: transparent; }
.wp-take:first-child .wp-take-num { color: var(--wp-gold); }
.wp-take:first-child h3 { font-size: 1.5rem; color: #fff; max-width: 780px; }
.wp-take:first-child p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 780px; }

/* ── Pull quote ───────────────────────────────────────────── */
.wp-quote {
  border-left: 4px solid var(--wp-gold);
  padding: 8px 0 8px 28px; margin: 44px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 500; line-height: 1.35; max-width: 820px;
}

/* ── Stat strip ───────────────────────────────────────────── */
.wp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin: 8px 0 48px;
}
.wp-stat { background: var(--surface); padding: 28px 24px; }
.wp-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1;
  color: var(--wp-a); margin-bottom: 10px;
}
.wp-stat-label { font-size: .85rem; line-height: 1.5; color: var(--text-muted); }

/* ── Figures ──────────────────────────────────────────────── */
.wp-figure {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin: 8px 0 12px;
}
.wp-figure img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.wp-figure.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.wp-caption { font-size: .8rem; color: var(--text-dim); margin: 10px 4px 0; }
.wp-figure .wp-caption { margin-top: 14px; }

/* ── Chips ────────────────────────────────────────────────── */
.wp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wp-chip {
  font-size: .8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  background: var(--wp-a-soft); color: var(--wp-a);
  border: 1px solid transparent;
}
.wp-chip.gold { background: var(--wp-b-soft); color: var(--wp-b); }

/* ── Card grids ───────────────────────────────────────────── */
.wp-grid { display: grid; gap: 20px; }
.wp-grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wp-grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.wp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
}
.wp-card h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.wp-card p, .wp-card li { font-size: .88rem; line-height: 1.65; color: var(--text-muted); }
.wp-card ul { padding-left: 18px; margin-top: 8px; }
.wp-card li + li { margin-top: 4px; }
.wp-card .wp-card-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--wp-a); margin-bottom: 10px;
}
.wp-card-assess {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: .8rem; color: var(--text-dim);
}
.wp-card-assess b { color: var(--text-muted); font-weight: 600; }

/* ── Design principles ────────────────────────────────────── */
.wp-principle { position: relative; padding-top: 30px; }
.wp-principle-num {
  position: absolute; top: 20px; right: 24px;
  font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700;
  color: var(--wp-b-soft); line-height: 1;
}
[data-theme="light"] .wp-principle-num { color: rgba(183,121,31,.18); }
.wp-principle h4 { color: var(--wp-b); font-size: 1.15rem; padding-right: 50px; }
.wp-principle ul { list-style: none; padding: 0; }
.wp-principle li { padding-left: 16px; position: relative; }
.wp-principle li::before {
  content: '?'; position: absolute; left: 0; color: var(--wp-b); font-weight: 700;
}

/* ── Process steps ────────────────────────────────────────── */
.wp-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  counter-reset: step; margin-top: 8px;
}
.wp-step { position: relative; padding: 0 18px 0 0; }
.wp-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--wp-a); color: var(--bg);
  font-weight: 700; font-size: .9rem; margin-bottom: 16px; position: relative; z-index: 1;
}
.wp-step::after {
  content: ''; position: absolute; top: 17px; left: 36px; right: 0; height: 2px;
  background: var(--border);
}
.wp-step:last-child::after { display: none; }
.wp-step h4 { font-size: .98rem; font-weight: 600; margin-bottom: 8px; }
.wp-step p { font-size: .84rem; line-height: 1.6; color: var(--text-muted); }

/* ── Charts ───────────────────────────────────────────────── */
.wp-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; margin-top: 8px; }
.wp-chart {
  min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
}
.wp-chart.full { grid-column: 1 / -1; }
.wp-chart h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.wp-chart-sub { font-size: .8rem; color: var(--text-dim); margin-bottom: 22px; }
.wp-chart-note { font-size: .88rem; line-height: 1.7; color: var(--text-muted); margin-top: 20px; }
.wp-chart-note strong { color: var(--text); }
.wp-legend { display: flex; gap: 18px; font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.wp-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }

.wp-svg { width: 100%; height: auto; display: block; }
.wp-svg text { fill: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 9px; }
.wp-svg .grid { stroke: var(--border); stroke-width: 1; }
.wp-svg .wp-line-a { stroke: var(--wp-a); fill: none; stroke-width: 2.5; }
.wp-svg .wp-line-b { stroke: var(--wp-b); fill: none; stroke-width: 2.5; }
.wp-svg .wp-dot-a { fill: var(--wp-a); }
.wp-svg .wp-dot-b { fill: var(--wp-b); }
.wp-svg .flag { stroke: var(--text-dim); stroke-dasharray: 4 4; stroke-width: 1; }
.wp-svg .flag-label { fill: var(--text-muted); font-weight: 600; }

.wp-data {
  width: 100%; border-collapse: collapse; margin-top: 14px;
  font-size: .78rem; text-align: center;
}
.wp-data th, .wp-data td { padding: 6px 4px; border-top: 1px solid var(--border); color: var(--text-muted); }
.wp-data th { font-weight: 600; color: var(--text-dim); }
.wp-data td:first-child, .wp-data th:first-child { text-align: left; }
.wp-data .a { color: var(--wp-a); font-weight: 600; }
.wp-data .b { color: var(--wp-b); font-weight: 600; }

.wp-bars { display: grid; gap: 12px; }
.wp-bar-row { display: grid; grid-template-columns: 110px 1fr 52px; align-items: center; gap: 12px; font-size: .84rem; }
.wp-bar-row.wide { grid-template-columns: 150px 1fr 52px; }
.wp-bar-label { color: var(--text-muted); }
.wp-bar-track { display: block; height: 22px; background: var(--wp-a-soft); border-radius: 6px; overflow: hidden; }
.wp-bar { display: block; height: 100%; background: var(--wp-a); border-radius: 6px; }
.wp-bar.b { background: var(--wp-b); }
.wp-bar.dim { background: var(--text-dim); opacity: .55; }
.wp-bar-val { font-family: 'Space Grotesk', sans-serif; font-weight: 600; text-align: right; }
.wp-bars-title { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin: 20px 0 10px; }
.wp-bars-title:first-child { margin-top: 0; }

/* ── Trade-offs ───────────────────────────────────────────── */
.wp-tradeoffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 8px; }
.wp-trade {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.wp-trade h4 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.wp-trade p { font-size: .88rem; line-height: 1.6; color: var(--text-muted); }
.wp-trade p + p { margin-top: 8px; }
.wp-plus::before { content: '＋ '; color: var(--wp-a); font-weight: 700; }
.wp-minus::before { content: '－ '; color: var(--wp-b); font-weight: 700; }

/* ── Practice list ────────────────────────────────────────── */
.wp-practice { list-style: none; counter-reset: p; display: grid; gap: 14px; max-width: 860px; }
.wp-practice li {
  counter-increment: p;
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 26px;
  font-size: .96rem; line-height: 1.7; color: var(--text-muted);
}
.wp-practice li::before {
  content: counter(p, decimal-leading-zero);
  font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700;
  color: var(--wp-a); line-height: 1.2;
}
.wp-practice strong { color: var(--text); font-weight: 600; }

/* ── Team ─────────────────────────────────────────────────── */
.wp-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.wp-person {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.wp-person-photo {
  flex: 0 0 68px; width: 68px; height: 80px;
  object-fit: cover; object-position: center top;
  border-radius: 8px; background: var(--bg3);
}
.wp-person h4 { font-size: 1rem; font-weight: 600; }
.wp-person .role { font-size: .72rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--wp-a); margin: 4px 0 8px; }
.wp-person p { font-size: .82rem; line-height: 1.5; color: var(--text-muted); }
.wp-fine {
  margin-top: 36px; font-size: .84rem; line-height: 1.8; color: var(--text-muted);
  display: grid; gap: 14px; max-width: 820px;
}
.wp-fine b { color: var(--text); }

/* ── Closing CTA ──────────────────────────────────────────── */
.wp-cta {
  background: linear-gradient(160deg, var(--wp-deep), var(--wp-teal));
  color: #fff; text-align: center; padding: 84px 0;
}
.wp-cta h2 { color: #fff; margin-bottom: 14px; }
.wp-cta p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 30px; line-height: 1.7; }
.wp-cta .wp-actions { justify-content: center; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .wp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wp-cover { max-width: 240px; }
  .wp-steps { grid-template-columns: 1fr; gap: 26px; }
  .wp-step { padding: 0 0 0 52px; }
  .wp-step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .wp-step::after { top: 36px; bottom: -24px; left: 17px; right: auto; width: 2px; height: auto; }
  .wp-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wp-section { padding: 64px 0; }
  .wp-hero { padding: 48px 0 56px; }
  .wp-takeaways { grid-template-columns: 1fr; }
  .wp-team { grid-template-columns: 1fr; }
  .wp-bar-row, .wp-bar-row.wide { grid-template-columns: 90px 1fr 44px; gap: 8px; }
  .wp-chart { padding: 20px; }
  .wp-practice li { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-btn, .wp-take, .wp-cover { transition: none; }
}

/* Placeholder shown until the PDF is published */
.wp-btn-soon { cursor: default; opacity: .85; }
.wp-btn-soon:hover { transform: none; background: var(--wp-gold); opacity: .85; }
