/* FABL Türkiye — 공개 사이트 스타일 (모로코와 같은 골격, 터키판 색) */
:root {
  --ink: #17213B;
  --blue: #1F4E8C;
  --blue-deep: #163A6B;
  --blue-tint: #E6EEF8;
  --mint: #1F7A5C;          /* WhatsApp·행동 */
  --mint-deep: #17614A;
  --mint-tint: #E2F2EB;
  --saffron: #E2A33B;       /* 별 모양·강조 줄 */
  --saffron-tint: #FBF1DE;
  --paper: #FAF8F4;
  --card: #FFFFFF;
  --line: #E1DDD4;
  --muted: #5B6377;
  --err: #B3261E;
  --radius: 14px;
  --font: "Noto Sans", system-ui, sans-serif;
  --lh: 1.65;
  --fs: 17px;
}
html[data-lang="ko"] { --font: "Noto Sans KR", "Noto Sans", system-ui, sans-serif; --lh: 1.75; }
html.big { --fs: 20px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs); line-height: var(--lh); padding-bottom: 90px; }
html[data-lang="ko"] body { word-break: keep-all; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 7.4vw, 44px); font-weight: 800; }
h2 { font-size: 1.4em; font-weight: 800; color: var(--blue-deep); }
h3 { font-size: 1.08em; font-weight: 700; margin-top: 1.4em; }
h4 { font-size: 1em; margin-bottom: .3em; }
p { margin: 0 0 1em; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.boot { min-height: 100vh; display: grid; place-items: center; font-weight: 800; color: var(--blue); }
.wrap { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.fine { font-size: .83em; color: var(--muted); }
.lead { font-size: 1.1em; color: var(--muted); }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(250,248,244,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .star { width: 30px; height: 30px; flex: none; fill: var(--saffron); }
.brand b { display: block; font-size: 17px; white-space: nowrap; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-act { display: flex; align-items: center; gap: 8px; }
.my-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--blue); }
.my-btn svg { width: 20px; height: 20px; }
.menu-btn { font: inherit; font-size: 15px; font-weight: 600; color: var(--blue); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; min-height: 40px; cursor: pointer; }
.drawer { position: sticky; top: 61px; z-index: 19; background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 20px 18px; }
.drawer ul { list-style: none; margin: 12px 0 0; padding: 0; }
.drawer li a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs button { font: inherit; font-size: 15px; padding: 6px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.langs button[lang="ko"] { font-family: "Noto Sans KR", sans-serif; }
.langs button[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.langs.small { justify-content: center; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 12px 22px; min-height: 48px; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--card); color: var(--blue); border-color: var(--line); }
.btn-light { background: #fff; color: var(--ink); }
.btn-wa { background: var(--mint); color: #fff; }
.btn-wa:hover { background: var(--mint-deep); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.icon-only { padding: 12px; width: 52px; }
.ico { width: 22px; height: 22px; flex: none; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link { font-weight: 700; }
.linkbtn { font: inherit; font-size: .9em; background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 0; }
.back { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; }

/* 히어로 */
.hero { background: linear-gradient(160deg, var(--blue-deep), var(--blue) 70%); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(226,163,59,.35), transparent 70%); }
.hero-in { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 0 20px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--saffron); margin-bottom: 10px; }
.kicker.dark { color: var(--blue); letter-spacing: .04em; font-size: 14px; }
.hero h1 { font-weight: 600; }
.hero h1 strong { display: block; margin-top: 6px; }
.hero .lead { color: #DCE6F5; }
.hero .btn-primary { background: #fff; color: var(--blue-deep); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.badge { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 0; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.12); border-radius: 999px; padding: 6px 14px; }
.ck { width: 18px; height: 18px; flex: none; fill: currentColor; }
.sent { display: flex; align-items: center; gap: 12px; margin-top: 22px; background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 12px 14px; }
.sent p { margin: 0; font-size: 15px; line-height: 1.45; }
.sent span { color: #DCE6F5; }
.summary-link { display: inline-block; margin-top: 14px; color: #fff; font-size: 15px; font-weight: 600; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: var(--saffron); color: var(--ink); font-weight: 800; font-size: 16px; }
.avatar.lg { width: 60px; height: 60px; font-size: 20px; }

/* 방문자 유형 */
.persona { background: var(--card); border-bottom: 1px solid var(--line); padding: 26px 0 20px; }
.persona h2 { font-size: 1.15em; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; padding: 9px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.persona-line { margin: 14px 0 0; padding: 12px 14px; background: var(--blue-tint); border-radius: 12px; }
.foryou { background: var(--saffron-tint); border-inline-start: 4px solid var(--saffron); border-radius: 10px; padding: 10px 14px; font-size: .95em; }
.foryou span { display: block; font-size: 12.5px; font-weight: 800; color: #9A6A17; margin-bottom: 2px; }

/* 섹션 */
.sec { padding: 34px 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.checkq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 1em; }
.q-title { font-weight: 700; margin-bottom: .5em; }
.checkq ul { margin: 0; padding-inline-start: 1.2em; }
.checkq li { margin-bottom: .35em; }
.checkq li::marker { content: "? "; color: var(--saffron); font-weight: 800; }
.story-box { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 18px 18px 4px; margin-bottom: 18px; }

.diagram { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 6px; }
.flow { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; }
.flow h3 { font-size: 15px; margin: 0 0 12px; text-align: center; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.flow li { position: relative; text-align: center; padding: 8px 6px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -17px; width: 2px; height: 14px; background: var(--muted); }
.flow.short { border-color: var(--blue); }
.flow.short li { background: var(--blue-tint); border-color: #BCD0EC; font-weight: 600; }
.dia-q { text-align: center; font-weight: 800; color: var(--blue-deep); margin: 14px 0 18px; }

.asof { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.pcards { display: grid; gap: 12px; margin: 10px 0 18px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; }
.pcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard h3 { margin: 0 0 .4em; }
.price { margin: 0; text-align: end; white-space: nowrap; }
.price b { display: block; font-size: 1.25em; color: var(--blue-deep); }
.price small { color: var(--muted); font-size: 12.5px; }
.pcard .cmp { color: var(--mint-deep); font-weight: 600; font-size: .95em; }
.trust { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { background: var(--blue-tint); color: var(--blue-deep); font-weight: 700; border-radius: 999px; padding: 6px 14px; font-size: 15px; }

.calc-sec { }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 14px; }
.calc table { width: 100%; border-collapse: collapse; }
.calc th { font-size: 12.5px; color: var(--muted); text-align: start; padding: 6px 4px; font-weight: 600; }
.calc td { padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.calc-pick { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.calc-pick input { width: 20px; height: 20px; accent-color: var(--blue); }
.calc-in { width: 100%; max-width: 110px; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.num { text-align: end; white-space: nowrap; font-weight: 700; }
.calc-out { margin-top: 12px; }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.totals p { margin: 0; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.totals span { display: block; font-size: 13px; color: var(--muted); }
.totals b { font-size: 1.2em; }
.totals p:last-child { background: var(--blue-tint); color: var(--blue-deep); }

.story-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.story-head h2 { margin: 0; }
.story-head .kicker { margin: 0 0 2px; }
.qa > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 2px; margin-bottom: 10px; }
.qa h3 { margin: 0 0 .4em; font-size: .9em; color: var(--muted); }
.owner-story { white-space: pre-line; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checks li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.checks .ck { color: var(--mint); width: 24px; height: 24px; margin-top: 1px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: .95em; }
.tbl-wrap { overflow-x: auto; margin: 0 0 1em; }
.cmp-tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: .92em; }
.cmp-tbl th, .cmp-tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.cmp-tbl thead th { background: var(--ink); color: #fff; font-size: 13.5px; }
.cmp-tbl td.hi { background: var(--mint-tint); color: var(--mint-deep); font-weight: 700; }
.cmp-tbl small { color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 1px; }
.idbox, .fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin: 0 0 1em; }
.idbox summary, .fold summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.fold[open] { padding-bottom: 14px; }
.ladder { list-style: none; padding: 0; margin: 0 0 .6em; display: grid; gap: 8px; counter-reset: l; }
.ladder li { counter-increment: l; }
.ladder a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--blue); border-radius: 12px; padding: 12px 14px; }
.ladder li:nth-child(1) a { border-inline-start-color: #9DB8E0; }
.ladder li:nth-child(2) a { border-inline-start-color: #5E88C6; }
.ladder li:nth-child(4) a { border-inline-start-color: var(--blue-deep); }
.ladder a b::before { content: counter(l) ". "; color: var(--blue); }
.ladder small { color: var(--muted); }

.business .honest { background: var(--saffron-tint); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.lead-s { color: var(--muted); }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 1em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card p { margin: 0; color: var(--muted); font-size: .95em; }
.dots { padding-inline-start: 1.2em; }
.dots li { margin-bottom: .45em; }
.dots li::marker { color: var(--saffron); }

.fit { display: grid; gap: 12px; margin-bottom: 1em; }
.fit-yes, .fit-no { border-radius: var(--radius); padding: 16px 18px 6px; }
.fit-yes { background: var(--mint-tint); }
.fit-no { background: var(--card); border: 1px solid var(--line); }
.fit-yes h2 { color: var(--mint-deep); }
.fit-no h3 { margin-top: 0; color: var(--muted); }
.fit ul { padding-inline-start: 1.2em; }

.faq { display: grid; gap: 8px; margin-bottom: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.timing { }
.timing p:last-child { font-weight: 700; color: var(--blue-deep); }

.paths { display: grid; gap: 10px; margin: 6px 0 16px; }
.path { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); padding: 14px 16px; }
.path b { font-size: 1.05em; }
.path small { color: var(--muted); }
.path-product { border-top-color: var(--mint); }
.path-unsure { border-top-color: var(--saffron); }
.path .ico { color: var(--mint); margin-bottom: 4px; }
.promise { font-weight: 600; }

.contact { margin: 10px 0 34px; background: var(--ink); color: #fff; border-radius: 18px; padding: 22px 20px; }
.contact-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.contact h2 { color: #fff; font-size: 1.15em; margin: 0; }
.contact-name { margin: 0; color: #B9C3DA; font-size: 14px; }
.contact p { color: #DCE2EE; }
.contact .foryou { color: var(--ink); }
.voice { font-size: 14px; margin: 10px 0 0; }

.page-head { padding: 22px 0 6px; }
.sum { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.sum li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sum .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; font-weight: 800; }
.sum h2 { font-size: 1.05em; margin: 2px 0 .3em; color: var(--ink); }
.sum p { margin: 0; color: var(--muted); }

/* 신청서 */
.who { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.who p { margin: 0; font-size: 15px; }
.form { padding: 10px 0 30px; }
.field { border: 0; margin: 0 0 20px; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field input:not([type=radio]):not([type=checkbox]) { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-height: 50px; }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-tint); }
.field small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span { display: inline-block; padding: 9px 18px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.note { background: var(--blue-tint); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: .95em; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-bottom: 16px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--blue); }
.err { color: var(--err); background: #FCECEA; padding: 12px 14px; border-radius: 12px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.done { text-align: center; padding: 30px 0 10px; }
.done .star { width: 64px; height: 64px; fill: var(--saffron); }

/* 영상 */
.video { margin: 0 0 16px; }
.yt, .yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; }
.yt .play svg { width: 34px; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; }
.video figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* 꼬리 · 고정 버튼 */
.foot { background: var(--card); border-top: 1px solid var(--line); padding: 26px 20px 30px; text-align: center; font-size: 14px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; color: var(--ink); }
.foot-brand .star { width: 20px; height: 20px; fill: var(--saffron); }
.foot p { max-width: 560px; margin: 0 auto 12px; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; justify-content: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,248,244,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.sticky .btn-primary { flex: 1; max-width: 420px; }
.sticky[hidden], [hidden] { display: none !important; }

@media (min-width: 720px) {
  .pcards { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: repeat(3, 1fr); }
  .fit { grid-template-columns: 3fr 2fr; }
}
@media (max-width: 380px) {
  .diagram { grid-template-columns: 1fr; }
}
