/* IIRN 홍보사이트 — 색과 글꼴은 :root 토큰만 바꾸면 전체에 반영됩니다 */
:root {
  --ink: #1A1F2B;          /* 글자, 실선: '현실' */
  --sheet: #E9EDF1;        /* 설계 용지 배경 */
  --paper: #F8F9FB;        /* 기본 배경 */
  --surface: #FFFFFF;
  --rule: #C9D0D9;         /* 구분선 */
  --pencil: #586272;       /* 보조 글자: '아이디어' */
  --marker: #FFD23F;       /* 형광펜: 강조 버튼, 띠 */
  --on-marker: #1A1F2B;
  --on-ink: #F8F9FB;
  --grid: rgba(26, 31, 43, .06);
  --font: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E7EAF0; --sheet: #171B23; --paper: #11141A; --surface: #1A1F29; --rule: #2E3542;
    --pencil: #9DA6B5; --on-ink: #11141A; --grid: rgba(231, 234, 240, .05); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E7EAF0; --sheet: #171B23; --paper: #11141A; --surface: #1A1F29; --rule: #2E3542;
  --pencil: #9DA6B5; --on-ink: #11141A; --grid: rgba(231, 234, 240, .05); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7; font-weight: 450;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--marker); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--pencil); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marker); color: var(--on-marker); padding: 8px 14px; z-index: 10; border-radius: var(--radius); }
.skip:focus { left: 8px; }

.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
.nav .nav-cta { background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: var(--radius); }
.nav .nav-cta:hover { text-decoration: none; background: var(--marker); color: var(--on-marker); }
.nav .lang { color: var(--pencil); font-weight: 500; }
@media (max-width: 720px) {
  .header-inner { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 14px; }
  .nav a[href*="#services"] { display: none; }
  .brand img { height: 28px; }
}

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--marker); color: var(--on-marker); border-color: var(--marker); }
.btn-primary:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 히어로: 윗줄은 윤곽선(아이디어), 아랫줄은 채워짐(현실) */
.hero {
  background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  padding: clamp(56px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.hero-title { display: grid; font-family: "Wanted Sans Display", var(--font); font-size: clamp(3rem, 10.5vw, 8.25rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.045em; margin-bottom: clamp(24px, 4vw, 40px); }
.hero-title .layer { grid-area: 1 / 1; }
.hero-title .line { display: block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: clamp(1.5px, .2vw, 2.5px) var(--ink); }
.hero-title .solid { color: var(--ink); clip-path: inset(-25% 100% -25% 0); animation: realize 1.5s cubic-bezier(.65, 0, .25, 1) .35s forwards; }
.hero-title .solid .line:first-child { visibility: hidden; }
@keyframes realize { to { clip-path: inset(-25% -2% -25% 0); } }
@media (prefers-reduced-motion: reduce) { .hero-title .solid { animation: none; clip-path: none; } }
@supports not (-webkit-text-stroke: 1px black) { .hero-title .outline { color: var(--pencil); } }
.hero-sub { max-width: 38em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--pencil); margin-bottom: 32px; }

/* 섹션 */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding-top: clamp(32px, 5vw, 56px); }
.section.sheet { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { margin: 0; color: var(--pencil); max-width: 36em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }
.more { margin: 28px 0 0; font-weight: 700; }

/* 만드는 것 */
.service-list { border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.service h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.service p { margin: 0; max-width: 32em; }
.service ul { list-style: none; margin: 0; padding: 0; color: var(--pencil); font-size: 15px; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* 과정 */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.process li { counter-increment: step; border-top: 2px dashed var(--pencil); padding-top: 20px; }
.process li:last-child { border-top-style: solid; border-top-color: var(--ink); }
.process li::before { content: counter(step); display: block; font-family: "Wanted Sans Display", var(--font); font-size: 2.75rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 14px; }
.process li:last-child::before { color: var(--ink); }
.process h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.process p { margin: 0; color: var(--pencil); font-size: 15.5px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* 앱 */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.app-card { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); position: relative; }
.app-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.app-card h3 a { text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; }
.app-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
.app-card p { margin: 0 0 6px; }
.app-icon { flex: none; width: 56px; height: 56px; border-radius: 26%; background: var(--app); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 24px; object-fit: cover; }
.app-icon.lg { width: 72px; height: 72px; font-size: 30px; }
.app-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--pencil); margin: 0; }
.status { font-weight: 700; color: var(--ink); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; border: 1.5px solid var(--ink); }
.status-live::before { background: var(--ink); }
.status-development::before { background: var(--marker); border-color: var(--ink); }

/* 띠 */
.band { background: var(--marker); color: var(--on-marker); padding: clamp(40px, 6vw, 72px) 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.band p { margin: 0; max-width: 34em; }
.band .btn-ink { --ink: #1A1F2B; --on-ink: #FFD23F; background: #1A1F2B; color: #FFD23F; border-color: #1A1F2B; }
.band .btn-ink:hover { background: transparent; color: #1A1F2B; }

/* 페이지 머리 */
.page-head { background: var(--sheet); border-bottom: 1px solid var(--rule); padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.035em; }
.page-head .lead { margin: 12px 0 0; max-width: 40em; color: var(--pencil); font-size: 1.1rem; }
.app-head { padding-bottom: 0; }
.app-title { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.app-title .app-meta { margin-bottom: 4px; }
.doc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.doc-tabs a { flex: none; padding: 12px 14px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--pencil); border-bottom: 3px solid transparent; }
.doc-tabs a:hover { color: var(--ink); }
.doc-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nf .lead { margin-bottom: 8px; }
.nf .actions { margin-top: 28px; }

/* 본문 */
.prose { max-width: 42em; }
.prose .lead { font-size: 1.3rem; font-weight: 700; line-height: 1.5; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 .6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.prose summary { cursor: pointer; font-weight: 700; }
.app-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.store { display: flex; flex-direction: column; gap: 10px; width: 100%; }
@media (max-width: 820px) { .app-intro { grid-template-columns: 1fr; gap: 24px; } }

.facts { margin: 0; display: grid; gap: 4px 16px; grid-template-columns: max-content 1fr; font-size: 15px; }
.facts div { display: contents; }
.facts dt { color: var(--pencil); }
.facts dd { margin: 0; font-weight: 600; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 92px; font-size: 14.5px; }
.doc-toc .facts { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.toc-title { font-weight: 800; margin-bottom: 8px; }
.doc-toc ol { margin: 0; padding-left: 1.4em; color: var(--pencil); }
.doc-toc li { margin-bottom: 6px; }
.doc-toc a { text-decoration: none; }
.doc-toc a:hover { color: var(--ink); text-decoration: underline; }
.doc-title { margin-top: 0 !important; font-size: 1.8rem !important; }
.doc-body section { padding: 24px 0; border-top: 1px solid var(--rule); }
.doc-body section:first-of-type { border-top: 0; padding-top: 8px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 24px; } .doc-toc { position: static; } }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th { font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; }

/* 의뢰 폼 */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.form { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field small { color: var(--pencil); font-weight: 450; }
.req, .opt { font-size: 12.5px; font-weight: 600; margin-left: 4px; color: var(--pencil); }
.req { color: var(--ink); }
.req::before { content: "*"; margin-right: 2px; }
input, select, textarea { font: inherit; font-weight: 450; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 11px 14px; width: 100%; }
textarea { resize: vertical; min-height: 160px; }
input:hover, select:hover, textarea:hover { border-color: var(--pencil); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--marker); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #C0392B; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

.chips label span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--rule); border-radius: var(--radius); font-weight: 600; background: var(--surface); }
.chips label input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--marker); outline-offset: 2px; }
.consent legend { float: left; width: 100%; margin-bottom: 12px; }
.consent { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; }
.consent dl { margin: 0 0 10px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14.5px; }
.consent dl div { display: contents; }
.consent dt { color: var(--pencil); }
.consent dd { margin: 0; }
.consent .muted { font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.ok { padding: 14px 16px; background: var(--marker); color: var(--on-marker); border-radius: var(--radius); }
.form-status .btn { margin-top: 10px; }

/* 푸터 */
.site-footer { border-top: 2px solid var(--ink); padding: 40px 0 48px; font-size: 14px; color: var(--pencil); }
.footer-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 24px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { margin: 0; font-weight: 600; color: var(--ink); }
.biz { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; }
.biz div { display: contents; }
.biz dd { margin: 0; color: var(--ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links strong { color: var(--ink); }
.copy { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } .biz { grid-template-columns: 1fr; } .biz dt { margin-top: 6px; } }
