/* 오복소프트 — colour chapters. 한 글꼴(Pretendard), 한 그리드, 장마다 한 색. */
:root {
  --bg: #ffffff;
  --surface: #f4f1ec;
  --ink: #111111;
  --muted: #4d4d4d;
  --paper: #f2f1ee;
  --accent: #e8a86e;          /* 백구 털빛 = 버튼 */
  --accent-strong: #d98f4f;
  --accent-ink: #111111;
  --baek: #e8a86e;            /* 백구캠 장 */
  --cream: #f5d9a8;           /* 무드필름 장 */
  --sage: #d1ddd3;
  --acid: #f0ff1c;
  --black: #111111;
  --pink: #f8d3de;            /* 오복운세 장 */
  --black-ink: #f4f4f4;
  --t1: #7a3e12; --t2: #a85a22; --t3: #d08245; --t4: #e8a86e;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem);
  --step-display: clamp(3.4rem, 10.5vw, 10rem);

  --m: clamp(16px, 2.4vw, 32px);
  --radius: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", "Pretendard Variable", -apple-system, "Malgun Gothic", sans-serif;
  font-size: var(--step-body); line-height: 1.55; font-weight: 400;
  word-break: keep-all; overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acid); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }

/* ---------- 버튼 (모양 한 가지: 둥근 알약) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  min-height: 52px; padding: 0 1.5em; border: 0; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-body); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(.96); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.small { min-height: 42px; font-size: var(--step-small); padding: 0 1.15em; }
.btn[aria-disabled="true"], .btn:disabled { background: transparent; color: inherit; outline: 2px solid currentColor; outline-offset: -2px; cursor: not-allowed; opacity: .85; }
.btn .soon { font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([aria-disabled="true"]):not(:disabled):hover { background: var(--accent-strong); }
  .btn.dark:not([aria-disabled="true"]):hover { background: #333; }
  .btn.light:not([aria-disabled="true"]):hover { background: #fff; }
}
.link { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } }
.soon-tag { font-size: .78em; font-weight: 600; white-space: nowrap; }

/* ---------- 머리줄 ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--m);
}
.bar.solid { position: relative; background: var(--bar-bg, var(--bg)); color: var(--bar-ink, var(--ink)); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em; }
.mark svg { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--step-small); }
.nav a.cur { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.nav .menu-dl { margin-left: 6px; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 76px; left: var(--m); right: var(--m); flex-direction: column; align-items: stretch; gap: 0;
         background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.25); } /* taste-skill-ignore: 열린 메뉴는 떠 있는 층 */
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav .menu-dl { margin: 6px 0 0; }
}

/* ---------- 첫 화면: 물높이 제목 ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--black); --seam: 50%;
}
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--seam); background: var(--baek); }
.hero .bar { color: var(--ink); }
.hero-title {
  position: absolute; left: 50%; top: 50%; width: min(92vw, 1180px);
  transform: translate(-50%, -78%);
  font-size: var(--step-display); font-weight: 800; letter-spacing: -0.05em; line-height: .9; text-align: center;
}
.hero-title .copy { display: block; }
.hero-title .copy.top { color: var(--ink); clip-path: inset(0 0 22% 0); }
.hero-title .copy.under { position: absolute; inset: 0; color: var(--baek); clip-path: inset(78% 0 0 0); }
.lines .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lines [data-line] { display: block; }
.hero-foot {
  position: absolute; left: var(--m); right: var(--m); bottom: 40px; color: var(--black-ink);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); align-items: end;
}
.hero-foot p { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.4; font-weight: 500; }
.hero-foot .acts { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-dog { position: absolute; right: clamp(8px, 6vw, 110px); bottom: 0; width: clamp(150px, 21vw, 330px); }
@media (max-width: 760px) {
  .hero { --seam: 46%; }
  .hero-title { top: 46%; font-size: 15.5vw; width: calc(100vw - 32px); }
  .hero-foot { bottom: 28px; }
  .hero-foot p { grid-column: 1 / -1; font-size: 1.06rem; max-width: 30ch; }
  .hero-foot .acts { grid-column: 1 / -1; }
  .hero-dog { width: 34vw; right: 10px; bottom: auto; top: calc(46% + 12vw); }
}

/* ---------- 장(챕터) 공통 ---------- */
.chapter { position: relative; min-height: 90svh; padding-block: clamp(80px, 12vh, 160px); }
.chapter.short { min-height: 0; }
.f-baek { background: var(--baek); color: var(--ink); }
.f-cream { background: var(--cream); color: var(--ink); }
.f-sage { background: var(--sage); color: var(--ink); }
.f-acid { background: var(--acid); color: var(--ink); }
.f-black { background: var(--black); color: var(--black-ink); }
.f-pink { background: var(--pink); color: var(--ink); }
.f-paper { background: var(--paper); color: var(--ink); }
.f-white { background: var(--bg); color: var(--ink); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.42; font-weight: 500; max-width: 34ch; }
.body-col { max-width: 60ch; }
.body-col p + p { margin-top: 1em; }
.note { font-size: 15px; }
.f-black .note, .f-black .muted { color: #cfcfcf; }
.muted { color: var(--muted); }

/* ---------- 두 프로그램 반반 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; }
.split > .half { position: relative; padding: clamp(84px, 13vh, 150px) var(--m) clamp(120px, 16vh, 170px); display: flex; flex-direction: column; gap: 26px; }
.half .app-name { font-size: var(--step-head); }
.half .lead { max-width: 26ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step-small); font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split-word { position: absolute; bottom: 32px; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.split .left .split-word { right: var(--m); }
.split .right .split-word { left: var(--m); }
.sha { font-size: 15px; line-height: 1.4; word-break: break-all; max-width: 46ch; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > .half { min-height: 62svh; padding-bottom: 110px; }
  .split .left .split-word { right: auto; left: var(--m); font-size: 11vw; }
  .split .right .split-word { top: 24px; bottom: auto; font-size: 11vw; }
  .split .right { padding-top: 110px; }
}

/* ---------- 화면 조각 (data-ui) ---------- */
.ui { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; color: #111; max-width: 520px; width: 100%; font-size: 14px; line-height: 1.35; }
.ui .tb { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f1ede7; font-weight: 700; }
.ui .tb .dots { display: flex; gap: 14px; color: #555; font-weight: 500; }
.ui .tb .dots span { width: 12px; height: 2px; background: #555; display: inline-block; align-self: center; }
.ui-rec .stage { position: relative; aspect-ratio: 16 / 10; background: #fff4e6; }
.ui-rec .area { position: absolute; inset: 12% 10% 18% 10%; outline: 3px dashed #e8613c; outline-offset: -3px; border-radius: 8px; background: #ffe5c7; overflow: hidden; }
.ui-rec .area .dog { position: absolute; right: 6%; bottom: -6%; width: 34%; }
.ui-rec .area .lines-mock { position: absolute; left: 8%; top: 14%; width: 46%; display: grid; gap: 9px; }
.ui-rec .area .lines-mock b { display: block; height: 12px; border-radius: 6px; background: #f2b986; }
.ui-rec .area .lines-mock b:nth-child(1) { width: 90%; height: 18px; background: #e8a86e; }
.ui-rec .area .lines-mock b:nth-child(3) { width: 70%; }
.ui-rec .area .lines-mock b:nth-child(4) { width: 55%; }
.ui-rec .ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #1b1b1b; color: #fff; }
.ui-rec .rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ui-rec .rec i { width: 12px; height: 12px; border-radius: 50%; background: #ff4b3a; display: inline-block; }
.ui-rec .time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.ui-rec .keys { display: flex; gap: 8px; }
.ui-rec .keys span { padding: 6px 12px; border-radius: 999px; background: #333; font-weight: 600; }
.ui-rec .keys span.stop { background: #ff4b3a; }
@media (prefers-reduced-motion: no-preference) {
  .ui-rec .rec i { animation: blink 1.2s steps(2, jump-none) infinite; }
}
@keyframes blink { 50% { opacity: .25; } }

.ui-mood .tb { background: #111; color: #f5d9a8; }
.ui-mood .tb .dots span { background: #f5d9a8; }
.ui-mood .pic { position: relative; aspect-ratio: 4 / 3; background: #ddd; overflow: hidden; }
.ui-mood .pic img { width: 100%; height: 100%; object-fit: cover; }
.ui-mood .rail { display: flex; gap: 8px; padding: 12px; background: #1b1b1b; color: #f5d9a8; overflow: hidden; }
.ui-mood .rail span { flex: none; padding: 6px 12px; border-radius: 999px; background: #2c2c2c; font-weight: 600; }
.ui-mood .rail span.on { background: #f5d9a8; color: #111; }
.ui-mood .slider { display: flex; align-items: center; gap: 12px; padding: 0 14px 14px; background: #1b1b1b; color: #f5d9a8; font-weight: 600; }
.ui-mood .slider .track { flex: 1; height: 6px; border-radius: 3px; background: #444; position: relative; }
.ui-mood .slider .track i { position: absolute; inset: 0 30% 0 0; background: #f5d9a8; border-radius: 3px; }

/* SmartScreen 안내용 조각 (윈도우 화면을 따라 그린 설명 그림) */
.ui-ss { background: #0f5fa8; color: #fff; max-width: 470px; border-radius: 6px; font-family: "Segoe UI", "Malgun Gothic", sans-serif; }
.ui-ss .in { padding: 26px 26px 18px; }
.ui-ss h4 { font-size: 24px; font-weight: 400; letter-spacing: 0; margin-bottom: 14px; }
.ui-ss p { font-size: 14px; line-height: 1.5; }
.ui-ss .more { display: inline-block; margin-top: 12px; text-decoration: underline; font-size: 14px; }
.ui-ss .more.hl, .ui-ss .run.hl { outline: 3px solid var(--acid); outline-offset: 3px; }
.ui-ss .info { margin-top: 14px; font-size: 13px; line-height: 1.6; }
.ui-ss .foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px 22px; }
.ui-ss .foot span { min-width: 92px; text-align: center; padding: 7px 14px; background: #fff; color: #111; font-size: 14px; }
.ui-ss .foot span.ghost { background: transparent; color: #fff; outline: 1px solid #fff; }

/* ---------- 무드 맛보기 (살아 있는 장치) ---------- */
.mood-lab { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 40px; align-items: start; }
.mood-lab .copy { grid-column: 1 / span 4; display: grid; gap: 22px; position: sticky; top: 40px; }
.mood-lab .stage { grid-column: 5 / span 8; display: grid; gap: 18px; }
.mood-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 82svh; background: #2a2a2a; }
.mood-frame img { width: 100%; height: 100%; object-fit: cover; transition: filter 420ms var(--ease-out), opacity 260ms ease; }
.mood-frame img.swap { opacity: .2; }
.mood-frame .tag { position: absolute; left: 16px; top: 16px; padding: 8px 14px; border-radius: 999px; background: #111; color: #f5d9a8; font-weight: 700; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(17,17,17,.08); font-weight: 600; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
@media (hover: hover) { .chip[aria-pressed="false"]:hover { background: rgba(17,17,17,.16); } }
.compare { justify-self: start; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 600; }
.pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; transition: transform var(--t-press) var(--ease-out); }
.pick:active img { transform: scale(.94); }
.pick[aria-pressed="true"] img { outline: 3px solid currentColor; outline-offset: 3px; }
.goods { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 48px; margin-top: 64px; }
.good { margin: 0; display: grid; gap: 14px; }
.good:nth-child(1) { grid-column: 1 / span 7; }
.good:nth-child(2) { grid-column: 9 / span 4; align-self: end; }
.good:nth-child(3) { grid-column: 1 / span 4; }
.good:nth-child(4) { grid-column: 6 / span 7; }
.good img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.good figcaption { display: grid; gap: 4px; }
.good figcaption b { font-size: var(--step-lead); letter-spacing: -0.03em; }
@media (max-width: 860px) { .good:nth-child(n) { grid-column: 1 / -1; } }
.f-black .chip { background: #2a2a2a; color: #f4f4f4; }
.f-black .chip[aria-pressed="true"] { background: var(--cream); color: #111; }
@media (hover: hover) { .f-black .chip[aria-pressed="false"]:hover { background: #3a3a3a; } }
@media (max-width: 900px) {
  .mood-lab .copy, .mood-lab .stage { grid-column: 1 / -1; position: static; }
  .chip { min-height: 40px; padding: 0 13px; font-size: 15px; }
}

/* ---------- 큰 글씨 목록 ---------- */
.poster-list { list-style: none; margin: 0; padding: 0; }
.poster-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); align-items: first baseline; padding-block: .3em; }
.poster-list .name { grid-column: 1 / span 8; font-size: clamp(36px, 5vw, 80px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.poster-list .desc { grid-column: 9 / span 4; font-size: var(--step-body); line-height: 1.5; }
.poster-list li.first .name { color: rgba(17,17,17,.62); }
.poster-list li.first .name { color: #555; }
@media (hover: hover) { .poster-list li:not(.first):hover .name { color: var(--ink); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; } }
@media (max-width: 860px) {
  .poster-list li { grid-template-columns: 1fr; padding-bottom: 28px; }
  .poster-list .name, .poster-list .desc { grid-column: 1; }
  .poster-list .name { font-size: 10.5vw; }
  .poster-list .desc { padding-left: var(--m); margin-top: 8px; font-size: 16px; }
}

/* ---------- 설치 4단계 (가로 아코디언) ---------- */
.steps-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); align-items: end; }
.steps-intro .head { grid-column: 1 / span 5; }
.steps-intro p { grid-column: 7 / span 5; font-size: var(--step-body); }
.steps { display: flex; height: 540px; margin-top: 64px; border-radius: var(--radius); overflow: hidden; }
.step { position: relative; flex: 0 0 9%; overflow: hidden; cursor: pointer; transition: flex-basis 450ms var(--ease-in-out); border: 0; padding: 0; text-align: left; }
.step.open { flex: 1 1 auto; cursor: default; }
.step:nth-child(1) { background: var(--t1); color: #fff; }
.step:nth-child(2) { background: var(--t2); color: #fff; }
.step:nth-child(3) { background: var(--t3); color: #111; }
.step:nth-child(4) { background: var(--t4); color: #111; }
.step .sliver { position: absolute; left: 22px; bottom: 26px; transform-origin: left bottom; transform: rotate(-90deg) translateY(100%); white-space: nowrap; font-size: 20px; font-weight: 800; }
.step.open .sliver { display: none; }
.step .panel { position: absolute; inset: 0; padding: 34px; display: none; grid-template-columns: 1fr 1fr; gap: 28px; }
.step.open .panel { display: grid; }
.step .panel h3 { font-size: var(--step-head); }
.step .panel .txt { display: flex; flex-direction: column; justify-content: space-between; }
.step .panel p { max-width: 36ch; font-size: var(--step-body); }
.step .panel .pic { align-self: center; justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .steps-intro .head, .steps-intro p { grid-column: 1 / -1; }
  .steps-intro p { margin-top: 18px; }
  .steps { flex-direction: column; height: auto; }
  .step, .step.open { flex: none; }
  .step .sliver { position: static; transform: none; display: block; padding: 20px; font-size: 18px; }
  .step.open .sliver { display: block; }
  .step .panel { position: static; grid-template-columns: 1fr; padding: 0 20px 24px; }
  .step .panel h3 { display: none; }
  .step .panel p { font-size: 17px; }
}

/* ---------- 추천 상품 ---------- */
.rec-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 28px; }
.rec-wrap .head { grid-column: 1 / span 5; }
.rec-wrap .side { grid-column: 7 / span 6; display: grid; gap: 20px; }
.disclosure { font-size: 15px; font-weight: 600; padding: 14px 18px; border-radius: 14px; background: var(--surface); }
.f-paper .disclosure { background: #e6e4df; }
.rec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rec-list li a { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); text-decoration: none; }
.rec-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #ddd; }
.rec-list .t { font-weight: 600; }
.rec-list .p { font-weight: 700; white-space: nowrap; }
.rec-empty { padding: 26px; border-radius: var(--radius); background: var(--surface); font-weight: 500; }
@media (max-width: 860px) { .rec-wrap .head, .rec-wrap .side { grid-column: 1 / -1; } }

/* ---------- 자주 묻는 것 ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }
.faq .head { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; font-size: var(--step-head); }
.faq .list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq details { border-radius: var(--radius); background: var(--surface); transition: background-color var(--t-ui) ease; }
.f-paper .faq details, .f-cream .faq details { background: rgba(255,255,255,.55); }
.faq summary { list-style: none; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; font-size: var(--step-body); font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 16px; height: 16px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 24px 24px; max-width: 58ch; font-size: var(--step-body); }
.faq .ans p + p { margin-top: .7em; }
@media (max-width: 860px) {
  .faq .head { grid-column: 1 / -1; position: static; font-size: 9vw; margin-bottom: 24px; }
  .faq .list { grid-column: 1 / -1; gap: 6px; }
  .faq summary { font-size: 18px; min-height: 64px; padding: 16px 20px; }
  .faq .ans { padding: 0 20px 20px; font-size: 16px; }
}

/* ---------- 바닥글 ---------- */
.foot { min-height: 90svh; display: flex; flex-direction: column; justify-content: space-between; padding: 40px var(--m) 28px; background: var(--black); color: var(--black-ink); }
.foot .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); font-size: 15px; }
.foot .top .notes { grid-column: 1 / span 7; display: grid; gap: 6px; }
.foot .top .totop { grid-column: 12 / span 1; justify-self: end; white-space: nowrap; }
.foot .big { display: block; font-size: clamp(64px, 19.5vw, 340px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; text-decoration: none; margin-top: 18vh; }
.foot .big:hover { color: var(--baek); }
.foot .meta-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; font-size: 15px; margin-top: 28px; align-items: end; }
.foot .meta-row .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot .meta-row .links a { text-decoration: none; }
.foot .meta-row .links a:hover { text-decoration: underline; }
.foot .meta-row .where { justify-self: end; }
@media (max-width: 760px) {
  .foot .top .notes { grid-column: 1 / span 9; }
  .foot .top .totop { grid-column: 10 / span 3; }
  .foot .big { font-size: 19vw; }
  .foot .meta-row { grid-template-columns: 1fr; font-size: 13px; }
  .foot .meta-row .where { justify-self: start; }
}

/* ---------- 상세·도움말·글 공통 ---------- */
.page-hero { position: relative; min-height: 78svh; padding: 140px var(--m) 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 28px; align-content: end; overflow: hidden; }
.page-hero .bar { color: inherit; }
.page-hero h1 { grid-column: 1 / span 8; font-size: clamp(3rem, 7.4vw, 7.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .92; }
.page-hero .lead { grid-column: 1 / span 6; }
.page-hero .acts { grid-column: 1 / span 8; }
.page-hero .meta, .page-hero > div[data-rise] { grid-column: 1 / span 8; }
.page-hero .art { position: absolute; right: var(--m); bottom: 0; width: clamp(160px, 26vw, 400px); }
.page-hero.short { min-height: 52svh; }
@media (max-width: 760px) {
  .page-hero { padding-top: 120px; min-height: 0; }
  .page-hero h1, .page-hero .lead, .page-hero .acts, .page-hero .meta, .page-hero > div[data-rise] { grid-column: 1 / -1; }
  .page-hero h1 { font-size: 13vw; }
  .page-hero .art { position: relative; right: auto; grid-column: 1 / -1; justify-self: end; width: 46vw; margin-bottom: -72px; }
}

.two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 36px; align-items: start; }
.two .l { grid-column: 1 / span 5; }
.two .r { grid-column: 7 / span 6; }
.two .l.sticky { position: sticky; top: 40px; }
@media (max-width: 860px) { .two .l, .two .r, .two .l.sticky { grid-column: 1 / -1; position: static; } }

.spec { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.spec th, .spec td { text-align: left; padding: 14px 4px; border-bottom: 1px solid rgba(17,17,17,.18); vertical-align: top; }
.spec th { width: 36%; font-weight: 600; }
.f-black .spec th, .f-black .spec td { border-color: rgba(255,255,255,.22); }

.uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.uses li h3 { font-size: clamp(28px, 3.6vw, 54px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.uses li p { font-size: var(--step-body); line-height: 1.5; margin: 6px 0 22px; max-width: 46ch; }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; letter-spacing: -0.02em; }
.prose p, .prose li { font-size: var(--step-body); line-height: 1.75; }
.prose p + p { margin-top: 1em; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 1em 0; }
.prose li + li { margin-top: .45em; }
.prose code { font-family: Consolas, "D2Coding", monospace; font-size: .92em; background: var(--surface); padding: .1em .4em; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--paper); padding: 18px 20px; border-radius: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose .box { margin: 1.6em 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 14px; margin-top: 10px; color: var(--muted); }

.tip-list { list-style: none; margin: 0; padding: 0; }
.tip-list li a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); padding: 28px 0; text-decoration: none; align-items: first baseline; }
.tip-list li:nth-child(even) a { background: transparent; }
.tip-list .t { grid-column: 1 / span 8; font-size: clamp(26px, 3.2vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.tip-list .d { grid-column: 9 / span 4; font-size: 16px; }
.tip-list .d b { display: block; font-weight: 600; margin-bottom: 4px; }
@media (hover: hover) { .tip-list li a:hover .t { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; } }
@media (max-width: 860px) { .tip-list .t, .tip-list .d { grid-column: 1 / -1; } .tip-list .d { margin-top: 8px; } }

.compare-table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.compare-table th, .compare-table td { padding: 16px 10px; text-align: left; border-bottom: 1px solid rgba(17,17,17,.2); }
.compare-table thead th { font-size: var(--step-lead); }

.product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 32px; padding: 130px var(--m) 90px; align-items: start; }
.product .pic { grid-column: 1 / span 7; }
.product .info { grid-column: 8 / span 5; display: grid; gap: 20px; position: sticky; top: 30px; }
.product h1 { font-size: clamp(2.6rem, 4.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .98; }
.price { display: grid; gap: 4px; }
.price .now { font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; }
.price .later { font-size: 17px; font-weight: 600; }
.product .acts .btn { flex: 1 1 220px; }
@media (max-width: 900px) {
  .product { padding-top: 110px; }
  .product .pic, .product .info { grid-column: 1 / -1; position: static; }
  .product .info { order: -1; }
}

.ready { display: grid; gap: 14px; max-width: 520px; }
.ready label { font-weight: 600; }
.ready input { min-height: 54px; padding: 0 16px; font: inherit; border: 2px solid rgba(17,17,17,.25); border-radius: 14px; background: #fff; color: #666; }

.dl-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.dl-steps li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 14px; align-items: start; }
.dl-steps li .t { grid-column: 1 / span 5; }
.dl-steps li .t h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.dl-steps li .t p { font-size: var(--step-body); line-height: 1.55; margin-top: 10px; max-width: 40ch; }
.dl-steps li .pic { grid-column: 7 / span 6; }
@media (max-width: 860px) { .dl-steps li .t, .dl-steps li .pic { grid-column: 1 / -1; } }

/* ---------- 움직임 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 420ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .dog-peek { transform: translateY(40%); animation: peek 1100ms var(--ease-out) 700ms forwards; }
  .dog-peek .ear-l, .dog-peek .ear-r { transform-box: fill-box; transform-origin: 50% 100%; animation: ear 5s var(--ease-in-out) 2.2s infinite; }
  .dog-peek .ear-r { animation-delay: 2.35s; }
  .dog-peek .tail { transform-box: fill-box; transform-origin: 0% 100%; animation: wag 1.4s var(--ease-in-out) infinite; }
  .float-slow { animation: drift 7s var(--ease-in-out) infinite alternate; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes peek { to { transform: none; } }
@keyframes ear { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-9deg); } 96% { transform: rotate(5deg); } }
@keyframes wag { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(16deg); } }
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

.ui-dl { max-width: 440px; }
.ui-dl .row { display: flex; gap: 14px; align-items: center; padding: 16px; }
.ui-dl .ic { flex: none; width: 40px; height: 48px; border-radius: 6px; background: #e8a86e; }
.ui-dl .nm { display: grid; gap: 4px; min-width: 0; }
.ui-dl .nm b { font-size: 15px; word-break: break-all; }
.ui-dl .nm small { font-size: 13px; color: #b3261e; }
.ui-dl .opts { display: flex; gap: 8px; padding: 0 16px 16px; }
.ui-dl .opts span { padding: 7px 16px; border-radius: 6px; background: #ececec; font-weight: 600; }
.ui-dl .opts span.hl { outline: 3px solid var(--acid); outline-offset: 2px; background: #111; color: #fff; }
.ui-done { max-width: 440px; }
.ui-done .body { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 20px; }
.ui-done .body b { font-size: 18px; }
.ui-done .body p { margin: 6px 0 14px; font-size: 14px; }
.ui-done .okbtn { display: inline-block; padding: 8px 22px; border-radius: 6px; background: #111; color: #fff; font-weight: 600; }

/* ---------- 오복운세 ---------- */
.app-promo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); row-gap: 48px; align-items: center; }
.app-promo .copy { grid-column: 1 / span 5; display: grid; gap: 24px; }
.app-promo .shots { grid-column: 6 / span 7; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--m); align-items: start; }
.shots.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; }
.shot { width: 100%; height: auto; border-radius: 26px; }
.shots .shot:nth-child(2) { margin-top: 48px; }
.shots .shot:nth-child(4) { margin-top: 48px; }
.obok-art { width: clamp(220px, 34vw, 520px); border-radius: var(--radius); bottom: 72px; }
@media (max-width: 860px) {
  .app-promo .copy, .app-promo .shots { grid-column: 1 / -1; }
  .shots, .shots.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots .shot:nth-child(3) { display: none; }
  .shots.wide .shot:nth-child(3) { display: block; }
  .obok-art { position: relative; bottom: auto; width: 100%; margin-bottom: 0; }
}

/* ---------- 실제 프로그램 화면 ---------- */
.real { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.phone-shot { max-width: 400px; }
.wide-shot { max-width: 1180px; margin-top: 56px; }
.chip small { margin-left: 6px; font-size: 13px; font-weight: 700; opacity: .75; }
.rec-list li a span:first-child:empty { width: 72px; height: 72px; border-radius: 12px; background: #e6e4df; }

.fp summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: .08em; list-style: none; }
.fp summary::-webkit-details-marker { display: none; }
.fp .sha, .fp p { margin-top: 8px; }
