:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #171717;
  background: #fff;
  font-synthesis: none;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.environment {
  padding: 9px 5%;
  background: #efefeb;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.site-header,
main,
footer {
  max-width: 1080px;
  margin: auto;
  padding: 22px 32px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #deded8;
}
.wordmark {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1px;
  text-decoration: none;
}
.wordmark span {
  margin-left: 8px;
  font-weight: 400;
}
nav,
footer div {
  display: flex;
  gap: 26px;
  font-size: 14px;
}
nav a,
footer a {
  text-decoration: none;
}
main {
  min-height: 65vh;
  padding-top: 40px;
  padding-bottom: 56px;
}
h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -2.6px;
  font-weight: 650;
  margin: 12px 0 26px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
.hero {
  max-width: 780px;
  padding: 25px 0;
}
.hero h1 {
  font-size: clamp(48px, 6.5vw, 80px);
  letter-spacing: -3.5px;
}
.lead {
  font-size: 20px;
  color: #61615c;
  max-width: 620px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #72726b;
}
.muted,
.caption {
  color: #73736c;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #252523;
  color: white;
  padding: 12px 20px;
  border: 1px solid #252523;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.button:hover {
  background: #44443f;
}
.secondary {
  background: transparent;
  color: #292926;
  border-color: #d0d0c8;
}
.secondary:hover {
  background: #efefea;
}
.agent-row {
  border-top: 1px solid #dcdcd5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  padding-top: 22px;
}
.agent-row h2 {
  font-size: 18px;
  margin: 0;
}
.agent-row p {
  font-size: 14px;
  color: #73736c;
  margin: 5px 0;
}
.agent-row a {
  font-size: 14px;
  white-space: nowrap;
}
.two-columns,
.three-columns,
.product,
.compose-grid,
.review-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 1fr;
}
.three-columns {
  grid-template-columns: repeat(3, 1fr);
}
.below {
  border-top: 1px solid #deded8;
  margin-top: 48px;
  padding-top: 30px;
}
.task {
  text-decoration: none;
  padding: 8px 0;
}
.task span,
.text-link {
  font-size: 14px;
}
.task p {
  color: #73736c;
}
.sample-document {
  background: white;
  border: 1px solid #deded8;
  padding: 46px;
  margin: 20px 0;
  box-shadow: 0 12px 36px #00000006;
  min-height: 390px;
  position: relative;
}
.sample-document h2 {
  margin-top: 48px;
}
.sample-document .caption {
  position: absolute;
  bottom: 22px;
}
.plain-list {
  padding-left: 18px;
  color: #62625b;
}
.narrow {
  max-width: 760px;
  margin: auto;
}
.notice,
.panel {
  border: 1px solid #ddddd6;
  border-radius: 2px;
  padding: 24px;
  margin: 24px 0;
  background: #fff;
}
.docs-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 60px;
}
.docs-layout aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}
.docs-layout aside a {
  text-decoration: none;
}
article h1 {
  font-size: 45px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0f0eb;
  border: 1px solid #e1e1db;
  border-radius: 2px;
  padding: 22px;
  font-size: 12px;
  line-height: 1.7;
}
code,
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
td,
th {
  text-align: left;
  padding: 16px 8px;
  border-bottom: 1px solid #deded8;
}
footer {
  border-top: 1px solid #deded8;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6b6b64;
}
.app-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}
.app-heading h1 {
  font-size: 42px;
  letter-spacing: -1.7px;
}
.app-heading p {
  color: #73736c;
}
.form-section {
  border-top: 1px solid #deded8;
  padding-top: 22px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}
legend {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 15px;
}
label {
  display: block;
  font-size: 14px;
  margin: 0 0 17px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  display: block;
  width: 100%;
  background: white;
  border: 1px solid #cdcdc5;
  border-radius: 4px;
  padding: 11px 12px;
  color: #252523;
  margin-top: 6px;
}
textarea {
  resize: vertical;
}
.address-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 1fr;
  gap: 12px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.check input {
  margin-top: 4px;
}
.segmented {
  display: flex;
  gap: 28px;
}
.segmented label {
  font-size: 15px;
}
.form-bottom {
  border-top: 1px solid #deded8;
  padding-top: 25px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.text-button {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0;
  font-size: 14px;
}
.review-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 48px;
}
.proof-stage {
  background: #eeeeea;
  border: 1px solid #deded8;
  padding: 22px;
  border-radius: 2px;
}
canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
  background: white;
}
.proof-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 10px;
  font-size: 12px;
}
.proof-nav .button {
  padding: 8px 12px;
}
.review-summary section {
  border-bottom: 1px solid #deded8;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.review-summary h2 {
  font-size: 17px;
  margin-top: 0;
}
.review-summary > .button {
  width: 100%;
  margin-bottom: 10px;
}
.quote-line {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
}
.quote-line.total {
  font-size: 20px;
  border-top: 1px solid #deded8;
  padding-top: 12px;
}
.text-link {
  display: block;
  margin-top: 20px;
}
details {
  margin-top: 20px;
  font-size: 12px;
}
.inline-form {
  display: flex;
  gap: 16px;
  align-items: end;
}
.inline-form label {
  flex: 1;
  margin: 0;
}
.balance {
  font-size: 40px;
  margin: 12px 0;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #deded8;
}
.timeline {
  padding-left: 20px;
}
.timeline li {
  padding: 12px 0;
}
.error {
  color: #9c3026;
  padding: 14px 0;
}
.success {
  color: #35603c;
  padding: 14px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-header {
    align-items: start;
    gap: 22px;
  }
  nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: end;
    font-size: 12px;
  }
  main {
    padding-top: 32px;
  }
  .two-columns,
  .three-columns,
  .product,
  .compose-grid,
  .review-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .docs-layout aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .docs-layout aside hr {
    display: none;
  }
  .agent-row,
  .app-heading,
  .form-bottom {
    align-items: start;
    flex-direction: column;
  }
  .app-heading h1 {
    font-size: 36px;
  }
  .hero {
    padding-top: 0;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  footer {
    gap: 24px;
  }
  footer div {
    flex-wrap: wrap;
    gap: 14px;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .environment {
    font-size: 12px;
  }
  .sample-document {
    min-height: 320px;
  }
  article h1 {
    font-size: 36px;
  }
}

.process h2 {
  font-size: 20px;
}
.process p {
  color: #68685f;
  font-size: 15px;
}
.step-number {
  color: #85857b;
  font-size: 12px;
}
.pricing-intro {
  max-width: 760px;
  padding-bottom: 32px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #deded8;
  border-bottom: 1px solid #deded8;
  margin: 28px 0 0;
}
.price-product {
  padding: 32px 24px 32px 0;
  min-width: 0;
}
.price-product + .price-product {
  border-left: 1px solid #deded8;
  padding-left: 28px;
}
.price-product h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
}
.price-product .price {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.2;
  margin: 24px 0;
}
.price span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #73736c;
}
.price-product > p:not(.price):not(.eyebrow) {
  font-size: 14px;
  color: #62625b;
}
.price-product .plain-list {
  font-size: 14px;
  line-height: 2.1;
  min-height: 90px;
}
.price-product .button {
  margin-top: 12px;
  font-size: 14px;
  padding: 11px 15px;
}
.cost-estimator {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}
.cost-estimator h2 {
  margin-top: 0;
}
.cost-estimator p {
  color: #73736c;
  font-size: 14px;
}
.estimator-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.estimator-inputs > label {
  flex: 1;
  min-width: 140px;
}
.estimator-inputs .check {
  flex-basis: 100%;
}
#estimate-result {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.faq details {
  border-bottom: 1px solid #deded8;
  padding: 20px 0;
  margin: 0;
  font-size: 15px;
}
.faq summary {
  font-weight: 500;
  cursor: pointer;
}
.faq details p {
  max-width: 740px;
  color: #62625b;
  font-size: 14px;
}
@media (max-width: 800px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
  .price-product,
  .price-product + .price-product {
    padding: 26px 0;
    border-left: 0;
  }
  .price-product + .price-product {
    border-top: 1px solid #deded8;
  }
  .price-product .plain-list {
    min-height: 0;
  }
  .cost-estimator {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Short copy, direct actions, one clear hierarchy. */
.hero {
  max-width: 100%;
  padding: 12px 0 36px;
}
.hero h1 {
  font-size: clamp(68px, 10vw, 112px);
  font-weight: 700;
  letter-spacing: -0.065em;
  margin: 0 0 12px;
}
.hero .lead {
  color: #525252;
  margin: 0 0 32px;
  font-size: 22px;
}
.mail-actions {
  border-top: 2px solid #171717;
}
.mail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #dedede;
  text-decoration: none;
}
.mail-action strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.mail-action small {
  display: block;
  color: #616161;
  font-size: 14px;
  margin-top: 5px;
}
.mail-action > span:last-child {
  font-size: 30px;
}
.mail-action:hover strong,
.api-strip a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.workflow {
  font-size: 14px;
  color: #525252;
  margin: 22px 0 0;
}
.api-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #dedede;
  padding: 22px 0;
  font-size: 16px;
}
.api-strip a {
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 720px) {
  .api-strip {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .hero h1 {
    letter-spacing: -0.065em;
  }
  .mail-action strong {
    font-size: 26px;
  }
}

.mail-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
  gap: 40px;
  align-items: start;
}
.mail-editor,
.mail-preview {
  min-width: 0;
}
.unified-fields {
  grid-template-columns: 1fr;
  gap: 12px;
}
.unified-fields .form-section {
  padding-top: 18px;
}
.unified-fields fieldset {
  margin-bottom: 20px;
}
.mail-preview {
  position: sticky;
  top: 24px;
  border: 1px solid #dedede;
  padding: 24px;
  background: #fff;
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.preview-heading h2 {
  margin: 0;
}
#proof-empty {
  padding: 50px 8px;
  text-align: center;
  background: #f6f6f4;
}
.mail-options {
  font-size: 14px;
  margin: 12px 0 20px;
}
.mail-options label {
  margin-top: 12px;
}
#flow-quote {
  margin: 24px 0 10px;
}
#flow-approve {
  flex-shrink: 0;
}
#inline-proof > .check {
  margin-top: 22px;
}
#flow-pay {
  width: 100%;
  margin: 8px 0;
}
#stripe-checkout {
  margin-top: 20px;
}
#flow-receipt {
  border-top: 2px solid #171717;
  padding-top: 16px;
}
#flow-receipt .button {
  margin-top: 24px;
}
.mail-workspace .form-bottom {
  flex-wrap: wrap;
  gap: 8px;
}
.mail-workspace .form-bottom p {
  margin: 0;
}
.mail-workspace .form-bottom .button {
  width: 100%;
}
.mail-workspace input:disabled,
.mail-workspace textarea:disabled,
.mail-workspace select:disabled {
  opacity: 0.65;
}
@media (max-width: 800px) {
  .mail-workspace {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mail-preview {
    position: static;
    padding: 20px;
  }
}

/* One active entry section; completed details remain easy to scan and edit. */
body[data-path="/compose"] main {
  max-width: 760px;
  padding-top: 28px;
}
.compose-heading {
  margin-bottom: 24px;
}
.compose-heading h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  margin: 0;
}
.compose-heading > a {
  font-size: 14px;
}
.mail-workspace {
  display: block;
}
.format-picker {
  margin: 0 0 24px;
}
.format-picker .segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d9d9d3;
  border-radius: 6px;
}
.format-picker label {
  margin: 0;
  padding: 9px 24px;
  border-radius: 3px;
  cursor: pointer;
}
.format-picker label:has(input:checked) {
  background: #202020;
  color: white;
}
.format-picker label:has(input:focus-visible) {
  outline: 2px solid #171717;
  outline-offset: 3px;
}
.format-picker input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.entry-section {
  border-top: 1px solid #deded8;
  font-size: 16px;
  margin: 0;
}
.entry-section:last-of-type {
  border-bottom: 1px solid #deded8;
}
.entry-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  padding: 18px 0;
  list-style: none;
}
.entry-section > summary::-webkit-details-marker {
  display: none;
}
.entry-section > summary > span:first-child {
  min-width: 0;
}
.entry-section > summary strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.entry-summary {
  display: block;
  color: #66665e;
  font-size: 14px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.entry-edit {
  font-size: 14px;
  color: #62625c;
  flex-shrink: 0;
}
.entry-section[open] > summary .entry-summary,
.entry-section[open] > summary .entry-edit {
  display: none;
}
.entry-section[open] > summary::after {
  content: "−";
  color: #62625c;
}
.entry-body {
  padding: 0 0 20px;
  margin: 0;
  min-width: 0;
}
.entry-body label {
  font-size: 14px;
  margin-bottom: 14px;
}
.entry-body input,
.entry-body select,
.entry-body textarea {
  font-size: 16px;
}
.optional-field,
.mail-options,
.proof-details {
  font-size: 14px;
  margin: 12px 0 16px;
}
.optional-field > summary,
.mail-options > summary,
.proof-details > summary {
  cursor: pointer;
  color: #62625c;
}
.optional-field label,
.mail-options label {
  margin-top: 12px;
}
.entry-body .address-row {
  grid-template-columns: minmax(0, 2fr) minmax(64px, 0.7fr) minmax(88px, 1fr);
}
.entry-body .address-row label {
  min-width: 0;
}
.entry-body .muted {
  margin: 0;
}
.mail-workspace .form-bottom {
  display: flex;
  border: 0;
  padding: 0;
  margin: 24px 0 12px;
  gap: 12px;
}
.mail-workspace .form-bottom .button {
  width: auto;
  min-width: 180px;
}
#compose-form[data-reviewed="true"] .form-bottom {
  display: none;
}
.mail-preview {
  position: static;
  border: 0;
  border-top: 1px solid #deded8;
  padding: 24px 0 0;
  margin-top: 24px;
}
.mail-preview:focus {
  outline: none;
}
.mail-preview .proof-stage {
  padding: 16px;
}
#flow-canvas {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.compact-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 22px;
}
#flow-quote {
  margin-top: 16px;
}
#proof-instruction {
  margin-top: 24px;
}
.field-error {
  color: #9c3026;
  display: block;
  font-size: 14px;
  margin-top: 5px;
}
[aria-invalid="true"] {
  border-color: #9c3026 !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .compose-heading {
    gap: 10px;
  }
  .compose-heading h1 {
    font-size: 30px;
  }
  .entry-section > summary {
    gap: 12px;
  }
  .entry-body .address-row {
    gap: 8px;
  }
  .mail-preview .proof-stage {
    padding: 10px;
  }
}
body[data-path="/compose"] .site-header {
  max-width: 760px;
  padding-top: 16px;
  padding-bottom: 16px;
}
body[data-path="/compose"] .compose-heading {
  margin-bottom: 18px;
}
body[data-path="/compose"] .format-picker {
  margin-bottom: 18px;
}
.entry-section > summary {
  padding-top: 14px;
  padding-bottom: 14px;
}
.entry-body {
  padding-bottom: 12px;
}
.content-source select {
  margin-top: 0;
}
