/* 등불 앱 소개·이용권 (2026-11-24) — 사이트 공통 색(--db-*)만 쓴다. PC · 태블릿(≤980) · 휴대폰(≤680) */
.db-app-page .db-app{color:var(--db-ink,#1f2b2d);font-family:var(--db-font,inherit);padding-bottom:72px}
.db-app .wrap{box-sizing:border-box;width:min(1080px,calc(100% - 48px));margin:0 auto}
.db-app h1,.db-app h2,.db-app h3{margin:0;letter-spacing:-.02em}

/* 첫 화면 — 앱과 같은 밤바다 색, 오른쪽에 실제 앱 화면(태블릿 + 휴대폰) */
.db-app-hero{position:relative;overflow:hidden;padding:72px 0 72px;background:linear-gradient(160deg,#0d2a31 0%,#163f47 55%,#1c5258 100%);color:#fff}
.db-app-hero-in{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:48px;align-items:center}
.db-app-eyebrow{display:inline-block;margin:0 0 16px;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.12);font-size:14px;font-weight:700;color:#cfe5e2}
.db-app-hero h1{font-size:44px;line-height:1.22;font-weight:800;color:#fff}
.db-app-lead{margin:18px 0 0;font-size:17px;line-height:1.7;color:#c4d6d4}
.db-app-stores{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.db-app-store{display:inline-flex;align-items:center;justify-content:center;min-width:150px;height:50px;padding:0 20px;border-radius:12px;background:#fff;color:#0d2a31!important;font-size:15px;font-weight:700;text-decoration:none!important}
.db-app-store+.db-app-store{background:transparent;color:#fff!important;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55)}
.db-app-store:hover{opacity:.9}

/* 기기 화면 */
.db-app-devices{position:relative;aspect-ratio:1.3}
.db-app-pad,.db-app-phone{position:absolute;box-sizing:border-box;background:#0a1518;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.db-app-pad{top:0;right:0;width:88%;padding:2.4%;border-radius:22px}
.db-app-phone{left:0;bottom:0;width:29%;padding:2.2%;border-radius:26px;box-shadow:0 18px 44px rgba(0,0,0,.45)}
.db-app-pad img,.db-app-phone img{display:block;width:100%;height:auto}
.db-app-pad img{border-radius:12px}
.db-app-phone img{border-radius:20px}

/* 구역 */
.db-app-section{padding:56px 0 0}
.db-app-section h2{font-size:var(--db-section-title-size,22px);font-weight:800;margin-bottom:20px}
.db-app-note{margin:16px 0 0;font-size:14px;line-height:1.6;color:var(--db-muted,#5a6b6e)}

/* DB Test 와 비교 */
.db-app-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.db-app-card{display:flex;flex-direction:column;padding:24px;border:1px solid var(--db-line,#dde5e4);border-radius:14px;background:#fff}
.db-app-card.is-app{border-color:var(--db-accent,#1c5258);box-shadow:0 0 0 1px var(--db-accent,#1c5258) inset}
.db-app-card h3{font-size:20px;font-weight:800;margin-bottom:16px}
.db-app-card.is-app h3{color:var(--db-accent,#1c5258)}
.db-app-card dl{display:grid;grid-template-columns:64px 1fr;gap:10px 12px;margin:0;font-size:15px;line-height:1.5}
.db-app-card dt{color:var(--db-muted,#5a6b6e);font-weight:600}
.db-app-card dd{margin:0;font-weight:600}
.db-app-link{margin-top:20px;align-self:flex-start;font-size:14px;font-weight:700;color:var(--db-accent,#1c5258)!important}

/* 이용권 상품 */
.db-app-products{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.db-app-product{display:flex;flex-direction:column;margin:0;padding:22px;border:1px solid var(--db-line,#dde5e4);border-radius:14px;background:#fff;color:inherit}
.db-app-product strong{font-size:19px;font-weight:800}
.db-app-product-ment{margin-top:6px;font-size:14px;line-height:1.5;color:var(--db-muted,#5a6b6e)}
.db-app-product fieldset{display:flex;flex-direction:column;gap:8px;margin:16px 0 0;padding:0;border:0;min-width:0}
.db-app-product label{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--db-line,#dde5e4);border-radius:10px;font-size:15px;cursor:pointer}
.db-app-product label:has(input:checked){border-color:var(--db-accent,#1c5258);background:#f1f7f6}
.db-app-product label input{margin:0;accent-color:var(--db-accent,#1c5258)}
.db-app-product label span{flex:1}
.db-app-product label b{font-size:16px;font-weight:800}
.db-app-buy{margin-top:auto;display:flex;align-items:center;justify-content:center;width:100%;height:46px;border:0;border-radius:10px;background:var(--db-accent,#1c5258);color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.db-app-product fieldset+.db-app-buy{margin-top:18px}
.db-app-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.db-app-empty{margin:0;padding:28px;border:1px dashed var(--db-line,#dde5e4);border-radius:14px;text-align:center;color:var(--db-muted,#5a6b6e)}

/* 시작하기 */
.db-app-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.db-app-steps li{display:flex;gap:12px;align-items:flex-start;padding:20px;border-radius:14px;background:var(--db-accent-soft,#e8f0ee);font-size:15px;line-height:1.55}
.db-app-steps b{flex:none;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--db-accent,#1c5258);color:#fff;font-size:14px}

/* 자주 묻는 질문 */
.db-app-faq details{border-bottom:1px solid var(--db-line,#dde5e4)}
.db-app-faq summary{cursor:pointer;padding:16px 0;font-size:16px;font-weight:700;list-style:none}
.db-app-faq summary::-webkit-details-marker{display:none}
.db-app-faq summary::after{content:'+';float:right;color:var(--db-muted,#5a6b6e)}
.db-app-faq details[open] summary::after{content:'−'}
.db-app-faq p{margin:0 0 16px;font-size:15px;line-height:1.65;color:var(--db-muted,#5a6b6e)}

.db-app-br{display:none}

/* 태블릿 */
@media(max-width:980px){
  .db-app-hero{padding:56px 0 56px}
  .db-app-hero-in{grid-template-columns:1fr;gap:40px}
  .db-app-hero h1{font-size:36px}
  .db-app-devices{width:min(100%,600px);margin:0 auto}
  .db-app-products{grid-template-columns:repeat(2,1fr)}
  .db-app-steps{grid-template-columns:1fr}
}
/* 휴대폰 */
@media(max-width:680px){
  .db-app .wrap{width:calc(100% - 32px)}
  .db-app-hero{padding:40px 0 40px}
  .db-app-hero-in{gap:32px}
  .db-app-hero h1{font-size:28px}
  .db-app-br-pc{display:none}
  .db-app-lead{font-size:15px}
  .db-app-pad{border-radius:14px}.db-app-pad img{border-radius:8px}
  .db-app-phone{border-radius:18px}.db-app-phone img{border-radius:13px}
  .db-app-store{flex:1;min-width:0}
  .db-app-section{padding-top:40px}
  .db-app-compare,.db-app-products{grid-template-columns:1fr}
  .db-app-card,.db-app-product{padding:18px}
}

@media (max-width: 767px) {
  #db-app-buy .db-app-products {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    max-width: 100%;
  }
  #db-app-buy .db-app-product {
    flex: 0 0 calc(90% - 8px);
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
  }
  #db-app-buy .db-app-product:only-child { flex-basis: 100%; }
  #db-app-buy .db-app-product:last-child { scroll-snap-align: end; }
}

#db-app-compare .comparison-title-link { color: inherit; text-decoration: none; }
#db-app-compare .comparison-title-link:hover { text-decoration: underline; }
#db-app-compare .comparison-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
#db-app-compare .comparison-pass-link { display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px; border-radius: 8px; background: #214944; color: white; font-weight: 650; text-decoration: none; }

#db-app-compare .device-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#db-app-compare .device-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #a9c9bc; background: #eef6f0; color: #245446; border-radius: 999px; padding: 4px 10px; font-size: 14px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
#db-app-compare .device-chip.is-off { color: #6c151e; background: #f7e9ee; border-color: #c88fa3; }

#db-app-compare table.study-comparison tbody td > small {
  display: block;
  width: auto;
  padding: 0;
  margin: 0 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #354c49;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

#db-app-buy .period-option.is-six-months > .period-title { font-weight: 750; color: #164a4b; }
#db-app-buy .period-option.is-six-months:has(input:checked) { border-color: #246158; background: #eaf4ef; box-shadow: none; }
#db-app-buy .period-option.is-six-months .discount-badge { background: #6c151e; color: #fff; }

#db-app-compare .service-chips { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
#db-app-compare .service-chips .device-chip { min-width: 0; max-width: 100%; white-space: normal; }

#db-app-buy .db-app-product button.db-app-buy {
  border: 1px solid #bdd6d0;
  background: #e8f2ef;
  color: #1e4945;
  font-weight: 650;
}
#db-app-buy .db-app-product button.db-app-buy:hover {
  background: #dbece7;
  border-color: #9fbfb6;
}

#db-app-buy .db-app-product .period-option > .discount-badge + b { padding-block-start: 6px; }

#db-app-compare .device-chip.is-app-extra { color: #fff; background: #214944; border-color: #214944; }

#db-app-compare .comparison-audience > strong { text-decoration: underline solid #edc34a; text-decoration-thickness: 3px; text-underline-offset: 3px; }
#db-app-compare table.study-comparison td > .comparison-audience { font-weight: 500; }
#db-app-compare table.study-comparison .comparison-audience > strong:not(.app-audience-emphasis) { font-size: 1.15em; font-weight: 750; }
#db-app-compare table.study-comparison .comparison-audience > .app-audience-emphasis { font-size: 1.15em; font-weight: 700; }

#db-app-compare .comparison-trial { margin-inline-start: auto; max-width: 100%; }
#db-app-compare .comparison-trial[open] { flex-basis: 100%; }
#db-app-compare .comparison-trial summary { cursor: pointer; list-style: none; }
#db-app-compare .comparison-trial summary::-webkit-details-marker { display: none; }
#db-app-compare .comparison-trial-install { margin-block-start: 12px; padding: 14px; border: 1px solid #bdd6d0; border-radius: 8px; background: #eef6f3; }

#db-app-compare .comparison-trial summary { font-size: 18px; line-height: 1.4; }
#db-app-compare .extra-question-chips { margin-top: 6px; }
#db-app-compare .comparison-trial-install > p { font-size: 1rem; line-height: 1.6; }
#db-app-compare .comparison-trial-install .db-app-stores { margin-top: 14px; }
#db-app-compare .comparison-trial-install .db-app-store + .db-app-store {
  background: #fff;
  color: #164a4b !important;
  box-shadow: inset 0 0 0 1px #9fbfb6;
}
