:root {
  color-scheme: light;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.6;
  color: #142238;
  background: #f3f6fb;
  --ink: #142238;
  --muted: #53627a;
  --line: #dfe6f0;
  --blue: #2251c7;
  --blue-dark: #1944b0;
  --blue-soft: #e9efff;
  --green: #17613e;
  --green-soft: #e7f5ee;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #de660e; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.page-width { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; color: var(--ink); background: white; border-radius: 8px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.hero {
  color: #fff;
  background: radial-gradient(ellipse at 84% 31%, #254278 0%, transparent 56%), linear-gradient(125deg, #0e192e 8%, #15274b 88%);
  border-bottom: 4px solid #3567e0;
}
.header { height: 70px; border-bottom: 1px solid #ffffff26; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.04em; }
.brand img { width: 61px; height: 39px; padding: 4px; object-fit: contain; background: #fff; border-radius: 7px; }
.access { display: inline-flex; align-items: center; gap: 8px; color: #dbe6fc; font-size: .875rem; font-weight: 700; }
.access > span { width: 8px; height: 8px; border-radius: 50%; background: #91edbd; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 6px clamp(12px, 2.7vw, 33px); }
.portal-nav a { color: #edf3ff; text-decoration: none; font-weight: 700; font-size: .93rem; }
.portal-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.portal-actions, .map-links { display: flex; flex-wrap: wrap; gap: 9px; }
.portal-actions .secondary-start { color: #eef3ff; background: #ffffff0e; border: 1px solid #b9d0fb83; }
.portal-actions .secondary-start:hover { background: #ffffff21; }
.portal-section { border-bottom: 1px solid var(--line); padding-block: clamp(30px, 5vw, 56px); scroll-margin-top: 16px; }
.map-intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 46px); align-items: center; }
.map-intro h2 { margin-block: 5px 11px; font-size: clamp(2rem, 4vw, 3rem); }
.map-intro p:not(.kicker), .portal-card p, .portal-lead, .portal-note { color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.map-links { margin-top: 18px; }
.map-brand { margin: 0; min-width: 0; min-height: 175px; display: grid; place-items: center; padding: 26px; border: 1px solid #d7e6ff; border-radius: 16px; background: radial-gradient(ellipse at 30% 5%, white, #e8f1ff); }
.map-brand img { display: block; max-width: 100%; width: 300px; height: auto; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.map-features { margin-top: 20px; }
.windows-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-card { display: grid; align-content: start; gap: 9px; min-width: 0; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: 13px; background: white; }
.portal-card h3, .portal-card h4 { margin: 0; color: var(--ink); font-size: 1.2rem; letter-spacing: -.035em; }
.portal-note { margin-top: 13px; }
.map-features + .portal-note { padding: 14px 16px; border-left: 3px solid var(--blue); background: #eaf1fd; color: #304463; }
.portal-note strong { color: var(--ink); margin-right: .4em; }
.portal-lead { margin-top: 10px; max-width: 700px; }
.download-group { margin-top: 25px; }
.download-group > h3 { margin-bottom: 11px; font-size: 1.35rem; }
.download-card { grid-template-rows: auto 1fr auto auto; }
.download-meta { color: var(--muted); font-size: .9rem; }
.primary-link, .platform-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; text-align: center; }
.primary-link { justify-self: start; padding: 7px 13px; border-radius: 8px; background: var(--blue-dark); color: white; font-weight: 800; }
.primary-link:hover { background: #153585; }
.download-card .primary-link { margin-top: 4px; }
@media (max-width: 700px) {
  .portal-nav { gap: 4px 11px; }
  .portal-nav a { font-size: .875rem; }
  .map-intro, .portal-grid, .windows-downloads { grid-template-columns: 1fr; }
  .map-brand { min-height: 130px; padding: 16px; }
  .map-brand img { width: 220px; }
}
@media (max-width: 380px) {
  .header:has(.portal-nav) { height: auto; min-height: 70px; padding-block: 10px; flex-wrap: wrap; gap: 6px; justify-content: start; }
}
.hero-body { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(28px, 7vw, 96px); padding: 44px 0 48px; }
.kicker { font-size: .875rem; font-weight: 800; letter-spacing: -.015em; color: var(--blue-dark); }
.hero .kicker { color: #a2bcff; }
h1 { margin-top: 7px; font-size: clamp(2.05rem, 4.25vw, 3.4rem); line-height: 1.15; letter-spacing: -.06em; overflow-wrap: anywhere; word-break: keep-all; }
.hero-description { max-width: 420px; margin-top: 17px; color: #d5e1fc; font-size: 1rem; word-break: keep-all; }
.start { display: inline-flex; align-items: center; min-height: 47px; margin-top: 21px; padding: 8px 18px; border-radius: 9px; color: #142a59; font-weight: 800; background: #fff; text-decoration: none; transition: background .15s ease; }
.start:hover { background: #e8efff; }
.route-preview { border: 1px solid #90b1ef4f; border-radius: 17px; padding: 20px; background: #0f1d3899; box-shadow: 0 16px 34px #0810273d; }
.route-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; gap: 12px; font-weight: 800; }
.route-title > :last-child { color: #cad9fa; font-weight: 600; font-size: .875rem; }
.route-preview ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.route-preview li { min-width: 0; display: grid; gap: 10px; border: 1px solid #82a6ff42; padding: 12px 11px; border-radius: 10px; background: #1d355f; word-break: keep-all; }
.route-preview li b { align-self: start; justify-self: start; background: #314c82; border-radius: 5px; color: #eff4ff; padding: 2px 8px; font: 700 .8rem/1.5 ui-monospace, monospace; }
.route-preview li strong, .route-preview li small { display: block; }
.route-preview li small { color: #dae5ff; font-size: .875rem; }

.main { padding-top: 31px; scroll-margin-top: 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2rem); letter-spacing: -.055em; line-height: 1.25; }
.section-heading .kicker { margin-bottom: 3px; }
.quiet-button { flex: none; padding: 8px 13px; min-height: 42px; background: #fff; color: var(--muted); border: 1px solid #cdd7e6; border-radius: 8px; font-size: .9rem; font-weight: 700; }
.quiet-button:hover { border-color: #7489a8; color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
.steps button { display: flex; min-width: 0; min-height: 64px; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; color: var(--ink); background: #fff; border: 1px solid #d2ddea; border-radius: 10px; line-height: 1.3; }
.steps button:disabled { color: #576782; background: #f5f7fa; }
.steps button:not(:disabled):hover { border-color: #6d93ea; }
.steps button[aria-current='step'] { background: #ebf1ff; border-color: #6b8ee5; color: #183a9d; }
.steps small { display: block; margin-top: 3px; font-size: .875rem; }
.step-index { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: #e9edf5; color: #536582; }
.steps button[aria-current='step'] .step-index { background: var(--blue); color: white; }
.steps .is-complete:not([aria-current='step']) .step-index { color: var(--green); background: var(--green-soft); }

.demo-layout { display: grid; grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px #34517d0d; padding: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-role { color: var(--muted); font-weight: 700; font-size: .875rem; }
h3 { font-size: 1.43rem; line-height: 1.25; letter-spacing: -.045em; }
h3:focus { outline: none; }
.status, .test-label { padding: 4px 9px; border-radius: 6px; font-size: .875rem; font-weight: 800; color: var(--blue-dark); flex-shrink: 0; background: var(--blue-soft); }
.status-complete { color: var(--green); background: var(--green-soft); }
.order { background: #f7f9fd; border: 1px solid #e3eaf4; padding: 12px 14px; border-radius: 10px; }
.order-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.order-header > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.order-label { font-size: .875rem; color: var(--muted); font-weight: 700; }
#order-id { font: 800 1rem/1.4 ui-monospace, monospace; color: #1c3460; }
.test-label { padding-block: 2px; color: #485a78; background: #e9edf5; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 10px 0 0; }
dt { color: var(--muted); font-size: .875rem; }
dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.stage-detail { min-height: 68px; margin-top: 12px; color: var(--muted); font-size: 1rem; word-break: keep-all; }
.assignee { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 8px; padding: 4px 10px; background: #ecf2ff; color: #244281; border-radius: 6px; }
.assignee small { font-size: .875rem; }
.panel-actions { display: grid; gap: 5px; align-items: end; }
#live-message { min-height: 19px; color: #36516f; font-size: .875rem; }
.action { min-height: 47px; width: 100%; background: var(--blue); color: white; border: 0; border-radius: 8px; font-weight: 800; transition: background .15s ease; }
.action:hover { background: var(--blue-dark); }

.timeline { margin: 3px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; min-height: 63px; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; top: 38px; left: 6px; bottom: -26px; width: 2px; background: #dfe7f3; }
.timeline-mark { z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #e3eaf6; border: 2px solid #fff; outline: 1px solid #ccd7e8; }
.timeline li[data-state='active'] .timeline-mark { background: #3664d2; outline-color: #6e90e0; }
.timeline li[data-state='done'] .timeline-mark { background: #26885b; outline-color: #59a37f; }
.timeline li strong, .timeline li small { display: block; }
.timeline li small, .event-state { color: var(--muted); font-size: .875rem; }
.event-state { font-weight: 700; }
.timeline li[data-state='active'] .event-state { color: var(--blue-dark); }
.timeline li[data-state='done'] .event-state { color: var(--green); }
.timeline-summary { border-radius: 9px; margin-top: 10px; padding: 11px; color: var(--green); background: var(--green-soft); }
.timeline-summary p { margin-top: 3px; font-size: .875rem; word-break: keep-all; }

.reference { padding: 11px 15px; margin-top: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.reference summary { color: var(--ink); font-weight: 800; }
.reference > p, .notice { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.notice { margin-top: 12px; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; align-items: start; }
.evidence-card { display: grid; gap: 12px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8faff; }
.evidence-title h3 { margin-top: 3px; font-size: 1.125rem; }
.evidence-list { margin: 0; padding-inline-start: 1.15em; font-size: 1rem; }
.evidence-list li + li { margin-top: 2px; }
.evidence-record { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.evidence-record p { overflow-wrap: anywhere; }
.evidence-record ol { margin: 0; padding-inline-start: 1.4em; }
.evidence-record ol li + li { margin-top: 2px; }
.evidence-description { font-size: 1rem; word-break: keep-all; }
.evidence-link { display: grid; gap: 9px; text-decoration: none; }
.evidence-image { display: block; overflow: hidden; border-radius: 7px; border: 1px solid #d2ddea; background: #fff; }
.evidence-image img { display: block; width: 100%; height: auto; }
.evidence-image-shop img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.evidence-open { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 12px; color: var(--blue-dark); font-size: .9375rem; font-weight: 800; text-align: center; text-decoration: none; background: #e9efff; border-radius: 7px; }
.evidence-link:hover .evidence-open { text-decoration: underline; }
.footer { margin-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; padding-block: 16px 20px; color: var(--muted); font-size: .875rem; }
.footer > :first-child { color: var(--ink); font-weight: 800; }

@media (max-width: 720px) {
  .page-width { width: calc(100% - 32px); }
  .header { height: 61px; }
  .hero-body { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .route-preview { display: none; }
  .main { padding-top: 23px; }
  .demo-layout { grid-template-columns: 1fr; }
  .steps button { min-height: 61px; padding: 6px; gap: 5px; }
  .step-index { width: 23px; height: 23px; flex-basis: 23px; font-size: .875rem; }
  .steps button b { font-size: .875rem; }
  .steps small { margin-top: 1px; }
  .steps { gap: 5px; }
  .panel { padding: 14px; }
  .stage-detail { min-height: 55px; }
  .reference-grid { grid-template-columns: 1fr; }
  .evidence-card { padding: 12px; }
}

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