:root {
  --ink: #090b0e;
  --muted: #68717d;
  --blue: #1e31f2;
  --blue-soft: #edf3f8;
  --navy: #26384d;
  --paper: #ffffff;
  --canvas: #e9eef3;
  --line: #d9e0e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
}

.document-shell {
  padding: 48px 20px;
}

.document {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px);
  background: var(--paper);
  border: 1px solid #dfe4e9;
  box-shadow: 0 24px 70px rgb(22 35 48 / 10%);
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1;
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(18px, 2.7vw, 28px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.subtitle {
  margin: 7px 0 0;
  color: #8b939d;
  font-size: 14px;
}

.nodeflo-logo {
  width: clamp(116px, 19vw, 178px);
  height: auto;
  margin-top: 3px;
}

.blue-rule {
  height: 2px;
  margin: 30px 0 26px;
  background: var(--blue);
}

.party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.party-right {
  text-align: right;
}

.label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.party-name {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.party-company {
  margin: 4px 0 0;
  color: #9098a1;
  font-size: 12px;
}

.info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 44px;
  padding: 16px 18px;
  background: var(--blue-soft);
  border: 1px solid #d5e1eb;
  font-size: 13px;
}

.info-bar span {
  font-weight: 720;
}

.section {
  margin-top: 42px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section > p {
  max-width: 770px;
  margin: 0 0 14px;
  color: #343a42;
  font-size: 15px;
  line-height: 1.7;
}

.section .lead {
  color: var(--ink);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.55;
}

blockquote {
  margin: 24px 0 0;
  padding: 18px 22px;
  color: #233147;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.use-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 14px 16px;
  background: #fff;
}

.use-item span {
  color: var(--blue);
  font-size: 22px;
}

.use-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 660;
  line-height: 1.35;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scope-card {
  padding: 20px;
  background: #fafbfd;
  border: 1px solid var(--line);
}

.scope-number {
  margin: 0 0 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.scope-card h3,
.deliverable h3,
.split-panel h3,
.term h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.scope-card ul,
.split-panel ul {
  margin: 13px 0 0;
  padding-left: 16px;
  color: #525b65;
  font-size: 12px;
  line-height: 1.65;
}

.deliverable-list {
  border-top: 1px solid var(--ink);
}

.deliverable {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.deliverable-number {
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.deliverable p {
  margin: 5px 0 0;
  color: #606873;
  font-size: 13px;
  line-height: 1.5;
}

.investment-card {
  overflow: hidden;
  border: 1px solid #cfd7df;
}

.investment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  color: white;
  background: var(--navy);
}

.label-light {
  color: #cfd8e1;
}

.investment-note {
  margin: 0;
  color: #dbe2e8;
  font-size: 13px;
}

.price {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 730;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 24px 26px;
}

.value-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f3;
}

.value-item span {
  color: var(--blue);
  font-weight: 780;
}

.value-item p {
  margin: 0;
  color: #343b44;
  font-size: 12px;
  line-height: 1.4;
}

.payment-copy {
  margin-top: 14px !important;
  color: #6c7580 !important;
  font-size: 12px !important;
}

.timeline-summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.timeline-summary p,
.timeline-summary strong {
  margin: 0;
  font-size: 12px;
}

.timeline-summary p {
  font-weight: 760;
}

.timeline-summary strong {
  color: #6d7580;
  font-weight: 520;
}

.timeline-table {
  border: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px 110px 1fr;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row > * {
  padding: 15px;
  border-right: 1px solid var(--line);
  color: #3e4650;
  font-size: 12px;
  line-height: 1.45;
}

.timeline-row > *:last-child {
  border-right: 0;
}

.timeline-row strong,
.timeline-row small {
  display: block;
}

.timeline-row small {
  margin-top: 2px;
  color: #8a929c;
}

.timeline-header {
  min-height: 0;
  background: var(--navy);
}

.timeline-header > * {
  padding-top: 10px;
  padding-bottom: 10px;
  color: white;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.timeline-note {
  margin-top: 18px !important;
}

.notice {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--blue-soft);
  border: 1px solid #d5e1eb;
}

.notice strong {
  font-size: 12px;
}

.notice p {
  margin: 0;
  color: #48525e;
  font-size: 12px;
  line-height: 1.55;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.split-panel > div {
  padding: 22px 24px;
}

.split-panel > div + div {
  border-left: 1px solid var(--line);
}

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

.term {
  padding: 22px;
  border: 1px solid var(--line);
}

.term p {
  margin: 10px 0 0;
  color: #5a636e;
  font-size: 12px;
  line-height: 1.6;
}

.responsibility-list {
  border-top: 1px solid var(--ink);
}

.responsibility-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.responsibility-list strong,
.responsibility-list p {
  font-size: 13px;
}

.responsibility-list p {
  margin: 0;
  color: #616a75;
}

.acceptance {
  margin-top: 56px;
  padding: clamp(26px, 5vw, 46px);
  color: white;
  background: #080a0d;
}

.eyebrow-small {
  margin: 0 0 28px !important;
  color: #9ca6b2 !important;
  font-size: 10px !important;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.acceptance h2 {
  max-width: 650px;
  font-size: clamp(30px, 5vw, 48px);
}

.acceptance > p:not(.eyebrow-small, .secure-note) {
  max-width: 650px;
  color: #c4cbd2;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 20px;
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.primary-cta {
  background: var(--blue);
}

.primary-cta:hover {
  background: #1024e4;
}

.secondary-cta {
  background: #20242a;
}

.secondary-cta:hover {
  background: #2d333a;
}

.secure-note {
  margin: 14px 0 0 !important;
  color: #929da8 !important;
  font-size: 11px !important;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

footer img {
  width: 102px;
}

footer p {
  margin: 0;
  color: #858e98;
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 760px) {
  .document-shell {
    padding: 0;
  }

  .document {
    padding: 30px 22px 56px;
    border: 0;
    box-shadow: none;
  }

  .masthead {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .nodeflo-logo {
    width: 126px;
  }

  .party-grid,
  .use-grid,
  .scope-grid,
  .value-grid,
  .split-panel,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .party-right {
    text-align: left;
  }

  .investment-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-row {
    grid-template-columns: 78px 72px 1fr;
  }

  .timeline-row > * {
    padding: 12px 9px;
  }

  .notice,
  .responsibility-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .split-panel > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .acceptance {
    margin-right: -22px;
    margin-left: -22px;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }
}

@media print {
  body {
    background: white;
  }

  .document-shell {
    padding: 0;
  }

  .document {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .scope-card,
  .investment-card,
  .deliverable,
  blockquote,
  .notice,
  .term {
    break-inside: avoid;
  }

  .cta-row,
  .secure-note {
    display: none;
  }

  .acceptance {
    color: var(--ink);
    background: white;
    border: 1px solid var(--ink);
  }

  .acceptance > p:not(.eyebrow-small, .secure-note),
  .eyebrow-small {
    color: #343a42 !important;
  }
}
