/*
 * Public pages (plan 5.13). One stylesheet, no web fonts, no images, no inline styles (the public
 * CSP in plan 7.2 is style-src 'self').
 *
 * Look: the landing mockup v3.1 (design/html/landing.html, landing_*.png), which the public site
 * continues (decision 11/11 '공개 페이지 색'; the app keeps the wireframe blue). Tokens keep the
 * mockup's names and values. Type: Noto Sans CJK KR, 44px headline (31px on phones), 40px section
 * titles (27px), 16px body. Rhythm: 72px header (58px), 112px sections (64px), 1240px frame, 12px
 * buttons, 18–22px cards, 28–30px panels.
 *
 * Contrast (WCAG AA): the mockup's --ink3, --gold2 and --amber are below 4.5:1 as small text on the
 * light grounds, so they only colour lines, dots and icons here. Small secondary text uses --mute,
 * gold text --gold-tx (the mockup's .tag.gold text) and warnings --warn-tx (its .form .warn).
 */

:root {
  /* landing mockup tokens (landing.html lines 11–15) */
  --ink: #16201e;
  --ink2: #46524e;
  --ink3: #7a8480;
  --line: #e2ded5;
  --line2: #ece8e0;
  --bg: #faf8f4;
  --bg2: #f2eee6;
  --paper: #ffffff;
  --ac: #1e5e56;
  --ac2: #2c7a70;
  --acs: #e5efec;
  --acs2: #cbe0db;
  --dark: #0f1c1a;
  --dark2: #17302c;
  --gold: #d9c79e;
  --gold2: #a98a4c;
  --golds: #f5eedd;
  --red: #b5483b;
  --amber: #9a6b1e;
  /* text-safe companions (AA on --bg, --bg2 and --paper) */
  --mute: #5f6a66;
  --gold-tx: #7a622f;
  --warn-bg: #fbf1dc;
  --warn-tx: #7a5418;
  --ac-hover: #174d46;
  --font:
    "Noto Sans CJK KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui,
    sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --frame: 1240px;
  --gutter: 24px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--frame) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.narrow {
  max-width: calc(840px + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

mark.todo {
  padding: 0 5px;
  border: 1px dashed #e0c48a;
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn-tx);
  font-weight: 700;
  word-break: break-all;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ── buttons and tags (mockup .btn, .tag) ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.btn .i {
  width: 16px;
  height: 16px;
}

.btn.pri {
  background: var(--ac);
  color: #ffffff;
  box-shadow: 0 8px 22px -12px rgb(30 94 86 / 0.8);
}

.btn.pri:hover {
  background: var(--ac-hover);
}

.btn.ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: var(--acs2);
  background: #fcfbf8;
}

.btn.sm {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

.btn.wide {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--acs);
  color: var(--ac);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge.draft {
  margin: 0;
  background: var(--golds);
  color: var(--gold-tx);
}

h2.sec {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

/* ── header (mockup header, .logo, .lang) ────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line2);
  background: rgb(250 248 244 / 0.94);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink2);
  font-size: 15px;
}

.lang {
  display: flex;
  align-items: center;
}

/* The link is the 44px touch target; the span draws the small segment. */
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink2);
  font-size: 12.5px;
  line-height: 1.5;
  text-decoration: none;
}

.lang a span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.lang a:first-child span {
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.lang a:last-child span {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.lang a[aria-current="page"] span {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
}

.lang a:not([aria-current]):hover span {
  color: var(--ink);
}

/* ── landing: hero (mockup .hero, .gal) ──────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -260px;
  top: -300px;
  width: 980px;
  height: 980px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(44 122 112 / 0.15), rgb(44 122 112 / 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  /* 612px : 584px at the full 1240px frame, like the mockup, and in proportion below it. */
  grid-template-columns: minmax(0, 1.048fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
}

/* The second line in teal on the gold marker. */
.hero h1 em {
  font-style: normal;
  color: var(--ac);
  background: linear-gradient(
    transparent 68%,
    rgb(217 199 158 / 0.55) 68%,
    rgb(217 199 158 / 0.55) 92%,
    transparent 92%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* A1-P5 with the mockup's running dot (.client). */
.running {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--ink2);
  font-size: 17.5px;
  line-height: 1.7;
}

.running .dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--ac2);
  box-shadow: 0 0 0 4px var(--acs);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

/* 이렇게 일합니다: the hero's dotted right-hand panel with a dark pill and white cards. */
.how {
  padding: 22px;
  border: 1px solid var(--line2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgb(30 94 86 / 0.14) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(160deg, #eef4f2, #f4f0e7);
}

.how h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px 2px;
  padding: 4px 13px 4px 10px;
  border-radius: 99px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.how .i {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 22px 40px -30px rgb(15 28 26 / 0.55);
  font-size: 16px;
  line-height: 1.5;
}

/* Gold step numbers, the last one filled (mockup .steps6, .hl). */
.steps .num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid rgb(169 138 76 / 0.45);
  border-radius: 50%;
  background: var(--golds);
  color: var(--gold-tx);
  font-size: 14px;
  font-weight: 700;
}

.steps li:last-child .num {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--dark);
}

/* ── landing: 규칙과 자료 (mockup .rules .grp on the .base/.board band) ── */

.band {
  padding: 112px 0;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  background: var(--bg2);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.rule-card {
  padding: 26px 28px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.rule-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.rule-card .i {
  width: 22px;
  height: 22px;
  color: var(--ac);
}

.rule-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rule-card li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line2);
  font-size: 15px;
  line-height: 1.6;
}

.rule-card .no {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--acs);
  color: var(--ac);
  font-size: 12px;
  font-weight: 700;
}

/* ── landing: Q14 blocks (리드 11/30, references-1130.md) ────────────────── */

.hero .lead {
  max-width: 34em;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 18.5px;
  line-height: 1.7;
}

.block {
  padding: 104px 0;
}

.doing-text {
  margin: 14px 0 12px;
  color: var(--ink2);
  font-size: 15.5px;
  line-height: 1.7;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.role-card h3 {
  font-size: 18px;
}

.role-card.us {
  border-color: var(--acs2);
}

.role-card .tick {
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold2);
}

.role-card.us .tick {
  background: var(--ac2);
}

.asof {
  margin: 12px 0 0;
  color: var(--mute);
  font-size: 14.5px;
}

.num-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.num-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.num-value {
  color: var(--ac);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.num-label {
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.6;
}

.num-limit {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn-tx);
  font-size: 14.5px;
  line-height: 1.6;
}

.num-limit .i {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
}

.promise-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.promise-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line2);
  font-size: 16px;
  line-height: 1.6;
}

.promise-list .no-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--acs);
}

.promise-list .no-mark::after {
  position: absolute;
  top: 10px;
  left: 6px;
  width: 10px;
  height: 2px;
  background: var(--ac);
  content: "";
}

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line2);
}

.faq details {
  border-bottom: 1px solid var(--line2);
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 32px 12px 0;
  position: relative;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  right: 4px;
  color: var(--ac);
  font-size: 22px;
  font-weight: 400;
  content: "+";
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq-a {
  margin: 0 0 16px;
  color: var(--ink2);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ── landing: contact (mockup .cta .box) ─────────────────────────────── */

.contact {
  padding: 96px 0 112px;
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 28px 56px;
  align-items: center;
  padding: 56px 60px;
  border-radius: 30px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(217 199 158 / 0.26), rgb(217 199 158 / 0) 60%),
    radial-gradient(60% 120% at 0% 100%, rgb(44 122 112 / 0.5), rgb(44 122 112 / 0) 60%),
    var(--dark);
  color: #ffffff;
}

.contact-box :focus-visible {
  outline-color: var(--gold);
}

.mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 22px 0 0;
}

.mail .i {
  color: var(--gold);
}

.mail-label {
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
  font-weight: 700;
}

.mail-value {
  min-width: 0;
  font-size: 20px;
}

.mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.mail mark.todo {
  font-size: 16px;
}

.warn {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.07);
  color: rgb(255 255 255 / 0.88);
  font-size: 16px;
  line-height: 1.65;
}

.warn .i {
  margin-top: 3px;
  color: var(--gold);
}

/* ── footer (mockup footer, .bt) ─────────────────────────────────────── */

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink2);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 32px 40px;
  align-items: start;
}

.foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ai-notice {
  max-width: 400px;
  margin: 14px 0 0;
  color: var(--ink2);
  font-size: 13.5px;
  line-height: 1.7;
}

.ai-notice .badge {
  margin-right: 2px;
  vertical-align: 1px;
}

.business h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

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

.business dt {
  color: var(--mute);
  font-size: 12.5px;
}

.business dd {
  margin: 2px 0 0;
  color: var(--ink2);
  font-size: 14px;
}

.business a {
  color: var(--ac);
  text-underline-offset: 3px;
}

.foot-bottom {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  margin: 0 0 0 -10px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--mute);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-lang {
  display: inline-flex;
  align-items: center;
  color: var(--mute);
}

.foot-lang a:first-child {
  padding-right: 4px;
}

.foot-lang a:last-child {
  padding-left: 4px;
}

/* ── documents: privacy, terms, team notice ─────────────────────────── */

.doc {
  padding: 56px 0 96px;
}

.doc-sheet {
  padding: 48px 56px 56px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.doc-head h1 {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.toc {
  margin: 28px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: var(--bg);
}

.toc h2 {
  margin: 0 0 4px;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  column-count: 2;
  column-gap: 32px;
  color: var(--mute);
}

.toc li {
  break-inside: avoid;
}

.toc a {
  display: inline-block;
  padding: 5px 0;
  color: var(--ac);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose {
  color: var(--ink);
}

.prose h2 {
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line2);
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--ac2);
}

.prose a {
  color: var(--ac);
  text-underline-offset: 3px;
}

.prose code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg2);
  font-family: var(--mono);
  font-size: 0.92em;
}

.note {
  margin: 24px 0;
  padding: 12px 18px;
  border: 1px solid #eadfc4;
  border-radius: 14px;
  background: var(--golds);
  color: var(--ink2);
}

.note p {
  margin: 4px 0;
  font-size: 15px;
}

.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line2);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--bg2);
  color: var(--ink2);
  font-size: 13px;
  white-space: nowrap;
}

.table-wrap td {
  min-width: 9em;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

/* ── internal door and 404 ──────────────────────────────────────────── */

.page-internal main.door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100vh;
  padding: 48px 16px;
  overflow: hidden;
}

.page-internal main.door::before {
  content: "";
  position: absolute;
  right: -260px;
  top: -300px;
  width: 980px;
  height: 980px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(44 122 112 / 0.15), rgb(44 122 112 / 0));
  pointer-events: none;
}

.door-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 34px 28px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 60px -44px rgb(15 28 26 / 0.5);
  text-align: center;
}

.door-card h1 {
  margin: 14px 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.door-lead {
  margin: 0;
  color: var(--ink2);
}

.door-actions {
  margin: 24px 0 0;
}

.door-links {
  margin: 10px 0 0;
}

.door-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ac);
  text-underline-offset: 3px;
}

.door-ai {
  position: relative;
  max-width: 400px;
  margin: 0;
  color: var(--ink2);
  text-align: center;
}

.notfound {
  padding: 80px 0 104px;
}

.notfound .code {
  margin: 0;
  color: var(--ac);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.notfound h1 {
  margin: 14px 0 8px;
  font-size: 30px;
  letter-spacing: -0.025em;
}

.notfound .lead {
  margin: 0;
  color: var(--ink2);
  font-size: 17.5px;
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.nf-en {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line2);
  color: var(--ink2);
}

.nf-en h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.nf-en a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ac);
  text-underline-offset: 3px;
}

/* ── widths ──────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .how {
    max-width: 640px;
  }

  .rule-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
  }

  .roles-grid,
  .num-grid,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
  }

  .two-col {
    gap: 48px;
  }

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

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

/* Phones: the mockup's 390 layout (.m). */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --header-h: 58px;
  }

  .logo {
    gap: 9px;
    font-size: 20px;
  }

  .logo .logo-mark {
    width: 28px;
    height: 28px;
  }

  .header-right {
    gap: 6px;
  }

  .lang a {
    font-size: 11.5px;
  }

  .lang a span {
    padding: 2px 7px;
  }

  /* 로그인 is a plain text link on phones (mockup .m-only). */
  .header-right .login {
    min-height: 44px;
    padding: 0 4px 0 8px;
    border-color: transparent;
    background: transparent;
    color: var(--ink2);
    font-size: 14px;
    font-weight: 400;
  }

  h2.sec {
    font-size: 27px;
    line-height: 1.35;
  }

  .hero {
    padding: 28px 0 48px;
  }

  .hero::before {
    right: -520px;
    top: -420px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.3;
  }

  .running {
    align-items: flex-start;
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.65;
  }

  .running .dot {
    margin-top: 0.62em;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .how {
    padding: 14px;
    border-radius: 22px;
  }

  .how h2 {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .steps {
    gap: 8px;
  }

  .steps li {
    gap: 12px;
    padding: 12px 14px 12px 12px;
    border-radius: 16px;
    font-size: 15px;
  }

  .steps .num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .band {
    padding: 64px 0;
  }

  .block {
    padding: 64px 0;
  }

  .hero .lead {
    font-size: 16.5px;
  }

  .num-value {
    font-size: 32px;
  }

  .roles-grid,
  .num-grid {
    margin-top: 28px;
  }

  .rule-grid {
    gap: 16px;
    margin-top: 28px;
  }

  .rule-card {
    padding: 18px 18px 6px;
    border-radius: 18px;
  }

  .rule-card ul {
    margin-top: 12px;
  }

  .rule-card li {
    padding: 10px 0;
    font-size: 14px;
  }

  .contact {
    padding: 48px 0 56px;
  }

  .contact-box {
    gap: 22px;
    padding: 30px 18px 18px;
    border-radius: 22px;
  }

  .mail {
    margin-top: 14px;
  }

  .mail-value {
    font-size: 17px;
  }

  .warn {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .business dl {
    gap: 10px 16px;
  }

  .foot-bottom {
    margin-top: 0;
  }

  .doc {
    padding: 20px 0 56px;
  }

  .doc-sheet {
    padding: 24px 18px 32px;
    border-radius: 18px;
  }

  .doc-head h1 {
    font-size: 27px;
  }

  .toc {
    padding: 14px 16px;
  }

  .toc ol {
    column-count: 1;
  }

  .prose h2 {
    margin-top: 36px;
    padding-top: 16px;
    font-size: 20px;
  }

  .prose p,
  .prose li {
    font-size: 15.5px;
  }

  .notfound {
    padding: 44px 0 64px;
  }

  .notfound h1 {
    font-size: 26px;
  }
}
