*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

:root {
  --ink: #0a0a0a;
  --ink2: #444;
  --ink3: #767676;
  --surface: #fafaf8;
  --s2: #f2f0eb;
  --accent: #e8562a;
  --ah: #c94420;
  --navy: #14203b;
  --border: rgba(0,0,0,0.08);
  --warn: #E87722;
  --r: 4px;
  --rl: 10px;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max: 720px;
}

html { scroll-behavior: smooth }

/* --max above is this page's narrow content-reading width (720px), but lib/nav.js's
   injected .nav-i{max-width:var(--max)} also reads it — this restores the site-wide
   nav width (1140px, matching css/index.css) without touching the content-width var. */
nav .nav-i { max-width: 1140px }
body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { top: 0 }

/* MINIMAL HEADER */
.wp-header {
  background: var(--navy);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wp-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wp-logo span { color: var(--accent) }
.wp-back {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.18s;
}
.wp-back:hover { color: rgba(255,255,255,0.75) }

/* HERO */
.wp-hero {
  background: var(--navy);
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.wp-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(232,86,42,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.wp-hero-inner { max-width: 1040px; margin: 0 auto; position: relative; z-index: 1 }

.wp-eyebrow {
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,86,42,0.9);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.wp-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.wp-h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.wp-h1 em { color: var(--accent); font-style: normal }

.wp-hero-sub {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 600px;
}
.wp-hero-sub strong { color: rgba(255,255,255,0.88); font-weight: 500 }

/* ROADMAP STATUS BADGE (in hero eyebrow row) */
.xp-status-badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.xp-status-badge--roadmap {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.18);
}

/* ROADMAP DISCLOSURE NOTE (sits under hero-sub, before Challenge) */
.xp-roadmap-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(232,119,34,0.12);
  border: 1px solid rgba(232,119,34,0.3);
  border-left: 3px solid var(--warn);
  border-radius: var(--r);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 600px;
}
.xp-roadmap-note strong { color: #fff; font-weight: 600 }

/* COST / CHALLENGE STRIPE */
.wp-cost {
  background: var(--s2);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}
.wp-cost-inner { max-width: 1040px; margin: 0 auto }
.wp-cost-label {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.wp-cost-text {
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.7;
  margin: 0;
  max-width: 680px;
}
.wp-cost-text strong { color: var(--ink); font-weight: 500 }
.wp-cost-text a { color: var(--ah); text-decoration: underline }
.wp-cost-text a:hover { color: var(--accent) }

/* SECTION LABELS (reused across Solution / Benefits) */
.wp-section-eyebrow {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.wp-section-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 1.85rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.55rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.wp-section-sub {
  font-size: 0.88rem;
  color: var(--ink3);
  line-height: 1.65;
  margin-bottom: 1.6rem;
  max-width: 560px;
}
.wp-signal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem }
.wp-signal-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1rem;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.45;
}
.wp-signal-item strong { font-weight: 600 }
.wp-signal-note {
  display: block;
  font-size: 0.77rem;
  color: var(--ink3);
  margin-top: 0.2rem;
  font-weight: 400;
}
.xp-solution-col { display: flex; flex-direction: column }
.xp-solution-meta {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ink3);
  line-height: 1.6;
}
.xp-solution-meta strong { color: var(--ink2); font-weight: 600 }

/* CATALOG CROSS-LINK — points to opsgrid/index.html's full ranked use-case list */
.xp-catalog-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1rem 1.25rem;
  margin-top: 1.75rem;
  max-width: 680px;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.xp-catalog-link:hover { border-color: var(--accent); box-shadow: 0 2px 14px rgba(232,86,42,0.12) }
.xp-catalog-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(232,86,42,0.1);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xp-catalog-text { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0 }
.xp-catalog-text strong { font-size: 0.92rem; color: var(--ink); font-weight: 600 }
.xp-catalog-text span { font-size: 0.79rem; color: var(--ink3); line-height: 1.5 }
.xp-catalog-arrow { flex-shrink: 0; color: var(--accent); font-size: 1.1rem; font-weight: 700; transition: transform 0.18s }
.xp-catalog-link:hover .xp-catalog-arrow { transform: translateX(3px) }

/* SIGNALS + SCREENSHOTS SIDE BY SIDE */
.wp-signals-split {
  background: var(--surface);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.wp-split-header { max-width: 1040px; margin: 0 auto 1.75rem }
.wp-signals-split-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.wp-signals-split-inner.xp-no-image { grid-template-columns: 1fr }
.wp-signals-split-inner.xp-no-image .xp-solution-col { max-width: 680px }

/* MAIN IMAGE (random on load) */
.wp-screenshot-main { position: relative }
.wp-screenshot-main-img {
  width: 100%;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(20,32,59,0.08);
  transition: opacity 0.15s;
}

/* SCROLLABLE THUMBNAIL STRIP */
.wp-screenshot-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem 0 0.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  margin-top: 0.55rem;
}
.wp-screenshot-scroll::-webkit-scrollbar { height: 3px }
.wp-screenshot-scroll::-webkit-scrollbar-track { background: transparent }
.wp-screenshot-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px }
.wp-screenshot-scroll-item {
  flex-shrink: 0;
  width: 68px;
  height: 76px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s, border-color 0.18s;
  scroll-snap-align: start;
  display: block;
}
.wp-screenshot-scroll-item:hover { opacity: 0.85 }
.wp-screenshot-scroll-item.active { opacity: 1; border-color: var(--accent) }
.wp-split-screenshots-label {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 600;
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .wp-signals-split-inner { grid-template-columns: 1fr; gap: 2rem }
}

/* HOW IT WORKS */
.wp-how { background: var(--navy); padding: 3rem 1.5rem }
.wp-how-inner { max-width: 1040px; margin: 0 auto }
.wp-how-eyebrow {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232,86,42,0.85);
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.wp-how-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.6rem;
  line-height: 1.25;
}
.wp-steps { display: flex; flex-direction: column; max-width: 680px }
.wp-step { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06) }
.wp-step:last-child { border-bottom: none; padding-bottom: 0 }
.wp-step-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  font-style: italic;
  flex-shrink: 0;
  min-width: 1.5rem;
  padding-top: 0.08rem;
}
.wp-step-body { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.65 }
.wp-step-body strong { color: rgba(255,255,255,0.92); font-weight: 500 }

/* SINGLE-STAGE STRIP (Differentiators — names the ONE Signal/Route/Approve/Execute/Audit
   stage this exception typically fails at, per CLAUDE.md §9's glossary-hyperlink rule) */
.wp-di-strip { background: var(--navy); padding: 2.5rem 1.5rem 2.75rem; border-top: 1px solid rgba(255,255,255,0.06) }
.wp-di-strip-inner { max-width: 1040px; margin: 0 auto }
.wp-di-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--sans);
  margin-bottom: 0.6rem;
}
.wp-di-headline {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: #fff;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.wp-di-sub { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 1.75rem; max-width: 580px; line-height: 1.6 }
.xp-stage-box {
  background: rgba(232,86,42,0.07);
  border: 1px solid rgba(232,86,42,0.35);
  border-radius: var(--r);
  padding: 1rem 1.1rem 1.15rem;
  max-width: 420px;
}
.xp-stage-box-name { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 0.4rem; font-family: var(--sans) }
.xp-stage-box-name a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(232,86,42,0.4) }
.xp-stage-box-name a:hover { border-bottom-color: var(--accent) }
.xp-stage-box-body { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.6 }
.wp-di-differentiator {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.wp-di-badge {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--sans);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  white-space: nowrap;
}
.wp-di-badge--accent { border-color: rgba(232,86,42,0.5); color: var(--accent); background: rgba(232,86,42,0.06) }

/* PROOF / BENEFITS */
.wp-proof { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 1.5rem }
.wp-proof-inner { max-width: 1040px; margin: 0 auto }
.wp-metrics { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 0.9rem }
.wp-metric { display: flex; align-items: center; gap: 0.75rem }
.wp-metric-num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1 }
.wp-metric-lbl { font-size: 0.78rem; color: var(--ink3); line-height: 1.45; max-width: 130px }
.wp-proof-note { font-size: 0.7rem; color: var(--ink3); line-height: 1.5; border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.75rem; max-width: 760px }
.xp-proof-note-standalone { font-size: 0.85rem; color: var(--ink2); line-height: 1.7; max-width: 680px }

/* NEXT STEP CTA */
.wp-next-step { background: var(--navy); padding: 2.75rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.06) }
.wp-next-step-inner { max-width: 1040px; margin: 0 auto }
.wp-next-step-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  font-family: var(--sans);
  margin-bottom: 1.25rem;
}
.wp-next-step-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch }
.wp-next-step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--rl);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.wp-next-step-card-label {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.wp-next-step-card-title { font-family: var(--serif); font-size: 1.15rem; color: #fff; line-height: 1.3; margin-bottom: 0.55rem }
.wp-next-step-card-sub { font-size: 0.82rem; color: rgba(255,255,255,0.42); line-height: 1.65; flex: 1; margin-bottom: 1.25rem }
.wp-next-step-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--sans);
  text-decoration: none;
  padding: 0.65rem 1.15rem;
  border-radius: var(--r);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  align-self: flex-start;
}
.wp-next-step-link--primary { background: var(--accent); color: #fff }
.wp-next-step-link--primary:hover { background: var(--ah) }
.wp-next-step-link--secondary { background: transparent; color: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.16) }
.wp-next-step-link--secondary:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.28) }
@media (max-width: 600px) { .wp-next-step-options { grid-template-columns: 1fr } }

/* MINIMAL FOOTER */
.wp-footer { background: var(--navy); padding: 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); text-align: center }
.wp-footer a { font-size: 0.8rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.18s }
.wp-footer a:hover { color: rgba(255,255,255,0.6) }

/* RESPONSIVE */
@media (max-width: 480px) {
  .wp-hero { padding: 2.5rem 1.25rem 2rem }
  .wp-cost { padding: 1.5rem 1.25rem }
  .wp-signals-split { padding: 2.5rem 1.25rem }
  .wp-how { padding: 2.5rem 1.25rem }
  .wp-proof { padding: 1.75rem 1.25rem }
  .wp-metrics { gap: 1.5rem }
}
