/* =============================================================
   NordOps Consulting, v2 inner pages, set A (design/v2, 18 Oct 2026)
   Pages: fractional-caio, agent, ai-readiness-assessment, ai-for-saas,
   built, pricing. Loaded after style.css and v2.css; scoped to body.v2p.

   Same system as the v2 homepage (css/v2.css): Epilogue headings with a
   lighter cyan emphasis, one accent, 18px panels, pill buttons, quiet
   reveal motion. The approved copy and markup are kept; this layer maps
   the legacy components onto the v2 look and gives each section its own
   layout family through page classes (body.v2p-<page>).
   ============================================================= */

/* ---------- Base ---------- */
body.v2p .container { max-width: var(--container); padding-left: 24px; padding-right: 24px; }
body.v2p p { max-width: 62ch; }
body.v2p section { padding: clamp(72px, 9vw, 128px) 0; }
body.v2p section:nth-of-type(odd):not(.page-hero):not(.cta-section) { background: var(--v2-surface-2); }

/* Retired decoration */
body.v2p .section-watermark::before,
body.v2p .card-panel::before { display: none; }
body.v2p .card-panel > svg,
body.v2p .card-bare > svg,
body.v2p .card-data > svg,
body.v2p .scenario-card > svg { display: none; }

/* ---------- Headings ---------- */
body.v2p h2,
body.v2p .display-heading {
  font-family: var(--font-heading);
  font-variation-settings: normal;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--v2-text);
  max-width: 20ch;
  margin: 0 0 clamp(28px, 3vw, 44px);
  text-align: left;
}
body.v2p h2 em,
body.v2p .display-heading em,
body.v2p h1 em {
  font-family: var(--font-heading) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-variation-settings: normal !important;
  color: var(--v2-accent) !important;
}
body.v2p h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 10px; }
body.v2p .section-header { text-align: left; border: 0; padding: 0; margin: 0 0 clamp(28px, 3vw, 44px); }
body.v2p .section-header h2 { margin: 0 0 16px; }
body.v2p .section-header p { margin: 0; }

/* Card-level labels keep their text but drop the uppercase-eyebrow look */
body.v2p .card-panel .eyebrow,
body.v2p .card-data .eyebrow,
body.v2p .scenario-card .eyebrow {
  font-family: var(--font-heading); font-size: 15px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--v2-accent); margin: 0 0 12px; display: block;
}
body.v2p .card-panel .eyebrow::before,
body.v2p .card-data .eyebrow::before,
body.v2p .scenario-card .eyebrow::before { display: none; }

/* ---------- Page hero: left-aligned, optional image on the right ---------- */
body.v2p .page-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(56px, 6vw, 96px); text-align: left; overflow: hidden; }
body.v2p .page-hero .container { position: relative; }
body.v2p .page-hero h1 { font-size: clamp(36px, 4.2vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin: 0; max-width: 20ch; }
body.v2p .page-hero .lead { margin: 28px 0 0; max-width: 56ch; font-size: clamp(17px, 1.35vw, 19px); font-weight: 400; color: var(--v2-text-2); }
body.v2p .page-hero .lead + .lead { margin-top: 16px; }
body.v2p .page-hero .hero-ctas { justify-content: flex-start; margin-top: 36px !important; gap: 12px 24px; align-items: center; }
body.v2p .page-hero.has-visual .container { padding-right: calc(40% + 24px); min-height: 460px; display: flex; flex-direction: column; justify-content: center; }
body.v2p .page-hero.has-visual .container::after {
  content: ""; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 36%; aspect-ratio: 4 / 5; max-height: 560px;
  background: var(--v2p-hero-img) center / cover no-repeat;
  border-radius: var(--v2-r);
  box-shadow: 0 40px 80px -40px rgba(0, 200, 212, 0.25), inset 0 0 0 1px var(--v2-line);
}
body.v2p-caio   .page-hero { --v2p-hero-img: url("../public/v2/hero.webp"); }
body.v2p-agent  .page-hero { --v2p-hero-img: url("../public/v2/agents.webp"); }
body.v2p-assess .page-hero { --v2p-hero-img: url("../public/v2/assessment.webp"); }
body.v2p-built  .page-hero { --v2p-hero-img: url("../public/v2/built.webp"); }
body.v2p-caio .page-hero, body.v2p-agent .page-hero, body.v2p-assess .page-hero, body.v2p-built .page-hero { }

/* Text-only heroes get a quiet cyan glow instead */
body.v2p-saas .page-hero, body.v2p-pricing .page-hero {
  background: radial-gradient(70% 90% at 100% 0%, rgba(0, 200, 212, 0.14), transparent 60%);
}

/* ---------- Buttons ---------- */
body.v2p .btn-primary { border-radius: 999px; padding: 15px 28px; font-size: 15px; white-space: nowrap; }
body.v2p .btn-outline {
  border-radius: 999px; padding: 14px 26px; font-size: 15px; white-space: nowrap;
  background: transparent; color: var(--v2-text); border: 1px solid var(--v2-line-2);
  transition: border-color .3s var(--v2-ease), color .3s var(--v2-ease), transform .3s var(--v2-ease);
}
body.v2p .btn-outline:hover { border-color: var(--v2-accent); color: var(--v2-accent); background: transparent; transform: translateY(-2px); }
body.v2p .btn-outline.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Components ---------- */
body.v2p .card-panel {
  background: var(--v2-surface-2); border: 0; border-radius: var(--v2-r);
  box-shadow: inset 0 0 0 1px var(--v2-line); padding: clamp(26px, 3vw, 40px); transform: none;
}
body.v2p section:nth-of-type(odd) .card-panel { background: var(--v2-surface); }
body.v2p .card-panel:hover { transform: none; box-shadow: inset 0 0 0 1px var(--v2-line-2); }
body.v2p .card-panel p { font-size: 16px; }
body.v2p .card-bare { border-top: 1px solid var(--v2-line); padding: 26px 0 0; }
body.v2p .card-bare h3, body.v2p .card-bare h4 { font-size: clamp(18px, 1.5vw, 21px); }
body.v2p .card-bare p { font-size: 16px; margin: 0; }
body.v2p .card-data {
  background: rgba(13, 28, 51, 0.6); border: 0; border-radius: var(--v2-r);
  box-shadow: inset 0 0 0 1px var(--v2-line-2); padding: clamp(24px, 3vw, 36px);
}
body.v2p .card-data h3 { font-family: var(--font-heading); font-size: 20px; letter-spacing: -0.01em; text-transform: none; color: var(--v2-text); font-weight: 700; margin: 0 0 14px; }
body.v2p .card-data ul { list-style: none; margin: 0; padding: 0; }
body.v2p .card-data li { padding: 12px 0; border-top: 1px solid var(--v2-line); font-size: 15px; color: var(--v2-text-2); }
body.v2p .card-data li strong { color: var(--v2-text); }
body.v2p .citation { color: var(--v2-text-3); font-size: 14px; margin-top: 14px; font-style: normal; }
body.v2p .split-section { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
body.v2p .split-section--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
body.v2p .grid-2, body.v2p .grid-3 { gap: 16px; }
body.v2p .container > .grid-2, body.v2p .container > .grid-3 { margin-top: clamp(28px, 3vw, 40px); }
body.v2p .card-panel ul { list-style: none; margin: 14px 0 0; padding: 0; }
body.v2p .card-panel li { padding: 11px 0; border-top: 1px solid var(--v2-line); font-size: 15px; color: var(--v2-text-2); }
body.v2p .mega-numeral {
  font-family: var(--font-heading); font-variation-settings: normal; font-weight: 800;
  font-size: clamp(96px, 12vw, 176px); line-height: .85; letter-spacing: -0.06em;
  background: none; -webkit-text-fill-color: var(--v2-accent); color: var(--v2-accent); padding: 0;
}
body.v2p .mega-numeral::after { display: none; }
body.v2p .cost-anchor__caption { font-family: var(--font-heading); font-size: clamp(20px, 1.8vw, 24px); color: var(--v2-text); line-height: 1.3; max-width: 24ch; }

/* Scenario cards: v2 case style, one accent */
body.v2p .scenario-card {
  background: var(--v2-surface); border: 0; border-left: 0; border-radius: var(--v2-r);
  box-shadow: inset 0 0 0 1px var(--v2-line); padding: clamp(24px, 3vw, 36px); transform: none;
}
body.v2p .scenario-card:hover { transform: none; box-shadow: inset 0 0 0 1px var(--v2-line-2); }
body.v2p .scenario-card h3 { font-size: 21px; line-height: 1.25; }
body.v2p .scenario-metric { padding-top: 18px; border-top: 1px solid var(--v2-line); margin-top: auto; }
body.v2p .scenario-metric-label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--v2-text-3); }
body.v2p .scenario-metric-value { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; }
body.v2p .scenario-metric-value--warning { color: var(--v2-text); }
body.v2p .scenario-metric-value--cyan { color: var(--v2-accent); }
body.v2p .scenario-link { color: var(--v2-text); border-bottom: 1px solid var(--v2-line-2); padding-bottom: 3px; align-self: flex-start; }
body.v2p .scenario-link:hover { color: var(--v2-accent); border-color: var(--v2-accent); }

/* ---------- Closing call to action: left-aligned, gradient ---------- */
body.v2p .cta-section { text-align: left; background: linear-gradient(180deg, var(--v2-surface) 0%, #0b2033 100%); border-top: 1px solid var(--v2-line); }
body.v2p .cta-section::before { display: none; }
body.v2p .cta-section > .container { text-align: left !important; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
body.v2p .cta-section > .container > * { grid-column: 1; }
body.v2p .cta-section > .container > .btn-primary,
body.v2p .cta-section > .container > a:last-child { grid-column: 2; grid-row: 1 / span 3; justify-self: start; align-self: end; }
body.v2p .cta-section h2 { margin: 0 0 16px !important; max-width: 22ch; }
body.v2p .cta-section p { margin: 0 !important; max-width: 56ch !important; }

/* ---------- Shared layout families (applied per section below) ---------- */
/* A. Joined option grid: cells separated by 1px lines inside one rounded frame */
.v2p-joined { gap: 1px !important; background: var(--v2-line); border-radius: var(--v2-r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--v2-line); }
.v2p-joined > * { background: var(--v2-surface-2) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: clamp(26px, 3vw, 40px) !important; margin: 0 !important; }
/* B. Ruled rows: heading left, text right */
.v2p-rows { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; }
.v2p-rows > * { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: baseline; padding: 28px 0 !important; border: 0 !important; border-top: 1px solid var(--v2-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.v2p-rows > *:last-child { border-bottom: 1px solid var(--v2-line) !important; }
.v2p-rows > * > h3 { grid-column: 1; margin: 0; }
.v2p-rows > * > :not(h3) { grid-column: 2; }
/* C. Asymmetric bento: first tile spans two rows */
.v2p-bento { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; }
.v2p-bento > :first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(0, 200, 212, 0.22), transparent 60%), linear-gradient(160deg, #10284a, #0b1830) !important; }
.v2p-bento > :first-child h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; max-width: 16ch; }
/* D. Featured middle: three comparable tiers, the middle one lifted */
.v2p-tiers { align-items: stretch; }
.v2p-tiers > :nth-child(2) { background: linear-gradient(160deg, rgba(0, 200, 212, 0.18), rgba(0, 200, 212, 0.04)) !important; box-shadow: inset 0 0 0 1px rgba(0, 200, 212, 0.45) !important; transform: translateY(-12px); }
/* E. Cascade: stacked offset bands */
.v2p-cascade { grid-template-columns: 1fr !important; gap: 12px !important; }
.v2p-cascade > :nth-child(1) { margin-right: 8%; background: linear-gradient(135deg, rgba(0, 200, 212, 0.16), rgba(0, 200, 212, 0.04)) !important; }
.v2p-cascade > :nth-child(2) { margin-left: 4%; margin-right: 4%; background: #10233f !important; }
.v2p-cascade > :nth-child(3) { margin-left: 8%; }
.v2p-cascade > * { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 32px; }
.v2p-cascade > * > .eyebrow { grid-column: 1; grid-row: 1 / span 3; }
.v2p-cascade > * > :not(.eyebrow) { grid-column: 2; }
/* F. Open columns: no boxes, rule on top, big headings */
.v2p-open > * { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border-top: 2px solid var(--v2-accent) !important; padding: 24px 0 0 !important; }
.v2p-open > * h3 { font-size: clamp(22px, 2vw, 28px); }
/* G. Snap rail */
.v2p-rail { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: minmax(320px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.v2p-rail > * { scroll-snap-align: start; }
/* H. Step row: tiles joined by an accent line */
.v2p-steps { position: relative; }
.v2p-steps > * { border-top: 2px solid var(--v2-line-2) !important; border-radius: 0 0 var(--v2-r) var(--v2-r) !important; }
.v2p-steps > :nth-child(1) { border-top-color: var(--v2-accent) !important; }
.v2p-steps > :nth-child(2) { border-top-color: rgba(0, 200, 212, 0.6) !important; }
.v2p-steps > :nth-child(3) { border-top-color: rgba(0, 200, 212, 0.35) !important; }
/* I. Photo band */
.v2p-band { position: relative; isolation: isolate; overflow: hidden; }
.v2p-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--v2p-band-img) center / cover no-repeat; opacity: .5; }
.v2p-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 22, 40, 0.97) 0%, rgba(10, 22, 40, 0.82) 55%, rgba(10, 22, 40, 0.55) 100%); }
/* J. Narrow focus panel */
.v2p-focus { max-width: 760px; }
/* K. Definition block */
.v2p-def h2 { max-width: 22ch; }
.v2p-def p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--v2-text) !important; max-width: 60ch; }

/* ---------- Per page: which family each section uses ---------- */
/* fractional-caio: def / joined 2x3 / split / featured tiers / rows */
body.v2p-caio section:nth-of-type(3) .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* agent: cascade / pull-push / open columns / bento / photo band / joined / rows */
body.v2p-agent section:nth-of-type(6) { --v2p-band-img: url("../public/v2/europe.webp"); }
/* ai-for-saas */
body.v2p-saas section:nth-of-type(2) .split-section__support { display: grid; gap: 0; }
/* pricing */
body.v2p-pricing section:nth-of-type(7) .card-data { max-width: 760px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body.v2p .btn-outline, body.v2p .btn-primary { transition: none; }
  body.v2p .btn-outline:hover { transform: none; }
  .v2p-tiers > :nth-child(2) { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  body.v2p .page-hero.has-visual .container { padding-right: calc(38% + 24px); min-height: 380px; }
  .v2p-cascade > * { grid-template-columns: 1fr; }
  .v2p-cascade > * > .eyebrow, .v2p-cascade > * > :not(.eyebrow) { grid-column: 1; grid-row: auto; }
}

/* ---------- Phone: every multi-column layout collapses to one column ---------- */
@media (max-width: 768px) {
  body.v2p .container { padding-left: 16px; padding-right: 16px; }
  body.v2p .page-hero.has-visual .container { padding-right: 16px; min-height: 0; display: block; }
  body.v2p .page-hero.has-visual .container::after { position: static; display: block; transform: none; width: 100%; aspect-ratio: 16 / 10; max-height: 260px; margin-top: 32px; }
  body.v2p .split-section, body.v2p .split-section--reverse,
  body.v2p .grid-2, body.v2p .grid-3,
  .v2p-bento, .v2p-rows > *, .v2p-cascade > * { grid-template-columns: 1fr !important; }
  .v2p-rows > * { gap: 8px; }
  .v2p-rows > * > h3, .v2p-rows > * > :not(h3) { grid-column: 1; }
  .v2p-bento > :first-child { grid-row: auto; min-height: 240px; }
  .v2p-tiers > :nth-child(2) { transform: none; }
  .v2p-cascade > :nth-child(n) { margin-left: 0; margin-right: 0; }
  .v2p-rail { grid-auto-columns: 86%; }
  body.v2p .cta-section > .container { grid-template-columns: 1fr; }
  body.v2p .cta-section > .container > .btn-primary,
  body.v2p .cta-section > .container > a:last-child { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .v2p-band::after { background: rgba(10, 22, 40, 0.86); }
}
