/* ============================================================
   KOREA DESK — a program of KCED Foundation Inc.
   Reference: Copenhagen Capacity (serif body, full-bleed hero with
   dark overlay, centred statement bands) and Toronto Global (large
   tight-tracked headings, light neutral bands, plain nav labels).
   Light theme only. Mobile first.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --navy:      #15243F;  /* the dark. Used in full-bleed bands, not just text */
  --navy-deep: #0D1729;  /* hero overlay, footer floor */
  --ink:       #14151A;
  --paper:     #FFFFFF;
  --sand:      #F6F5F3;  /* warm neutral band. Never cool grey. */
  --sand-line: #E6E3DE;
  --tiffany:   #0ABAB5;  /* hairlines and small marks only */
  --error:     #B3261E;

  --muted:     #4A5160;
  --muted-on-dark: #C3CBD9;
  --line:      #E6E3DE;
  --field:     #C9CED6;

  --kakao:     #FEE500;
  --kakao-ink: #191600;

  --wrap: 68rem;         /* outer container */
  --text: 40rem;         /* comfortable measure for running text */
  --radius: 4px;         /* squarer than before — reads institutional */
}

html[lang="en"] {
  --ui:      "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --lh: 1.6;
}
html[lang="ko"] {
  --ui:      "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --lh: 1.75;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 18px;
  line-height: var(--lh);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
html[lang="ko"] body { word-break: keep-all; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; font-family: var(--ui); font-weight: 600; letter-spacing: 0; }
html[lang="ko"] h1, html[lang="ko"] h2 { line-height: 1.32; letter-spacing: -.03em; }
html[lang="ko"] h1 { font-size: 1.875rem; }
html[lang="ko"] h2 { font-size: 1.5rem; }

@media (min-width: 700px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.25rem; }
  html[lang="ko"] h1 { font-size: 2.5rem; }
  html[lang="ko"] h2 { font-size: 1.875rem; }
}
@media (min-width: 1040px) {
  h1 { font-size: 4rem; }
  html[lang="ko"] h1 { font-size: 3rem; }
}

p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .6em; }

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(10,186,181,.45);
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.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; }

/* ---------- 3. Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 12px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; justify-content: center; min-height: 48px; }
.wordmark {
  display: block; white-space: nowrap;
  font-family: var(--ui); font-weight: 600;
  font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); line-height: 1.2;
}
html[lang="ko"] .wordmark { letter-spacing: .06em; font-size: 1.0625rem; }
.brand-sub { display: block; font-size: .75rem; color: var(--muted); line-height: 1.4; margin-top: 3px; letter-spacing: .01em; }
.brand-logo { display: block; height: 34px; width: auto; }

.header-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; }
.lang a { color: var(--navy); padding: 12px 4px; display: inline-block; min-height: 48px; line-height: 24px; }
.lang [aria-current="true"] { color: var(--muted); text-decoration: none; cursor: default; }
.lang .sep { color: var(--field); }

.header-row .header-cta { display: none; }
@media (min-width: 880px) {
  .header-row .header-cta { display: inline-flex; }
  .wordmark { font-size: 1.125rem; }
  .brand-sub { font-size: .8125rem; }
}

/* ---------- 3b. Section navigation ---------- */
.main-nav { background: var(--paper); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav-row { display: flex; gap: 2px; white-space: nowrap; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 50px;
  padding: 14px 14px 12px;
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--tiffany); }
@media (min-width: 700px) {
  .main-nav a { padding-left: 0; padding-right: 0; margin-right: 34px; }
  .main-nav-row { gap: 0; }
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep) center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,23,41,.55) 0%, rgba(13,23,41,.78) 100%);
}
.hero-inner { padding-block: 64px 56px; }
.hero-inner > * { max-width: 46rem; }
@media (min-width: 700px) { .hero-inner { padding-block: 120px 104px; } }
@media (min-width: 1040px) { .hero-inner { padding-block: 160px 140px; } }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { color: #E8ECF3; max-width: 34em; }
.hero .label { color: #fff; }
.hero .label::before { background: var(--tiffany); }

/* ---------- 5. Bands ---------- */
.band { padding: 52px 0; }
@media (min-width: 700px) { .band { padding: 88px 0; } }
.band--sand { background: var(--sand); }
.band--navy { background: var(--navy); color: #E8ECF3; }
.band--navy h2, .band--navy h3, .band--navy .label { color: #fff; }
.band--navy a { color: #fff; }
.band--navy .items > div { border-color: rgba(255,255,255,.16); }
.band--navy .items dt { color: #fff; }
.band--navy .facts dt { color: var(--muted-on-dark); }
.band--navy .facts > div { border-color: rgba(255,255,255,.16); }
.band--navy .facts dd { color: #E8ECF3; }
.band--navy .marks li::before { background: var(--tiffany); }

/* A single centred statement, the way Copenhagen opens its second screen. */
.statement { text-align: center; max-width: 44rem; margin: 0 auto; }
.statement .label { justify-content: center; }
.statement h2 { font-size: 1.75rem; }
@media (min-width: 700px) { .statement h2 { font-size: 2.5rem; } }
html[lang="ko"] .statement h2 { font-size: 1.5rem; }
@media (min-width: 700px) { html[lang="ko"] .statement h2 { font-size: 2rem; } }
.statement p { max-width: 34em; margin-left: auto; margin-right: auto; }

/* ---------- 6. Sections inside a band ---------- */
.section { padding: 0 0 8px; }
.section + .section { padding-top: 44px; border-top: 1px solid var(--line); margin-top: 44px; }
.band--navy .section + .section { border-color: rgba(255,255,255,.16); }
.band--sand .section + .section { border-color: var(--sand-line); }
@media (min-width: 700px) {
  .section + .section { padding-top: 64px; margin-top: 64px; }
}

.label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ui);
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px; line-height: 1.4;
}
html[lang="ko"] .label { letter-spacing: .1em; }
.label::before { content: ""; flex: 0 0 auto; width: 24px; height: 1px; background: var(--tiffany); }
.label .n { font-variant-numeric: tabular-nums; }

.lede { font-size: 1.1875rem; margin-bottom: 24px; max-width: 34em; }
@media (min-width: 700px) {
  .lede { font-size: 1.375rem; line-height: 1.55; margin-bottom: 30px; }
  html[lang="ko"] .lede { font-size: 1.1875rem; line-height: 1.75; }
}
.section > p, .section > ul, .section > ol { max-width: var(--text); }

/* ---------- 7. Editorial lists ---------- */
.items { margin: 0; }
.items > div { padding: 22px 0; border-top: 1px solid var(--line); }
.items > div:first-child { border-top: 0; padding-top: 0; }
.items dt {
  font-family: var(--display); font-size: 1.1875rem; font-weight: 700;
  color: var(--navy); line-height: 1.3; letter-spacing: -.015em; margin-bottom: 8px;
}
html[lang="ko"] .items dt { font-size: 1.125rem; }
.items dd { margin: 0; max-width: var(--text); }
@media (min-width: 700px) {
  .items > div { padding: 30px 0; }
  .items dt { font-size: 1.5rem; }
  html[lang="ko"] .items dt { font-size: 1.3125rem; }
}
@media (min-width: 900px) {
  .items--split > div { display: grid; grid-template-columns: 17rem 1fr; gap: 40px; }
  .items--split dt { margin-bottom: 0; }
}

.marks { list-style: none; padding: 0; }
.marks li { position: relative; padding-left: 24px; }
.marks li::before { content: ""; position: absolute; left: 0; top: .68em; width: 12px; height: 1px; background: var(--tiffany); }

.leave {
  display: block; margin-top: 12px; padding: 10px 0 10px 16px;
  border-left: 2px solid var(--tiffany);
  font-family: var(--ui); font-weight: 600; color: var(--navy); font-size: .9375rem;
  letter-spacing: .01em;
}
.band--navy .leave { color: #fff; }

.facts { margin: 0; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ko"] .facts dt { letter-spacing: .02em; text-transform: none; font-size: .875rem; }
.facts dd { margin: 5px 0 0; color: var(--ink); }
@media (min-width: 640px) {
  .facts > div { display: grid; grid-template-columns: 14rem 1fr; gap: 20px; align-items: baseline; }
  .facts dd { margin-top: 0; }
}

.pull {
  margin: 26px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--tiffany);
  font-family: var(--display);
  font-size: 1.375rem; line-height: 1.4; letter-spacing: -.02em;
  color: var(--navy);
  max-width: 30em;
}
html[lang="ko"] .pull { line-height: 1.6; font-size: 1.1875rem; }
@media (min-width: 700px) {
  .pull { font-size: 1.875rem; padding-left: 26px; }
  html[lang="ko"] .pull { font-size: 1.5rem; }
}
.band--navy .pull { color: #fff; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 42px; margin-bottom: 16px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border: 1px solid var(--navy); border-radius: 50%;
  font-family: var(--ui); font-size: .8125rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 8. Figures ---------- */
.figure { margin: 0 0 8px; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.figure--wide { margin-bottom: 36px; }

/* ---------- 9. Form ---------- */
.form-card {
  max-width: 40rem;
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 20px 18px 24px;
  margin-top: 8px;
}
@media (min-width: 700px) { .form-card { padding: 32px 32px 34px; } }

fieldset { border: 0; margin: 0 0 22px; padding: 0; }
legend { padding: 0; margin: 0 0 14px; font-weight: 600; color: var(--navy); font-size: 1.0625rem; }

.opt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .opt-grid { grid-template-columns: 1fr 1fr; } }

.opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius);
  cursor: pointer; line-height: 1.4;
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { flex: 0 0 auto; position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--field); background: var(--paper); }
.opt.is-checked { border-color: var(--navy); border-width: 2px; padding: 11px 13px; }
.opt.is-checked .tick { background: var(--navy); border-color: var(--navy); }
.opt.is-checked .tick::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 11px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(42deg);
}
.opt:has(input:focus-visible), .opt.is-focus {
  outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(10,186,181,.45);
}
.opt-text { font-weight: 500; }

.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input {
  display: block; width: 100%; height: 56px; padding: 0 14px;
  font-family: var(--ui); font-size: 18px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius);
}
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.err { color: var(--error); font-size: 1rem; font-weight: 600; margin: 8px 0 0; line-height: 1.45; }
.err a { color: var(--error); }
.notice { font-size: .9375rem; color: var(--muted); margin: 4px 0 18px; max-width: 36em; }

/* ---------- 10. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 28px;
  font-family: var(--ui); font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--radius); border: 1px solid var(--navy);
  background: var(--navy); color: var(--paper);
  text-decoration: none; cursor: pointer; width: 100%;
}
.btn:hover { background: #0F1B30; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--sand); }
.hero .btn { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.hero .btn:hover { background: #EDEFF3; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.band--navy .btn { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.header-row .header-cta.btn { width: auto; min-height: 46px; font-size: .9375rem; padding: 10px 20px; }
@media (min-width: 560px) { .btn { width: auto; min-width: 200px; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .btn-row .btn { width: 100%; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.cta-row .btn { width: auto; flex: 0 0 auto; }
@media (max-width: 559px) { .cta-row .btn { width: 100%; } }

.contact-chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 52px; padding: 10px 18px;
  background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius);
  font-weight: 500; text-decoration: none; color: var(--navy); line-height: 1.3;
}
.contact-chip:hover { border-color: var(--navy); }
.contact-chip .num { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero .contact-chip, .band--navy .contact-chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.band--sand .contact-chip { background: var(--paper); }

.btn-kakao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 20px;
  background: var(--kakao); color: var(--kakao-ink);
  border: 1px solid #E0CC00; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}

.contact-line { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 1rem; }

/* ---------- 11. FAQ ---------- */
details { border-top: 1px solid var(--line); padding: 2px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
.band--sand details { border-color: var(--sand-line); }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; min-height: 52px;
  font-weight: 600; color: var(--navy); position: relative; font-size: 1.0625rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
details .answer { padding: 0 0 18px; margin: 0; max-width: var(--text); }

.note-box {
  background: var(--sand); border-left: 2px solid var(--tiffany);
  padding: 18px 20px; margin: 0 0 18px; max-width: var(--text);
}
.band--sand .note-box { background: var(--paper); }
.note-box p:last-child { margin-bottom: 0; }

/* ---------- 12. Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(20,21,26,.10);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  transition: transform .18s ease, opacity .18s ease;
}
.sticky-bar .row { display: flex; gap: 8px; padding: 0; }
.sticky-bar a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 8px 4px;
  border: 1px solid var(--navy); border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  background: var(--paper); color: var(--navy); text-align: center; line-height: 1.2;
}
.sticky-bar a.primary { background: var(--navy); color: var(--paper); }
.sticky-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (max-width: 879px) {
  .sticky-bar { display: block; }
  body.has-sticky { padding-bottom: 84px; }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: #C3CBD9;
  padding: 44px 0 40px; font-size: .9375rem; line-height: 1.7;
}
html[lang="ko"] .site-footer { line-height: 1.8; }
.site-footer a { color: #FFFFFF; display: inline-block; padding: 3px 0; }
.site-footer p { margin: 0 0 14px; max-width: 46em; }
.site-footer .legal { color: #FFFFFF; }
.site-footer .meta { color: #A9B3C4; font-size: .875rem; }
.site-footer .copy { color: #7C879B; font-size: .8125rem; margin-bottom: 0; }

/* ---------- 14. Thanks page ---------- */
.confirm h1 { font-size: 2.25rem; }
@media (min-width: 700px) { .confirm h1 { font-size: 3.25rem; } }
.opt-grid.compact .opt { min-height: 56px; }
@media (min-width: 560px) { .opt-grid.compact { grid-template-columns: 1fr 1fr; } }
.final-note { font-size: 1.25rem; font-weight: 600; color: var(--navy); font-family: var(--display); }
.deadline { font-weight: 600; }

/* v1.2 — home form + opening note */
.hero .opening-note { color: #E8ECF3; font-size: 1rem; margin: 18px 0 0; }
.steps-title { margin-top: 40px; }
