:root {
  --ink: #17211d;
  --muted: #65706a;
  --paper: #f6f1e7;
  --white: #fffdf8;
  --green: #0d5b43;
  --lime: #d6ed66;
  --line: #d8d3c9;
  --orange: #ef6a3a;
  --radius: 22px;
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header { min-height: 84px; padding: 16px clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--lime); font-family: Georgia, serif; font-size: 28px; font-style: italic; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .06em; }
.brand small { color: var(--muted); font-size: 12px; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { text-underline-offset: 5px; font-size: 14px; font-weight: 700; }

.hero { min-height: 390px; padding: clamp(36px, 4.5vw, 56px) clamp(20px, 6vw, 92px) 44px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: clamp(32px, 6vw, 84px); align-items: end; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(13,91,67,.18); border-radius: 50%; left: -250px; top: -240px; box-shadow: 0 0 0 42px rgba(13,91,67,.035), 0 0 0 84px rgba(13,91,67,.025); }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(48px, 5.7vw, 82px); line-height: .96; letter-spacing: -.052em; font-weight: 600; }
h1 em { color: var(--green); font-weight: inherit; }
.lede { max-width: 690px; margin-bottom: 32px; color: #46514b; font-size: clamp(17px, 1.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 800; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; }
.button:hover { transform: translateY(-2px); }

.hero-proof { padding: 28px; background: var(--green); color: white; border-radius: var(--radius); box-shadow: 16px 16px 0 var(--lime); }
.proof-label { color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.hero-proof > strong { display: block; margin-bottom: 30px; font-family: Georgia, serif; font-size: 30px; }
.hero-proof dl { margin: 0; }
.hero-proof dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.22); }
.hero-proof dt { color: #c9ded5; font-size: 13px; }
.hero-proof dd { margin: 0; text-align: right; font-weight: 800; }

.notice { margin: 0 clamp(20px, 6vw, 92px); padding: 18px 22px; display: flex; gap: 22px; align-items: center; background: var(--lime); border: 1px solid var(--ink); }
.notice span { flex: 0 0 auto; padding: 4px 10px; background: var(--ink); color: white; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.notice p { margin: 0; font-weight: 700; }

.quick-start { margin: 24px clamp(20px, 6vw, 92px) 0; padding: 30px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 2fr); gap: 32px; align-items: center; border: 1px solid var(--line); background: rgba(255,253,248,.55); }
.quick-start-heading .eyebrow { margin-bottom: 10px; }
.quick-start h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(28px, 3vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.quick-links a { min-height: 126px; padding: 18px; display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.quick-links a:hover { background: #e9f0df; }
.quick-links span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.quick-links strong { margin: 18px 0 5px; font-size: 18px; line-height: 1.3; }
.quick-links small { margin-top: auto; color: var(--muted); }

.journeys { padding-top: 72px; padding-bottom: 48px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.journey-card { min-height: 520px; padding: 26px; display: flex; flex-direction: column; background: #fffdf8; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.journey-card > span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.journey-card h3 { margin: 34px 0 24px; font-family: Georgia, "Noto Serif KR", serif; font-size: 27px; line-height: 1.25; letter-spacing: -.025em; }
.journey-card ol { margin: 0; padding: 0; list-style: none; counter-reset: journey; }
.journey-card li { position: relative; min-height: 72px; padding: 0 0 18px 46px; counter-increment: journey; }
.journey-card li::before { content: counter(journey); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-style: italic; }
.journey-card li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 31px; bottom: 1px; border-left: 1px dashed var(--line); }
.journey-card li strong, .journey-card li small { display: block; }
.journey-card li small { margin-top: 5px; color: var(--muted); line-height: 1.55; }
.journey-caution { margin: auto 0 20px; padding: 14px; background: #edf2e6; border-left: 4px solid var(--green); color: #46514b; font-size: 13px; }
.journey-caution strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; letter-spacing: .08em; }
.journey-link { font-weight: 900; text-underline-offset: 5px; }
.journey-source-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.section { padding: 88px clamp(20px, 6vw, 92px); }
.section-heading { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.section-heading h2, .correction h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); }

.free-kit { padding-top: 72px; padding-bottom: 48px; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.download-card { min-height: 300px; padding: 24px; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.download-card > span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.download-card h3 { margin: 40px 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: 25px; line-height: 1.25; }
.download-card p { color: #505b55; }
.download-actions { margin-top: auto; display: flex; gap: 18px; }
.download-card a { font-weight: 900; text-underline-offset: 5px; }

.tools { position: sticky; top: 10px; z-index: 5; display: grid; grid-template-columns: minmax(240px, 1fr) auto auto auto auto; gap: 10px; align-items: end; margin: 0 -12px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(246,241,231,.96); backdrop-filter: blur(10px); }
.search-field { flex: 1; }
.search-field input { width: 100%; min-height: 54px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.clear-search { min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 800; }
.tools fieldset { display: flex; gap: 7px; padding: 0; border: 0; }
.select-field { display: grid; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 800; }
.select-field select { min-height: 44px; max-width: 130px; padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: 13px; }
.filter { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; }
.filter.is-active { background: var(--green); color: white; border-color: var(--green); }
.result-count { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.card-grid[data-visible="1"] { grid-template-columns: minmax(0, 620px); justify-content: center; }
.card-grid[data-visible="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { min-height: 520px; padding: 24px; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.info-card.featured { background: #e9f0df; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tag { font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.status { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status.reviewed { background: var(--green); color: white; }
.status.current { background: #ffdfc7; color: #7c2d12; }
.status.needs-review { background: #fff0ba; color: #6f4b00; border: 1px solid #d3aa2a; }
.card-number { margin: 28px 0 12px; color: var(--orange); font-family: Georgia, serif; font-size: 22px; font-style: italic; }
.info-card h3 { margin-bottom: 16px; font-family: Georgia, "Noto Serif KR", serif; font-size: 29px; line-height: 1.25; letter-spacing: -.025em; }
.info-card > p:not(.card-number) { color: #505b55; }
.card-decision { margin-bottom: 12px; padding: 12px 14px; background: #edf2e6; border-left: 4px solid var(--green); font-size: 14px; }
.card-decision strong, .card-action strong { display: block; color: var(--ink); font-size: 11px; letter-spacing: .08em; }
.card-action { margin: 0 0 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.card-details { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); background: #fffdf8; font-size: 13px; }
.card-details summary { cursor: pointer; color: var(--ink); font-weight: 900; }
.card-details ul { margin: 12px 0 0; padding-left: 18px; color: #505b55; }
.card-details li + li { margin-top: 6px; }
.meta { margin: auto 0 22px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.meta div { display: flex; justify-content: space-between; gap: 10px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; text-align: right; font-weight: 800; }
.source-link { text-underline-offset: 5px; font-weight: 900; }
.source-link[target="_blank"]::after { content: " · 새 창"; color: var(--muted); font-size: 11px; font-weight: 700; }
.empty-state { padding: 60px; text-align: center; border: 1px solid var(--line); background: var(--white); }

.tour-dialog { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; }
.tour-backdrop { position: absolute; inset: 0; background: rgba(13, 26, 21, .72); backdrop-filter: blur(8px); }
.tour-sheet { position: relative; width: min(880px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 30px; border: 1px solid var(--ink); border-radius: 26px; background: var(--paper); box-shadow: 18px 18px 0 var(--lime); }
.tour-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 28px; line-height: 1; }
.tour-copy { padding-right: 50px; }
.tour-copy h2 { margin-bottom: 10px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.04em; }
.tour-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin-top: 22px; border: 1px solid var(--ink); background: var(--ink); }
.tour-media img, .tour-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-play { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); min-height: 52px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--lime); color: var(--ink); cursor: pointer; font-weight: 900; white-space: nowrap; }
.tour-complete { padding: 20px 0 4px; text-align: center; }
.tour-complete p { margin-bottom: 14px; font-weight: 800; }
.tour-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-top: 18px; color: var(--muted); font-size: 12px; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-weight: 800; }

.standards { background: var(--ink); color: white; }
.inverse .eyebrow { color: var(--lime); }
.inverse > p { color: #abb4af; }
.standard-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid #53605a; }
.standard-grid li { min-height: 240px; padding: 28px 24px; border-right: 1px solid #53605a; }
.standard-grid li:last-child { border-right: 0; }
.standard-grid span { color: var(--lime); font-family: Georgia, serif; font-style: italic; }
.standard-grid h3 { margin: 62px 0 8px; font-size: 22px; }
.standard-grid p { color: #abb4af; }

.correction > div:first-child { margin-bottom: 42px; }
.correction-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.correction article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.correction article:first-child { background: var(--lime); border-color: var(--ink); }
.correction h3 { font-size: 20px; }
.correction p { color: #505b55; }
.correction a { font-weight: 900; text-underline-offset: 5px; }

footer { padding: 48px clamp(20px, 6vw, 92px); display: flex; justify-content: space-between; gap: 36px; background: var(--green); color: white; }
footer strong { font-family: Georgia, serif; font-size: 30px; }
footer p { margin-bottom: 4px; color: #c9ded5; }
footer > div:last-child { text-align: right; }
.footer-meta { max-width: 760px; }
.footer-links { margin-bottom: 12px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: white; font-weight: 800; text-underline-offset: 4px; }
.legal-main { padding: 72px clamp(20px, 12vw, 180px) 96px; }
.legal-document { max-width: 920px; margin: 0 auto; }
.legal-document h1 { margin: 20px 0 12px; font-size: clamp(46px, 7vw, 76px); }
.legal-document h2 { margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); font-family: Georgia, "Noto Serif KR", serif; font-size: 26px; }
.legal-document p, .legal-document li { color: #46514b; line-height: 1.75; }
.legal-document a { font-weight: 800; text-underline-offset: 4px; }
.legal-meta { color: var(--muted); font-size: 14px; }
.business-table { width: 100%; border-collapse: collapse; }
.business-table th, .business-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.business-table th { width: 170px; color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .hero-proof { max-width: 520px; }
  .quick-start { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: auto; }
  .standard-grid { grid-template-columns: repeat(2, 1fr); }
  .standard-grid li:nth-child(2) { border-right: 0; }
  .standard-grid li { border-bottom: 1px solid #53605a; }
  .correction-grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: minmax(220px, 1fr) auto auto; }
  .tools fieldset { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .site-header { padding-block: 13px; align-items: stretch; flex-direction: column; gap: 12px; }
  .site-header nav { width: 100%; gap: 8px; justify-content: space-between; text-align: center; }
  .site-header nav a { flex: 1; padding: 6px 3px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 12px; }
  .hero { min-height: auto; padding-top: 44px; padding-bottom: 40px; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .notice, .section-heading, .tools, footer { align-items: stretch; flex-direction: column; }
  .quick-start { padding: 22px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-links a { min-height: 118px; }
  .tools fieldset { overflow-x: auto; padding-bottom: 5px; }
  .tools { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .search-field, .clear-search, .tools fieldset { grid-column: 1 / -1; }
  .select-field select { width: 100%; max-width: none; }
  .filter { flex: 0 0 auto; }
  .card-grid, .standard-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .card-grid[data-visible] { grid-template-columns: 1fr; }
  .info-card { min-height: 400px; }
  .standard-grid li { min-height: 190px; border-right: 0; }
  .standard-grid h3 { margin-top: 40px; }
  footer > div:last-child { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .legal-main { padding-top: 48px; }
  .business-table th, .business-table td { display: block; width: auto; }
  .business-table th { padding-bottom: 0; border-bottom: 0; }
  .tour-dialog { place-items: end center; padding: 0; }
  .tour-sheet { width: 100%; max-height: 92vh; padding: 24px 18px; border-radius: 24px 24px 0 0; box-shadow: none; }
  .tour-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  @page { margin: 15mm; }
  body { background: white; font-size: 10pt; }
  .site-header nav, .hero-actions, .tools, .notice, .tour-dialog { display: none !important; }
  .site-header, .hero, .section, footer { padding: 18px 0; }
  .hero { min-height: auto; grid-template-columns: 1fr 260px; }
  .hero::before { display: none; }
  h1 { font-size: 44pt; }
  .hero-proof { box-shadow: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { min-height: 0; break-inside: avoid; }
  .info-card { min-height: 0; break-inside: avoid; }
  .standards { color: black; background: white; }
  .inverse .eyebrow, .standard-grid span { color: black; }
  .standard-grid { border-color: black; }
  .standard-grid li { min-height: 0; border-color: black; }
  .standard-grid h3 { margin-top: 18px; }
  footer { color: black; background: white; border-top: 1px solid black; }
  footer p { color: black; }
}
