/* こよみ狐 — 일본 시장용 랜딩
   기준: jp-design / kf-g-css-tak-typography / dads-foundations-core / design-taste-frontend
   - 본문 글자 16px, 최소 14px (DADS)
   - 본문 고딕은 시스템 글꼴(Hiragino·BIZ UDPGothic·Meiryo), 제목만 Shippori Mincho 자체 호스팅 서브셋
   - 일본어 본문 베타구미(font-kerning none), 제목만 palt
   - 강조색은 금색 하나. 주홍은 로고 도장에만 */

@font-face {
  font-family: "Koyomi Mincho";
  src: local("Shippori Mincho Bold"), local("ShipporiMincho-Bold"), url("../fonts/shippori-b.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --navy: #1b1840;
  --navy-deep: #0b0a24;
  --gold: #c9a84c;
  --gold-ink: #8a6d1f;          /* 밝은 배경 위 금색 글자용 (대비 4.5:1 이상) */
  --shu: #c0392b;               /* 도장 전용 */
  --bg: #ffffff;
  --tint: #f3f3f8;
  --surface: #ffffff;
  --ink: #23213a;
  --sub: #55536a;
  --line: #dcdbe6;
  --wood: #3f7d4f; --fire: #c0432f; --earth: #9a7428; --metal: #6c707c; --water: #2f5f9e;
  --mincho: "Koyomi Mincho", "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDPMincho", serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, "Yu Gothic Medium", "Noto Sans JP", sans-serif;
  --radius: 12px;
  --pick: #1b1840;               /* 라디오·체크박스 선택색 */
  --step: clamp(64px, 9vw, 112px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13122b;
    --tint: #1a1937;
    --surface: #211f42;
    --ink: #ecebf5;
    --sub: #b4b2c8;
    --line: #36345c;
    --gold-ink: #dcc070;
    --pick: #c9a84c;
    --wood: #7dbb8b; --fire: #ef8a74; --earth: #d9b45f; --metal: #b3b7c2; --water: #8ab2ea;
  }
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--gothic); font-size: 1rem; line-height: 1.8; letter-spacing: .02em;
  overflow-wrap: anywhere; line-break: strict; font-kerning: none;
  text-autospace: normal; text-spacing-trim: trim-start;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 .9em; }
h1, h2, h3, legend {
  font-family: var(--mincho); font-weight: 700; line-height: 1.45; margin: 0;
  font-kerning: normal; font-feature-settings: "palt"; letter-spacing: .04em;
}
em, i { font-style: normal; }
input, select, button { font: inherit; text-autospace: no-autospace; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* 문절 줄바꿈: 빌드 때 BudouX 가 <wbr> 를 넣은 요소. Safari 포함 전 브라우저에서 문절 단위로 끊긴다 */
.bx { word-break: keep-all; overflow-wrap: anywhere; }
@supports (text-wrap: balance) { h1.bx, h2.bx, h3.bx, figcaption.bx { text-wrap: balance; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 30; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.draft-bar { margin: 0; background: var(--navy-deep); color: #e6d8a8; text-align: center; font-size: .875rem; padding: 6px 16px; border-bottom: 1px solid rgba(201,168,76,.4); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(27,24,64,.94); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201,168,76,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hanko {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  background: var(--shu); color: #fff; border-radius: 6px;
  font-family: var(--mincho); font-weight: 700; font-size: 21px; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), inset 0 0 0 3px var(--shu);
}
.logo-text { font-family: var(--mincho); font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: .08em; }
.logo-text small { display: block; font-family: var(--gothic); font-weight: 400; font-size: .875rem; color: #e6d8a8; letter-spacing: .08em; margin-top: 2px; }
.nav { display: flex; gap: 2px; }
.nav a { font-size: .9375rem; text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav .nav-free { border: 1px solid rgba(201,168,76,.8); color: #f0dc9a; }
@media (max-width: 599px) { .nav a:not(.nav-free) { display: none; } }

/* buttons: 금색 단색, 같은 반경 체계(버튼 999px / 카드 12px / 입력 8px) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #d6b75d; }
.btn-ghost { border-color: rgba(240,220,154,.75); color: #f0dc9a; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-block { width: 100%; }
.is-disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; gap: 8px; align-items: center; padding-block: 40px 0; }
.eyebrow { display: inline-block; font-size: .875rem; color: #e6d8a8; letter-spacing: .12em; border-bottom: 1px solid var(--gold); padding-bottom: 4px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.25rem); line-height: 1.35; margin-bottom: 18px; }
.lead { font-size: 1.0625rem; color: #dcdaf0; max-width: 30em; margin-bottom: 28px; }
.cta-row { display: grid; gap: 12px; }
.hero-fox { margin: 0 auto; width: min(64vw, 300px); }
.hero-fox img {
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
@media (min-width: 600px) { .cta-row { grid-auto-flow: column; justify-content: start; } }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.2fr .8fr; padding-block: 72px 56px; }
  .hero-fox { width: 100%; max-width: 420px; }
}

/* assure strip */
.assure { background: var(--navy-deep); color: #fff; border-top: 1px solid rgba(201,168,76,.25); }
.assure-list { list-style: none; margin-block: 0; padding: 18px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.assure-list li { border-left: 2px solid var(--gold); padding-left: 12px; }
.assure-list b { display: block; font-family: var(--mincho); font-size: 1.0625rem; letter-spacing: .06em; }
.assure-list span { display: block; font-size: .875rem; color: #c9c7de; line-height: 1.6; }
@media (min-width: 900px) { .assure-list { grid-template-columns: repeat(4, 1fr); } }

/* sections */
.sec { padding-block: var(--step); }
.sec-tint { background: var(--tint); }
.sec-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); text-align: center; margin-bottom: 16px; }
.sec-title::after { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin: 14px auto 0; }
.sec-title.left { text-align: left; }
.sec-title.left::after { margin-left: 0; }
.sec-lead { text-align: center; color: var(--sub); max-width: 36em; margin: 0 auto 40px; }

/* worries: 카드 대신 헤어라인 2단 목록 */
.worries { margin: 36px 0 0; display: grid; gap: 0 48px; }
.worries > div { padding: 20px 0; border-top: 1px solid var(--line); }
.worries dt { font-family: var(--mincho); font-weight: 700; font-size: 1.1875rem; line-height: 1.55; margin-bottom: 6px; font-feature-settings: "palt"; }
.worries dd { margin: 0; color: var(--sub); font-size: .9375rem; }
.tag { display: table; font-family: var(--gothic); font-size: .875rem; font-weight: 700; color: var(--gold-ink); border: 1px solid currentColor; border-radius: 4px; padding: 0 8px; margin-bottom: 8px; line-height: 1.6; letter-spacing: .04em; }
@media (min-width: 760px) { .worries { grid-template-columns: 1fr 1fr; } }
.worries-close { text-align: center; margin: 40px auto 0; font-family: var(--mincho); font-weight: 500; font-size: 1.125rem; max-width: 28em; }

/* sample */
.sample { display: grid; gap: 24px; }
@media (min-width: 960px) { .sample { grid-template-columns: 300px 1fr; align-items: start; } }
.toc { list-style: none; margin: 0; padding: 8px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; }
.toc li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; color: var(--sub); line-height: 1.5; }
.toc li + li { border-top: 1px dashed var(--line); }
.toc .no { font-family: var(--mincho); font-weight: 700; color: var(--gold-ink); width: 1.6em; flex: none; font-variant-numeric: tabular-nums; }
.toc li.open { color: var(--ink); font-weight: 700; }
.toc li em { margin-left: auto; flex: none; white-space: nowrap; font-size: .875rem; font-weight: 700; color: var(--gold-ink); }
.pages { display: grid; gap: 16px; }
@media (min-width: 700px) { .pages { grid-template-columns: 1fr 1fr; } }
.page { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px 20px; box-shadow: 0 12px 28px rgba(27,24,64,.08); font-size: .9375rem; line-height: 1.85; }
.page-head { font-size: 1.0625rem; border-left: 3px solid var(--gold); padding-left: 10px; margin-bottom: 18px; }
.page-meta { font-size: .875rem; color: var(--sub); margin-top: 12px; }
.lock { margin: 20px 0 0; padding-top: 16px; text-align: center; font-size: .875rem; color: var(--sub); border-top: 1px dashed var(--line); }

.meishiki { width: 100%; border-collapse: collapse; text-align: center; margin-bottom: 16px; font-size: .875rem; }
.meishiki th, .meishiki td { border: 1px solid var(--line); padding: 6px 2px; }
.meishiki thead th { background: var(--navy); color: #fff; font-weight: 400; font-family: var(--gothic); }
.meishiki tbody th { background: var(--tint); font-weight: 400; width: 4.6em; }
.meishiki td.wood, .meishiki td.fire, .meishiki td.earth, .meishiki td.metal, .meishiki td.water { font-family: var(--mincho); font-size: 1.625rem; font-weight: 700; line-height: 1.3; }
.wood { color: var(--wood); } .fire { color: var(--fire); } .earth { color: var(--earth); } .metal { color: var(--metal); } .water { color: var(--water); }
.meishiki td.me { box-shadow: inset 0 0 0 2px var(--gold); }
.meishiki td.none { color: var(--sub); font-size: .875rem; }

/* 오행: 트랙 막대 대신 다섯 칸 숫자 */
.gogyo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 16px; }
.gogyo div { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 0 4px; }
.gogyo b { display: block; font-family: var(--mincho); font-size: 1.25rem; line-height: 1.3; }
.gogyo span { font-size: .875rem; color: var(--sub); }
.gogyo .zero { opacity: .55; }

.numbers { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 20px; }
.numbers li { text-align: center; }
.numbers b { display: block; font-family: var(--mincho); font-size: 2.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.numbers b small { font-size: 1rem; margin-left: 2px; }
.numbers span { display: block; font-size: .9375rem; color: var(--sub); margin-top: 4px; }
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(3, 1fr); } .numbers li + li { border-left: 1px solid var(--line); } }

/* free */
.free-wrap { display: grid; gap: 28px; }
@media (min-width: 960px) { .free-wrap { grid-template-columns: .9fr 1.1fr; align-items: start; column-gap: 56px; } .free-result { grid-column: 2; } }
.free-intro p { color: var(--sub); }
.free-scope { font-size: .875rem; border-left: 2px solid var(--gold); padding-left: 10px; }
.free-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; display: grid; gap: 20px; box-shadow: 0 12px 28px rgba(27,24,64,.07); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 1rem; margin-bottom: 8px; padding: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sel { flex: 1 1 88px; }
.sel-year { flex: 1 1 100%; }
.sel-wide { flex: 1 1 150px; }
select {
  width: 100%; min-height: 48px; padding: 10px 36px 10px 12px; font-size: 1rem; color: var(--ink);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355536a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #a9a7bd; border-radius: 8px; -webkit-appearance: none; appearance: none;
}
select:disabled { opacity: .5; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; min-height: 48px; padding-inline: 4px; }
.check input { width: 22px; height: 22px; accent-color: var(--pick); }
.hint { font-size: .875rem; color: var(--sub); margin: 8px 0 0; line-height: 1.7; }
.form-error { margin: 0; color: var(--fire); font-size: .9375rem; font-weight: 700; }
.free-result { background: var(--surface); border: 2px solid var(--gold); border-radius: var(--radius); padding: 22px 18px; }
.free-result:focus { outline: none; }
.result-title { font-size: 1.25rem; margin-bottom: 14px; }
.r-trait { background: var(--tint); border-radius: 8px; padding: 14px; }
.r-trait b { font-family: var(--mincho); font-size: 1.0625rem; }
.r-meta { font-size: .875rem; color: var(--sub); }
.r-warn { font-size: .9375rem; color: var(--fire); border: 1px solid currentColor; border-radius: 8px; padding: 10px 12px; }
.r-next { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; text-align: center; }

/* how: 경도 도표 + 번호 목록 */
.how { display: grid; gap: 32px; margin-top: 36px; }
@media (min-width: 960px) { .how { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 56px; } }
.lng-chart { margin: 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 20px 20px; }
.lng-chart figcaption { font-family: var(--mincho); font-weight: 700; font-size: 1.125rem; line-height: 1.6; margin-bottom: 72px; }
.lng-scale { list-style: none; margin: 0 24px 72px; padding: 0; height: 2px; background: rgba(255,255,255,.35); position: relative; }
.lng-scale li { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); width: 4.5em; text-align: center; }
.lng-scale li::after { content: ""; position: absolute; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.lng-scale li:nth-child(odd) { bottom: 0; padding-bottom: 14px; }
.lng-scale li:nth-child(odd)::after { bottom: -3.5px; }
.lng-scale li:nth-child(even) { top: 0; padding-top: 14px; }
.lng-scale li:nth-child(even)::after { top: -3.5px; }
.lng-scale li.base::after { background: var(--gold); width: 13px; height: 13px; }
.lng-scale li.base:nth-child(even)::after { top: -5.5px; }
.lng-scale b { display: block; font-size: .9375rem; line-height: 1.3; }
.lng-scale span { display: block; font-size: .875rem; color: #e6d8a8; line-height: 1.3; font-variant-numeric: tabular-nums; }
.lng-note { font-size: .875rem; color: #c9c7de; margin: 0; }
.how-list { list-style: none; margin: 0; padding: 0; counter-reset: how; }
.how-list li { counter-increment: how; position: relative; padding: 0 0 22px 52px; }
.how-list li + li { padding-top: 22px; border-top: 1px solid var(--line); }
.how-list li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; font-family: var(--mincho); font-weight: 700; font-size: 1.375rem; color: var(--gold-ink); line-height: 1.4; }
.how-list li + li::before { top: 22px; }
.how-list h3 { font-size: 1.125rem; margin-bottom: 6px; }
.how-list p { color: var(--sub); font-size: .9375rem; margin: 0; }

/* flow: 연결선 타임라인 */
.flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 28px 56px; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; border: 1px solid var(--gold); font-family: var(--mincho); font-weight: 700; font-size: 1.125rem; z-index: 1; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.flow h3 { font-size: 1.1875rem; margin: 4px 0 6px; }
.flow p { color: var(--sub); font-size: .9375rem; margin: 0; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .flow li { padding: 56px 0 0; }
  .flow li:not(:last-child)::after { left: 46px; right: -24px; top: 18px; bottom: auto; width: auto; height: 2px; }
}
.flow-note { margin-top: 28px; font-size: .875rem; color: var(--sub); }

/* plans */
.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .plans { grid-template-columns: 1.15fr 1fr 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 22px; display: flex; flex-direction: column; position: relative; }
.plan-main { border: 2px solid var(--gold); }
.plan-flag { position: absolute; top: -13px; left: 18px; background: var(--gold); color: var(--navy); font-size: .875rem; font-weight: 700; padding: 1px 12px; border-radius: 999px; margin: 0; }
.plan h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.price { font-family: var(--mincho); font-size: 2.25rem; font-weight: 700; line-height: 1.3; margin: 0; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; margin-left: 2px; }
.plan-spec { font-size: .875rem; color: var(--sub); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.plan ul { padding-left: 1.1em; margin: 4px 0 20px; font-size: .9375rem; line-height: 1.8; flex: 1; }
.plan li + li { margin-top: 4px; }
.plans-note { text-align: center; font-size: .9375rem; color: var(--sub); margin-top: 26px; }

/* faq */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
summary { cursor: pointer; padding: 18px 40px 18px 40px; font-weight: 700; position: relative; list-style: none; line-height: 1.6; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q"; position: absolute; left: 6px; top: 16px; font-family: var(--mincho); color: var(--gold-ink); font-size: 1.25rem; }
summary::after { content: ""; position: absolute; right: 10px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 30px; }
details p { padding: 0 8px 20px 40px; color: var(--sub); margin: 0; font-size: .9375rem; }
.caution { margin-top: 48px; padding: 22px 20px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.caution h2 { font-size: 1.0625rem; margin-bottom: 10px; }
.caution p { font-size: .9375rem; color: var(--sub); }

/* footer */
.site-footer { background: var(--navy-deep); color: #c9c7de; padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .875rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--mincho); font-weight: 700; font-size: 1.25rem; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 20px; }
.copy { color: #8f8daa; margin: 0; }

/* legal pages */
.legal { padding-block: 48px 72px; }
.legal h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.1875rem; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.legal p, .legal li { font-size: .9375rem; }
.legal ul, .legal ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--water); }
.legal-updated { color: var(--sub); font-size: .875rem; margin-bottom: 28px; }
.legal-table { margin: 0; border-top: 1px solid var(--line); }
.legal-table dt { font-weight: 700; padding: 14px 0 2px; font-size: .9375rem; }
.legal-table dd { margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.legal-table dd p { margin: 0 0 .5em; }
@media (min-width: 720px) {
  .legal-table { display: grid; grid-template-columns: 13em 1fr; }
  .legal-table dt { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
  .legal-table dd { padding: 14px 0; }
}
.table-scroll { overflow-x: auto; margin-bottom: 1em; }
.legal-grid { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .875rem; }
.legal-grid th, .legal-grid td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-grid th { background: var(--tint); font-weight: 700; }
.legal-note { margin-top: 32px; color: var(--sub); }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
/* order page */
.order { padding-block: 32px 72px; }
.order h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: 8px; }
.order-lead { color: var(--sub); margin-bottom: 24px; }
.order-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 28px; counter-reset: st; }
.order-steps li { counter-increment: st; flex: 1; text-align: center; font-size: .875rem; color: var(--sub); padding: 8px 4px; border-bottom: 3px solid var(--line); }
.order-steps li::before { content: counter(st) ". "; }
.order-steps li.is-current { color: var(--ink); font-weight: 700; border-color: var(--gold); }
.req { display: inline-block; margin-left: 8px; font-family: var(--gothic); font-size: .75rem; font-weight: 700; line-height: 1.5; color: #fff; background: var(--fire); border-radius: 4px; padding: 0 6px; vertical-align: 2px; letter-spacing: 0; }
.o-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 6px; margin-bottom: 18px; }
.o-block > legend { float: left; width: 100%; font-size: 1.125rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.o-block > legend + * { clear: both; }
.o-field { margin-bottom: 18px; }
.o-field > label, .o-label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 6px; }
.o-sub { display: block; font-size: .875rem; color: var(--sub); margin-bottom: 4px; }
.order input[type=text], .order input[type=email], .order textarea { width: 100%; font-size: 1rem; padding: 10px 12px; min-height: 48px; color: var(--ink); background: var(--bg); border: 1px solid #a9a7bd; border-radius: 8px; }
.order textarea { line-height: 1.7; resize: vertical; }
.abroad { margin-top: 8px; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid #a9a7bd; border-radius: 8px; font-size: 1rem; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--pick); }
.radio:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.product-list { display: grid; gap: 10px; }
.product { display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.product input { width: 20px; height: 20px; accent-color: var(--pick); grid-row: span 2; }
.product .p-name { font-weight: 700; }
.product .p-price { font-family: var(--mincho); font-weight: 700; font-size: 1.125rem; }
.product .p-spec { grid-column: 2 / 4; font-size: .875rem; color: var(--sub); }
.product:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid #a9a7bd; border-radius: 999px; cursor: pointer; font-size: .9375rem; }
.chips input { width: 18px; height: 18px; accent-color: var(--pick); }
.chips label:has(input:checked) { border-color: var(--gold); background: var(--tint); }
.check-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: .9375rem; border-top: 1px dashed var(--line); cursor: pointer; }
.check-line:first-of-type { border-top: 0; }
.check-line input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--pick); }
.check-line a { color: var(--water); }
#confirmView:focus { outline: none; }
.final-box { border: 2px solid var(--gold); border-radius: var(--radius); padding: 18px 18px 6px; margin-bottom: 28px; background: var(--surface); }
.final-box h2 { font-size: 1.125rem; margin-bottom: 10px; }
.final-box a, #inputSummary a { color: var(--water); }
.c-price { font-family: var(--mincho); font-size: 1.375rem; }
.c-sub { font-size: 1.125rem; margin: 0 0 10px; }
.c-actions { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 600px) { .c-actions { grid-template-columns: 1fr 1.4fr; } }
.c-note { text-align: center; }
.pay-area { margin: 28px 0 14px; }
#payButtons { min-height: 48px; }
.pay-status { margin: 10px 0 0; font-size: .9375rem; text-align: center; }
.pay-status.is-error { color: var(--fire); font-weight: 700; }
.pay-test { font-size: .875rem; font-weight: 700; color: #6b4b00; background: #fff3b0; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.done-box p { margin-bottom: .8em; }
.done-no strong { font-family: var(--mincho); font-size: 1.25rem; letter-spacing: .04em; }
.done-report { margin: 1.2em 0; padding: 1em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.done-report .btn { margin-top: .6em; }
.final-box .done-report a.btn-primary { color: var(--navy); text-decoration: none; }
.done-note { font-size: .875rem; color: var(--sub); }
#doneView:focus { outline: none; }
#doneView .btn { margin-top: 20px; }

/* 공개 전 빈칸: 미리보기에서 눈에 띄게. 공개 빌드는 이 표시가 하나라도 있으면 실패한다 */
.todo { background: #fff3b0; color: #6b4b00; border: 1px dashed #c9a84c; border-radius: 4px; padding: 0 4px; font-weight: 700; }

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