/* 팜팜 소개 페이지 2판 · 한지 바탕 단일 테마
   색: 한지 #F3EEE5 / 흙 #231C17 / 보조 #6B5F55 / 선 #E2DBD0 / 황토 #C65A2E / 한 겹 짙은 바탕 #EAE3D6
   움직임은 transform·opacity 위주. 움직임 줄이기에서는 모두 끄고 최종 상태로 둔다. */

:root {
  --paper: #F3EEE5;
  --ink: #231C17;
  --mute: #6B5F55;
  --line: #E2DBD0;
  --clay: #C65A2E;
  --clay-ink: #9A3F18;   /* 황토 위에 얹는 작은 글씨용 짙은 색 */
  --clay-tint: #F2D9C8;
  --sheet: #EAE3D6;
  --card: #FBF8F2;
  --gutter: 20px;
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

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

h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 맨 위 줄 ---------- */
.top { padding-block: 18px; }
.top-in { display: flex; align-items: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { height: 20px; width: auto; }

/* ================= 1. 첫 화면 ================= */
.hero {
  display: grid;
  gap: 36px;
  padding-top: 20px;
  padding-bottom: 56px;
}
.headline {
  width: 100%;
  max-width: 560px;
  color: var(--ink);
}
.lede {
  margin-top: 26px;
  max-width: 30em;
  text-wrap: pretty;
  font-size: 18px;
  line-height: 1.75;
}
/* 풍경 무대: 안쪽 크기는 모두 em(무대 폭의 1/46)으로 잡아 폭에 따라 통째로 줄고 는다 */
.stage-wrap {
  container-type: inline-size;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.stage {
  --s: 7.6px;
  --s: calc(100cqw / 46);   /* 무대 단위 1: 폭의 46분의 1 */
  font-size: var(--s);
  position: relative;
  aspect-ratio: 46 / 60;
  border-radius: 3.4em;
  overflow: hidden;
  background: var(--sheet);
  isolation: isolate;
  line-height: 1.45;
}
.land, .links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.land { z-index: 0; }
.land .bands { fill: #BC8B57; opacity: .55; }
.land .ridge {
  fill: none;
  stroke: #8B5A34;
  stroke-opacity: .5;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.phone {
  position: absolute;
  z-index: 1;
  left: calc(var(--s) * 10);
  top: calc(var(--s) * 8);
  width: calc(var(--s) * 26);
}
.phone img {
  width: 100%;
  border: .15em solid var(--ink);
  border-bottom: 0;
  border-radius: 3em 3em 0 0;
  background: #fff;
  box-shadow: 0 1.4em 3em rgba(35, 28, 23, .28);
}

.links { z-index: 2; pointer-events: none; }
.links path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
}

.hcard {
  position: absolute;
  z-index: 3;
  left: calc(var(--s) * var(--x));
  top: calc(var(--s) * var(--y));
  width: calc(var(--s) * var(--w));
  padding: 1.05em 1.2em 1.2em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4em;
  box-shadow: 0 .7em 1.7em rgba(35, 28, 23, .16);
  font-size: max(12px, calc(var(--s) * 1.5));   /* 카드 안 글자: 무대 단위의 1.5배, 아무리 작아도 12px */
  line-height: 1.5;
}
.hc-say   { --x: .8;  --y: 3;    --w: 25; }
.hc-story { --x: 20;  --y: 23;   --w: 25.2; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hc-know  { --x: .8;  --y: 42;   --w: 25.6; }

.hc-tag {
  display: flex;
  align-items: center;
  gap: .4em;
  margin-bottom: .5em;
  font-size: .82em;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--clay-ink);
}
.hc-story .hc-tag { color: #F0B79A; }
.hc-tag svg {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* 파형 */
.bars {
  display: flex;
  align-items: center;
  gap: .22em;
  height: 2.2em;
  margin-bottom: .55em;
}
.bars i {
  flex: 1 1 0;
  min-width: 1px;
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
  transform: scaleY(var(--lo));
  animation: wave var(--t) ease-in-out var(--w) infinite alternate;
}
@keyframes wave { from { transform: scaleY(var(--lo)); } to { transform: scaleY(var(--hi)); } }

/* 타자: 글자 자리를 미리 잡아 두어 줄바꿈이 흔들리지 않게 한다 */
.say { display: grid; font-weight: 700; font-size: .98em; line-height: 1.5; }
.say > .ghost, .say > .typed { grid-area: 1 / 1; }
.say .ghost { visibility: hidden; }
.say .typed::after {
  content: "";
  display: inline-block;
  width: .12em;
  height: 1.05em;
  margin-left: .1em;
  vertical-align: -.17em;
  background: var(--clay);
  opacity: 0;
}

.hc-title { font-weight: 800; font-size: 1em; line-height: 1.4; letter-spacing: -.01em; text-wrap: balance; }
.hc-story .hc-title { font-size: 1.04em; }

.chips { display: flex; flex-wrap: wrap; gap: .45em; margin-top: .85em; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .1em .7em .15em .55em;
  border-radius: 99px;
  background: rgba(243, 238, 229, .14);
  font-size: .8em;
  font-weight: 700;
}
.cdot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--clay); flex: none; }
.cdot.c2 { background: #E6D3B8; }
.cdot.c3 { background: #9C8B7C; }

.proof { margin-top: .75em; }
.proof span {
  display: inline-block;
  padding: .12em .75em .17em;
  border-radius: 99px;
  background: var(--clay-tint);
  color: var(--clay-ink);
  font-size: .82em;
  font-weight: 800;
}
.hc-know { border-color: var(--clay); border-width: .13em; }
.hc-know .hc-title { font-size: .98em; }

/* ================= 섹션 공통 ================= */
.section-title {
  font-size: clamp(27px, 5.6vw, 44px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-title.small { font-size: clamp(22px, 4.6vw, 30px); }
.eyebrow {
  margin-bottom: 14px;
  color: var(--clay-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* ================= 2. 데이터가 노하우가 되기까지 ================= */
.flow { padding-block: 56px 40px; }
.steps { margin-top: 40px; }

/* 휴대폰·JS 없음: 단계가 세로로 쌓인다 */
.step {
  position: relative;
  padding-left: 58px;
  padding-bottom: 56px;
}
.step:last-child { padding-bottom: 0; }
.step-no {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  z-index: 1;
}
.step-no::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0;
}
.step-no b {
  position: relative;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  color: var(--mute);
}
.step.reached .step-no::before { opacity: 1; }
.step.reached .step-no b { color: #fff; }
/* 단계 사이 진행선: 바탕 선 + 황토 채움 */
.step::before, .step::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 46px;
  bottom: 6px;
  width: 2px;
}
.step::before { background: var(--line); }
.step::after {
  background: var(--clay);
  transform: scaleY(var(--f, 0));
  transform-origin: top;
}
.step:last-child::before, .step:last-child::after { display: none; }

.step h3 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.015em;
  padding-top: 4px;
}
.step-body > p { margin-top: 6px; color: var(--mute); font-size: 16px; max-width: 24em; text-wrap: pretty; }

/* 휴대폰·JS 없음: 글 → 앱 조각 → 사용 장면 순으로 쌓는다 */
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step-body { display: contents; }
.step .fcard { order: 1; }
.step .scene { order: 2; }

/* 단계별 작은 카드 */
.fcard {
  margin-top: 24px;
  width: 100%;
  max-width: 380px;
  padding: 22px 22px 24px;
  background: var(--sheet);
  border-radius: 28px;
  font-size: 15px;
  line-height: 1.55;
}
.fc-label {
  margin-bottom: 12px;
  color: var(--clay-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
}
.fcard svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 1 기록 */
.rec-row { display: flex; align-items: center; gap: 14px; }
.mic {
  flex: none;
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
}
.mic svg { width: 24px; height: 24px; }
.mic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--clay);
  opacity: 0;
}
.bars-s { flex: 1; height: 40px; margin: 0; gap: 3px; }
.bubble {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: 18px 18px 18px 5px;
  font-weight: 700;
}
.mini-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mini-chips li {
  padding: 2px 12px 3px;
  border: 1px solid #D5CBBB;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
}

/* 2 이야기 */
.day-head {
  padding: 16px 18px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
}
.day-date { font-size: 13px; color: #CFC5B8; }
.day-title { margin-top: 4px; font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: -.01em; }
.pieces { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.pieces li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 10px 12px;
  background: var(--card);
  border-radius: 14px;
  min-width: 0;
}
.pieces svg { width: 20px; height: 20px; color: var(--mute); margin-bottom: 2px; }
.pieces span { font-size: 12px; color: var(--mute); }
.pieces b { font-size: 14px; line-height: 1.35; font-weight: 800; }
.log-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 800;
}
.log-row span { color: var(--mute); font-weight: 600; }

/* 3 결과 */
.ask {
  display: inline-block;
  padding: 10px 16px;
  background: var(--card);
  border-radius: 18px 18px 18px 5px;
  font-weight: 800;
  font-size: 17px;
}
.answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.answers li {
  padding: 5px 14px 6px;
  border: 1.5px solid #CFC4B3;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mute);
  background: transparent;
}
.answers li.pick { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.result {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  font-weight: 800;
  font-size: 14.5px;
}
.result svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--clay); stroke-width: 2.6; }
.fcard-3 .log-row { margin-top: 12px; }

/* 4 노하우 */
.fcard-4 { background: var(--card); border: 2px solid var(--clay); }
.kh-tag {
  display: inline-block;
  padding: 1px 12px 3px;
  border-radius: 99px;
  background: var(--clay-tint);
  color: var(--clay-ink);
  font-size: 13px;
  font-weight: 800;
}
.kh-text { margin-top: 12px; font-size: 20px; line-height: 1.45; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.kh-proof { margin-top: 16px; font-size: 13px; font-weight: 800; color: var(--clay-ink); }
.evid { margin-top: 8px; display: grid; gap: 6px; }
.evid li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px 9px;
  background: var(--sheet);
  border-radius: 12px;
  font-size: 13.5px;
}
.evid span { color: var(--mute); font-weight: 600; }
.evid b { font-weight: 800; }

/* 사용 장면(예시): 날짜가 있는 기록장. 앱 조각(둥근 면)과 달리 얇은 선과 날짜 머리줄로 만든다 */
.scene {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
  background: var(--card);
  border: 1px solid #D5CBBB;
  border-radius: 10px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 9px 14px 8px;
  border-bottom: 1px solid var(--line);
}
.sc-when { min-width: 0; color: var(--mute); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.sc-eg {
  flex: none;
  padding: 0 8px 1px;
  border: 1px solid #D5CBBB;
  border-radius: 4px;
  color: var(--mute);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}
.sc-main { display: grid; gap: 10px; padding: 14px 14px 16px; }
.sc-say, .sc-q, .sc-a {
  width: fit-content;
  max-width: 100%;
  padding: 9px 14px 10px;
  font-weight: 700;
  text-wrap: pretty;
}
.sc-say, .sc-q { background: var(--sheet); border-radius: 14px 14px 14px 4px; }
.sc-a { justify-self: end; background: var(--ink); color: var(--paper); border-radius: 14px 14px 4px 14px; }
.sc-title { font-size: 17px; line-height: 1.4; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 11px 3px 9px;
  border: 1px solid #D5CBBB;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}
.sc-chips li span { color: var(--mute); font-weight: 600; }
.sc-know { font-size: 18px; line-height: 1.45; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.sc-proof { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed #D5CBBB; }
.sc-proof li { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13.5px; font-weight: 600; }
.sc-proof li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--clay); transform: rotate(45deg); }
.sc-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 9px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
}
.sc-note svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--clay); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ================= 3. 흐르는 데이터 띠 ================= */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 20px;
  margin-block: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tk-track { display: flex; width: max-content; animation: tick 56s linear infinite; }
.tk-set { display: flex; flex: none; }
.tk-set li {
  flex: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: clamp(18px, 3.2vw, 24px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.tk-set li::after {
  content: "";
  width: 9px; height: 9px;
  margin-inline: 22px;
  background: var(--clay);
  border-radius: 2px;
  transform: rotate(45deg);
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ================= 4. 효과 한 줄 ================= */
.effects { padding-block: 72px 24px; }
.eff {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.eff:first-child { border-top: 1px solid var(--line); }
.eff-no { flex: none; width: 2.2em; color: var(--clay-ink); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.eff p {
  font-size: clamp(28px, 7.2vw, 64px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hl { position: relative; font-style: normal; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em;
  bottom: .02em;
  height: .32em;
  background: var(--clay);
  opacity: .38;
  z-index: -1;
  transform-origin: left;
}
.eff { isolation: isolate; }

/* ================= 5. 쌓인 기록 쓰임 ================= */
.uses { padding-block: 56px 24px; }
.uses-grid { margin-top: 28px; display: grid; gap: 16px; }
.use {
  background: var(--sheet);
  border-radius: 28px;
  padding: 28px 24px 30px;
}
.use h3 { font-size: 22px; line-height: 1.4; font-weight: 800; letter-spacing: -.01em; }
.use-q {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px 9px;
  background: var(--card);
  border-radius: 18px 18px 18px 5px;
  font-size: 16px;
  font-weight: 700;
}
.use p:last-child { margin-top: 14px; color: var(--mute); max-width: 28em; text-wrap: pretty; }

/* ================= 5-1. 이런 분께 맞아요 ================= */
.who { padding-block: 56px 24px; }
.who-grid { margin-top: 28px; display: grid; gap: 28px; }
.who-item { padding-top: 16px; border-top: 2px solid var(--ink); }
.who-item h3 { font-size: 20px; line-height: 1.4; font-weight: 800; letter-spacing: -.01em; }
.who-item p { margin-top: 8px; color: var(--mute); max-width: 24em; text-wrap: pretty; }

/* ================= 5-2. 서식은 같은 기록으로 ================= */
.forms { margin-top: 56px; padding-block: 56px 60px; background: var(--sheet); }
.forms-lede { margin-top: 14px; max-width: 26em; color: var(--mute); font-size: 17px; text-wrap: pretty; }
.docs { margin-top: 32px; display: grid; gap: 14px; }
.doc {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 22px;
  background: var(--card);
  border: 1px solid #D5CBBB;
  border-radius: 6px;
}
.doc-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.doc h3 { font-size: 18px; line-height: 1.4; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.doc-flag {
  padding: 0 11px 2px;
  border-radius: 99px;
  background: var(--clay-tint);
  color: var(--clay-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}
.doc-rows { display: grid; gap: 9px; margin-top: auto; padding-top: 16px; border-top: 2px solid var(--ink); }
.doc-rows span { display: grid; grid-template-columns: 28% 1fr; gap: 10px; height: 14px; }
.doc-rows i { display: block; border-radius: 3px; background: var(--line); }
.doc-rows .gap i:last-child { background: transparent; border: 1.5px dashed var(--clay); }
.forms-note { margin-top: 22px; color: var(--mute); font-size: 15px; font-weight: 600; }

/* ================= 5-3. 자주 묻는 질문 ================= */
.faq { padding-block: 72px 24px; }
.faq-list { margin-top: 28px; border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0); }
.qa summary:hover { color: var(--clay-ink); }
.qa summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.qa p { padding: 0 44px 22px 0; max-width: 36em; color: var(--mute); text-wrap: pretty; }
.qa p a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.qa p a:hover { color: var(--clay); }

/* ================= 7. 마지막 띠 ================= */
.closing { margin-top: 24px; padding-block: 72px 80px; background: var(--ink); color: var(--paper); }
.closing .closing-line { display: block; width: 100%; height: auto; max-width: 460px; }

/* ================= 6. 한 줄 ================= */
.promise {
  padding-block: 56px 72px;
  font-size: clamp(17px, 3.4vw, 22px);
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
}

/* ================= 아래쪽 ================= */
.foot { border-top: 1px solid var(--line); padding-block: 32px 48px; }
.foot-in { display: grid; gap: 14px; font-size: 14px; color: var(--mute); }
.foot .co { color: var(--ink); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--ink); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--clay); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ================= 태블릿 이상 ================= */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .top { padding-block: 24px; }
  .hero { gap: 48px; padding-top: 32px; padding-bottom: 88px; }
  .flow { padding-block: 88px 56px; }
  .uses-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
  .use { padding: 36px 32px 38px; }
  .effects { padding-block: 104px 40px; }
  .eff { padding-block: 32px; gap: 28px; }
  .uses { padding-block: 88px 40px; }
  .promise { padding-block: 88px 104px; }
  .fcard, .scene { max-width: 420px; }
  .who { padding-block: 88px 40px; }
  .who-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; margin-top: 36px; }
  .forms { margin-top: 88px; padding-block: 88px 92px; }
  .docs { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
  .doc { min-height: 220px; padding: 24px 22px 26px; }
  .faq { padding-block: 104px 40px; }
  .closing { margin-top: 40px; padding-block: 104px 112px; }
  .closing .closing-line { max-width: 820px; }
}

/* ================= PC ================= */
@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    align-items: center;
    gap: 64px;
    padding-top: 24px;
    padding-bottom: 104px;
  }
  .headline { max-width: 600px; }
  .lede { font-size: 20px; }
  .stage-wrap { justify-self: end; }

  .flow-head { max-width: 640px; }
  .steps { margin-top: 56px; }

  /* 왼쪽에 카드가 고정되고, 오른쪽 글을 내리면 카드가 바뀐다(JS가 있을 때) */
  html.js .steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 88px;
  }
  html.js .step { display: contents; }
  html.js .step::before, html.js .step::after { display: none; }
  html.js .fcard {
    grid-column: 1;
    grid-row: 1 / span 4;
    position: sticky;
    top: max(96px, calc(50vh - 250px));
    align-self: start;
    max-width: none;
    margin-top: 0;
    padding: 34px 34px 38px;
    border-radius: 36px;
    font-size: 17px;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition: opacity .6s ease, transform .8s var(--ease);
    pointer-events: none;
  }
  html.js .steps[data-active="1"] .fcard-1,
  html.js .steps[data-active="2"] .fcard-2,
  html.js .steps[data-active="3"] .fcard-3,
  html.js .steps[data-active="4"] .fcard-4 { opacity: 1; transform: none; pointer-events: auto; }

  html.js .step-body {
    --pt: clamp(40px, 7vh, 80px);
    display: block;
    grid-column: 2;
    position: relative;
    min-height: 0;
    padding: var(--pt) 0 clamp(40px, 7vh, 72px) 76px;
    opacity: .32;
    transition: opacity .5s ease;
  }
  html.js .step:nth-child(1) .step-body { grid-row: 1; }
  html.js .step:nth-child(2) .step-body { grid-row: 2; }
  html.js .step:nth-child(3) .step-body { grid-row: 3; }
  html.js .step:nth-child(4) .step-body { grid-row: 4; min-height: 56vh; }
  html.js .steps[data-active="1"] .step:nth-child(1) .step-body,
  html.js .steps[data-active="2"] .step:nth-child(2) .step-body,
  html.js .steps[data-active="3"] .step:nth-child(3) .step-body,
  html.js .steps[data-active="4"] .step:nth-child(4) .step-body { opacity: 1; }

  html.js .step-no { top: var(--pt); width: 48px; height: 48px; }
  html.js .step-no b { font-size: 20px; }
  html.js .step-body::before, html.js .step-body::after {
    content: "";
    position: absolute;
    left: 23px;
    top: calc(var(--pt) + 54px);
    bottom: calc(6px - var(--pt));
    width: 2px;
  }
  html.js .step-body::before { background: var(--line); }
  html.js .step-body::after {
    background: var(--clay);
    transform: scaleY(var(--f, 0));
    transform-origin: top;
  }
  html.js .step:last-child .step-body::before, html.js .step:last-child .step-body::after { display: none; }
  html.js .step h3 { font-size: 32px; padding-top: 4px; }
  html.js .step-body > p { font-size: 18px; margin-top: 10px; }
  html.js .scene { max-width: 440px; margin-top: 28px; font-size: 15.5px; }
  /* 단계 번호 줄: 글 앞으로 정렬 */
  html.js .step-body { padding-left: 76px; }

  .step:not(.rv) { }
  html.js .step.rv { opacity: 1; transform: none; }

  .uses-grid { gap: 24px; }
  .use { padding: 44px 44px 46px; }

  .who-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .forms-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
  .forms-lede { margin-top: 0; }
  .doc { min-height: 236px; }
  .faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .faq-in .section-title { position: sticky; top: 48px; }
  .faq-list { margin-top: 0; }
}

/* ================= 첫 화면 차례 등장·카드 재생 (움직임 줄이기 아닐 때만) ================= */
@media (prefers-reduced-motion: no-preference) {
  /* 글 차례 등장 */
  .hero-text > * { animation: rise 1s var(--ease) both; }
  .hero-text > .headline { animation-delay: .1s; }
  .hero-text > .lede { animation-delay: .3s; }
  .stage-wrap { animation: fade 1.2s ease .2s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  /* 고랑이 그려지듯 나타난다 */
  .land .ridge {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.4s ease-out var(--d, 0s) forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .land .bands { animation: fade 2.4s ease .3s both; }
  .land .sun { transform-origin: 404px 92px; animation: sunrise 2.2s var(--ease) .1s both; }
  @keyframes sunrise { from { opacity: 0; transform: translateY(22px) scale(.92); } to { opacity: .92; transform: none; } }

  /* 휴대폰이 떠오른 뒤 살짝 떠 있는다 */
  .phone { animation: phone-in 1.3s var(--ease) .5s both, bob 6s ease-in-out 1.9s infinite alternate; }
  @keyframes phone-in { from { opacity: 0; transform: translateY(5em); } to { opacity: 1; transform: none; } }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-.9em); } }

  /* 카드: JS가 켜져 있을 때만 숨겼다가 순서대로 켠다 */
  html.js .hcard {
    opacity: 0;
    transform: translateY(1.4em) scale(.96);
    transition: opacity .7s ease, transform .9s var(--ease);
  }
  html.js .hcard.on { opacity: 1; transform: none; }
  html.js .chip { opacity: 0; transform: translateY(.5em) scale(.9); transition: opacity .5s ease, transform .6s var(--ease); }
  html.js .chip.on { opacity: 1; transform: none; }

  /* 점선은 켜지면 흐른다 */
  html.js .links path { opacity: 0; transition: opacity .6s ease; animation: flowdash 1.1s linear infinite; }
  html.js .links path.on { opacity: 1; }
  @keyframes flowdash { to { stroke-dashoffset: -20; } }

  /* 녹음 중에만 파형이 움직이고, 끝나면 멈춰서 흐려진다 */
  .hc-say .bars i { animation-play-state: paused; }
  .hc-say.rec .bars i { animation-play-state: running; }
  .hc-say .bars { transition: opacity .6s ease; }
  .hc-say.done .bars { opacity: .35; }
  .hc-say.typing .typed::after { opacity: 1; animation: blink 1s steps(2, start) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  html.js .hc-know .proof span { transform-origin: left center; }
  .hc-know.pulse .proof span { animation: pop .9s var(--ease); }
  @keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

  /* 스크롤 등장 */
  html.js .rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s ease, transform 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  html.js .rv.in { opacity: 1; transform: none; }
  html.js .eff .hl::after { transform: scaleX(0); transition: transform 1s var(--ease) .45s; }
  html.js .eff.in .hl::after { transform: scaleX(1); }

  /* 단계 카드 안쪽 움직임 (켜질 때) */
  .fcard-1 .bars i { animation-play-state: paused; }
  .steps[data-active="1"] .fcard-1 .bars i { animation-play-state: running; }
  .steps[data-active="1"] .fcard-1 .mic::after { animation: ring 1.8s ease-out infinite; }
  @keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
  .steps[data-active="3"] .fcard-3 .pick { animation: pop .9s var(--ease) .5s; }
  @media (min-width: 960px) {
    html.js .fcard-4 .evid li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .7s var(--ease); }
    html.js .steps[data-active="4"] .fcard-4 .evid li { opacity: 1; transform: none; }
    html.js .steps[data-active="4"] .fcard-4 .evid li:nth-child(1) { transition-delay: .35s; }
    html.js .steps[data-active="4"] .fcard-4 .evid li:nth-child(2) { transition-delay: .55s; }
  }

  /* 화면 밖이면 멈춘다 */
  .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
}

/* ================= 움직임 줄이기: 최종 상태로 정지 ================= */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .land .ridge { stroke-dasharray: none; stroke-dashoffset: 0; }
  .bars i { transform: scaleY(var(--hi)); }
  .hc-say .bars { opacity: 1; }
  .links path { opacity: 1; }
  /* 띠는 흐르지 않고 줄바꿈으로 모두 보여 준다 */
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .tk-track { width: auto; flex-direction: column; padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
  .tk-set { flex-wrap: wrap; row-gap: 6px; }
  .tk-set[aria-hidden="true"] { display: none; }
}
