:root {
  --ink: #172026;
  --muted: #66727d;
  --line: #d9e1e7;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --teal: #087f83;
  --teal-dark: #046165;
  --blue: #2563eb;
  --amber: #b7791f;
  --red: #b42318;
  --green: #13805c;
  --shadow: 0 14px 34px rgba(23, 32, 38, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  left: 50%;
  max-width: 1280px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: var(--teal);
  display: inline-flex;
  font-size: 22px;
  font-weight: 400;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-cta,
.primary,
.secondary {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
}

.nav-cta,
.primary {
  background: var(--teal);
  color: white;
}

.nav-cta:hover,
.primary:hover {
  background: var(--teal-dark);
}

.secondary {
  background: #e8eef2;
  color: var(--ink);
}

.large {
  min-height: 54px;
  padding: 0 24px;
}

.full {
  width: 100%;
}

.hero {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  margin: 0 auto;
  max-width: 1280px;
  min-height: 700px;
  padding: 54px 24px 72px;
}

.tool-hero h1 {
  max-width: 700px;
}

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 22px;
  max-width: 840px;
}

h2 {
  font-size: 30px;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
}

.hero-text {
  color: #44515c;
  font-size: 18px;
  line-height: 1.45;
  max-width: 670px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.microcopy,
.subtle {
  color: var(--muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row span,
.hint-grid span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #41505b;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

.quick-send-card {
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 28px;
  position: sticky;
  top: 96px;
}

.quick-send-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.quick-send-head h2 {
  font-size: 22px;
  margin: 0;
}

.quick-send-head span,
.mock-field span,
.mock-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mock-field,
.mock-upload,
.mock-summary > div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.mock-field {
  display: grid;
  gap: 8px;
}

.mock-field strong {
  font-size: 18px;
}

.mock-upload {
  align-items: center;
  border-style: dashed;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  text-align: center;
}

.mock-upload-icon {
  align-items: center;
  background: rgba(8, 127, 131, 0.1);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-size: 30px;
  height: 62px;
  justify-content: center;
  margin-bottom: 12px;
  width: 62px;
}

.mock-upload small {
  color: var(--muted);
  margin-top: 6px;
}

.mock-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.mock-summary strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.doc-line,
.fax-line {
  background: #24313a;
  border-radius: 999px;
  display: block;
  height: 10px;
  margin-bottom: 13px;
  opacity: 0.72;
  width: 78%;
}

.doc-line.wide,
.fax-line.strong {
  height: 15px;
  opacity: 0.92;
  width: 92%;
}

.doc-line.short,
.fax-line.short {
  width: 45%;
}

.stamp {
  border: 2px solid var(--green);
  border-radius: 6px;
  bottom: 24px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  left: 22px;
  padding: 8px;
  position: absolute;
}

.mini-panel {
  align-items: center;
  background: white;
  border-radius: 8px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  left: 42px;
  padding: 12px 14px;
  position: absolute;
  right: 42px;
}

.mini-panel strong {
  font-size: 24px;
}

.mini-panel span {
  color: var(--muted);
  font-size: 14px;
}

.pricing-band,
.workflow {
  background: white;
  border-top: 1px solid var(--line);
  padding: 56px max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.pricing-band {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.75fr 1fr;
}

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

.price-card,
.step-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.price-card span {
  color: var(--muted);
  display: block;
  font-weight: 700;
}

.price-card strong {
  display: block;
  font-size: 36px;
  margin-top: 8px;
}

.price-card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.app-surface {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.06);
  margin: 32px auto;
  max-width: 1120px;
  padding: 34px;
  width: min(92vw, 1120px);
}

.app-surface.narrow {
  max-width: 720px;
}

.progress {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 30px;
}

.progress span {
  background: #edf2f5;
  border-radius: 999px;
  color: #74818c;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  padding: 8px 6px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress .active {
  background: var(--teal);
  color: white;
}

.dropzone {
  align-items: center;
  background: var(--soft);
  border: 2px dashed #a7b6c0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 260px;
  padding: 28px;
  text-align: center;
}

.privacy-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 20px;
  padding: 16px;
}

.privacy-card p {
  color: var(--muted);
  margin: 6px 0 0;
}

.dropzone.dragging {
  background: #e7f7f5;
  border-color: var(--teal);
}

.dropzone input {
  display: none;
}

.drop-icon {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-size: 34px;
  font-weight: 300;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.hint-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.split-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.preview-layout,
.status-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.preview-pages {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.fax-page {
  aspect-ratio: 0.77;
  background: #fff;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.08);
  padding: 24px 18px;
  position: relative;
}

.page-num {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.signature {
  background: #0c1115;
  bottom: 22px;
  height: 2px;
  left: 18px;
  position: absolute;
  width: 46%;
}

.more-pages,
.side-panel,
.receipt {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.ok,
.warn,
.error {
  border-radius: 8px;
  font-weight: 700;
  padding: 12px;
}

.ok {
  background: #e9f7f2;
  color: var(--green);
}

.warn {
  background: #fff4df;
  color: var(--amber);
}

.error {
  background: #fff0ee;
  color: var(--red);
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.file-list span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 10px;
}

.form {
  display: grid;
  gap: 18px;
}

label {
  color: #34434f;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

input,
textarea {
  background: white;
  border: 1px solid #b7c4cd;
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.toggle-row {
  align-items: center;
  display: flex;
}

.toggle-row input {
  min-height: 20px;
  width: 20px;
}

.review-list,
.timeline,
.info-list {
  display: grid;
  gap: 12px;
}

.review-list div,
.checkout-card,
.receipt div {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.payment-note {
  background: #eef7ff;
  border: 1px solid #c7def5;
  border-radius: 8px;
  color: #24527c;
  font-weight: 750;
  margin: 18px 0;
  padding: 14px;
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.checkout-card {
  margin: 22px 0;
}

.checkout-card strong {
  display: block;
  font-size: 34px;
  margin-top: 4px;
}

.timeline-item {
  align-items: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 74px 1fr;
  padding: 16px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item p {
  color: var(--muted);
  margin: 4px 0 0;
}

.receipt {
  align-self: start;
}

.receipt div {
  margin-bottom: 10px;
}

.info-page h1 {
  font-size: 52px;
}

.info-list p {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 16px;
}

.footer {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding: 34px 5vw;
}

.footer p {
  color: var(--muted);
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 750;
}

.orders {
  grid-column: 1 / -1;
}

.orders p {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 880px) {
  .nav a {
    display: none;
  }

  .hero,
  .pricing-band,
  .preview-layout,
  .status-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .phone-demo {
    justify-content: start;
  }

  .quick-send-card {
    position: static;
  }

  .price-grid,
  .steps-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .app-surface {
    padding: 22px;
  }

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

  .split-head {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .topbar {
    padding: 0 18px;
  }

  .hero,
  .pricing-band,
  .workflow {
    padding-left: 18px;
    padding-right: 18px;
  }

  .app-surface {
    margin: 24px auto;
    width: calc(100vw - 24px);
  }

  .button-row,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row button,
  .hero-actions button {
    width: 100%;
  }
}
