:root {
  --red: #e2231a;
  --red-dark: #b11216;
  --navy: #0c2340;
  --navy-2: #16345c;
  --yellow: #f5b400;
  --paper: #f6f3ee;
  --card: #ffffff;
  --ink: #142033;
  --muted: #5c6b7a;
  --line: #e3dcd2;
  --ok: #1d6b45;
  --ok-bg: #e5f4ec;
  --warn-bg: #fff4d6;
  --bad-bg: #fde8e6;
  --shadow: 0 12px 30px rgba(12, 35, 64, 0.08);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 46% 28% at 100% 0%, rgba(245, 180, 0, 0.2), transparent 70%),
    radial-gradient(ellipse 34% 24% at 0% 8%, rgba(226, 35, 26, 0.1), transparent 68%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.7rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 1rem; background: #fff; padding: 0.4rem 0.6rem; z-index: 5; }

.site-header {
  background: #fff;
  border-bottom: 4px solid var(--navy);
  box-shadow: inset 0 -4px 0 var(--red);
}
.header-inner, .wrap, .site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; }
.wordmark { font-size: 1.55rem; color: var(--navy); }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; }
.nav a, .nav button.linkish {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.nav a:hover, .nav button.linkish:hover { color: var(--red); }

main { padding: 2rem 0 3rem; }
.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.lede { font-size: 1.15rem; color: var(--navy-2); max-width: 40rem; }
.hero-mark {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.hero-mark img { display: block; width: 100%; height: auto; }

.steps, .card-grid { display: grid; gap: 1rem; }
.steps { grid-template-columns: repeat(4, 1fr); margin: 1rem 0 2.5rem; }
.card, .panel, .auth-card, .price-card, .notice, .meter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card, .panel { padding: 1rem 1.1rem; }
.step-no {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  min-width: 1.7rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.price-card { padding: 1.4rem 1.5rem 1.5rem; max-width: 34rem; }
.price-line { color: var(--navy); font-size: 1.05rem; }
.price-figure {
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--navy);
  margin: 0.2rem 0;
}
.price-figure span { font-size: 1.1rem; color: var(--muted); margin-left: 0.35rem; }
.toggle {
  display: inline-flex;
  border: 1px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.4rem 0 0.8rem;
}
.toggle button {
  background: #fff;
  color: var(--navy);
  border: 0;
  padding: 0.45rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.fine, .help { color: var(--muted); font-size: 0.92rem; }
.feature-list { margin: 0.4rem 0 1rem; padding-left: 1.1rem; }
.feature-list li { margin: 0.25rem 0; }

.btn, button.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, button.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(12, 35, 64, 0.12); }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn.ghost:hover { color: var(--red); border-color: var(--red); background: #fff; }
.btn.small { padding: 0.35rem 0.75rem; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

label { display: block; font-weight: 700; margin: 0.8rem 0 0.3rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="password"], input[type="date"], input[type="search"], select, textarea {
  width: 100%;
  max-width: 36rem;
  border: 1px solid #c9c1b6;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 7rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}
.pw { position: relative; max-width: 36rem; }
.pw input { max-width: none; padding-right: 4.6rem; }
.pw-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.auth-card { max-width: 32rem; margin: 0 auto; padding: 1.4rem 1.4rem 1.6rem; }
.errors { background: var(--bad-bg); border-radius: 12px; padding: 0.7rem 0.9rem; }
.errors p, .notice p { margin: 0.2rem 0; }
.notice { padding: 0.9rem 1rem; margin: 0 0 1rem; }
.notice.info { background: #fff; }
.notice.ok { background: var(--ok-bg); }
.notice.warn, .notice.info { background: var(--warn-bg); }
.notice.bad { background: var(--bad-bg); }

.meter { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.bar { height: 12px; background: #efe8dc; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--navy); }
.bar.mid span { background: var(--yellow); }
.bar.full span { background: var(--red); }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: #efe8dc;
  color: var(--navy);
}
.badge.in_progress { background: var(--yellow); }
.badge.completed { background: var(--ok-bg); color: var(--ok); }
.badge.declined, .badge.void { background: var(--bad-bg); color: var(--red-dark); }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 1rem; }
.filters a { text-decoration: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.25rem 0.7rem; color: var(--navy); }
.filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.signer-row, .inline-form { display: grid; gap: 0.5rem; grid-template-columns: 0.8fr 1fr 1.2fr auto; align-items: end; margin-bottom: 0.5rem; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.plan-grid .price-card { max-width: none; }
.signer-row input { max-width: none; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.8rem 0; }
.check input { margin-top: 0.35rem; }
.check label { margin: 0; font-weight: 500; }

.editor {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 1rem;
  align-items: start;
}
.palette, .props { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem; }
.palette button, .tool {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0.3rem 0;
  background: #fff;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.palette button.on, .tool.on { background: var(--navy); color: #fff; }
.pdf-page {
  position: relative;
  margin: 0 auto 1rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-overlay { position: absolute; inset: 0; }
.field {
  position: absolute;
  border: 2px solid var(--navy);
  background: rgba(245, 180, 0, 0.28);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  cursor: move;
  touch-action: none;
}
.field.is-selected { border-color: var(--red); background: rgba(226, 35, 26, 0.18); }
.field span { display: block; padding: 2px 4px; pointer-events: none; }
.field-resize {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  background: var(--red);
  border: 0;
  cursor: nwse-resize;
  padding: 0;
}
.sign-field {
  position: absolute;
  border: 2px dashed var(--navy);
  background: rgba(255, 255, 255, 0.86);
  padding: 2px;
  overflow: hidden;
}
.sign-field input, .sign-field textarea { max-width: none; width: 100%; height: 100%; padding: 2px 4px; }
.sign-field img.sig-preview { max-height: 70%; display: block; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 20;
}
.modal.open { display: flex; }
.modal .panel { width: min(560px, 100%); }
.tabs { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
#draw-pad, #type-preview {
  width: 100%;
  height: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  touch-action: none;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.mark-ok { color: var(--ok); font-weight: 800; }
.mark-no { color: var(--red); font-weight: 800; }
.saved { display: inline-block; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 0.1rem 0.5rem; font-weight: 700; font-size: 0.85rem; }

@font-face {
  font-family: "Great Vibes";
  src: url("/assets/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-display: swap;
}

.card, .price-card, .flow-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .price-card:hover, .flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(12, 35, 64, 0.14);
}

.page-home {
  background:
    radial-gradient(ellipse 42% 32% at 88% 8%, rgba(245, 180, 0, 0.28), transparent 70%),
    radial-gradient(ellipse 36% 28% at 8% 18%, rgba(226, 35, 26, 0.14), transparent 68%),
    radial-gradient(ellipse 50% 36% at 50% 0%, rgba(12, 35, 64, 0.07), transparent 72%),
    var(--paper);
}
.page-home .hero { margin-bottom: 1.2rem; }
.page-home .hero.hero-stack { grid-template-columns: 1fr; align-items: start; }
.walk { margin: 0.4rem auto 0; width: 100%; max-width: 880px; justify-self: center; }
.walk-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.walk-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.walk-slide.is-on { opacity: 1; z-index: 1; }
.walk-slide picture { display: block; width: 100%; height: 100%; }
.walk-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; }
.walk-cap {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(12, 35, 64, 0.88);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  font-weight: 700;
}
.walk-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  flex: none;
}
.walk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.7rem;
}
.walk-dots { display: flex; gap: 0.45rem; }
.walk-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.walk-dot.is-on { background: var(--red); border-color: var(--red); }
.walk-replay[hidden] { display: none !important; }
.walk.is-static .walk-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.walk.is-static .walk-slide {
  position: relative;
  opacity: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.walk.is-static .walk-replay, .walk.is-static .walk-dots { display: none; }
.walk.is-static .walk-slide picture { aspect-ratio: 4 / 3; height: auto; }
.walk.is-static .walk-slide img { height: 100%; }
.page-home .hero-mark {
  position: relative;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.page-home .hero-mark::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle, rgba(245, 180, 0, 0.55), rgba(226, 35, 26, 0.16) 42%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.mark-svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.mark-pole { fill: var(--navy); }
.mark-ribbon, .mark-ribbon-ghost { fill: none; stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; }
.mark-ribbon-ghost { stroke: rgba(226, 35, 26, 0.28); }
.mark-ribbon { stroke: var(--red); stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: draw-ribbon 1.6s ease forwards; }
.mark-nib { fill: var(--navy); }
.mark-flag { transform-origin: 214px 190px; animation: flag-wave 3.6s ease-in-out 1.4s infinite; }
.mark-check, .mark-check-ghost { fill: none; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.mark-check-ghost { stroke: rgba(245, 180, 0, 0.55); }
.mark-check {
  stroke: var(--yellow);
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transform-box: fill-box;
  transform-origin: center;
  animation: draw-check 0.55s ease 1.15s forwards, check-pop 0.4s ease 1.45s both;
}
@keyframes draw-ribbon { to { stroke-dashoffset: 0; } }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes flag-wave {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  50% { transform: rotate(-2deg) skewX(-4deg); }
}
@keyframes check-pop {
  0% { transform: scale(0.55); }
  65% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.demo { margin: 0.4rem 0 2.4rem; color: var(--ink); }
.demo-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; }
.demo-head h2 { color: var(--navy); }
.demo-replay { flex: 0 0 auto; }
.demo-caption { color: var(--navy); font-weight: 700; min-height: 1.5em; }
.demo-hover-note { color: var(--muted); font-size: 0.92rem; margin: 0.2rem 0 0.6rem; }
.demo-progress { height: 4px; background: #efe8dc; border-radius: 999px; overflow: hidden; margin-bottom: 0.8rem; }
.demo-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--red)); }
.demo-stage { max-width: 760px; }
.demo-app {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border-bottom: 4px solid var(--navy);
  box-shadow: inset 0 -4px 0 var(--red);
}
.demo-chrome img { width: 28px; height: 28px; }
.demo-word { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.demo-crumb { margin-left: auto; color: var(--muted); font-size: 0.92rem; }
.demo-body { position: relative; min-height: 340px; background: #f3efe8; }
.scene { display: none; padding: 1.1rem 1.15rem 1.25rem; color: var(--ink); }
.scene h3 { color: var(--navy); }
.scene.is-on { display: block; }
.demo-stage[data-step="done"] .scene-done { display: block; }
.is-running .scene { display: none; }
.is-running .scene.is-on { display: block; }

.drop {
  margin-top: 0.6rem;
  border: 2px dashed var(--navy);
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--navy);
  text-align: center;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.pdf-ico {
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.3rem;
}
.is-running .scene-upload.is-on .fly-file { animation: drop-file 0.7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes drop-file {
  0% { transform: translateY(-18px); }
  100% { transform: none; }
}

.editor-mock { display: grid; grid-template-columns: 148px 1fr; gap: 0.8rem; align-items: start; }
.pal { display: grid; gap: 0.35rem; }
.pal-btn, .demo-btn, .sign-tabs span {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.pal-btn.on, .sign-tabs span.on { background: var(--navy); color: #fff; }
.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 230px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.sheet-line { height: 8px; border-radius: 999px; background: #efe8dc; margin: 0.55rem 0; }
.sheet-line.short { width: 55%; }
.sheet-who { color: var(--muted); font-size: 0.88rem; margin: 0.7rem 0 0; }
.slot { position: relative; height: 58px; margin-top: 0.8rem; }
.field-ghost, .placed-sign {
  position: absolute;
  left: 0;
  top: 8px;
  width: 46%;
  min-width: 140px;
  height: 42px;
  border: 2px solid var(--navy);
  background: rgba(245, 180, 0, 0.35);
  color: var(--navy);
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}
.placed-sign { font-family: "Great Vibes", cursive; font-size: 1.7rem; font-weight: 400; background: transparent; border-style: dashed; }
.is-running .scene-field.is-on .field-ghost { animation: place-field 1.5s ease both; }
@keyframes place-field {
  0% { transform: translate(-130px, -36px); opacity: 0.35; }
  100% { transform: none; opacity: 1; }
}

.sign-modal {
  width: min(440px, 100%);
  margin: 0.4rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
}
.sign-tabs { display: flex; gap: 0.35rem; margin-bottom: 0.6rem; }
.sign-pad {
  position: relative;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.ink-svg { width: 100%; height: 110px; display: block; }
.ink-path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}
.is-running .scene-sign.is-on .ink-path { animation: draw-ink 1.7s ease forwards; }
@keyframes draw-ink { to { stroke-dashoffset: 0; } }
.typed-name {
  position: absolute;
  left: 1rem;
  bottom: 0.35rem;
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: 1.8rem;
  color: var(--navy);
  opacity: 0;
}
.is-running .scene-sign.is-on .typed-name { animation: fade-name 0.6s ease 1.1s forwards; }
@keyframes fade-name { to { opacity: 1; } }

.scene-done .editor-mock { grid-template-columns: 1fr; }
.sheet-signed { position: relative; min-height: 240px; }
.signed-badge {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  box-shadow: var(--shadow);
  color: var(--navy);
}
.pop-check { width: 42px; height: 42px; }
.pop-check circle { fill: var(--yellow); }
.pop-check polyline { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.is-running .scene-done.is-on .pop-check { transform-box: fill-box; transform-origin: center; animation: check-pop 0.5s cubic-bezier(.2,1.4,.4,1) both; }
.dl-row { margin-top: 0.8rem; }
.demo-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
}
.scene-download .dl { margin: 0.9rem 0; }
.is-running .scene-download.is-on .dl { animation: press 0.9s ease 0.25s both; }
@keyframes press {
  0% { transform: scale(1); }
  40% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
.is-running .scene-download.is-on .dl-file { animation: drop-file 0.45s ease 0.7s both; }
.signed-pill {
  display: inline-block;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-right: 0.4rem;
}
.doc-row { color: var(--navy); font-weight: 700; }
.is-running .scene-done .dl-row { display: none; }

.demo-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0.8rem 0 0;
  margin: 0;
  max-width: 760px;
}
.demo-step-list li {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.demo-step-list li.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }

.flow { margin: 0.4rem 0 2.2rem; }
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem 1.1rem 1.15rem; }
.flow-ico {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--yellow);
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
}
.flow-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feature-block { margin-bottom: 2rem; }
.home-pricing { margin-bottom: 0.5rem; }

.js-motion .reveal { opacity: 0; transform: translateY(14px); }
.js-motion .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }

@media (max-width: 900px) {
  .hero, .steps, .editor, .signer-row, .plan-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.8rem 0; }
  .page-home .hero-mark { max-width: 260px; margin: 0 auto; }
  .walk { max-width: none; }
  .walk.is-static .walk-frame { grid-template-columns: 1fr; }
  .demo-head { flex-direction: column; align-items: flex-start; }
  .flow-steps, .editor-mock { grid-template-columns: 1fr; }
  .pal { grid-template-columns: repeat(3, 1fr); }
  .demo-body { min-height: 390px; }
}
@media (max-width: 900px) {
  .is-running .scene-field.is-on .field-ghost { animation-name: place-field-sm; }
}
@keyframes place-field-sm {
  0% { transform: translate(0, -64px); opacity: 0.35; }
  100% { transform: none; opacity: 1; }
}

.toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(380px, calc(100% - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toasts .notice { margin: 0; animation: toast-in 0.35s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.2rem;
  text-align: center;
  max-width: 36rem;
}
.empty-art { width: 84px; height: 84px; margin-bottom: 0.4rem; }
.done-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.done-banner p { margin: 0; color: var(--navy); font-weight: 700; }
.done-mark { width: 56px; height: 56px; flex: none; animation: check-pop 0.5s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-mark circle { fill: var(--yellow); }
.done-mark polyline { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sign-progress {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.sign-progress li {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.4rem;
  font-weight: 700;
  color: var(--muted);
}
.sign-progress li.is-on { color: var(--navy); border-color: var(--navy); }
.sign-progress li.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.auth-card { border-top: 6px solid var(--red); }
.table-wrap { box-shadow: var(--shadow); }
tbody tr:hover td { background: #fffaf3; }
.palette, .props { box-shadow: var(--shadow); }
.palette button, .tool, .toggle button, .pw-toggle, .filters a {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
input, select, textarea { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .price-card:hover, .flow-card:hover { transform: none; }
  .mark-ribbon, .mark-check, .mark-flag { animation: none; }
  .mark-ribbon, .mark-check { stroke-dashoffset: 0; }
  .mark-ribbon-ghost, .mark-check-ghost { display: none; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .demo-hover-note, .demo-replay { display: none; }
  .scene, .is-running .scene { display: none; animation: none; }
  .scene-done, .is-running .scene-done, .demo-stage[data-step="done"] .scene-done { display: block; }
  .is-running .scene-done .dl-row { display: block; }
  .ink-path, .typed-name, .fly-file, .field-ghost, .pop-check, .dl, .dl-file, .done-mark, .toasts .notice, .walk-slide { animation: none !important; transition: none !important; }
  .walk-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; aspect-ratio: auto; overflow: visible; background: transparent; box-shadow: none; }
  .walk-slide { position: relative; opacity: 1; border-radius: 16px; overflow: hidden; }
  .walk-slide picture { aspect-ratio: 4 / 3; height: auto; }
  .walk-slide img { height: 100%; object-fit: cover; }
  .walk-dots { display: none; }
  .walk-replay { display: none; }
  .btn:hover, button.btn:hover, .card:hover, .price-card:hover, .flow-card:hover { transform: none; }
  .ink-path { stroke-dashoffset: 0; }
  .typed-name { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .walk-frame { grid-template-columns: 1fr; }
}
