.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 14px;background:#111;color:#fff;z-index:99;border-radius:8px;text-decoration:none;font-weight:700}
:root {
  --paper: #f4f6f8;
  --surface: #ffffff;
  --ink: #12202c;
  --muted: #5b6b78;
  --line: #d7dee6;
  --accent: #2F62B3;
  --accent-dark: #244E91;
  --accent-pale: #E8EEF9;
  --warn: #8a5a12;
  --warn-bg: #fff6e8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 32, 44, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
img, canvas { max-width: 100%; height: auto; display: block; }

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #2F62B3 url("favicon.svg") center / cover no-repeat;
  flex: none;
}
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--ink); }
.badge {
  font-size: 12px;
  color: var(--accent-dark);
  background: var(--accent-pale);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

main { max-width: 1120px; margin: 0 auto; padding: 8px 24px 72px; }
.hero { padding: 36px 0 28px; max-width: 760px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.hero-note { color: var(--muted); font-size: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button.secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--line);
}
.text-button {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 12px 0 40px;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 18px;
}
.workspace-heading h2 { margin: 4px 0 0; font-size: 24px; }
.section-index {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.format-note { color: var(--muted); font-size: 13px; }
.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.upload-action { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; }
.status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 14px;
}
.status.warn { background: var(--warn-bg); color: var(--warn); }
.status.error { background: #fdeeee; color: #8a1f1f; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.preview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.preview figcaption {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.canvas-frame {
  min-height: 240px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, #eceff3 25%, transparent 25%),
    linear-gradient(-45deg, #eceff3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eceff3 75%),
    linear-gradient(-45deg, transparent 75%, #eceff3 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  padding: 12px;
}
.canvas-frame canvas {
  max-height: 420px;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

section.block { margin: 48px 0; }
section.block h2 { margin: 0 0 14px; font-size: 28px; letter-spacing: -0.02em; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
}
.faq details p { color: var(--muted); margin: 10px 0 0; }

.notice {
  background: var(--warn-bg);
  border-left: 4px solid #d29a3a;
  border-radius: 8px;
  padding: 14px 16px;
  color: #5c4318;
  margin: 18px 0;
}

article.prose { max-width: 760px; }
article.prose h1 { margin-top: 12px; }
article.prose h2 { margin-top: 28px; }

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer nav { gap: 14px; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #e3a24a;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .preview-grid { grid-template-columns: 1fr; }
  .site-header { padding: 16px 18px; }
  main { padding: 0 18px 56px; }
  .workspace { padding: 16px; }
  h1 { font-size: 32px; }
  .canvas-frame { min-height: 180px; }
}

/* comparison tables (added 2026-11-11) */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.compare thead th { background: #EEF3FB; color: var(--accent-dark); font-weight: 700; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 600; }
.notice a { color: var(--accent-dark); font-weight: 600; }
.grid-2.grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid-2.grid-2x2 { grid-template-columns: 1fr; } }
:focus-visible { outline: 3px solid #244E91; outline-offset: 2px; }
