/* 실버인더루프 — 「바다 들판」 (11/17 밤 리디자인, 그 전 「작업대」는 scratchpad/style-1117m-backup.css)
   색면 풍경화처럼: 옅은 회청 하늘, 남색·청록 바다, 민트, 초록 들판, 크림 띠.
   선으로 나누지 않고 '면'으로 나눈다. 글꼴은 Pretendard 하나(동굴 벽화만 마루부리).
   5060이 폰으로 읽는다: 본문 18px 고정, 대비 7:1 근처, 버튼 56px, 자동 움직임 0. */

:root {
  /* 바탕 */
  --bg: #F7F4EC;          /* 크림 띠 */
  --paper: #FFFFFF;       /* 카드 */
  --fg: #14284A;          /* 남색 먹 */
  --muted: #475870;       /* 보조 글 */
  --line: #DDE2E2;
  --line-strong: #B8C3CA;
  /* 버튼·링크: 짙은 초록 */
  --accent: #0E6A47;
  --accent-ink: #FFFFFF;
  --accent-soft: #D3EADF;
  /* 그림의 색면 */
  --sky: #D2DAE8;         /* 옅은 회청 하늘 — 첫 화면·머리 바탕 */
  --sky-deep: #8C99B5;
  --navy: #1F3B6C;
  --sea: #2C6D9C;
  --teal: #1F8187;
  --teal-ink: #14666B;    /* 청록 글자(크림 위 6.2) */
  --mint: #8FCBB5;
  --field: #17844F;
  --tint-mint: #E5F0EA;   /* 단락 바탕 — 민트 */
  --tint-sky: #E6EAF2;    /* 단락 바탕 — 하늘 */
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1080px;
  --measure: 40rem;       /* 본문 한 줄 ≈ 한글 40자 */
  --text: 1.125rem;       /* 18px — 폰에서도 줄이지 않는다 */
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: var(--sans);   /* 옛 이름. 이제 제목도 Pretendard */
  --cave-serif: var(--sans);  /* 옛 이름. 동굴 벽화가 액자 그림이 되면서 마루부리도 뺐다 */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--text);
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }
img, iframe { max-width: 100%; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; text-wrap: balance; font-weight: 700; }
h1, h2 { letter-spacing: -.03em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.22; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.muted { color: var(--muted); }
.fine { font-size: 1rem; color: var(--muted); }
.small { font-size: 1rem; font-weight: 400; }
.eyebrow { font-size: 1rem; letter-spacing: .02em; color: var(--teal-ink); font-weight: 700; margin-bottom: .6em; }
.lead { font-size: 1.2rem; max-width: var(--measure); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5em 1em; }
.skip:focus { left: 8px; z-index: 10; }

.rule { border: 0; border-top: 1px solid var(--line-strong); margin: 1.4em 0; }

/* 머리: 맨 위에 가는 색 띠 네 줄(하늘·바다·민트·들판). 메뉴는 폰에서도 글자로(햄버거 없음) */
.top { background: var(--bg); position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(20, 40, 74, .08); }
.top::before { content: ""; display: block; height: 8px;
  background: linear-gradient(180deg, var(--sky-deep) 0 25%, var(--sea) 25% 50%, var(--mint) 50% 75%, var(--field) 75% 100%); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; padding-block: 8px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--fg); display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 8px;
  background: linear-gradient(180deg, var(--sky-deep) 0 34%, var(--sea) 34% 52%, var(--mint) 52% 70%, var(--field) 70% 100%); }
.brand-ko { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-en { font-size: .85rem; color: var(--muted); letter-spacing: .01em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; padding: 0 .85em; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 600; font-size: 1.02rem; }
.nav a:hover { background: var(--tint-mint); }
.nav a[aria-current="page"] { background: var(--tint-sky); }
.nav-cta { background: var(--accent); color: var(--accent-ink) !important; font-weight: 700 !important; padding: 0 1.1em !important; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--accent) !important; filter: brightness(1.1); }

/* 단락: 괘선 대신 바탕색 면으로 나눈다 */
section { padding-block: 64px; }
.page-head { padding-block: 48px 36px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page-head .lead { color: var(--fg); }

/* 버튼: 높이 56px, 알약 모양, 폰에서 전체 폭 */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 56px; padding: 0 1.7em;
  text-decoration: none; font-weight: 700; font-size: 1.08rem; line-height: 1.3; text-align: center;
  border-radius: 999px; border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--paper); color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover { background: var(--tint-mint); }
.btn-block { display: flex; width: 100%; }
.more { font-weight: 700; }
.more::after { content: " →"; }

/* 첫 화면 — 작업 지시서 */
.hero { padding-block: 52px 56px; }
.hero-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; } }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.hero .lead { margin-bottom: 0; }
.tally { list-style: none; padding: 0; margin: 1.6em 0 0; border-top: 1px solid var(--line-strong); max-width: var(--measure); }
.tally li { display: grid; grid-template-columns: 3.1rem 1fr; gap: 10px; align-items: baseline; padding: .7em 0; border-bottom: 1px solid var(--line); }
.tally-no, .step-no { font-family: var(--serif); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.tally-no { font-size: 1.35rem; }
.hero-sub { margin: 0 0 .6em; }
.hero-note { min-width: 0; }
.hero-figure { margin: 0 0 22px; }
.hero-figure img { width: 100%; border-radius: var(--radius); display: block; }
.hero-figure figcaption { font-size: 1rem; color: var(--muted); margin-top: .5em; }
.note { border-top: 3px solid var(--fg); padding-top: 18px; }
.note-label { font-size: 1rem; color: var(--muted); letter-spacing: .03em; margin-bottom: .8em; }
.note q { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.5; quotes: "“" "”"; }
.note-who { margin: .8em 0 1.2em; color: var(--muted); }
.note-list { list-style: none; padding: 0; margin: 0 0 1.2em; border-top: 1px solid var(--line); }
.note-list li { padding: .55em 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; }
.note-list .when { color: var(--accent); font-weight: 600; }

/* 이렇게 합니다 — 번호 세 칸, 카드 대신 괘선 */
.step-list { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 0 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-list li { border-top: 2px solid var(--fg); padding: 18px 0 26px; min-width: 0; }
.step-no { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: .45em; }
.step-list h3 { font-size: 1.2rem; }
.step-list p { margin-bottom: 0; }

/* 사례 + 영상 */
.proof-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .proof-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.proof-grid > div { min-width: 0; }
.video-card { min-width: 0; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-weight: 700; margin: .8em 0 .2em; font-size: 1.08rem; }
.feature .video-frame { max-width: var(--maxw); }
.video-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.video-list li { min-width: 0; }

/* 누가 하나요 · 도우미 */
.who p, .helper p { max-width: var(--measure); }

/* 신청 */
.apply-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .apply-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); } }
.apply-grid > * { min-width: 0; }
.apply-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 2px 0 var(--line), 0 12px 32px rgba(20, 40, 74, .08); padding: 26px 22px; position: sticky; top: 84px; }
.apply-card h2 { font-size: 1.35rem; }
.faq-list { border-top: 0; }
.faq-list dt { font-weight: 700; padding-top: .9em; }
.faq-list dd { margin: .2em 0 0; padding-bottom: .9em; border-bottom: 1px solid var(--line); color: var(--muted); }

/* 처리방침 */
.policy-body { max-width: 46rem; }
.policy-body h2 { font-size: 1.3rem; margin-top: 1.8em; }
.policy-body table { border-collapse: collapse; width: 100%; font-size: 1rem; display: block; overflow-x: auto; }
.policy-body th, .policy-body td { border: 1px solid var(--line-strong); padding: .5em .7em; text-align: left; vertical-align: top; }
.policy-body th { background: var(--paper); }
.policy-body ul { padding-left: 1.2em; }

/* 발: 남색 바다. 바로 위에 색 띠(main::after)가 들판처럼 깔린다 */
main::after { content: ""; display: block; height: clamp(64px, 9vw, 120px); background: url("bands-foot.svg") center bottom / 100% 100% no-repeat; }
.foot { background: var(--fg); color: #E9EEF3; padding-block: 28px 32px; font-size: 1rem; }
.foot a { color: #FFFFFF; }
.foot .muted, .foot .brand-en, .foot-meta { color: #BCC8D6; }
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.foot-brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: .3em; color: #FFFFFF; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-links a { display: inline-block; padding: .25em 0; }
.foot-meta { margin: .6em 0 0; }
.foot-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }

/* 기초 영상 세트 (배우기) */
.basics .video-frame { max-width: var(--maxw); margin-top: 18px; }
.basics-list { list-style: none; padding: 0; margin: 26px 0 10px; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.basics-list li { display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: .9em 0; border-bottom: 1px solid var(--line); }
.basics-list li > * { min-width: 0; }
.basics-list .step-no { font-size: 1.6rem; margin: 0; min-width: 2.2rem; }
.basics-list h3 { margin: 0 0 .2em; font-size: 1.12rem; }
.basics-list h3 a { color: var(--fg); }
.basics-list p { margin: 0; }

/* 내 유형 확인하기 */
.quiz .q { border: 0; background: var(--paper); border-radius: var(--radius); padding: 18px 14px 12px; margin: 0 0 14px; min-width: 0; }
.quiz .q.missing { box-shadow: inset 0 0 0 2px var(--accent); }
.quiz legend { font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: .5em; float: left; width: 100%; }
.quiz label { display: flex; gap: 12px; align-items: flex-start; padding: .65em .8em; margin: 0 0 4px; border-radius: 12px; cursor: pointer; clear: both; min-height: 48px; }
.quiz label:hover { background: var(--tint-mint); }
.quiz label:has(input:checked) { background: var(--accent-soft); }
.quiz input[type="radio"] { width: 1.4em; height: 1.4em; margin: .2em 0 0; flex: none; accent-color: var(--accent); }
.quiz h2 { margin-top: 1.2em; }
.quiz-missing { color: var(--accent); font-weight: 700; }
.result { background: var(--paper); border-radius: var(--radius-lg); padding: 24px 22px; }
.result-grid { display: grid; gap: 0 28px; grid-template-columns: 1fr; margin: 1em 0 1.6em; }
@media (min-width: 700px) { .result-grid { grid-template-columns: 1fr 1fr; } }
.result-card { border-top: 1px solid var(--line-strong); padding: 14px 0 6px; min-width: 0; }
.result-card h3 { font-size: 1.05rem; color: var(--accent); margin: .2em 0 .3em; }
.result-card h3 + p { margin-bottom: 1em; }
.result-say { border-top: 1px solid var(--line); margin-top: 1.4em; padding-top: 1.2em; }
.say { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: .6em 0; min-height: 48px; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; font: inherit; cursor: pointer; }

/* 사례 */
.case-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .case-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); } }
.case-grid > * { min-width: 0; }
.case-body h3 { font-size: 1.08rem; color: var(--accent); margin: 1.6em 0 .4em; padding-top: .9em; border-top: 1px solid var(--line); }
.case-body h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.case-rule { background: var(--paper); border-left: 3px solid var(--accent); padding: 12px 16px; font-size: 1.05rem; }
.case-timeline { list-style: none; padding: 0; margin: 0 0 1.2em; border-top: 1px solid var(--line); }
.case-timeline li { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; align-items: baseline; padding: .55em 0; border-bottom: 1px solid var(--line); }
.case-timeline .when { font-weight: 600; color: var(--accent); }
.case-quote { margin: 1.6em 0 0; padding: 18px 0 0; border-top: 3px solid var(--fg); font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.55; }
.case-quote footer { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--muted); margin-top: .5em; }
.case-side { background: var(--paper); border-top: 3px solid var(--fg); border-radius: 0 0 var(--radius) var(--radius); padding: 18px; }
.case-figure { margin: 0 0 14px; }
.case-figure img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.case-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 1.02rem; }
.case-facts dt { color: var(--muted); }
.case-facts dd { margin: 0; }

/* 벽화 — 손으로 그린 선화(SVG). 색은 토큰에서만 */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art .ink, .door-icon .ink { fill: none; stroke: var(--fg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.art .thin, .door-icon .thin { stroke-width: 3; }
.art .pap, .door-icon .pap { fill: var(--paper); }
.art .soft { fill: var(--accent-soft); }
.art .acc, .door-icon .acc { fill: var(--accent); }
.art .acc-fill, .door-icon .acc-fill { fill: var(--accent); stroke: none; }
.art .ink-fill, .door-icon .ink-fill { fill: var(--fg); stroke: none; }
.art .acc-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.art .ink-w { fill: none; stroke: var(--accent-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art .grain { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.art .hole { fill: var(--accent-soft); }
.art .dots circle { fill: var(--line-strong); }
.art text { font-family: var(--sans); fill: var(--fg); }
.art .t-big { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.art .t-mid { font-weight: 700; font-size: 16px; }
.art .t-cap { font-weight: 700; font-size: 16px; }
.art .t-small { font-size: 14px; fill: var(--muted); }
.art .acc-t { fill: var(--accent); }
.door-icon .t-icon { font-family: var(--serif); font-weight: 600; font-size: 12px; fill: var(--accent-ink); }

.hero-mural { padding-block: 44px 52px; }
.hero-mural h1 { text-align: center; margin-bottom: .2em; }
.hero-mural .eyebrow { text-align: center; }
.mural { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 880px) { .mural { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.panel { min-width: 0; text-align: center; padding: 10px 8px 14px; position: relative; }
@media (min-width: 880px) {
  .panel + .panel { border-left: 1px dashed var(--line-strong); }
  .panel + .panel::before { content: "→"; position: absolute; left: -.6em; top: 32%; color: var(--accent); background: var(--bg); font-weight: 700; line-height: 1; padding: 4px 0; }
}
.panel .art { max-width: 240px; margin: 0 auto; }
.panel-cap { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: .4em 0 0; line-height: 1.3; }
.panel-cap .tally-no { font-size: 1.05rem; margin-right: .15em; }
.panel-sub { margin: .2em 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.45; }
.cta-center { justify-content: center; margin-top: 1.6em; }
.center { text-align: center; }

.case-mural-grid { display: grid; gap: 24px 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .case-mural-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.case-mural-grid > * { min-width: 0; }
.case-mural-art .art { max-width: 460px; margin: 0 auto; }
.big-quote { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.45; quotes: "“" "”"; margin: .2em 0 .5em; }

.door-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .door-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.door { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-decoration: none; color: var(--fg); padding: 16px 14px; min-height: 96px; border-top: 2px solid var(--fg); }
.door:hover { background: var(--paper); }
.door-icon { grid-row: 1 / 3; width: 64px; height: 64px; }
.door-title { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; align-self: end; }
.door-sub { color: var(--muted); font-size: 1rem; align-self: start; line-height: 1.45; }

/* 사례 그림판 */
.page-head-center { text-align: center; padding-block: 40px 28px; }
.case-pic h2 { margin-bottom: 1em; }
.scene { margin: 0 auto; padding: 26px 0 30px; border-top: 1px solid var(--line-strong); max-width: 920px; }
.scene-label { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; text-align: center; margin: 0 0 16px; }
.scene-label .tally-no { font-size: 1.1rem; margin-right: .2em; }
.pic { min-width: 0; text-align: center; list-style: none; }
.pic .art { width: 100%; max-width: 150px; margin: 0 auto; }
.pic-title { font-weight: 700; font-size: 1.12rem; margin: .45em 0 0; line-height: 1.35; }
.pic-sub { color: var(--muted); font-size: 1rem; margin: .15em 0 0; line-height: 1.45; }
.pic-row { padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin-inline: auto; }

.recipe { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px 4px; }
.recipe .pic { width: 150px; }
.recipe .op { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; color: var(--accent); align-self: center; margin-top: -2.2em; width: 1.2em; text-align: center; }
.recipe .pic-result .pic-title { color: var(--accent); }
@media (max-width: 560px) {
  /* 폰: [주소 + 사진] / [한마디 = 상세페이지] 두 줄. 둘째 + 는 줄바꿈 자리라 숨긴다 */
  .recipe { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px 6px; }
  .recipe .pic { width: auto; }
  .recipe .op { margin-top: -1.6em; font-size: 1.8rem; }
  .recipe > li:nth-child(4) { display: none; }
}
.coach-row { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.coach-row li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.coach-row .art { width: 48px; height: 48px; flex: none; }

.track { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; }
@media (min-width: 820px) {
  .track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .track::before { content: ""; position: absolute; left: 12%; right: 12%; top: 1.05rem; border-top: 2px dashed var(--line-strong); }
}
.stop { text-align: center; min-width: 0; position: relative; }
.stop-when { display: inline-block; position: relative; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1rem; padding: .2em .9em; border-radius: 999px; margin-bottom: 8px; }
.stop .art { width: 100%; max-width: 130px; margin: 0 auto; }

.case-say { text-align: center; margin: 0 auto; }
.case-say .big-quote { margin-bottom: .3em; }
.case-figure-wide { max-width: 560px; margin: 0 auto 24px; }
.case-more { max-width: 46rem; margin: 10px auto 0; border-top: 1px solid var(--line-strong); }
.case-more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.case-more[open] summary { margin-bottom: 8px; }

/* 배우기 그림판 */
.lessons { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 920px; }
.lessons > li { min-width: 0; position: relative; }
.lesson { display: flex; align-items: center; gap: 14px; color: var(--fg); text-decoration: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-height: 48px; }
.lesson:hover .pic-title, .lesson:focus-visible .pic-title { text-decoration: underline; text-underline-offset: .18em; }
.lesson-art { flex: none; width: 104px; }
.lesson-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.lesson .stop-when { margin-bottom: 4px; }
.lesson .pic-title { color: var(--accent); }
@media (min-width: 820px) {
  .lessons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
  .lesson { flex-direction: column; text-align: center; height: 100%; padding: 16px 12px 18px; }
  .lesson-art { width: 100%; max-width: 140px; }
  .lesson-text { align-items: center; }
  .lessons > li + li::before { content: "→"; position: absolute; left: -26px; top: 38%; color: var(--accent); font-weight: 700; }
}
.lessons > li { display: flex; flex-direction: column; }
.lesson { flex: 1; }
.lesson-guide { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 6px; padding: 6px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--accent); font-weight: 700; text-decoration: none; }
.lesson-guide:hover, .lesson-guide:focus-visible { background: var(--paper); text-decoration: underline; text-underline-offset: .18em; }
.lesson-guide .art { width: 26px; height: 26px; flex: none; }
.lessons + .fine { margin-top: 14px; }
.video-frame-center { max-width: 760px; margin: 0 auto; }
.scene-note { margin: 14px 0 0; font-size: 1.05rem; }
.today-art { max-width: 190px; margin: 0 auto 4px; }
.case-cta .scene-label { margin-bottom: 8px; }
.case-body .basics-list { margin-top: 14px; }

/* 내 유형 동굴 벽화 — 바위 벽, 황토(ochre)·숯(char). 이 칸만 쓰는 색 */
:root { --ochre: #9A3818; --char: #2A2019; --rock: #D6C09B; --rock-deep: #6B4B2E; }
.type-hero { padding-block: 36px 20px; }
.type-hero h1 { margin-bottom: .5em; }
.cave-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cave { position: relative; isolation: isolate; overflow: hidden; max-width: 980px; margin: 0 auto 14px; padding: 30px 18px 26px; color: var(--char);
  background: var(--rock);
  clip-path: polygon(1% 5%, 8% 1.5%, 19% 3.5%, 31% .5%, 44% 2.5%, 57% 0%, 70% 3%, 82% .8%, 93% 2.8%, 99.5% 6%, 98.6% 28%, 100% 52%, 98.8% 76%, 99.6% 95%, 90% 99%, 77% 97%, 63% 100%, 49% 97.6%, 35% 99.6%, 21% 97.2%, 9% 99.4%, .4% 95%, 1.6% 72%, 0% 48%, 1.4% 25%); }
.cave .rock { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cave::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 50%, rgba(58, 34, 16, .5) 100%); }
.cave-art { overflow: visible; mix-blend-mode: multiply; }
.cave-art .c-k, .mark .c-k { fill: none; stroke: var(--char); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.cave-art .c-o, .mark .c-o { fill: none; stroke: var(--ochre); stroke-width: 4.5; stroke-linecap: round; }
.cave-art .c-thin, .mark .c-thin { stroke-width: 3; }
.cave-art .c-wide { stroke-width: 7; }
.cave-art .c-of, .mark .c-of { fill: var(--ochre); opacity: .92; }
.cave-art .c-kf { fill: var(--char); }
.cave-art .c-k-edge { stroke: var(--char); stroke-width: 2.5; }
.cave-art .c-spray, .mark .c-spray { fill: var(--ochre); opacity: .85; }
.cave-art .c-rock, .mark .c-rock { fill: var(--stencil, #E4D3B4); }
.cave-art .c-rock-line, .mark .c-rock-line { fill: none; stroke: var(--stencil, #E4D3B4); stroke-width: 11; stroke-linecap: round; }
.mark { position: absolute; pointer-events: none; mix-blend-mode: multiply; opacity: .75; }
.mark-dots { width: 120px; top: 22px; left: 5%; transform: rotate(-6deg); }
.mark-tally { width: 64px; bottom: 24px; right: 7%; transform: rotate(4deg); }
.cave-result .mark-tally { top: 20px; left: 6%; bottom: auto; right: auto; transform: rotate(-5deg); }
.mark-hand { width: 92px; top: 14px; right: 5%; transform: rotate(14deg); opacity: .55; }
.cave-tag { position: relative; display: table; margin: 0 auto 4px; font-family: var(--cave-serif); font-weight: 600; font-size: 1.05rem; color: var(--char); padding: 0 .4em .15em; }
.cave-tag::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--ochre); opacity: .8; transform: rotate(-1.2deg); }
.cave-say { font-family: var(--cave-serif); font-weight: 600; font-size: clamp(1.35rem, 4.6vw, 2.05rem); line-height: 1.4; text-align: center; margin: 14px 0 10px; text-wrap: balance; color: var(--char); }
.cave-say em { font-style: normal; color: var(--ochre); white-space: nowrap; }
.cave-small { text-align: center; margin: 14px 0 2px; font-size: 1.02rem; color: var(--char); }
.cave-row { list-style: none; padding: 0; margin: 4px auto 0; display: grid; gap: 6px 10px; max-width: 860px; }
.cave-row li { min-width: 0; text-align: center; }
.cave-row .art { width: 100%; max-width: 160px; margin: 0 auto; }
.cave-row span { display: block; font-family: var(--cave-serif); font-weight: 600; font-size: clamp(1rem, 2.8vw, 1.15rem); line-height: 1.3; word-break: keep-all; }
.cave-row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cave-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; }
.cave-row li:nth-child(odd) .art { transform: rotate(-3deg) translateY(4px); }
.cave-row li:nth-child(even) .art { transform: rotate(2.5deg); }
@media (max-width: 560px) {
  .cave { padding: 30px 10px 26px; }
  .cave-row-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cave-row-5 li { grid-column: span 2; }
  .cave-row-5 li:nth-child(4) { grid-column: 2 / span 2; }
  .cave-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cave-row .art { max-width: 128px; }
  .mark-dots { width: 80px; } .mark-hand { width: 62px; } .mark-tally { width: 46px; }
}
.part-art .cave-art, .opt-art .cave-art { mix-blend-mode: normal; }
.opt-art, .part-art { --stencil: var(--paper); }
.quiz label:has(input:checked) .opt-art { --stencil: var(--accent-soft); }

.part-head { display: flex; align-items: center; gap: 12px; }
.part-art { width: 72px; flex: none; }
.quiz .q-pic label { align-items: center; }
.opt-art { width: 56px; flex: none; }

.result.result-wall { background: transparent; border: 0; padding: 0; }
.pair { display: flex; justify-content: center; align-items: flex-start; gap: 6px; }
.pair-item { margin: 0; width: 170px; min-width: 0; text-align: center; }
.pair-item .art { width: 100%; }
.pair-op { font-family: var(--cave-serif); font-weight: 600; font-size: 2.4rem; color: var(--ochre); margin: 2.2em 0 0; }
.pair-cap { display: block; color: var(--char); font-size: .95rem; }
.pair-item strong { display: block; text-wrap: balance; font-family: var(--cave-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.35; word-break: keep-all; }
.result-wall .say { margin: 0; }
.tiles { list-style: none; padding: 0; margin: 22px auto 6px; max-width: 960px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tiles li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tiles li > div { min-width: 0; }
.tiles .art { width: 52px; flex: none; }
.tiles h3 { font-size: 1.05rem; color: var(--accent); margin: 0 0 .25em; }
.tiles p { margin: 0; }

/* 도우미 말풍선 (톡키 아이콘 왼쪽) */
.tokki-hint { position: fixed; z-index: 2147482999; right: calc(100px + env(safe-area-inset-right, 0px)); bottom: calc(30px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: stretch; max-width: min(260px, calc(100vw - 112px)); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 40, 74, .18); }
.tokki-hint[hidden] { display: none; }
.tokki-hint::after { content: ""; position: absolute; right: -8px; bottom: 18px; width: 14px; height: 14px; background: var(--paper); border-right: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); transform: rotate(45deg); }
.tokki-hint-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--fg); padding: 10px 4px 10px 14px; cursor: pointer; min-height: 48px; }
.tokki-hint-open strong { color: var(--accent); }
.tokki-hint-close { flex: none; width: 40px; background: none; border: 0; font: inherit; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 0 14px 14px 0; }
.tokki-hint-close:hover, .tokki-hint-open:hover { background: var(--tint-mint); }
.tokki-hint-open:hover { border-radius: 14px 0 0 14px; }
@media print { .tokki-hint { display: none !important; } }

/* 도우미 아이콘 = 홀로그램 토끼 얼굴. 말풍선 안에 헤드셋 낀 토끼, 밑에 「물어보기」.
   얼굴만 7초에 한 바퀴(앞 40% 동안 돌고 나머지 멈춤) + 가끔 깜빡임 + 주사선 */
.holo { position: relative; display: block; width: 64px; height: 64px; }
.holo > svg, .holo-spin { position: absolute; inset: 0; width: 100%; height: 100%; }
.holo-bubble { filter: drop-shadow(0 0 6px rgba(124, 243, 221, .55)) drop-shadow(0 6px 10px rgba(12, 26, 51, .35)); }
.holo-spin { perspective: 160px; }
.holo-face { display: block; width: 100%; height: 100%; opacity: .95;
  filter: drop-shadow(0 0 2.5px rgba(124, 243, 221, .9));
  animation: holo-turn 7s cubic-bezier(.45, 0, .55, 1) infinite, holo-flicker 4.3s steps(1) infinite; }
.holo-lines { pointer-events: none; }
.holo-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -6px); white-space: nowrap;
  background: var(--accent); color: #fff; font: 700 14px/1 var(--sans); letter-spacing: -.01em;
  padding: 5px 10px 6px; border-radius: 999px; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(12, 26, 51, .25); }
@keyframes holo-turn { 0% { transform: rotateY(0deg); } 40% { transform: rotateY(360deg); } 100% { transform: rotateY(360deg); } }
@keyframes holo-flicker { 0%, 100% { opacity: .95; } 37% { opacity: .65; } 39% { opacity: .95; } 71% { opacity: .8; } 72% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .holo-face { animation: none !important; } }

/* 앱처럼 쓰기 */
.app-install { margin-top: 1.4em; }
.app-done { margin-top: 1.2em; font-weight: 600; color: var(--accent); }
.app-ways { display: grid; gap: 8px 36px; grid-template-columns: 1fr; margin-top: 1.2em; }
@media (min-width: 880px) { .app-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-way { min-width: 0; }
.app-way h3 { margin: 1em 0 .2em; }
.app-way .tally { margin-top: .6em; }
.app-facts { max-width: var(--measure); }

/* ───────── 바다 들판: 면으로 나누기 ───────── */
/* 하늘 면 + 아래 색 띠(bands-top.svg). 첫 화면·각 페이지 머리·내 유형 머리 */
.hero-mural, .page-head, .type-hero {
  background: var(--sky) url("bands-top.svg") center bottom / 100% clamp(72px, 10vw, 140px) no-repeat;
  padding-bottom: clamp(104px, 13vw, 180px);
}
.hero-mural { padding-top: 56px; }
.hero-mural .eyebrow, .page-head .eyebrow, .type-hero .eyebrow { color: var(--navy); }
.hero-mural .fine, .page-head .fine, .type-hero .fine { color: #33445E; }
.hero h1 em { color: var(--accent); }

/* 첫 화면 네 칸: 하늘 위에 뜬 흰 카드 */
.mural { gap: 14px; margin: 32px 0 8px; }
@media (min-width: 880px) { .mural { gap: 16px; } }
.panel { background: var(--paper); border-radius: var(--radius-lg); padding: 16px 12px 20px; }
.panel + .panel { border-left: 0 !important; }
.panel + .panel::before { content: none !important; }
.panel-cap { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.tally-no, .step-no { font-family: var(--sans); font-weight: 800; color: var(--teal-ink); letter-spacing: -.02em; }
.panel-cap .tally-no, .scene-label .tally-no { display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; padding: 0 .3em; margin-right: .35em; border-radius: 999px; background: var(--tint-mint); font-size: .8em; vertical-align: .1em; }

/* 홈 단락 바탕: 크림 · 민트 · 하늘 · 크림 */
.doors { background: var(--tint-mint); }
.proof { background: var(--tint-sky); }
.big-quote { font-family: var(--sans); font-weight: 700; letter-spacing: -.025em; }
.door { background: var(--paper); border-top: 0; border-radius: var(--radius-lg); padding: 18px 16px; }
.door:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--mint); }
.door-title { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }

/* 사례·배우기: 장면마다 흰 카드 */
.case-pic { padding-top: 40px; }
.case-pic + .case-pic { background: var(--tint-mint); }
.scene { border-top: 0; background: var(--paper); border-radius: var(--radius-lg); padding: 26px 16px 30px; margin-bottom: 16px; }
.case-say { background: transparent; }
.scene-label { font-weight: 700; letter-spacing: -.02em; }
.recipe .op { font-family: var(--sans); font-weight: 800; color: var(--teal); }
.track::before { border-top-color: var(--mint) !important; }
.stop-when { background: var(--teal-ink); }
.case-more { border-top: 0; }
.case-cta { background: var(--tint-sky); }
.lesson { border: 0; background: var(--tint-sky); border-radius: var(--radius); }
.lessons > li + li::before { color: var(--teal); }
.lesson-guide { border: 0; background: var(--tint-mint); border-radius: 999px; }
.lesson-guide:hover, .lesson-guide:focus-visible { background: var(--accent-soft); }
.tiles li { border: 0; background: var(--tint-sky); }

/* 내 유형: 하늘 벽에 건 동굴 벽화 한 점 */
.quiz .q { box-shadow: 0 1px 0 var(--line); }
.quiz label:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--field); }

/* 내 유형 그림: 동굴 벽화 → 나무 액자에 건 그림 한 점(11/17 밤).
   바위 결·삐죽한 가장자리·얼룩 표시는 끄고, 손으로 그은 선(cave-rough)만 남긴다 */
:root { --char: #14284A; --ochre: #B5532C; --canvas: #F3EEE2; --canvas-sky: #A9B6CC; }
.artwork { margin: 0 auto 18px; max-width: 980px; }
.cave { clip-path: none; color: var(--char); --stencil: var(--canvas);
  background: var(--canvas) url("bands-art.svg") center bottom / 100% clamp(40px, 6vw, 64px) no-repeat;
  padding: 0 18px clamp(64px, 8vw, 92px);
  border: 14px solid; border-color: #6E4E36 #5C402D #4A3323 #5C402D; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22), inset 0 3px 10px rgba(0, 0, 0, .12), 0 1px 0 #34241A, 0 24px 48px rgba(20, 40, 74, .24); }
.cave .rock, .cave::after, .cave .mark { display: none; }
.cave-art, .mark { mix-blend-mode: normal; }
.canvas-sky { --stencil: var(--canvas-sky); background: var(--canvas-sky); margin: 0 -18px; padding: 26px 18px 18px; }
.cave-tag, .cave-say, .cave-row span, .pair-op, .pair-item strong { font-family: var(--sans); letter-spacing: -.02em; }
.cave-tag { font-weight: 700; }
.cave-say { font-weight: 800; margin-top: 22px; }
.cave-row span, .pair-item strong { font-weight: 700; }
.cave-result { padding-top: 26px; }
.plaque { display: table; margin: 18px auto 0; background: var(--paper); padding: 8px 16px; border-radius: 3px; box-shadow: 0 1px 0 var(--line-strong), 0 6px 14px rgba(20, 40, 74, .1); text-align: center; line-height: 1.4; }
.plaque strong { display: block; font-size: 1rem; }
.plaque span { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) {
  .cave { border-width: 10px; padding-inline: 8px; }
  .canvas-sky { margin-inline: -8px; padding-inline: 8px; }
}

/* 앱·신청·처리방침 */
.faq { background: var(--tint-mint); }
.faq-list dt { padding-top: 1em; }
.faq-list dd { border-bottom-color: rgba(20, 40, 74, .1); }
.app-what { background: var(--tint-mint); }
.policy-body th { background: var(--tint-sky); }

/* 폰 */
@media (max-width: 560px) {
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  section { padding-block: 44px; }
  .hero { padding-top: 36px; }
  .brand-en { display: none; }
  .top { position: static; }      /* 폰에선 머리가 두 줄 — 고정하면 화면을 너무 먹는다 */
  html { scroll-padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
