/*
 * 단비 랜딩(`/`) 전용 스타일 — apps#225. 다른 페이지(방침·약관·인증·삭제)는 `danbi.css` 를 그대로 쓴다.
 * 색 값은 rn-apps/apps/danbi/DESIGN.md 토큰 그대로다. 시안·리뷰 경과는 apps#225.
 */

:root {
  --ground: #F5F8FD; --ink: #101828; --ink3: #63728E; --primary: #3366FF;
  --blue50: rgb(0,102,255); --blue90: rgb(201,222,254); --blue95: rgb(234,242,254); --blue99: rgb(247,251,255);
  --night: #36507F; --night-deep: #1E2F4F;
  --earth-dry: #D4C19A; --earth-wet: #8A6540; --bark: #6B4E32; --leaf: #3D7A4A; --leaf-dark: #2A5533;
  --line: rgba(112,115,124,0.22); --fill: rgba(112,115,124,0.08);
  --surface: #ffffff; --link: rgb(0,102,255);
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #172033; --ink: #F5F8FD; --ink3: #94A3B8; --primary: rgb(91,132,255);
    --blue50: rgb(70,140,255); --blue90: rgb(28,48,92); --blue95: rgb(20,32,64); --blue99: rgb(16,24,44);
    --night: #1A2740; --night-deep: #0C1424;
    --earth-dry: #4A3F2A; --earth-wet: #3A2A1A; --bark: #2A1C12; --leaf: #5A9A68; --leaf-dark: #3D7A4A;
    --line: rgba(112,115,124,0.32); --fill: rgba(112,115,124,0.22);
    --surface: #1E2A40; --link: rgb(91,152,255);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #172033; --ink: #F5F8FD; --ink3: #94A3B8; --primary: rgb(91,132,255);
  --blue50: rgb(70,140,255); --blue90: rgb(28,48,92); --blue95: rgb(20,32,64); --blue99: rgb(16,24,44);
  --night: #1A2740; --night-deep: #0C1424;
  --earth-dry: #4A3F2A; --earth-wet: #3A2A1A; --bark: #2A1C12; --leaf: #5A9A68; --leaf-dark: #3D7A4A;
  --line: rgba(112,115,124,0.32); --fill: rgba(112,115,124,0.22);
  --surface: #1E2A40; --link: rgb(91,152,255);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.shell { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* 헤더·푸터 — 모든 시안 같음 */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.top .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 24px; height: 33px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--ink3); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .top nav .opt { display: none; } }

.foot { border-top: 1px solid var(--line); margin-top: 0; }
.foot .shell { padding-block: 32px 48px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--ink3); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--ink3); }

/* 버튼 — DESIGN 의 「채운 primary 금지(다크 대비)」 규칙을 따른다. 그래서 라이트에서만 채운다. */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* 공식 스토어 배지처럼 두 테마 모두 검은 바탕. 출시 후에는 Apple·Google 공식 한국어 배지로 바꾼다(브랜드 지침상 재현 금지). */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; }
.store small { display: block; font-weight: 500; font-size: 11px; opacity: .72; line-height: 1.1; }
.store b { display: block; line-height: 1.2; }
.store svg { width: 24px; height: 24px; flex: none; }
.store[aria-disabled="true"] { opacity: .9; cursor: default; }
.note { font-size: 14px; color: var(--ink3); }

/* 폰 틀 — 실제 앱 캡처가 들어갈 자리. 캡처가 없으면 이름표만 보인다. */
.phone { position: relative; width: 100%; max-width: 300px; border-radius: 46px; padding: 7px;
  background: #0B0F17; box-shadow: 0 30px 60px -30px rgba(16,24,40,.45), 0 0 0 1px rgba(255,255,255,.08) inset; }
/* 화면 비율 = 캡처 비율(1320×2868). 다르면 cover 가 좌우를 잘라 앱의 여백이 사라진다. */
.phone .screen { position: relative; width: 100%; aspect-ratio: 1320 / 2868; border-radius: 39px; overflow: hidden; background: var(--blue95);
  display: grid; place-items: center; color: var(--ink3); font-size: 13px; text-align: center; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* 주간 토양 — 앱의 세 상태 그대로(마른 땅·은혜 덮기·나무) */
.soil { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 14px); }
.soil figure { margin: 0; display: grid; gap: 6px; justify-items: center; }
.soil svg { width: 100%; height: auto; overflow: visible; }
.soil figcaption { font-size: 13px; color: var(--ink3); font-weight: 600; }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; 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: "+"; color: var(--ink3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink3); font-size: 16px; }

.mark { display: block; height: auto; overflow: visible; }
.verse-ref { font-size: 14px; color: var(--ink3); letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 링크·버튼 기본(시안 preview.css 에서 운영에 필요한 것만) */
a { color: var(--link); text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }

/* ── 페이지 구획 ── */
/* A — 본문이 주인공. 히어로는 소개, 그 바로 아래 「오늘 모두가 읽는 한 장」을 실물처럼 펼친다. */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero .shell { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .shell { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink3); max-width: 30em; }
.hero .cta-row { margin-top: 32px; }
.hero .note { margin-top: 12px; }
.hero .phone-wrap { display: flex; justify-content: center; }
.hero .phone { max-width: 290px; transform: rotate(2deg); }

/* 오늘의 한 장 — 종이 한 장처럼. 성경 인용까지 Pretendard로 통일한다(2026-10-14 사용자 결정). */
.leaf-band { padding-block: clamp(48px, 7vw, 96px); background: var(--blue99); border-block: 1px solid var(--line); }
.leaf-band .shell { display: grid; gap: 32px; }
@media (min-width: 900px) { .leaf-band .shell { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
.leaf-band .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--link); }
.leaf-band aside p { margin-top: 10px; color: var(--ink3); font-size: 15px; }
.page { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
/* 본문과 질문은 글꼴·크기·굵기·행간을 맞춘다. 구분은 이름표와 여백으로 한다. */
.page { --leaf-size: clamp(19px, 1.9vw, 23px); }
.page blockquote, .ask p { font-family: var(--sans); font-size: var(--leaf-size); font-weight: 400; line-height: 1.8; letter-spacing: normal; }
.page blockquote { margin: 0; }
.page blockquote sup { font-family: var(--sans); font-size: .6em; color: var(--ink3); font-weight: 700; margin-right: .3em; vertical-align: .9em; }
.page .verse-ref { margin-top: 14px; }
.ask { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.ask .label { font-size: 13px; font-weight: 700; color: var(--ink3); }
.ask .mine { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink3); }
.ask .mine svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* 하루의 흐름 — 실제 순서라서 번호를 단다 */
.flow { padding-block: clamp(64px, 8vw, 112px); }
.flow h2, .soil-band h2, .together h2, .faq-sec h2, .last h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; line-height: 1.25; }
.flow .sub { margin-top: 12px; color: var(--ink3); max-width: 34em; }
.steps { margin-top: 48px; display: grid; gap: 40px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.step { display: grid; gap: 20px; justify-items: start; }
.step .phone { max-width: 240px; }
.step .n { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: .06em; }
.step h3 { font-size: 21px; letter-spacing: -0.02em; margin-top: 4px; }
.step p { margin-top: 6px; color: var(--ink3); font-size: 16px; }

/* 마음밭 — 흙빛 띠 */
.soil-band { padding-block: clamp(64px, 8vw, 104px); background: color-mix(in srgb, var(--earth-dry) 22%, var(--ground)); }
.soil-band .shell { display: grid; gap: 40px; }
@media (min-width: 900px) { .soil-band .shell { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 64px; } }
.soil-band p { margin-top: 14px; color: var(--ink3); }
.keys { margin-top: 20px; display: grid; gap: 10px; font-size: 15px; }
.keys div { display: flex; gap: 10px; align-items: baseline; }
.keys i { width: 12px; height: 12px; border-radius: 3px; flex: none; transform: translateY(1px); }

/* 함께 */
.together { padding-block: clamp(64px, 8vw, 104px); }
.together .shell { display: grid; gap: 40px; }
@media (min-width: 900px) { .together .shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; } }
.together .see { margin-top: 24px; display: grid; gap: 12px; }
.together .see div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--fill); font-size: 15px; }
.together .see b { font-weight: 700; }
.together .see .no b { color: var(--ink3); }
.together .phone-wrap { display: flex; justify-content: center; }
.together .phone { max-width: 270px; }

/* 응원 안내는 본문 끝에 두고, 항상 보이는 헤더 메뉴에서 이 구획으로 바로 이동한다. 금액은 BMC에서 확인한다. */
.cheer { padding-block: clamp(64px, 8vw, 104px); background: var(--blue99); border-top: 1px solid var(--line); }
.cheer .head { display: grid; gap: 12px; max-width: 36em; }
.cheer .head p { color: var(--ink3); }
.cheer .ways { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 820px) { .cheer .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cheer .way { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; display: grid; gap: 8px; align-content: start; }
.cheer .way h3 { font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.cheer .way h3 svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cheer .way p, .cheer .way li { color: var(--ink3); font-size: 16px; }
.cheer .way ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.cheer .go { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px;
  border: 1.5px solid var(--primary); color: var(--primary); background: var(--surface); font-weight: 700; text-decoration: none; }
.btn-line:hover { background: var(--blue95); }
.cheer .go small { color: var(--ink3); font-size: 14px; }

.faq-sec { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.faq-sec .shell { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-sec .shell { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; } }

.last { padding-block: clamp(64px, 8vw, 112px); text-align: center; background: var(--blue99); border-top: 1px solid var(--line); }
.last .mark { width: 56px; margin: 0 auto 24px; }
.last p { margin-top: 12px; color: var(--ink3); }
.last .cta-row { justify-content: center; margin-top: 28px; }

/* 리뷰(2026-10-14) 대비 보정: 흙빛 띠 위 글자는 ink, 번호·키커·선 버튼은 --link(라이트 blue50 · 다크 blue60) */
.soil-band p, .soil-band .keys, .soil .soil figcaption { color: var(--ink); }
.soil-band .soil figcaption { color: var(--ink); }
.step .n { color: var(--link); }
.btn-line { color: var(--link) !important; border-color: var(--link) !important; }
.together .see .no b { color: var(--ink); }
.together .see small { color: var(--ink); font-size: 13px; }
.together-lede { margin-top: 14px; color: var(--ink3); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.skip:focus { left: 16px; }

/* Same SVG characters as the app: neutral in navigation, welcoming at the close. */
.danbi-character { display: block; flex: none; height: auto; overflow: visible; }
.brand .brand-character { width: 32px; height: 42px; }
.last .welcome-character { width: 96px; height: auto; margin: 0 auto 24px; }

/* A single support section links directly to the user's confirmed BMC page. */
.top nav { align-items: center; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; }
.top nav .nav-support {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--link); font-weight: 700; white-space: nowrap;
}
.top nav .nav-support:hover { background: var(--blue95); border-color: var(--link); }
.nav-label-short { display: none; }
@media (max-width: 560px) {
  .top .shell { gap: 12px; }
  .top nav { gap: 12px; font-size: 14px; }
  .nav-label-wide { display: none; }
  .nav-label-short { display: inline; }
}
.cheer .ways { align-items: start; }
.cheer .way .support-action { margin-top: 16px; }
.cheer .way .btn-line { min-height: 52px; padding: 12px 18px; line-height: 1.5; }
.cheer .way .external-note { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.cheer .support-qr {
  margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center;
}
.support-qr a { display: block; padding: 10px; border-radius: 16px; background: #fff; }
.support-qr img { width: 100%; height: auto; border-radius: 8px; }
.cheer .support-qr figcaption { color: var(--ink3); font-size: 14px; line-height: 1.7; }
.support-qr strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.cheer .support-promise-note { margin-top: 24px; color: var(--ink3); font-size: 14px; }
@media (max-width: 380px) {
  .cheer .support-qr { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cheer .support-qr a { width: 140px; }
  .cheer .way { padding: 22px; }
}

/* Leave room when keyboard focus or an anchor moves underneath the sticky header. */
html { scroll-padding-block: calc(5em + 16px) calc(4em + 16px); }
.top .shell { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
.top nav { flex-wrap: wrap; justify-content: flex-end; min-width: min-content; gap: 8px 12px; }
.top nav > * { flex-shrink: 0; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-height: 44px; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  touch-action: manipulation;
}
.theme-toggle:hover { background: var(--blue95); border-color: var(--link); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
.theme-toggle[hidden] { display: none; }
