/* Integrity Operating Partners / Revenue Assurance: shared site styles. */
:root {
  --ink: #0D0F14;
  --ink-mid: #3D4149;
  --ink-soft: #636878;
  --ink-ghost: #C8CAD0;
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --blue: #0047FF;
  --blue-dark: #0036C2;
  --blue-light: #EEF2FF;
  --green: #00875A;
  --green-light: #E6F6F0;
  --amber: #B45309;
  --amber-light: #FEF3C7;
  --red: #C81E1E;
  --red-light: #FDECEC;
  --border: #E4E5E9;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 44px rgba(13,15,20,0.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 6px; font-size: 13px; }
.skip-link:focus { left: 8px; }

/* Navigation */
nav.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(247,247,245,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 40px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; flex-direction: column; gap: 3px; text-decoration: none; flex-shrink: 0; }
.nav-logo-name { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--ink); line-height: 1; }
.nav-logo-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-mid); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.nav-sep { width: 1px; height: 22px; background: var(--border); }
.nav-login { font-size: 12.5px !important; color: var(--ink-soft) !important; font-weight: 500 !important; }
.nav-login:hover { color: var(--ink) !important; }
.nav-cta { background: var(--ink); color: var(--white) !important; padding: 9px 18px; border-radius: 7px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--blue); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.page { padding-top: 68px; min-height: 100vh; }

/* Type and layout */
.hero { padding: 88px 40px 56px; max-width: 1180px; margin: 0 auto; }
.hero.split { display: grid; grid-template-columns: 1fr; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); border: 1px solid rgba(0,71,255,0.15); padding: 5px 14px; border-radius: 100px; margin-bottom: 26px; }
.hero h1 { font-family: 'Instrument Serif', serif; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; color: var(--ink); max-width: 980px; margin-bottom: 24px; letter-spacing: -0.02em; font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero-sub { font-size: 19px; color: var(--ink-mid); max-width: 720px; line-height: 1.65; margin-bottom: 36px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.section { padding: 84px 40px; max-width: 1180px; margin: 0 auto; }
.section.tight { padding-top: 40px; }
.label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
h2.title { font-family: 'Instrument Serif', serif; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 16px; font-weight: 400; max-width: 900px; }
h2.title em { font-style: italic; color: var(--blue); }
.intro { font-size: 17px; color: var(--ink-mid); max-width: 700px; line-height: 1.7; margin-bottom: 44px; }
.copy { font-size: 15.5px; color: var(--ink-mid); line-height: 1.75; margin-bottom: 14px; }
.copy strong { color: var(--ink); }
.note { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.divider { border: none; border-top: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s; cursor: pointer; font-family: 'DM Sans', sans-serif; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--blue); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink-ghost); }
.btn-secondary:hover { border-color: var(--ink); }
.text-link { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Screenshots: real captures of the demo portfolio */
figure.shot { margin: 0; }
.shot-frame { background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: #FBFBFA; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-ghost); display: block; }
.shot-bar span { margin-left: 10px; font-size: 11px; color: var(--ink-soft); font-family: 'DM Mono', monospace; }
figure.shot figcaption { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.demo-tag { display: inline-block; flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #92400E; background: var(--amber-light); border: 1px solid #FDE68A; padding: 2px 9px; border-radius: 100px; }
.hero-shot { margin-top: 8px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-num { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: var(--blue); margin-bottom: 12px; }
.card h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.card p { font-size: 14.5px; color: var(--ink-mid); line-height: 1.65; }
.card .text-link { margin-top: auto; padding-top: 16px; }
.list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.list li { font-size: 14px; color: var(--ink-mid); display: flex; gap: 10px; line-height: 1.55; }
.list li::before { content: ''; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.split-2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split-2.flip { grid-template-columns: 1.25fr 1fr; }
.split-2.top { align-items: start; }
.split-2.contact { grid-template-columns: 1.5fr 1fr; }
.split-2 h3, .h3 { font-family: 'Instrument Serif', serif; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; font-weight: 400; color: var(--ink); }
.feature { padding: 44px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: none; padding-top: 0; }

/* The operating loop */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.flow-step { padding: 22px 18px; border-left: 1px solid var(--border); position: relative; }
.flow-step:first-child { border-left: none; }
.flow-step b { display: block; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--blue); margin-bottom: 8px; font-weight: 500; }
.flow-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--ink-mid); line-height: 1.55; }

/* Dark band */
.band { background: var(--ink); color: var(--white); }
.band .label { color: #8FAEFF; }
.band h2.title { color: var(--white); }
.band .intro, .band .copy { color: rgba(255,255,255,0.72); }
.band .card { background: #161921; border-color: rgba(255,255,255,0.1); box-shadow: none; }
.band .card h3 { color: var(--white); }
.band .card p, .band .list li { color: rgba(255,255,255,0.7); }
.band .card-num { color: #8FAEFF; }

/* KPI framework */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-col { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 22px; box-shadow: var(--shadow); }
.kpi-col h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.kpi-col .q { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.45; }
.kpi-col ol { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.kpi-col li { font-size: 13.5px; color: var(--ink-mid); display: flex; gap: 8px; }
.kpi-col li code { font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--blue); min-width: 22px; padding-top: 1px; }

/* Access levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.level .who { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.level h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.level p { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

/* Timeline (pilot) */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tl { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: 8px; padding: 18px 18px 20px; }
.tl .days { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--blue); margin-bottom: 6px; }
.tl h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tl p { font-size: 13px; color: var(--ink-mid); line-height: 1.55; }

/* Callouts */
.note-box { background: var(--blue-light); border: 1px solid rgba(0,71,255,0.14); border-radius: var(--radius); padding: 18px 22px; font-size: 14.5px; color: var(--ink-mid); line-height: 1.65; }
.note-box strong { color: var(--ink); }
.cta-band { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 56px 48px; box-shadow: var(--shadow); text-align: center; }
.cta-band h2.title, .cta-band .intro { margin-left: auto; margin-right: auto; }
.cta-band .intro { margin-bottom: 30px; }
.cta-band .actions { justify-content: center; }
.quote { font-family: 'Instrument Serif', serif; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--ink); border-left: 3px solid var(--blue); padding: 4px 0 4px 24px; max-width: 860px; }
.quote-by { font-size: 13px; color: var(--ink-soft); margin-top: 12px; padding-left: 27px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat .v { font-family: 'Instrument Serif', serif; font-size: 34px; line-height: 1; margin-bottom: 8px; }
.stat .l { font-size: 13.5px; color: var(--ink-mid); line-height: 1.5; }

/* Forms */
.form { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border-radius: 7px; border: 1px solid var(--ink-ghost); background: var(--white); font: inherit; font-size: 14.5px; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.field .err { display: none; font-size: 12.5px; color: var(--red); margin-top: 5px; }
.field .err.show { display: block; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; display: none; border-radius: 8px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-light); color: #064E3B; border: 1px solid #A7E3C8; }
.form-status.fail { background: var(--red-light); color: #7F1D1D; border: 1px solid #F5B5B5; }
.form-status a { color: inherit; font-weight: 700; }
.form button[disabled] { opacity: 0.6; cursor: wait; }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 56px 40px 36px; }
.foot { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .name { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--white); margin-bottom: 6px; }
.foot-brand p { font-size: 13px; line-height: 1.6; max-width: 320px; }
.foot h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 12px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: rgba(255,255,255,0.62); text-decoration: none; font-size: 13.5px; }
.foot a:hover { color: var(--white); }
.foot-base { max-width: 1180px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.foot-login { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.18); color: var(--white) !important; padding: 7px 14px; border-radius: 7px; font-weight: 600; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page > :first-child { animation: fadeUp 0.35s ease both; }
@media (prefers-reduced-motion: reduce) { .page > :first-child { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 1080px) {
  nav.site-nav { padding: 0 20px; flex-wrap: wrap; height: auto; min-height: 68px; }
  .nav-logo { padding: 14px 0; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 16px; border-top: 1px solid var(--border); max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; font-size: 15.5px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--border); }
  .nav-sep { display: none; }
  .nav-links li a.nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }
  .nav-links li a.nav-login { border-bottom: none; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(4) { border-left: none; }
  .flow-step:nth-child(n+4) { border-top: 1px solid var(--border); }
  .kpis, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .grid.two, .grid.three, .split-2, .split-2.flip, .split-2.contact, .levels, .stats { grid-template-columns: 1fr; gap: 24px; }
  .split-2.flip > figure { order: 2; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .cta-band { padding: 40px 22px; }
  footer { padding: 40px 20px 28px; }
}
@media (max-width: 560px) {
  .flow, .kpis, .grid.four, .timeline, .foot { grid-template-columns: 1fr; }
  .flow-step { border-left: none; border-top: 1px solid var(--border); }
  .flow-step:first-child { border-top: none; }
  .actions { flex-direction: column; align-items: stretch; }
  .shot-bar span { display: none; }
}

/* Case studies */
.case { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.case-head h3 { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 2.8vw, 32px); font-weight: 400; line-height: 1.2; margin-bottom: 18px; }
.case-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.case-grid h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.case-grid p { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }
.case details { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.case summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); }
@media (max-width: 1080px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } .case { padding: 20px; } }

/* Grid children may shrink below their content (long email addresses wrap instead of widening the page). */
.split-2 > *, .grid > *, .form > * { min-width: 0; }
.card p, .note, .copy, .form-status { overflow-wrap: anywhere; }
