:root {
  --blue: #1e3a8a;
  --blue-2: #2563eb;
  --coral: #f04438;
  --green: #16a34a;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dee8;
  --soft: #f8fafc;
  --panel: #ffffff;
  --shadow: 0 14px 40px rgba(17, 24, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  z-index: 30;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--coral);
  font-weight: 800;
  font-size: 15px;
}

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

.nav-menu a {
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-contact {
  background: #eef4ff;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.hero,
.page-hero,
.tool-hero,
.section,
.tool-layout,
.article,
.trust-band,
.footer-grid,
.footer-note {
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: 42px 22px 24px;
}

.hero h1,
.page-hero h1,
.tool-hero h1,
.article h1 {
  margin: 0;
  line-height: 1.04;
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: 0;
}

.hero-text,
.page-hero p,
.tool-hero p,
.article-intro {
  color: var(--muted);
  font-size: 19px;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-actions,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 17px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}

.button.primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 22px rgba(240, 68, 56, 0.22);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--blue);
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button.large {
  min-width: 180px;
}

.button.small {
  min-height: 38px;
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
}

.hero-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.doc-stack {
  position: relative;
  width: min(360px, 86vw);
  height: 410px;
}

.doc-page {
  position: absolute;
  width: 255px;
  min-height: 320px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.doc-page span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 34px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.doc-page strong {
  display: block;
  margin: 28px 0 14px;
  font-size: 28px;
}

.doc-page em,
.doc-page::before,
.doc-page::after {
  display: block;
  content: "";
  height: 12px;
  border-radius: 999px;
  background: #dbeafe;
  margin-top: 12px;
}

.page-one {
  left: 32px;
  top: 24px;
  z-index: 3;
  transform: rotate(-5deg);
}

.page-two {
  left: 88px;
  top: 64px;
  z-index: 2;
  transform: rotate(7deg);
}

.page-three {
  left: 4px;
  top: 82px;
  z-index: 1;
  transform: rotate(-13deg);
}

.section {
  padding: 48px 22px;
}

.section-head {
  margin-bottom: 22px;
}

.section h2,
.content-block h2,
.sidebar-card h2,
.article h2 {
  margin: 0 0 12px;
  line-height: 1.15;
  font-size: 30px;
  letter-spacing: 0;
}

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

.tool-grid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card,
.post-list a,
.blog-card a,
.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.tool-card {
  display: flex;
  gap: 14px;
  min-height: 138px;
  padding: 18px;
  text-decoration: none;
}

.tool-card:hover {
  border-color: #9db4e8;
  transform: translateY(-1px);
}

.tool-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--blue);
  background: #eef4ff;
}

.tool-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.tool-card small,
.post-list small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.trust-band {
  margin-top: 18px;
  padding: 24px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-band div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.trust-band svg {
  color: var(--green);
}

.trust-band strong,
.trust-band span {
  display: block;
}

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

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

.post-list {
  display: grid;
  gap: 12px;
}

.post-list a {
  padding: 16px;
  text-decoration: none;
}

.page-hero.compact,
.tool-hero {
  padding: 54px 22px 18px;
}

.page-hero.compact h1,
.tool-hero h1,
.article h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 26px 22px 60px;
}

.tool-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.upload-box {
  position: relative;
  min-height: 270px;
  border: 2px dashed #a9b8d8;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
  background: #f9fbff;
}

.upload-box.drag-over {
  border-color: var(--blue-2);
  background: #eef4ff;
}

.upload-box h2 {
  margin: 8px 0 0;
  font-size: 28px;
}

.upload-box p {
  color: var(--muted);
  margin: 4px 0 18px;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.file-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-row small {
  flex: 0 0 auto;
  color: var(--muted);
}

.tool-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.field input[type="color"] {
  padding: 5px;
}

.field input[type="range"] {
  padding: 0;
  accent-color: var(--blue);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue-2);
}

.check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.signature-pad-wrap {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.signature-pad-wrap label {
  font-weight: 850;
}

.signature-pad {
  width: 100%;
  aspect-ratio: 3.45 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(transparent 78%, rgba(30, 58, 138, 0.16) 78%, rgba(30, 58, 138, 0.16) 80%, transparent 80%),
    #fff;
  touch-action: none;
  cursor: crosshair;
}

.placement-preview {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.placement-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.placement-toolbar span {
  font-weight: 900;
  color: var(--blue);
}

.preview-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe6f2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.preview-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.placement-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 82%;
  padding: 8px 12px;
  border: 2px solid rgba(30, 58, 138, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.placement-marker:active {
  cursor: grabbing;
}

.watermark-marker {
  font-size: 26px;
  text-transform: uppercase;
}

.signature-marker {
  min-width: 120px;
  font-size: 28px;
}

.page-workspace {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.page-workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-workspace-head strong,
.page-workspace-head small {
  display: block;
}

.page-workspace-head small {
  color: var(--muted);
  margin-top: 3px;
}

.page-workspace-actions,
.page-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.page-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page-card.is-removed {
  border-color: #fda29b;
  background: #fff6f5;
}

.page-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px solid #d9e1ee;
  border-radius: 8px;
  background: #edf2fa;
  overflow: hidden;
  transition: transform 160ms ease;
}

.page-card.is-removed .page-card-visual::after {
  content: "Removed";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.76);
  color: #b42318;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-card canvas {
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
  background: #fff;
}

.page-number-preview {
  position: absolute;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  line-height: 1;
}

.page-card-meta {
  display: grid;
  gap: 8px;
}

.page-card-meta span {
  font-weight: 900;
  color: var(--blue);
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--blue-2);
  background: #eff6ff;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.status {
  min-height: 28px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.status.error {
  color: #b42318;
}

.result-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
}

.result-box a {
  color: #05603a;
  font-weight: 900;
}

.ad-slot {
  min-height: 96px;
  border: 1px dashed #c4ccd9;
  border-radius: var(--radius);
  background: #fff;
  color: #7a8494;
  display: grid;
  place-items: center;
  margin: 0 0 18px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
}

.tool-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sidebar-card {
  padding: 16px;
}

.sidebar-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.sidebar-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.content-block {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.content-block ol {
  margin: 0;
  padding-left: 22px;
}

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

.mini-grid div {
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.mini-grid svg {
  flex: 0 0 auto;
  color: var(--green);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

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

.blog-card a {
  display: block;
  min-height: 210px;
  padding: 18px;
  text-decoration: none;
}

.blog-card span {
  color: var(--coral);
  font-weight: 900;
  font-size: 13px;
}

.blog-card h2 {
  font-size: 22px;
}

.blog-card p,
.article p,
.article li {
  color: var(--muted);
}

.article {
  max-width: 860px;
  padding: 56px 22px;
}

.article section {
  margin-top: 28px;
}

.article.simple {
  min-height: 52vh;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  padding: 36px 22px 18px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 22px;
}

.footer-grid h2 {
  font-size: 15px;
  margin: 0 0 10px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 7px 0;
}

.footer-grid p,
.footer-note {
  color: var(--muted);
}

.footer-note {
  padding: 0 22px 28px;
  font-size: 14px;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .hero,
  .two-col,
  .tool-layout {
    grid-template-columns: 1fr;
  }

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

  .tool-grid,
  .blog-grid,
  .trust-band,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tool-sidebar {
    order: 2;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    padding-inline: 16px;
  }

  .hero,
  .section,
  .tool-layout,
  .article,
  .page-hero.compact,
  .tool-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    position: relative;
    display: block;
    min-height: 650px;
    overflow: hidden;
    padding-bottom: 18px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    font-size: 38px;
  }

  .tool-grid,
  .blog-grid,
  .trust-band,
  .mini-grid,
  .option-grid,
  .tool-grid.small,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    position: absolute;
    right: -88px;
    bottom: -34px;
    z-index: 1;
    width: 250px;
    min-height: 220px;
    overflow: hidden;
    opacity: 0.72;
  }

  .doc-stack {
    transform: scale(0.46);
    transform-origin: center;
  }

  .tool-panel,
  .content-block {
    padding: 16px;
  }

  .file-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
