/* ===================================================================
   장부대장 랜딩페이지 — style.css
   Figma Make "20260423 장부대장 모바일반응형" 기반 순수 CSS 재구현
   Breakpoints: sm 640 / md 768 / lg 1024
=================================================================== */

:root {
  --navy: #0a1628;
  --navy-grad: #0a1f3c;
  --yellow: #f9e747;
  --text: #52524a;
  --muted: #9a9a88;
  --card-border: #e5e5dc;
  --chip-bg: #fefbe8;
  --gray-bg: #f4f4f0;
  --soft-bg: #fafaf6;
  --star: #f59e0b;
  --divider: #0f172a;
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.container--narrow { max-width: 896px; }
@media (min-width: 640px) {
  .container { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1024px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Responsive text helpers ---------- */
.only-sm-up { display: none; }
.only-sm-down { display: inline; }
@media (min-width: 640px) {
  .only-sm-up { display: inline; }
  .only-sm-down { display: none; }
}

/* ===================================================================
   Buttons
=================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
  overflow: hidden;
}
.btn__label { position: relative; z-index: 1; }
.btn__sweep {
  position: absolute;
  inset: 0;
  width: 0;
  background: rgba(255, 255, 255, .3);
  transition: width .3s ease-out;
  z-index: 0;
}
.btn--sweep:hover .btn__sweep { width: 100%; }

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  padding: 10px 20px;
  box-shadow: 0 8px 20px rgba(249, 231, 71, .35);
}
.btn--primary:hover { background: #f4e02e; box-shadow: 0 10px 26px rgba(249, 231, 71, .45); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 9px 14px;
}
.btn--outline:hover { background: #f9fafb; }

.btn--dark {
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
}
.btn--dark:hover { background: #16243d; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
  padding: 12px 18px;
  width: 230px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

.btn--block { width: 100%; }

.btn--store {
  width: 100%;
  background: #fff;
  color: var(--navy);
  border-color: rgba(10, 22, 40, .12);
  padding: 11px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.btn--store:hover { background: #fafafa; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.store-icon { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }

.btn--hero {
  width: 100%;
  padding: 16px 28px;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(249, 231, 71, .4);
}
.btn--cta {
  width: 100%;
  padding: 18px 32px;
  font-size: 20px;
  border-radius: 12px;
}
.btn--hero:hover, .btn--cta:hover { transform: scale(1.03); }

@media (min-width: 640px) {
  .btn--hero { width: 400px; }
  .btn--cta { width: 480px; }
  .btn--store { width: 195px; }
}

/* subtle pulse to draw attention; stops on hover */
.btn--pulse { animation: softPulse 2.2s ease-in-out infinite; }
.btn--pulse:hover { animation: none; }
@keyframes softPulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(249, 231, 71, .4); }
  50% { box-shadow: 0 14px 38px rgba(249, 231, 71, .65); }
}

/* ===================================================================
   Header
=================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3f4f6;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header__logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--navy);
}
@media (min-width: 640px) { .header__logo { font-size: 20px; } }

.nav--desktop { display: none; align-items: center; gap: 16px; }
@media (min-width: 768px) { .nav--desktop { display: flex; } }
@media (min-width: 1024px) { .nav--desktop { gap: 24px; } }

.nav__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background-color .2s ease;
}
.nav__link:hover { background: #f9fafb; }

/* mobile toggle */
.nav__toggle {
  display: inline-flex;
  padding: 8px;
  background: none;
  border: none;
  color: var(--navy);
}
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav__toggle-icon { width: 24px; height: 24px; }
.nav__toggle-icon line { transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
.nav__toggle.is-open .icon-bar1 { transform: rotate(45deg) translate(0px, 6px); }
.nav__toggle.is-open .icon-bar2 { opacity: 0; }
.nav__toggle.is-open .icon-bar3 { transform: rotate(-45deg) translate(0px, -6px); }

/* mobile menu */
.mobile-menu {
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
@media (min-width: 768px) { .mobile-menu { display: none; } }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.mobile-menu__link {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
}
.mobile-menu__link:hover { background: #f9fafb; }
.mobile-menu .btn { margin-top: 4px; }

/* ===================================================================
   Hero
=================================================================== */
.hero {
  position: relative;
  padding: 96px 0 48px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fafaf6 50%, #fefce8 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}
.badge {
  display: inline-block;
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24px;
  color: var(--navy);
}
.hero__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero__desc {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .hero__title { font-size: 40px; }
  .hero__desc { font-size: 18px; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 48px; }
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__stores { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) {
  .hero__stores { flex-direction: row; }
}

/* phone mockup */
.hero__visual { display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .hero__visual { justify-content: center; align-items: flex-start; }
}
.phone {
  position: relative;
  width: 288px;
  max-width: 78vw;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .25));
}
@media (min-width: 1024px) { .phone { width: 350px; max-width: none; } }
.phone__frame { width: 100%; height: auto; position: relative; z-index: 1; }
.phone__screen {
  position: absolute;
  top: 20px;
  left: 23px;
  right: 25px;
  bottom: 20px;
  z-index: 2;
  overflow: hidden;
  border-radius: 44px;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ===================================================================
   Stats
=================================================================== */
.stats { background: var(--navy); padding: 48px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat:not(:last-child) { border-right: 1px solid #1d2b44; }
.stat__num {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
@media (min-width: 640px) { .stat__num { font-size: 30px; } }
.stat__label { font-size: 12px; color: rgba(255, 255, 255, .45); }
.stats__note {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  text-align: right;
  margin-top: 16px;
}

/* ===================================================================
   Generic section
=================================================================== */
.section { padding: 64px 0; }
.section--gray { background: var(--gray-bg); }
.section--soft { background: var(--soft-bg); }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.32px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.eyebrow--center { text-align: center; }
.section__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 12px;
}
@media (min-width: 640px) { .section__title { font-size: 36px; } }
.section__title--center { text-align: center; }
.section__lead {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 48px;
}
.section__lead--center { text-align: center; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
}
@media (min-width: 640px) { .feature-card { padding: 32px; } }
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.feature-card__desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.64;
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--chip-bg);
  color: var(--navy);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 32px;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { text-align: center; }
.step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}
.step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step__desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 24px;
}
.review__stars {
  color: var(--star);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.68;
  margin-bottom: 16px;
}
.review__author { font-size: 12px; font-weight: 700; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--divider); }
.faq__item { border-bottom: 1px solid var(--divider); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  transition: background-color .2s ease;
}
.faq__q:hover { background: rgba(255, 255, 255, .5); }
.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  transition: transform .25s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.faq__a p {
  padding: 0 16px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.68;
}

/* ===================================================================
   CTA
=================================================================== */
.cta {
  background: linear-gradient(135deg, var(--navy-grad) 0%, var(--navy) 100%);
  padding: 64px 0;
}
.cta__inner { text-align: center; }
.cta__title {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .cta__title { font-size: 40px; } }
.cta__desc {
  color: rgba(255, 255, 255, .65);
  line-height: 1.75;
  margin-bottom: 32px;
}
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta__stores { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) {
  .cta__stores { flex-direction: row; }
  .cta__stores .btn--store { width: 230px; }
}

/* ===================================================================
   Footer
=================================================================== */
.footer { background: var(--navy); padding: 48px 0; }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
}
@media (min-width: 1024px) { .footer__inner { flex-direction: row; } }
.footer__brand { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer__corp { font-size: 12px; color: rgba(255, 255, 255, .35); margin-bottom: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__link {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  transition: color .2s ease;
}
.footer__link:hover { color: rgba(255, 255, 255, .65); }
.footer__contact { text-align: left; }
@media (min-width: 1024px) { .footer__contact { text-align: right; } }
.footer__contact-label { font-size: 14px; color: rgba(255, 255, 255, .5); margin-right: 6px; }
.footer__contact .footer__link { font-size: 14px; color: rgba(255, 255, 255, .5); }
