/* 오늘쓸돈 공식 사이트 — 서브페이지 공용 스타일 (index.html 토큰과 동일) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #00B4B4;
  --brand-dark: #009494;
  --brand-light: #5EEAD4;
  --brand-subtle: #F0FDFA;
  --bg: #FAFAFA;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --hero-dark: #021B1B;
  --hero-mid: #004D4D;
  --danger: #EF4444;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ===== NAVBAR (서브페이지: 항상 밝은 배경) ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--text-secondary); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { background: var(--brand) !important; color: #fff !important; padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--brand-dark) !important; }
.nav-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }

/* ===== PAGE HERO (작게) ===== */
.page-hero { padding: 56px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,180,180,.3); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; width: 100%; }
.btn-block { width: 100%; }

/* ===== CARDS / SECTIONS ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; }
.section { padding: 56px 0; }
.section-label { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 12px; }
.section-desc { color: var(--text-secondary); }
.center { text-align: center; }

/* ===== CTA BLOCK (앱 설치) ===== */
.cta {
  background: linear-gradient(145deg, var(--hero-dark) 0%, var(--hero-mid) 60%, #007A7A 100%);
  color: #fff; border-radius: 20px; padding: 40px 28px; text-align: center;
}
.cta h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.cta p { color: rgba(255,255,255,.75); margin-bottom: 24px; }
.cta .btn-primary { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cta-shot { width: 220px; margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.cta-row { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cta-row > div { flex: 1 1 260px; max-width: 440px; }
.cta-row .cta-shot { margin: 0; flex: 0 0 200px; width: 200px; }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--text-secondary); margin-top: 8px; font-size: .95rem; }

/* ===== GUIDE ===== */
.guide-item { display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.guide-item h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.guide-item p, .guide-item li { color: var(--text-secondary); font-size: .97rem; }
.guide-item ol, .guide-item ul { padding-left: 20px; }
.guide-item img { border-radius: 18px; border: 1px solid var(--border); }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 24px; }
.guide-toc a { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: var(--text-secondary); }
.guide-toc a:hover { border-color: var(--brand); color: var(--brand-dark); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-subtle); padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 20px; }
.step b { display: block; color: var(--brand); font-size: .8rem; letter-spacing: 1px; margin-bottom: 6px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: .92rem; }

/* ===== FOOTER (index.html과 동일) ===== */
footer { background: var(--hero-dark); color: rgba(255,255,255,.6); padding: 48px 0 32px; margin-top: 48px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; gap: 32px; }
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: var(--brand); }
.footer-desc { font-size: .85rem; max-width: 280px; }
.footer-links-group h4 { color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.footer-links-group a { display: block; color: rgba(255,255,255,.5); text-decoration: none; font-size: .85rem; margin-bottom: 8px; }
.footer-links-group a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; text-align: center; font-size: .8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 0 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-links .nav-cta { margin: 8px 24px 0; }
  .nav-menu-btn { display: block; }
  .steps { grid-template-columns: 1fr; }
  .guide-item { grid-template-columns: 1fr; }
  .guide-item img { width: 220px; margin: 0 auto; }
  .section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }
