/* ==========================================================================
   앱 랜딩 페이지 스타일
   --------------------------------------------------------------------------
   약관 문서용 style.css 와는 목적이 달라 파일을 분리했다.
     style.css  : 긴 글을 읽기 편하게 (한 줄 길이 제한, 여백 위주)
     landing.css: 시선을 끌고 다운로드로 유도 (섹션, 카드, 버튼)

   색·글꼴은 앱의 디자인 토큰(lib/app/theme/app_theme.dart)을 그대로 옮겼다.
   "조용한 문예 출판사" 컨셉: 세이지 안개 종이 + 차콜 잉크 + 강조는 짙은 소나무 하나.
   앱과 같이 라이트 전용이다(다크 모드 없음).
   ========================================================================== */

:root {
  --paper-0: #ffffff;
  --paper-50: #fafbf9;
  --paper-100: #f4f5f2;
  --paper-200: #f0f1ed;
  --paper-300: #e7ece8;

  --ink-900: #19201d;
  --ink-600: #4c5651;
  --ink-500: #586460;

  --forest-700: #284438;
  --forest-500: #5a7b6d;
  --forest-100: #caead9;
  --forest-50: #e4ece7;

  --brass-700: #a3845a;

  --line: #dde3df;
  --shadow: 0 8px 24px rgba(40, 68, 56, 0.1);

  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1080px;

  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --ui: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", Roboto, sans-serif;
  --pen: "Nanum Pen Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper-100);
  color: var(--ink-900);
  font-family: var(--ui);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

a {
  color: var(--forest-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ── 상단 바 ─────────────────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper-0);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-900);
}

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

.topbar nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.topbar nav a {
  color: var(--ink-600);
}

/* ── 히어로 ─────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  color: var(--forest-500);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.25;
  margin: 0 0 20px;
}

.hero__title em {
  font-style: normal;
  font-family: var(--pen);
  font-size: 1.25em;
  color: var(--forest-700);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-600);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.hero__points li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-500);
  margin-right: 8px;
  vertical-align: middle;
}

/* ── 스토어 버튼 ─────────────────────────────────────────────────────── */
.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--forest-700);
  color: var(--paper-0);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.store-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: #1e352b;
}

.store-button__sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.2;
}

/* 스토어 로고(현재 App Store만 SVG). Play의 ▶ 글자와 크기를 맞춘다 */
.store-button__logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ── 폰 프레임 ───────────────────────────────────────────────────────── */
.phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--paper-0);
  padding: 10px;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 360 / 675;
  object-fit: cover;
}

/* ── 섹션 공통 ───────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--paper-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
}

.section__subtitle {
  text-align: center;
  color: var(--ink-600);
  margin: 0 auto 48px;
  max-width: 560px;
}

/* ── 사용 흐름(스크린샷 3장) ─────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest-100);
  color: var(--forest-700);
  font-family: var(--serif);
  font-weight: 600;
  margin-bottom: 16px;
}

.step .phone {
  max-width: 260px;
  margin-bottom: 20px;
}

.step__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.step__desc {
  color: var(--ink-600);
  margin: 0;
  font-size: 0.95rem;
}

/* ── 기능 카드 ───────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(40, 68, 56, 0.04);
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--forest-50);
  color: var(--forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature__desc {
  color: var(--ink-600);
  margin: 0;
  font-size: 0.93rem;
}

/* ── 가격 ────────────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.price {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.price--accent {
  border-color: var(--forest-500);
}

.price__label {
  color: var(--forest-500);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.price__amount {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 12px;
}

.price__amount small {
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-left: 6px;
}

.price ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-600);
  font-size: 0.95rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-500);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 12px 0 0;
  color: var(--ink-600);
}

/* ── 마무리 유도 ─────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 88px 0;
  background: var(--forest-700);
  color: var(--paper-0);
}

.cta__verse {
  font-family: var(--pen);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.4;
  margin: 0 0 8px;
  opacity: 0.95;
}

.cta__ref {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0 0 32px;
}

.cta__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 28px;
}

.cta .store-buttons {
  justify-content: center;
}

.cta .store-button {
  background: var(--paper-0);
  color: var(--forest-700);
}

.cta .store-button:hover {
  background: var(--paper-200);
}

/* ── 푸터 ────────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--ink-600);
}

.footer p {
  margin: 4px 0;
}

/* ── 작은 화면 ───────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .store-buttons,
  .hero__points {
    justify-content: center;
  }

  .hero .phone {
    max-width: 240px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .topbar nav {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
