/* 제안서(agent·manager) 공용 — 11/2 샘플 홈페이지·1분 영상과 같은 딥네이비+골드로 통일.
   움직임은 라이브러리 없이 CSS + deck.js(IntersectionObserver). 인쇄(make_print.py)는 @media print에서 흰 종이로 바뀐다. */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --bg: #0b1120; --bg2: #111827; --card: rgba(255,255,255,.035); --card-hi: rgba(255,255,255,.06);
  --ink: #f8fafc; --stone: #a7b3c4; --mute: #7c8799;
  --line: rgba(255,255,255,.09); --gline: rgba(212,175,55,.28);
  --gold: #d4af37; --gold-hi: #f3e2a4; --accent: #e8c766;
  --gold-grad: linear-gradient(135deg, #f1dd96 0%, #d4af37 48%, #a8862a 100%);
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.75; font-size: 16px;
  word-break: keep-all; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
strong, b { color: var(--ink); }
a { color: inherit; }

/* 맨 위 읽은 만큼 차는 금색 줄 */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; background: var(--gold-grad);
  transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ── 첫 화면 ── */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 100svh;
  display: grid; align-items: center; padding: 64px 24px 120px;
  background: radial-gradient(60% 50% at 18% 20%, rgba(212,175,55,.16), transparent 70%),
              radial-gradient(50% 45% at 90% 85%, rgba(59,82,140,.35), transparent 70%), var(--bg); }
.hero-grid { max-width: 1120px; margin: 0 auto; width: 100%; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fx::after { /* 영상 바닥의 금색 격자 */
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 46%;
  background-image: linear-gradient(rgba(212,175,55,.22) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212,175,55,.22) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(420px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 4s linear infinite; }
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.fx i { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 10px var(--gold); opacity: 0;
  animation: rise var(--d) linear var(--w) infinite; }
@keyframes rise { 10% { opacity: .9; } 90% { opacity: .6; } to { transform: translate(var(--dx), -100svh); opacity: 0; } }

.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--gold-hi); border: 1px solid var(--gline); background: rgba(212,175,55,.08); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px; }
.who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212,175,55,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(212,175,55,0); } 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } }
h1 { font-weight: 900; text-wrap: balance; font-size: clamp(34px, 7.4vw, 62px); line-height: 1.22; letter-spacing: -.035em; margin-bottom: 22px; }
h1 em, .gold { font-style: normal; background: linear-gradient(100deg, #a8862a 0%, #f3e2a4 25%, #d4af37 45%, #f7ecc2 60%, #a8862a 80%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.sub { font-size: clamp(16px, 2.2vw, 18.5px); color: var(--stone); max-width: 52ch; margin-bottom: 34px; }
.intro > * { animation: up 1s var(--ease) both; }
.intro > :nth-child(2) { animation-delay: .12s; } .intro > :nth-child(3) { animation-delay: .26s; } .intro > :nth-child(4) { animation-delay: .4s; }
@keyframes up { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }

.qr { display: flex; gap: 20px; align-items: center; max-width: 520px; padding: 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--gline); backdrop-filter: blur(8px); }
.qr .code { width: 112px; height: 112px; flex: none; background: #fff; border-radius: 10px; padding: 7px; }
.qr .txt b { font-size: 17px; display: block; margin-bottom: 4px; }
.qr .txt span { font-size: 14px; color: var(--stone); display: block; margin-bottom: 8px; }
.qr .txt a { display: inline-block; text-decoration: none; font-weight: 800; font-size: 14px; color: #111827;
  background: var(--gold-grad); border-radius: 999px; padding: 8px 16px; box-shadow: 0 6px 24px rgba(212,175,55,.3); }
@media (max-width: 600px) { .qr .code { display: none; } .qr .txt a { font-size: 15px; padding: 11px 20px; } }

/* 샘플 화면 카드 — 뒤에서 금빛이 돈다 */
.mock { position: relative; justify-self: center; width: min(78vw, 330px); animation: up 1.2s var(--ease) .3s both; }
.mock::before { content: ""; position: absolute; inset: -55%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(212,175,55,.22) 0 4deg, transparent 4deg 16deg);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.mock .card { border-radius: 26px; padding: 6px; background: var(--gold-grad); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(212,175,55,.25);
  transform: perspective(900px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform .4s var(--ease);
  animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.mock img { display: block; width: 100%; height: auto; aspect-ratio: 780 / 1400; object-fit: cover; object-position: top; border-radius: 21px; }
.mock .tag { position: absolute; left: -14px; bottom: 18%; font-size: 13px; font-weight: 800; color: #111827; background: var(--gold-grad);
  border-radius: 999px; padding: 7px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: bob 5s ease-in-out -2s infinite; }
.mock .tag.r { left: auto; right: -12px; bottom: auto; top: 14%; background: #f8fafc; animation-delay: -3.5s; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 24px; height: 38px; border: 2px solid var(--gline); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { to { transform: translateY(12px); opacity: 0; } }

/* 흐르는 띠 */
.ticker { overflow: hidden; border-block: 1px solid var(--gline); background: rgba(212,175,55,.06); padding: 14px 0; }
.ticker > div { display: flex; width: max-content; animation: flow 38s linear infinite; }
.ticker span { white-space: nowrap; font-weight: 800; font-size: 15px; color: var(--gold-hi); padding-right: 2.2em; }
.ticker span::after { content: "✦"; color: var(--gold); margin-left: 2.2em; }
@keyframes flow { to { transform: translateX(-50%); } }

/* ── 본문 ── */
.page { max-width: 760px; margin: 0 auto; padding: 30px 24px 90px; }
section { padding-top: 76px; }
.label { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--accent); margin-bottom: 12px; }
.label::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
h2 { font-weight: 800; text-wrap: balance; font-size: clamp(24px, 5vw, 34px); line-height: 1.32; letter-spacing: -.03em; margin-bottom: 18px; }
p.lead { color: var(--stone); max-width: 62ch; margin-bottom: 8px; }

.nums { display: grid; gap: 12px; margin-top: 22px; }
.num { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; display: flex; gap: 20px; align-items: baseline; }
.num::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
.num.in::after { transform: scaleX(1); }
.num .v { font-weight: 900; font-size: clamp(22px, 4.6vw, 28px); letter-spacing: -.03em; flex: none; width: 5.4em; font-variant-numeric: tabular-nums;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num .t { font-size: 15px; color: var(--stone); }
.src { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; }

.hook, .check { position: relative; border-radius: 22px; padding: 36px 30px; border: 1.5px solid transparent;
  background: linear-gradient(160deg, #142040, #0d1528) padding-box,
              conic-gradient(from var(--a), rgba(212,175,55,.15), #f3e2a4, rgba(212,175,55,.15) 30%, rgba(212,175,55,.15)) border-box;
  animation: orbit 6s linear infinite; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
@keyframes orbit { to { --a: 1turn; } }
.hook .q { font-weight: 900; font-size: clamp(22px, 4.8vw, 30px); line-height: 1.42; letter-spacing: -.03em; margin-bottom: 16px; }
.hook p:not(.q), .check p { color: var(--stone); font-size: 15.5px; max-width: 56ch; }
.check { margin-top: 26px; padding: 30px 28px; }
.check > b { font-size: 18px; display: block; margin-bottom: 12px; }
.check p { margin-bottom: 10px; font-size: 14.8px; }
.check code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.4px; background: rgba(212,175,55,.12); color: var(--gold-hi); border-radius: 6px; padding: 2px 8px; }
.check .fine { font-size: 13px; color: var(--mute); margin: 0; }

.feats { display: grid; gap: 14px; margin-top: 22px; counter-reset: f; }
@media (min-width: 720px) { .feats { grid-template-columns: 1fr 1fr; } }
.feat { counter-increment: f; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px 22px;
  transition: transform .5s var(--ease), border-color .5s, background .5s; }
.feat::before { content: counter(f, decimal-leading-zero); display: block; font-weight: 900; font-size: 13px; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; }
.feat:hover { transform: translateY(-4px); border-color: var(--gline); background: var(--card-hi); }
.feat h3 { font-size: 17.5px; font-weight: 800; line-height: 1.4; margin-bottom: 7px; }
.feat p { font-size: 14.8px; color: var(--stone); }

.honest { margin-top: 18px; display: grid; gap: 10px; }
.honest div { padding: 16px 20px; border-radius: 14px; background: var(--card); border-left: 3px solid var(--gold); }
.honest b { font-size: 16px; display: block; }
.honest span { font-size: 14.4px; color: var(--stone); }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
tr:last-child > * { border-bottom: none; }
th { font-weight: 800; white-space: nowrap; width: 8.4em; color: var(--gold-hi); }
td .price { font-weight: 900; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
td .note { display: block; font-size: 13.6px; color: var(--stone); margin-top: 4px; }
.dim { font-size: 13px; color: var(--stone); }

.cmp { table-layout: fixed; }
.cmp th, .cmp td { padding: 13px 14px; font-size: 14.2px; width: auto; }
.cmp thead th { font-size: 13.6px; background: rgba(255,255,255,.04); white-space: normal; color: var(--ink); }
.cmp thead th:last-child { color: #111827; background: var(--gold-grad); }
.cmp thead th:first-child { width: 6.6em; }
.cmp tbody th { font-size: 13.6px; color: var(--stone); white-space: normal; }
.cmp .them { color: var(--mute); }
.cmp .us { color: var(--ink); font-weight: 700; background: rgba(212,175,55,.07); box-shadow: inset 2px 0 0 var(--gold); }
.fine { display: block; font-size: 12.6px; color: var(--mute); font-weight: 400; margin-top: 3px; }
@media (max-width: 430px) { .cmp thead th:first-child { width: 4.8em; } .cmp th, .cmp td { padding: 10px 9px; font-size: 13.2px; } .cmp thead th, .cmp tbody th { font-size: 12.8px; } }

.steps { position: relative; display: grid; gap: 20px; margin-top: 22px; }
.steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--gold-grad);
  transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
.steps.in::before { transform: scaleY(1); }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.step .no { font-weight: 900; color: #111827; background: var(--gold-grad); border-radius: 50%; width: 36px; height: 36px; flex: none;
  display: grid; place-items: center; font-size: 15px; box-shadow: 0 0 0 6px var(--bg); }
.step b { font-size: 16.5px; display: block; padding-top: 5px; }
.step span { color: var(--stone); font-size: 14.6px; display: block; }

footer { margin-top: 80px; padding-top: 26px; border-top: 1px solid var(--gline); font-size: 14px; color: var(--stone); }
footer b { font-size: 17px; display: block; margin-bottom: 2px; }
footer span { display: block; }
footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* 스크롤하면 떠오르기 (deck.js가 .rv를 붙임) */
.rv { opacity: 0; transform: translateY(34px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--dl, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}

/* ── 인쇄: 흰 종이 + 남색 글 + 금색 포인트 ── */
@media print {
  :root { --bg: #fff; --card: #fff; --card-hi: #fff; --ink: #111827; --stone: #475569; --mute: #64748b;
    --line: #e5e7eb; --gline: #e7d9a8; --accent: #8f7019; --gold-hi: #8f7019; }
  body { font-size: 12.6px; }
  .progress, .fx, .mock, .ticker, .scroll-cue { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero { min-height: 0; padding: 0 0 10px; background: none; display: block; }
  .hero-grid { display: block; }
  .who { color: #8f7019; }
  h1 { font-size: 30px; }
  h1 em, .gold, .num .v { color: #8f7019; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
  .qr { backdrop-filter: none; border-color: #d4af37; }
  .qr .txt a { box-shadow: none; }
  .page { max-width: none; padding: 0; }
  @page { margin: 14mm 13mm; }
  section { padding-top: 26px; }
  .label { display: block; }
  .label, h2 { break-after: avoid; }
  .num::after, .steps::before { transform: none; }
  .hook, .check { background: #fff; border: 1.5px solid #d4af37; box-shadow: none; padding: 22px; }
  .hook p:not(.q), .check p { color: var(--stone); }
  .check code { background: #f8f3e1; color: #111827; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat:hover { transform: none; }
  .cmp thead th:last-child { color: #fff; background: #111827; }
  .cmp .us { background: #fbf7ea; }
  .step .no { box-shadow: none; }
  .hook, .feat, .num, table, .qr, .step, .honest div { break-inside: avoid; }
}
