/* 올리브론 — 일러스트 스토리 콘셉트 (base.css v2026-11-04 를 바탕으로 테마 · 구도 덧붙임)
   테마: 노란색 + 검정색(theme_memo). 글자 크기 체계: 본문 16 · 보조 14 · 리드/버튼 18 · 카드 제목 22 · 섹션 제목 clamp(32,50) · 큰 제목 clamp(40,84).
   외부 자원 없음. 모바일 기준 갤럭시 A55(412px). */
:root {
  --brand: #ffc61a;         /* 테마 노랑(면 · 장식 · 버튼) */
  --brand-deep: #8a5a00;    /* 흰/옅은 바탕 위 강조 글자(대비 5.9:1) */
  --btn: #ffc61a;           /* 버튼 면 — 검정 글자와 대비 12:1 */
  --on-btn: #161512;
  --ink: #161512;           /* 거의 검정(순검정 금지) */
  --band-dark: #161512;     /* 진한 띠 배경 */
  --band-light: #fff7dc;    /* 옅은 띠 배경 */
  --brand-soft: #ffe58a;    /* 일러스트 둥근 배경 도형 */
  --brand-on-dark: #ffd447; /* 진한 띠 위 강조 글자 · 링크 */
  --bg: #ffffff;
  --text: #1b1a17;
  --muted: #4d4a42;
  --line: #ece3c6;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --shadow-up: 0 10px 24px rgba(0, 0, 0, .18);
  --max: 1200px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px; --s7: 64px; --s8: 96px; --s9: 120px;
}
@font-face { font-family: 'SCDream'; font-weight: 100; font-display: swap; src: url(SCDream1.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 200; font-display: swap; src: url(SCDream2.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 300; font-display: swap; src: url(SCDream3.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 400; font-display: swap; src: url(SCDream4.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 500; font-display: swap; src: url(SCDream5.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 600; font-display: swap; src: url(SCDream6.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 700; font-display: swap; src: url(SCDream7.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 800; font-display: swap; src: url(SCDream8.woff2) format('woff2'); }
@font-face { font-family: 'SCDream'; font-weight: 900; font-display: swap; src: url(SCDream9.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body { margin: 0; font-family: 'SCDream', 'Malgun Gothic', sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; color: var(--text); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; font-weight: 400; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* 글자 위계 */
h1 { font-size: clamp(40px, 4.6vw, 84px); line-height: 1.22; font-weight: 900; letter-spacing: -0.05em; }
h2 { font-size: clamp(32px, 2.6vw, 50px); line-height: 1.28; font-weight: 800; letter-spacing: -0.04em; }
h3 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; }
p, li, dd, dt, label { font-size: 16px; line-height: 1.6; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); font-weight: 400; }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1; font-weight: 700; color: var(--brand-deep); letter-spacing: .08em; margin-bottom: var(--s4); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.mark { background: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 92%, transparent 92%); padding: 0 .04em; }

/* 뼈대 · 띠 */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--s7) 0; }
#apply, #form-top, #story { scroll-margin-top: 80px; }
.section-head { margin-bottom: var(--s6); }
.section-head h2 + p { margin-top: var(--s4); }
.section-head.center { text-align: center; }
.band-light { background: var(--band-light); }
.band-dark { background: var(--band-dark); color: #fff; }
.band-dark .eyebrow { color: var(--brand-on-dark); }
.band-dark .lead { color: rgba(255, 255, 255, .8); }
.band-brand { background: var(--brand); color: var(--ink); }
.band-brand .eyebrow { color: var(--ink); }
.band-brand .lead { color: var(--ink); }

/* 장식 — 글 영역 밖(일러스트 칸 안)에만 두고 z-index 0 */
.dots { position: absolute; z-index: 0; width: 96px; height: 96px; pointer-events: none; opacity: .5; background-image: radial-gradient(var(--ink) 1.5px, transparent 2px); background-size: 16px 16px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink); background: var(--btn); color: var(--on-btn); font-size: 18px; line-height: 1; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-up); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn .arrow { font-weight: 800; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: none; }
.btn-block { width: 100%; }
.band-dark .btn:focus-visible { outline-color: var(--brand); }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.logo svg { width: 32px; height: 32px; flex: none; }
.topbar .btn { min-height: 48px; padding: 0 20px; font-size: 14px; box-shadow: none; }

/* 첫 화면 — 큰 제목 + 장면 일러스트 + 말풍선, 아래 넓은 폼 카드 */
.hero { position: relative; overflow: hidden; padding: var(--s6) 0 var(--s7); background: linear-gradient(160deg, var(--band-light) 0%, #fff 60%, var(--band-light) 100%); }
.hero > .wrap { position: relative; z-index: 1; display: grid; gap: var(--s5); align-items: center; }
.hero-text, .hero-form { position: relative; z-index: 1; }
.hero-art .dots { top: -12px; right: 8px; }
.hero h1 { margin-top: 0; color: var(--ink); }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s5); }
.chip { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.chip .k { font-size: 14px; line-height: 1; font-weight: 500; color: var(--muted); }
.chip strong { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.chip .u { font-size: 14px; line-height: 1; font-weight: 600; color: var(--brand-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-actions .btn { flex: 1 1 100%; }
.hero-art { position: relative; width: 100%; max-width: 320px; margin: 0 auto; }
.hero-art svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.say { position: absolute; right: 0; top: 4%; max-width: 62%; padding: var(--s2) var(--s4); background: var(--ink); color: #fff; border-radius: 24px 24px 4px 24px; font-size: 14px; line-height: 1.6; font-weight: 600; box-shadow: var(--shadow); z-index: 2; animation: bob 4s ease-in-out infinite; }
.say b { color: var(--brand-on-dark); font-weight: 800; }
.amount-card { position: absolute; left: 0; bottom: 6%; display: flex; align-items: baseline; gap: var(--s1); padding: var(--s2) var(--s4); background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); color: var(--ink); z-index: 2; }
.amount-card .u { font-size: 14px; line-height: 1; font-weight: 600; }
.amount-card strong { font-size: clamp(40px, 4.6vw, 84px); line-height: 1; font-weight: 900; letter-spacing: -0.05em; }
.hero-form { grid-column: 1 / -1; }

/* 폼 상자 */
.apply-box { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: var(--s5) 20px; min-width: 0; border: 1px solid var(--line); }
.box-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding-bottom: var(--s4); border-bottom: 1px dashed var(--line); }
.box-head h2, .box-head .box-title { font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.box-head .pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--band-light); border: 1px solid var(--brand); font-size: 14px; line-height: 1; font-weight: 600; color: var(--ink); }
.box-head .pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--ink); }
.box-note { margin-top: var(--s3); }
.crm-form-wrap { width: 100%; }
.crm-form-wrap[data-style="style2"] { display: none; }
.crm-form-wrap[data-style="style1"] { display: block; }

/* 폼 스킨(기준작 green type 방식 — 선택자 그대로, 색만 테마) */
.form-skin .crm-wrap { border: 0; padding: 0; background: transparent; border-radius: 0; }
.form-skin .crm-wrap input[type=text], .form-skin .crm-wrap input[type=tel], .form-skin .crm-wrap select { border: 1px solid #cfc4a0; border-radius: 8px; background-color: #fff; }
.form-skin .crm-wrap input:focus, .form-skin .crm-wrap select:focus { border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.form-skin .crm-wrap .crm-sub { border: 0; border-radius: 8px; background: var(--btn); color: var(--on-btn); }
.form-skin .crm-wrap .crm-sub:hover { filter: brightness(.92); }
.form-skin .crm-wrap .crm-ag input[type=checkbox] { accent-color: var(--ink); }
.form-skin .crm-wrap .crm-pb { color: var(--text); }
.form-skin .crm-wrap .crm-ag a, .form-skin .crm-wrap .crm-ag button, .form-skin .crm-wrap a, .form-skin .crm-wrap button:not(.crm-sub), .form-skin .crm-wrap [class*="term"], .form-skin .crm-wrap [class*="view"] { background: #FFF3C4 !important; color: #1A1A1A !important; border-color: var(--brand) !important; }

/* 장면 3컷 — 지그재그 + 점선 길 */
.story { width: 100%; }
.scene { display: grid; gap: 20px; align-items: center; }
.scene ~ .scene { margin-top: var(--s7); }
.scene-art { position: relative; width: 100%; max-width: 260px; margin: 0 auto; }
.scene-art svg { display: block; width: 100%; height: auto; }
.scene-no { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--brand-on-dark); font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; box-shadow: var(--shadow); }
.scene-text .tag { display: inline-block; font-size: 14px; line-height: 1; font-weight: 700; color: var(--brand-deep); letter-spacing: .02em; margin-bottom: var(--s3); }
.scene-text h3 { color: var(--ink); }
.scene-text p { margin-top: var(--s3); color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.tags li::before { content: "# "; color: var(--brand-deep); }
.path { display: none; }

/* 혜택 — 말풍선 칩 */
.bubbles { display: grid; gap: var(--s5); }
.bubble { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; align-items: start; padding: var(--s5); background: #fff; color: var(--text); border-radius: 24px 24px 24px 4px; box-shadow: var(--shadow); transition: transform .15s ease; }
.bubble:hover { transform: translateY(-2px); }
.bubble::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 24px; height: 14px; background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble .icon-circle { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.bubble .icon-circle svg { width: 32px; height: 32px; }
.bubble h3 { color: var(--ink); }
.bubble p { margin-top: var(--s1); color: var(--muted); word-break: keep-all; text-wrap: balance; }

/* 자주 묻는 질문 — 대화형 말풍선 */
.chat { display: grid; gap: var(--s5); }
.qa { display: grid; gap: var(--s3); }
.q, .a { display: flex; align-items: flex-end; gap: var(--s3); }
.a { justify-content: flex-end; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; line-height: 1; font-weight: 800; }
.q .avatar { background: #fff; border: 2px solid var(--ink); color: var(--ink); }
.a .avatar { background: var(--brand); border: 2px solid var(--ink); color: var(--ink); }
.q-text { max-width: 86%; padding: var(--s3) var(--s4); background: #fff; border: 1px solid var(--line); border-radius: 24px 24px 24px 4px; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); box-shadow: var(--shadow); }
.a-text { max-width: 86%; padding: var(--s3) var(--s4); background: var(--ink); color: #fff; border-radius: 24px 24px 4px 24px; }
.a-text b { color: var(--brand-on-dark); font-weight: 700; }

/* 신청 — 마지막 장면 그림 + 폼 */
.apply-grid { display: grid; gap: var(--s5); align-items: center; }
.apply-art { width: 100%; max-width: 120px; margin: 0; }
.apply-art svg { display: block; width: 100%; height: auto; }
.apply-main .section-head { margin-bottom: var(--s5); }
.apply-main h2 { color: var(--ink); }

/* 법정고지 푸터 — 진한 띠 · 로고 줄 · 1px 선 (여섯 줄은 블록 자체 스타일) */
.legal { background: var(--band-dark); color: rgba(255, 255, 255, .66); padding: 56px 0 40px; }
.legal .ft-top a { text-decoration: none; }
.ft-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s5); margin-bottom: var(--s4); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ft-top .logo { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 var(--s4); border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; color: #fff; font-size: 14px; line-height: 1; font-weight: 600; transition: background .15s ease; }
.to-top:hover { background: rgba(255, 255, 255, .1); }
.to-top:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* 움직임(2가지) — 말풍선 까딱임 · 장면 번호 */
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .say { animation: none; }
  .btn, .bubble { transition: none; }
}

/* 모바일 — 점무늬는 일러스트 왼쪽 아래로(말풍선과 겹치지 않게) */
@media (max-width: 480px) {
  .hero-art .dots { top: auto; right: auto; left: 4px; bottom: 40px; width: 72px; height: 72px; }
}

/* 태블릿 */
@media (min-width: 768px) {
  .section { padding: var(--s8) 0; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-art { max-width: 440px; }
  .scene-art { max-width: 300px; }
  .bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { grid-template-columns: 1fr 1fr; align-items: start; column-gap: var(--s6); row-gap: 40px; }
  .scene { grid-template-columns: 1fr 1fr; column-gap: 80px; row-gap: 0; }
  .scene ~ .scene { margin-top: 0; }
  .scene .scene-art { justify-self: start; margin: 0; }
  .scene.flip .scene-art { justify-self: end; }
  .scene .scene-text { justify-self: stretch; }
  .scene.flip .scene-art { order: 2; }
  .path { display: flex; justify-content: center; height: var(--s7); }
  .path svg { display: block; width: 50%; height: 64px; }
  .path.flip svg { transform: scaleX(-1); }
  .apply-box { padding: var(--s5) var(--s6); }
}

/* PC */
@media (min-width: 1024px) {
  .hero { padding: 72px 0 88px; }
  .hero > .wrap { grid-template-columns: 1.1fr .9fr; gap: var(--s6) var(--s7); }
  .chips { gap: var(--s4); }
  .chip { padding: var(--s4); }
  .bubbles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bubble { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: var(--s5) 20px 32px; }
  .bubble .icon-circle { width: 64px; height: 64px; }
  .bubble .icon-circle svg { width: 36px; height: 36px; }
  .bubble h3 { margin-top: 20px; }
  .bubble p { margin-top: var(--s2); }
  .hero-art .dots { right: auto; left: -16px; top: -16px; width: 160px; height: 160px; opacity: .4; background-size: 18px 18px; }
  .crm-form-wrap[data-style="style2"] { display: block; min-width: 780px; }
  .crm-form-wrap[data-style="style1"] { display: none; }
  .apply-box { padding: 28px 32px; }
}
@media (min-width: 1240px) {
  .apply-grid { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); }
  .apply-art { max-width: 260px; margin: 0 auto; }
}
