/* 보대리 리드 퍼널 — 브랜드: 청록(헬멧) + 골드(다이아 엠블럼) + 오프화이트 */
@font-face{
  font-family:"Wanted Sans Var";
  src:url("../fonts/WantedSansVariable.woff2") format("woff2-variations");
  font-weight:400 1000; font-style:normal; font-display:swap;
}

:root{
  --ground:#F4F7F6;
  --surface:#FFFFFF;
  --surface-2:#EDF2F1;
  --ink:#13201E;
  --ink-2:#33443F;
  --muted:#5E706C;
  --line:#D8E2DF;
  --line-strong:#B5C6C2;
  --teal:#0E7C74;
  --teal-deep:#0A5A54;
  --teal-wash:#E2F0EE;
  --on-teal:#FFFFFF;
  --gold:#B8860D;
  --gold-wash:#F6EDD6;
  --brick:#A8452F;
  --brick-wash:#F7E7E3;
  --shadow:0 1px 2px rgba(19,32,30,.05), 0 8px 24px -12px rgba(19,32,30,.16);
  --radius:12px;
  --col:min(64ch,100%);
}
@media (prefers-color-scheme: dark){
  :root{
    --ground:#0B1211; --surface:#111C1A; --surface-2:#162320;
    --ink:#E7EFED; --ink-2:#B9C9C5; --muted:#8A9C98;
    --line:#22322E; --line-strong:#334742;
    --teal:#3DB5A7; --teal-deep:#7FD6CA; --teal-wash:#0E2724;
    --on-teal:#062120;
    --gold:#D9AE47; --gold-wash:#2A2214;
    --brick:#D9836C; --brick-wash:#2C1712;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ground); color:var(--ink);
  font-family:"Wanted Sans Var",system-ui,-apple-system,sans-serif;
  font-size:16.5px; line-height:1.75; letter-spacing:-.005em;
  word-break:keep-all; overflow-wrap:anywhere;
}
a{color:var(--teal); text-underline-offset:3px}
:focus-visible{outline:2px solid var(--teal); outline-offset:3px; border-radius:4px}
img{max-width:100%; height:auto; display:block}

/* ── 상단바 ─────────────────────────────────────────── */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px clamp(16px,5vw,40px);
  border-bottom:1px solid var(--line); background:var(--surface);
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit}
.brand img{height:38px; width:auto}
@media (prefers-color-scheme: dark){ .brand img{filter:invert(1)} }
.brand-tag{
  font-size:12px; font-weight:600; letter-spacing:.02em; color:var(--muted);
  padding-left:12px; border-left:1px solid var(--line);
}
@media(max-width:520px){ .brand-tag{display:none} }

main{max-width:1000px; margin:0 auto; padding:0 clamp(16px,5vw,40px) 72px}

/* ── 히어로 ─────────────────────────────────────────── */
.hero{display:grid; gap:28px; padding:clamp(36px,6vw,64px) 0 8px; align-items:center}
@media(min-width:860px){ .hero{grid-template-columns:1fr 300px} }
.hero h1{
  font-size:clamp(28px,4.8vw,44px); font-weight:800; line-height:1.2;
  letter-spacing:-.032em; margin:0 0 16px; text-wrap:balance;
}
.hero .lead{font-size:clamp(16px,2.1vw,19px); color:var(--ink-2); margin:0 0 20px; max-width:46ch}
.hero .lead b{color:var(--ink); font-weight:700; box-shadow:inset 0 -.42em 0 var(--teal-wash)}
.hero-art{justify-self:center}
.hero-art img{width:min(260px,70vw)}
.kicker{
  display:inline-block; font-size:11.5px; font-weight:650; letter-spacing:.1em;
  color:var(--teal); border:1px solid var(--teal); border-radius:100px;
  padding:5px 12px; margin-bottom:18px;
}
.hero-points{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px}
.hero-points li{
  font-size:13px; font-weight:600; color:var(--ink-2);
  background:var(--surface); border:1px solid var(--line);
  border-radius:100px; padding:6px 13px;
}

/* ── 카드/섹션 공통 ─────────────────────────────────── */
.card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:clamp(20px,3.4vw,30px);
}
section{margin-top:clamp(34px,5vw,52px)}
h2{font-size:clamp(20px,2.8vw,26px); font-weight:750; letter-spacing:-.024em; margin:0 0 6px; text-wrap:balance}
.sub{color:var(--muted); font-size:14.5px; margin:0 0 22px; max-width:56ch}
h3{font-size:16.5px; font-weight:700; margin:26px 0 8px; letter-spacing:-.016em}

/* ── 설문 폼 ────────────────────────────────────────── */
.q{margin-bottom:26px}
.q > legend, .q-title{
  font-size:15.5px; font-weight:700; letter-spacing:-.014em;
  margin:0 0 10px; padding:0; display:block;
}
.q-title .n{
  display:inline-grid; place-items:center; width:22px; height:22px; border-radius:100px;
  background:var(--teal); color:var(--on-teal); font-size:11.5px; font-weight:700;
  margin-right:8px; vertical-align:1px;
}
fieldset{border:0; padding:0; margin:0}
.opts{display:flex; flex-wrap:wrap; gap:8px}
.opt{position:relative}
.opt input{position:absolute; opacity:0; width:0; height:0}
.opt span{
  display:block; cursor:pointer; user-select:none;
  font-size:14px; font-weight:550; color:var(--ink-2);
  background:var(--surface); border:1px solid var(--line-strong);
  border-radius:100px; padding:9px 16px; transition:.14s;
}
.opt input:checked + span{
  background:var(--teal); border-color:var(--teal); color:var(--on-teal); font-weight:650;
}
.opt input:focus-visible + span{outline:2px solid var(--teal); outline-offset:2px}
.opt span:hover{border-color:var(--teal)}

.submit{
  display:inline-flex; align-items:center; gap:9px;
  font-family:inherit; font-size:16px; font-weight:700; letter-spacing:-.01em;
  color:var(--on-teal); background:var(--teal); border:0; border-radius:100px;
  padding:14px 30px; cursor:pointer; transition:.15s;
}
.submit:hover{background:var(--teal-deep)}
.submit[disabled]{opacity:.5; cursor:not-allowed}
.formnote{font-size:12.5px; color:var(--muted); margin:14px 0 0}
.err{color:var(--brick); font-size:13.5px; font-weight:600; margin:12px 0 0; min-height:1.2em}

/* ── 자료 목록 ──────────────────────────────────────── */
.rlist{display:grid; gap:10px; margin:0; padding:0; list-style:none}
@media(min-width:700px){ .rlist{grid-template-columns:repeat(2,1fr)} }
.rlist a{
  display:block; text-decoration:none; color:inherit; height:100%;
  background:var(--surface); border:1px solid var(--line);
  border-radius:10px; padding:16px 18px; transition:.15s;
}
.rlist a:hover{border-color:var(--teal); transform:translateY(-1px)}
.rlist .ep{font-size:11px; font-weight:700; letter-spacing:.08em; color:var(--teal)}
.rlist .t{font-size:16px; font-weight:700; letter-spacing:-.018em; margin:3px 0 4px}
.rlist .s{font-size:13.5px; color:var(--muted); line-height:1.55}

/* ── 자료 본문 ──────────────────────────────────────── */
.doc{max-width:var(--col)}
.doc h2{margin-top:30px; font-size:19px}
.doc h3{font-size:16px}
.doc p, .doc li{font-size:15.5px}
.doc ul{padding-left:1.15em}
.doc code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.87em;
  background:var(--surface-2); border:1px solid var(--line);
  padding:.12em .38em; border-radius:4px;
}
.promptbox{
  border:1px solid var(--line-strong); border-radius:10px; overflow:hidden;
  margin:18px 0; background:var(--surface); box-shadow:var(--shadow);
}
.promptbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--surface-2); border-bottom:1px solid var(--line);
  padding:9px 12px 9px 14px;
  font-size:11.5px; font-weight:700; letter-spacing:.08em; color:var(--muted);
}
.copybtn{
  font-family:inherit; font-size:12.5px; font-weight:700; letter-spacing:-.01em;
  color:var(--on-teal); background:var(--teal); border:0; border-radius:100px;
  padding:6px 15px; cursor:pointer;
}
.copybtn:hover{background:var(--teal-deep)}
.copybtn.done{background:var(--gold); color:var(--on-teal)}
.promptbox pre{
  margin:0; padding:16px; overflow-x:auto;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px; line-height:1.7; white-space:pre-wrap; word-break:break-word;
}
.promptbox pre code{background:none; border:0; padding:0; font-size:inherit}
pre.plain{
  background:var(--surface-2); border:1px solid var(--line); border-radius:8px;
  padding:14px; overflow-x:auto; font-size:13px;
}

/* ── 안내 박스 ──────────────────────────────────────── */
.note{
  border-left:3px solid var(--teal); background:var(--surface);
  border-radius:0 8px 8px 0; padding:15px 18px; margin:20px 0;
  box-shadow:var(--shadow);
}
.note.warn{border-left-color:var(--brick); background:var(--brick-wash)}
.note.key{border-left-color:var(--gold); background:var(--gold-wash)}
.note p{margin:0; font-size:14.5px; line-height:1.7}
.note .lab{
  display:block; font-size:11px; font-weight:700; letter-spacing:.1em;
  color:var(--teal); margin-bottom:5px;
}
.note.warn .lab{color:var(--brick)}
.note.key .lab{color:var(--gold)}

/* ── 동의/베타 ──────────────────────────────────────── */
.field{display:block; margin-bottom:14px}
.field span{display:block; font-size:13px; font-weight:650; color:var(--ink-2); margin-bottom:5px}
.field input, .field textarea{
  width:100%; font-family:inherit; font-size:15px; color:var(--ink);
  background:var(--surface); border:1px solid var(--line-strong);
  border-radius:8px; padding:11px 13px;
}
.field textarea{min-height:78px; resize:vertical}
.consent{display:flex; gap:10px; align-items:flex-start; margin:10px 0; font-size:13.5px; line-height:1.6}
.consent input{margin-top:4px; width:17px; height:17px; accent-color:var(--teal); flex:none}
.consent .req{color:var(--brick); font-weight:700}
.consent .opt-tag{color:var(--muted); font-weight:700}

/* ── 표 ─────────────────────────────────────────────── */
.tw{overflow-x:auto; border:1px solid var(--line); border-radius:10px; background:var(--surface)}
table{border-collapse:collapse; width:100%; font-size:14px; min-width:460px}
th{
  text-align:left; font-size:11.5px; font-weight:650; letter-spacing:.06em; color:var(--muted);
  padding:10px 13px; border-bottom:1px solid var(--line-strong); background:var(--surface-2);
  white-space:nowrap;
}
td{padding:10px 13px; border-top:1px solid var(--line); vertical-align:top}
td.n, th.n{font-variant-numeric:tabular-nums; white-space:nowrap}

/* ── 푸터 ───────────────────────────────────────────── */
.foot{border-top:1px solid var(--line); background:var(--surface); margin-top:40px}
.foot-in{
  max-width:1000px; margin:0 auto; padding:22px clamp(16px,5vw,40px) 34px;
  display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:flex-start;
}
.foot-note{font-size:12.5px; color:var(--muted); line-height:1.7; max-width:62ch; margin:0}
.foot-links{display:flex; gap:16px; font-size:12.5px}

.done-badge{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.04em;
  background:var(--teal-wash); color:var(--teal); border-radius:100px; padding:4px 11px;
}
@media (prefers-reduced-motion:reduce){ *{transition:none!important; animation:none!important} }

/* ── 운영 콘솔 ──────────────────────────────────────── */
.stat-row{display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.stat{
  background:var(--surface); border:1px solid var(--line); border-radius:10px;
  padding:14px 16px 16px; box-shadow:var(--shadow);
}
.stat.hot{border-color:var(--gold); background:var(--gold-wash)}
.stat .sk{font-size:11.5px; font-weight:650; letter-spacing:.06em; color:var(--muted)}
.stat .sv{font-size:27px; font-weight:800; letter-spacing:-.03em; line-height:1.25;
  font-variant-numeric:tabular-nums; margin:2px 0 1px}
.stat.hot .sv{color:var(--gold)}
.stat .sn{font-size:11.5px; color:var(--muted); line-height:1.45}

.chart .cv{width:100%; height:120px; display:block}
.chart .axis{
  display:flex; justify-content:space-between; gap:8px; margin-top:8px;
  font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums;
}
.empty{color:var(--muted); font-size:13.5px; margin:6px 0; text-align:center; padding:14px 0}

.seg-grid{display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.segrow{margin-bottom:12px}
.segtop{display:flex; justify-content:space-between; gap:10px; font-size:13.5px; line-height:1.4}
.segtop b{font-variant-numeric:tabular-nums; color:var(--teal)}
.segbar{background:var(--surface-2); border-radius:100px; height:7px; overflow:hidden; margin:4px 0 2px}
.segbar i{display:block; height:100%; background:var(--teal); border-radius:100px}
.segbar.mini{height:6px; min-width:70px}
.segn{font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums}

.row2{display:grid; gap:0 14px; grid-template-columns:1fr}
@media(min-width:560px){ .row2{grid-template-columns:1fr 1fr} }

.clist{margin-top:20px; display:grid; gap:10px}
.quote{margin:0; background:var(--surface-2); border:1px solid var(--line);
  border-left:3px solid var(--gold); border-radius:0 8px 8px 0; padding:14px 16px}
.quote blockquote{margin:0; font-size:14.5px; line-height:1.7; white-space:pre-wrap}
.quote figcaption{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin-top:9px; font-size:11.5px; font-weight:650; letter-spacing:.05em; color:var(--muted);
}
.del{
  font-family:inherit; font-size:11.5px; font-weight:650; color:var(--brick);
  background:none; border:1px solid var(--line-strong); border-radius:100px;
  padding:3px 11px; cursor:pointer;
}
.del:hover{border-color:var(--brick)}

/* ── 브랜드 사이트 확장 (bodaeri.com) ───────────────────────── */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* 히어로 CTA */
.hero-cta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.hero-cta .submit{ margin:0; }
.ghost{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 18px; border-radius:var(--radius);
  border:1px solid var(--line-strong); background:var(--surface);
  color:var(--ink); font-weight:650; text-decoration:none;
  transition:background-color .18s ease, border-color .18s ease, color .18s ease;
}
.ghost:hover{ background:var(--surface-2); border-color:var(--teal); color:var(--teal-deep); }
.ghost:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }

/* 벤토 그리드 — 제품 소개 */
.bento{ list-style:none; padding:0; margin:16px 0 0;
  display:grid; gap:12px; grid-template-columns:repeat(2,1fr); }
.b-cell{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:18px 20px; box-shadow:var(--shadow);
}
.b-wide{ grid-column:1 / -1; }
.b-tag{
  display:inline-block; font-size:.78rem; font-weight:750; letter-spacing:.02em;
  color:var(--teal-deep); background:var(--teal-wash);
  border-radius:999px; padding:3px 10px; margin-bottom:10px;
}
.b-cell h3{ margin:0 0 8px; font-size:1.08rem; color:var(--ink); }
.b-cell p{ margin:0; color:var(--ink-2); font-size:.96rem; line-height:1.65; }

/* 경계선 표 */
.linewrap{ overflow-x:auto; margin:16px 0 12px; }
.linetable{
  width:100%; min-width:520px; border-collapse:collapse;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; font-size:.94rem;
}
.linetable th, .linetable td{
  padding:11px 14px; text-align:left; vertical-align:top;
  border-bottom:1px solid var(--line);
}
.linetable thead th{
  background:var(--surface-2); color:var(--ink); font-weight:750;
  border-bottom:1px solid var(--line-strong);
}
.linetable thead th:last-child{ color:var(--teal-deep); }
.linetable tbody th{ color:var(--muted); font-weight:650; width:26%; }
.linetable tbody td{ color:var(--ink-2); }
.linetable tbody tr:last-child th,
.linetable tbody tr:last-child td{ border-bottom:0; }

@media (max-width:640px){
  .bento{ grid-template-columns:1fr; }
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .hero-cta .submit, .ghost{ width:100%; }
}
@media (prefers-reduced-motion: reduce){
  .ghost{ transition:none; }
}
