@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("vendor/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("vendor/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("vendor/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("vendor/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #222222;
  --bg-2: #2a2a2a;
  --bg-3: #383838;
  --well: #1b1b1b;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --text: #f3f3f1;
  --text-2: #b4b4b0;
  --dim: #8d8d89;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-2: #818cf8;
  --accent-3: #a5b4fc;
  --ok: #6ee7b7;
  --warn: #fcd34d;
  --err: #fca5a5;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  /* Clean output: no blue tint behind XFA form fields */
  --xfa-unfocused-field-background: none;
  --xfa-focus-outline: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }

.ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }

.frame {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

[id] { scroll-margin-top: 84px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(34, 34, 34, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  height: 64px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo img { width: 28px; height: 28px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-fill {
  flex: 1;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 10px);
}

.nav-right {
  display: flex;
  align-items: center;
  padding: 0 12px 0 14px;
  border-left: 1px solid var(--line);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s;
}

.pill-btn:hover { border-color: rgba(255, 255, 255, 0.32); background: var(--bg-3); }
.pill-btn .ic { width: 14px; height: 14px; color: var(--accent-3); }

@media (min-width: 820px) {
  .nav-links { display: flex; }
}

@media (max-width: 639px) {
  .frame { width: 100%; }
  .nav-inner { border-left: 0; border-right: 0; }
  .nav-logo { padding: 0 14px; font-size: 16px; }
  .nav-fill { display: none; }
  .nav-right { margin-left: auto; }
}

/* Hero */
.hero {
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) var(--pad) clamp(56px, 7vw, 88px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 42% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 70%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% 44%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 62% 72% at 50% 44%, #000 18%, transparent 74%);
}

.hero-bg i { position: absolute; width: 56px; height: 56px; background: rgba(255, 255, 255, 0.045); }
.hero-bg i:nth-child(1) { left: calc(50% - 28px - 336px); top: 56px; }
.hero-bg i:nth-child(2) { left: calc(50% - 28px + 280px); top: 0; }
.hero-bg i:nth-child(3) { left: calc(50% - 28px - 448px); top: 224px; }
.hero-bg i:nth-child(4) { left: calc(50% - 28px + 392px); top: 112px; }
.hero-bg i:nth-child(5) { left: calc(50% - 28px - 168px); top: 392px; background: rgba(99, 102, 241, 0.16); }
.hero-bg i:nth-child(6) { left: calc(50% - 28px + 168px); top: 448px; }
.hero-bg i:nth-child(7) { left: calc(50% - 28px + 504px); top: 336px; }
.hero-bg i:nth-child(8) { left: calc(50% - 28px - 560px); top: 392px; }
.hero-bg i:nth-child(9) { left: calc(50% - 28px - 56px); top: 0; background: rgba(255, 255, 255, 0.025); }
.hero-bg i:nth-child(10) { left: calc(50% - 28px + 56px); top: 504px; }
.hero-bg i:nth-child(11) { left: calc(50% - 28px - 280px); top: 504px; }
.hero-bg i:nth-child(12) { left: calc(50% - 28px + 616px); top: 56px; }

.hero-content { position: relative; max-width: 920px; margin: 0 auto; }

.h1, .h2 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

.h1 {
  font-size: clamp(42px, 7.6vw, 84px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.h1 .line { display: block; }
.h1 .dim { color: var(--dim); }
.h1 .dot { color: var(--accent-2); }

.chip {
  display: inline-grid;
  place-items: center;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.18em;
  vertical-align: 0.06em;
  border-radius: 0.18em;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, 0.35);
  transform: rotate(-6deg);
}

.chip .ic { width: 58%; height: 58%; }

.sub {
  max-width: 580px;
  margin: 26px auto 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
}

.checks { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.check + .check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: var(--line-2);
  transform: translateY(-50%);
}

.check .ic { width: 15px; height: 15px; color: var(--accent-2); }
.check:nth-child(2) .ic { color: var(--ok); }
.check:nth-child(3) .ic { color: var(--warn); }

@media (max-width: 639px) {
  .check + .check::before { display: none; }
}

.hero-actions { display: flex; justify-content: center; margin-top: 40px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-content > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: 0.08s; }
.hero-content > :nth-child(3) { animation-delay: 0.16s; }
.hero-content > :nth-child(4) { animation-delay: 0.24s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.hero-actions .btn-primary .ic { transition: transform 0.2s; }
.hero-actions .btn-primary:hover .ic { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.32); }
.btn:disabled { opacity: 0.5; cursor: progress; transform: none; }

/* Tool */
.tool-section { padding: 0 var(--pad); }

.tool-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px);
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  color: #e5e7eb;
}

.tool-title { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.tool-hint { margin: 0 0 18px; color: #9ca3af; }

.note, .alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.note p, .alert p { margin: 0; }
.note .ic, .alert .ic { margin-top: 3px; }

.note {
  background: rgba(30, 58, 138, 0.2);
  border: 1px solid rgba(29, 78, 216, 0.5);
  color: #93c5fd;
}

.note strong { color: #bfdbfe; }

.alert {
  margin: 16px 0 0;
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: var(--err);
}

.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: clamp(190px, 26vw, 250px);
  padding: 24px;
  border: 2px dashed #4b4b4b;
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop:hover, .drop.dragging { background: var(--bg-3); }
.drop.dragging { border-color: var(--accent); }
.drop:focus-within { outline: 2px solid var(--accent-3); outline-offset: 3px; }

.drop-icon { width: 36px; height: 36px; margin-bottom: 10px; color: #9ca3af; stroke-width: 1.6; }
.drop-title { font-size: 14px; color: #9ca3af; }
.drop-title strong { color: #d1d5db; font-weight: 600; }
.drop-hint { font-size: 12px; color: #6b7280; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--bg-3);
  border-radius: 8px;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.16);
  color: var(--accent-3);
  flex: none;
}

.file-icon .ic { width: 20px; height: 20px; }
.file-text { flex: 1; min-width: 0; }
.file-text p { margin: 0; }
.file-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 13px; color: var(--dim); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.icon-btn:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-btn:disabled { opacity: 0.4; cursor: progress; }

.progress { margin-top: 16px; }

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.progress-bar.indeterminate span {
  width: 35% !important;
  animation: slide 1.2s ease-in-out infinite;
}

@keyframes slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(290%); }
}

.progress-text { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }

.actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.done-text { margin: 10px 0 0; min-height: 1.3em; font-size: 13px; color: var(--ok); }
.done-text:empty { display: none; }

.preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 28px 16px 24px;
  max-height: 80vh;
  overflow: auto;
  background: var(--well);
  border: 1px solid var(--bg-3);
  border-radius: 8px;
}

.preview:empty { display: none; }

/* A form page: always white paper */
.page {
  position: relative;
  flex: none;
  color-scheme: light;
  background: #fff;
  color: #000;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.page-frame { flex: none; }
.page { transform-origin: 0 0; }
.page canvas { display: block; width: 100%; height: 100%; }
.page .xfaLayer { color: #000; }

.page-label { margin: -12px 0 0; font-size: 12px; color: var(--dim); }

/* Review-copy cleanup: no required-field outlines, dropdown arrows or form buttons */
.page .xfaLayer *:required { outline: none; }
.page .xfaTextfield,
.page .xfaSelect { background: transparent; }
.page .xfaSelect {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-indent: 1px;
  text-overflow: "";
}
.page .xfaButton,
.page .js-warning { visibility: hidden; }

@media (max-width: 720px) {
  .actions { grid-template-columns: 1fr; }
  .preview { max-height: none; padding: 20px 12px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) var(--pad) 0; }

.h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 36px auto 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 10px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.steps h3 { margin: 4px 0 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.steps p { margin: 0; font-size: 14px; color: var(--text-2); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

.faq {
  max-width: 760px;
  margin: 32px auto 0;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-3); }
.faq summary .ic { width: 18px; height: 18px; color: var(--dim); transition: transform 0.2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; max-width: 68ch; color: var(--text-2); }

/* Footer */
.footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 40px var(--pad) 48px;
}

.footer-brand { max-width: 460px; }
.footer-logo { padding: 0; border: 0; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.footer-brand .footer-dim { margin-top: 8px; font-size: 13px; color: var(--dim); }

.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--text); }
.footer-links a { color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Printing: only the form pages, at true size (1pt = 1.333 CSS px) */
@media print {
  body { background: #fff; }
  .nav, .hero, .section, .footer, .tool-title, .tool-hint, .note, .drop, .alert,
  .file-row, .progress, .actions, .done-text, .page-label, svg[aria-hidden] { display: none !important; }
  .tool-section, .tool-card, .workspace, .preview {
    display: block !important;
    margin: 0;
    padding: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .frame { width: auto; }
  .page-frame {
    width: auto !important;
    height: auto !important;
    break-after: page;
    page-break-after: always;
  }
  .page-frame:last-of-type { break-after: auto; page-break-after: auto; }
  .page {
    zoom: 1.3333;
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
  }
}
