/* 비더베스트(B the Best) 회사 소개 사이트 — 배당콕·영양콕 (2026-10-27)
 * 구글 플레이 사업체 계정·D-U-N-S에 적을 회사 웹사이트. 빌드 없이 HTML 그대로 올린다.
 * 색: 먹색 + '콕' 주황 점이 회사 색, 앱 카드는 각 앱 색(배당콕 파랑, 영양콕 미색·주황)
 */
:root {
  --bg: #f6f5f1;
  --bg2: #efede7;
  --ink: #111215;
  --sub: #5d6068;
  --line: #e2e0d9;
  --card: #ffffff;
  --kok: #ff6a3d;
  --bdk: #3d7bf2;
  --bdk2: #2156c9;
  --gold: #ffcb57;
  --yyk: #ff703d;
  --yykbg: #f3eee4;
  --yykink: #17191f;
  --shadow: 0 30px 60px -24px rgba(17, 18, 21, 0.35);
  --r: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f12;
    --bg2: #15171b;
    --ink: #f2f1ed;
    --sub: #a4a7ae;
    --line: #25272d;
    --card: #17191e;
    --yykbg: #1d1b17;
    --yykink: #f2f1ed;
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f12;
  --bg2: #15171b;
  --ink: #f2f1ed;
  --sub: #a4a7ae;
  --line: #25272d;
  --card: #17191e;
  --yykbg: #1d1b17;
  --yykink: #f2f1ed;
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- 머리 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.logo .the { font-weight: 500; font-style: italic; color: var(--sub); margin: 0 0.22em 0 0.16em; letter-spacing: -0.02em; }
.logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--kok); margin: 10px 0 0 3px; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--sub);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--ink); }
@media (max-width: 560px) { .nav a { padding: 8px 10px; font-size: 14px; } .nav .hide-s { display: none; } }

/* ---------- 공통 글자 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kok) 22%, transparent); }
h1, h2, h3 { margin: 0; letter-spacing: -0.045em; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(44px, 8.4vw, 92px); }
h2 { font-size: clamp(32px, 5.2vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--sub); max-width: 34em; margin: 20px 0 0; }
.kok { display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--kok); margin-left: 0.04em; transform-origin: 50% 100%; }
.kok.drop { animation: drop 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) 0.4s both; }
@keyframes drop {
  0% { transform: translateY(-1.4em) scale(0.6); opacity: 0; }
  60% { transform: translateY(0) scale(1.15, 0.85); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--sub); max-width: 26em; }

/* ---------- 단추 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn img { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- 휴대폰 틀 ---------- */
.phone {
  width: var(--w, 260px); aspect-ratio: 390 / 844; border-radius: calc(var(--w, 260px) * 0.16);
  padding: calc(var(--w, 260px) * 0.032); background: #0c0d10; box-shadow: var(--shadow), inset 0 0 0 1.5px #2a2c33;
  position: relative; flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--w, 260px) * 0.13); }
.phone::before {
  content: ""; position: absolute; top: calc(var(--w, 260px) * 0.06); left: 50%; transform: translateX(-50%);
  width: 28%; height: calc(var(--w, 260px) * 0.075); background: #0c0d10; border-radius: 999px; z-index: 1;
}

/* ---------- 첫 화면 ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
/* '복잡한 건 저희가,'가 한 줄에 들어가게 (글자 폭 ≈ 글자 크기 × 6.4) */
.hero h1 { margin-top: 22px; font-size: clamp(44px, 5.8vw, 88px); }
@media (max-width: 900px) { .hero h1 { font-size: clamp(38px, 10.4vw, 76px); } }
.hero-art { position: relative; height: 560px; }
.hero-art .phone { position: absolute; }
.hero-art .p1 { --w: 250px; left: 4%; top: 30px; transform: rotate(-7deg); animation: float 7s ease-in-out infinite; }
.hero-art .p2 { --w: 250px; right: 2%; top: 0; transform: rotate(6deg); animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.sticker {
  position: absolute; z-index: 3; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap;
  padding: 10px 16px; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.sticker small { display: block; font-size: 12px; font-weight: 600; color: var(--sub); }
.sticker.s1 { left: -2%; bottom: 70px; transform: rotate(-4deg); }
.sticker.s2 { right: -1%; top: 300px; transform: rotate(5deg); }
.sticker.s3 { left: 38%; top: -6px; transform: rotate(-3deg); background: var(--kok); color: #fff; border-color: transparent; }
.sticker .tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.sticker .tag.red { background: #ffe1db; color: #d23b1b; }
.sticker .tag.blue { background: #dfe9fe; color: #2156c9; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { height: 470px; max-width: 460px; width: 100%; margin: 8px auto 0; }
  .hero-art .p1, .hero-art .p2 { --w: 210px; }
}
@media (max-width: 420px) {
  .hero-art { height: 400px; }
  .hero-art .p1, .hero-art .p2 { --w: 178px; }
  .sticker { font-size: 13px; padding: 8px 12px; }
  .sticker.s2 { top: 250px; }
}

/* ---------- 흐르는 띠 ---------- */
/* .band가 기울인 띠의 양 끝을 잘라 준다 (띠만 두면 화면 옆으로 밀림) */
.band { overflow: hidden; padding: 16px 0; }
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -2%; }
.marquee .track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.03em; padding-right: 28px; white-space: nowrap; }
.marquee span::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--kok); margin-left: 28px; vertical-align: 0.15em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 앱 카드 ---------- */
.apps { display: grid; gap: 20px; }
.app-card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; text-decoration: none;
  border-radius: 36px; padding: clamp(28px, 4vw, 48px); padding-bottom: 0; overflow: hidden; position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-card:hover { transform: translateY(-6px); }
.app-card .info { padding-bottom: clamp(28px, 4vw, 48px); align-self: center; }
.app-card .icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.app-card h3 { margin-top: 20px; font-size: clamp(34px, 4.6vw, 52px); }
.app-card p { margin: 12px 0 0; font-size: clamp(17px, 1.9vw, 20px); max-width: 22em; }
.app-card .phone { --w: clamp(200px, 24vw, 270px); margin-bottom: -26%; border-radius: calc(var(--w) * 0.16) calc(var(--w) * 0.16) 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 14px; font-weight: 700; padding: 7px 13px; border-radius: 999px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-weight: 800; }
.more::after { content: "→"; transition: transform 0.2s; }
.app-card:hover .more::after { transform: translateX(4px); }
.app-card.bdk { background: linear-gradient(140deg, var(--bdk), var(--bdk2)); color: #fff; }
.app-card.bdk .chip { background: rgba(255, 255, 255, 0.16); }
.app-card.bdk .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 203, 87, 0.45), transparent 65%); right: -80px; top: -120px; pointer-events: none; }
.app-card.yyk { background: var(--yykbg); color: var(--yykink); border: 1px solid var(--line); }
.app-card.yyk .chip { background: color-mix(in srgb, var(--yyk) 14%, transparent); color: color-mix(in srgb, var(--yyk) 75%, var(--yykink)); }
.app-card.yyk .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--yyk) 30%, transparent), transparent 65%); right: -60px; bottom: -140px; pointer-events: none; }
.soon { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 999px; margin-left: 10px; vertical-align: middle; background: rgba(255, 255, 255, 0.92); color: #111215; }
.app-card.yyk .soon { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) {
  .app-card { grid-template-columns: 1fr; }
  .app-card .info { padding-bottom: 0; }
  .app-card .phone { --w: min(250px, 66vw); justify-self: center; margin-bottom: -40%; }
}

/* ---------- 만드는 방식 ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 32px; }
.tile .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg2); margin-bottom: 22px; }
.tile .ico svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile .ico .k { fill: var(--kok); stroke: none; }
.tile h3 { font-size: 24px; }
.tile p { margin: 10px 0 0; color: var(--sub); }
.tile.big { grid-column: span 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--ink); color: var(--bg); border: 0; }
.tile.big p { color: color-mix(in srgb, var(--bg) 70%, transparent); max-width: 30em; }
.tile.big h3 { font-size: clamp(26px, 3.4vw, 38px); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile.big { grid-column: auto; } }

/* ---------- 문의 ---------- */
.contact { border-radius: 40px; padding: clamp(36px, 6vw, 72px); background: var(--kok); color: #fff; position: relative; overflow: hidden; }
.contact h2 { max-width: 12em; }
.contact p { margin: 16px 0 0; font-size: 19px; opacity: 0.92; }
.contact .mail { display: inline-flex; margin-top: 28px; font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -0.03em; background: #fff; color: #111215; padding: 14px 24px; border-radius: 999px; text-decoration: none; }
.contact .ring { position: absolute; width: 420px; height: 420px; border: 60px solid rgba(255, 255, 255, 0.14); border-radius: 50%; right: -120px; bottom: -180px; }

/* ---------- 바닥 ---------- */
.foot { padding: 48px 0 56px; color: var(--sub); font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: start; }
.foot .biz { line-height: 1.9; }
.foot .links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot .links a { text-decoration: none; font-weight: 600; }
.foot .links a:hover { color: var(--ink); }
.fill { color: #d23b1b; font-weight: 700; } /* 사업자 등록 뒤 채울 칸 */

/* ---------- 앱 소개 페이지 ---------- */
.app-hero { padding: clamp(40px, 7vw, 90px) 0 0; overflow: hidden; }
.app-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.5); }
.app-hero h1 { margin-top: 22px; font-size: clamp(48px, 8vw, 88px); }
.app-hero .tagline { font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; margin: 14px 0 0; }
.app-hero .lead { color: inherit; opacity: 0.8; }
.app-hero .shot { justify-self: center; margin-bottom: -60px; }
.app-hero .shot .phone { --w: clamp(230px, 26vw, 290px); }
.app-hero .text { padding-bottom: clamp(56px, 8vw, 100px); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 16px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; }
.theme-bdk .app-hero { background: linear-gradient(150deg, var(--bdk), var(--bdk2)); color: #fff; }
.theme-bdk .store { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); }
.theme-yyk .app-hero { background: var(--yykbg); color: var(--yykink); border-bottom: 1px solid var(--line); }
.theme-yyk .store { background: var(--ink); color: var(--bg); }
@media (max-width: 820px) {
  .app-hero .wrap { grid-template-columns: 1fr; }
  .app-hero .text { padding-bottom: 8px; }
  .app-hero .shot { margin-bottom: -90px; }
}

.features { padding-top: clamp(110px, 12vw, 150px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(36px, 6vw, 72px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .copy { order: 2; }
.feature .num { font-weight: 800; font-size: 14px; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px; display: inline-block; }
.theme-bdk .feature .num { background: #dfe9fe; color: var(--bdk2); }
.theme-yyk .feature .num { background: color-mix(in srgb, var(--yyk) 16%, transparent); color: color-mix(in srgb, var(--yyk) 75%, var(--ink)); }
.feature h2 { font-size: clamp(30px, 4.4vw, 48px); margin-top: 16px; }
.feature p { color: var(--sub); font-size: 18px; margin: 16px 0 0; max-width: 26em; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; font-weight: 600; }
.feature li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--kok); margin-top: 10px; }
.theme-bdk .feature li::before { background: var(--bdk); }
.feature .art { display: grid; place-items: center; position: relative; }
.feature .art .phone { --w: clamp(220px, 24vw, 270px); }
.feature .art .blob { position: absolute; inset: 8% 4%; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; z-index: -1; }
.theme-bdk .feature .art .blob { background: radial-gradient(circle at 30% 30%, #dbe6ff, transparent 70%); }
.theme-yyk .feature .art .blob { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--yyk) 22%, transparent), transparent 70%); }
.feature .card-art { width: min(100%, 380px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .copy { order: 0; }
}
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; color: var(--sub); font-size: 15px; }
.notice b { color: var(--ink); }
.next-app { display: flex; align-items: center; gap: 16px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin-top: 16px; font-weight: 700; }
.next-app img { width: 52px; height: 52px; border-radius: 14px; }
.next-app span { flex: 1; }
.next-app small { display: block; color: var(--sub); font-weight: 500; }
.next-app::after { content: "→"; font-size: 22px; }

/* 스크롤하면 살짝 떠오르기 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
