:root {
  --red: #e1272f;
  --red-bright: #ff3440;
  --ink: #090a0c;
  --ink-2: #111318;
  --steel: #1d2127;
  --steel-2: #2a2f37;
  --paper: #f2f0ea;
  --paper-2: #e6e3dc;
  --white: #fff;
  --muted: #9ca0a7;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(8, 10, 12, 0.15);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-color: #090a0c;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.024) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.024) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.024) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.024) 75%);
  background-position: 0 0, 5px 5px;
  background-size: 10px 10px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

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

::selection {
  color: var(--white);
  background: var(--red);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: 74px;
  padding: 12px clamp(20px, 4vw, 64px);
  color: var(--white);
  background: rgba(9, 10, 12, 0.92);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 94px;
}

.brand span {
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.48);
  border-left: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proposal-link,
.print-button {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 15px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.proposal-link:hover,
.print-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.progress-line {
  position: fixed;
  top: 73px;
  right: 0;
  left: 0;
  z-index: 101;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red-bright);
  box-shadow: 0 0 14px rgba(255, 52, 64, 0.8);
}

.agreement-hero {
  position: relative;
  display: flex;
  min-height: 510px;
  padding: clamp(74px, 10vw, 132px) clamp(24px, 7vw, 112px) clamp(64px, 8vw, 108px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(225, 39, 47, 0.25), transparent 27%),
    linear-gradient(115deg, #08090b 0%, #101217 62%, #090a0c 100%);
  align-items: center;
}

.agreement-hero::after {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 58%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  transform: skewX(-30deg);
  box-shadow: 0 0 26px rgba(255, 52, 64, 0.55);
}

.hero-carbon {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
  background-position: 0 0, 7px 7px;
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, transparent 25%, #000 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 66%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(830px, 75%);
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--red-bright);
}

.agreement-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 116px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
}

.agreement-hero h1 em {
  color: var(--red-bright);
  font-style: italic;
}

.hero-intro {
  max-width: 675px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}

.scope-pills {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-pills span {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-number {
  position: absolute;
  right: clamp(24px, 6vw, 94px);
  bottom: -0.17em;
  z-index: 1;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(210px, 32vw, 520px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.75;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  user-select: none;
}

.agreement-layout {
  position: relative;
  display: grid;
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 104px) clamp(18px, 4vw, 64px) clamp(74px, 8vw, 128px);
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.agreement-document {
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.document-heading {
  display: flex;
  padding: clamp(28px, 5vw, 60px);
  border-bottom: 1px solid var(--line-light);
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.document-kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.document-state {
  display: flex;
  padding: 9px 12px;
  color: #555a61;
  background: rgba(9, 10, 12, 0.04);
  border: 1px solid var(--line-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
}

.state-dot {
  width: 7px;
  height: 7px;
  background: var(--red-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 52, 64, 0.6);
  flex: none;
}

.parties-card {
  display: grid;
  margin: clamp(24px, 4vw, 44px) clamp(24px, 5vw, 60px) 0;
  padding: 22px clamp(18px, 3vw, 30px);
  color: var(--white);
  background: var(--ink-2);
  border-left: 4px solid var(--red-bright);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.parties-card div {
  min-width: 0;
}

.parties-card span,
.parties-card small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.parties-card strong {
  display: block;
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.parties-card i {
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 28px;
  font-style: normal;
}

.terms-section {
  display: grid;
  margin: 0 clamp(24px, 5vw, 60px);
  padding: clamp(38px, 5vw, 58px) 0;
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 46px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
}

.term-number {
  padding-top: 5px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.term-copy {
  min-width: 0;
}

.term-copy h3 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.term-copy p {
  margin: 0 0 17px;
  color: #373b40;
}

.term-copy p:last-child {
  margin-bottom: 0;
}

.scope-callout {
  position: relative;
  margin-top: 26px;
  padding: 22px 24px 22px 27px;
  color: var(--white);
  background: var(--ink-2);
  overflow: hidden;
}

.scope-callout::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--red-bright);
}

.scope-callout strong {
  display: block;
  margin-bottom: 7px;
  color: var(--red-bright);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scope-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.deliverables-grid {
  display: grid;
  margin: 26px 0 20px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deliverables-grid div {
  min-width: 0;
  padding: 21px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.deliverables-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.deliverables-grid p {
  margin: 0;
  font-size: 15px;
}

.fine-print {
  padding-left: 16px;
  color: #666a70 !important;
  border-left: 2px solid rgba(225, 39, 47, 0.55);
  font-size: 14px;
}

.investment-table {
  margin: 26px 0 25px;
  border: 1px solid var(--line-light);
}

.investment-row,
.investment-total {
  display: grid;
  min-width: 0;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.investment-row.is-current {
  color: var(--white);
  background: var(--ink-2);
  border-left: 4px solid var(--red-bright);
}

.investment-row div {
  min-width: 0;
}

.investment-row span,
.investment-row small {
  display: block;
  color: #72767c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.investment-row.is-current span,
.investment-row.is-current small {
  color: rgba(255, 255, 255, 0.5);
}

.investment-row strong {
  display: block;
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}

.investment-row b,
.investment-total b {
  color: var(--red);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
}

.investment-row.is-current b {
  color: var(--red-bright);
}

.investment-total {
  background: var(--paper-2);
  border-bottom: 0;
  font-family: var(--display);
  text-transform: uppercase;
}

.investment-total strong {
  font-size: 18px;
}

.term-list {
  display: grid;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.term-list li {
  position: relative;
  padding: 13px 0 13px 25px;
  color: #373b40;
  border-top: 1px solid var(--line-light);
}

.term-list li::before {
  position: absolute;
  top: 22px;
  left: 2px;
  width: 7px;
  height: 2px;
  content: "";
  background: var(--red);
}

.schedule-strip {
  display: grid;
  margin: 0 0 25px;
  padding: 19px 22px;
  color: var(--white);
  background: var(--ink-2);
  border-left: 4px solid var(--red-bright);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.schedule-strip div:last-child {
  text-align: right;
}

.schedule-strip span,
.schedule-strip strong {
  display: block;
}

.schedule-strip span {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-strip strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.schedule-strip i {
  color: var(--red-bright);
  font-style: normal;
}

.legal-grid {
  display: grid;
  margin-top: 25px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.legal-grid h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
}

.legal-grid p {
  margin: 0;
  font-size: 14px;
}

.signature-section {
  padding: clamp(48px, 7vw, 78px) clamp(24px, 5vw, 60px) clamp(52px, 7vw, 84px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(225, 39, 47, 0.12), transparent 34%),
    var(--ink-2);
}

.signature-heading .eyebrow {
  margin-bottom: 14px;
}

.signature-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
}

.signature-heading > p:last-child {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

#signature-form {
  margin-top: 37px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

#signature-form label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#signature-form label small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

#signature-form input[type="text"],
#signature-form input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  transition: background 180ms ease, border-color 180ms ease;
}

#signature-form input[type="text"]:hover,
#signature-form input[type="email"]:hover,
#signature-form input[type="text"]:focus,
#signature-form input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.4);
}

#signature-form input[aria-invalid="true"] {
  border-color: var(--red-bright);
}

.signature-field {
  display: block;
  margin-top: 26px;
}

.signature-field input {
  min-height: 68px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 25px !important;
  font-style: italic !important;
}

.drawn-signature-field {
  margin-top: 26px;
}

.drawn-signature-heading {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawn-signature-heading > span {
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clear-drawing-button {
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.clear-drawing-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.signature-pad {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(9, 10, 12, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.signature-pad:hover,
.signature-pad:focus-within {
  border-color: rgba(255, 255, 255, 0.62);
}

.signature-pad.is-invalid {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 1px var(--red-bright);
}

#signature-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.signature-baseline {
  position: absolute;
  right: 6%;
  bottom: 31%;
  left: 6%;
  z-index: 1;
  height: 1px;
  background: rgba(9, 10, 12, 0.2);
  pointer-events: none;
}

.drawn-signature-field > small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.signature-fallback {
  display: grid;
  margin-top: 12px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  cursor: pointer;
}

.signature-fallback input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--red-bright);
}

.signature-fallback span {
  font-size: 12px;
  line-height: 1.5;
}

.signature-pad.is-fallback {
  opacity: 0.46;
}

.signature-pad.is-locked {
  opacity: 0.72;
}

#signature-form input[readonly] {
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.035);
  cursor: not-allowed;
}

.sign-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.consent-row {
  display: grid;
  margin-top: 28px;
  padding: 19px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 13px;
  cursor: pointer;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--red-bright);
}

.consent-row span {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-family: var(--body) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  line-height: 1.55 !important;
  text-transform: none !important;
}

.form-error {
  margin-top: 16px;
  padding: 12px 14px;
  color: #ffdfe1;
  background: rgba(225, 39, 47, 0.16);
  border: 1px solid rgba(255, 52, 64, 0.42);
  font-size: 14px;
}

.turnstile-field {
  display: grid;
  min-height: 92px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.turnstile-field small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.4;
}

.signature-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 20px;
}

.sign-button {
  display: inline-flex;
  min-height: 54px;
  padding: 15px 20px;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.sign-button:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
}

.signature-actions p {
  max-width: 370px;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.45;
}

.signed-receipt {
  display: grid;
  margin-top: 32px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.19);
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.signed-receipt[hidden] {
  display: none;
}

.receipt-mark {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  place-items: center;
}

.signed-receipt span,
.signed-receipt small {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signed-receipt strong {
  display: block;
  margin: 4px 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
}

.receipt-drawing-wrap {
  width: min(100%, 390px);
  margin: 9px 0 10px;
  padding: 6px 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.receipt-drawing-wrap:has(img[hidden]) {
  display: none;
}

#receipt-drawing {
  width: 100%;
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.signed-receipt p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.signed-receipt button {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.deal-summary {
  position: sticky;
  top: 105px;
  min-width: 0;
}

.summary-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(225, 39, 47, 0.12), transparent 34%),
    var(--ink-2);
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.summary-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--red-bright);
  box-shadow: 0 0 20px rgba(255, 52, 64, 0.5);
}

.summary-label {
  margin: 0 0 6px;
  color: var(--red-bright);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.summary-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 41px;
  line-height: 1;
  text-transform: uppercase;
}

.summary-price {
  display: flex;
  margin-top: 17px;
  font-family: var(--display);
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  align-items: flex-start;
}

.summary-price sup {
  margin: 7px 3px 0 0;
  color: var(--red-bright);
  font-size: 20px;
  line-height: 1;
}

.summary-note {
  margin: 12px 0 23px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.45;
}

.summary-list {
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.summary-list div {
  display: flex;
  margin: 0;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.52);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  justify-content: space-between;
  gap: 14px;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-list .summary-total {
  color: var(--white);
  font-weight: 600;
}

.exclusion-badge {
  margin-top: 20px;
  padding: 10px 11px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exclusion-badge span {
  margin-right: 6px;
  color: var(--red-bright);
}

.review-button,
.payment-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  padding: 14px 15px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-button {
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  transition: background 180ms ease, transform 180ms var(--ease);
}

.review-button:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
}

.payment-button {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  justify-content: center;
  text-align: center;
}

.payment-button:not(.is-disabled) {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  cursor: pointer;
}

.payment-button:not(.is-disabled):hover {
  color: var(--white);
  background: var(--red-bright);
  border-color: var(--red-bright);
}

.payment-note {
  margin: 9px 3px 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.summary-status {
  display: flex;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--line-dark);
  align-items: center;
  gap: 11px;
}

.summary-status small,
.summary-status strong {
  display: block;
}

.summary-status small {
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-status strong {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-help {
  margin: 20px 4px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.55;
}

.summary-help a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-decoration-color: rgba(225, 39, 47, 0.7);
  text-underline-offset: 3px;
}

.summary-help strong {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

footer {
  display: flex;
  min-height: 130px;
  padding: 30px clamp(22px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.4);
  background: #060709;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 18px;
}

footer img {
  width: 90px;
}

footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .agreement-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .deal-summary {
    position: static;
    order: -1;
  }

  .summary-card {
    display: grid;
    padding: 25px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    column-gap: 34px;
  }

  .summary-card > * {
    grid-column: 1;
  }

  .summary-list,
  .exclusion-badge,
  .review-button,
  .payment-button,
  .payment-note,
  .summary-status {
    grid-column: 2;
  }

  .summary-list {
    grid-row: 1 / span 3;
  }

  .exclusion-badge {
    grid-row: 4;
  }

  .review-button {
    grid-row: 5;
  }

  .payment-button {
    grid-row: 6;
  }

  .payment-note {
    grid-row: 7;
  }

  .summary-status {
    grid-row: 8;
  }

  .summary-help {
    display: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 75px;
  }

  body {
    font-size: 16px;
  }

  .topbar {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 78px;
  }

  .brand span {
    display: none;
  }

  .proposal-link {
    display: none;
  }

  .print-button {
    min-height: 40px;
    padding: 9px 11px;
  }

  .progress-line {
    top: 63px;
  }

  .agreement-hero {
    min-height: 480px;
    padding: 76px 20px 64px;
  }

  .hero-copy {
    width: 100%;
  }

  .agreement-hero h1 {
    font-size: clamp(50px, 17vw, 76px);
  }

  .hero-number {
    right: -26px;
    bottom: -10px;
    font-size: 240px;
  }

  .scope-pills span {
    max-width: 100%;
  }

  .agreement-layout {
    padding: 28px 12px 72px;
    gap: 24px;
  }

  .summary-card {
    display: block;
    padding: 24px;
  }

  .document-heading {
    display: block;
    padding: 28px 22px;
  }

  .document-state {
    display: inline-flex;
    margin-top: 18px;
  }

  .parties-card {
    margin: 20px 18px 0;
    padding: 18px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .parties-card i {
    display: none;
  }

  .terms-section {
    margin: 0 20px;
    padding: 36px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .schedule-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .schedule-strip i {
    display: none;
  }

  .schedule-strip div:last-child {
    padding-top: 10px;
    border-top: 1px solid var(--line-dark);
    text-align: left;
  }

  .term-number {
    padding: 0;
  }

  .deliverables-grid,
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .investment-row,
  .investment-total {
    padding: 17px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .investment-row b,
  .investment-total b {
    font-size: 25px;
  }

  .signature-section {
    padding: 46px 20px 55px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .signature-actions {
    display: block;
  }

  .signature-pad {
    height: 155px;
  }

  .sign-button {
    width: 100%;
  }

  .signature-actions p {
    margin-top: 13px;
  }

  .signed-receipt {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .signed-receipt button {
    grid-column: 2;
    justify-self: start;
  }

  footer {
    display: block;
    text-align: center;
  }

  footer div {
    justify-content: center;
    flex-wrap: wrap;
  }

  footer p {
    margin-top: 18px;
  }
}

@media (max-width: 390px) {
  .print-button span {
    display: none;
  }

  .agreement-hero h1 {
    font-size: 48px;
  }

  .agreement-layout {
    padding-right: 8px;
    padding-left: 8px;
  }

  .summary-card {
    padding: 21px;
  }

  .summary-price {
    font-size: 55px;
  }

  .document-heading,
  .signature-section {
    padding-right: 17px;
    padding-left: 17px;
  }

  .terms-section {
    margin-right: 17px;
    margin-left: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.55in;
  }

  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 10pt;
  }

  body::before,
  .skip-link,
  .topbar,
  .progress-line,
  .agreement-hero,
  .deal-summary,
  footer,
  .signature-actions,
  .form-error,
  .turnstile-field,
  #clear-signature {
    display: none !important;
  }

  .agreement-layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .agreement-document {
    box-shadow: none;
  }

  .document-heading,
  .parties-card,
  .terms-section,
  .signature-section,
  .drawn-signature-field,
  .signed-receipt {
    break-inside: avoid;
  }

  .document-heading {
    padding: 0 0 0.25in;
  }

  .document-heading h2 {
    font-size: 28pt;
  }

  .document-state {
    color: #333;
    background: #fff;
  }

  .parties-card {
    margin: 0.2in 0 0;
    padding: 0.16in;
    color: #fff;
    background: #111;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .terms-section {
    margin: 0;
    padding: 0.25in 0;
    grid-template-columns: 0.34in minmax(0, 1fr);
    gap: 0.12in;
  }

  .term-copy h3 {
    margin-bottom: 0.1in;
    font-size: 18pt;
  }

  .term-copy p,
  .term-list li {
    font-size: 9.5pt;
  }

  .scope-callout,
  .investment-row.is-current {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .deliverables-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signature-section {
    margin-top: 0.25in;
    padding: 0.3in;
    color: #fff;
    background: #111;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  #signature-form {
    margin-top: 0.2in;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.13in;
  }

  #signature-form input[type="text"],
  #signature-form input[type="email"] {
    min-height: 0;
    padding: 0.08in;
    border-color: #888;
  }

  .signature-pad {
    height: 1.25in;
    background: #fff;
    border-color: #777;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .clear-drawing-button {
    display: none;
  }

  .receipt-drawing-wrap {
    width: 3.4in;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  #receipt-drawing {
    height: 0.72in;
  }

  .consent-row {
    padding: 0.12in;
  }
}
