/* 다골라 소개 사이트 — 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(--paper); }
.site main { overflow-x: clip; }
.k { word-break: keep-all; }

/* 머리말 — 어두운 무대 위에 떠 있는 띠 */
.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-hi { background: var(--hi); border-color: var(--hi); color: #1c1700; }
.btn-hi:hover { background: #ffd92e; border-color: #ffd92e; }
.btn-hi .arr, .btn .arr { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.btn:hover .arr { transform: translateX(4px); }
.btn-line-night { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-line-night:hover { border-color: #fff; }
.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%); }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 히어로: 왼쪽 문장, 오른쪽 움직이는 명단 */
.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; }
.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; }
.hero2 h1 .mark { z-index: 0; color: #fff; }
@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 .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: var(--ink); 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; }
.demo .sheet-top b { font-size: 16px; }
.demo .count { font-size: 48px; font-weight: 850; letter-spacing: -.04em; line-height: 1; margin-top: 14px; font-variant-numeric: tabular-nums; }
.demo .count small { font-size: 18px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.demo .bar { height: 10px; border-radius: 99px; background: var(--sheet); margin: 14px 0 16px; overflow: hidden; }
.demo .bar i { display: block; height: 100%; width: 0; background: var(--hi); border-radius: inherit; transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.demo .nm { display: flex; flex-wrap: wrap; gap: 6px; }
.demo .nm span { padding: 5px 10px; border-radius: 8px; background: var(--sheet); font-size: 14px; font-weight: 650; color: var(--ink-2); transition: background-color .4s, color .4s; }
.demo .nm span.on { background: var(--hi); color: #2a2400; }
.demo .nm span.on::after { content: " ✓"; font-weight: 800; }
.demo .float { position: absolute; background: #fff; color: var(--ink); 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 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sheet); font-size: 16px; }
.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(--sheet); }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .kicker { color: var(--pen); 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; gap: 0; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: var(--paper); }
.vs > div { padding: clamp(24px, 4vw, 40px); }
.vs .before { background: var(--sheet); }
.vs h3 { font-size: 15px; color: var(--ink-3); font-weight: 700; margin-bottom: 18px; }
.vs .after h3 { color: var(--pen); }
.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: var(--ink-3); }
.vs .after li i { background: var(--hi); color: #2a2400; }
.vs .before li { color: var(--ink-2); }

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

/* 벤토 */
.bento { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: minmax(210px, auto); gap: 14px; }
.bento > * { background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; padding: 26px; position: relative; overflow: hidden; }
.bento .tall { grid-row: span 2; }
.bento .wide { grid-column: span 2; }
.bento .full { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; min-height: 0; }
.bento .full .ic2 { margin: 0; }
.bento .full .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 460px; }
.bento .ink { background: var(--night); color: var(--on-night); border-color: var(--night); }
.bento .ink p { color: var(--on-night-2); }
.bento .ic2 { width: 44px; height: 44px; border-radius: 12px; background: var(--sheet); display: grid; place-items: center; font-size: 19px; color: var(--ink); margin-bottom: 16px; }
.bento .ink .ic2 { background: rgba(255, 255, 255, .08); color: var(--hi); }
.bento h3 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 8px; }
.bento p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.mini-table { margin-top: 18px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-table div { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); }
.mini-table span { padding: 7px 8px; border-top: 1px solid var(--rule); text-align: right; }
.mini-table span:first-child { text-align: left; }
.mini-table div:first-child span { border-top: 0; background: var(--sheet); font-weight: 700; color: var(--ink-2); }
.bank-lines { margin-top: 18px; display: grid; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bank-lines div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.bank-lines .ok { color: var(--hi); font-weight: 700; }

/* 쓰임새 */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.use { display: block; text-decoration: none; color: var(--ink); border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); transition: transform .4s cubic-bezier(.16, 1, .3, 1), border-color .2s; }
.use:hover { transform: translateY(-4px); border-color: var(--ink-3); }
.use img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.use div { padding: 18px 18px 22px; }
.use b { font-size: 18px; display: block; margin-bottom: 6px; }
.use span { color: var(--ink-2); font-size: 14px; line-height: 1.6; display: block; }
.use em { font-style: normal; display: inline-block; margin-top: 12px; color: var(--pen); font-weight: 700; font-size: 14px; }

/* 요금 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { border: 1px solid var(--rule); border-radius: 20px; padding: 28px; background: var(--paper); display: flex; flex-direction: column; }
.plan.pick { background: var(--night); color: var(--on-night); border-color: var(--night); }
.plan .nm { font-weight: 750; font-size: 16px; }
.plan .amt { font-size: 38px; font-weight: 850; letter-spacing: -.04em; margin: 14px 0 2px; }
.plan .amt small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan.pick .amt small, .plan.pick .sub { color: var(--on-night-2); }
.plan .sub { color: var(--ink-3); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.plan li::before { content: "✓"; font-weight: 800; color: var(--pen); }
.plan.pick li::before { color: var(--hi); }
.ref-band { margin-top: 18px; padding: 20px 24px; border-radius: 16px; background: var(--hi-soft); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ref-band b { font-size: 17px; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-3); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 12px; line-height: 1.75; }

/* 마지막 CTA */
.final { padding: clamp(72px, 10vw, 128px) 0; }
.final .in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: end; }
.final h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.18; letter-spacing: -.045em; font-weight: 850; color: #fff; }
.final p { color: var(--on-night-2); margin-top: 16px; font-size: 18px; }

/* 하위 페이지 머리 */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.18; letter-spacing: -.045em; font-weight: 850; color: #fff; margin-top: 16px; }
.page-hero p.lead2 { color: var(--on-night-2); font-size: clamp(16px, 2vw, 19px); line-height: 1.7; margin: 18px 0 28px; }
.page-hero .photo { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.page-hero .photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (max-width: 960px) { .page-hero .photo img { aspect-ratio: 16 / 10; } }

/* 지그재그 기능 설명 */
.zig { display: grid; gap: clamp(56px, 8vw, 96px); }
.zig > div { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.zig > div:nth-child(even) > :first-child { order: 2; }
.zig h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; line-height: 1.25; margin: 8px 0 14px; }
.zig .k2 { color: var(--pen); font-weight: 750; font-size: 14px; }
.zig p { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.zig ul { margin: 16px 0 0; padding-left: 18px; color: var(--ink-2); line-height: 1.9; }
.shot { background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(18px, 3vw, 28px); }
.shot .card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; box-shadow: 0 16px 40px -24px rgba(22, 33, 62, .35); }
.shot .card + .card { margin-top: 10px; }
.shot .row-s { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.shot .row-s:last-child { border-bottom: 0; }
.chip-s { display: inline-block; padding: 7px 12px; border-radius: 9px; border: 1.5px solid var(--rule); font-weight: 650; font-size: 14px; margin: 3px; }
.chip-s.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 양식 미리보기(쓰임새 페이지) */
.form-preview { background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.form-preview .fp-head { padding: 20px 22px; border-bottom: 1px solid var(--rule); }
.form-preview .fp-body { padding: 18px 22px 22px; display: grid; gap: 16px; }
.form-preview .q b { display: block; font-size: 15px; margin-bottom: 8px; }
.form-preview .q small { color: var(--ink-3); }

/* 나타나기 */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .hero2 h1 .mark::after, .demo .float { animation: none; } }

@media (max-width: 960px) {
  .hero2 .grid, .page-hero .grid, .final .in, .faq { grid-template-columns: 1fr; }
  .demo { max-width: 460px; }
  .demo { margin-top: 40px; }
  .demo .f1 { left: 8px; bottom: -50px; }
  .demo .f2 { right: 8px; top: -54px; }
  .facts .in { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div { border-top: 1px solid var(--night-line); }
  .vs, .zig > div { grid-template-columns: 1fr; }
  .zig > div:nth-child(even) > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; padding: 0; }
  .steps li::before { margin: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento .tall { grid-row: auto; }
  .bento .wide { grid-column: auto; }
  .bento .full { grid-template-columns: 1fr; }
  .bento .full .tags { justify-content: flex-start; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .uses { grid-template-columns: 1fr; }
  .hero2 .cta-row .btn { width: 100%; }
}

/* 이용후기 */
.rev-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rev { background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.rev h3 { font-size: 18px; letter-spacing: -.03em; line-height: 1.4; }
.rev p { color: var(--ink-2); font-size: 15px; line-height: 1.75; flex: 1; white-space: pre-line; }
.rev-foot { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule); }
.rev-note { font-size: 12px; color: var(--ink-3); }
.stars { color: #f5b400; letter-spacing: 1px; font-size: 16px; }
.stars .off { color: var(--rule); }

/* 홈 히어로 배경 사진 — 왼쪽은 글자를 위해 짙게 */
.stage-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .55; }
.hero2::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--night) 18%, rgba(13, 20, 40, .82) 45%, rgba(13, 20, 40, .45) 75%, rgba(13, 20, 40, .7)), linear-gradient(0deg, var(--night) 0%, transparent 30%); }
@media (max-width: 960px) { .stage-bg img { object-position: 80% top; opacity: .35; } .hero2::after { background: linear-gradient(180deg, rgba(13, 20, 40, .7), var(--night) 70%); } }

/* 후기 히어로 점수 카드 */
.hero-score { position: absolute; left: -24px; bottom: -24px; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); }
.hero-score b { font-size: 36px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.hero-score small { color: var(--ink-3); }
@media (max-width: 960px) { .hero-score { left: 12px; bottom: -20px; } }
