/* ══════════════════════════════════════════════════════════════════
   MIRACLE AD AI 홈 rev3 — «영상 위 코드 레이어» · 2026-10-12 운영 반영(애드)
   원본 시안: _docs/판매사이트업그레이드_1010/index.html(rev3 · 나래 10-10) — 10-10 대표 «추천대로» 4가지
     ① 신청 단추 «무료 진단 신청»(→ /apply) ② 숫자 9칸(순위 3항목 포함 · 각주 실측값)
     ③ 홈엔 폼 없음 — 신청은 /apply 한 벌 ④ 어두운 화면 고정(토글 없음)
   ⚠이 파일은 **홈(/) 하나만** 쓴다 — chrono.css 와 같이 싣지 않는다(chrono.py page_home · _head(css=…)).
     그래서 `.sc`·`.pc`·`.st` 같은 이름이 chrono.css 와 겹쳐도 서로를 뒤집어쓰지 않는다.
   ⚠`.num .lb` 를 `.num span` 으로 «정리»하지 말 것 — 숫자 span 까지 잡혀 숫자가 13px 로 눌린다(rev2 사고).
   ⚠히어로 단추 줄은 `.hcta`(08-18 `.hero .cta` 빈 상자 사고 이름을 피한다 · _chk_landing_slop).
   ⛔기본 글꼴 금지 — 스택 끝까지 실물 글꼴(chrono.css 와 같은 IBM Plex Sans KR + Plex Mono).
   ══════════════════════════════════════════════════════════════════ */
:root {
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ours: #22d3ee;
  --ours-ink: #04121A;
  --max: 1180px;
  --bg: #06070C;  --bg2: #0B0F17;  --panel: rgba(234,241,248,.04);  --panel2: rgba(234,241,248,.07);
  --line: rgba(234,241,248,.13);  --line2: rgba(234,241,248,.24);
  --fg: #EAF1F8;  --fg2: rgba(234,241,248,.70);  --fg3: rgba(234,241,248,.56);
  --accent-text: #5CE4F6;
  --bad: #FF6B85;  --warn: #FFA15C;  --kept: #2DD4A0;
  --hdr: rgba(6,7,12,.72);
  --shadow: 0 30px 80px -30px rgba(34,211,238,.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.7 var(--sans); letter-spacing: -.005em;
  word-break: keep-all; overflow-wrap: anywhere;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
input, select, textarea, button { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ours); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ours); color: var(--ours-ink); }
.in { width: min(var(--max), calc(100% - 2 * clamp(16px, 4vw, 48px))); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--ours); color: var(--ours-ink); border-radius: 8px; }
.skip:focus { left: 12px; }

/* 단추 — chrono.css .b 와 같은 문법(둥근 알약) */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line2);
  font: 500 14px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  background: transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}
.b.lg { padding: 15px 28px; font-size: 15.5px; }
.b.p { background: var(--ours); border-color: var(--ours); color: var(--ours-ink); font-weight: 600; }
.b.p:hover { transform: translateY(-2px); background: #5ce4f6; }
.b.g { color: var(--fg); background: var(--panel); }
.b.g:hover { border-color: var(--fg3); transform: translateY(-2px); }
.b.p.pressed { transform: scale(.96); box-shadow: 0 0 0 6px rgba(34,211,238,.28); }
.b.p.aim { box-shadow: 0 0 0 4px rgba(34,211,238,.35), 0 0 30px rgba(34,211,238,.35); }

/* ── 머리 ────────────────────────────────────────────────────────── */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 46px);
  background: var(--hdr); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hd.on { border-bottom-color: var(--line); }
/* ⚠로고 이름은 `.logo` — `.lg` 는 큰 단추(.b.lg) 이름이다. 같이 쓰면 머리에 큰 단추를 넣는 순간 로고 모양을 뒤집어쓴다(10-12 검수) */
.hd .logo { display: flex; align-items: center; gap: 9px; font: 600 14.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.hd .logo i { width: 9px; height: 9px; border-radius: 2px; background: var(--ours); box-shadow: 0 0 14px var(--ours); }
.hd nav { display: flex; gap: 20px; margin-left: 6px; }
.hd nav a { font: 400 13px/1 var(--sans); color: var(--fg2); text-decoration: none; transition: color .16s; white-space: nowrap; }
.hd nav a:hover { color: var(--fg); }
.hd .act { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.burger i { display: block; width: 16px; height: 1.6px; background: var(--fg); border-radius: 2px; }
.menu { position: fixed; inset: 0; z-index: 50; display: none; }
.menu[data-open] { display: block; }
.menu .mbg { position: absolute; inset: 0; background: rgba(4,4,10,.55); }
.menu .box {
  position: absolute; right: 12px; top: 12px; width: min(320px, calc(100% - 24px));
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.menu .box a { padding: 12px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.menu .box a:hover { background: var(--panel2); }
.menu .box .x { align-self: flex-end; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.menu .box .mcta { margin-top: 8px; text-align: center; background: var(--ours); color: var(--ours-ink); font-weight: 600; }
@media (max-width: 1080px) { .hd nav { gap: 14px; } }
@media (max-width: 960px) { .hd nav, .hd .act .b.g { display: none; } .burger { display: flex; } }
@media (max-width: 560px) { .hd .act .b.p { display: none; } }

/* ── 히어로 (항상 밤) ─────────────────────────────────────────────── */
.hero {
  --bg: #04040A; --bg2: #0A1018;
  position: relative; background: var(--bg); color: var(--fg);
  padding: calc(72px + clamp(28px, 6vw, 72px)) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {   /* 청록 흐린 빛 — 영상 뒤에서 숨 쉰다 */
  content: ""; position: absolute; left: 50%; top: 40%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  transform: translate(-20%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(34,211,238,.16), rgba(34,211,238,0) 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .7; transform: translate(-20%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-20%,-50%) scale(1.08); } }
.hero > .in { position: relative; width: min(1280px, calc(100% - 2 * clamp(16px, 4vw, 48px))); display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: 18px; }
.kick { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--accent-text); display: flex; align-items: center; gap: 10px; }
.kick::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--ours); box-shadow: 0 0 12px var(--ours); }
.hero h1 { margin: 0; font: 700 clamp(34px, 4.4vw, 60px)/1.14 var(--sans); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .sub { margin: 0; font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.72; color: var(--fg2); max-width: 46ch; }
.hero .sub b { color: var(--fg); font-weight: 600; }
.hero .hcta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero .trust { margin: 6px 0 0; font: 400 12.5px/1.6 var(--mono); color: var(--fg3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero .trust span::before { content: "✓ "; color: var(--kept); }

/* 영상 액자 + 코드 레이어 */
.stage { position: relative; }
.stage .tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.stage .tools[hidden] { display: none; }   /* 손님 화면엔 없음 — ?xray=1 로만 */
.xr { font: 500 11.5px/1 var(--mono); letter-spacing: .04em; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--fg2); cursor: pointer; }
.xr[aria-pressed="true"] { background: var(--ours); color: var(--ours-ink); border-color: var(--ours); }
.vid {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(34,211,238,.18), var(--shadow);
}
.vid video { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
/* 재생 단추 — 자동 재생하지 않는다(08-21 «혼자 돈다» · 10-11 36초 구획과 같은 원칙). 누르면 소리와 함께 처음부터. */
.vid .play { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(4,4,10,0) 40%, rgba(4,4,10,.35)); }
.js .vid.paused .play { display: flex; }
.vid .play button {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38); background: rgba(4,4,10,.62); color: #fff; cursor: pointer;
  font: 600 14.5px/1 var(--sans); letter-spacing: -.01em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .18s var(--ease), background .18s;
}
.vid .play button:hover { transform: scale(1.04); background: rgba(4,4,10,.78); }
.vid .play .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--ours); color: var(--ours-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; padding-left: 3px; }
/* 칩 — 밝기 실측(7차 영상 · 16×9 격자 · 36초)으로 «늘 비어 있는» 아래 오른쪽에만 둔다(자막은 왼쪽 아래) */
.chips { position: absolute; right: 2.4%; bottom: 4.5%; display: flex; gap: 6px; justify-content: flex-end; max-width: 42%; transition: opacity .35s; pointer-events: none; }
.chips.hide { opacity: 0; }
/* S8·S8b — 영상 속 앱 창 오른쪽 테두리가 x 0.94~0.96 이라 제자리면 칩이 반쯤 걸친다 → 창 안쪽(오른쪽 끝 0.925)으로 */
.chips.inset { right: 7.5%; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 5px 9px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .02em;
  background: rgba(4,4,10,.80); border: 1px solid rgba(234,241,248,.18); color: var(--fg);
  backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .35s, transform .5s var(--ease);
}
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ours); box-shadow: 0 0 8px var(--ours); flex: none; }
.chip[data-tone="bad"] i { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.chip[data-tone="warn"] i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.chip[data-tone="kept"] i { background: var(--kept); box-shadow: 0 0 8px var(--kept); }
.chip.hide { display: none; }
.card {   /* 밀림·다음 확인 장면(3.3~8.4초)에만 — 칩 자리(아래 오른쪽)를 잠깐 넘겨받는다 */
  position: absolute; right: 2.4%; bottom: 4.5%; width: 30%; min-width: 150px; pointer-events: none;
  padding: 9px 12px; border-radius: 10px; background: rgba(4,4,10,.78); border: 1px solid rgba(234,241,248,.16);
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .6s var(--ease);
}
.card.show { opacity: 1; transform: none; }
.card .k { font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--fg3); }
.card .v { font: 600 clamp(13px, 1.3vw, 16px)/1.3 var(--sans); margin-top: 3px; letter-spacing: -.02em; }
.card .v.bad { color: var(--bad); } .card .v.ours { color: var(--accent-text); }
.strip {   /* 액자 아래 코드 스트립 — 장면과 같은 시각에 엔진 말로 받아 적는다 */
  margin-top: 10px; display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  font: 400 12.5px/1.5 var(--mono); min-height: 50px;   /* 50 = 단추 32 + 위아래 8 + 테두리 — 재생 전(단추 숨김)과 재생 뒤 높이가 같게(10-12 3회차) */
}
/* 장면 이름 칸 폭 고정(S1 ↔ S10·S8b) — 칸 폭이 바뀌면 로그 칸 폭이 같이 바뀌어 줄 수가 달라진다 */
.strip .sid { color: var(--accent-text); font-weight: 600; letter-spacing: .04em; min-width: 3.4ch; }
.strip .log { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.strip .log::after { content: "▍"; color: var(--ours); animation: blink 1s steps(2) infinite; }
.strip .log.done::after { opacity: .5; animation: none; }
@keyframes blink { to { opacity: 0; } }
.strip .tm { color: var(--fg3); font-variant-numeric: tabular-nums; }
.strip .snd, .strip .pp { font: 500 11.5px/1 var(--mono); min-height: 32px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--fg2); cursor: pointer; white-space: nowrap; }
.strip .pp { display: inline-flex; align-items: center; gap: 6px; }
.strip .pp .ic::before { content: "❚❚"; font-size: 8.5px; letter-spacing: -1px; }
/* 멈춰 있으면 눌린 모양(aria-pressed=true) — 글은 «일시정지» 그대로 */
.strip .pp[aria-pressed="true"] { color: var(--accent-text); border-color: var(--ours); background: rgba(34,211,238,.10); }
.strip .snd[hidden], .strip .pp[hidden] { display: none; }   /* ⚠.pp 는 inline-flex 라 hidden 을 이긴다 — 직접 꺼 둔다 */
.strip .snd:hover, .strip .pp:hover { color: var(--fg); border-color: var(--fg3); }
.cnt { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font: 400 12px/1.4 var(--mono); color: var(--fg3); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .5s var(--ease); min-height: 18px; }
.cnt.show { opacity: 1; transform: none; }
.cnt b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
/* 장면 레일 — 막대는 3px 그대로, 누르는 영역은 높이 36px(폰 손가락 · 10-12 검수: 26×22px 이었다)
   라벨은 **지금 장면 하나만**(PC 도) — 단추 폭 55px 에 60px 라벨이 붙어 «S3 다음 확인S4 되올림»으로 읽혔다(10-12 검수).
   마우스를 올리거나 키보드로 옮기면 그 단추 라벨로 바뀐다(둘이 동시에 안 보이게). */
.srail { display: flex; gap: 4px; margin-top: 4px; }
.srail button { flex: 1; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.srail button::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 3px; border-radius: 2px; background: var(--line2); transition: background .25s; }
.srail button.on::before, .srail button.done::before { background: var(--ours); }
.srail button.on::before { box-shadow: 0 0 10px var(--ours); }
.srail button span { position: absolute; left: 0; top: 21px; display: none; font: 500 10px/1.2 var(--mono); color: var(--fg); white-space: nowrap; pointer-events: none; }
.srail button.on span, .srail button:focus-visible span { display: block; }
.srail:has(button:focus-visible) button.on:not(:focus-visible) span { display: none; }
/* 마우스 올림 라벨은 **마우스가 있는 기기에서만** — 터치는 누른 단추에 :hover 가 남아 다음 장면으로 넘어가도
   누른 장면 이름이 남고 지금 장면 이름은 숨었다(10-12 3회차). 키보드(:focus-visible)는 위 두 줄 그대로. */
@media (hover: hover) {
  .srail button:hover span { display: block; }
  .srail:has(button:hover) button.on:not(:hover) span { display: none; }
}
.srail button:nth-last-child(-n+3) span { left: auto; right: 0; }
.vnote { margin: 12px 0 0; font: 400 12px/1.6 var(--sans); color: var(--fg3); }
.cursor {   /* 영상의 청록 점이 커서가 되어 액자 밖으로 나와 진짜 단추를 누른다(이동은 안 함) */
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0;
  transition: transform .95s var(--ease), opacity .3s;
}
.cursor.show { opacity: 1; }
.cursor .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ours); box-shadow: 0 0 0 4px rgba(34,211,238,.25), 0 0 24px var(--ours); }
.cursor svg { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
/* X-ray — 무엇이 코드이고 무엇이 영상인지(검수용 · ?xray=1 일 때만 단추가 보인다) */
.hero.xray .vid video { filter: saturate(.15) brightness(.42); }
.hero.xray .vid::after { content: "영상 · 36초 · 1080p"; position: absolute; left: 10px; top: 10px; font: 600 10.5px/1 var(--mono); padding: 4px 8px; border-radius: 4px; background: rgba(234,241,248,.9); color: #04121A; }
.hero.xray [data-code] { outline: 1px dashed var(--ours); outline-offset: 3px; }
.hero.xray [data-code]::before { content: attr(data-code); position: absolute; left: 6px; top: -9px; z-index: 3; font: 600 10px/1 var(--mono); padding: 3px 7px; border-radius: 4px; background: var(--ours); color: var(--ours-ink); white-space: nowrap; }
.hero.xray .copy [data-code], .hero.xray .strip, .hero.xray .cnt { position: relative; }
@media (max-width: 960px) {
  .hero > .in { grid-template-columns: 1fr; }
  .hero .sub { max-width: none; }
  .stage .tools { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding-top: 92px; }
  /* 폰 — 단추(일시정지·소리)를 **둘째 줄**로 내리고 로그 칸이 첫 줄 전체를 쓴다(10-12 3회차).
     단추가 첫 줄 칸을 차지해 로그 칸이 26~45% 폭으로 줄고, 장면마다 줄 수가 달라 스트립이 54↔72px(390)·90/108/126px(320)로
     들썩여 아래 페이지 전체가 흔들렸다. 둘째 줄은 시각(왼쪽)·단추(오른쪽) · 높이 32px 고정이라 단추가 숨어 있어도(재생 전) 같은 높이.
     로그 칸 높이는 home2.js fitLog() 가 장면 16곳 중 가장 긴 문구에 맞춰 고정한다(3em 은 JS 가 없을 때의 바닥값). */
  .strip { grid-template-columns: auto 1fr auto auto; grid-template-rows: auto minmax(32px, auto); row-gap: 6px; font-size: 12px; align-items: start; }
  .strip .sid { grid-row: 1; grid-column: 1; }
  .strip .log { grid-row: 1; grid-column: 2 / -1; white-space: normal; min-height: 3em; }
  /* 시각은 한 줄로만(아주 좁은 폭 280·300 에서 단추 둘에 밀려 두 줄이 되면 둘째 줄이 32 → 36px 로 커졌다 · 넘치면 잘린다) */
  .strip .tm { display: block; grid-row: 2; grid-column: 1 / 3; align-self: center; white-space: nowrap; overflow: hidden; min-width: 0; }
  .strip .pp { grid-row: 2; grid-column: 3; align-self: center; }
  .strip .snd { grid-row: 2; grid-column: 4; align-self: center; }
  /* 폰 — 두 줄 카드는 액자(약 200px 높이)의 아래 1/4 을 덮어 영상 글자에 닿는다(10-12 실측 y 0.74) → 한 줄(폰용 문구)만 */
  .card { min-width: 0; width: auto; max-width: 48%; padding: 4px 9px; }
  .card .k { display: none; }
  .card .v { font-size: 11px; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chips { max-width: 60%; }
  .chip { font-size: 10px; padding: 4px 7px; }
  .vid .play button { padding: 8px 14px 8px 8px; font-size: 13px; }
  .vid .play .ic { width: 34px; height: 34px; font-size: 12px; }
}

/* ── 공통 구획 ───────────────────────────────────────────────────── */
.sc { padding: clamp(56px, 8vw, 104px) 0; }
.sc.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eb { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--accent-text); margin: 0 0 10px; }
.sc h2 { margin: 0; font: 700 clamp(26px, 3vw, 40px)/1.2 var(--sans); letter-spacing: -.03em; }
.sc .lead { margin: 10px 0 0; color: var(--fg2); max-width: 60ch; font-size: clamp(15px, 1.15vw, 17px); }
.hdr { margin-bottom: clamp(28px, 4vw, 44px); }

/* 문제 → 해결 3칸 */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pb {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s;
}
.pb:hover { transform: translateY(-4px); border-color: var(--line2); }
.pb .no { font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--bad); display: flex; align-items: center; gap: 8px; }
.pb .no::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.pb .q { margin: 0; font: 600 17px/1.4 var(--sans); letter-spacing: -.02em; color: var(--fg2); text-decoration: line-through; text-decoration-color: rgba(255,107,133,.6); text-decoration-thickness: 1.5px; }
.pb .arrow { font: 500 11px/1 var(--mono); color: var(--accent-text); letter-spacing: .08em; }
.pb h3 { margin: 0; font: 700 clamp(19px, 1.6vw, 22px)/1.3 var(--sans); letter-spacing: -.025em; }
.pb p { margin: 0; color: var(--fg2); font-size: 15px; flex: 1; }
.pb p b { color: var(--fg); font-weight: 600; }
.pb a { color: var(--accent-text); font-weight: 500; font-size: 14px; text-decoration: none; }
.pb a:hover { text-decoration: underline; }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr; } }

/* 기능 흐름 — 실제로 도는 순서라 번호를 쓴다 */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 25px; height: 2px; background: linear-gradient(90deg, var(--ours), var(--line2)); opacity: .6; }
.fst { position: relative; padding: 0 4px; counter-increment: st; }
.fst .n {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--ours); color: var(--accent-text); font: 600 14px/1 var(--mono);
  box-shadow: 0 0 0 6px var(--bg); position: relative; z-index: 1;
}
.fst .n::before { content: counter(st, decimal-leading-zero); }
.fst h3 { margin: 16px 0 6px; font: 700 19px/1.3 var(--sans); letter-spacing: -.02em; }
.fst p { margin: 0; color: var(--fg2); font-size: 14.5px; }
.fst code {
  display: block; margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line);
  font: 500 12px/1.5 var(--mono); color: var(--fg); white-space: normal;
}
.fst code .up { color: var(--accent-text); } .fst code .dn { color: var(--kept); } .fst code .x { color: var(--bad); }
.fst a { display: inline-block; margin-top: 10px; color: var(--accent-text); font-size: 13.5px; text-decoration: none; font-weight: 500; }
.fst a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow::before { left: 24px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--ours), var(--line2)); }
  .fst { padding-left: 70px; }
  .fst .n { position: absolute; left: 0; top: 0; }
  .fst h3 { margin-top: 10px; }
}

/* 숫자 — 운영 DB 실측값(landing.STATS)만 */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.num { padding: 20px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.num b { display: flex; align-items: baseline; gap: 6px; font: 700 clamp(38px, 3.6vw, 52px)/1.05 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.num b > span { font: inherit; }                /* 숫자 — 주인공 */
.num b small { font: 500 clamp(16px, 1.3vw, 19px)/1 var(--sans); color: var(--fg2); letter-spacing: 0; }   /* 단위 — 같은 줄 · 흐리게 */
.num .lb { display: block; margin-top: 10px; font-size: 14.5px; color: var(--fg2); }                   /* 라벨 — ⚠`.num span` 으로 쓰지 말 것(rev2 사고) */
.num.bad b { color: var(--bad); } .num.ours b { color: var(--accent-text); } .num.kept b { color: var(--kept); }
.nums-note { margin: 14px 0 0; font: 400 12.5px/1.6 var(--mono); color: var(--fg3); }
@media (max-width: 560px) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .num { padding: 16px 14px; } .num:last-child { grid-column: 1 / -1; } .num b { font-size: 32px; } }

/* 요금제 — 값은 landing.PLANS 한 곳에서 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.plan.hot { border-color: var(--ours); box-shadow: 0 0 0 1px var(--ours) inset, var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 22px; padding: 5px 10px; border-radius: 999px; background: var(--ours); color: var(--ours-ink); font: 600 11px/1 var(--mono); letter-spacing: .04em; }
.plan h3 { margin: 0; font: 600 16px/1.2 var(--sans); color: var(--fg2); }
.plan .pr { display: flex; align-items: baseline; gap: 6px; }
.plan .pr b { font: 700 clamp(30px, 2.8vw, 38px)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .pr span { color: var(--fg2); font-size: 14px; }
.plan .iv { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--panel2); font: 500 13px/1.3 var(--mono); width: fit-content; }
.plan .iv b { color: var(--accent-text); font-weight: 600; }
.plan .cap { margin: 2px 0 0; color: var(--fg2); font-size: 14.5px; flex: 1; }
.plan .b { margin-top: 10px; align-self: flex-start; }
.pnote { margin: 18px 0 0; color: var(--fg2); font-size: 14.5px; }
.pnote b { color: var(--fg); font-weight: 600; }
.pnote a { color: var(--accent-text); text-decoration: none; font-weight: 500; white-space: nowrap; }   /* 390 에서 링크 하나가 두 줄로 쪼개졌다(10-12 검수) */
.pnote a:hover { text-decoration: underline; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* 맺음 CTA — 신청은 /apply 한 벌 */
.ct { text-align: center; }
.ct .in { display: flex; flex-direction: column; align-items: center; }
.ct .lead { max-width: 56ch; }
.ct .opb { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.ct .tel { margin: 22px 0 0; font-size: 14.5px; color: var(--fg2); }
.ct .tel b { color: var(--fg); font-weight: 600; font-family: var(--mono); }

/* 바닥 */
.ft { padding: 44px 0 36px; border-top: 1px solid var(--line); background: var(--bg2); font-size: 13px; color: var(--fg2); }
.ft .fl { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
.ft .fl a { text-decoration: none; color: var(--fg2); } .ft .fl a:hover { color: var(--fg); }
.ft .bz { line-height: 1.8; } .ft .bz b { color: var(--fg); font-weight: 600; }
.ft .cp { margin-top: 14px; color: var(--fg3); font-size: 12.5px; }

/* 스크롤 리빌 — JS 가 붙인 클래스가 있을 때만 걸린다(JS 가 죽어도 내용은 보인다) */
.js [data-in] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-in].seen { opacity: 1; transform: none; }
.js .hero .copy > * { opacity: 0; transform: translateY(18px); animation: up .8s var(--ease) forwards; }
.js .hero .copy > :nth-child(1) { animation-delay: .05s } .js .hero .copy > :nth-child(2) { animation-delay: .15s }
.js .hero .copy > :nth-child(3) { animation-delay: .25s } .js .hero .copy > :nth-child(4) { animation-delay: .35s } .js .hero .copy > :nth-child(5) { animation-delay: .45s }
.js .stage { opacity: 0; animation: up 1s var(--ease) .3s forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-in], .js .hero .copy > *, .js .stage { opacity: 1; transform: none; }
  .strip .log::after { animation: none; }
}
