/* AGS Lending Partners — Investor Tools Design System
   Editorial-finance aesthetic. Anti-Inter typography. */

@import url('https://api.fontshare.com/v2/css?f[]=sentient@300,400,500,700&f[]=satoshi@300,400,500,700,900&display=swap');

:root {
  /* Brand tokens */
  --bg: #0f1628;
  --bg-2: #1a2744;
  --navy: #1f3864;
  --gold: #c9a84c;
  --gold-light: #f0d78c;
  --gold-dark: #b8922e;
  --gold-glow: rgba(201, 168, 76, 0.35);

  /* Editorial extensions */
  --ink: #0a0e1a;
  --paper: #fafaf7;
  --paper-2: #f0eee6;
  --rule: rgba(10, 14, 26, 0.08);
  --muted: #5a6072;
  --green: #2f8a5a;
  --red: #b54545;

  /* Typography — Sentient (humanist serif) + Satoshi (geometric sans) via Fontshare.
     Picked to break out of the AI-default Inter/Geist + Fraunces/DM-Serif look. */
  --font-display: 'Sentient', 'Times New Roman', Georgia, serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --max-w: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
h3 {
  font-size: 1.5rem;
}

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

button {
  font: inherit;
  cursor: pointer;
}

/* Hero with gradient mesh + grain */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 168, 76, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(31, 56, 100, 0.25), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: #fff;
  padding: 80px 24px 120px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero p.lede {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin-top: 24px;
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input,
.field select {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 56, 100, 0.12);
}

/* Slider */
.field input[type='range'] {
  padding: 0;
  appearance: none;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  border: none;
}
.field input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
/* Firefox needs a parallel rule — the two pseudo-elements cannot be combined
   in a single selector list (browsers drop the entire rule on unknown selectors). */
.field input[type='range']::-moz-range-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow:
    0 1px 3px rgba(10, 14, 26, 0.04),
    0 8px 32px rgba(10, 14, 26, 0.06);
  border: 1px solid var(--rule);
  /* Stack above .hero — main containers use margin-top: -60px to overlap the
     hero, and without explicit z-index the card content (especially top-of-card
     headings) renders BEHIND the hero's solid background. */
  position: relative;
  z-index: 1;
}

/* FAQ section — accordion-style answers, designed to read like editorial copy */
.faq-section h2 {
  font-family: 'Sentient', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}
.faq-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm, 6px);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(201, 168, 76, 0.4);
  background: #fff;
}
.faq-item summary {
  padding: 18px 22px;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 56px;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover {
  color: var(--gold-dark);
}
.faq-body {
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}
.faq-body p {
  margin: 0 0 12px;
}
.faq-body p:last-child {
  margin-bottom: 0;
}
.faq-body a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.faq-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* Path comparison cards */
.path-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.path-card[data-winner='true'] {
  border-color: var(--gold);
  box-shadow:
    0 0 0 6px var(--gold-glow),
    0 12px 40px rgba(201, 168, 76, 0.18);
  transform: translateY(-4px);
}
.path-card[data-winner='true']::before {
  content: attr(data-edge);
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--gold);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px var(--gold-glow);
}
.path-card.ineligible {
  opacity: 0.55;
  background: var(--paper-2);
}

/* Big number display */
.hero-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Stat */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}
.stat .label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

/* CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* Strategy toggle (segmented control) */
.strategy-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto;
  background: var(--paper-2);
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.strategy-toggle {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.strategy-toggle label {
  position: relative;
  cursor: pointer;
}
.strategy-toggle label input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.strategy-toggle label span {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    background 0.18s,
    color 0.18s;
  user-select: none;
}
.strategy-toggle label input[type='radio']:checked + span {
  background: var(--ink);
  color: #fff;
}
.strategy-toggle label input[type='radio']:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(31, 56, 100, 0.25);
}
@media (max-width: 540px) {
  .strategy-toggle {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }
  .strategy-toggle label span {
    display: block;
    text-align: center;
  }
}

/* Share + PDF button row */
.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
.share-btn:hover {
  border-color: var(--navy);
  background: rgba(31, 56, 100, 0.04);
  transform: translateY(-1px);
}
.share-btn:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 56, 100, 0.15);
}
.share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .share-btn {
    transition: none;
  }
  .share-btn:hover {
    transform: none;
  }
}

/* Disclosure summary (collapsible) */
details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--navy);
  padding: 12px 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
details summary::-webkit-details-marker {
  display: none;
}
details[open] summary {
  color: var(--ink);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .path-card {
    transition: none;
  }
  .path-card[data-winner='true'] {
    transform: none;
  }
}

/* Lead capture slide-in panel */
.lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.lead-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lead-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(10, 14, 26, 0.18);
}
.lead-panel.open {
  transform: translateX(0);
}
.lead-panel-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lead-panel-body {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
}
.lead-panel-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--rule);
}
.lead-panel .close-x {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1;
}
.lead-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.lead-status.success {
  background: #e8f5ee;
  color: var(--green);
}
.lead-status.error {
  background: #fbeaea;
  color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  .lead-overlay,
  .lead-panel {
    transition: none;
  }
}

/* =====================================================================
   QUOTE SHEET — term-sheet results section (v4 port)
   Replaces the prior two-card layout's framing while preserving every
   data-output / data-program / .path-card / .stat-grid / .ineligible-msg
   hook so analyzer.js continues to populate values without changes.
   ===================================================================== */

:root {
  --navy-deep: #142544;
  --paper-3: #ebe7d8;
  --rule-strong: rgba(10, 14, 26, 0.16);
  --gold-tint: rgba(201, 168, 76, 0.08);
  --font-mono: ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;
}

.quote-sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 var(--rule-strong),
    0 12px 40px -12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* --- Letterhead --- */
.letterhead {
  padding: 24px 32px;
  border-bottom: 4px double var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.letterhead-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ags-mark {
  height: 56px;
  width: auto;
}
.ags-text .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1;
}
.ags-text .tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
}
.tool-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-mark-roundel {
  width: 48px;
  height: 48px;
}
.tool-mark-text .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.tool-mark-text .sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-top: 5px;
}

/* --- Doc meta strip --- */
.doc-meta {
  padding: 18px 32px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}
.doc-meta-row .label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.doc-meta-row .val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--navy);
  word-break: break-word;
}

/* --- Doc title --- */
.doc-title {
  padding: 36px 32px 8px;
}
.doc-title .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
}
.doc-title h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 8px 0 4px;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.doc-subhead {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* Strategy toggle — center it inside the quote sheet */
.quote-sheet .strategy-toggle {
  margin: 24px 32px 0;
}

/* --- Hero winner --- */
.hero-winner {
  text-align: center;
  margin: 28px 32px 36px;
}
.hero-winner-label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --- Matrix cards (side-by-side, term-sheet styled) --- */
.matrix-cards {
  margin: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Override .path-card framing inside the quote sheet for the term-sheet aesthetic */
.matrix-cards .path-card.term-col {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 28px 26px 24px;
  transition: border-color 0.2s ease;
}
/* Cards stay visually IDENTICAL between Velocity and Optimal — winner state is
   surfaced via the hero-winner panel (above) and delta-strip (below) only. */
.matrix-cards .path-card.term-col[data-winner='true'] {
  border-color: var(--rule);
  box-shadow: none;
  transform: none;
}
.matrix-cards .path-card.term-col[data-winner='true']::before {
  content: none;
}
.matrix-cards .path-card.term-col[data-winner='true'] .hero-stat {
  background: var(--paper-3);
}

.col-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.col-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0;
}
.col-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.recommended-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Hero stat (Net profit) — full-width banner above the 3-stat triptych */
.matrix-cards .hero-stat {
  margin: 0 -26px 16px;
  padding: 20px 26px;
  background: var(--paper-3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* (winner-specific hero-stat tint removed — cards are identical) */
.matrix-cards .hero-stat .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.matrix-cards .hero-stat .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* The remaining 3 stats line up in a 3-col triptych (overrides default auto-fit). */
.matrix-cards .term-col .stat-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.matrix-cards .term-col .stat-grid .stat {
  padding: 14px 14px;
  background: #fff;
}
.matrix-cards .term-col .stat-grid .stat:not(:last-child) {
  border-right: 1px solid var(--rule);
}
.matrix-cards .term-col .stat-grid .stat .value {
  font-size: 1.2rem;
}

/* Show-math + math-table styling for term-col */
.matrix-cards details.show-math {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.matrix-cards details.show-math summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.matrix-cards details.show-math summary::-webkit-details-marker {
  display: none;
}
.matrix-cards details.show-math summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--muted);
}
.matrix-cards details.show-math[open] summary::after {
  content: '−';
}
.matrix-cards .math-table {
  width: 100%;
  margin-top: 14px;
  font-size: 0.85rem;
  border-collapse: collapse;
}

/* --- Delta strip (trade-off insight, populated by analyzer.js) --- */
.delta-strip {
  margin: 24px 32px 0;
  padding: 14px 20px;
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.delta-strip strong {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Ineligible msg — was inline-styled, now token'd */
.matrix-cards .ineligible-msg {
  margin-top: 16px;
  padding: 14px;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

/* Quote-sheet wrappers for share-row, CTA panel, disclaimer keep horizontal padding */
.quote-sheet .share-row,
.quote-sheet > div[class=''],
.quote-sheet > p {
  /* leave existing inline-styled blocks; only ensure they sit inside the sheet */
}

/* When in results view, hide the page-level hero so the term-sheet is the
   sole document on screen. Page hero re-appears when user clicks Edit. */
body.view-results .hero {
  display: none;
}
body.view-results main.container {
  margin-top: 32px !important;
}

/* --- See projections trigger (form footer) --- */
.see-projections-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.see-projections-btn {
  align-self: flex-start;
  min-width: 220px;
  justify-content: center;
}
.see-projections-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--paper-2);
  color: var(--muted);
  box-shadow: none;
}
.see-projections-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Edit your deal (back-to-form) button on results view --- */
.edit-deal-btn {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin: 16px 0 0 16px;
  padding: 10px 18px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(10, 14, 26, 0.08);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.edit-deal-btn:hover {
  background: var(--paper-2);
  border-color: var(--navy);
}

/* --- Mobile --- */
@media (max-width: 720px) {
  .letterhead {
    padding: 20px 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .doc-meta,
  .doc-title,
  .matrix-cards,
  .delta-strip {
    margin-left: 22px;
    margin-right: 22px;
  }
  .doc-meta {
    padding: 16px 22px;
  }
  .doc-title {
    padding: 28px 22px 8px;
  }
  .matrix-cards {
    margin-left: 22px;
    margin-right: 22px;
    margin-top: 0;
  }
}
