:root {
  --ink: #17201c;
  --muted: #5d675f;
  --paper: #f6f3ea;
  --white: #fffdf7;
  --line: #d8d8ce;
  --blue: #153dff;
  --blue-dark: #0a2ac2;
  --lime: #d9ff57;
  --red: #db3f2f;
  --shadow: 0 18px 60px rgba(23, 32, 28, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 20; background: var(--ink); color: white; padding: 12px 16px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(23,32,28,.1);
  background: rgba(246,243,234,.92);
  backdrop-filter: blur(16px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.app-nav .brand small { color: rgba(255,255,255,.55); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--lime); background: var(--blue); font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.button):hover { color: var(--blue); }

.button {
  border: 1px solid var(--ink); border-radius: 999px; padding: 12px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: white; text-decoration: none; font-weight: 780;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23,32,28,.18); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(21,61,255,.28); outline-offset: 2px; }
.button.primary { background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: transparent; color: var(--ink); }
.button.light { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.button.small { padding: 9px 14px; font-size: 13px; }
.button.full { width: 100%; }
.button[disabled] { opacity: .65; cursor: wait; transform: none; }

.hero { padding: 78px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 850; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--blue); }
h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 7vw, 92px); line-height: .92; letter-spacing: -.068em; font-weight: 880; }
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 500; }
.lede { max-width: 620px; margin: 28px 0; font-size: clamp(18px, 2vw, 22px); color: var(--muted); letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microcopy { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.product-shot { position: relative; min-height: 510px; }
.shot-window { position: absolute; inset: 24px 0 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(1.7deg); }
.shot-top { height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d3d4ca; }
.shot-body { padding: 28px; }
.shot-label { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #8b281e; background: #ffe1db; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.shot-body h3 { margin: 18px 0 8px; font-size: 25px; letter-spacing: -.04em; }
.shot-body p { color: var(--muted); }
.scope-box { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.scope-row { padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.scope-row:last-child { border: 0; background: #f1f2ec; }
.scope-row span { color: var(--muted); }
.scope-row strong { text-align: right; }
.approval-strip { margin-top: 20px; border-radius: 14px; padding: 14px 16px; background: var(--lime); display: flex; align-items: center; justify-content: space-between; font-weight: 780; }
.float-note { position: absolute; z-index: 2; right: -18px; bottom: 20px; padding: 16px 18px; border-radius: 14px; color: white; background: var(--blue); box-shadow: var(--shadow); transform: rotate(-4deg); font-weight: 750; }

.monitor-hero { padding-bottom: 72px; }
.signal-board { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.signal-toolbar { min-height: 54px; padding: 0 20px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); font-size: 13px; }
.signal-toolbar span:last-child { margin-left: auto; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #44b95c; box-shadow: 0 0 0 5px rgba(68,185,92,.12); }
.signal-message { margin: 22px; padding: 18px; display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f0f1eb; }
.signal-message p { margin: 4px 0 0; color: var(--muted); }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--blue); font-size: 12px; font-weight: 850; }
.signal-analysis { margin: 0 22px; padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; border: 2px solid var(--blue); border-radius: 18px; }
.signal-analysis h3 { margin: 9px 0 3px; font-size: 20px; letter-spacing: -.03em; }
.signal-analysis p { margin: 0; color: var(--muted); font-size: 13px; }
.risk-ring { width: 76px; height: 76px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--blue); }
.risk-ring strong { font-size: 28px; line-height: 1; }
.risk-ring span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.signal-value { margin: 18px 22px 0; display: flex; justify-content: space-between; align-items: baseline; }
.signal-value span { color: var(--muted); font-size: 13px; }
.signal-value strong { font-size: 26px; color: var(--blue); }
.signal-board .approval-strip { margin: 18px 22px 22px; }

.proof-bar { padding: 26px 0; border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: 40px; align-items: center; }
.proof-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.proof-point { font-weight: 820; letter-spacing: -.02em; }
.proof-point::before { content: "✓"; margin-right: 8px; color: var(--blue); }

.section { padding: 110px 0; }
.section.blue { color: white; background: var(--blue); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin: 0 0 18px; font-size: clamp(42px, 5.2vw, 72px); line-height: .98; letter-spacing: -.055em; }
.section-head p { max-width: 620px; margin: 0; font-size: 19px; color: var(--muted); }
.blue .section-head p { color: rgba(255,255,255,.72); }
.blue .eyebrow::before { background: var(--lime); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); overflow: hidden; }
.step { min-height: 290px; padding: 30px; border-right: 1px solid rgba(255,255,255,.28); }
.step:last-child { border: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 850; }
.step h3 { margin: 72px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.step p { margin: 0; color: rgba(255,255,255,.72); }
.pricing-demo-link { display: block; margin-top: 16px; color: var(--blue); font-size: 13px; font-weight: 800; text-align: center; }

.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature:nth-child(1), .feature:nth-child(4) { grid-column: span 7; }
.feature:nth-child(2), .feature:nth-child(3) { grid-column: span 5; }
.feature-icon { font-size: 25px; }
.feature h3 { margin: 74px 0 8px; font-size: 23px; letter-spacing: -.035em; }
.feature p { margin: 0; color: var(--muted); max-width: 520px; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fit-card.good { color: white; background: var(--ink); border-color: var(--ink); }
.fit-card > span { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e5e6de; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.fit-card.good > span { color: var(--ink); background: var(--lime); }
.fit-card h3 { margin: 24px 0 18px; font-size: 28px; letter-spacing: -.04em; }
.fit-card ul { padding-left: 20px; margin: 0; }
.fit-card li { margin: 10px 0; color: var(--muted); }
.fit-card.good li { color: rgba(255,255,255,.72); }

.math-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: white; border-radius: 28px; overflow: hidden; }
.math-copy { padding: 48px; }
.math-copy h2 { margin: 0 0 16px; font-size: clamp(38px, 4.5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.math-copy p { color: rgba(255,255,255,.7); }
.calculator { padding: 42px; background: var(--lime); color: var(--ink); }
.range-label { display: flex; justify-content: space-between; margin: 18px 0 8px; font-size: 14px; font-weight: 750; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.result { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(23,32,28,.24); }
.result span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.result strong { display: block; margin-top: 4px; color: var(--blue); font-size: 56px; letter-spacing: -.06em; }

.pricing-card { max-width: 640px; margin-inline: auto; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.price-main, .price-side { padding: 42px; }
.price-side { background: #ebece5; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 26px; }
.price strong { font-size: 64px; line-height: 1; letter-spacing: -.06em; }
.price span { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li { margin: 13px 0; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; color: white; background: var(--blue); font-size: 12px; font-weight: 850; }
.price-side h3 { margin-top: 0; }
.price-side p { color: var(--muted); }
.price-note { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.status-message { min-height: 22px; margin: 12px 0 0; color: var(--red); font-size: 13px; }
.status-message.success-text { color: #176c31; }

.audit-section { background: #e9eae2; }
.audit-grid { display: grid; grid-template-columns: 1fr minmax(360px, .8fr); gap: 70px; align-items: start; }
.audit-grid h2 { margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; }
.audit-form h3 { margin: 0; font-size: 26px; }
.audit-form > p { margin: 6px 0 22px; color: var(--muted); }
.audit-form .field { margin-top: 14px; }
.audit-form .button { margin-top: 20px; }
.audit-form textarea { min-height: 116px; }
.consent-row { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 12px; }
.consent-row input { margin-top: 3px; accent-color: var(--blue); }
.form-footnote { margin: 12px 0 0 !important; font-size: 11px; line-height: 1.45; }
.trap-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { min-height: 70px; margin-top: 18px; display: flex; align-items: center; justify-content: center; }
.faq-section { background: var(--white); }

.faq { max-width: 760px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 750; }
details p { max-width: 650px; margin: 0 0 22px; color: var(--muted); }

.site-footer { padding: 54px 0 34px; color: white; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-copy { max-width: 480px; margin: 14px 0 0; color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font-size: 13px; }

/* App */
.app-shell { min-height: 100vh; background: #efefe8; }
.app-nav { background: var(--ink); color: white; }
.app-nav .nav { min-height: 64px; }
.app-layout { min-height: calc(100vh - 64px); }
.sidebar { padding: 26px 18px; border-right: 1px solid var(--line); background: var(--white); }
.side-label { margin: 8px 12px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.side-link { width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; display: flex; gap: 10px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.side-link.active { color: var(--ink); background: var(--lime); font-weight: 750; }
.app-main { width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding: 40px 0 64px; }
.app-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 26px; }
.app-head h1 { font-size: 42px; line-height: 1; }
.app-head p { margin: 8px 0 0; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 22px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.panel h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.035em; }
.panel-intro { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 750; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.35; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cfd1c7; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; }
.field textarea { min-height: 88px; resize: vertical; }
.field-prefix { position: relative; }
.field-prefix span { position: absolute; top: 11px; left: 12px; color: var(--muted); }
.field-prefix input { padding-left: 26px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; align-items: center; }
.preview-card { position: sticky; top: 90px; }
.preview-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tag { padding: 5px 9px; border-radius: 999px; color: #8b281e; background: #ffe1db; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.preview-card h3 { margin: 24px 0 4px; font-size: 25px; letter-spacing: -.04em; }
.preview-client { margin: 0; color: var(--muted); }
.preview-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.preview-section span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.preview-section p { margin: 6px 0 0; }
.impact { margin-top: 22px; padding: 18px; border-radius: 14px; background: #edf0ff; }
.impact-line { display: flex; justify-content: space-between; margin: 7px 0; }
.impact-line.total { margin-top: 12px; padding-top: 12px; border-top: 1px solid #c7cef7; font-size: 19px; font-weight: 850; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: 380px; padding: 14px 18px; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); transform: translateY(120px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

/* Detector */
.detector-main { width: min(1460px, calc(100% - 40px)); }
.detector-main .app-head { align-items: center; }
.detector-main .app-head .eyebrow { margin-bottom: 12px; }
.detector-grid { display: grid; grid-template-columns: minmax(480px, 1fr) minmax(380px, .9fr); gap: 22px; align-items: start; }
.detector-form { padding: 30px; }
.detector-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.detector-section-head:not(:first-child) { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.detector-section-head h2 { margin: 0; }
.detector-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.step-chip { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-weight: 850; }
.scope-textarea { min-height: 150px !important; }
.detector-submit { margin-top: 22px; }
.detector-result { position: sticky; top: 84px; min-height: 530px; }
.detector-result.empty { display: grid; place-items: center; }
.empty-state { max-width: 310px; text-align: center; color: var(--muted); }
.empty-state > span { width: 66px; height: 66px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #edf0ff; font-size: 30px; }
.empty-state h2 { color: var(--ink); }
.analysis-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.risk-score { width: 86px; height: 86px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--blue); }
.risk-score strong { font-size: 34px; line-height: 1; }
.risk-score span { font-size: 10px; }
.analysis-head h2 { margin: 8px 0 0; }
.value-banner { margin: 24px 0; padding: 18px 20px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; background: var(--lime); }
.value-banner span { font-size: 13px; font-weight: 750; }
.value-banner strong { font-size: 26px; }
.reason-block { margin-top: 22px; }
.reason-block h3 { margin: 0 0 10px; font-size: 15px; }
.reason-block ul { margin: 0; padding-left: 20px; color: var(--muted); }
.reason-block li { margin: 8px 0; }
.reason-block p { margin: 0; color: var(--muted); }
.draft-block { margin: 24px 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f0f1eb; }
.draft-block > div { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.draft-block p { margin-bottom: 0; }
.detector-conversion { margin-top: 18px; padding: 20px; border-radius: 15px; color: white; background: var(--blue); }
.detector-conversion > span { color: var(--lime); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.detector-conversion p { margin: 8px 0 16px; color: rgba(255,255,255,.78); font-size: 13px; }
.text-button { border: 0; padding: 0; color: var(--blue); background: transparent; font-weight: 800; cursor: pointer; }
.detector-notes { margin-top: 22px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border: 1px dashed #b8bbb0; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.46); font-size: 12px; }
.detector-notes strong { color: var(--ink); margin-right: 8px; }
.detector-notes span { padding: 5px 9px; border-radius: 999px; background: var(--white); }

/* Approval */
.review-page { min-height: 100vh; padding: 32px 0 64px; background: var(--paper); }
.review-nav { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: center; }
.review-card { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.review-head { padding: 42px; color: white; background: var(--blue); }
.review-head h1 { margin-top: 18px; font-size: clamp(38px, 6vw, 58px); }
.review-body { padding: 42px; }
.review-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meta-block span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.meta-block strong { display: block; margin-top: 5px; }
.review-copy { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.review-copy h2 { font-size: 18px; }
.review-copy p { color: var(--muted); white-space: pre-wrap; }
.approval-form { margin-top: 32px; padding: 24px; border-radius: 16px; background: #edeee8; }
.receipt { display: none; margin-top: 26px; padding: 22px; border: 2px solid var(--blue); border-radius: 16px; }
.receipt.visible { display: block; }
.receipt h3 { margin: 0; color: var(--blue); }

.legal { max-width: 760px; padding: 80px 0; }
.legal h1 { font-size: 56px; }
.legal h2 { margin-top: 38px; }
.legal p, .legal li { color: var(--muted); }

/* Inbound tools and editorial pages */
.tool-hero, .article-hero { padding: 92px 0 58px; }
.narrow-head { max-width: 980px; }
.narrow-head h1, .article-hero h1 { max-width: 920px; font-size: clamp(58px, 8vw, 104px); }
.tool-section { padding: 0 0 100px; }
.calculator-shell { display: grid; grid-template-columns: minmax(340px,.75fr) minmax(420px,1.25fr); gap: 22px; align-items: stretch; }
.change-order-shell { display: grid; grid-template-columns: minmax(380px,.85fr) minmax(460px,1.15fr); gap: 22px; align-items: start; }
.scope-template-shell { display: grid; grid-template-columns: minmax(420px,1fr) minmax(460px,1fr); gap: 22px; align-items: start; }
.calculator-form { display: grid; align-content: start; gap: 18px; }
.calculator-form h2 { margin-bottom: 6px; }
.field-suffix { position: relative; }
.field-suffix input { padding-right: 34px !important; }
.field-suffix span { position: absolute; top: 11px; right: 13px; color: var(--muted); }
.calculator-output { padding: 38px; border-radius: 22px; color: white; background: var(--blue); }
.calculator-output .eyebrow::before { background: var(--lime); }
.output-primary { margin: 28px 0; }
.output-primary span, .output-grid span { display: block; color: rgba(255,255,255,.68); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.output-primary strong { display: block; margin-top: 3px; color: var(--lime); font-size: clamp(58px,8vw,88px); line-height: 1; letter-spacing: -.065em; }
.output-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.24); }
.output-grid div { min-width: 0; }
.output-grid strong { display: block; margin-top: 8px; font-size: 22px; }
.output-note { margin: 28px 0; padding: 18px; border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.92); }
.output-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.content-section { background: var(--white); }
.change-order-output { overflow: hidden; border-radius: 22px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.change-order-summary { padding: 36px; }
.change-order-summary .eyebrow::before { background: var(--lime); }
.change-order-summary > span { display: block; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.change-order-summary > strong { display: block; margin-top: 8px; color: var(--lime); font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.05em; }
.change-order-summary dl { margin: 32px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.change-order-summary dl div { padding: 15px 0; display: grid; grid-template-columns: 110px 1fr; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.change-order-summary dt { color: rgba(255,255,255,.5); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.change-order-summary dd { margin: 0; }
.change-order-email { padding: 30px 36px 34px; color: var(--ink); background: var(--blue); }
.change-order-email > span { color: var(--lime); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.change-order-email pre { min-height: 330px; margin: 16px 0 20px; padding: 24px; overflow: auto; border-radius: 14px; white-space: pre-wrap; color: var(--ink); background: var(--white); font: 16px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; }
.change-order-email .status-message { margin: 12px 0 0; color: white; text-align: center; }
.scope-template-output { position: sticky; top: 92px; overflow: hidden; border-radius: 22px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.scope-template-output > div:first-child { padding: 36px; }
.scope-template-output .eyebrow::before { background: var(--lime); }
.scope-template-output pre { max-height: 760px; margin: 0; overflow: auto; white-space: pre-wrap; color: rgba(255,255,255,.82); font: 15px/1.65 Inter, ui-sans-serif, system-ui, sans-serif; }
.scope-template-actions { padding: 24px 36px 30px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; background: var(--blue); }
.scope-template-actions .status-message { grid-column: 1 / -1; margin: 0; color: white; text-align: center; }
.article-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 70px; }
.article-grid article { max-width: 700px; }
.article-grid article h2 { font-size: 40px; letter-spacing: -.045em; }
.article-grid article h3 { margin-top: 34px; font-size: 22px; }
.article-grid article p { color: var(--muted); font-size: 18px; }
.content-aside { position: sticky; top: 100px; align-self: start; padding: 28px; border-radius: 20px; color: white; background: var(--ink); }
.content-aside .eyebrow::before { background: var(--lime); }
.content-aside h3 { margin: 34px 0 10px; font-size: 28px; }
.content-aside p:not(.eyebrow) { color: rgba(255,255,255,.68); }

.article-width { max-width: 850px; }
.article-meta { display: flex; gap: 22px; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 750; }
.longform { padding-bottom: 110px; }
.longform p { color: var(--muted); font-size: 19px; line-height: 1.75; }
.longform .article-intro { color: var(--ink); font-size: 25px; line-height: 1.55; letter-spacing: -.02em; }
.longform h2 { margin: 64px 0 16px; font-size: 38px; line-height: 1.1; letter-spacing: -.045em; }
.callout { margin: 32px 0; padding: 22px 24px; border-left: 5px solid var(--blue); background: #e9ecff; font-size: 17px; }
.decision-list { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.decision-list li { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.decision-list strong, .decision-list span { display: block; }
.decision-list strong { margin-bottom: 7px; color: var(--blue); font-size: 18px; }
.decision-list span { color: var(--muted); }
.article-cta { margin-top: 70px; padding: 38px; border-radius: 24px; color: white; background: var(--blue); }
.article-cta .eyebrow::before { background: var(--lime); }
.article-cta h2 { margin: 42px 0 10px; }
.article-cta p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.article-cta .button { margin: 10px 8px 0 0; }
.software-hero .hero-actions { margin-top: 28px; }
.software-longform > h2 { margin-top: 70px; }
.software-workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.software-workflow article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.software-workflow article:last-child { grid-column: 1 / -1; }
.software-workflow article > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-weight: 850; }
.software-workflow h3 { margin: 20px 0 8px; font-size: 22px; }
.software-workflow p { margin: 0; color: var(--muted); }
.software-fit { margin: 28px 0; }
.software-comparison { margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.comparison-row { display: grid; grid-template-columns: .8fr 1.25fr 1fr; }
.comparison-row > * { padding: 17px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comparison-row > *:last-child { border-right: 0; }
.comparison-row:last-child > * { border-bottom: 0; }
.comparison-row span { color: var(--muted); }
.comparison-head { color: white; background: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.comparison-head > * { border-color: rgba(255,255,255,.18); }
.comparison-row.highlighted { background: #edffd1; }
.software-faq { margin-top: 24px; }
.software-demo-note { margin-top: 22px; text-align: center; }
.software-demo-note a { color: var(--blue); font-weight: 800; }

/* Walkthrough request */
.demo-page { min-height: 100vh; background: #ecece5; }
.demo-shell { padding: 74px 0 100px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1fr); gap: 70px; align-items: start; }
.demo-copy { padding-top: 30px; }
.demo-copy h1 { margin: 22px 0; font-size: clamp(58px, 7vw, 90px); }
.demo-copy .lede { max-width: 680px; }
.demo-copy .check-list { margin-top: 32px; }
.demo-form-card { padding: 38px; }
.demo-form-card h2 { margin: 0; font-size: 36px; }
.demo-form-card form > p { color: var(--muted); }
.demo-form-card .field { margin-top: 16px; }
.demo-form-card textarea { min-height: 140px; }
.demo-form-card .button { margin-top: 20px; }
.demo-success { padding: 24px 0; text-align: center; }
.demo-success .eyebrow { justify-content: center; }
.demo-success h2 { margin: 24px 0 12px; }
.demo-success p:not(.eyebrow) { color: var(--muted); }
.dark-button { color: white; border-color: rgba(255,255,255,.65); }

/* Private audit report */
.report-page { min-height: 100vh; background: #eeeee7; }
.report-nav { border-bottom: 1px solid var(--line); background: var(--white); }
.private-label { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.report-wrap { padding: 64px 0 90px; }
.report-state { max-width: 760px; margin: 60px auto; text-align: center; }
.report-state h1 { max-width: none; margin: 20px 0 14px; font-size: clamp(42px, 7vw, 70px); }
.report-state p { color: var(--muted); }
.report-state .eyebrow { justify-content: center; }
.report-loader { width: 48px; height: 48px; margin: 0 auto; display: block; border: 5px solid #d8dbd1; border-top-color: var(--blue); border-radius: 50%; animation: report-spin .9s linear infinite; }
.workspace-loading-copy { max-width: 440px; margin: 12px auto 0; color: var(--muted); line-height: 1.55; }
.workspace-loading-actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@keyframes report-spin { to { transform: rotate(360deg); } }
.report-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; align-items: end; padding: 54px; border-radius: 28px 28px 0 0; color: white; background: var(--ink); }
.report-hero .eyebrow::before { background: var(--lime); }
.report-hero h1 { max-width: 800px; font-size: clamp(50px, 7vw, 84px); }
.report-hero .lede { margin-bottom: 18px; color: rgba(255,255,255,.7); }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255,255,255,.5); font-size: 12px; }
.confidence-card { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.07); }
.confidence-card > span, .confidence-card small { display: block; color: rgba(255,255,255,.62); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.confidence-card strong { display: block; margin: 10px 0; color: var(--lime); font-size: 52px; letter-spacing: -.055em; }
.confidence-track { height: 7px; margin: 4px 0 14px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.confidence-track span { height: 100%; display: block; border-radius: inherit; background: var(--lime); }
.report-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-inline: 1px solid var(--line); background: var(--white); }
.report-stat { min-height: 150px; padding: 30px; border-right: 1px solid var(--line); }
.report-stat:last-child { border: 0; }
.report-stat span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.report-stat strong { display: block; margin-top: 25px; font-size: 25px; letter-spacing: -.035em; }
.report-stat.highlight { color: var(--ink); background: var(--lime); }
.report-stat.highlight span { color: rgba(23,32,28,.65); }
.report-stat.highlight strong { color: var(--blue); font-size: 34px; }
.report-section { padding: 70px 54px; border: 1px solid var(--line); border-top: 0; background: var(--white); }
.report-section h2 { max-width: 700px; margin: 10px 0 24px; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.section-kicker { color: var(--blue); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.report-explanation { max-width: 820px; color: var(--muted); font-size: 20px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.evidence-grid blockquote { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #f0f1eb; }
.evidence-grid blockquote span { color: var(--blue); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.evidence-grid blockquote p { margin: 18px 0 0; font-family: Georgia, serif; font-size: 20px; }
.driver-list { margin: 28px 0 0; padding-left: 22px; color: var(--muted); }
.driver-list li { margin: 8px 0; }
.action-section { color: white; background: var(--blue); border-color: var(--blue); }
.action-section .section-kicker { color: var(--lime); }
.reply-card { max-width: 900px; padding: 26px; border-radius: 18px; color: var(--ink); background: var(--white); }
.reply-card p { margin: 0 0 22px; white-space: pre-wrap; font-size: 18px; }
.report-conversion { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: center; padding: 54px; border-radius: 0 0 28px 28px; color: white; background: var(--ink); }
.report-conversion .eyebrow::before { background: var(--lime); }
.report-conversion h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.report-conversion p { color: rgba(255,255,255,.65); }
.conversion-action p { min-height: 18px; margin: 12px 0 0; color: rgba(255,255,255,.62); font-size: 12px; text-align: center; }
.report-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 2px; color: var(--muted); font-size: 12px; }
.report-footer p { max-width: 720px; }

/* Passkey account access */
.auth-page { min-height: 100vh; background: var(--ink); }
.auth-page .report-nav { background: var(--paper); }
.auth-shell { min-height: calc(100vh - 73px); padding: 70px 20px; display: grid; place-items: center; }
.auth-card { width: min(560px, 100%); padding: 48px; text-align: center; box-shadow: var(--shadow); }
.auth-card .eyebrow { justify-content: center; }
.auth-card h1 { max-width: none; margin: 22px 0; font-size: clamp(44px, 7vw, 68px); line-height: .95; }
.auth-card > p:not(.eyebrow):not(.status-message) { color: var(--muted); }
.auth-card .button { margin-top: 22px; }
.auth-icon { width: 70px; height: 70px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 22px; color: var(--lime); background: var(--blue); font-size: 38px; font-weight: 400; }
.auth-note { margin: 24px auto 0; max-width: 420px; font-size: 12px; }
.invite-summary { margin: 24px 0 0; padding: 16px; border-radius: 14px; background: #eef0e8; }
.invite-summary span, .invite-summary strong { display: block; }
.invite-summary span { font-weight: 800; }
.invite-summary strong { margin-top: 4px; color: var(--muted); font-size: 13px; }

/* Private request intake */
.intake-page { min-height: 100vh; background: var(--ink); }
.intake-shell { min-height: calc(100vh - 73px); padding: 64px 20px; display: grid; place-items: start center; }
.intake-card { width: min(680px, 100%); padding: 46px; box-shadow: var(--shadow); }
.intake-card h1 { max-width: none; margin: 18px 0; font-size: clamp(42px, 7vw, 64px); }
.intake-card h1 span { color: var(--blue); }
.intake-card .field { margin-top: 18px; }
.intake-card textarea { min-height: 170px; }
.intake-card .button { margin-top: 24px; }
.intake-intro, #intake-loading p { color: var(--muted); font-size: 17px; }
#intake-loading { padding: 40px 0; text-align: center; }
#intake-loading h1 { margin-top: 28px; }

/* Private client change approval */
.change-page { min-height: 100vh; background: var(--ink); }
.change-shell { min-height: calc(100vh - 73px); padding: 56px 20px; display: grid; place-items: start center; }
.change-card { width: min(780px, 100%); padding: 46px; box-shadow: var(--shadow); }
.change-card h1 { max-width: none; margin: 18px 0; font-size: clamp(42px, 7vw, 64px); }
.change-card h1 span { color: var(--blue); }
.change-intro { color: var(--muted); font-size: 17px; }
#change-loading { padding: 40px 0; text-align: center; }
#change-loading h1 { margin-top: 28px; }
.change-overview { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.change-overview > div { padding: 22px; background: #f1f2eb; }
.change-overview > div:last-child { color: var(--blue); background: var(--lime); }
.change-overview span, .change-detail > span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.change-overview strong { display: block; margin-top: 9px; font-size: 25px; }
.change-detail { padding: 24px 0; border-top: 1px solid var(--line); }
.change-detail h2 { margin: 9px 0; font-size: 30px; }
.change-detail p { margin-bottom: 0; white-space: pre-wrap; }
#change-response-form { margin-top: 22px; padding: 24px; border-radius: 16px; background: #eef0e8; }
#change-response-form fieldset { margin: 0; padding: 0; border: 0; }
#change-response-form legend { margin-bottom: 12px; font-weight: 850; }
.response-choice { padding: 14px; display: flex; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 12px; background: white; }
.response-choice + .response-choice { margin-top: 9px; }
.response-choice input { width: auto; margin-top: 4px; }
.response-choice span, .response-choice strong, .response-choice small { display: block; }
.response-choice small { margin-top: 3px; color: var(--muted); }
#change-response-form .field { margin-top: 16px; }
#change-response-form textarea { min-height: 90px; }
#change-response-form .button { margin-top: 20px; }
.change-recorded { margin-top: 24px; padding: 22px; border-radius: 14px; background: #dff7d2; }
.change-recorded strong { font-size: 22px; }
.change-recorded p { margin-bottom: 0; }

/* Authenticated workspace */
.workspace-page { min-height: 100vh; background: #ecece5; }
.workspace-nav { color: white; background: var(--ink); }
.workspace-account { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.workspace-account .text-button { color: var(--lime); }
.workspace-shell { padding: 54px 0 100px; }
.workspace-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.workspace-head h1 { max-width: 820px; font-size: clamp(48px, 7vw, 78px); }
.workspace-head > div > p:last-child { margin: 16px 0 0; color: var(--muted); }
.plan-chip { padding: 10px 14px; border-radius: 999px; color: #0b5e2a; background: #dff7d2; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.plan-chip.inactive { color: #842b22; background: #ffe1db; }
.workspace-plan-actions { display: grid; gap: 8px; justify-items: end; }
.workspace-plan-actions .status-message { max-width: 260px; margin: 2px 0 0; text-align: right; }
.workspace-lock { margin-bottom: 22px; border-color: #e0a33c; background: #fff3d6; }
.workspace-lock strong { font-size: 18px; }
.workspace-lock p { margin-bottom: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.metric-grid article { min-height: 150px; padding: 28px; border-right: 1px solid var(--line); }
.metric-grid article:last-child { border: 0; }
.metric-grid span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid strong { display: block; margin-top: 28px; font-size: 42px; letter-spacing: -.05em; }
.metric-grid .metric-value { background: var(--lime); }
.metric-grid .metric-value strong { color: var(--blue); }
.metric-grid .metric-confirmed { color: white; background: var(--ink); }
.metric-grid .metric-confirmed span { color: rgba(255,255,255,.62); }
.metric-grid .metric-confirmed strong { color: var(--lime); }
.workspace-inbox { margin-bottom: 22px; padding: 34px; }
.inbox-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.inbox-head h2 { margin: 8px 0; font-size: 32px; }
.inbox-head > div > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.intake-link-actions { display: grid; gap: 10px; justify-items: stretch; }
.intake-link-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.intake-link-output input { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f3f4ed; }
.intake-link-actions .status-message { margin: 0; font-size: 12px; }
.inbox-list { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.inbox-request { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr); gap: 28px; align-items: center; border-bottom: 1px solid var(--line); background: #f7f8f2; }
.inbox-request:last-child { border: 0; }
.inbox-request-copy strong, .inbox-request-copy span { display: block; }
.inbox-request-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.inbox-request-copy p { margin: 12px 0 0; white-space: pre-wrap; }
.inbox-analyse-form { display: grid; grid-template-columns: 1.4fr 70px 90px auto auto; gap: 9px; align-items: end; }
.inbox-analyse-form select, .inbox-analyse-form input { width: 100%; padding: 9px 10px; border: 1px solid #cfd2c8; border-radius: 9px; background: white; }
.inbox-analyse-form label { color: var(--muted); font-size: 11px; font-weight: 750; }
.inbox-analyse-form .field-prefix input { padding-left: 25px; }
.inbox-analyse-form .field-prefix span { top: 9px; left: 9px; }
.inbox-analyse-form .status-message { grid-column: 1 / -1; margin: 0; font-size: 11px; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.workspace-form { padding: 32px; }
.workspace-form h2 { margin: 8px 0; font-size: 32px; }
.workspace-form .field { margin-top: 16px; }
.workspace-form .button { margin-top: 22px; }
.workspace-textarea textarea { min-height: 180px; }
.workspace-team { margin-top: 22px; padding: 34px; }
.team-head { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.team-head h2 { margin: 8px 0; font-size: 32px; }
.team-head > div > p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.team-invite-form { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr auto; gap: 10px; align-items: end; }
.team-invite-form .field { margin: 0; }
.team-invite-form input, .team-invite-form select { width: 100%; padding: 10px 11px; border: 1px solid #cfd2c8; border-radius: 9px; background: white; }
.team-invite-form .button { white-space: nowrap; }
.team-invite-form .status-message { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.team-invite-output { margin-top: 24px; padding: 16px; border-radius: 14px; background: #eef0e8; }
.team-invite-output > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.team-invite-output > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.team-invite-output input { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.team-list { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.team-row { padding: 17px 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); background: #f7f8f2; }
.team-row:last-child { border-bottom: 0; }
.team-row.pending { background: #f0f1eb; }
.team-row > div:first-child strong, .team-row > div:first-child span { display: block; }
.team-row > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.team-role { padding: 6px 9px; border-radius: 999px; color: #176c31; background: #dff7d2; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.team-role.pending { color: var(--muted); background: #e1e3da; }
.team-row-actions { display: flex; gap: 14px; align-items: center; }
.workspace-result { margin-top: 22px; padding: 38px; display: grid; grid-template-columns: 1fr auto; gap: 28px 50px; border: 2px solid var(--blue); }
.workspace-result h2 { margin: 8px 0 10px; font-size: 42px; }
.workspace-result > div > p:last-child { color: var(--muted); }
.workspace-result-value { min-width: 220px; padding: 20px; border-radius: 16px; background: var(--lime); }
.workspace-result-value span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.workspace-result-value strong { display: block; margin-top: 12px; color: var(--blue); font-size: 40px; }
.workspace-result .reply-card { grid-column: 1 / -1; max-width: none; border: 1px solid var(--line); background: #f0f1eb; }
.workspace-scope-library { margin-top: 76px; }
.workspace-scope-library .section-head { margin-bottom: 26px; }
.workspace-scope-library .section-head h2 { font-size: 52px; }
.workspace-scope-library .section-head > p:last-child { max-width: 720px; color: var(--muted); }
.scope-library-list { display: grid; gap: 14px; }
.scope-library-item { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.scope-library-item.archived { background: #f1f2ec; }
.scope-library-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.scope-library-head strong, .scope-library-head span { display: block; }
.scope-library-head strong { font-size: 20px; }
.scope-library-head div span { margin-top: 4px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.scope-status { padding: 6px 9px; border-radius: 999px; color: #176c31; background: #dff7d2; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.scope-status.archived { color: var(--muted); background: #e1e3da; }
.scope-library-item > pre { max-height: 190px; margin: 20px 0 0; overflow: auto; white-space: pre-wrap; color: var(--muted); font: 14px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; }
.scope-library-actions { margin-top: 18px; display: flex; gap: 16px; align-items: start; }
.scope-revision { flex: 1; border: 0; }
.scope-revision:last-child { border-bottom: 0; }
.scope-revision summary { padding: 9px 0; color: var(--blue); font-size: 13px; }
.scope-revision-form { padding: 18px; border-radius: 14px; background: #eceee6; }
.scope-revision-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.scope-revision-form input, .scope-revision-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd2c8; border-radius: 10px; background: white; }
.scope-revision-form textarea { min-height: 170px; resize: vertical; }
.scope-revision-form > label { margin-top: 14px; }
.scope-revision-form > div:last-child { margin-top: 16px; display: flex; gap: 14px; align-items: center; }
.scope-revision-form .status-message { margin: 0; }
.workspace-history { margin-top: 90px; }
.workspace-history .section-head { margin-bottom: 28px; }
.workspace-history .section-head h2 { font-size: 52px; }
.workspace-history .section-head > p:last-child { max-width: 700px; color: var(--muted); }
.history-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.history-item { border-bottom: 1px solid var(--line); }
.history-item:last-child { border: 0; }
.history-row { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto 100px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.history-item .history-row { border-bottom: 0; }
.history-row div strong, .history-row div span { display: block; }
.history-row div span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.history-row > strong { text-align: right; font-size: 20px; }
.history-verdict { padding: 6px 9px; border-radius: 999px; background: #eceee6; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.history-verdict.likely_extra { color: #842b22; background: #ffe1db; }
.history-verdict.likely_in_scope { color: #176c31; background: #dff7d2; }
.decision-panel { border-top: 1px solid var(--line); background: #f5f6f0; }
.decision-panel summary { padding: 13px 24px; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 850; text-transform: capitalize; }
.decision-form { padding: 4px 24px 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.decision-form label { color: var(--muted); font-size: 12px; font-weight: 750; }
.decision-form select, .decision-form input, .decision-form textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #cfd2c8; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.decision-form .decision-note { grid-column: 1 / -1; }
.decision-form textarea { min-height: 80px; resize: vertical; }
.decision-form .field-prefix { margin-top: 7px; }
.decision-form .field-prefix input { margin-top: 0; padding-left: 34px; }
.decision-submit { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.decision-submit .status-message { margin: 0; }
.change-request-panel { border-top: 1px solid var(--line); background: #eef0e8; }
.change-request-panel summary { padding: 13px 24px; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 850; text-transform: capitalize; }
.change-request-form { padding: 4px 24px 24px; display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr); gap: 14px; }
.change-request-form label { color: var(--muted); font-size: 12px; font-weight: 750; }
.change-request-form input, .change-request-form textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #cfd2c8; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.change-request-form textarea { min-height: 100px; resize: vertical; }
.change-request-form > label:first-child { grid-column: 1 / -1; }
.change-request-form .change-summary-field { grid-column: 1 / -1; }
.change-request-form .field-prefix { margin-top: 7px; }
.change-request-form .field-prefix input { margin-top: 0; padding-left: 34px; }
.change-request-submit { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.change-request-submit .status-message { margin: 0; }
.change-link-output { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.change-link-output[hidden] { display: none; }
.change-request-outcome { padding: 18px 24px 24px; }
.change-request-outcome strong { font-size: 18px; }
.change-request-outcome p { margin: 6px 0 0; color: var(--muted); }
.change-request-outcome.accepted { background: #e6f8dc; }
.change-request-outcome.declined { background: #ffe9e4; }
.empty-copy { margin: 0; padding: 34px; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
  .hero-grid, .math-card, .pricing-card, .app-grid, .fit-grid, .audit-grid, .detector-grid, .calculator-shell, .change-order-shell, .scope-template-shell, .article-grid, .report-hero, .report-conversion, .workspace-grid, .workspace-result, .demo-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .product-shot { min-height: 480px; margin-top: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .step h3 { margin-top: 36px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-column: span 12 !important; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .detector-result { position: static; }
  .content-aside { position: static; }
  .confidence-card { max-width: 360px; }
  .workspace-result .reply-card { grid-column: auto; }
  .inbox-head, .inbox-request, .team-head { grid-template-columns: 1fr; }
  .scope-template-output { position: static; }
  .inbox-analyse-form { grid-template-columns: 1fr 80px 100px; }
  .inbox-analyse-form .button, .inbox-analyse-form .text-button { grid-row: 2; }
  .scope-library-actions { flex-direction: column; }
  .scope-revision { width: 100%; }
  .team-invite-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .nav-links a:not(.button) { display: none; }
  h1 { font-size: 52px; }
  .section { padding: 80px 0; }
  .proof-grid { grid-template-columns: 1fr; gap: 14px; }
  .shot-window { inset-inline: 0; }
  .float-note { right: 0; }
  .math-copy, .calculator, .price-main, .price-side, .review-head, .review-body { padding: 28px; }
  .footer-grid, .footer-bottom, .review-meta, .form-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .app-main { padding: 24px 14px; }
  .app-head { align-items: start; flex-direction: column; }
  .app-head h1 { font-size: 36px; }
  .signal-analysis { grid-template-columns: 1fr; }
  .risk-ring { width: 62px; height: 62px; }
  .audit-grid { gap: 38px; }
  .output-grid, .decision-list { grid-template-columns: 1fr; }
  .calculator-output { padding: 28px; }
  .tool-hero, .article-hero { padding-top: 64px; }
  .article-meta { flex-direction: column; gap: 5px; }
  .article-cta { padding: 28px; }
  .demo-shell { width: min(100% - 28px, 1160px); padding-top: 44px; gap: 34px; }
  .demo-copy h1 { font-size: 50px; }
  .demo-form-card { padding: 28px 22px; }
  .report-wrap { width: 100%; padding-top: 0; }
  .report-hero, .report-section, .report-conversion { padding: 34px 22px; border-radius: 0; }
  .report-stat-grid, .evidence-grid { grid-template-columns: 1fr; }
  .report-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-footer { padding-inline: 18px; align-items: start; flex-direction: column; }
  .private-label { font-size: 10px; }
  .auth-card { padding: 34px 22px; }
  .workspace-shell { width: min(100% - 28px, 1160px); padding-top: 34px; }
  .workspace-head { align-items: start; flex-direction: column; }
  .workspace-plan-actions { justify-items: start; }
  .workspace-plan-actions .status-message { text-align: left; }
  .intake-card { padding: 28px; }
  .change-order-summary, .change-order-email { padding: 28px 22px; }
  .scope-template-output > div:first-child { padding: 28px 22px; }
  .scope-template-actions { padding: 22px; grid-template-columns: 1fr; }
  .scope-template-actions .status-message { grid-column: auto; }
  .scope-library-item { padding: 22px; }
  .scope-library-head { flex-direction: column; }
  .change-order-summary dl div { grid-template-columns: 1fr; gap: 5px; }
  .workspace-inbox { padding: 24px; }
  .workspace-team { padding: 24px; }
  .intake-link-output, .inbox-analyse-form, .team-invite-form, .team-invite-output > div { grid-template-columns: 1fr; }
  .inbox-analyse-form .button, .inbox-analyse-form .text-button { grid-row: auto; }
  .inbox-analyse-form .status-message { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-grid article:last-child { border-bottom: 0; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-row > strong { grid-column: 2; grid-row: 1; }
  .history-verdict { grid-column: 1 / -1; justify-self: start; }
  .decision-form { grid-template-columns: 1fr; }
  .decision-form .decision-note, .decision-submit { grid-column: auto; }
  .software-workflow, .comparison-row { grid-template-columns: 1fr; }
  .software-workflow article:last-child { grid-column: auto; }
  .comparison-row > * { border-right: 0; }
  .change-overview, .change-request-form, .change-link-output { grid-template-columns: 1fr; }
  .change-request-form .change-summary-field, .change-request-submit, .change-link-output { grid-column: auto; }
  .team-invite-form .status-message { grid-column: auto; }
  .team-row { align-items: start; flex-direction: column; }
}

/* Workspace product UI refresh */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2317201c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  cursor: pointer;
}
select:disabled { cursor: not-allowed; opacity: .62; }
.workspace-nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.12); }
.workspace-nav .nav { width: min(1540px, calc(100% - 40px)); }
.workspace-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  align-items: start;
  transition: grid-template-columns .22s ease;
}
.workspace-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.workspace-content { min-width: 0; padding: 30px 40px 100px; }
.workspace-view-hidden { display: none !important; }
.workspace-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}
.workspace-sidebar-head { min-height: 40px; padding: 0 7px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.workspace-sidebar-head button { width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--ink); background: #f1f2eb; cursor: pointer; }
.workspace-side-nav { display: grid; gap: 6px; }
.workspace-side-nav a { min-height: 46px; padding: 10px 11px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.workspace-side-nav a > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d9ddd4; border-radius: 9px; color: #53625b; background: transparent; }
.workspace-side-nav .nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workspace-side-nav a strong { overflow: hidden; font-size: 13px; font-weight: 720; text-overflow: ellipsis; }
.workspace-side-nav a:hover { color: var(--ink); border-color: var(--line); background: #f4f5ef; }
.workspace-side-nav a:hover > span { color: var(--blue); border-color: #bec6ff; background: #edf0ff; }
.workspace-side-nav a.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 7px 18px rgba(23,32,28,.12); }
.workspace-side-nav a.active > span { color: var(--lime); border-color: var(--blue); background: var(--blue); }
.workspace-settings-nav { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.workspace-sidebar-note { margin-top: auto; padding: 14px; display: flex; gap: 11px; align-items: start; border-radius: 14px; color: white; background: var(--ink); white-space: nowrap; overflow: hidden; }
.workspace-sidebar-note .live-dot { margin-top: 5px; flex: 0 0 9px; }
.workspace-sidebar-note p { margin: 0; }
.workspace-sidebar-note strong, .workspace-sidebar-note small { display: block; }
.workspace-sidebar-note strong { font-size: 12px; }
.workspace-sidebar-note small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 10px; }
.sidebar-collapsed .workspace-sidebar-head > span, .sidebar-collapsed .workspace-side-nav a strong, .sidebar-collapsed .workspace-sidebar-note p { display: none; }
.sidebar-collapsed .workspace-sidebar-head { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .workspace-sidebar-head button { transform: rotate(180deg); }
.sidebar-collapsed .workspace-side-nav a { padding-inline: 9px; grid-template-columns: 26px; justify-content: center; }
.sidebar-collapsed .workspace-sidebar-note { padding-inline: 12px; justify-content: center; }
.workspace-head { scroll-margin-top: 96px; }
.workspace-head h1 { font-size: clamp(46px, 5.3vw, 72px); }
.workspace-onboarding { margin-bottom: 22px; padding: 28px; border-radius: 22px; background: var(--ink); color: white; box-shadow: 0 12px 34px rgba(23,32,28,.13); }
.onboarding-head { display: flex; gap: 28px; align-items: start; justify-content: space-between; }
.onboarding-head .section-kicker { color: var(--lime); }
.onboarding-head h2 { margin: 7px 0 5px; max-width: 720px; color: white; font-size: clamp(28px, 3.4vw, 44px); }
.onboarding-head p { margin: 0; color: rgba(255,255,255,.62); }
.onboarding-progress { min-width: 92px; text-align: right; }
.onboarding-progress strong, .onboarding-progress span { display: block; }
.onboarding-progress strong { color: var(--lime); font-size: 31px; }
.onboarding-progress span { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.onboarding-progress-track { height: 6px; margin: 24px 0; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.13); }
.onboarding-progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.onboarding-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; overflow: hidden; }
.onboarding-steps li { min-width: 0; padding: 18px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-content: start; border-right: 1px solid rgba(255,255,255,.13); }
.onboarding-steps li:last-child { border-right: 0; }
.onboarding-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 12px; font-weight: 900; }
.onboarding-steps li div { min-width: 0; }
.onboarding-steps li strong { display: block; color: white; font-size: 13px; }
.onboarding-steps li p { margin: 5px 0 0; color: rgba(255,255,255,.57); font-size: 11px; line-height: 1.4; }
.onboarding-steps li a { grid-column: 2; margin-top: 12px; color: var(--lime); font-size: 11px; font-weight: 850; text-decoration: none; }
.onboarding-steps li.complete { background: rgba(210,255,67,.08); }
.onboarding-steps li.complete > span { color: var(--lime); background: var(--blue); }
.onboarding-steps li.complete a { color: rgba(255,255,255,.45); pointer-events: none; }
.workspace-clients, .workspace-inbox, .workspace-grid, .workspace-team, .workspace-scope-library, .workspace-history { scroll-margin-top: 96px; }
.workspace-inbox, .workspace-form, .workspace-team, .scope-library-item, .history-list { border-radius: 22px; }
.metric-grid { border-radius: 22px; box-shadow: 0 10px 34px rgba(23,32,28,.06); }
.workspace-clients { margin-bottom: 22px; }
.client-section-head { margin-bottom: 18px; display: flex; gap: 24px; align-items: end; justify-content: space-between; }
.client-section-head > div { max-width: 760px; }
.client-section-head h2 { margin: 8px 0 7px; font-size: clamp(30px, 4vw, 48px); }
.client-section-head p:last-child { margin: 0; color: var(--muted); }
.client-search { width: min(300px, 100%); flex: 0 0 auto; }
.client-search span { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.client-search input { width: 100%; min-height: 46px; padding: 11px 15px; border: 1px solid #c9ccc1; border-radius: 12px; color: var(--ink); background: var(--white); font: inherit; }
.client-portfolio-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.client-list, .client-detail { border-radius: 22px; }
.client-list { max-height: 680px; padding: 8px; display: grid; gap: 6px; overflow-y: auto; overscroll-behavior: contain; }
.client-card { width: 100%; min-width: 0; padding: 15px; border: 1px solid transparent; border-radius: 15px; display: flex; gap: 14px; align-items: center; justify-content: space-between; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.client-card:hover { border-color: var(--line); background: #f4f5ef; transform: translateY(-1px); }
.client-card.selected { border-color: var(--ink); background: var(--lime); }
.client-card > span:first-child { min-width: 0; }
.client-card strong, .client-card small { display: block; }
.client-card > span:first-child strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.client-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.client-card-value { flex: 0 0 auto; text-align: right; }
.client-card-value strong { color: var(--blue); font-size: 17px; }
.client-detail { min-width: 0; overflow: hidden; }
.client-detail-head { padding: 26px 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.client-detail-head h3 { margin: 4px 0 5px; font-size: clamp(28px, 3vw, 40px); }
.client-detail-head p { margin: 0; color: var(--muted); }
.client-detail-head .section-kicker { color: var(--blue); }
.client-open-value { min-width: 180px; padding: 15px 17px; border-radius: 14px; color: var(--ink); background: var(--lime); }
.client-open-value span, .client-open-value strong { display: block; }
.client-open-value span { font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.client-open-value strong { margin-top: 7px; color: var(--blue); font-size: 29px; letter-spacing: -.04em; }
.client-detail-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.client-detail-metrics > div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.client-detail-metrics > div:last-child { border: 0; }
.client-detail-metrics span, .client-detail-metrics strong { display: block; }
.client-detail-metrics span { min-height: 28px; color: var(--muted); font-size: 9px; font-weight: 820; text-transform: uppercase; letter-spacing: .06em; }
.client-detail-metrics strong { margin-top: 9px; font-size: 23px; }
.client-request-history { padding: 24px 28px 28px; }
.client-request-history h4 { margin: 0 0 12px; font-size: 15px; }
.client-request-row { padding: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border-top: 1px solid var(--line); }
.client-request-row > div { min-width: 0; }
.client-request-row > div strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.client-request-row span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.client-request-value { color: var(--blue); font-size: 17px; }
.empty-copy.compact { padding: 22px 0 4px; text-align: left; }
.intake-link-actions { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #f0f1eb; }
.intake-link-output { padding: 8px 8px 8px 13px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; border: 1px solid #cfd2c8; border-radius: 13px; background: var(--white); }
.intake-link-output > div { min-width: 0; }
.intake-link-output > div > span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.intake-link-output input { width: 100%; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; text-overflow: ellipsis; }
.copy-action { min-height: 36px; padding: 8px 12px; border: 1px solid var(--blue); border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; color: var(--blue); background: white; font: inherit; font-size: 12px; font-weight: 820; white-space: nowrap; cursor: pointer; transition: color .16s ease, background .16s ease, transform .16s ease; }
.copy-action:hover { color: white; background: var(--blue); transform: translateY(-1px); }
.copy-action.compact { min-height: 30px; padding: 5px 10px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.request-inbox { min-height: 560px; margin-top: 28px; display: grid; grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.inbox-list-pane { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f4f5ef; }
.inbox-toolbar { padding: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 1px solid var(--line); }
.inbox-toolbar .inbox-search { grid-column: 1 / -1; }
.inbox-toolbar input, .inbox-toolbar select { width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid #c9ccc1; border-radius: 11px; color: var(--ink); background-color: var(--white); font: inherit; font-size: 12px; }
.inbox-list-summary { padding: 10px 15px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
.inbox-list-summary strong { color: var(--ink); }
.request-inbox .inbox-list { min-height: 0; max-height: 610px; margin: 0; border: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
.inbox-request-row { width: 100%; min-width: 0; padding: 15px 16px; display: grid; gap: 7px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.inbox-request-row:hover { background: var(--white); }
.inbox-request-row.selected { position: relative; background: var(--white); box-shadow: inset 4px 0 0 var(--blue); }
.inbox-request-row-head { min-width: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.inbox-request-row-head strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.inbox-request-row-head time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.inbox-request-excerpt { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.inbox-request-meta, .inbox-source-chip { width: max-content; color: var(--blue); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.inbox-filter-empty { min-height: 260px; padding: 32px 20px; display: grid; place-content: center; gap: 5px; color: var(--muted); text-align: center; }
.inbox-filter-empty strong { color: var(--ink); font-size: 14px; }
.inbox-filter-empty span { font-size: 11px; }
.inbox-load-more { min-height: 42px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); color: var(--blue); background: var(--white); font: inherit; font-size: 11px; font-weight: 820; cursor: pointer; }
.inbox-load-more:hover { background: #edf0ff; }
.inbox-load-more:disabled { color: var(--muted); cursor: wait; }
.inbox-preview { min-width: 0; min-height: 560px; display: flex; flex-direction: column; background: var(--white); }
.inbox-preview-empty { margin: auto; max-width: 340px; padding: 48px 28px; color: var(--muted); text-align: center; }
.inbox-preview-empty > span { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #edf0ff; font-size: 22px; }
.inbox-preview-empty h3 { margin: 0; color: var(--ink); font-size: 20px; }
.inbox-preview-empty p { margin: 8px 0 0; font-size: 12px; }
.inbox-preview-head { padding: 24px 26px 20px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.inbox-preview-head h3 { margin: 6px 0 5px; font-size: clamp(24px, 3vw, 34px); }
.inbox-preview-head p { margin: 0; color: var(--muted); font-size: 11px; }
.inbox-preview-message { min-height: 190px; padding: 25px 26px; border-bottom: 1px solid var(--line); }
.inbox-preview-message > span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.inbox-preview-message p { max-height: 310px; margin: 12px 0 0; overflow-y: auto; color: var(--ink); font-size: 14px; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-inbox .inbox-analyse-form { margin-top: auto; padding: 22px 26px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; border-top: 0; background: #f7f8f2; }
.request-inbox .inbox-analyse-form label { display: grid; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 820; text-transform: uppercase; letter-spacing: .04em; }
.request-inbox .inbox-analyse-form select, .request-inbox .inbox-analyse-form input { min-height: 43px; padding: 10px 12px; border-radius: 11px; font-size: 13px; }
.inbox-estimate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-inbox .inbox-analyse-form .field-prefix span { top: 12px; left: 12px; }
.request-inbox .inbox-analyse-form .field-prefix input { padding-left: 29px; }
.inbox-preview-actions { display: flex; align-items: center; gap: 14px; }
.inbox-preview-actions .button { min-height: 44px; }
.inbox-preview-actions .status-message { margin: 0; font-size: 11px; }
.team-invite-output { border: 1px solid var(--line); }
.team-invite-output > div { padding: 7px 7px 7px 12px; border: 1px solid #cfd2c8; border-radius: 13px; background: var(--white); }
.team-invite-output input { padding: 0; border: 0; background: transparent; }
.change-link-output { padding: 8px 8px 8px 13px; border: 1px solid #cfd2c8; border-radius: 13px; background: var(--white); }
.change-link-output input { margin: 0; padding: 0; border: 0; background: transparent; }
.workspace-result { padding: 0; display: block; overflow: hidden; scroll-margin-top: 96px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.workspace-analysis-head { padding: 30px 32px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.workspace-confidence { width: 84px; height: 84px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--blue); }
.workspace-confidence strong { font-size: 31px; line-height: 1; }
.workspace-confidence span { margin-top: 3px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.workspace-analysis-head .section-kicker { margin: 8px 0 0; }
.workspace-analysis-head h2 { margin: 4px 0 0; font-size: clamp(30px, 4vw, 44px); }
.workspace-result-value { min-width: 0; margin: 0 32px; padding: 19px 21px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-radius: 14px; }
.workspace-result-value strong { margin: 0; font-size: 34px; }
.workspace-result-reasons, .workspace-result-action { padding: 26px 32px 0; }
.workspace-result-reasons h3, .workspace-result-action h3 { margin: 0 0 9px; font-size: 15px; }
.workspace-result-reasons > p, .workspace-result-action p { margin: 0; color: var(--muted); }
.workspace-result-reasons ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.workspace-result-reasons li { margin: 7px 0; }
.workspace-result-draft { margin: 26px 32px 32px; }
.workspace-result-draft > div { align-items: center; }
.workspace-result-draft p { font-size: 16px; line-height: 1.5; }
.workspace-result[data-verdict="likely_in_scope"] .workspace-confidence { background: #176c31; }
.workspace-result[data-verdict="needs_review"] .workspace-confidence { color: var(--ink); background: var(--lime); }
.workspace-result[data-verdict="likely_in_scope"] .tag { color: #176c31; background: #dff7d2; }
.workspace-result[data-verdict="needs_review"] .tag { color: #6a5015; background: #fff0b9; }
.workspace-view-head { min-height: 92px; margin: 0 0 18px; display: flex; gap: 24px; align-items: end; justify-content: space-between; }
.workspace-view-head > div { max-width: 760px; }
.workspace-view-head .eyebrow { margin: 0; }
.workspace-view-head h1, .workspace-view-head h2 { margin: 7px 0 5px; max-width: 820px; font-size: clamp(38px, 4vw, 50px); line-height: 1; letter-spacing: -.04em; }
.workspace-view-head > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.workspace-head { align-items: end; margin-bottom: 18px; }
.workspace-head h1 { font-size: clamp(38px, 4vw, 50px); }
.workspace-head > div > p:last-child { margin: 0; }
.client-section-head { margin-bottom: 18px; align-items: end; }
.client-section-head h2 { font-size: clamp(38px, 4vw, 50px); }
.workspace-scope-library, .workspace-history, .workspace-team { margin-top: 0; padding: 0; }
.workspace-grid-head { grid-column: 1 / -1; }
.workspace-inbox { margin: 0; padding: 0; }
.inbox-surface { padding: 0; overflow: hidden; border-radius: 20px; }
.inbox-command-bar { min-height: 52px; padding: 8px 12px 8px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #f7f8f2; }
.inbox-command-bar > div:first-child strong, .inbox-command-bar > div:first-child span { display: block; }
.inbox-command-bar > div:first-child strong { font-size: 13px; }
.inbox-command-bar > div:first-child span { margin-top: 1px; color: var(--muted); font-size: 10px; }
.inbox-command-bar .intake-link-actions { padding: 0; display: flex; gap: 8px; align-items: center; border: 0; background: transparent; }
.inbox-command-bar .intake-link-actions > .button { min-width: 158px; min-height: 36px; padding-block: 7px; }
.inbox-command-bar .intake-link-output { min-width: 0; padding: 0; border: 0; background: transparent; }
.inbox-command-bar .intake-link-output > div { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
.inbox-command-bar .intake-link-output .copy-action { min-height: 36px; padding: 7px 11px; }
.inbox-command-bar .status-message:empty, .inbox-command-bar .status-message.success-text { display: none; }
.request-inbox { min-height: 560px; margin-top: 0; border: 0; border-radius: 0; }
.team-surface { padding: 30px; }
.settings-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card { min-height: 220px; padding: 28px; }
.settings-card > span { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.settings-card h3 { margin: 12px 0 8px; font-size: 30px; }
.settings-card > p { color: var(--muted); }
.settings-card .plan-chip { width: max-content; margin-top: 16px; }
.settings-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.field input, .field textarea, .field select, .inbox-analyse-form input, .inbox-analyse-form select, .team-invite-form input, .team-invite-form select, .decision-form input, .decision-form textarea, .decision-form select, .change-request-form input, .change-request-form textarea, .scope-revision-form input, .scope-revision-form textarea {
  border-color: #c9ccc1;
  background-color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.field input:hover, .field textarea:hover, .field select:hover, .inbox-analyse-form input:hover, .inbox-analyse-form select:hover, .team-invite-form input:hover, .team-invite-form select:hover, .decision-form input:hover, .decision-form textarea:hover, .decision-form select:hover { border-color: #9fa69b; }

@media (max-width: 1100px) {
  .workspace-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
  .workspace-content { padding-inline: 26px; }
  .inbox-head { grid-template-columns: 1fr; }
  .request-inbox { grid-template-columns: minmax(280px, 34%) minmax(0, 1fr); }
  .onboarding-steps { grid-template-columns: 1fr 1fr; }
  .onboarding-steps li:nth-child(2) { border-right: 0; }
  .onboarding-steps li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
}

@media (max-width: 1050px) {
  .detector-grid { grid-template-columns: 1fr; }
  .detector-result { position: static; }
}

@media (max-width: 860px) {
  .workspace-shell, .workspace-shell.sidebar-collapsed { width: 100%; display: block; }
  .workspace-sidebar { top: 72px; z-index: 20; width: 100%; height: auto; padding: 9px 14px; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-sidebar-head, .workspace-sidebar-note { display: none; }
  .workspace-side-nav { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .workspace-settings-nav { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .workspace-side-nav::-webkit-scrollbar { display: none; }
  .workspace-side-nav a, .sidebar-collapsed .workspace-side-nav a { min-width: max-content; min-height: 40px; padding: 7px 11px; display: flex; }
  .workspace-side-nav a strong, .sidebar-collapsed .workspace-side-nav a strong { display: block; font-size: 12px; }
  .workspace-side-nav a > span { width: 24px; height: 24px; }
  .workspace-content { padding: 32px 20px 80px; }
  .workspace-view-head { min-height: 0; align-items: stretch; flex-direction: column; }
  .inbox-command-bar { align-items: stretch; flex-direction: column; }
  .inbox-command-bar .intake-link-actions { align-items: stretch; flex-direction: column; }
  .inbox-command-bar .intake-link-output { min-width: 0; }
  .workspace-head, .workspace-clients, .workspace-inbox, .workspace-grid, .workspace-team, .workspace-scope-library, .workspace-history, .workspace-result { scroll-margin-top: 146px; }
  .client-section-head { align-items: stretch; flex-direction: column; }
  .client-search { width: 100%; }
  .client-portfolio-layout { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .request-inbox { min-height: 0; grid-template-columns: 1fr; }
  .inbox-list-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .request-inbox .inbox-list { max-height: 330px; }
  .inbox-preview { min-height: 500px; }
  .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-onboarding { padding: 24px; }
  .workspace-analysis-head { padding: 25px 24px 18px; }
  .workspace-result-value { margin-inline: 24px; }
  .workspace-result-reasons, .workspace-result-action { padding-inline: 24px; }
  .workspace-result-draft { margin-inline: 24px; }
}

@media (max-width: 620px) {
  .workspace-nav .nav { width: min(100% - 28px, 1540px); }
  .workspace-account #workspace-nav-name { display: none; }
  .workspace-content { padding: 28px 14px 70px; }
  .workspace-head h1 { font-size: 46px; }
  .workspace-analysis-head { grid-template-columns: 1fr; }
  .workspace-confidence { width: 70px; height: 70px; }
  .workspace-result-value { align-items: start; flex-direction: column; }
  .workspace-result-value strong { font-size: 31px; }
  .intake-link-output, .team-invite-output > div, .change-link-output { grid-template-columns: 1fr; }
  .intake-link-output .copy-action, .team-invite-output .copy-action, .change-link-output .copy-action { width: 100%; }
  .workspace-result-draft { margin: 22px 18px 24px; }
  .workspace-result-reasons, .workspace-result-action { padding-inline: 18px; }
  .workspace-result-value { margin-inline: 18px; }
  .detector-main { width: calc(100% - 28px); padding: 24px 0 48px; }
  .detector-form, .detector-result { padding: 22px; }
  .onboarding-head { flex-direction: column; }
  .onboarding-progress { text-align: left; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .onboarding-steps li, .onboarding-steps li:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .onboarding-steps li:last-child { border-bottom: 0; }
  .client-list { max-height: 460px; grid-template-columns: 1fr; }
  .client-detail-head { padding: 22px; align-items: stretch; flex-direction: column; }
  .client-open-value { min-width: 0; }
  .client-detail-metrics { grid-template-columns: 1fr 1fr; }
  .client-detail-metrics > div { border-bottom: 1px solid var(--line); }
  .client-detail-metrics > div:nth-child(2) { border-right: 0; }
  .client-detail-metrics > div:nth-child(n+3) { border-bottom: 0; }
  .client-request-history { padding: 22px; }
  .workspace-inbox { padding: 0; }
  .inbox-toolbar { grid-template-columns: 1fr; }
  .inbox-preview-head { padding: 20px; }
  .inbox-preview-message { padding: 22px 20px; }
  .request-inbox .inbox-analyse-form { padding: 20px; }
  .inbox-estimate-fields { grid-template-columns: 1fr; }
  .inbox-preview-actions { align-items: stretch; flex-direction: column; }
  .inbox-preview-actions .button { width: 100%; }
}

@media print {
  .review-nav, .approval-form, .site-header, .report-nav, .report-conversion, .report-footer button { display: none !important; }
  .review-page { padding: 0; }
  .review-card { box-shadow: none; border: 0; }
  .report-wrap { width: 100%; padding: 0; }
  .report-hero { border-radius: 0; }
}
