@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #52677b;
  --line: #d9e2ec;
  --line-strong: #b9c7d5;
  --paper: #ffffff;
  --canvas: #f4f7fa;
  --blue-soft: #eaf4fb;
  --orange: #f05d3a;
  --orange-dark: #c53d23;
  --orange-soft: #fff0ea;
  --teal: #0f766e;
  --teal-soft: #e8f7f4;
  --yellow: #f5b82e;
  --yellow-soft: #fff8dc;
  --danger: #c62828;
  --danger-soft: #fff0f0;
  --success: #147d4f;
  --success-soft: #e9f7ef;
  --shadow-sm: 0 2px 10px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 18px 50px rgba(16, 42, 67, 0.14);
  --radius: 18px;
  --radius-sm: 10px;
  --content: 1160px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-2);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #1877b9;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid rgba(16, 42, 67, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 14px 9px;
  color: #fff;
  background: var(--orange);
  transform: rotate(-3deg);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  transform: rotate(3deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.primary-nav > a,
.nav-group > button {
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-2);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-nav > a:hover,
.nav-group > button:hover,
.primary-nav > a[aria-current="page"] {
  color: var(--ink);
  background: var(--blue-soft);
}

.nav-cta {
  margin-left: 6px;
  color: #fff !important;
  background: var(--orange) !important;
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
}

.nav-group {
  position: relative;
}

.nav-group > button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.nav-menu[hidden] {
  display: none;
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--ink);
  background: var(--canvas);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.45rem);
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0 0 1.1em;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.section {
  padding: clamp(58px, 8vw, 100px) 0;
}

.section-tight {
  padding: 48px 0;
}

.section-tint {
  background: var(--canvas);
}

.section-dark {
  color: #e8f0f7;
  background: var(--ink);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(66px, 9vw, 118px) 0 72px;
  background:
    linear-gradient(120deg, rgba(234, 244, 251, 0.93), rgba(255, 255, 255, 0.78) 55%, rgba(255, 240, 234, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 51px, rgba(16, 42, 67, 0.035) 52px 53px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 75px solid rgba(240, 93, 58, 0.08);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
}

.hero h1 .signal {
  position: relative;
  color: var(--orange-dark);
}

.hero h1 .signal::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: 3px;
  left: -3px;
  height: 15px;
  background: rgba(245, 184, 46, 0.34);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: var(--orange);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  background: var(--orange-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

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

.button-secondary:hover {
  background: var(--blue-soft);
}

.button-dark {
  background: var(--ink);
}

.button-quiet {
  min-height: 44px;
  padding: 9px 14px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--canvas);
  font-size: 0.92rem;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.83rem;
  font-weight: 700;
}

.trust-row li::before {
  content: "✓";
  color: var(--success);
}

.poster-stack {
  position: relative;
  min-height: 520px;
}

.poster-sheet {
  position: absolute;
  inset: 20px 24px auto auto;
  width: min(100%, 360px);
  min-height: 470px;
  padding: 21px;
  border: 1px solid #cbd6df;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(2.4deg);
}

.poster-stack::before {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 88%;
  height: 86%;
  border: 2px solid var(--ink);
  background: var(--yellow-soft);
  transform: rotate(-5deg);
}

.poster-alert {
  margin-bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  background: var(--danger);
  font-size: 1.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.poster-photo {
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: linear-gradient(145deg, #dfe9f1, #f5f8fa);
  color: var(--muted);
}

.poster-photo svg {
  width: 88px;
  opacity: 0.58;
}

.poster-name {
  margin: 12px 0 4px;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 700;
  text-align: center;
}

.poster-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  font-size: 0.85rem;
}

.poster-facts div {
  padding: 6px 7px;
  background: var(--canvas);
}

.poster-contact {
  margin-top: 12px;
  padding: 9px;
  color: #fff;
  background: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.step-card {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  background: #fff;
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 48px;
  color: var(--orange-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 9px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
}

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

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

.info-card,
.guide-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.info-card h3,
.guide-card h3 {
  margin-bottom: 10px;
}

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

.guide-card {
  position: relative;
  padding-top: 86px;
  overflow: hidden;
}

.guide-card::before {
  content: attr(data-mark);
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--orange-dark);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.guide-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--orange-dark);
  font-weight: 700;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.spec-list li {
  min-height: 155px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.spec-list strong {
  display: block;
  color: var(--ink);
}

.spec-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.check-panel {
  padding: 28px;
  border-top: 5px solid var(--teal);
  background: var(--teal-soft);
}

.check-panel.urgent {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.plain-list,
.number-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.number-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid rgba(16, 42, 67, 0.12);
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.number-list {
  counter-reset: item;
}

.number-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  top: 11px;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.notice {
  padding: 18px 20px;
  border-left: 5px solid var(--yellow);
  background: var(--yellow-soft);
}

.notice strong {
  color: var(--ink);
}

.notice-danger {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.notice-success {
  border-color: var(--success);
  background: var(--success-soft);
}

.article-hero {
  padding: clamp(52px, 7vw, 84px) 0 42px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--blue-soft), #fff 68%);
}

.article-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.8vw, 3.7rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 64px;
}

.article-body h2 {
  margin-top: 58px;
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p,
.article-body li {
  max-width: 780px;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--canvas);
}

.article-aside h2 {
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.article-aside p {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-aside .button {
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--ink);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-item button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  color: var(--orange-dark);
  font-size: 1.6rem;
  font-weight: 400;
}

.faq-item button[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  padding: 0 48px 22px 0;
  color: var(--muted);
}

.faq-answer[hidden] {
  display: none;
}

.cta-band {
  padding: 46px 0;
  background: var(--orange-soft);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2 {
  margin-bottom: 6px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.cta-inner p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0 32px;
  color: #c8d7e5;
  background: #0b2239;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  max-width: 360px;
  margin-top: 14px;
  color: #9fb2c5;
  font-size: 0.9rem;
}

.footer-title {
  display: block;
  margin-bottom: 11px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  min-height: 38px;
  color: #c8d7e5;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #8ea4b8;
  font-size: 0.8rem;
}

/* Maker */
.maker-page {
  background: var(--canvas);
}

.maker-shell {
  width: min(calc(100% - 32px), 1380px);
  margin: 0 auto;
  padding: 32px 0 84px;
}

.maker-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.maker-topbar h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.maker-status {
  color: var(--muted);
  font-size: 0.86rem;
}

.maker-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.maker-progress button {
  width: 100%;
  min-height: 54px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.maker-progress button[aria-current="step"] {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.maker-progress button[data-complete="true"]::before {
  content: "✓ ";
  color: var(--success);
}

.maker-progress button[aria-current="step"][data-complete="true"]::before {
  color: #93e0ba;
}

.maker-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(440px, 1.08fr);
  align-items: start;
  gap: 24px;
}

.maker-panel,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.maker-panel {
  min-height: 640px;
  overflow: visible;
}

.maker-step {
  padding: clamp(22px, 3vw, 34px);
}

.maker-step[hidden] {
  display: none;
}

.maker-step h2 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.step-help {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.93rem;
}

.field {
  margin-bottom: 20px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.field .hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-2);
  background: #fff;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.error-text {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
}

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

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

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

.choice-card {
  position: relative;
  min-height: 54px;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card label {
  height: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-2);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.choice-card input:checked + label {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.choice-card input:focus-visible + label {
  outline: 3px solid #1877b9;
  outline-offset: 2px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row label {
  margin: 0;
}

.toggle {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b8c4cf;
  cursor: pointer;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease;
}

.toggle input:checked + span {
  background: var(--teal);
}

.toggle input:checked + span::after {
  transform: translateX(22px);
}

.toggle input:focus-visible + span {
  outline: 3px solid #1877b9;
  outline-offset: 3px;
}

.upload-zone {
  padding: 28px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--canvas);
  text-align: center;
}

.upload-zone.dragover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--blue-soft);
  font-size: 1.7rem;
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 34, 57, 0.82);
  cursor: pointer;
}

.photo-controls {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.control-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.control-line label {
  width: 58px;
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 700;
}

.control-line input[type="range"] {
  flex: 1;
}

.move-pad {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.move-pad button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.details-box {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.details-box summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.details-box summary::after {
  content: "+";
  color: var(--orange-dark);
  font-size: 1.3rem;
}

.details-box[open] summary::after {
  content: "−";
}

.details-inner {
  padding: 0 16px 16px;
}

.step-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.step-actions .button:last-child {
  margin-left: auto;
}

.preview-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 22px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.preview-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.preview-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.preview-stage {
  min-height: 645px;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  border-radius: 12px;
  background:
    linear-gradient(45deg, #dce4eb 25%, transparent 25%),
    linear-gradient(-45deg, #dce4eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dce4eb 75%),
    linear-gradient(-45deg, transparent 75%, #dce4eb 75%), #e9eef3;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.flyer-preview {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 210 / 297;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #aab8c4;
  color: #12263a;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.22);
}

.flyer-preview[data-format="square"] {
  aspect-ratio: 1;
}

.flyer-preview[data-format="story"] {
  aspect-ratio: 9 / 16;
  width: min(74%, 340px);
}

.flyer-preview[data-format="landscape"] {
  aspect-ratio: 16 / 9;
  width: min(100%, 560px);
}

.flyer-banner {
  padding: 2.8% 4%;
  color: #fff;
  background: var(--danger);
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-align: center;
}

.flyer-preview.is-found .flyer-banner {
  background: var(--success);
}

.flyer-main {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(0, 1.15fr) auto;
  gap: 3%;
  padding: 4%;
}

.flyer-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #142f49;
  background: linear-gradient(145deg, #dfe8ef, #f5f8fa);
}

.flyer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--photo-x, 0), var(--photo-y, 0)) scale(var(--photo-scale, 1)) rotate(var(--photo-rotate, 0deg));
}

.flyer-image .empty-photo {
  color: #60758a;
  text-align: center;
}

.flyer-image .empty-photo svg {
  width: 76px;
  margin: 0 auto 7px;
  opacity: 0.55;
}

.flyer-details {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 3%;
}

.flyer-name {
  margin: 0 0 2%;
  color: #102a43;
  font-size: clamp(1rem, 2.45vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.flyer-fact {
  margin: 0 0 1%;
  font-size: clamp(0.54rem, 1.22vw, 0.88rem);
  line-height: 1.45;
}

.flyer-fact strong {
  color: #102a43;
}

.flyer-instruction {
  padding: 4%;
  border: 2px solid var(--danger);
  color: var(--danger);
  background: #fff8f8;
  font-size: clamp(0.52rem, 1.1vw, 0.82rem);
  font-weight: 700;
  line-height: 1.45;
}

.flyer-contact {
  padding: 2.8% 4%;
  color: #fff;
  background: #102a43;
  font-size: clamp(0.7rem, 1.55vw, 1.1rem);
  font-weight: 700;
  text-align: center;
}

.flyer-contact.is-hidden {
  color: #102a43;
  background: #e8eef3;
}

.flyer-preview.template-urgent .flyer-banner {
  padding-block: 4%;
  font-size: clamp(1.15rem, 2.8vw, 2.1rem);
}

.flyer-preview.template-photo .flyer-main {
  grid-template-rows: minmax(0, 1.65fr) auto;
}

.flyer-preview.template-info .flyer-details {
  grid-template-columns: 1fr;
}

.flyer-preview.template-info .flyer-instruction {
  padding: 2.5%;
}

.flyer-preview.template-mono {
  filter: grayscale(1);
}

.flyer-preview.is-mono {
  filter: grayscale(1);
}

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

.template-option,
.format-option {
  position: relative;
}

.template-option input,
.format-option input {
  position: absolute;
  opacity: 0;
}

.template-option label,
.format-option label {
  min-height: 100px;
  display: block;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.template-option input:checked + label,
.format-option input:checked + label {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.template-option input:focus-visible + label,
.format-option input:focus-visible + label {
  outline: 3px solid #1877b9;
  outline-offset: 2px;
}

.mini-poster {
  width: 42px;
  height: 58px;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(var(--danger) 0 12px, #dfe8ef 12px 40px, var(--ink) 40px);
}

.template-option strong,
.format-option strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.template-option small,
.format-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.download-grid .button {
  min-height: 70px;
}

.privacy-strip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  color: #28564f;
  background: var(--teal-soft);
  font-size: 0.81rem;
}

.privacy-strip strong {
  display: block;
  color: var(--teal);
}

.toast-region {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  width: min(calc(100% - 40px), 380px);
}

.toast {
  padding: 15px 17px;
  border-left: 5px solid var(--teal);
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.prototype-note {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 0.84rem;
}

.mobile-preview-toggle {
  display: none;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(88vw, 390px);
    display: block;
    overflow-y: auto;
    padding: 18px;
    background: #fff;
    box-shadow: -18px 0 45px rgba(16, 42, 67, 0.16);
    transform: translateX(105%);
    transition: transform 180ms ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav > a,
  .nav-group > button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 12px 14px;
    text-align: left;
  }

  .nav-cta {
    justify-content: center !important;
    margin: 10px 0 0;
  }

  .nav-menu {
    position: static;
    width: 100%;
    margin-bottom: 8px;
    border: 0;
    box-shadow: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .poster-stack {
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .article-aside {
    position: static;
  }

  .maker-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
    display: none;
  }

  .preview-panel.is-visible {
    display: block;
  }

  .mobile-preview-toggle {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
  }

  .preview-stage {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 16px;
    line-height: 1.68;
  }

  .container,
  .narrow {
    width: min(calc(100% - 30px), var(--content));
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .poster-stack {
    min-height: 475px;
  }

  .poster-sheet {
    right: 7px;
    width: 92%;
    min-height: 430px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head,
  .cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .quick-check {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;
  }

  .step-card::before {
    margin-bottom: 22px;
  }

  .spec-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .maker-shell {
    width: calc(100% - 18px);
    padding-top: 20px;
  }

  .maker-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .maker-progress {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 7px;
  }

  .maker-progress li {
    flex: 0 0 112px;
    scroll-snap-align: start;
  }

  .maker-panel {
    min-height: 0;
  }

  .maker-step {
    padding: 22px 17px;
  }

  .field-grid,
  .field-grid-3,
  .choice-grid,
  .template-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid.inline-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-actions {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .step-actions .button {
    min-width: 0;
    padding-inline: 14px;
  }

  .preview-panel {
    padding: 14px;
  }

  .preview-stage {
    min-height: 430px;
    padding: 15px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .flyer-preview {
    width: min(100%, 360px);
  }

  .article-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .table-wrap {
    margin-right: -15px;
    margin-left: -15px;
    border-right: 0;
    border-left: 0;
  }

  th,
  td {
    min-width: 145px;
    padding: 12px 13px;
  }
}

@media (max-width: 430px) {
  .trust-row {
    display: grid;
  }

  .trust-row li {
    justify-content: center;
  }

  .spec-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .move-pad {
    grid-template-columns: repeat(5, 39px);
  }

  .move-pad button {
    width: 39px;
    height: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-aside,
  .cta-band {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .article-hero {
    padding: 20px 0;
  }
}
