/* =========================================================
   웰니스 건강 플래너 — 웹사이트 스타일
   앱 디자인 v3(파스텔)과 같은 토큰: 연한 파스텔 바탕, 진한 청록 강조, 해돋이 풍경, 둥근 카드.
   40~60대가 읽기 쉽게 본문 18px 이상, 버튼 48px 이상, 흰 글자 대비 4.5:1 이상.
   ========================================================= */
:root {
  --bg: #f3f9f6;
  --surface: #ffffff;
  --surface-2: #f4f9f7;
  --text: #1b3334;
  --muted: #4c6362;
  --faint: #5f7573;
  --line: #e3eeea;
  --primary: #1d6a67;
  --primary-2: #2b8580;
  --primary-press: #155351;
  --primary-tint: #dff2ee;
  --p-mint: #d3f0e4;
  --p-sage: #dff3d0;
  --p-lav: #e6e0fa;
  --p-peach: #ffe3d1;
  --p-butter: #fdf0c0;
  --p-pink: #fcdfe6;
  --p-sky: #d5eaf8;
  --sun: #ffd166;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(27, 70, 68, 0.03), 0 8px 24px rgba(27, 70, 68, 0.07);
  --shadow-lg: 0 18px 44px rgba(27, 70, 68, 0.16);
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(55% 32% at 0% 0%, #ffeedd 0%, transparent 70%),
    radial-gradient(50% 30% at 100% 6%, #e9e4fb 0%, transparent 70%),
    radial-gradient(60% 34% at 100% 100%, #d9f2e8 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

section {
  padding: clamp(56px, 9vw, 100px) 20px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.center {
  text-align: center;
}

:focus-visible {
  outline: 3px solid #1d5fd6;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---- 버튼 (앱의 '오늘 인증하기' 알약) ---- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 26px 8px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(29, 106, 103, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta:hover {
  background: var(--primary-press);
  transform: translateY(-2px);
}

.cta .cta-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 18px;
}

.cta.soon {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
  cursor: default;
}

.cta.soon:hover {
  transform: none;
  background: #fff;
}

.cta.soon .cta-ico {
  background: var(--primary-tint);
}

.sub-note {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.hero .sub-note {
  color: #3f5655;
}

/* ---- 위 메뉴 ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 249, 246, 0.86);
  backdrop-filter: saturate(1.3) blur(12px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 800;
  font-size: 19px;
  color: var(--primary);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-cta {
  flex: none;
  white-space: nowrap;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

.nav-cta.soon {
  background: var(--primary-tint);
  color: var(--primary);
}

/* =========================================================
   첫 화면 — 앱의 해돋이 풍경 카드를 크게
   ========================================================= */
.hero {
  padding: clamp(16px, 3vw, 28px) 16px clamp(48px, 7vw, 80px);
}

.hero-card {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(27, 70, 68, 0.12);
  min-height: clamp(560px, 62vw, 640px);
  display: flex;
  align-items: stretch;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  width: 100%;
  padding: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 400px;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}

.badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.35);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 900;
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--primary);
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: #3f5655; /* 해·하늘 그림 위에서도 4.5:1 이상 */
  font-weight: 600;
  margin: 0 0 28px;
  max-width: 34em;
}

.hero-phone {
  flex: 0 1 300px;
  margin: 0 auto;
}

/* ---- 폰 틀 ---- */
.phone {
  width: min(300px, 74vw);
  aspect-ratio: 540 / 1167;
  padding: 10px;
  border-radius: 44px;
  background: #1b2a2a;
  box-shadow: var(--shadow-lg);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
  background: var(--bg);
}

.hero-phone .phone {
  transform: rotate(3deg);
}

/* ---- 섹션 머리 ---- */
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

.sec-title {
  font-size: clamp(27px, 4.2vw, 38px);
  font-weight: 900;
  margin-bottom: 12px;
}

.sec-desc {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- 공감 ---- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  text-align: left;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 21px;
  margin: 14px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.mood {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.mood.m-lav {
  background: var(--p-lav);
}
.mood.m-peach {
  background: var(--p-peach);
}
.mood.m-butter {
  background: var(--p-butter);
}

/* ---- 3단계 ---- */
.step .num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 21px;
}

.step .eg {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

/* ---- 기능 타일 (앱의 '내 건강 한눈에'처럼) ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  text-align: left;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 24px 22px;
  min-height: 190px;
}

.tile::before {
  content: '';
  position: absolute;
  right: -26px;
  top: -26px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.tile .ti {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 22px;
}

.tile h3 {
  position: relative;
  font-size: 20px;
  margin: 14px 0 6px;
}

.tile p {
  position: relative;
  margin: 0;
  font-size: 17px;
  color: #2c4646;
}

.t-sleep {
  background: linear-gradient(150deg, #e6e0fa 0%, #d5e4f8 100%);
}
.t-diet {
  background: linear-gradient(150deg, #ffe3d1 0%, #fdeec6 100%);
}
.t-ex {
  background: linear-gradient(150deg, #d3f0e4 0%, #dff3d0 100%);
}
.t-mind {
  background: linear-gradient(150deg, #fcdfe6 0%, #efe0f8 100%);
}
.t-chal {
  background: linear-gradient(150deg, #fdf0c0 0%, #fcdcbc 100%);
}
.t-wins {
  background: linear-gradient(150deg, #d5eaf8 0%, #d3f0e4 100%);
}

/* ---- 쉽게 쓰기 (말로·큰 글씨) ---- */
.easy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.easy-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.easy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.easy-list .ei {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 900;
  font-size: 20px;
}

.easy-list strong {
  display: block;
  font-size: 19px;
}

.easy-list span {
  color: var(--muted);
}

.easy-phone {
  display: flex;
  justify-content: center;
}

/* ---- 화면 미리보기 ---- */
.shots {
  display: flex;
  gap: 22px;
  margin-top: 44px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  margin: 0;
}

.shot .phone {
  width: 230px;
  border-radius: 36px;
  padding: 8px;
}

.shot .phone img {
  border-radius: 28px;
}

.shot figcaption {
  margin-top: 14px;
  font-weight: 800;
  color: var(--muted);
}

.shots-note {
  color: var(--faint);
  font-size: 16px;
  margin: 6px 0 0;
}

/* ---- 약속 ---- */
.promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
  text-align: left;
}

.promise .card h3 {
  margin-top: 0;
  font-size: 19px;
}

.promise .card p {
  font-size: 17px;
}

/* ---- 자주 묻는 질문 ---- */
.faq-list {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: left;
}

.faq {
  background: var(--surface);
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 60px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.faq[open] summary .chev {
  transform: rotate(45deg);
}

.faq .ans {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ---- 마지막 권유 ---- */
.final .hero-card {
  min-height: 0;
}

.final .final-copy {
  position: relative;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px) clamp(120px, 14vw, 160px);
  text-align: center;
  width: 100%;
}

.final h2 {
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 900;
  margin-bottom: 14px;
}

.final p {
  color: var(--muted);
  font-weight: 600;
  margin: 0 auto 26px;
  max-width: 32em;
}

/* ---- 아래 ---- */
.footer {
  padding: 44px 20px 56px;
}

.footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--primary);
}

.foot-meta {
  margin: 0;
  color: var(--faint);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   정책 문서 페이지
   ========================================================= */
.doc-hero {
  padding: clamp(16px, 3vw, 28px) 16px 0;
}

.doc-hero .hero-card {
  max-width: 860px;
  min-height: 0;
}

.doc-hero .doc-copy {
  position: relative;
  padding: clamp(32px, 6vw, 52px) clamp(24px, 5vw, 44px) clamp(70px, 10vw, 100px);
}

.doc-hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 900;
  margin-bottom: 8px;
}

.doc-hero .meta {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.doc section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px clamp(18px, 4vw, 30px);
  margin: 0 0 16px;
}

.doc h2 {
  font-size: clamp(20px, 3vw, 23px);
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--primary);
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0;
}

.doc li {
  margin: 6px 0;
}

.doc .note {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 16px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.doc th,
.doc td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.doc th {
  color: var(--muted);
  font-weight: 800;
}

/* 표: 좁은 화면에서 첫 칸이 한 글자씩 끊기지 않게 */
.doc th,
.doc td {
  overflow-wrap: break-word;
}

.doc tr > :first-child {
  min-width: 5.5em;
}

.table-scroll {
  overflow-x: auto;
}

.doc .mail {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

/* ---- 화면 크기별 ---- */
@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }
  .hero-copy {
    flex-basis: auto;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-phone {
    flex-basis: auto;
    margin-bottom: 40px;
  }
  .cards-3,
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
  .promise {
    grid-template-columns: 1fr 1fr;
  }
  .easy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }
  /* 360px 폭에서도 설치 버튼 글자가 한 줄에 */
  .hero-grid {
    padding: 24px 14px;
  }
  .final .final-copy {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cta {
    font-size: 17px;
    gap: 8px;
    padding: 6px 18px 6px 6px;
  }
  .cta .cta-ico {
    width: 40px;
    height: 40px;
  }
  .cards-3,
  .tiles,
  .promise {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 0;
  }
  .nav .brand span {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
