.content-section {
  padding: clamp(54px, 7vw, 86px) 0;
  background: var(--paper);
}
.content-section:nth-child(even) {
  background: #fff;
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}
.section-head h2,
.prose-grid h2,
.footer-cta h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}
.section-head p,
.prose-grid p,
.faq-item p,
.info-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.step-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.faq-section {
  border-bottom: 0;
}
.info-card,
.faq-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.info-card.action-card {
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.info-card.action-card:hover {
  border-color: rgba(67, 56, 202, .42);
  box-shadow: 0 14px 32px rgba(10, 10, 15, .08);
  transform: translateY(-1px);
}
.info-card.action-card:focus-visible {
  outline: 3px solid rgba(67, 56, 202, .26);
  outline-offset: 3px;
  border-color: var(--indigo);
}
.illustration {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(67, 56, 202, .09);
  color: var(--indigo);
  font-family: "Demo Great Vibes", "Demo Sacramento", cursive;
  font-size: 34px;
}
.info-card h3,
.faq-item h3,
.prose-stack h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.22;
}
.info-card p,
.faq-item p,
.prose-stack p {
  margin: 0;
}
.prose-grid {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
}
.prose-stack {
  display: grid;
  gap: 22px;
}
.text-link {
  color: var(--indigo);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-cta {
  padding: 0;
  background: var(--indigo-deep);
  color: #fff;
  overflow: hidden;
}
.footer-cta-inner {
  min-height: 268px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(250px, auto) minmax(128px, 180px);
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
}
.footer-cta-copy {
  min-width: 0;
}
.footer-cta h2 {
  color: #fff;
  max-width: 540px;
  font-size: clamp(30px, 3.6vw, 44px);
}
.footer-cta .store-row {
  justify-content: center;
  justify-self: center;
}
.footer-cta-device {
  width: min(174px, 16vw);
  min-width: 132px;
  justify-self: end;
  align-self: end;
  margin: 22px 0 -18px;
  transform: rotate(3deg);
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .32));
}
.footer-cta-device img {
  width: 100%;
  height: auto;
  max-height: 326px;
  object-fit: contain;
  display: block;
}
footer {
  padding: 28px 0;
  border-top: 0;
  background: var(--surface);
  text-align: center;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.icon-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.icon-btn:hover {
  color: var(--indigo);
  border-color: rgba(67, 56, 202, .32);
}
.footer-email {
  display: inline-block;
  padding: 10px 0;
}
.legal {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
footer nav.legal {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.legal a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 4px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 18px;
  display: none;
  place-items: center;
  background: rgba(10, 10, 15, .56);
}
.modal.visible {
  display: grid;
}
.modal-card {
  width: min(100%, 820px);
  max-height: min(92vh, 920px);
  max-height: min(92dvh, 920px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.modal-card.compact {
  width: min(100%, 560px);
}
.modal-head {
  padding: 20px 22px 16px;
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.modal-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}
.icon-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.icon-close svg {
  width: 22px;
  height: 22px;
}
.modal-body {
  padding: 18px 22px;
  display: grid;
  gap: 16px;
}
.mode-tabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.mode-tab,
.segment {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}
.mode-tab.active,
.segment.active {
  background: var(--surface);
  color: var(--indigo);
  box-shadow: 0 1px 2px rgba(10, 10, 15, .08);
}
.signature-pane {
  display: none;
}
.signature-pane.active {
  display: grid;
  gap: 14px;
}
.signature-stage {
  position: relative;
  height: clamp(230px, 34vh, 330px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(0deg, transparent 31px, rgba(228, 228, 238, .7) 32px),
    var(--paper);
  background-size: 100% 32px;
  overflow: hidden;
}
.signature-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.signature-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  pointer-events: none;
}
.signature-hint.hidden {
  display: none;
}
.canvas-clear {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--danger);
  cursor: pointer;
}
.canvas-clear svg {
  width: 21px;
  height: 21px;
}
.typed-signature-input {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Demo Great Vibes", "Demo Sacramento", cursive;
  font-size: clamp(42px, 9vw, 78px);
  line-height: 1.05;
  text-align: center;
  overflow: hidden;
}
.typed-signature-input:focus,
.field-input:focus {
  outline: none;
  box-shadow: var(--focus);
}
.font-picker,
.stamp-picker,
.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.font-button,
.stamp-preset {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
}
.font-button.active,
.stamp-preset.active {
  color: var(--indigo);
  border-color: rgba(67, 56, 202, .42);
  background: rgba(67, 56, 202, .08);
}
.font-button[data-font="Demo Handlee"] {
  font-family: "Demo Handlee", cursive;
}
.font-button[data-font="Demo Nothing You Could Do"] {
  font-family: "Demo Nothing You Could Do", cursive;
}
.font-button[data-font="Demo Homemade Apple"] {
  font-family: "Demo Homemade Apple", cursive;
}
.font-button[data-font="Demo Great Vibes"] {
  font-family: "Demo Great Vibes", cursive;
  font-size: 21px;
}
.font-button[data-font="Demo Dancing Script"] {
  font-family: "Demo Dancing Script", cursive;
  font-size: 20px;
}
.font-button[data-font="Demo Sacramento"] {
  font-family: "Demo Sacramento", cursive;
  font-size: 20px;
}
.upload-zone {
  min-height: 210px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.upload-zone.small {
  min-height: 150px;
}
.upload-zone strong {
  color: var(--indigo);
}
.upload-zone img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}
.modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.color-swatch {
  width: 40px;
  height: 40px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.color-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--swatch);
}
.color-swatch.active {
  border-color: var(--indigo);
  box-shadow: 0 0 0 2px rgba(67, 56, 202, .15);
}
.field-label {
  color: var(--ink);
  font-weight: 900;
}
.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.stamp-preset {
  min-width: 132px;
  min-height: 74px;
  color: var(--indigo);
  transform: rotate(-3deg);
  border: 2px solid currentColor;
  font-size: 16px;
  letter-spacing: .08em;
}
.modal-actions {
  padding: 16px 22px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 0;
}
.app-handoff .store-row {
  justify-content: center;
}
.reuse-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  width: min(390px, calc(100% - 36px));
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(67, 56, 202, .22);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.reuse-toast[hidden] {
  display: none;
}
.reuse-toast p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.reuse-toast a,
.reuse-toast button {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}
.reuse-toast a {
  background: var(--indigo);
  color: #fff;
}
.reuse-toast button {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
@media (max-width: 980px) {
  .nav-inner {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .nav-links a,
  .nav-menu summary {
    padding: 8px;
    font-size: 14px;
  }
  .nav-menu {
    position: static;
  }
  .nav-menu-panel {
    left: 20px;
    right: 20px;
    width: calc(100vw - 40px);
    min-width: 0;
  }
  .hero-grid,
  .prose-grid,
  .success-panel {
    grid-template-columns: 1fr;
  }
  .editor-topbar {
    top: 119px;
  }
  .editor-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: calc(100vh - 189px);
    height: calc(100dvh - 189px);
    min-height: 420px;
  }
  .page-thumbs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .thumbnail-list {
    display: flex;
    overflow-x: auto;
  }
  .thumb-button {
    width: 82px;
    flex: 0 0 82px;
  }
  .tool-rail {
    position: sticky;
    bottom: 0;
    z-index: 35;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tool-divider {
    display: none;
  }
  .tool-action {
    min-height: 54px;
    padding: 7px 5px;
    font-size: 10px;
  }
  .tool-action small {
    display: none;
  }
  .document-area {
    padding: 16px 12px;
  }
  .document-pages {
    gap: 18px;
  }
  .step-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-cta-inner {
    min-height: 0;
    padding: 34px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-cta-copy,
  .footer-cta .store-row {
    grid-column: 1;
  }
  .footer-cta-device {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 118px;
    min-width: 118px;
    margin: 0 0 -12px;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }
  .pdf-signer-hero {
    min-height: auto;
    padding: 42px 0 44px;
  }
  .drop-card {
    min-height: 260px;
  }
  .editor-topbar {
    min-height: 64px;
    grid-template-columns: auto minmax(0, 1fr);
    top: 119px;
  }
  .editor-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .fit-toggle {
    min-width: 0;
    padding-inline: 10px;
  }
  .editor-topbar #downloadButton {
    width: 100%;
  }
  .footer-cta-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 36px 0 38px;
    text-align: center;
    gap: 22px;
  }
  .footer-cta-copy,
  .footer-cta .store-row,
  .footer-cta-device {
    grid-column: 1;
  }
  .footer-cta h2 {
    max-width: 360px;
    font-size: clamp(32px, 9vw, 42px);
  }
  .footer-cta .store-row {
    gap: 10px;
    justify-content: center;
  }
  .footer-cta .store-badge,
  .footer-cta .store-badge img {
    height: 42px;
  }
  .footer-cta-device {
    grid-row: auto;
    order: 2;
    justify-self: center;
    width: clamp(170px, 52vw, 224px);
    min-width: 170px;
    margin: 0;
    transform: rotate(-2deg);
  }
  .document-area {
    padding: 14px;
  }
  .modal {
    padding: 10px;
  }
  .modal-card {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .modal-head,
  .modal-body,
  .modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .button {
    width: 100%;
  }
  .store-badge,
  .store-badge img {
    height: 44px;
  }
  .reuse-toast {
    grid-template-columns: 1fr;
  }
}
