/* 바로핀 소개 사이트 — app.css 토큰 위에 얹는다. 다골라와 같은 어두운 남색 무대 + 형광 노랑 하나 */
:root {
  --night: #0d1428;
  --night-2: #141d38;
  --night-line: rgba(255, 255, 255, .09);
  --on-night: #eef1f8;
  --on-night-2: #a9b2c9;
}
.site { background: var(--surface); }
.site main { overflow-x: clip; }

/* 머리말 — 어두운 무대 위에 떠 있는 띠 */
.s-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--night-line); }
.s-nav .in { height: 64px; display: flex; align-items: center; gap: 28px; }
.s-nav .brand { color: #fff; }
.s-nav nav { display: flex; gap: 4px; flex: 1; }
.s-nav nav a { color: var(--on-night-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.s-nav nav a:hover, .s-nav nav a[aria-current="page"] { color: #fff; }
.s-nav .right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.s-nav .right a.login { color: var(--on-night-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 10px; }
.btn-line-night { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-line-night:hover { background: transparent; border-color: #fff; }
.btn .arr { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.btn:hover .arr { transform: translateX(4px); }
.s-menu { display: none; background: none; border: 0; color: #fff; font-size: 22px; width: 44px; height: 44px; margin-left: auto; cursor: pointer; }
@media (max-width: 860px) {
  .s-nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--night); border-bottom: 1px solid var(--night-line); }
  .s-nav.open nav { display: flex; }
  .s-nav nav a { padding: 14px 4px; border-bottom: 1px solid var(--night-line); border-radius: 0; font-size: 16px; }
  .s-nav .right .login { display: none; }
  .s-menu { display: inline-grid; place-items: center; margin-left: 0; }
}

/* 어두운 무대 (히어로·마지막 CTA) */
.stage { position: relative; background: var(--night); color: var(--on-night); isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 85% 10%, rgba(255, 228, 92, .10), transparent 60%),
  radial-gradient(50% 60% at 5% 90%, rgba(43, 92, 255, .14), transparent 60%); }
.stage.photo::after { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/images/hero.webp") 70% 60% / cover no-repeat; opacity: .55; }
.stage.photo::before { background: linear-gradient(90deg, rgba(13, 20, 40, .97) 0%, rgba(13, 20, 40, .82) 45%, rgba(13, 20, 40, .35) 100%), radial-gradient(60% 50% at 85% 10%, rgba(255, 228, 92, .08), transparent 60%); }
@media (max-width: 860px) { .stage.photo::after { background-image: url("/images/hero-768.webp"); } .stage.photo::before { background: rgba(13, 20, 40, .86); } }

/* 히어로: 왼쪽 문장, 오른쪽 도착한 인증번호 */
.hero2 { padding: clamp(48px, 8vw, 104px) 0 0; }
.hero2 .facts { margin-top: clamp(56px, 8vw, 96px); }
.hero2 .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .04); color: var(--on-night-2); font-size: 14px; font-weight: 600; }
.eyebrow-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--hi); }
.hero2 h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.16; letter-spacing: -.045em; font-weight: 850; margin: 20px 0 0; color: #fff; }
.hero2 h1 .mark { position: relative; white-space: nowrap; z-index: 0; color: #fff; }
.hero2 h1 .mark::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .36em; background: var(--hi); opacity: .9; z-index: -1; border-radius: 3px; transform-origin: left; animation: sweep 1.1s cubic-bezier(.16, 1, .3, 1) .5s both; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero2 .lead2 { font-size: clamp(17px, 2vw, 20px); color: var(--on-night-2); line-height: 1.7; margin: 22px 0 32px; max-width: 32em; }
.hero2 .lead2 b { color: #fff; }
.hero2 .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero2 .assure { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 22px; color: var(--on-night-2); font-size: 14px; }
.hero2 .assure span::before { content: "✓"; color: var(--hi); font-weight: 800; margin-right: 6px; }

/* 도착한 인증번호 데모 */
.demo { position: relative; }
.demo .sheet { background: #fff; color: #16213e; border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .6); }
.demo .sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo .sheet-top b { font-size: 16px; }
.demo .sheet-top small { color: #8790a8; font-size: 13px; display: block; font-weight: 500; }
.demo .chip { background: #ffe45c; color: #2a2400; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.demo .digits { margin: 18px 0 14px; }
.demo .digits span { background: #16213e; color: #fff; width: 1.45em; height: 1.85em; font-size: clamp(30px, 4vw, 42px); animation: land .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.demo .digits span:nth-child(2) { animation-delay: .06s; } .demo .digits span:nth-child(3) { animation-delay: .12s; }
.demo .digits span:nth-child(4) { animation-delay: .18s; } .demo .digits span:nth-child(5) { animation-delay: .24s; } .demo .digits span:nth-child(6) { animation-delay: .3s; }
@keyframes land { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.demo .bar { height: 8px; border-radius: 99px; background: #f2f4f8; overflow: hidden; }
.demo .bar i { display: block; height: 100%; width: 82%; background: #ffe45c; border-radius: inherit; }
.demo .meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: #4a5574; }
.demo .float { position: absolute; background: #fff; color: #16213e; border-radius: 14px; padding: 12px 14px; font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); display: flex; gap: 10px; align-items: center; animation: float 6s ease-in-out infinite; }
.demo .float b { display: block; font-size: 15px; }
.demo .float span { color: #8790a8; font-size: 13px; }
.demo .float .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #f2f4f8; font-size: 17px; }
.demo .f1 { left: -40px; bottom: -58px; }
.demo .f2 { right: -36px; top: -62px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 숫자 띠 */
.facts { border-top: 1px solid var(--night-line); }
.facts .in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 26px 20px; border-left: 1px solid var(--night-line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.facts span { color: var(--on-night-2); font-size: 14px; }

/* 섹션 공통 */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-tint { background: var(--paper); }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .kicker { color: var(--blue); font-weight: 750; font-size: 15px; }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.22; letter-spacing: -.04em; font-weight: 820; margin: 10px 0 14px; }
.sec-head p { color: var(--ink-2); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.7; }

/* 전후 비교 */
.vs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.vs > div { padding: clamp(24px, 4vw, 40px); }
.vs .before { background: var(--paper); }
.vs h3 { font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.vs .after h3 { color: var(--blue); }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vs li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 16px; line-height: 1.55; }
.vs li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 2px; }
.vs .before li i { background: #e3e6ee; color: #8790a8; }
.vs .after li i { background: var(--hi); color: #2a2400; }
.vs .before li { color: var(--ink-2); }

/* 흐름: 실제 순서라 번호를 쓴다 */
.steps2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: st; position: relative; margin: 0; padding: 0; }
.steps2::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: var(--line); }
.steps2 li { list-style: none; counter-increment: st; position: relative; padding-right: 24px; }
.steps2 li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 800; position: relative; margin-bottom: 18px; }
.steps2 li.now::before { background: var(--hi); color: #2a2400; }
.steps2 b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps2 span { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* 벤토 */
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(210px, auto); gap: 14px; }
.bento > * { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; overflow: hidden; }
.bento .tall { grid-row: span 2; }
.bento .wide { grid-column: span 2; }
.bento .ink { background: var(--night); color: var(--on-night); border-color: var(--night); }
.bento .ink p { color: var(--on-night-2); }
.bento .ic2 { width: 52px; height: 52px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.bento .ink .ic2 { background: #f2f4f8; }
.bento h3 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 8px; }
.bento p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.rules { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 15px; font-weight: 600; }
.rules li i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; background: var(--hi); color: #2a2400; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.rules li.no i { background: #fde8e7; color: #d4322c; }
.inbox-mini { margin-top: 18px; display: grid; gap: 6px; font-size: 13px; }
.inbox-mini div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.inbox-mini b { color: #fff; }
.inbox-mini .code { color: var(--hi); font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.inbox-mini .see { color: var(--on-night-2); }
.term { margin-top: 16px; background: #0d1428; color: #dfe4ff; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.65 ui-monospace, Consolas, monospace; white-space: pre; overflow-x: auto; }
.term .y { color: var(--hi); }

/* 요금 */
.price-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.price-row div { padding: 24px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.price-row div:first-child { border-left: 0; }
.price-row b { font-size: 17px; }
.price-row .won { font-size: 26px; font-weight: 820; letter-spacing: -.03em; }
.price-row .won small { font-size: 13px; color: var(--muted); font-weight: 500; }
.price-row span { font-size: 14px; color: var(--ink-2); }
.price-note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* 자주 묻는 질문 */
.faq2 details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
.faq2 summary { font-size: 17px; font-weight: 700; cursor: pointer; color: var(--ink); }
.faq2 details p { margin: 10px 0 0; color: var(--ink-2); }

/* 마지막 CTA */
.final { padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.final h2 { font-size: clamp(28px, 4.4vw, 46px); color: #fff; letter-spacing: -.04em; font-weight: 850; }
.final p { color: var(--on-night-2); margin: 14px 0 28px; }

@media (max-width: 960px) {
  .hero2 .grid { grid-template-columns: 1fr; }
  .demo { margin: 40px 24px 70px; }
  .demo .f1 { left: -16px; } .demo .f2 { right: -12px; }
  .facts .in { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div { padding-left: 16px; }
  .vs { grid-template-columns: 1fr; }
  .steps2 { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .steps2::before { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento .tall, .bento .wide { grid-row: auto; grid-column: auto; }
  .price-row { grid-template-columns: 1fr 1fr; }
  .price-row div:nth-child(3) { border-left: 0; }
  .price-row div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .demo { margin: 52px 0 76px; }
  .demo .f1 { left: 0; } .demo .f2 { right: 0; }
  .steps2 { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .price-row div { border-left: 0 !important; border-bottom: 1px solid var(--line); }
}
