/* =========================================================================
   ROVN · pages.css  ·  shared interior-page patterns
   (network / sources / trust / company / pricing / api)
   Reuses base.css + home.css components throughout.
   ========================================================================= */

.nav a[aria-current="page"] { color: var(--ink); background: rgba(28,24,18,0.05); }

/* ============================================================
   PAGE HERO  (editorial, text-led)
   ============================================================ */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(20px, 3vw, 40px); }
.page-hero::before { content: ""; position: absolute; top: -30%; right: -8%; width: 62%; height: 130%; pointer-events: none; z-index: 0; background: radial-gradient(48% 50% at 70% 40%, rgba(40,198,198,0.13), transparent 66%), radial-gradient(56% 56% at 80% 56%, rgba(168,137,91,0.09), transparent 72%); filter: blur(26px); }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero .ph-inner { max-width: 60ch; }
.page-hero h1 { font-size: var(--t-h1); margin: 22px 0 22px; }
.page-hero h1 em { font-style: italic; color: var(--teal-ink); }
.page-hero .lead { max-width: 52ch; }
.page-hero.center .ph-inner { margin-inline: auto; text-align: center; }
.page-hero.center .kicker { justify-content: center; }
.page-hero-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--t-xs); color: var(--ink-3); }
.page-hero-foot .mono { letter-spacing: 0.02em; }

/* breadcrumb-ish meta row */
.page-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.page-meta .live { color: var(--teal-ink); display: inline-flex; align-items: center; gap: 0.5em; }
.page-meta .live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ============================================================
   PROSE  (manifesto / vision copy)
   ============================================================ */
.prose { max-width: 64ch; }
.prose p { color: var(--ink-2); margin-bottom: 1.1em; text-wrap: pretty; }
.prose p.big { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); margin-bottom: 0.7em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--teal-ink); }

/* ============================================================
   FLYWHEELS  (network)
   ============================================================ */
.flywheels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.fly-card { border: 1px solid var(--line); border-radius: var(--r-4); background: var(--paper-0); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.fly-card .fy-n { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 16px; }
.fly-card .fy-t { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.014em; line-height: 1.04; margin-bottom: 12px; }
.fly-card .fy-d { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; margin-bottom: 22px; }
.fly-loop { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.fly-loop .fl-step { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }
.fly-loop .fl-step .a { color: var(--teal); }
@media (max-width: 880px) { .flywheels { grid-template-columns: 1fr; } }

/* compounding row */
.compound { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; margin-top: 48px; }
.compound .cmp { background: var(--paper-0); padding: 28px 26px; }
.compound .cmp .cn { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem,1.4rem+1.9vw,3.2rem); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; }
.compound .cmp .cn .u { color: var(--teal-ink); }
.compound .cmp .cl { margin-top: 10px; font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 720px) { .compound { grid-template-columns: 1fr; } }

/* ============================================================
   SOURCES TABLE  (sources page)
   ============================================================ */
.src-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; margin-bottom: 24px; }
.src-tab { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; padding: 0.5em 0.85em; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-3); background: var(--paper-0); }
.src-tab.active { background: var(--ink); color: var(--paper-0); border-color: var(--ink); }
.src-tab .n { opacity: 0.6; }

.src-table { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--paper-0); }
.src-thead, .src-tr { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 0.9fr; gap: 16px; align-items: center; padding: 14px 22px; }
.src-thead { background: var(--paper-2); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.src-tr { border-bottom: 1px solid var(--line-soft); }
.src-tr:last-child { border-bottom: 0; }
.src-tr .st-name { font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.src-tr .st-name .sub { display: block; font-family: var(--mono); font-size: 0.62rem; color: var(--ink-4); font-weight: 400; margin-top: 2px; }
.src-tr .st-cov { font-size: var(--t-xs); color: var(--ink-3); }
.src-method { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--mono); font-size: 0.64rem; }
.src-method .m { width: 8px; height: 8px; border-radius: 2px; }
.src-method.live { color: var(--teal-ink); } .src-method.live .m { background: var(--teal); }
.src-method.manual { color: var(--ink-3); } .src-method.manual .m { background: var(--ink-4); }
.src-method.roadmap { color: var(--tier-attested); } .src-method.roadmap .m { background: var(--tier-attested); }
.src-status { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; }
.src-status.on { color: var(--teal-ink); }
.src-status.soon { color: var(--ink-4); }
@media (max-width: 700px) {
  .src-thead { display: none; }
  .src-tr { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .src-tr .st-cov { grid-column: 1 / -1; order: 3; }
}

/* big coverage figure block (reuse cov-matrix from home.css) */
.cov-headline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; margin-top: 12px; }
.cov-headline .ch-c { background: var(--paper-0); padding: 26px 22px; }
.cov-headline .ch-c .n { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem,1.4rem+1.9vw,3.2rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.cov-headline .ch-c .n .u { color: var(--teal-ink); }
.cov-headline .ch-c .l { margin-top: 10px; font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 720px) { .cov-headline { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   HUMAN GATES  (trust page)  — reuses gate-step from facilities? define here
   ============================================================ */
.gates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.gate-card { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); padding: 26px 24px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.gate-card .gc-num { font-family: var(--mono); font-size: 0.9rem; color: var(--teal-ink); }
.gate-card .gc-t { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.gate-card .gc-d { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; }
.gate-card .gc-who { margin-top: 12px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 0.3em 0.7em; display: inline-block; }
@media (max-width: 720px) { .gates { grid-template-columns: 1fr; } }

/* compliance posture strip */
.posture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.posture-card { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); padding: 26px 24px; }
.posture-card .pc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.posture-card .pc-h .badge { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.55em; border-radius: var(--r-1); }
.posture-card .pc-h .badge.on { background: var(--teal-wash); color: var(--teal-ink); border: 1px solid var(--teal-line); }
.posture-card .pc-h .badge.prog { background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--line); }
.posture-card .pc-t { font-family: var(--serif); font-size: 1.25rem; letter-spacing: -0.01em; }
.posture-card .pc-d { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; margin-top: 8px; }
@media (max-width: 820px) { .posture { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM  (company page)
   ============================================================ */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.person { border: 1px solid var(--line); border-radius: var(--r-4); background: var(--paper-0); padding: 30px 28px; display: flex; gap: 18px; align-items: flex-start; }
.person .ava { width: 72px; height: 88px; border-radius: var(--r-3); object-fit: cover; flex: none; }
.person .p-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.012em; line-height: 1.05; }
.person .p-role { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); margin-top: 6px; }
.person .p-bio { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; margin-top: 12px; }

.open-role { border: 1px dashed var(--line-strong); border-radius: var(--r-4); background: transparent; padding: 30px 28px; display: flex; flex-direction: column; justify-content: center; }
.open-role .or-tag { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.open-role .or-t { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.012em; margin-bottom: 8px; }
.open-role .or-d { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; margin-bottom: 18px; }

/* secondary people (advisors / counsel) */
.people-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.mini-person { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); padding: 22px 22px; }
.mini-person .mp-name { font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1.1; }
.mini-person .mp-role { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-top: 6px; }
.mini-person .mp-d { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.45; margin-top: 10px; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } .people-row { grid-template-columns: 1fr; } }

/* ============================================================
   PLAN  (pricing page)  — reuses dpp-card from facilities.css
   ============================================================ */
.plan-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; margin-top: 16px; }
.plan-step { background: var(--paper-0); padding: 28px 24px; }
.plan-step .ps-n { font-family: var(--mono); font-size: 0.66rem; color: var(--teal-ink); letter-spacing: 0.08em; margin-bottom: 14px; }
.plan-step .ps-t { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.012em; line-height: 1.05; margin-bottom: 8px; }
.plan-step .ps-d { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; }
@media (max-width: 880px) { .plan-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .plan-steps { grid-template-columns: 1fr; } }

.later { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-2); padding: 28px clamp(24px,3vw,38px); display: flex; gap: 18px; align-items: flex-start; }
.later .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; padding-top: 3px; }
.later .lt { font-size: var(--t-body); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.later .lt strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   API  (api page)
   ============================================================ */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,4vw,64px); align-items: start; }
.api-feats { display: flex; flex-direction: column; gap: 4px; }
.api-feat { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.api-feat:first-child { padding-top: 0; }
.api-feat .af-i { font-family: var(--mono); font-size: 0.66rem; color: var(--teal-ink); padding-top: 3px; }
.api-feat .af-t { font-family: var(--serif); font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.api-feat .af-d { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; }

/* code block (the receipt object) */
.code-card { background: var(--night); border: 1px solid var(--night-line); border-radius: var(--r-4); box-shadow: var(--shadow-night); overflow: hidden; position: sticky; top: calc(var(--header-h) + 24px); }
.code-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--night-line); }
.code-top .dots { display: flex; gap: 6px; }
.code-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--night-2); }
.code-top .fname { font-family: var(--mono); font-size: 0.66rem; color: var(--on-night-3); letter-spacing: 0.04em; }
.code-top .verb { margin-left: auto; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--teal-bright); border: 1px solid var(--teal-line); border-radius: var(--r-1); padding: 0.2em 0.5em; }
.code-body { padding: 20px; font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; color: var(--on-night-2); overflow-x: auto; }
.code-body .ln { display: block; white-space: pre; }
.code-body .k { color: #8FB8C9; }   /* keys, cool */
.code-body .s { color: #C9B083; }   /* strings, warm */
.code-body .t { color: var(--teal-bright); } /* teal accents */
.code-body .c { color: var(--on-night-3); }  /* comments */
.code-body .p { color: var(--on-night-3); }  /* punctuation */
@media (max-width: 880px) { .api-grid { grid-template-columns: 1fr; } .code-card { position: relative; top: 0; } }

.api-note { margin-top: 40px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); }
.api-note .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); white-space: nowrap; padding-top: 2px; }
.api-note .nt { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }

/* generic two-up callout used on several pages */
.callout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.callout { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); padding: 28px 26px; }
.callout .co-t { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.callout .co-d { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; }
@media (max-width: 720px) { .callout-2 { grid-template-columns: 1fr; } }

/* ============================================================
   REAL COVERAGE MATRIX  (sources)  ·  43x51, live-endpoint data
   ============================================================ */
.real-matrix { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); padding: 18px; position: relative; }
.rm-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.rm-src { color: var(--ink-4); letter-spacing: 0.02em; text-transform: none; }
.rm-scroll { overflow-x: auto; }
.rm-grid { display: grid; grid-template-columns: repeat(var(--cols, 51), 1fr); gap: 1px; min-width: 540px; cursor: crosshair; }
.rm-cell { height: 8px; border-radius: 1px; }
.rm-cell.api { background: var(--teal); opacity: 0.85; }
.rm-cell.man { background: var(--ink-4); opacity: 0.26; }
.rm-cell:hover { outline: 1px solid var(--ink); opacity: 1; }
.rm-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-family: var(--mono); font-size: 0.62rem; color: var(--ink-3); }
.rm-foot .lg { display: inline-flex; align-items: center; gap: 0.5em; }
.rm-foot .lg i { width: 10px; height: 8px; border-radius: 1px; display: inline-block; }
.rm-foot .lg i.api { background: var(--teal); }
.rm-foot .lg i.man { background: var(--ink-4); opacity: 0.35; }
.rm-foot .zero { color: var(--teal-ink); }
.rm-tip { position: absolute; z-index: 5; max-width: 250px; background: var(--night); color: var(--on-night-2); border: 1px solid var(--night-line); border-radius: var(--r-2); padding: 8px 11px; font-size: 0.66rem; line-height: 1.55; pointer-events: none; box-shadow: var(--shadow-2); }
.rm-tip b { color: var(--teal-bright); font-weight: 600; }

/* ============================================================
   PROCUREMENT FAQ (pricing)
   ============================================================ */
.pfaq { max-width: 760px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); overflow: hidden; }
.pfaq details { border-bottom: 1px solid var(--line-soft); }
.pfaq details:last-child { border-bottom: 0; }
.pfaq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 22px; font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; font-family: var(--mono); color: var(--teal-ink); font-size: 1rem; transition: transform .25s var(--ease-quint); }
.pfaq details[open] summary::after { transform: rotate(45deg); }
.pfaq p { padding: 0 22px 18px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; max-width: 64ch; }

/* ============================================================
   NETWORK LIVING GRAPH STAGE
   ============================================================ */
.network-stage { aspect-ratio: 16 / 7.5; min-height: 0; margin-top: 44px; }
@media (max-width: 720px) { .network-stage { aspect-ratio: 4 / 4; } }

/* flywheel loops: steps quietly cycle (paused for reduced motion) */
@keyframes flcycle { 0%, 100% { color: var(--ink-3); } 18% { color: var(--teal-ink); } 36% { color: var(--ink-3); } }
.js .fly-loop .fl-step { animation: flcycle 5.4s ease-in-out infinite; }
.js .fly-loop .fl-step:nth-child(2) { animation-delay: 1.8s; }
.js .fly-loop .fl-step:nth-child(3) { animation-delay: 3.6s; }

/* moat layers: stack bottom-up on reveal */
.js .moat-now:not(.in) .moat-layer { opacity: 0; transform: translateY(8px); }
.js .moat-now.in .moat-layer { animation: cfaccept .55s var(--ease-expo) both; }
.js .moat-now.in .moat-layer:nth-child(5) { animation-delay: .05s; }
.js .moat-now.in .moat-layer:nth-child(4) { animation-delay: .2s; }
.js .moat-now.in .moat-layer:nth-child(3) { animation-delay: .35s; }
.js .moat-now.in .moat-layer:nth-child(2) { animation-delay: .5s; }
.js .moat-now.in .moat-layer:nth-child(1) { animation-delay: .7s; }
@media (prefers-reduced-motion: reduce) {
  .fly-loop .fl-step { animation: none !important; }
  .moat-now .moat-layer { animation: none !important; opacity: 1 !important; }
}
