/* 안와요 — 앱 홍보 랜딩 + 법적 페이지. 앱 브랜드(클레이 + cream/gold/cocoa). */
:root {
  --cream: #F5EEDF;
  --cream-2: #FBF6EA;
  --surface: #FFFFFF;
  --cocoa: #2C2722;
  --cocoa-2: #3A332C;
  --gold: #EBD06A;
  --gold-soft: #FBF3D6;
  --gold-deep: #A8821E;
  --mint: #1FC7B6;
  --mint-deep: #12A594;
  --coral: #E8443B;
  --coral-deep: #D2312A;
  --text: #2C2722;
  --text-2: #8A8178;
  --text-3: #B7AE9F;
  --border: #EAE5DC;
  --shadow: 0 18px 48px rgba(44, 39, 34, 0.12);
  --shadow-sm: 0 8px 22px rgba(44, 39, 34, 0.08);
  --phone-shadow: 0 40px 80px rgba(44, 39, 34, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Gothic A1', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Malgun Gothic', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--cream);
}
.display { font-family: 'Do Hyeon', 'Gothic A1', sans-serif; font-weight: 400; }
a { color: var(--gold-deep); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 238, 223, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(234, 229, 220, 0.7);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: 'Do Hyeon', sans-serif; font-size: 20px; color: var(--cocoa); }
.nav .brand img { width: 34px; height: 34px; border-radius: 11px; }
.nav .links { display: flex; gap: 24px; align-items: center; }
.nav .links a { color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.nav .links a:hover { color: var(--cocoa); }
@media (max-width: 720px) { .nav .links a.hide-sm { display: none; } }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(820px 460px at 78% 6%, #FFE6A8 0%, rgba(255,230,168,0) 55%),
    radial-gradient(680px 520px at 8% 30%, #CFF3EE 0%, rgba(207,243,238,0) 55%),
    radial-gradient(700px 600px at 60% 100%, #FBD9D6 0%, rgba(251,217,214,0) 55%),
    var(--cream);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.86fr; gap: 30px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-block; background: var(--gold-soft); color: var(--gold-deep); font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-family: 'Do Hyeon', sans-serif; font-size: 76px; line-height: 1.0; letter-spacing: -2px; margin: 20px 0 0; }
.hero h1 .accent { color: var(--coral); }
.hero .sub { margin-top: 20px; font-size: 19px; color: var(--text-2); font-weight: 500; }
.hero .ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cocoa); color: #fff; padding: 13px 20px; border-radius: 16px;
  box-shadow: var(--shadow-sm); transition: transform .16s ease;
}
.store:hover { transform: translateY(-2px); }
.store small { display: block; font-size: 10.5px; color: #C9C0B3; line-height: 1.2; }
.store b { font-family: 'Do Hyeon', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.2; }
.store.alt { background: var(--surface); color: var(--cocoa); border: 1px solid var(--border); }
.store.alt small { color: var(--text-3); }

.hero-phone { display: flex; justify-content: center; }
/* 히어로 폰은 실제 폰 비율로 고정(홈은 전체 스크롤 캡처라 그대로 두면 너무 길다).
   상단부(헤더·절약·진입 카드)만 보이도록 위에서부터 cover-crop 한다. */
.hero-phone .phone { width: 292px; height: 600px; transform: rotate(2.5deg); animation: floaty 6s ease-in-out infinite; }
.hero-phone .phone img { height: 100%; object-fit: cover; object-position: top center; }
@keyframes floaty { 0%,100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-14px); } }

/* ── Phone frame ──────────────────────────────────────────── */
.phone {
  width: 270px; border: 9px solid #1d1916; border-radius: 42px;
  background: #1d1916; box-shadow: var(--phone-shadow); overflow: hidden;
  flex-shrink: 0;
}
.phone img { display: block; width: 100%; }

/* ── Stats ────────────────────────────────────────────────── */
.stats { background: var(--cocoa); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 34px 24px; }
.stat { text-align: center; }
.stat b { font-family: 'Do Hyeon', sans-serif; font-weight: 400; font-size: 38px; color: var(--gold); display: block; line-height: 1.1; }
.stat span { color: #C9C0B3; font-size: 14px; }

/* ── Showcase (alternating feature rows) ──────────────────── */
.showcase { padding: 88px 0; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 96px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .copy { order: 2; }
.feature-row.reverse .shot { order: 1; }
.shot { display: flex; justify-content: center; }
.shot .phone { width: 260px; }
.feature-row.reverse .hero-phone .phone { transform: none; }
.copy .tag { display: inline-block; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.copy h2 { font-family: 'Do Hyeon', sans-serif; font-size: 40px; line-height: 1.15; letter-spacing: -1px; margin: 14px 0 0; }
.copy p { font-size: 17px; color: var(--text-2); margin-top: 14px; max-width: 420px; }
.tag.mint { background: #E2F4F0; color: var(--mint-deep); }
.tag.coral { background: #FCE9E7; color: var(--coral-deep); }
.tag.gold { background: var(--gold-soft); color: var(--gold-deep); }
.tag.violet { background: #F0EAFB; color: #7C5BD0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-family: 'Do Hyeon', sans-serif; font-size: 44px; letter-spacing: -1px; }
.section-head p { color: var(--text-2); font-size: 17px; margin-top: 12px; }

/* ── Steps ────────────────────────────────────────────────── */
.steps { background: var(--cream-2); padding: 84px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step .n { font-family: 'Do Hyeon', sans-serif; font-size: 22px; width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--cocoa); display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 19px; margin-top: 18px; font-weight: 800; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { padding: 92px 0; text-align: center; }
.cta-card {
  background: linear-gradient(135deg, var(--cocoa), var(--cocoa-2));
  border-radius: 36px; padding: 60px 30px; color: #fff; box-shadow: var(--shadow);
}
.cta-card img { width: 84px; height: 84px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.cta-card h2 { font-family: 'Do Hyeon', sans-serif; font-size: 42px; letter-spacing: -1px; margin-top: 16px; }
.cta-card p { color: #D9D2C6; font-size: 17px; margin-top: 10px; }
.cta-card .ctas { justify-content: center; margin-top: 28px; }

.disclaimer { text-align: center; color: var(--text-3); font-size: 12.5px; line-height: 1.7; margin: 40px 0 8px; }

/* ── Reviews ──────────────────────────────────────────────── */
.reviews { background: var(--cream-2); padding: 84px 0; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 24px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.review .quote { font-size: 16.5px; font-weight: 600; margin: 12px 0 14px; line-height: 1.55; }
.review .who { display: flex; align-items: center; gap: 9px; }
.review .who .av { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.review .who .nm { font-size: 13.5px; color: var(--text-2); font-weight: 700; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { padding: 88px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.qa { padding: 22px 4px; border-bottom: 1px solid var(--border); }
.qa:last-child { border-bottom: none; }
.qa .q { font-size: 18px; font-weight: 800; display: flex; gap: 10px; align-items: baseline; }
.qa .q::before { content: "Q"; font-family: 'Do Hyeon', sans-serif; color: var(--gold-deep); }
.qa .a { color: var(--text-2); font-size: 15.5px; margin-top: 8px; padding-left: 24px; line-height: 1.65; }

/* ── Footer ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 30px 0 44px; text-align: center; color: var(--text-3); font-size: 13px; }
footer .brand { font-family: 'Do Hyeon', sans-serif; font-size: 18px; color: var(--cocoa); margin-bottom: 8px; }
footer a { margin: 0 8px; color: var(--text-2); }

/* ── Legal pages ──────────────────────────────────────────── */
.legal { padding: 26px 0 64px; max-width: 760px; margin: 0 auto; }
.legal-head { text-align: center; padding: 22px 0 26px; }
.legal-head h1 { font-family: 'Do Hyeon', sans-serif; font-size: 34px; }
.legal-head .updated { color: var(--text-3); font-size: 13px; margin-top: 8px; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; }
.tab { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.tab.active { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px 28px; box-shadow: var(--shadow-sm); }
.clause { padding: 18px 0; border-bottom: 1px solid var(--border); }
.clause:first-child { padding-top: 2px; }
.clause:last-child { border-bottom: none; padding-bottom: 2px; }
.clause h2 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.clause p { font-size: 15px; color: #4a4036; line-height: 1.75; }
.clause p + p { margin-top: 9px; }
.clause ol, .clause ul { font-size: 15px; color: #4a4036; line-height: 1.75; padding-left: 22px; margin-top: 9px; }
.clause ol { list-style: decimal; }
.clause ul { list-style: disc; }
.clause li { margin-bottom: 6px; }
.clause li::marker { color: #8a7d6b; }
.clause strong { font-weight: 800; color: #2C2722; }
.clause a { color: #A8821E; text-decoration: underline; }
.clause .muted { color: #8a7d6b; font-size: 13.5px; line-height: 1.7; }
.ptbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.ptbl th, .ptbl td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; color: #4a4036; line-height: 1.6; }
.ptbl th { background: #faf6ec; font-weight: 700; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero h1 { font-size: 60px; }
  .hero .ctas { justify-content: center; }
  .hero-phone { margin-top: 36px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; text-align: center; margin-bottom: 72px; }
  .feature-row.reverse .copy { order: 2; }
  .feature-row.reverse .shot { order: 1; }
  .copy p { margin-left: auto; margin-right: auto; }
  .stats .wrap { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .section-head h2, .cta-card h2 { font-size: 34px; }
}
