/* 스탬포 정적 페이지 공용 스타일 — about.html + guides/*.html
 *
 * 원본은 Claude Design 보드 "스탬포 소개"·"스탬포 기록 가이드"(2026-08-11 이식).
 * 시안은 모든 값을 인라인 style 로 들고 있는데, 그대로 옮기면 같은 규칙이
 * 8개 페이지에 복제된다. 여기로 모아 클래스로 부른다 — 위치값처럼 진짜
 * 한 번만 쓰는 것만 HTML 에 인라인으로 남겼다.
 *
 * ⚠️ 이 파일은 앱(lib/theme/app_theme.dart)과 **별개**다. 값이 같아 보여도
 * 자동으로 따라가지 않으니, 룩을 바꾸면 양쪽을 같이 고칠 것.
 *
 * 폰트는 tools/build_web_fonts.py, 아이콘 스프라이트는
 * tools/build_web_icons.py 가 만든다(둘 다 CI 가 --check 로 강제).
 */

/* ── 폰트 ───────────────────────────────────────────────── */
/* SCDream 한 벌. 제목은 서체가 아니라 굵기로 가른다(300 본문 / 400 제목 /
   500 워드마크·소제목). 없는 굵기를 쓰면 브라우저가 조용히 합성한다.
   ⚠️ 여기 300/400/500 은 CSS 굵기일 뿐, 파일 안에 든 컷은 한 단계 위다
   (Regular / Medium / Bold). 이유는 tools/build_web_fonts.py 의 FACES 주석. */
@font-face {
  font-family: "SCDream";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/scdream-300.woff2") format("woff2");
}
@font-face {
  font-family: "SCDream";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/scdream-400.woff2") format("woff2");
}
@font-face {
  font-family: "SCDream";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/scdream-500.woff2") format("woff2");
}
/* 숫자·라틴 라벨 전용(NEARBY, ANDROID). 앱의 AppTheme.figure 와 같은 역할. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-700.woff2") format("woff2");
}

/* ── 토큰 ───────────────────────────────────────────────── */
:root {
  /* 글자 농도 4단. 시안은 0.78/0.68/0.60/0.50/0.45 다섯 단이었는데, 아래
   * 두 단이 이 종이 위에서 WCAG AA(4.5:1)에 **미달**한다 — 0.50 은 3.4:1,
   * 0.45 는 2.9:1 이라 작은 글자가 흐려 보인다. 가장 어두운 종이(#FBF1E1)
   * 기준으로 0.61 이 AA 하한이라, 그 아래 두 단을 하나로 합치고 전체를
   * 한 단씩 올렸다. 이름을 알파값(--ink-60)이 아니라 역할로 부르는 이유도
   * 그것이다 — 숫자를 이름에 박으면 값을 조정할 때마다 이름이 거짓말을 한다.
   *
   * strong 8.5:1 · mid 6.4:1 · body 5.5:1 · soft 4.7:1 (최악 바탕 기준) */
  --ink: #1a1512;
  --ink-strong: rgba(26, 21, 18, 0.78);
  --ink-mid: rgba(26, 21, 18, 0.7);
  --ink-body: rgba(26, 21, 18, 0.66);
  --ink-soft: rgba(26, 21, 18, 0.61);
  --line: rgba(26, 21, 18, 0.09);
  --line-strong: rgba(26, 21, 18, 0.11);
  --ring: inset 0 0 0 1px rgba(26, 21, 18, 0.12);
  --ring-soft: inset 0 0 0 1px rgba(26, 21, 18, 0.1);

  --acc: #4e9a84; /* 강조 단색 — 작은 자리 담당 */
  --acc-deep: #2f6455;
  --acc-deeper: #1c4438;
  --deep: #22333a; /* 잉크 카드 */

  --paper: linear-gradient(178deg, #fffcf6 0%, #fdf5e9 38%, #fbf1e1 100%);
  --card: #fffdf9;
  --soft: #fdf7ee;
  --cta: linear-gradient(145deg, #70e1f5 0%, #ffd194 58%, #ffd194 100%);

  /* 평가색 — 좋음/보통/별로 */
  --good: #4e9a84;
  --soso: #fac57e;
  --bad: #82828f;

  --gut: clamp(20px, 10.5vw, 152px); /* 좌우 여백 */
  --sec: clamp(52px, 7vw, 80px); /* 섹션 상하 여백 */
}

/* ── 바탕 ───────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fbf4e8;
  color: var(--ink);
  font-family: "SCDream", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  text-wrap: pretty;
}
a {
  color: var(--acc-deep);
  text-decoration: none;
}
a:hover {
  color: var(--acc-deeper);
}
::selection {
  background: #cfeff6;
  color: var(--ink);
}
img {
  max-width: 100%;
}
h1,
h2,
h3 {
  font-weight: 400;
  margin: 0;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--acc-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 스크린리더 전용 — 시각적으로 숨기되 읽히게 */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── 아이콘 ─────────────────────────────────────────────── */
/* 크기는 font-size 로 준다(시안이 아이콘 폰트를 쓰던 방식 그대로). */
.ic {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* ── 뼈대 ───────────────────────────────────────────────── */
.wrap {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}
.sec {
  position: relative;
  padding: var(--sec) var(--gut);
  border-top: 1px solid var(--line);
}
.sec--plain {
  border-top: 0;
}
.lede {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-body);
}

/* ── 머리말 ─────────────────────────────────────────────── */
.hdr {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gut);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  white-space: nowrap;
}
.brand b {
  font-size: 17px;
  letter-spacing: 0.14em;
  font-weight: 400;
}
.brand b i {
  font-style: normal;
  font-weight: 500;
}
/* 타이틀 로고의 마크 — **앱 아이콘 파일을 그대로 쓴다**(2026-08-13).
   그전엔 `phf-paw-print` 글리프를 단색 --acc(#4E9A84)로 찍었는데, 아쿠아 골드
   전환 뒤 앱 아이콘·파비콘·피처 그래픽이 전부 **그라디언트 타일에 흰 발자국**
   이 되면서 웹 헤더만 옛 초록 발자국으로 남아 있었다.
   ⚠️ CSS로 타일을 다시 그리지 말 것 — 발자국이 이미 다섯 군데에 있고
   (CLAUDE.md "같은 발자국을 쓰는 곳이 다섯이다") 여섯 번째 사본을 만들면
   아이콘을 바꿀 때 여기만 남는다. 아이콘 PNG를 참조하면 자동으로 따라온다.
   모서리는 원본이 풀블리드 정사각이라(스토어가 마스킹한다) 여기서 굴린다. */
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: block;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  color: var(--ink-mid);
}
.nav a {
  color: inherit;
}

/* 모바일 메뉴 — <details> 라 자바스크립트가 필요 없다. */
.mnav {
  display: none;
}
.mnav > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: #fff;
  box-shadow: var(--ring), 0 6px 16px rgba(122, 84, 16, 0.1);
  cursor: pointer;
  list-style: none;
  font-size: 20px;
}
.mnav > summary::-webkit-details-marker {
  display: none;
}
.mnav-panel {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  z-index: 30;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--ring-soft), 0 14px 30px rgba(122, 84, 16, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mnav-panel a {
  padding: 13px 12px;
  font-size: 16px;
  color: var(--ink-strong);
}
.mnav-panel .btn {
  margin-top: 6px;
  justify-content: center;
}

/* ── 버튼 ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 100px;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn--acc {
  background: var(--acc);
  color: #fff;
  box-shadow: inset 0 4px 4px rgba(255, 255, 255, 0.26),
    0 0 18px rgba(78, 154, 132, 0.34);
}
.btn--acc:hover {
  color: #fff;
}
.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--ring);
}
.btn--light:hover {
  color: var(--ink);
}
.btn--dark {
  background: var(--deep);
  color: #fff;
}
.btn--dark:hover {
  color: #fff;
}
.btn--big {
  height: 50px;
  padding: 0 24px;
}
.btn--plain {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(60, 44, 16, 0.16);
}
.btn--plain:hover {
  color: var(--ink);
}

/* 머리말의 "웹에서 시작하기" — 오른쪽에 동그란 화살표가 붙는다 */
.btn-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 8px 0 20px;
  border-radius: 100px;
  background: #fff;
  box-shadow: var(--ring), 0 6px 16px rgba(122, 84, 16, 0.1);
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.btn-top:hover {
  color: var(--ink);
}
.btn-top span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f6eee2;
  font-size: 15px;
}

/* ── 히어로(공통) ───────────────────────────────────────── */
.h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.hero-btns {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── 아픈 곳 목록 ───────────────────────────────────────── */
.pains {
  display: flex;
  flex-direction: column;
}
.pain {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(10px, 3vw, 48px);
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}
.pain b {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.5;
  font-weight: 300;
}
.pain span {
  font-size: 15px;
  line-height: 25px;
  color: var(--ink-body);
}

/* ── 격자 ───────────────────────────────────────────────── */
.grid2,
.grid3,
.grid4 {
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
}
.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 윗줄 있는 항목(핵심 기능 4칸 / 이렇게 기록해요 6칸) */
.topline {
  padding: 22px 0 0;
  border-top: 1px solid rgba(26, 21, 18, 0.14);
}
.topline h3 {
  margin-top: 16px;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.02em;
}
.topline p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 23px;
  color: var(--ink-body);
}

/* 플랫폼 배지 — ANDROID / ANDROID · iOS */
.badge {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 100px;
  background: #eaf4ef;
  color: var(--acc-deep);
}
.badge--aqua {
  background: #e3f6fb;
  color: #1b6e7c;
}
.titlerow {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.titlerow span:first-child {
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.02em;
}

/* ── 카드 ───────────────────────────────────────────────── */
.card {
  padding: clamp(20px, 2.4vw, 26px);
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, 0.08),
    0 18px 40px rgba(84, 60, 16, 0.14);
}
.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf4ef;
  font-size: 21px;
  color: var(--acc-deep);
}
.card-ico--aqua {
  background: #e3f6fb;
  color: #1b6e7c;
}
.card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 23px;
  color: var(--ink-body);
}

/* ── FAQ — <details> 라 자바스크립트가 없다 ─────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 640px);
  justify-content: space-between;
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
}
.faq {
  border-radius: 12px;
  background: var(--soft);
  box-shadow: var(--ring-soft);
  padding: 22px 24px;
}
.faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  line-height: 26px;
}
.faq > summary::-webkit-details-marker {
  display: none;
}
.faq > summary .ic {
  font-size: 18px;
  color: var(--ink-soft);
  transition: transform 0.18s ease;
}
.faq[open] > summary .ic {
  transform: rotate(180deg);
}
.faq p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-body);
}

/* ── 마무리 CTA ─────────────────────────────────────────── */
.cta {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px) clamp(44px, 6vw, 80px);
  text-align: center;
  background: var(--cta);
}
.cta-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta h2 {
  font-size: clamp(28px, 4.8vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: #14100e;
}
.cta p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(20, 16, 14, 0.62);
  max-width: 460px;
}
.cta-btns {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cta-under {
  margin-top: 6px;
  font-size: 15px;
  color: #14100e;
  border-bottom: 1px solid rgba(20, 16, 14, 0.28);
  padding-bottom: 3px;
}

/* ── 꼬리말 ─────────────────────────────────────────────── */
.foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 64px) var(--gut) 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}
.foot-col b {
  font-size: 16px;
  font-weight: 500;
}
.foot-col a {
  color: var(--ink-body);
}
.foot-social {
  display: flex;
  gap: 10px;
}
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: var(--ring);
  color: var(--ink);
  font-size: 17px;
}
.footbar {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footbar a {
  color: inherit;
}
.footbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
/* 가이드는 꼬리말이 한 줄뿐이라 위 여백이 없다 */
.foot--slim {
  padding: clamp(40px, 5vw, 56px) var(--gut) 40px;
}
.foot--slim .footbar {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ══ 가이드 전용 ═══════════════════════════════════════════ */

/* 주제 탭 — 시안은 자바스크립트 탭이지만 여기서는 **진짜 링크**다.
   편마다 각자 URL 을 갖고 색인되어야 하기 때문(hash 탭이면 나머지가 아예
   크롤러에 안 보인다).

   ⚠️ 2026-08-27: **가로 스크롤에서 줄바꿈으로 바꿨다**(오너 지시).
   편이 7 → 11 로 늘면서 화면 밖으로 742px 이 넘쳐 나갔는데, 스크롤바를
   숨겨 둔 탓에 **거기 더 있다는 것조차 안 보였다.** 줄바꿈이면 전부 한눈에
   들어오고, 편이 더 늘어도 그대로 버틴다. */
.tabs-wrap {
  position: relative;
  padding: 0 var(--gut) 10px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 100px;
  white-space: nowrap;
  font-size: 14px;
  background: var(--card);
  color: var(--ink-mid);
  box-shadow: var(--ring);
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-current="page"] {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 38, 44, 0.18);
}

/* 가이드 히어로 — 왼쪽 글, 오른쪽 사진 + 겹쳐 올라온 기록 카드 */
.g-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.g-hero h1 {
  white-space: pre-line;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.g-hero > div:first-child p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-body);
  max-width: 520px;
}
.g-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}
.shot {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background-color: #f4efe4;
  box-shadow: var(--ring-soft), 0 26px 60px rgba(122, 84, 16, 0.18);
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 사진이 아직 없는 주제(병원)의 자리 — 시안의 면 온도를 그대로 쓴다 */
.shot--none {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(158deg, #e8f4f8 0%, #fef6ea 54%, #fbedd9 100%);
  color: rgba(26, 21, 18, 0.28);
  font-size: 84px;
}
.rec {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: min(360px, 100%);
  margin: -72px 0 0;
  padding: 18px 20px 20px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, 0.08),
    0 20px 44px rgba(84, 60, 16, 0.2);
}
.rec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rec-head b {
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
}
.rec-head span {
  font-size: 12px;
  color: var(--ink-soft);
}
.rec-step {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(26, 21, 18, 0.1);
}
.rec-step:first-of-type {
  margin-top: 12px;
}
.rec-step > .ic {
  font-size: 15px;
  margin-top: 3px;
}
.rec-step span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rec-d {
  font-size: 12px;
  color: var(--ink-soft);
}
.rec-m {
  font-size: 14px;
  line-height: 21px;
}
.rec-s {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-body);
}

/* 이렇게 기록해요 — 6칸. 3 → 2(1180) → 1(640) 로 접힌다.
   .grid3 와 접히는 지점이 달라 따로 둔다. */
.g-hows {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.g-hows .topline h3 {
  font-size: 19px;
}

/* 이렇게도 써요 — 관련 가이드 카드 */
.rel {
  display: block;
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--ring-soft);
  color: var(--ink);
}
.rel:hover {
  color: var(--ink);
  box-shadow: var(--ring-soft), 0 12px 28px rgba(84, 60, 16, 0.12);
}
.rel b {
  display: block;
  margin-top: 14px;
  font-size: 19px;
  line-height: 26px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.rel p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 23px;
  color: var(--ink-body);
}
.rel em {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-style: normal;
  color: var(--acc-deep);
}

/* ══ 소개 전용 ═════════════════════════════════════════════ */

.a-hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 52px);
  align-items: start;
}
.a-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}
/* 지도 위 발자국 — 타일 6장을 격자로 깔고 그 위에 핀을 얹는다.
 *
 * ⚠️ 기본은 `overflow: hidden` 이다. 넓은 화면에서만(min-width:1360px) 풀어서
 * 추천 카드가 아래로 걸치게 한다. 좁은 구간에서 풀면 **추천 카드가 지도보다
 * 키가 커져**(1185px 실측: 카드 262px vs 지도 252px) 위아래로 삐져나온다.
 * 그때 잘라내던 것이 이 hidden 이었다. 타일·워시에 각자 반경을 준 것은
 * 풀렸을 때도 모서리가 남게 하기 위한 것이다. */
.map {
  position: relative;
  width: 100%;
  max-width: 572px;
  aspect-ratio: 572 / 364;
  min-height: 252px;
  margin-top: clamp(0px, 3vw, 52px);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(158deg, #f1fafc 0%, #fef6ea 54%, #fbedd9 100%);
  box-shadow: var(--ring-soft), 0 26px 60px rgba(122, 84, 16, 0.18);
}
.map-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  border-radius: 14px;
  overflow: hidden;
}
.map-tiles img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-wash {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    158deg,
    rgba(207, 239, 246, 0.42) 0%,
    rgba(255, 246, 234, 0.3) 54%,
    rgba(251, 237, 217, 0.46) 100%
  );
}
.map-credit {
  position: absolute;
  left: 9px;
  bottom: 7px;
  font-size: 9px;
  color: var(--ink-soft);
}
.map-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(84, 60, 16, 0.22);
  font-size: 17px;
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 12px rgba(84, 60, 16, 0.14);
  font-size: 13px;
}
.chip--sm {
  height: 28px;
  padding: 0 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(84, 60, 16, 0.16);
  font-size: 12px;
  color: var(--ink-body);
}
/* 추천 카드. 기본은 시안대로 지도 안이고, 넓은 화면에서만 아래로 걸친다
   (아래 min-width:1360px). */
.map-rec {
  position: absolute;
  right: 3.5%;
  bottom: 5.5%;
  width: min(238px, 42%);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px rgba(84, 60, 16, 0.2);
}
.map-rec img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}
.map-rec div {
  padding: 11px 13px 13px;
}
.map-rec b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
}
.map-rec .meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}
.map-rec .note {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-body);
}

/* 근처 알림 카드(잉크 면) */
.nearby {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: min(322px, 100%);
  margin: 18px 0 0;
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: var(--deep);
  box-shadow: 0 26px 54px rgba(24, 38, 44, 0.3);
}
.nearby-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.nearby-tag span:first-child {
  display: inline-flex;
  gap: 4px;
  font-size: 15px;
}
.nearby-tag b {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}
.nearby-t {
  font-size: 17px;
  line-height: 26px;
  color: #fff;
  font-weight: 400;
}
.nearby-s {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.66);
}
.nearby-a {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #fff;
}

/* 핵심 기능 — 아쿠아 골드 판 */
.panel {
  margin-top: 40px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 44px);
  background: linear-gradient(150deg, #cfeff6 0%, #ffe7c2 52%, #ffd194 100%);
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, 0.08);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
}
.panel-top {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
}
.flow {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(84, 60, 16, 0.14);
}
.flow-card--row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.flow-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf4ef;
  flex-shrink: 0;
  font-size: 19px;
  color: var(--acc-deep);
}
.flow-card b {
  display: block;
  font-size: 15px;
  line-height: 21px;
  font-weight: 300;
}
.flow-card .sub {
  font-size: 12px;
  color: var(--ink-soft);
}
.stamps {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-radius: 100px;
  background: #fff;
  box-shadow: var(--ring);
  font-size: 13px;
}
.stamp--on {
  background: var(--acc);
  color: #fff;
  box-shadow: none;
}
.tilts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.tilt {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 34px rgba(84, 60, 16, 0.2);
}
.tilt img {
  display: block;
  width: 100%;
  height: 106px;
  object-fit: cover;
}
.tilt div {
  padding: 11px 13px 13px;
}
.tilt b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
}
.tilt .note {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(26, 21, 18, 0.65);
}
.tilt:nth-child(1) {
  transform: rotate(-2.5deg);
}
.tilt:nth-child(2) {
  transform: rotate(1.8deg);
}
.tilt:nth-child(3) {
  transform: rotate(-1.2deg);
}

/* 활용 예시 카드 */
.uc {
  position: relative;
  height: 320px;
  overflow: hidden;
  color: inherit;
  display: block;
  background: linear-gradient(160deg, #fff1dc 0%, #ffddaf 100%);
}
.uc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uc-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(
    180deg,
    rgba(31, 34, 47, 0) 0%,
    rgba(31, 34, 47, 0.88) 78%
  );
}
.uc-txt {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uc-txt b {
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 400;
}
.uc-txt .m {
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.72);
}
.uc-txt .n {
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.9);
}
.uc--all {
  background: var(--deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  text-align: center;
}
.uc--all b {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 400;
}
.uc--all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
}

/* 비교 표 */
.cmp-head {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.cmp {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding: clamp(20px, 2.2vw, 24px) 0;
  border-top: 1px solid var(--line-strong);
}
.cmp b {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.cmp b span {
  font-size: 14px;
  color: var(--ink-soft);
}
.cmp .miss {
  font-size: 14px;
  line-height: 23px;
  color: var(--ink-body);
}
.cmp .ours {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 23px;
}
.cmp .ours .ic {
  font-size: 18px;
  color: var(--acc);
  margin-top: 2px;
}

/* ── 반응형 ─────────────────────────────────────────────── */
/* 넓은 화면에서만 근처 알림 카드가 지도 위로 겹쳐 올라간다. 좁아지면
   겹칠 자리가 없어 그냥 아래로 흐른다(시안의 min-width 규칙). */
@media (min-width: 1181px) {
  .nearby {
    margin: -58px 0 0;
  }
}
/* 히어로 비대칭 — 근처 알림 카드는 지도 **왼쪽 밖으로**, 추천 카드는 지도
 * **아래로** 빼서 대각으로 어긋나게 한다. 시안은 둘 다 지도 사각형 안에
 * 얌전히 들어 있어 히어로 전체가 한 덩어리 직사각형으로 읽혔다.
 *
 * ⚠️ **1360px 부터만** 건다. 그 아래에서는 오른쪽 시각 칼럼이 확 좁아져
 * (1185px 에서 실측 294px) 근처 카드가 칼럼 폭을 다 쓴다 — 추천 카드를
 * 아래로 내리는 순간 무조건 겹치고, 왼쪽으로 빼면 히어로 문단까지 침범한다.
 * 좁은 구간은 시안대로 반듯하게 두는 편이 낫다. */
@media (min-width: 1360px) {
  .nearby {
    margin-left: calc(-1 * clamp(48px, 6.2vw, 92px));
  }
  .map {
    overflow: visible;
  }
  .map-rec {
    bottom: -11%;
  }
}

@media (max-width: 1180px) {
  .nav {
    gap: 22px;
  }
  .grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .a-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  }
  .panel-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .tilts {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .map-rec {
    width: min(238px, 48%);
  }
  .map-rec img {
    height: 56px;
  }
  .map-rec div {
    padding: 9px 11px 11px;
  }
  .map-rec b {
    font-size: 12px;
    line-height: 17px;
  }
  .chip--sm {
    display: none;
  }
  .g-hows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .nav,
  .btn-top {
    display: none;
  }
  .mnav {
    display: block;
  }
  .faq-grid,
  .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .a-hero,
  .g-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .a-visual,
  .g-visual {
    align-items: stretch;
  }
  .tilts {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .tilt {
    transform: none;
  }
  .cmp-head {
    display: none;
  }
  .cmp {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rec {
    margin: -48px 0 0;
    width: min(360px, 100%);
  }
}
@media (max-width: 700px) {
  .tabs-wrap {
    overflow-x: visible;
  }
  .tabs {
    flex-wrap: wrap;
    min-width: 0;
  }
  .brand b {
    letter-spacing: 0.08em;
    font-size: 15px;
  }
  /* 워드마크가 15px로 줄면 26px 타일이 글자보다 커 보인다. */
  .brand-mark {
    width: 23px;
    height: 23px;
    border-radius: 7px;
  }
}
@media (max-width: 640px) {
  .grid3,
  .grid4,
  .pain,
  .g-hows {
    grid-template-columns: minmax(0, 1fr);
  }
  .pain {
    gap: 8px;
  }
  .hero-btns,
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
  }
  .hero-btns > a,
  .cta-btns > a {
    justify-content: center;
  }
  .footbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .map-rec {
    width: 58%;
  }
}

/* ══ 인터랙션 ══════════════════════════════════════════════ */
/* 시안은 정지 화면이라 hover/active 가 한 상태도 없었다. 눌리는 것처럼
 * 보이는 최소한만 붙인다 — 이 페이지의 일은 읽히는 것이지 움직이는 게
 * 아니라서, 스스로 도는 애니메이션은 하나도 넣지 않았다.
 *
 * 규칙 셋:
 *  · transform 과 opacity 만 움직인다(레이아웃 리플로우 없음).
 *  · 누르는 순간엔 살짝 가라앉는다 — 손가락에 닿는 느낌.
 *  · prefers-reduced-motion 이면 전부 즉시 전환된다(맨 아래).
 */

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 모바일에서 파란 탭 하이라이트 대신 우리 상태를 보여준다 */
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

/* ── 버튼: 떠올랐다 눌린다 ──────────────────────────────── */
.btn,
.btn-top {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.btn:hover,
.btn-top:hover {
  transform: translateY(-2px);
}
.btn:active,
.btn-top:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.06s;
}
.btn--acc:hover {
  box-shadow: inset 0 4px 4px rgba(255, 255, 255, 0.26),
    0 6px 22px rgba(78, 154, 132, 0.46);
}
.btn--light:hover,
.btn-top:hover {
  box-shadow: var(--ring), 0 10px 22px rgba(122, 84, 16, 0.16);
}
.btn--dark:hover {
  box-shadow: 0 10px 24px rgba(24, 38, 44, 0.32);
}
.btn--plain:hover {
  box-shadow: 0 14px 30px rgba(60, 44, 16, 0.22);
}
/* 머리말 버튼의 동그란 화살표가 살짝 앞으로 */
.btn-top span .ic {
  transition: transform 0.18s var(--ease);
}
.btn-top:hover span .ic {
  transform: translateX(2px);
}

/* ── 텍스트 링크: 밑줄이 자라난다 ───────────────────────── */
/* text-decoration 대신 배경 그라디언트를 늘린다 — 두께와 위치를 정할 수
   있고 transform 처럼 값싸게 움직인다. */
/* ⚠️ `:not(.btn)` 이 필요하다 — 모바일 메뉴의 "웹에서 시작하기"는 `.btn`
   이면서 `.mnav-panel a` 라, 빼지 않으면 이 규칙이 뒤에 와서 버튼의
   transform 전환을 덮어쓰고 알약 위에 밑줄까지 그린다. */
.nav a,
.foot-col a,
.footbar a,
.mnav-panel a:not(.btn),
.doc a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.24s var(--ease), color 0.18s var(--ease);
}
.nav a:hover,
.foot-col a:hover,
.footbar a:hover,
.mnav-panel a:not(.btn):hover,
.doc a:hover {
  background-size: 100% 1px;
  color: var(--ink);
}
.doc a {
  background-size: 100% 1px; /* 본문 링크는 기본이 밑줄, hover 에서 색만 */
}
.doc a:hover {
  color: var(--acc-deeper);
}

/* ── 주제 탭 ────────────────────────────────────────────── */
.tab {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--ring), 0 6px 14px rgba(122, 84, 16, 0.14);
}
.tab:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.06s;
}
.tab[aria-current="page"]:hover {
  box-shadow: 0 10px 22px rgba(24, 38, 44, 0.26);
}

/* ── 활용 예시 카드: 사진이 다가온다 ────────────────────── */
.uc img {
  transition: transform 0.5s var(--ease);
}
.uc-veil {
  transition: opacity 0.3s var(--ease);
}
.uc-txt {
  transition: transform 0.3s var(--ease);
}
a.uc:hover img {
  transform: scale(1.05);
}
a.uc:hover .uc-veil {
  opacity: 0.86;
}
a.uc:hover .uc-txt {
  transform: translateY(-3px);
}
a.uc:active img {
  transform: scale(1.02);
  transition-duration: 0.1s;
}
.uc--all a {
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.uc--all a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ── 관련 가이드 카드 ───────────────────────────────────── */
.rel {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rel:hover {
  transform: translateY(-3px);
}
.rel:active {
  transform: translateY(-1px);
  transition-duration: 0.08s;
}
.rel em .ic {
  transition: transform 0.2s var(--ease);
}
.rel:hover em .ic {
  transform: translateX(4px);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq:hover {
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, 0.18);
}
.faq > summary {
  transition: color 0.18s var(--ease);
}
.faq > summary:hover {
  color: var(--acc-deeper);
}
.faq > summary:active .ic {
  transform: scale(0.9);
}
/* 답이 접혔다 펴지는 동안 살짝 흘러나온다 */
.faq[open] > p {
  animation: faq-in 0.24s var(--ease);
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ── 모바일 메뉴 ────────────────────────────────────────── */
.mnav > summary {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.mnav > summary:active {
  transform: scale(0.94);
}
.mnav[open] > summary {
  box-shadow: var(--ring), 0 8px 20px rgba(122, 84, 16, 0.18);
}
.mnav[open] .mnav-panel {
  animation: menu-in 0.22s var(--ease);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ── 꼬리말 동그란 아이콘 ───────────────────────────────── */
.foot-social a {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    color 0.18s var(--ease);
  background-image: none; /* 위 링크 밑줄 규칙 제외 */
}
.foot-social a:hover {
  transform: translateY(-2px);
  color: var(--acc-deep);
  box-shadow: inset 0 0 0 1px rgba(78, 154, 132, 0.5),
    0 6px 14px rgba(122, 84, 16, 0.14);
}
.foot-social a:active {
  transform: translateY(0) scale(0.94);
}

/* ── 마무리 CTA 밑줄 링크 ───────────────────────────────── */
.cta-under {
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cta-under:hover {
  border-bottom-color: rgba(20, 16, 14, 0.7);
}
.cta-under:active {
  transform: scale(0.98);
}

/* ── 움직임을 원치 않는 사용자 ──────────────────────────── */
/* 상태 변화(색·그림자)는 남기고 **이동만** 없앤다. 눌렀는지 안 눌렀는지는
   여전히 보여야 하므로 transition 을 통째로 끄지는 않는다. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .btn-top:hover,
  .tab:hover,
  .rel:hover,
  .foot-social a:hover,
  .uc--all a:hover,
  a.uc:hover .uc-txt {
    transform: none;
  }
  a.uc:hover img {
    transform: none;
  }
}

/* ══ 문서 페이지 ═══════════════════════════════════════════ */
/* privacy·terms·account-deletion — 긴 글 한 칼럼. 랜딩과 같은 종이·서체를
 * 쓰되 읽기 폭(760px)으로 좁힌다. 시안에 없는 페이지라 값은 랜딩 토큰에서
 * 끌어왔다: 구획선 --line, 강조면 --soft, 표 머리 #EAF4EF(카드 아이콘 틴트).
 *
 * ⚠️ 랜딩과 달리 본문이 길어 행간을 1.8 로 넓혔다. 법적 고지라 훑는 글이
 * 아니라 찾아 읽는 글이다. */
/* ⚠️ 좌우 여백은 랜딩의 --gut(최대 152px)을 쓰지 않는다. box-sizing:border-box
   라 max-width 안에 패딩이 포함돼서, 760px 상자에 152px 여백을 양쪽에 주면
   글이 460px 로 눌린다. 여기서는 글 폭 720px 을 목표로 잡는다. */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 40px) clamp(64px, 8vw, 96px);
  line-height: 1.8;
  overflow-wrap: break-word;
}
.doc-head {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}
.doc-head h1 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.doc .meta {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.doc h2 {
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
.doc p,
.doc li {
  font-size: 15px;
}
.doc p {
  margin: 10px 0;
}
.doc ul,
.doc ol {
  padding-left: 20px;
  margin: 10px 0;
}
.doc li {
  margin: 5px 0;
}
.doc strong {
  font-weight: 500;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 14px;
}
.doc th,
.doc td {
  border: 1px solid var(--line-strong);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
.doc th {
  background: #eaf4ef;
  font-weight: 500;
}
.doc code {
  background: var(--soft);
  box-shadow: var(--ring-soft);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}
.doc .callout {
  background: var(--soft);
  box-shadow: var(--ring-soft);
  border-left: 4px solid var(--acc);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.doc .callout ul {
  margin-bottom: 0;
}
.doc .note {
  color: var(--ink-soft);
  font-size: 14px;
}
/* 표가 좁은 화면에서 페이지를 밀지 않게 — 표만 따로 스크롤한다 */
.doc-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 「처음 쓰는 순서」 3단계 데모 (가이드) ──────────────
 * 검색 유입이 아니라 **들어온 사람을 붙잡는** 자리다(2026-08-27).
 * ⚠️ 그래서 이미지·GIF 를 새로 만들지 않는다 — 무거운 자산 하나가 모바일
 * LCP 를 망치면 그건 확인된 랭킹 요인이라, 전환을 얻으려다 유입을 잃는다.
 * 화면 흉내는 전부 여기 CSS 와 기존 아이콘 스프라이트로 그린다.
 *
 * 움직임은 스크롤 기반(animation-timeline: view())이라 JS 가 0줄이다.
 * 지원 안 하는 브라우저에서는 @supports 밖이라 **처음부터 그냥 보인다** —
 * 안 보이는 채로 남는 실패 모드가 없다. */
.demo {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}
@media (max-width: 800px) {
  .demo {
    grid-template-columns: 1fr;
  }
}
.demo-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--ring), 0 10px 26px rgba(84, 60, 16, 0.08);
}
.demo-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  /* ⚠️ --acc 위 흰 글자는 3.34:1 로 WCAG AA(4.5:1) 미달이다 — 12px 라 더
     그렇다. 한 단 어두운 --acc-deep 이 6.83:1 로 통과한다(2026-08-27 재검토). */
  background: var(--acc-deep);
  color: #fff;
  font-size: 12px;
}
.demo-step h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
}
.demo-step p {
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-body);
}
/* 앱 화면 흉내 — 이미지가 아니라 상자와 글자다 */
.demo-scr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  box-shadow: var(--ring-soft);
}
.demo-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-line b {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
}
.demo-sub {
  font-size: 12px;
  color: var(--ink-soft);
}
/* 메모 한 줄 — 형광펜이 이 문장 안에 깔린다 */
.demo-memo {
  font-size: 13px;
  line-height: 21px;
  color: var(--ink-body);
}
/* 형광펜 — ⚠️ 앱과 **같은 색**(memo_text.dart 의 _highlightLight yellow)이고,
   칩이 아니라 글자에 깔리는 배경이다. 둥근 모서리와 좌우 여백을 키우면
   태그처럼 보여 다른 기능으로 읽힌다. 색을 빼지도, 칩으로 만들지도 말 것. */
.demo-hl {
  padding: 0 2px;
  border-radius: 2px;
  background: #f5d26a;
  color: var(--ink);
}
.demo-q {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--ring-soft);
  font-size: 13px;
  color: var(--ink-mid);
}
@supports (animation-timeline: view()) {
  .demo-step {
    animation: demo-in 1s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 8% cover 26%;
  }
}
@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
/* 전역 reduced-motion 블록이 이미 지속시간을 죽이지만, 스크롤 타임라인은
   지속시간으로 진행하지 않으므로 여기서 한 번 더 끈다. */
@media (prefers-reduced-motion: reduce) {
  .demo-step {
    animation: none;
  }
}
