/* 헬스 히스토리 랜딩 — 종이 저널 테마 (앱 style.css와 같은 세계관: 크림 종이·잉크·산호) */
.land {
  --paper: #fffdf7;
  --bg: #f5efe1;
  --ink: #2e2a22;
  --ink-soft: #565043;
  --sub: #66604c;
  --faint: #a29a85;
  --line: #e0d5ba;
  --line-dash: #d9cdb2;
  --coral: #c2603e;
  --coral-deep: #a3402a;
  --sage: #4a7d6c;
  --sage-soft: #e9efe4;
  --blue: #4c6a93;
  --blue-soft: #e9edf3;
  --coral-soft: #f7e6dc;
  color-scheme: light;
  margin: 0;
  background:
    radial-gradient(120% 55% at 50% 0%, #fbf7ee 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.land * { box-sizing: border-box; }
.land ::selection { background: #eecdbb; }
.land a { color: inherit; }
.land :focus-visible { outline: 3px solid #dba387; outline-offset: 2px; border-radius: 4px; }
.land h1, .land h2, .land h3 { font-family: 'Gowun Batang', 'Pretendard Variable', serif; font-weight: 700; line-height: 1.4; margin: 0; }
.land p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .land *, .land *::before, .land *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- 헤더 ---------------- */
.land-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(245, 239, 225, .92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line-dash);
}
.land-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Gowun Batang', serif; font-weight: 700; font-size: 17px; text-decoration: none;
}
.land-brand img { border-radius: 7px; }
.land-nav { display: flex; gap: 4px; margin-left: auto; }
.land-nav a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--sub); font-weight: 600; font-size: 14.5px;
  transition: color .15s ease-out, background .15s ease-out;
}
.land-nav a:hover { color: var(--coral-deep); background: rgba(194, 96, 62, .08); }
.land-open {
  padding: 9px 16px; border-radius: 9px; text-decoration: none;
  background: var(--ink); color: #f7f2e7; font-weight: 700; font-size: 14.5px;
  transition: background .15s ease-out;
}
/* .land a{color:inherit}(0-1-1)가 .land-open{color:#f7f2e7}(0-1-0)보다 강해 잉크색이 되는 것을 차단 */
.land a.land-open { color: #f7f2e7; }
.land-open:hover { background: #221f19; }
@media (max-width: 767px) { .land-nav { display: none; } .land-brand { margin-right: auto; } }

/* ---------------- 히어로 ---------------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center;
  max-width: 1120px; margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(16px, 4vw, 40px) clamp(36px, 5vw, 64px);
}
.hero-copy h1 { font-size: clamp(29px, 4.4vw, 46px); letter-spacing: -.01em; }
.hero-copy h1 strong { color: var(--coral-deep); }
.hero-sub { margin-top: 18px; color: var(--sub); max-width: 34em; font-size: 17px; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.btn-hero {
  display: inline-block; padding: 14px 28px; border-radius: 10px; text-decoration: none;
  background: var(--coral-deep); color: #fffdf7; font-weight: 800; font-size: 17px;
  box-shadow: 2px 4px 0 rgba(90, 45, 25, .25);
  transition: background .15s ease-out, transform .15s ease-out;
}
.land a.btn-hero { color: #fffdf7; } /* .land a{color:inherit}보다 우선 — CTA 대비 확보 */
.btn-hero:hover { background: #8d3722; transform: translateY(-1px); }
.btn-hero-light { background: #fffdf7; box-shadow: 2px 4px 0 rgba(60, 40, 20, .28); }
.land a.btn-hero-light { color: var(--ink); }
.btn-hero-light:hover { background: #fff; }
.link-quiet { color: var(--sub); font-weight: 600; font-size: 15px; }
.link-quiet:hover { color: var(--coral-deep); }
.hero-note { margin-top: 16px; color: var(--sub); font-size: 13.5px; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.02fr .98fr; gap: 56px; }
}

/* 목업: 장부 타임라인 — 첫 화면에서 살짝 떠오르는 한 번의 모션 */
.hero-visual { position: relative; padding: 8px 0 0; }
.mock-timeline { display: grid; gap: 16px; max-width: 440px; }
.mock-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px;
  padding: 13px 15px; box-shadow: 1px 3px 0 rgba(90, 75, 45, .1);
  position: relative;
  animation: mock-rise .55s cubic-bezier(.16, 1, .3, 1) backwards;
}
.mock-card:nth-child(2) { animation-delay: .08s; }
.mock-card:nth-child(3) { animation-delay: .16s; }
@keyframes mock-rise { from { opacity: 0; transform: translateY(16px); } }
.mock-day {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px;
  font-family: 'Gowun Batang', serif; font-weight: 700; font-size: 12.5px; color: var(--ink-soft);
}
.mock-day .lead { flex: 1; border-bottom: 1px dotted #cfc2a4; transform: translateY(-3px); }
.mock-card p { font-size: 14.5px; margin-top: 6px; }
.mock-sub { color: var(--sub); font-size: 12.5px !important; }
.chip {
  display: inline-block; padding: 2px 9px; font-size: 11.5px; font-weight: 800;
  border: 1.5px solid currentColor; border-radius: 6px; background: var(--paper);
  transform: rotate(-1.5deg);
}
.chip-visit { color: var(--sage); }
.chip-checkup { color: var(--blue); }
.chip-diary { color: var(--coral-deep); }
.mock-mood { font-style: normal; }

/* ---------------- 공통 섹션 ---------------- */
.sec { max-width: 1120px; margin: 0 auto; padding: clamp(44px, 6vw, 76px) clamp(16px, 4vw, 40px) 0; }
.sec:last-of-type { padding-bottom: clamp(48px, 6vw, 80px); }
.sec h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.01em; }
.sec-sub { margin-top: 14px; color: var(--sub); max-width: 36em; }
.sec-tint { max-width: none; background: var(--paper); border-top: 2px dashed var(--line-dash); border-bottom: 2px dashed var(--line-dash); padding-bottom: clamp(44px, 6vw, 76px); }
.sec-tint > .briefing-grid { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
@media (max-width: 767px) { .sec-tint > .briefing-grid { padding-top: 0; } }

/* 기록 유형 행 — 정의행 */
.rec-rows { margin-top: 30px; display: grid; gap: 0; border-top: 2px dashed var(--line-dash); }
.rec-row {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 22px 4px; border-bottom: 1px dotted #d5c9a9;
}
.rec-row h3 { font-size: 19px; }
.rec-row p { margin-top: 6px; color: var(--sub); max-width: 42em; }
.rec-ic {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed currentColor; background: var(--paper);
}
.rec-ic svg { width: 23px; height: 23px; }
.ic-visit { color: var(--sage); background: var(--sage-soft); }
.ic-checkup { color: var(--blue); background: var(--blue-soft); }
.ic-diary { color: var(--coral); background: var(--coral-soft); }
@media (min-width: 768px) {
  .rec-row { grid-template-columns: 52px 200px 1fr; align-items: center; gap: 22px; }
  .rec-row p { margin-top: 0; }
}

/* 브리핑 섹션 — 2단 + 큰 목업 */
.briefing-grid { display: grid; gap: 44px; align-items: center; padding-top: clamp(44px, 6vw, 76px); }
.briefing-grid h2 { font-size: clamp(24px, 3vw, 34px); }
.briefing-grid .sec-sub { max-width: 30em; }
.tick-list { margin: 20px 0 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 9px; }
.tick-list li { padding-left: 26px; position: relative; color: var(--ink-soft); font-weight: 500; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sage);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5 12 5 5 9-10" stroke="black" stroke-width="3.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 13px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5 12 5 5 9-10" stroke="black" stroke-width="3.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 13px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.briefing-visual {
  position: relative; border-radius: 18px;
  background:
    radial-gradient(120% 100% at 20% 0%, #f0e7d2 0%, #e6d9ba 100%);
  border: 2px dashed var(--line-dash);
  display: grid; place-items: center; padding: clamp(28px, 4vw, 48px) 24px;
}
.bv-paper {
  position: relative; width: min(360px, 100%); background: var(--paper); border-radius: 6px;
  padding: 20px 22px 22px; transform: rotate(-1.2deg);
  box-shadow: 0 24px 44px -20px rgba(60, 45, 20, .4);
  border: 1px solid #e7dcc3;
}
.mb-title {
  font-family: 'Gowun Batang', serif; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; gap: 8px;
}
.mb-title span { font-weight: 600; color: var(--sub); font-size: 11.5px; font-family: 'Pretendard Variable', Pretendard, sans-serif; }
.mb-h {
  margin-top: 11px; padding-bottom: 4px; border-bottom: 2px dashed var(--line-dash);
  font-family: 'Gowun Batang', serif; font-weight: 700; font-size: 12.5px; color: var(--coral-deep);
}
.mb-p { font-size: 12.5px; margin-top: 5px; color: var(--ink-soft); }
.bv-paper table { border-collapse: collapse; width: 100%; margin-top: 5px; font-size: 12px; }
.bv-paper th, .bv-paper td { border: 1px solid #e7dcc3; padding: 4px 7px; text-align: left; }
.bv-paper th { background: var(--sage-soft); color: #33574a; }
.bv-print {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  background: var(--ink); color: #f7f2e7; font-weight: 800; font-size: 14px;
  padding: 10px 18px; border-radius: 9px;
  box-shadow: 2px 3px 0 rgba(60, 45, 20, .3);
}
.bv-print svg { width: 17px; height: 17px; }
@media (min-width: 1024px) { .briefing-grid { grid-template-columns: 1fr 1fr; } }

/* 사진 + 상호작용 2단 */
.duo { display: grid; gap: 30px; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; gap: 44px; } }
.duo-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.duo-item h3 { font-size: 19px; }
.duo-item p { margin-top: 6px; color: var(--sub); }

/* 사용법 — 실제 순서라 단계 번호 사용 */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; border-top: 2px dashed var(--line-dash); }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 22px 4px; border-bottom: 1px dotted #d5c9a9;
}
.step-n {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: var(--paper); color: var(--coral-deep); font-family: 'Gowun Batang', serif;
  font-weight: 700; font-size: 16px; border: 1.5px dashed #dba387;
  transform: rotate(-2deg);
}
.steps h3 { font-size: 18px; }
.steps p { margin-top: 5px; color: var(--sub); max-width: 40em; }

/* FAQ */
.faq-list { margin-top: 26px; border-top: 2px dashed var(--line-dash); }
.faq-list details { border-bottom: 1px dotted #d5c9a9; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 4px; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 22px; font-weight: 600; color: var(--coral-deep); line-height: 1;
  transition: transform .18s ease-out;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 4px 18px; color: var(--sub); max-width: 44em; }

/* CTA 띠 — 잉크 판 */
.cta-band {
  max-width: 1120px; margin: clamp(48px, 7vw, 84px) auto 0;
  border-radius: 18px; background: linear-gradient(140deg, #332e25 0%, #211d16 100%);
  color: #f7f2e7; text-align: center; padding: clamp(40px, 6vw, 64px) 24px;
  box-shadow: 0 24px 44px -24px rgba(40, 30, 12, .55);
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.01em; }
.cta-band .btn-hero { margin-top: 24px; box-shadow: 2px 4px 0 rgba(0, 0, 0, .35); }

/* 푸터 */
.land-foot {
  max-width: 1120px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 40px) 40px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  color: var(--sub); font-size: 13.5px;
}
.land-foot a { color: var(--coral-deep); font-weight: 700; }
.foot-quiet { color: #66604c; } /* 4.5:1 대비 확보 */
