/* Proof of ROI — Mitch & Banc | Black / Ivory / Gold */
:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a1a;
  --ivory: #f7f3eb;
  --ivory-dim: #e8e2d6;
  --ivory-muted: #c4bbaa;
  --gold: #c9a227;
  --gold-bright: #e0b83a;
  --gold-dim: #8a7020;
  --buy: #2d8a5e;
  --reneg: #c9892a;
  --pass: #8a3a3a;
  --border: rgba(201, 162, 39, 0.28);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--ivory);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ——— Shell ——— */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.brand-text strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--ivory-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover:not(:disabled) {
  background: var(--gold-bright);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--border);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory-muted);
  border: none;
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--gold);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ivory-muted);
}
.site-footer .legal-line {
  max-width: 820px;
  margin: 0.5rem auto 0;
  line-height: 1.45;
}

/* ——— Cards ——— */
.card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-ivory {
  background: var(--ivory);
  color: var(--black);
  border-color: var(--ivory-dim);
}
.card-ivory .muted {
  color: #5c564c;
}
.card-ivory a {
  color: var(--gold-dim);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.muted {
  color: var(--ivory-muted);
}
.gold {
  color: var(--gold);
}
.tiny {
  font-size: 0.75rem;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h2 {
  font-size: 1.35rem;
  font-weight: 650;
}
h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

.price-tag {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.price-tag small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ivory-muted);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bullet-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.bullet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-demo {
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold);
  border: 1px solid var(--border);
}
.badge-buy {
  background: rgba(45, 138, 94, 0.2);
  color: #6dcea0;
}
.badge-reneg {
  background: rgba(201, 137, 42, 0.2);
  color: #e0b06a;
}
.badge-pass {
  background: rgba(138, 58, 58, 0.25);
  color: #e09090;
}
.badge-proof {
  background: var(--gold);
  color: var(--black);
}

/* ——— Forms ——— */
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ivory-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.field {
  margin-bottom: 0.9rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--black-soft);
  color: var(--ivory);
  font: inherit;
  font-size: 0.95rem;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.card-ivory input,
.card-ivory select,
.card-ivory textarea {
  background: #fff;
  color: var(--black);
  border-color: #d4cfc3;
}

.hint {
  font-size: 0.72rem;
  color: var(--ivory-muted);
  margin-top: 0.25rem;
}

.seg {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.seg button {
  flex: 1;
  min-width: 70px;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ivory-muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.seg button.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.photo-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(201, 162, 39, 0.08);
  font-size: 0.9rem;
}
.alert-warn {
  border-color: rgba(201, 137, 42, 0.5);
  background: rgba(201, 137, 42, 0.1);
}
.alert-err {
  border-color: rgba(138, 58, 58, 0.5);
  background: rgba(138, 58, 58, 0.12);
}

/* ——— Marketing ——— */
.hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.hero .tagline {
  font-size: 1.15rem;
  color: var(--ivory-muted);
  margin: 0.75rem 0 1.5rem;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pricing-card {
  margin: 2rem auto;
  max-width: 420px;
  text-align: center;
}
.pricing-card ul {
  text-align: left;
  margin: 1rem 0 1.25rem;
}

/* ——— File sheet (printable) ——— */
.file-sheet {
  background: var(--ivory);
  color: var(--black);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--ivory-dim);
}
.file-sheet .sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.file-sheet .verdict-block {
  text-align: center;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 2px solid;
}
.file-sheet .verdict-block.Buy {
  border-color: var(--buy);
  background: rgba(45, 138, 94, 0.08);
}
.file-sheet .verdict-block.Renegotiate {
  border-color: var(--reneg);
  background: rgba(201, 137, 42, 0.08);
}
.file-sheet .verdict-block.Pass {
  border-color: var(--pass);
  background: rgba(138, 58, 58, 0.08);
}
.file-sheet .verdict-word {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.file-sheet .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.file-sheet .metric {
  background: #fff;
  border: 1px solid #ddd5c6;
  border-radius: 10px;
  padding: 0.85rem;
}
.file-sheet .metric .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a6458;
}
.file-sheet .metric .val {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
.file-sheet .section-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 1.1rem 0 0.5rem;
  font-weight: 700;
}
.file-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.file-sheet th,
.file-sheet td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid #ddd5c6;
}
.file-sheet .legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd5c6;
  font-size: 0.68rem;
  color: #5c564c;
  line-height: 1.45;
}
.file-sheet .demo-banner {
  background: #fff3cd;
  border: 1px solid #e0c86a;
  color: #5c4a10;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.confidence-bar {
  height: 8px;
  background: #ddd5c6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.confidence-bar > span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

/* ——— Desk ——— */
.desk-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.stat-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.stat-pill {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 110px;
}
.stat-pill .n {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-pill .l {
  font-size: 0.7rem;
  color: var(--ivory-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-wrap {
  overflow-x: auto;
}
.desk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.desk-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.desk-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  vertical-align: middle;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ivory-muted);
}

/* ——— Construction Proof ——— */
.proof-stamp {
  border: 3px double var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
  background: rgba(201, 162, 39, 0.08);
}
.proof-stamp .stamp-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.proof-stamp .stamp-meta {
  font-size: 0.8rem;
  color: var(--ivory-muted);
  margin-top: 0.35rem;
}

.queue-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ——— Account ——— */
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}
.account-row:last-child {
  border-bottom: none;
}

.hidden {
  display: none !important;
}

/* Print */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .topbar,
  .site-footer,
  .no-print,
  .btn {
    display: none !important;
  }
  .main {
    max-width: none;
    padding: 0;
  }
  .file-sheet {
    box-shadow: none;
    border: none;
  }
}

.view {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
