/* SteadyDue CVI web standard 1.0. Shared by production, localhost, and sandbox. */
:root {
  --brand-petrol: #173c3b;
  --brand-copper: #b65332;
  --surface-paper: #f5f1e8;
  --surface-white: #ffffff;
  --text-secondary: #586763;
  --border-subtle: #d8ddd5;
  --ink-strong: var(--brand-petrol);
  --ink: var(--brand-petrol);
  --muted: var(--text-secondary);
  --ink-muted: var(--text-secondary);
  --surface: var(--surface-paper);
  --panel: var(--surface-white);
  --panel-alt: var(--surface-paper);
  --line: var(--border-subtle);
  --navy: var(--brand-petrol);
  --slate: var(--text-secondary);
  --teal: var(--brand-petrol);
  --teal-soft: #eaf1ed;
  --amber: #805a17;
  --rose: #9b3939;
  --shadow: none;
  --shadow-soft: none;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --category-1: #173c3b;
  --category-2: #b65332;
  --category-3: #477da5;
  --category-4: #b18a32;
  --category-5: #806487;
  --category-6: #73834e;
  --sequential-0: #eaf1ed;
  --sequential-20: #c3d9d1;
  --sequential-40: #91b8ac;
  --sequential-60: #609587;
  --sequential-80: #35685f;
  --sequential-100: #173c3b;
}

body { background: var(--surface-paper); line-height: 1.5; }
body::before { content: none; }
body, button, input, select, textarea, code,
.brandmark, .hero-copy h1, .section-heading h2, .metric-card h2,
.feature-card h3, .form-card h3, .result-card h3, .pricing-card h3,
.pricing-support-card h3, .workspace-summary-card strong,
.workspace-card-header h3, .workspace-empty-state strong, .profile-card strong {
  font-family: "IBM Plex Sans", Arial, sans-serif;
}
h1, h2, h3, .workspace-summary-card strong { font-weight: 600; }
.hero-copy h1 { letter-spacing: -0.035em; line-height: 1.08; }
.brandmark { font-weight: 600; letter-spacing: -0.025em; font-size: 24px; }
.brandmark-dot { display: none; }
.site-header {
  border: 0; border-bottom: 3px solid var(--brand-petrol);
  border-radius: 0; background: var(--surface-paper); backdrop-filter: none;
  box-shadow: none; padding: 16px 0; position: relative; top: 0;
}
.site-header::after {
  content: ""; position: absolute; right: 0; bottom: -3px;
  width: 8%; height: 3px; background: var(--brand-copper);
}
.top-nav a { border-radius: 6px; }
.top-nav a:hover { background: var(--teal-soft); }
.hero, .product-section, .pricing-section, .connect-section, .launch-section,
.workspace-section { background: var(--surface-white); backdrop-filter: none; box-shadow: none; }
.hero { background: var(--surface-paper); border: 0; padding: 40px 0; }
.accent-card { position: relative; background: var(--brand-petrol); padding-top: 112px; }
.accent-card h2 { overflow-wrap: anywhere; }
.accent-card::after,
.workspace-section::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 32px;
  width: 56px;
  height: 88px;
  background: var(--brand-copper);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 62% 100%, 0 100%);
  pointer-events: none;
}
.pricing-card, .feature-card, .muted-card, .profile-card, .spotlight-card,
.pricing-rules-card, .workspace-detail-panel, .workspace-detail-card {
  background: var(--surface-white);
}
.pricing-card--custom { background: var(--surface-paper); }
.metric-card, .feature-card, .pricing-card, .ops-card { box-shadow: none; }
.eyebrow, .metric-label, .status-label { letter-spacing: 0.08em; }
.primary-btn, .secondary-btn, .workspace-chip, .status-badge,
.workspace-limit-control select, .workspace-date-control select,
.field input, .field select, .field textarea, .icon-btn { border-radius: 6px; }
.primary-btn { background: var(--brand-petrol); color: white; box-shadow: none; }
.primary-btn:hover { background: #244f4b; transform: none; }
.secondary-btn { background: white; border: 1px solid var(--text-secondary); }
.secondary-btn:hover { background: var(--surface-paper); transform: none; }
.workspace-chip { background: white; border-color: var(--text-secondary); }
.workspace-selector, .workspace-filters { mask-image: none; -webkit-mask-image: none; padding: 4px; }
.workspace-chip:hover { background: var(--teal-soft); transform: none; }
.workspace-chip.is-active { background: var(--brand-petrol); border-color: var(--brand-petrol); color: white; }
.workspace-summary-card:hover { transform: none; border-color: var(--brand-petrol); }
.workspace-summary-card.is-selected { border-color: var(--brand-petrol); box-shadow: inset 0 3px var(--brand-petrol); }
.workspace-summary-card.is-loading { background: var(--teal-soft); }
.workspace-section { position: relative; border-top: 3px solid var(--brand-petrol); }
.workspace-section::after { top: -3px; }
.workspace-section-header { padding-right: 88px; min-height: 72px; }
.workspace-table { font-size: 14px; font-variant-numeric: tabular-nums; }
.workspace-summary-card strong, .pricing-card h3 { font-variant-numeric: tabular-nums; }
.workspace-table th, .workspace-detail-definition-list dt, .workspace-detail-card-meta {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500;
}
.workspace-table th, .workspace-table td, .workspace-detail-card, .workspace-detail-panel {
  border-color: var(--border-subtle);
}
.workspace-table-row--clickable:hover td { background: var(--surface-paper); }
.workspace-table-row--clickable.is-selected td { background: var(--teal-soft); }
.field input, .field select, .field textarea,
.workspace-date-control select, .workspace-limit-control select {
  border-color: var(--text-secondary); background: white; accent-color: var(--brand-petrol);
}
input[type="checkbox"] { accent-color: var(--brand-petrol); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-petrol); box-shadow: none; transform: none;
  outline: 3px solid var(--brand-petrol); outline-offset: 3px;
}
body :focus-visible { outline: 3px solid var(--brand-petrol); outline-offset: 3px; }
.status-ok, .status-icon--ok { color: #276449; background: #eaf3ec; }
.status-pending, .status-icon--warning { color: #805a17; background: #fbf0d7; }
.status-error, .status-icon--danger { color: #9b3939; background: #f9ece8; }
.status-icon--muted { color: var(--text-secondary); background: var(--surface-paper); }
.field-help.is-success { color: #276449; }
.field-help.is-error { color: #9b3939; }
.field-help.is-pending { color: var(--text-secondary); }
.workspace-detail-panel--support { background: #fbf0d7; border-color: #805a17; }
.workspace-loading-indicator { background: var(--surface-paper); border-color: var(--border-subtle); border-radius: 6px; }
.workspace-loading-spinner { border-color: var(--border-subtle); border-top-color: var(--brand-petrol); }
.workspace-detail-backdrop, .modal-overlay { background: rgb(23 60 59 / 45%); backdrop-filter: none; }
.workspace-detail-drawer, .modal-dialog {
  background: white; border-radius: 12px; box-shadow: 0 16px 48px rgb(23 60 59 / 18%);
}
.workspace-detail-panel, .workspace-detail-card, .profile-card { border-radius: 8px; }
.demo-home-link { display: none; }
body.proof-demo-mode .demo-home-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--brand-petrol); font-size: 14px; font-weight: 500;
  text-underline-offset: 4px;
}
.summary-output { background: var(--brand-petrol); color: white; }
.result-links a, .workspace-detail-card-links a { color: var(--brand-petrol); text-decoration: underline; }
code { border-radius: 4px; background: var(--teal-soft); }
/* Homepage: a clear opening statement, one illustrative ledger, open editorial sections. */
.cvi-home-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 64px 0 72px; }
.cvi-home-hero .hero-copy h1 { font-size: clamp(36px, 4vw, 56px); max-width: none; line-height: 1.14; letter-spacing: -0.04em; margin-bottom: 24px; }
.cvi-home-hero h1 span { display: block; }
.cvi-home-hero .hero-lede { max-width: 440px; font-size: 19px; line-height: 1.6; }
.cvi-home-hero .hero-actions { align-items: center; gap: 16px 24px; margin-top: 32px; }
.cvi-home-hero .primary-btn { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.cvi-text-link { color: var(--brand-petrol); text-underline-offset: 5px; padding: 12px 0; }
.cvi-demo-note { font-size: 13px; color: var(--text-secondary); margin: 16px 0 0; }
.cvi-ledger { position: relative; padding: 32px; background: white; border: 1px solid var(--border-subtle); border-top: 3px solid var(--brand-petrol); border-radius: 8px; }
.cvi-ledger::after { content: ""; position: absolute; top: -3px; right: 28px; width: 56px; height: 88px; background: var(--brand-copper); clip-path: polygon(0 0,100% 0,100% 76%,62% 100%,0 100%); pointer-events: none; }
.cvi-ledger-heading { padding-right: 64px; }
.cvi-ledger-heading h2 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.025em; }
.cvi-ledger-heading > p:last-child { font-size: 13px; color: var(--text-secondary); margin: 0; }
.cvi-ledger-total { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--brand-petrol); display: grid; gap: 4px; }
.cvi-ledger-total > span { font-size: 13px; color: var(--text-secondary); }
.cvi-ledger-total strong { font-size: 40px; line-height: 1.2; font-weight: 500; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cvi-ledger-total strong span { font-size: 16px; letter-spacing: 0; }
.cvi-ledger-rows { list-style: none; padding: 0; margin: 0; }
.cvi-ledger-rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.cvi-ledger-rows li > div { display: grid; gap: 4px; }
.cvi-invoice-number { font-size: 14px; font-weight: 500; }
.cvi-ledger-status { font-size: 12px; color: var(--text-secondary); }
.cvi-ledger-overdue { color: #9b3939; }
.cvi-ledger-rows strong { font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cvi-ledger-rows strong span { font-size: 12px; color: var(--text-secondary); }
.cvi-ledger-link { display: flex; justify-content: space-between; gap: 16px; color: var(--brand-petrol); font-size: 14px; font-weight: 500; padding: 20px 0 8px; text-underline-offset: 4px; }
.cvi-ledger-caption { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.product-section, .pricing-section, .connect-section, .launch-section { border: 0; border-top: 1px solid var(--text-secondary); border-radius: 0; padding: 40px 0; background: transparent; margin-top: 0; }
.cvi-workflow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; padding: 48px 0 64px; }
.cvi-workflow .section-heading { align-content: start; }
.cvi-workflow h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.025em; }
.cvi-workflow-steps { list-style: none; margin: 0; padding: 0; }
.cvi-workflow-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-subtle); }
.cvi-workflow-steps li:first-child { padding-top: 0; }
.cvi-step-number { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-secondary); padding-top: 3px; }
.cvi-workflow-steps h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.cvi-workflow-steps p { margin: 0; color: var(--text-secondary); line-height: 1.6; max-width: 480px; }
.pricing-card, .pricing-card--custom, .pricing-support-card, .pricing-rules-card { border: 0; border-radius: 0; background: transparent; padding: 24px 0; }
.pricing-grid { gap: 32px; }
.pricing-card { border-top: 2px solid var(--brand-petrol); }
.pricing-support-grid { border-top: 1px solid var(--border-subtle); gap: 40px; }
.pricing-rules-card { border-top: 1px solid var(--border-subtle); }
@media (max-width: 1080px) {
  .auth-layout, .compact-launch-grid { grid-template-columns: minmax(0, 1fr); }
  .cvi-home-hero { grid-template-columns: 1fr; gap: 40px; }
  .cvi-home-hero .hero-copy h1 { font-size: clamp(36px, 6vw, 56px); }
  .cvi-ledger { max-width: 640px; width: 100%; }
  .cvi-workflow { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .cvi-home-hero { padding: 40px 0; }
  .cvi-home-hero .hero-copy h1 { font-size: clamp(29px, 8.2vw, 44px); letter-spacing: -0.04em; }
  .cvi-home-hero .hero-lede { font-size: 17px; }
  .cvi-ledger { padding: 24px 20px; }
  .cvi-ledger::after { width: 40px; height: 64px; right: 20px; }
  .cvi-ledger-heading { padding-right: 48px; }
  .cvi-ledger-heading h2 { font-size: 25px; }
  .cvi-ledger-rows li { gap: 8px; }
  .cvi-ledger-rows strong { font-size: 14px; }
  .cvi-workflow h2 { font-size: 28px; }
  .cvi-workflow-steps li { gap: 12px; grid-template-columns: 28px 1fr; }
}




@media (max-width: 720px) {
  .accent-card::after, .workspace-section::after { width: 40px; height: 64px; right: 20px; }
  .accent-card { padding-top: 88px; }
  .workspace-section-header { padding-right: 52px; min-height: 56px; }
  .site-shell, body.workspace-only-mode .site-shell { width: calc(100% - 32px); }
  .workspace-table tbody tr { background: white; border-color: var(--border-subtle); border-radius: 8px; }
  .workspace-table td::before { text-transform: none; letter-spacing: 0; font-size: 12px; }
  .hero { padding: 24px 0; }
  
  
}
