/* 비딩핏 소개 홈페이지. 관리 화면(style.css)과 같은 색·글꼴.
   브랜드 색을 받으면 --accent·--accent-ink·--accent-soft 세 줄만 바꾸면 된다.
   시각·숫자는 JetBrains Mono(시간표·기록의 말투), 나머지는 Pretendard. */
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono@5.0.20/files/jetbrains-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2026, U+2192;
}
:root {
  --paper: #f3f3f0;
  --card: #fff;
  --ink: #1c1c1e;
  --sub: #5e5e63;
  --faint: #707076; /* 흰 바탕 대비 4.9:1 */
  --line: #e2e1dc;
  --accent: #ff6f0f;
  --accent-ink: #c2410c;
  --accent-soft: #fff1e6;
  --ok: #1f7a46;
  --ok-soft: #e8f4ec;
  --human: #9a5b00;
  --human-soft: #fdf3e1;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--card); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; letter-spacing: 0; }
:lang(ko) { font-synthesis: none; }
:lang(ko) em, :lang(ko) i { font-style: normal; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; }
p { margin: 0; }
/* 짧은 마케팅 문장·버튼·카드는 단어 단위로, 개인정보처리방침 같은 긴 글은 보통 줄바꿈 */
.hero, .sec, .hd, .ft { word-break: keep-all; overflow-wrap: anywhere; }
.in { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 720px; }
/* 본문 한 줄은 대략 40자 안쪽으로(줄바꿈 점검: 한 줄 70자 넘으면 읽기 힘듦) */
.lead, .lead2, .proof, .fit, .muted, details p { max-width: 38rem; }
.muted { color: var(--sub); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: 0.9375rem; margin-bottom: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 9px 16px; font: 600 0.9375rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .08s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.lg { padding: 14px 22px; font-size: 1rem; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* 머리 */
.hd { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.hd .in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 800; font-size: 1.1875rem; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.brand::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
.hd-nav { display: flex; gap: 2px; flex: 1; }
.hd-nav a { text-decoration: none; color: var(--sub); padding: 6px 10px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; }
.hd-cta { display: flex; gap: 8px; }

/* 첫 화면: 제목 → 오늘의 시간표(시그니처) → 운영 기록 */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 72px 0 56px; }
.lead { font-size: 1.125rem; color: var(--sub); margin-top: 18px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.scope { margin-top: 14px; font-size: 0.875rem; color: var(--sub); }

.day { margin: 44px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; }
.day-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.875rem; color: var(--sub); }
.day-head b { color: var(--ink); margin-right: 6px; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); margin-left: 8px; }
.legend i.k-human { background: none; border-top: 3px dashed var(--human); height: 0; }
.chart { position: relative; margin-top: 22px; height: 170px; }
.plot { position: relative; height: 150px; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.line { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.line.human { stroke: var(--human); stroke-dasharray: 6 5; }
/* 점은 svg 밖 HTML 로: 좁은 화면에서 svg 가 가로로 줄어도 둥근 모양 유지 */
.pt { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); transform: translate(-50%, -50%); }
.pt.human { border-color: var(--human); }
.p1 { left: 10.28%; top: 36.47%; } .p2 { left: 32.89%; top: 23.53%; } .p3 { left: 40.83%; top: 53.71%; } .p4 { left: 65.28%; top: 71%; }
.hours { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; font: 500 0.75rem/18px var(--mono); color: var(--faint); }
.hours span { position: absolute; transform: translateX(-50%); }
.h07 { left: 4.17%; } .h09 { left: 16.39%; } .h11 { left: 28.61%; } .h13 { left: 40.83%; } .h15 { left: 53.06%; } .h17 { left: 65.28%; } .h19 { left: 77.5%; } .h21 { left: 89.72%; }
.now { position: absolute; top: -6px; bottom: 0; width: 0; border-left: 1.5px solid var(--ink); }
.now span { position: absolute; top: -18px; left: 0; transform: translateX(-50%); font: 500 0.75rem/1 var(--mono); background: var(--ink); color: #fff; padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
.now.end span { transform: translateX(-100%); }
.now.start span { transform: none; }
.events { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.events li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; }
.events time { font: 500 0.875rem/1.3 var(--mono); color: var(--accent-ink); }
.events b { font-weight: 700; font-size: 0.9375rem; }
.events span { color: var(--ok); font-weight: 600; font-size: 0.8125rem; }
.events li.human { background: var(--human-soft); border-color: #f1dfbd; }
.events li.human time, .events li.human span { color: var(--human); }
.events li.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.proof { margin-top: 18px; font-size: 0.9375rem; color: var(--ink); }
.proof span { color: var(--faint); font-size: 0.8125rem; margin-left: 4px; white-space: nowrap; }

/* 본문 구역 */
.sec { padding: 96px 0; }
.sec.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead2 { font-size: 1.0625rem; color: var(--sub); }
.pains { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pains li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.pains b { font-weight: 700; }
.pains span { color: var(--sub); }
.fit { margin-top: 22px; font-size: 0.9375rem; color: var(--sub); background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.args { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.args article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.args article > p:not(.stat) { color: var(--sub); font-size: 0.9375rem; flex: 1; }
.stat { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.stat .num { font-size: 1.25rem; }
.stat span { display: block; font-weight: 400; color: var(--faint); font-size: 0.8125rem; margin-top: 2px; }
.rules { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rules ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rules li { font-size: 0.875rem; color: var(--sub); border-left: 2px solid var(--accent); padding-left: 12px; }
.rules b { display: block; color: var(--ink); font-size: 0.9375rem; margin-bottom: 2px; }
.shots { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 24px; align-items: start; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(28,28,30,.06); background: #fff; }
.shots figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--sub); }
.shots figcaption b { color: var(--ink); margin-right: 6px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.who > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.who ul { margin: 10px 0 0; padding-left: 18px; color: var(--sub); font-size: 0.9375rem; }
.who li + li { margin-top: 8px; }
.maker { margin-top: 18px; font-size: 0.9375rem; color: var(--sub); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 500 0.875rem/1 var(--mono); color: var(--accent-ink); margin-bottom: 10px; }
.steps b { display: block; font-size: 1.0625rem; margin-bottom: 4px; }
.steps span { color: var(--sub); font-size: 0.9375rem; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.split .btn { margin-top: 22px; }
.terms { margin: 0; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; color: var(--sub); }

/* 자주 묻는 질문 */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 20px; }
summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font: 400 1.25rem/1.2 var(--mono); color: var(--faint); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 18px; color: var(--sub); }

/* 도입 상담 신청 */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 24px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f span { font-size: 0.875rem; font-weight: 600; color: var(--sub); }
.f i { color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; margin-left: 4px; }
.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #75746f; } /* 대비 4.6:1 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.consent p { font-size: 0.8125rem; color: var(--sub); margin-top: 6px; }
.consent-list { margin: 6px 0 0; padding-left: 18px; font-size: 0.8125rem; color: var(--sub); }
.consent-list b { color: var(--ink); margin-right: 4px; }
.chk { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.chk input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); margin: 0; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.err { color: #b42318; font-size: 0.875rem; }
.done { margin-top: 24px; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius); padding: 24px; }

/* 꼬리 */
.ft { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.875rem; }
.ft-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ft nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ft nav a { color: var(--sub); text-decoration: none; }
.ft p { margin-top: 4px; }
.ft .biz { color: var(--sub); }
.ft .biz span::before { content: "·"; margin: 0 6px; color: var(--faint); }
.ft .biz span { white-space: nowrap; }
@media (max-width: 560px) { .ft .biz .brn { display: block; } .ft .biz .brn::before { content: none; } }

/* 개인정보처리방침·이용약관 같은 긴 글 */
.doc { padding: 56px 0 80px; word-break: keep-all; overflow-wrap: anywhere; }
.doc h1 { font-size: 1.875rem; margin-bottom: 8px; }
.doc h2 { font-size: 1.1875rem; margin: 36px 0 8px; }
.doc h3 { font-size: 1rem; margin: 20px 0 4px; }
.doc p + p { margin-top: 6px; }
.doc p, .doc li { color: var(--sub); }
.doc ul, .doc ol { padding-left: 20px; margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.875rem; margin-top: 8px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper); color: var(--ink); white-space: nowrap; }

@media (max-width: 960px) {
  .hd-nav { display: none; }
  .hd .in { justify-content: space-between; }
  h1 { font-size: 2.375rem; }
  .events { grid-template-columns: 1fr 1fr; }
  .args, .who { grid-template-columns: 1fr; }
  .rules ul { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}
@media (max-width: 560px) {
  .in { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 44px 0 40px; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .lead { font-size: 1rem; }
  .sec { padding: 64px 0; }
  .hd .in { height: 58px; }
  .hd-cta .btn { padding: 8px 12px; font-size: 0.875rem; min-height: 44px; } /* 누르는 영역 44px */
  .brand { font-size: 1.0625rem; }
  .day { padding: 14px 12px 14px; margin-top: 32px; }
  .chart { height: 130px; }
  .plot { height: 112px; }
  .events { grid-template-columns: 1fr 1fr; gap: 8px; }
  .events li { padding: 8px 10px; }
  .events b { font-size: 0.875rem; }
  .pains li { grid-template-columns: 1fr; }
  .rules ul { grid-template-columns: 1fr; }
  .terms > div { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc th { border-bottom: 0; }
  .doc table.cards thead { display: none; }
  .doc table.cards tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 8px 0; }
  .doc table.cards td { border: 0; padding: 3px 12px; }
  .doc table.cards td::before { content: attr(data-l); display: block; font-size: 0.75rem; color: var(--faint); }
}
/* 마우스를 올렸을 때 바뀌는 것은 마우스가 있는 기기에서만(휴대폰에서 눌린 채 남지 않게) */
@media (hover: hover) {
  .btn.primary:hover { background: #f26507; }
  .btn.ghost:hover { border-color: #c9c8c2; }
  .hd-nav a:hover { color: var(--ink); background: var(--paper); }
  .ft nav a:hover { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
