:root {
  --fc-paper: #f7f8fa;
  --fc-ink: #08080a;
  --fc-ink-light: #3a3a42;
  --fc-ink-lighter: #6b6b76;
  --fc-ink-muted: #8a8a95;
  --fc-surface-200: #e9eaee;
  --fc-surface-300: #d9dbe1;
  --fc-rule: #dfe1e6;
  --fc-rule-strong: #cfd2d9;
  --fc-brand: #6d4aff;
  --fc-brand-link: #4a2fd6;
}

.fc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: currentColor;
  font-size: 16pt;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
}

.fc-wordmark svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.fc-wordmark-small {
  gap: 6px;
  font-size: 9.25pt;
  letter-spacing: -.02em;
}

.fc-wordmark-small svg {
  width: 14px;
  height: 14px;
}

.fc-top-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fc-rule);
}

.fc-title-rail {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fc-ink);
}

.fc-signature {
  color: var(--fc-ink-muted);
}

.fc-signature-word {
  display: block;
  width: max-content;
  margin: 0 0 -1px auto;
  color: var(--fc-surface-200);
  font-size: var(--fc-signature-size, 58pt);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .72;
}

.fc-signature-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 9px;
  border-top: 1px solid var(--fc-rule-strong);
  font-size: 7.6pt;
}

@font-face {
  font-family: "InterVariable";
  src: url("InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: var(--fc-paper);
  --foreground: var(--fc-ink);
  --foreground-light: var(--fc-ink-light);
  --foreground-lighter: var(--fc-ink-lighter);
  --foreground-muted: var(--fc-ink-muted);
  --surface-200: var(--fc-surface-200);
  --surface-300: var(--fc-surface-300);
  --rule: var(--fc-rule);
  --rule-strong: var(--fc-rule-strong);
  --brand: var(--fc-brand);
  --brand-link: var(--fc-brand-link);
}

* { box-sizing: border-box; }
@page { size: Letter; margin: 0; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface-300);
  color: var(--foreground);
  font-family: "InterVariable", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10.4pt;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.page {
  position: relative;
  width: 8.5in;
  height: 11in;
  margin: 0 auto 24px;
  padding: .58in .68in .64in;
  overflow: hidden;
  break-after: page;
  background: var(--background);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3.25in;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 9, 14, .028), rgba(9, 9, 14, 0));
}

.page > * { position: relative; z-index: 1; }
.page:last-child { break-after: auto; }

.doc-header,
.cover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-locator {
  display: flex;
  gap: 16px;
  color: var(--foreground-muted);
  font-size: 8pt;
  letter-spacing: .005em;
}

.doc-footer {
  position: absolute;
  left: .68in;
  right: .68in;
  bottom: .28in;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding-top: 9px;
  border-top: 1px solid var(--rule);
  color: var(--foreground-muted);
  font-size: 7.6pt;
}

.doc-footer span:nth-child(2) { text-align: center; }
.doc-footer span:last-child {
  text-align: right;
  color: var(--foreground-light);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 { margin-bottom: 22px; font-size: 43pt; font-weight: 560; letter-spacing: -.045em; line-height: 1.01; }
h2 { margin-bottom: 13px; font-size: 30pt; font-weight: 560; letter-spacing: -.034em; line-height: 1.06; }
h3 { margin-bottom: 8px; font-size: 15pt; font-weight: 610; letter-spacing: -.022em; line-height: 1.18; }
p { margin-bottom: 12px; }

/* Cover */
.cover-page {
  display: flex;
  flex-direction: column;
  padding-top: .48in;
  background: #303034;
  color: white;
}

.cover-page::before { display: none; }
.cover-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -1.15in;
  right: -1.15in;
  bottom: -1.15in;
  height: 4.15in;
  border-top: 7px solid var(--brand);
  background: #242428;
  transform: rotate(-13.7deg);
  transform-origin: center top;
}

.cover-header { align-items: flex-start; color: white; }
.cover-recipient {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 2.1in;
  color: rgba(255, 255, 255, .76);
  font-size: 7.4pt;
  line-height: 1.3;
  text-align: right;
}

.cover-recipient span { color: rgba(255, 255, 255, .42); }
.cover-recipient strong { font-weight: 570; }
.cover-copy-reference { max-width: 6.4in; margin-top: .92in; }
.cover-overline {
  display: block;
  color: rgba(255, 255, 255, .86);
  font-size: 19pt;
  font-weight: 430;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cover-copy-reference h1 {
  margin: 14px 0 24px;
  color: white;
  font-size: 64pt;
  font-weight: 390;
  letter-spacing: -.05em;
  line-height: .94;
  text-transform: uppercase;
}

.cover-copy-reference i {
  display: block;
  width: 44px;
  height: 2px;
  background: white;
}

@media print {
  body { background: white; }
  .page { margin: 0; }
}

/* Generic proposal document: the E2 interior system applied to any block-based proposal. */
.proposal-document { --proposal-document: 1; }

/* The E2 rules are scoped to .website-proposal-document; mirror them for the generic body class. */
.proposal-document .proposal-page { color: var(--foreground); }
.proposal-document .doc-header { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }

.proposal-document .phase-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .3in;
  margin-top: .32in;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--foreground);
}

.proposal-document .phase-title + .overview-prose { margin-top: 18px; }
.proposal-document .phase-title h2 { max-width: 5.35in; margin: 0; font-size: 22pt; font-weight: 560; letter-spacing: -.03em; line-height: 1.08; }
.proposal-document .phase-price { min-width: 1.6in; padding-bottom: 2px; text-align: right; }
.proposal-document .phase-price strong { color: var(--brand-link); font-size: 18pt; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }

.proposal-document .overview-prose { max-width: 6.55in; margin-top: 18px; }
.proposal-document .overview-prose section + section { margin-top: 14px; }
.proposal-document .overview-prose > p + section,
.proposal-document .overview-prose > ul + section { margin-top: 14px; }
.proposal-document .proposal-page h3 { margin: 0 0 6px; font-size: 12pt; font-weight: 620; letter-spacing: -.018em; line-height: 1.2; }
.proposal-document .proposal-page p,
.proposal-document .proposal-page li { margin: 0 0 8px; color: var(--foreground-light); font-size: 9pt; font-weight: 400; letter-spacing: -.005em; line-height: 1.45; }
.proposal-document .proposal-page strong { font-weight: 680; }

.proposal-document .staged-pricing { margin-top: 18px; }
.proposal-document .staged-pricing h3 { padding-bottom: 7px; border-bottom: 2px solid var(--foreground); }
.proposal-document .staged-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proposal-document .staged-pricing-grid > div { min-height: .57in; padding: 7px 14px 5px 0; }
.proposal-document .staged-pricing-grid > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.proposal-document .staged-pricing-grid strong { display: block; color: var(--brand-link); font-size: 14pt; font-weight: 620; font-variant-numeric: tabular-nums; line-height: 1.1; }
.proposal-document .staged-pricing-grid span { display: block; margin-top: 4px; color: var(--foreground-light); font-size: 8pt; line-height: 1.32; }

.proposal-document .plain-list { margin: 0 0 10px; padding-left: 18px; columns: 1; }
.proposal-document .plain-list li { margin-bottom: 4px; padding-left: 2px; }
.proposal-document .plain-list li::marker { color: var(--brand-link); }

.proposal-document .final-acceptance { display: grid; grid-template-columns: 1fr 2.95in; gap: 15px 28px; align-items: center; margin-top: 20px; padding-top: 17px; border-top: 2px solid var(--foreground); }
.proposal-document .final-acceptance.no-action { grid-template-columns: 1fr; }
.proposal-document .cta-copy > span { display: block; margin-bottom: 4px; color: var(--brand-link); font-size: 7.5pt; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.proposal-document .cta-copy p { margin-bottom: 0; }
.proposal-document .cta-action { display: grid; gap: 9px; }
.proposal-document .cta-action > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.proposal-document .cta-action > div strong { font-size: 17pt; font-weight: 670; letter-spacing: -.03em; }
.proposal-document .cta-action > div span { color: var(--foreground-muted); font-size: 6.8pt; }
.proposal-document .payment-button { display: block; padding: 11px 15px; border-radius: 2px; background: var(--brand-link); color: white; font-size: 8.5pt; font-weight: 650; text-align: center; text-decoration: none; }

.proposal-document .final-footer { position: absolute; left: .68in; right: .68in; bottom: .28in; }
.proposal-document .final-footer > div span:last-child { color: var(--foreground-light); font-weight: 620; font-variant-numeric: tabular-nums; }

@media print {
  .proposal-document .proposal-page p,
  .proposal-document .proposal-page li { orphans: 2; widows: 2; }
}
