/* 도톨 가계부 — 웹 소개 페이지 `/`(M4-37, PLAN D-69).
 *
 * 시안: 비공개 Design 캔버스 «로그인 · 랜딩» 페이지의 WEB_Landing(1440)·WEB_Landing_M(390).
 *   원본 조각은 dotol_flutter/tool/design_canvas/auth/gen_web.py 다. 그 STYLE 을 이 파일로 옮겼다.
 * 색은 앱 모노톤(DESIGN.md §3, D-62)이고 다크는 시안의 .dt.dark 값이다.
 * 외부 리소스 0(웹폰트·CDN 없음): CSP 가 `default-src 'none'` 이다(dist/_headers).
 */

:root {
  color-scheme: light dark;

  --canvas: #ffffff;
  --grouped: #f3f3f3;
  --card: #ffffff;
  --weak: #f0f0f0;
  --inv: #141414;
  --fg: #141414;
  --fgMuted: #555555;
  --fgSubtle: #6b6b6b;
  --fgPh: #adadad;
  --fgInv: #ffffff;
  --fgPos: #00745f;
  --critSolid: #ca1d13;
  --sWeak: #e0e0e0;
  --sMuted: rgba(0, 0, 0, 0.063);
  --sContrast: #141414;
  --device: #141414;
  --ctaBg: #141414;
  --ctaFg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141414;
    --grouped: #000000;
    --card: #1c1c1e;
    --weak: #2c2c2e;
    --inv: #f3f3f3;
    --fg: #f3f3f3;
    --fgMuted: #d4d4d4;
    --fgSubtle: #adadad;
    --fgPh: #8e8e93;
    --fgInv: #141414;
    --fgPos: #22b27f;
    --critSolid: #ca2319;
    --sWeak: #3a3a3c;
    --sMuted: rgba(255, 255, 255, 0.09);
    --sContrast: #f3f3f3;
    --device: #3a3a3c;
    --ctaBg: #f3f3f3;
    --ctaFg: #141414;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    system-ui, "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--sContrast); outline-offset: 2px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── 머리줄 ───────────────────────────────────────────── */

.whead { height: 72px; display: flex; align-items: center; gap: 32px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 9px; }

.wnav { display: flex; gap: 4px; flex: 1; }

.wnav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--fgMuted);
  text-decoration: none;
}

.wnav a:hover { color: var(--fg); }

.btn {
  height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 19px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--inv);
  color: var(--fgInv);
  text-decoration: none;
}

/* ── 히어로 ───────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 88px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--weak);
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
  color: var(--fgMuted);
}

.wh1 { font-size: 60px; line-height: 74px; font-weight: 700; margin: 20px 0 0; letter-spacing: -0.5px; }

.lead { font-size: 19px; line-height: 30px; color: var(--fgMuted); margin: 20px 0 0; max-width: 500px; }

.dl { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 36px; scroll-margin-top: 24px; }

/* 스토어 배지(출시일에 쓴다, README «출시일»): Apple·Google 공식 파일, 높이 48(좁은 폭 44) · 간격 12 = 높이의 1/4 */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores a { display: block; border-radius: 8px; }
.stores img { height: 48px; width: auto; }

.soon {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--weak);
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--fg);
}

.devwrap { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; }

.devwrap .sq { position: relative; width: 236px; margin-right: -10px; margin-bottom: -6px; z-index: 2; flex: none; }

.device {
  width: 300px;
  height: 612px;
  border-radius: 52px;
  background: var(--device);
  padding: 11px;
  box-shadow: 0 30px 60px rgba(25, 31, 40, 0.12);
  position: relative;
  z-index: 1;
  flex: none;
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  background: var(--canvas);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sbar { height: 40px; flex: none; }

/* ── 앱 화면 조각(시안 v3kit 값, DESIGN §9 기록 버블) ───── */

.tnum { font-variant-numeric: tabular-nums; }
.fgs { color: var(--fgSubtle); }
.fgpos { color: var(--fgPos); }

.emo {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  flex: none;
  font-weight: 400;
}

.emo.s14 { font-size: 14px; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

.acorn { width: 16px; height: 16px; flex: none; display: block; }

.atop { height: 48px; flex: none; display: flex; align-items: center; padding: 0 12px 0 16px; }
.lsw { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; line-height: 22px; font-weight: 700; }

.metric { display: flex; align-items: center; gap: 8px; padding: 4px 16px 8px; flex: none; }
.metric .lab { font-size: 12px; line-height: 16px; color: var(--fgSubtle); }
.metric .val { margin-left: auto; font-size: 16px; line-height: 22px; font-weight: 700; }

.rule { height: 1px; background: var(--sMuted); flex: none; }

.tl { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 0; }
.tl > * { flex: none; }

.bx-pill { display: flex; justify-content: center; padding: 10px 0 6px; }
.bx-pill > span {
  height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  background: var(--weak);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--fgSubtle);
}

.bx-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: end; gap: 6px; padding: 2px 16px 2px 8px; }
.bx-tm { font-size: 11px; line-height: 15px; color: var(--fgSubtle); text-align: right; padding-bottom: 3px; font-variant-numeric: tabular-nums; }
.bx-b {
  background: var(--weak);
  border-radius: 18px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 44px;
}
.bx-b.tail { border-bottom-right-radius: 6px; }
.bx-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bx-l1 .tt { flex: 1; min-width: 0; font-size: 16px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-l1 .am { font-size: 16px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.bx-l2 { font-size: 12px; line-height: 16px; color: var(--fgSubtle); padding-left: 24px; }

.bx-row.them { grid-template-columns: 28px minmax(0, 1fr) 44px; padding: 2px 8px 2px 16px; }
.bx-row.them .bx-b { background: var(--card); box-shadow: inset 0 0 0 1px var(--sMuted); }
.bx-row.them .bx-b.tail { border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }
.bx-row.them .bx-tm { text-align: left; }
.bx-who { padding: 6px 16px 2px 50px; font-size: 11px; line-height: 15px; color: var(--fgSubtle); }

.av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  background: var(--inv);
  color: var(--fgInv);
}

.insheet {
  position: relative;
  z-index: 1;
  flex: none;
  background: var(--canvas);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 12px rgba(25, 31, 40, 0.078);
  padding: 12px 10px 18px 18px;
}

.inrow { display: flex; align-items: flex-end; gap: 4px; }
.chatin { flex: 1; min-width: 0; min-height: 44px; padding: 11px 0; font-size: 15px; line-height: 22px; color: var(--fg); }
.sendb { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.sendb > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--inv); color: var(--fgInv); }

.pchip {
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--weak);
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.caps { display: grid; grid-template-columns: repeat(7, 30px); justify-content: space-between; align-items: end; height: 80px; margin-top: 24px; }
.cap { border-radius: 999px; background: var(--weak); position: relative; overflow: hidden; height: 80px; }
.cap > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--inv); border-radius: 999px; }
.cap.over > i { background: var(--critSolid); }
.cap.today { box-shadow: 0 0 0 1.5px var(--sContrast); }
.capl { display: grid; grid-template-columns: repeat(7, 30px); justify-content: space-between; text-align: center; font-size: 12px; line-height: 16px; color: var(--fgSubtle); margin-top: 8px; }
.capl b { color: var(--fg); }

/* ── 기능 ─────────────────────────────────────────────── */

.sec { padding: 104px 0; }
.sec.gr { background: var(--grouped); }

.eyebrow { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--fgSubtle); }
.wh2 { font-size: 40px; line-height: 52px; font-weight: 700; margin: 10px 0 0; letter-spacing: -0.3px; }

.feat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 80px;
  scroll-margin-top: 24px;
}
.feat.rev .ftext { order: 2; }

.ftext h3 { font-size: 30px; line-height: 40px; font-weight: 700; margin: 12px 0 0; }
.ftext p { font-size: 18px; line-height: 28px; color: var(--fgMuted); margin: 14px 0 0; max-width: 440px; }

.fnum {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--inv);
  color: var(--fgInv);
  font-size: 14px;
  font-weight: 700;
}

.fcard {
  background: var(--card);
  border-radius: 32px;
  min-height: 360px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.fcard .bx-row,
.fcard .bx-row.them { padding-left: 0; padding-right: 0; }
.fcard .bx-who { padding-left: 34px; }
.fcard .fill { width: 150px; margin: 0 auto 18px; }
.fcard .fill.wide { width: 220px; }

.fcard .big { font-size: 48px; line-height: 60px; font-weight: 700; }
.fcard .big.s40 { font-size: 40px; line-height: 52px; }
.fcard .lab { font-size: 14px; line-height: 19px; color: var(--fgSubtle); }
.fcard .ttl { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; line-height: 19px; font-weight: 700; }

.fin { background: var(--grouped); border-radius: 20px; padding: 6px 8px 6px 20px; margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; height: 180px; margin-top: 24px; }
.bars > i { display: block; border-radius: 12px 12px 4px 4px; background: var(--inv); }
.barl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; text-align: center; font-size: 13px; line-height: 18px; color: var(--fgSubtle); margin-top: 8px; }
.barl b { color: var(--fg); }

/* ── 자주 묻는 질문 ───────────────────────────────────── */

.center { text-align: center; }

.faq { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--sMuted); }
.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 19px;
  line-height: 26px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--fgSubtle); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0 0 24px; font-size: 17px; line-height: 27px; color: var(--fgMuted); }

/* ── 내려받기 ─────────────────────────────────────────── */

.cta {
  background: var(--ctaBg);
  color: var(--ctaFg);
  border-radius: 40px;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.cta h2 { font-size: 44px; line-height: 56px; font-weight: 700; margin: 0; letter-spacing: -0.3px; }
.cta p { font-size: 18px; line-height: 28px; margin: 14px 0 32px; opacity: 0.74; }
.cta .soon { background: rgba(127, 127, 127, 0.24); color: inherit; }
.cta > img { width: 220px; }

/* ── 꼬리말 ───────────────────────────────────────────── */

.wfoot { padding-top: 48px; padding-bottom: 56px; border-top: 1px solid var(--sMuted); margin-top: 104px; }
.wfoot .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.wfoot .brand { font-size: 16px; }
.wfoot .brand img { width: 28px; height: 28px; border-radius: 8px; }

.flinks { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.flinks a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 15px;
  line-height: 20px;
  color: var(--fgMuted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--fgPh);
}
/* PIPC 작성지침(2026.4): 처리방침 링크는 다른 고지와 굵기 등으로 구분한다(policy.css 와 같은 규칙). */
.flinks a.privacy-link { color: var(--fg); font-weight: 700; }

.copy { font-size: 13px; line-height: 18px; color: var(--fgSubtle); margin: 16px 0 0; }
.copy a { color: inherit; }
.tm { font-size: 12px; line-height: 17px; color: var(--fgSubtle); margin: 24px 0 0; }

/* ── 중간 폭: 오른쪽 열이 폰(300) + 병(236 − 10)을 담으려면 콘텐츠 폭 1100 = 뷰포트 1180 이 필요하다 ── */

@media (max-width: 1179px) {
  .devwrap .sq { display: none; }
  .wh1 { font-size: 48px; line-height: 60px; }
}

/* ── 좁은 폭(시안 390) ────────────────────────────────── */

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .wnav { display: none; }
  .whead { justify-content: space-between; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; padding-bottom: 56px; }
  .wh1 { font-size: 38px; line-height: 50px; }
  .lead { font-size: 17px; line-height: 27px; }
  .dl { margin-top: 28px; }
  .stores img { height: 44px; }
  .devwrap { justify-content: center; }
  .device { width: 256px; height: 524px; border-radius: 44px; padding: 9px; }
  .screen { border-radius: 36px; }
  .devwrap .sq { display: none; }
  .screen .bx-row { grid-template-columns: 36px minmax(0, 1fr); }
  .screen .bx-l1 .tt, .screen .bx-l1 .am { font-size: 14px; line-height: 20px; }
  .sec { padding: 72px 0; }
  .wh2 { font-size: 30px; line-height: 40px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; }
  .feat.rev .ftext { order: 0; }
  .ftext h3 { font-size: 24px; line-height: 32px; }
  .ftext p { font-size: 16px; line-height: 25px; }
  .fcard { min-height: 0; padding: 24px 16px; border-radius: 24px; }
  .fcard .fill { width: 120px; }
  .fcard .fill.wide { width: 180px; }
  .fcard .big { font-size: 40px; line-height: 52px; }
  .fcard .big.s40 { font-size: 34px; line-height: 44px; }
  .faq summary { font-size: 17px; line-height: 24px; }
  .faq details p { font-size: 16px; line-height: 25px; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 48px 24px 0; border-radius: 28px; }
  .cta h2 { font-size: 30px; line-height: 40px; }
  .cta > img { width: 160px; justify-self: end; }
  .wfoot { margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
