:root {
  color-scheme: light;
  --indigo: #4338CA;
  --indigo-deep: #312E81;
  --ink: #0A0A0F;
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --line: #E4E4EE;
  --ok: #059669;
  --muted: #5B6072;
  --soft: #F1F1FA;
  --warn: #B45309;
  --danger: #B91C1C;
  --shadow: 0 22px 60px rgba(10, 10, 15, .14);
  --focus: 0 0 0 3px rgba(67, 56, 202, .24);
}
@font-face {
  font-family: "Demo Handlee";
  src: url("../fonts/Handlee-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Demo Nothing You Could Do";
  src: url("../fonts/NothingYouCouldDo-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Demo Homemade Apple";
  src: url("../fonts/HomemadeApple-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Demo Dancing Script";
  src: url("../fonts/DancingScript-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Demo Great Vibes";
  src: url("../fonts/GreatVibes-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Demo Sacramento";
  src: url("../fonts/Sacramento-Regular.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-width: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: hidden;
}
body.editor-open {
  background: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  z-index: 9999;
  box-shadow: var(--focus);
}
.screen-reader-text,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.inline-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(8px);
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--indigo);
  font-size: 18px;
  font-weight: 800;
}
.brand a:focus-visible,
.nav-links a:focus-visible,
.nav-menu summary:focus-visible,
.button:focus-visible,
.text-button:focus-visible,
.tool-action:focus-visible,
.icon-btn:focus-visible,
.mode-tab:focus-visible,
.font-button:focus-visible,
.segment:focus-visible,
.stamp-preset:focus-visible,
.color-swatch:focus-visible,
.icon-close:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}
.nav-links a,
.nav-menu summary {
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink);
}
.nav-links a:hover,
.nav-menu summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-links a[aria-current="page"] {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-menu {
  position: relative;
}
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  min-width: 250px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 10, 15, .12);
}
.nav-menu-panel a {
  display: flex;
  white-space: nowrap;
}
.nav-menu-panel a:hover,
.nav-menu-panel a[aria-current="page"] {
  background: rgba(67, 56, 202, .08);
  text-decoration: none;
}
.pdf-signer-hero {
  min-height: 70vh;
  padding: clamp(46px, 7vw, 86px) 0 clamp(38px, 6vw, 72px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .16), transparent 19rem),
    linear-gradient(180deg, var(--indigo-deep), #23205E);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pdf-signer-hero .eyebrow {
  color: rgba(255, 255, 255, .78);
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
.hero-copy h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 900;
}
.script-sign-word {
  width: clamp(112px, 14vw, 158px);
  height: auto;
  margin: 0 3px -18px 0;
  display: inline-block;
  overflow: visible;
}
.script-sign-word text {
  font-family: "Demo Great Vibes", "Demo Sacramento", cursive;
  font-size: 76px;
  font-weight: 400;
  fill: transparent;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw-word 1.2s ease .2s forwards, fill-word .35s ease 1.15s forwards;
}
@keyframes draw-word {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fill-word {
  to {
    fill: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .script-sign-word text {
    stroke-dashoffset: 0;
    fill: #fff;
  }
}
.hero-subhead {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .83);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}
.trust-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .18);
}
.drop-card {
  min-height: 320px;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  border: 2px dashed var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(10, 10, 15, .18);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.drop-card.is-dragging {
  transform: translateY(-4px);
  border-style: solid;
  border-color: var(--indigo);
  background: #f4f3ff;
  box-shadow:
    0 0 0 6px rgba(67, 56, 202, .18),
    0 32px 70px rgba(10, 10, 15, .26);
}
.drop-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67, 56, 202, .16);
  border-radius: 18px;
  color: var(--indigo);
  background: linear-gradient(180deg, rgba(67, 56, 202, .08), rgba(67, 56, 202, .03));
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.drop-card.is-dragging .drop-icon {
  transform: scale(1.06);
  color: #fff;
  background: var(--indigo);
}
.drop-icon svg {
  width: 48px;
  height: 48px;
}
.drop-card strong {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: 0;
}
.drop-card p {
  margin: 0;
  color: var(--muted);
}
.drop-note {
  font-size: 13px;
}
.status-message,
.editor-status,
.modal-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}
.button,
.text-button {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.button-primary {
  padding: 12px 16px;
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.button-primary:hover {
  background: #3730A3;
}
.button-primary:disabled {
  opacity: .6;
  cursor: wait;
}
.button-secondary {
  padding: 12px 16px;
  color: var(--indigo);
  background: transparent;
  border-color: rgba(67, 56, 202, .32);
}
.button-secondary:hover {
  background: rgba(67, 56, 202, .08);
}
.text-button {
  padding: 10px 12px;
  background: transparent;
  border-color: transparent;
  color: var(--indigo);
}
.text-button:hover {
  background: rgba(67, 56, 202, .08);
}
.file-input {
  display: none;
}
