/* kize.app 랜딩 — 토큰·카드는 shared/, 여기는 랜딩 배치와 타이포만.
   색은 플테 토큰(먹·금), 크기·여백 위계는 2026-09-28 목업. 랜딩은 플테보다 여백을 크게 둔다. */

:root {
  --kr-display: 'Noto Serif KR', serif;
  --en-display: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --page: var(--ink-2);        /* 기본 면 */
  --band: var(--ink);          /* 한 단계 짙은 띠 */
  --deep: var(--ink-deep);     /* ???? 띠 */
  --body-ko: var(--num-2);     /* 한국어 병기 — 흐리게 하지 않는다 (먹 위 대비 약 9:1) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--deep);
  color: var(--t-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--num-3); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
small { display: block; }

.page {
  max-width: 440px; margin: 0 auto; min-height: 100vh;
  background-color: var(--page);
  background-image: var(--paper-noise);
  display: flex; flex-direction: column;
}

/* ─── 공통 타이포 ─── */
/* 마케팅 목소리: 영어 위, 한국어 아래 한 단계 작게 (약 0.85배) */
.mk-en { font-size: 16px; line-height: 1.65; color: var(--t-1); margin-top: 14px; }
.mk-ko { font-size: 14px; line-height: 1.7; color: var(--body-ko); margin-top: 4px; }
.sec-title { font-family: var(--en-display); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--num-3); }
.sec-title-ko { font-family: var(--kr-display); font-size: 17px; color: var(--body-ko); margin-top: 6px; }
/* 세계의 목소리: 한국어 위 크게, 영어 아래 작게 */
.world-ko { font-family: var(--kr-display); font-size: 20px; line-height: 1.65; color: var(--t-1); }
.world-en { font-family: var(--en-display); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--t-2); margin-top: 10px; }

section { padding: 60px 24px; }
.band { background: var(--band); }

/* ─── 헤더 ─── */
.top { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.wordmark { font-family: var(--en-display); font-size: 24px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t-1); text-decoration: none; padding: 6px 0; }
.top-link { font-size: 14px; padding: 13px 6px; }

/* ─── 첫 화면 ─── */
.hero { padding: 44px 24px 60px; display: flex; flex-direction: column; gap: 30px; }
.logo { display: flex; gap: 14px; align-items: flex-start; }
/* 로고: KIZE → 기제 → 機制 (기제와 機制는 같은 크기) */
.logo-kize { font-family: var(--en-display); font-weight: 600; font-size: 92px; line-height: .8; letter-spacing: .02em; text-transform: uppercase; color: var(--num-3); }
.logo-v { writing-mode: vertical-rl; }
.logo-ko, .logo-han { font-family: var(--kr-display); font-size: 24px; letter-spacing: .28em; padding-top: 2px; }
.logo-ko { color: var(--t-1); }
.logo-han { color: var(--gold-text); }

.epigraph-last { font-size: 17px; color: var(--t-2); }

.hook-title { font-family: var(--en-display); font-weight: 600; font-size: 42px; line-height: 1.05; color: var(--num-3); }
.hook-title-ko { font-family: var(--kr-display); font-size: 19px; margin-top: 8px; }

/* 순서쌍 장치 */
.pair { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.pair-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "recipe result" "crystals crystals"; gap: 10px 12px; align-items: center; }
.pair-recipe { grid-area: recipe; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pair-result { grid-area: result; text-align: right; font-family: var(--kr-display); font-size: 24px; line-height: 1.1; }
.pair-result small { font-family: var(--font-sans); font-size: 12px; color: var(--t-2); margin-top: 2px; }
.pair-result.attack > span { color: var(--dir-attack); }
.pair-result.heal > span { color: var(--dir-heal); }
.pair-crystals { grid-area: crystals; display: flex; align-items: center; gap: 12px; }
.pair-crystals svg { width: 170px; height: 34px; flex-shrink: 0; }
.pair-who { font-size: 12px; color: var(--t-2); }

.pill, .slot {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 16px; line-height: 1.3; color: var(--t-1);
}
.pill::before, .slot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); align-self: center; }
.pill small { display: inline; font-size: 12px; color: var(--t-2); }
.arrow { width: 16px; height: 16px; color: var(--t-2); flex-shrink: 0; }

.cr path { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.cr-hit { fill: color-mix(in srgb, var(--dir-attack) 14%, transparent); stroke: var(--dir-attack); stroke-width: 1.4; }
.cr-crack { fill: none; stroke: var(--dir-attack); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cr-glow { fill: color-mix(in srgb, var(--dir-heal) 30%, transparent); stroke: var(--dir-heal); stroke-width: 1.4; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--dir-heal) 60%, transparent)); }

/* CTA */
.cta { display: flex; flex-direction: column; gap: 10px; }
.btn-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 58px; padding: 8px 16px; border-radius: 8px;
  background: var(--gold); color: var(--ink); text-decoration: none;
  font-size: 17px; font-weight: 600; line-height: 1.25;
}
.btn-cta span { font-size: 12px; font-weight: 600; }
.btn-cta:hover { color: var(--ink); background: var(--gold-text); }
.cta-note { font-size: 13px; color: var(--t-2); text-align: center; }
.cta-note span { display: block; font-size: 12px; }

/* ─── 제작 시연 캐러셀 ─── */
.forge { padding: 52px 0 60px; }
.sec-head { padding: 0 24px 28px; }
.track {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 0 16px 4px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 calc(100% - 48px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 20px;
  padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--ink-2);
}
.slide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.school { font-family: var(--kr-display); font-size: 27px; line-height: 1.2; }
.school-unknown { font-family: var(--en-display); letter-spacing: .12em; color: var(--gold-text); }
.school-en { font-size: 12px; color: var(--t-2); margin-top: 2px; }
.slide-n { font-family: var(--en-display); font-size: 15px; color: var(--t-2); white-space: nowrap; }
.master p[lang="ko"] { font-family: var(--kr-display); font-size: 19px; line-height: 1.6; }
.master-en { font-size: 13px; line-height: 1.6; color: var(--t-2); margin-top: 6px; }
.master footer { font-size: 12px; color: var(--t-2); margin-top: 8px; }
.master footer::before { content: '— '; }
.slots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot { padding: 8px 12px; font-size: 15px; }
.slot i { font-style: normal; color: var(--gold-text); font-size: 12px; letter-spacing: .05em; }

.btn-line {
  align-self: flex-start; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 14px; color: var(--t-1);
}
.btn-line span { font-size: 12px; color: var(--body-ko); margin-left: 4px; }
.btn-line:hover:not(:disabled) { border-color: var(--gold-dim); }
.btn-line:disabled { opacity: .45; cursor: default; }

/* 카드 자리 */
.stage { min-height: 214px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.stage-empty {
  width: 190px; height: 180px; border: 1.5px dashed var(--line-strong); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; color: var(--t-2);
}
.stage-empty span { font-size: 12px; }
.stage .card-comp { zoom: 1.45; }
.stage-caption { font-size: 12px; color: var(--t-2); text-align: center; }
.stage-count { font-size: 13px; color: var(--t-1); text-align: center; }
.stage-count span { display: block; font-size: 12px; color: var(--body-ko); }
.stage-msg { font-size: 13px; color: var(--dir-attack); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .kz-in { animation: kzIn .38s ease-out; }
}
@keyframes kzIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.btn-forge {
  width: 100%; min-height: 60px; border-radius: 8px;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
}
.btn-forge b { font-family: var(--kr-display); font-size: 25px; font-weight: 600; }
.btn-forge span { font-size: 13px; font-weight: 600; }
.btn-forge:hover:not(:disabled) { background: var(--gold-text); }
.btn-forge:disabled { opacity: .6; cursor: progress; }
.battle-row { display: flex; flex-direction: column; gap: 6px; }
.battle-row .btn-line { align-self: stretch; }
.battle-hint { font-size: 12px; color: var(--t-2); text-align: center; }
.battle-hint span { display: block; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.pager-arrow { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--t-2); border-radius: 50%; }
.pager-arrow:hover:not(:disabled) { color: var(--t-1); }
.pager-arrow:disabled { opacity: .3; cursor: default; }
.pager-arrow svg { width: 16px; height: 16px; }
.dots { display: flex; gap: 0; }
.dot { width: 30px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.dot::before { content: ''; height: 6px; width: 8px; border-radius: 3px; background: var(--line-strong); transition: width .2s, background .2s; }
.dot[aria-current="true"]::before { width: 22px; background: var(--gold); }

.clips-exit { text-align: center; margin-top: 10px; }
.btn-text { min-height: 44px; padding: 8px 12px; color: var(--gold-text); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.btn-text span { font-size: 12px; margin-left: 4px; }

/* ─── 숫자 ─── */
.numbers .sec-title { font-size: 32px; }

/* ─── 다섯 학파 ─── */
.schools { padding: 56px 24px; }
.belief { margin-top: 34px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.belief-label { font-size: 13px; color: var(--t-2); }
.belief-label span { display: block; font-size: 12px; }
.belief-list { margin: 16px 0 18px; display: flex; flex-direction: column; gap: 12px; }
.belief-list span { font-family: var(--kr-display); font-size: 20px; line-height: 1.4; }
.belief-list small { font-size: 13px; color: var(--t-2); }
.belief-q { font-family: var(--en-display); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--t-1); }

.compass {
  margin-top: 40px; display: grid; gap: 26px 12px;
  grid-template-columns: 1fr 1fr; grid-template-areas: "nw ne" "w e" "s s";
}
.compass li { display: flex; flex-direction: column; }
.compass .nw { grid-area: nw; } .compass .ne { grid-area: ne; text-align: right; align-items: flex-end; }
.compass .w { grid-area: w; } .compass .e { grid-area: e; text-align: right; align-items: flex-end; }
.compass .s { grid-area: s; text-align: center; align-items: center; }
.compass-name { font-family: var(--kr-display); font-size: 25px; line-height: 1.2; display: inline-flex; align-items: center; gap: 8px; }
.compass-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.compass small { font-size: 12px; color: var(--t-2); margin-top: 2px; }


/* ─── 전투 ─── */
.battle-crystals { width: 100%; max-width: 340px; height: auto; margin: 28px auto 22px; display: block; }
.cr-gold path { fill: color-mix(in srgb, var(--gold) 12%, transparent); stroke: var(--gold); stroke-width: 1.4; }
.clip {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: var(--deep); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-soon { font-size: 13px; color: var(--t-2); text-align: center; }
.clip-soon span { display: block; font-size: 12px; }
.clip-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11,10,8,.35); color: var(--num-3);
}
.clip-play svg { width: 56px; height: 56px; }

/* ─── ???? ─── */
.unknown-band { background: var(--deep); padding: 92px 24px; text-align: center; }
.unknown-mark { font-family: var(--en-display); font-size: 68px; font-weight: 400; letter-spacing: .14em; line-height: 1; color: var(--gold-text); margin-bottom: 26px; }

/* ─── 태초의 술자 ─── */
.first .first-title { font-family: var(--kr-display); font-size: 30px; line-height: 1.3; }
.first .world-en { margin-top: 2px; }
.first .cta { margin-top: 30px; }

/* ─── 푸터 ─── */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 16px 20px 28px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--t-2); text-decoration: none; gap: 5px; }
.foot a:hover { color: var(--t-1); }
.foot a span { color: var(--t-1); }

/* ─── 바텀시트 ─── */
.sheet {
  margin: auto auto 0; width: 100%; max-width: 440px; max-height: 92vh;
  padding: 0; border: 0; background: transparent; color: var(--t-1);
}
.sheet::backdrop { background: rgba(5,4,3,.74); }
.sheet-panel {
  background: var(--ink-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 16px 16px 0 0; padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet-panel { animation: sheetUp .26s ease-out; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sheet-title { font-family: var(--en-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.sheet-title-ko { font-family: var(--kr-display); font-size: 15px; color: var(--body-ko); }
.sheet-close { width: 44px; height: 44px; margin: -8px -10px 0 0; display: inline-flex; align-items: center; justify-content: center; color: var(--t-2); }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-note { font-size: 12px; line-height: 1.6; color: var(--t-2); margin-top: 12px; }
.sheet-note + .sheet-note { margin-top: 2px; }
.sheet-list { display: flex; flex-direction: column; gap: 4px; }
.sheet-list button {
  display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 8px 4px;
  border-bottom: 1px solid var(--line-faint); text-align: left; font-size: 15px;
}
.sheet-list button span { font-family: var(--kr-display); font-size: 14px; color: var(--body-ko); }
.sheet-back { min-height: 44px; font-size: 13px; color: var(--gold-text); margin-bottom: 6px; }
