:root {
  --navy: #0f172a;
  --slate: #1e293b;
  --muted: #475569;
  --border: #cbd5e1;
  --border-soft: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --emerald-bg: #d1fae5;
  --emerald-fg: #065f46;
  --amber-bg: #fef3c7;
  --amber-fg: #92400e;
  --red-bg: #fee2e2;
  --red-fg: #991b1b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--navy); background: var(--white); line-height: 1.5; font-size: 15px; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border-soft); backdrop-filter: blur(6px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.brand { font-weight: 800; font-size: 18px; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; }
.brand-sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--blue); }
.hero { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); color: var(--white); padding: 48px 0 42px; }
.hero-inner { max-width: 880px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(27px, 3.8vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.hero-sub { margin: 0 0 22px; font-size: 16.5px; color: #cbd5e1; max-width: 780px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.trust-strip { margin: 0; font-size: 13px; color: #94a3b8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: 6px; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { background: #f1f5f9; }
.btn-outline { background: var(--white); color: var(--slate); border-color: var(--border); }
.btn-outline:hover { background: #f1f5f9; }
.btn-block { width: 100%; }
.section { padding: 44px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-title { margin: 0 0 20px; font-size: 26px; letter-spacing: -0.01em; }
.sandbox-section { padding-top: 26px; }
.privacy-banner { background: var(--emerald-bg); color: var(--emerald-fg); border: 1px solid #a7f3d0; padding: 9px 14px; border-radius: 6px; font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.field-label input, .field-label select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 12.5px; background: var(--white); color: var(--navy); }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-card { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; padding: 12px 14px; }
.kpi-label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi-val { font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15.5px; }
.panel-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg-group { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--white); }
.seg-btn { border: 0; border-right: 1px solid var(--border); background: transparent; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--slate); cursor: pointer; font-family: inherit; }
.seg-btn:last-child { border-right: 0; }
.seg-btn.active { background: var(--navy); color: var(--white); }
.hint { font-size: 12px; color: var(--muted); }
.gaap-note { margin: 0; padding: 7px 14px; font-size: 12px; color: var(--slate); background: #f8fafc; border-bottom: 1px solid var(--border-soft); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 7px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; text-align: left; }
th { background: #f1f5f9; color: var(--slate); font-weight: 700; font-size: 11px; }
th abbr { text-decoration: underline dotted; cursor: help; }
.num { text-align: right; }
tfoot td { background: #f1f5f9; font-weight: 700; border-top: 2px solid var(--border); border-bottom: 0; }
.wip-table { font-size: 11.5px; }
.wip-table th { font-size: 10.5px; }
.wip-table th, .wip-table td { padding: 5px 5px; }
.cell-input { width: 76px; text-align: right; padding: 3px 4px; border: 1px solid #94a3b8; border-radius: 4px; background: #eff6ff; font-family: inherit; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--navy); }
.cell-input-wide { width: 106px; }
.cell-input:focus { outline: 2px solid var(--blue); border-color: var(--blue); background: var(--white); }
.job-name { font-weight: 600; color: var(--navy); }
.badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; }
.badge-emerald { background: var(--emerald-bg); color: var(--emerald-fg); }
.badge-amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge-red { background: var(--red-bg); color: var(--red-fg); }
.badge-blue { background: #dbeafe; color: #1e40af; }
.text-red { color: var(--red-fg); font-weight: 700; }
.text-amber { color: var(--amber-fg); font-weight: 700; }
.text-emerald { color: var(--emerald-fg); font-weight: 600; }
.formula-drawer { padding: 8px 14px; background: var(--bg); border-top: 1px solid var(--border-soft); font-size: 12px; }
.formula-drawer summary { font-weight: 700; cursor: pointer; color: var(--blue-dark); }
.formula-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 8px; color: var(--slate); }
.formula-grid code { background: #e2e8f0; padding: 1px 4px; border-radius: 3px; font-size: 11px; }
.tieout-grid, .je-grid, .cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tieout-row-total td { font-weight: 700; background: #f8fafc; border-top: 1px solid var(--border); }
.je-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; }
.je-note { padding: 18px 16px; font-size: 13.5px; color: var(--slate); line-height: 1.55; }
.cards-3, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bridge-section { padding: 32px 0; border-bottom: 1px solid var(--border-soft); }
.step-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--navy); }
.section-lead { margin: -10px 0 18px; color: var(--muted); font-weight: 600; font-size: 14px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--slate); font-size: 14.5px; }
.card-highlight { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pricing-card { display: flex; flex-direction: column; gap: 10px; }
.price-lead { font-size: 20px; color: var(--navy); }
.price-lock { font-size: 15px; color: var(--blue-dark); }
.feat-list { margin: 4px 0 10px; padding-left: 18px; color: var(--slate); font-size: 14px; }
.feat-list li { margin-bottom: 6px; }
.sample-cta-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; flex-wrap: wrap; }
.sample-cta-card h3 { margin: 0 0 4px; font-size: 16px; }
.sample-cta-card p { margin: 0; font-size: 13.5px; color: var(--slate); max-width: 780px; }
.guarantee-box { margin-top: 14px; padding: 14px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--slate); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin: 8px 0 0; color: var(--slate); font-size: 14px; }
.site-footer { border-top: 1px solid var(--border-soft); padding: 20px 0; font-size: 13px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; }
.modal { border: 1px solid var(--border); border-radius: 8px; padding: 0; max-width: 600px; width: calc(100% - 24px); }
.modal::backdrop { background: rgba(15, 23, 42, 0.55); }
.modal-box { padding: 20px; display: grid; gap: 12px; }
.modal-box h3 { margin: 0; }
.modal-note { margin: 0; font-size: 13px; color: var(--muted); }
.modal-actions-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.modal-box textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.form-error { margin: 0; color: var(--red-fg); font-size: 13px; font-weight: 600; min-height: 18px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; }
.print-header, .print-signoff { display: none; }
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .je-grid, .tieout-grid, .cards-3, .cards-2, .steps-grid, .formula-grid { grid-template-columns: 1fr; }
}
@page { size: landscape; margin: 0.3in; }
@media print {
  .no-print, dialog { display: none !important; }
  body { font-size: 10px; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .print-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #0f172a; padding-bottom: 6px; margin-bottom: 10px; }
  .print-header h2 { margin: 0; font-size: 15px; }
  .print-meta { margin: 2px 0 0; font-size: 10px; color: #334155; }
  .print-meta-right { font-weight: 700; font-size: 11px; }
  .panel { border-color: #94a3b8; break-inside: avoid; margin-bottom: 10px; }
  .table-wrap { overflow: visible; }
  .wip-table { font-size: 8.5px; }
  .wip-table th { font-size: 8px; }
  .wip-table th, .wip-table td { padding: 3px 3px; }
  .cell-input { border: 0; background: transparent; padding: 0; width: auto; font-size: 8.5px; }
  .tieout-grid, .je-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .print-signoff { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10px; }
}
