/* ============================================================
   온다마케팅 — 서비스 랜딩
   기획서 13_디자인가이드 토큰 기반 / 다크 에디토리얼 확장
   ============================================================ */

/* 본문 서체는 /assets/pretendard.css 에서 자체 호스팅 (동적 서브셋 92종) */

:root {
  /* 기획서 정본 컬러 */
  --primary: #1B3A6B;
  --accent: #FF6B2C;
  --accent-soft: #FF8A4F;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* 다크 확장 */
  --ink: #05080F;
  --ink-2: #090E1A;
  --navy: #0C1A30;
  --navy-2: #102542;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);

  --t-100: #FFFFFF;
  --t-200: #D9E1EC;
  --t-400: #93A1B5;
  --t-600: #61708A;

  --paper: #F6F8FB;
  --paper-ink: #111827;
  --paper-ink-2: #374151;
  --paper-line: #E5E7EB;

  --container: 1240px;
  --pad: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--t-200);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: 'tnum' 0;
  overflow-x: hidden;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* 포커스 링 — 제거 금지 (접근성 기준) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- 공통 레이아웃 ---------------- */

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

section { position: relative; }

.band {
  padding-block: clamp(72px, 11vw, 148px);
}

.band--paper {
  background: var(--paper);
  color: var(--paper-ink-2);
}

.band--tight { padding-block: clamp(56px, 8vw, 104px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.band--paper .eyebrow { color: #C2410C; }

.h-sec {
  font-size: clamp(26px, 4.3vw, 46px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--t-100);
  margin: 0 0 18px;
  text-wrap: balance;
}

.band--paper .h-sec { color: var(--paper-ink); }

.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--t-400);
  max-width: 62ch;
  margin: 0;
}

.band--paper .lede { color: var(--paper-ink-2); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

@media (min-width: 900px) {
  .sec-head.split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
}

.num-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--t-600);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 노이즈 / 배경 ---------------- */

.grain {
  position: fixed;
  inset: -120%;
  z-index: 9998;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grainShift 7s steps(6) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 3%); }
  40%  { transform: translate(4%, -5%); }
  60%  { transform: translate(-3%, -3%); }
  80%  { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .5;
}

/* ---------------- 프리로더 ---------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}

.loader.done { opacity: 0; visibility: hidden; }

.loader__inner {
  width: min(420px, 78vw);
  text-align: left;
}

.loader__mark {
  font-size: 13px;
  letter-spacing: .32em;
  color: var(--t-600);
  font-weight: 700;
  margin-bottom: 18px;
}

.loader__num {
  font-size: clamp(52px, 12vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--t-100);
  font-variant-numeric: tabular-nums;
}

.loader__bar {
  margin-top: 20px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .25s linear;
}

/* ---------------- 커서 ---------------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-100px, -100px);
  transition: width .3s var(--ease), height .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
  mix-blend-mode: difference;
  display: none;
}

.cursor.hot {
  width: 66px; height: 66px;
  background: var(--accent);
  border-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* ---------------- 내비 ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}

.nav.solid {
  background: rgba(5, 8, 15, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.nav__in {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--t-100);
  font-size: 17px;
}

.brand__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, .2);
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--t-600);
  margin-top: -3px;
}

.nav__menu {
  display: none;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t-400);
}

.nav__menu a { position: relative; padding-block: 6px; transition: color .25s; }
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__menu a:hover { color: var(--t-100); }
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { display: none; }

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__cta { display: inline-flex; }
}

.nav__prog {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.burger {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--t-100);
  transition: transform .35s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 5px; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1024px) { .burger { display: none; } }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: var(--ink-2);
  padding: 96px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  overflow-y: auto;
}
.sheet.open { clip-path: inset(0 0 0 0); }
.sheet a {
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--t-100);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.sheet .btn { margin-top: 26px; }

/* ---------------- 버튼 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}

.btn__t { position: relative; z-index: 2; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px -14px rgba(255, 107, 44, .85);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #E8551A;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--t-100);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover { border-color: var(--t-400); background: rgba(255, 255, 255, .07); }

.btn--dark {
  background: var(--primary);
  color: #fff;
}
.btn--dark:hover { background: #16305a; transform: translateY(-2px); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--wide { width: 100%; }

/* ---------------- 히어로 ---------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-block: 132px 72px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(27, 58, 107, .55) 0%, transparent 58%),
    radial-gradient(90% 70% at 8% 92%, rgba(255, 107, 44, .16) 0%, transparent 60%),
    var(--ink);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .9;
  pointer-events: none;
}

.hero__in {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t-200);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
  margin-bottom: 26px;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .65);
  animation: pulse 2.1s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(38px, 8.4vw, 104px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.055em;
  color: var(--t-100);
  margin: 0 0 26px;
}

.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}
.ready .hero h1 .ln > span { transform: translateY(0); }
.ready .hero h1 .ln:nth-child(2) > span { transition-delay: .1s; }
.ready .hero h1 .ln:nth-child(3) > span { transition-delay: .2s; }

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 8%, var(--accent-soft) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.75;
  color: var(--t-400);
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
}

@media (min-width: 760px) {
  .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  background: rgba(9, 14, 26, .72);
  backdrop-filter: blur(8px);
  padding: 20px 18px;
}
.stat b {
  display: block;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.045em;
  color: #FFFFFF;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat b i { font-style: normal; font-size: .58em; color: var(--t-400); margin-left: 2px; font-weight: 700; }
.stat b > span { display: inline; font-size: inherit; color: inherit; margin: 0; font-weight: inherit; }
.stat > span {
  display: block;
  font-size: 12.5px;
  color: var(--t-600);
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.scroll-cue {
  position: absolute;
  right: calc(var(--pad) + 4px);
  bottom: 26px;
  font-size: 10.5px;
  letter-spacing: .28em;
  color: var(--t-600);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 34px;
  background: linear-gradient(var(--t-600), transparent);
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 1100px) { .scroll-cue { display: none; } }

/* ---------------- 티커 ---------------- */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding-block: 18px;
}
.ticker__row {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker__row span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-inline: 22px;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--t-600);
  white-space: nowrap;
}
.ticker__row span::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .75;
}
.ticker__row span.on { color: var(--t-100); }

/* ---------------- 리빌 ---------------- */

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .09s; }
.rv[data-d="2"] { transition-delay: .18s; }
.rv[data-d="3"] { transition-delay: .27s; }
.rv[data-d="4"] { transition-delay: .36s; }
.rv[data-d="5"] { transition-delay: .45s; }

/* ---------------- 문제 3열 ---------------- */

.pains {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pain {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  position: relative;
  overflow: hidden;
  transition: border-color .35s, transform .45s var(--ease);
}
.pain:hover { border-color: var(--line-2); transform: translateY(-4px); }
.pain__q {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  color: var(--t-100);
  letter-spacing: -.035em;
  line-height: 1.45;
  margin: 0 0 14px;
}
.pain__a { font-size: 15px; color: var(--t-400); margin: 0 0 22px; line-height: 1.75; }
.pain__k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.pain__k::after { content: '→'; transition: transform .3s var(--ease); }
.pain:hover .pain__k::after { transform: translateX(4px); }
.pain__idx {
  position: absolute;
  right: 20px; top: 14px;
  font-size: 54px;
  font-weight: 800;
  color: rgba(255, 255, 255, .045);
  letter-spacing: -.05em;
}

/* ---------------- 서비스 6블록 ---------------- */

.svcs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 900px) { .svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.svc {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  transition: background-color .4s var(--ease);
  min-height: 210px;
  display: flex;
  flex-direction: column;
}
.svc::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.svc:hover { background: rgba(255, 255, 255, .035); }
.svc:hover::before { transform: scaleX(1); }
.svc__n { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--t-600); margin-bottom: auto; }
.svc h3 {
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--t-100);
  margin: 22px 0 8px;
}
.svc p { font-size: 14px; color: var(--t-400); margin: 0 0 12px; line-height: 1.7; }
.svc .price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 차별점 (핀 고정) ---------------- */

.edge { background: var(--ink-2); }

.edge__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .edge__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: start; }
  .edge__left { position: sticky; top: 128px; }
}

.edge__list { display: grid; gap: 16px; }

.edge-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  background: linear-gradient(160deg, rgba(27, 58, 107, .32), rgba(255, 255, 255, .02));
  position: relative;
  overflow: hidden;
}
.edge-card__n {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.edge-card h3 {
  font-size: clamp(21px, 2.7vw, 30px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.35;
  color: var(--t-100);
  margin: 0 0 14px;
}
.edge-card p { font-size: 15.5px; color: var(--t-400); margin: 0; line-height: 1.8; }
.edge-card .fine {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--warning);
  background: rgba(245, 158, 11, .08);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--t-200);
  line-height: 1.7;
}

/* ---------------- 리포트 데모 ---------------- */

.report {
  display: grid;
  gap: 26px;
}
@media (min-width: 1000px) {
  .report { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 37, 66, .55), rgba(9, 14, 26, .75));
  overflow: hidden;
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .028);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.panel__bar b {
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--t-400);
  letter-spacing: -.01em;
}
.panel__bar .live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 20px 22px 4px;
  align-items: baseline;
}
.chart-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--t-100);
  margin: 0;
  letter-spacing: -.03em;
}
.kv { font-size: 12.5px; color: var(--t-600); font-weight: 600; }
.kv b { color: var(--t-100); font-variant-numeric: tabular-nums; font-size: 14px; }
.kv b.up { color: var(--success); }

#rankChart { width: 100%; height: 300px; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 4px 22px 20px;
  font-size: 12px;
  color: var(--t-600);
  font-weight: 600;
}
.legend i { font-style: normal; display: inline-flex; align-items: center; gap: 7px; }
.legend .sw { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }

.alerts { padding: 18px; display: grid; gap: 11px; align-content: start; }
.alert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .028);
}
.alert__ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  background: rgba(34, 197, 94, .14);
  color: var(--success);
}
.alert__ic.warn { background: rgba(245, 158, 11, .14); color: var(--warning); }
.alert__ic.info { background: rgba(255, 107, 44, .14); color: var(--accent); }
.alert b { display: block; font-size: 13.5px; color: var(--t-100); font-weight: 700; letter-spacing: -.02em; }
.alert span { display: block; font-size: 12.5px; color: var(--t-600); line-height: 1.6; margin-top: 2px; }

/* ---------------- 견적 산출기 ---------------- */

.calc {
  display: grid;
  gap: 22px;
}
@media (min-width: 1040px) {
  .calc { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}

.calc__box {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--paper-line);
  background: #FBFCFE;
}
.preset {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--paper-ink-2);
  cursor: pointer;
  transition: all .25s var(--ease);
  min-height: 44px;
}
.preset:hover { border-color: var(--primary); color: var(--primary); }
.preset.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.grp { border-bottom: 1px solid var(--paper-line); }
.grp:last-child { border-bottom: 0; }
.grp__h {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #6B7280;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}

.item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #F1F3F7;
  cursor: pointer;
  transition: background-color .2s;
  min-height: 52px;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: #FAFBFD; }

.item input { position: absolute; opacity: 0; width: 0; height: 0; }
.box {
  width: 22px; height: 22px;
  border: 1.5px solid #CBD3DF;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: all .2s var(--ease);
  flex: none;
}
.box::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .2s var(--ease);
  margin-top: -2px;
}
.item input:checked + .box { background: var(--primary); border-color: var(--primary); }
.item input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.item input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }

.item__l { font-size: 14.5px; color: var(--paper-ink); font-weight: 600; letter-spacing: -.02em; }
.item__l em { font-style: normal; display: block; font-size: 12px; color: #8792A5; font-weight: 500; margin-top: 1px; }
.item__p { font-size: 14.5px; font-weight: 700; color: var(--paper-ink-2); font-variant-numeric: tabular-nums; }

.item__r { display: flex; align-items: center; gap: 12px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  visibility: hidden;
}
.qty button {
  width: 30px; height: 32px;
  border: 0;
  background: #F3F5F9;
  color: var(--paper-ink-2);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s;
}
.qty button:hover { background: var(--primary); color: #fff; }
.qty b {
  min-width: 30px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--paper-ink);
  font-variant-numeric: tabular-nums;
}

.item__p { min-width: 96px; text-align: right; }

@media (max-width: 520px) {
  .item { grid-template-columns: 22px minmax(0, 1fr); row-gap: 8px; }
  .item__r { grid-column: 2; justify-content: flex-end; }
}

.item.locked { background: #FFF7F2; cursor: default; }
.item.locked .box { background: var(--accent); border-color: var(--accent); }
.item.locked .box::after { transform: rotate(-45deg) scale(1); }
.item.locked .item__l { color: #C2410C; }
.item.locked .item__p { color: #C2410C; }

.sum {
  position: sticky;
  top: 100px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: 0 26px 60px -30px rgba(11, 26, 48, .6);
}
.sum__k { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }
.sum__v {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}
.sum__v small { font-size: .42em; font-weight: 700; opacity: .68; margin-left: 4px; }
.sum__note { font-size: 12.5px; color: rgba(255, 255, 255, .62); margin: 0 0 18px; }

.sum__lines {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 14px;
  margin-bottom: 18px;
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 7px;
}
.sum__lines::-webkit-scrollbar { width: 4px; }
.sum__lines::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 4px; }
.sline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
}
.sline b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sline.acc { color: var(--accent-soft); }

.sum__band {
  background: rgba(0, 0, 0, .22);
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 12.8px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 16px;
}
.sum__band b { color: #fff; }

.copied {
  font-size: 12.5px;
  color: #86EFAC;
  font-weight: 700;
  margin-top: 10px;
  min-height: 18px;
}

/* ---------------- 세트 카드 ---------------- */

.sets { display: grid; gap: 18px; }
@media (min-width: 940px) { .sets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.set {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  position: relative;
}
.set:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -32px rgba(17, 24, 39, .34); }
.set.hot { border-color: var(--accent); box-shadow: 0 22px 48px -30px rgba(255, 107, 44, .55); }
.set__flag {
  position: absolute;
  top: -11px; left: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 999px;
}
.set h3 { font-size: 21px; font-weight: 800; letter-spacing: -.035em; color: var(--paper-ink); margin: 0 0 6px; }
.set__d { font-size: 13.5px; color: #6B7280; margin: 0 0 18px; min-height: 40px; line-height: 1.6; }
.set__p {
  font-size: clamp(25px, 3.2vw, 31px);
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.set__p small { font-size: .45em; color: #9AA5B6; font-weight: 700; letter-spacing: 0; }
.set__u { font-size: 12.5px; color: #9AA5B6; margin: 4px 0 20px; }
.set ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.set li {
  font-size: 14px;
  color: var(--paper-ink-2);
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 9px;
  line-height: 1.6;
}
.set li::before { content: '✓'; color: var(--success); font-weight: 800; font-size: 13px; }
.set li.off { color: #A6AEBC; }
.set li.off::before { content: '+'; color: var(--accent); }
.set .btn { margin-top: auto; }

/* ---------------- 계약 형태 비교 ---------------- */

.compare {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ctype {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 36px);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
}
.ctype.g { border-color: rgba(34, 197, 94, .35); background: linear-gradient(165deg, rgba(34, 197, 94, .09), rgba(255, 255, 255, .014)); }
.ctype__k {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--t-600);
  margin-bottom: 12px;
}
.ctype.g .ctype__k { color: var(--success); }
.ctype h3 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.04em; color: var(--t-100); margin: 0 0 8px; }
.ctype__p { font-size: 15px; font-weight: 700; color: var(--accent); margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.ctype ol { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 12px; counter-reset: c; }
.ctype ol li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  font-size: 14.5px;
  color: var(--t-200);
  line-height: 1.7;
  counter-increment: c;
}
.ctype ol li::before {
  content: counter(c);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--t-100);
}
.ctype__x {
  padding: 15px 17px;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.72;
  background: rgba(0, 0, 0, .26);
  border: 1px solid var(--line);
  color: var(--t-200);
}
.ctype__x b { color: var(--t-100); }

.cmp-table {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > div { padding: 14px 16px; }
.cmp-row > div + div { border-left: 1px solid var(--line); }
.cmp-row.head { background: rgba(255, 255, 255, .04); font-weight: 800; color: var(--t-100); font-size: 13px; }
.cmp-row .lbl { color: var(--t-600); font-weight: 700; font-size: 13px; }
.cmp-row .v { color: var(--t-200); font-variant-numeric: tabular-nums; }

/* ---------------- 미포함 ---------------- */

.exclude {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 38px);
  background: rgba(255, 255, 255, .022);
}
.exclude ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.exclude li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--ink-2);
  font-size: 14.5px;
  color: var(--t-400);
}
.exclude li b { color: var(--t-200); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* ---------------- 절차 (가로 핀) ---------------- */

.flow-pin { position: relative; }
.flow-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.flow-inner { width: 100%; }
.flow-track {
  display: flex;
  gap: 18px;
  padding-inline: var(--pad);
  will-change: transform;
}
.step {
  flex: none;
  width: min(320px, 74vw);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.step__n {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .1);
  line-height: 1;
  margin-bottom: auto;
}
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -.035em; color: var(--t-100); margin: 20px 0 8px; }
.step p { font-size: 14px; color: var(--t-400); margin: 0 0 16px; line-height: 1.7; }
.step__d {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  padding: 6px 11px;
  border: 1px solid rgba(255, 107, 44, .35);
  border-radius: 999px;
  align-self: flex-start;
}

.flow-head { padding-inline: var(--pad); max-width: var(--container); margin-inline: auto; }

/* 모바일: 가로 핀 대신 세로 스택 */
@media (max-width: 860px) {
  .flow-sticky { position: static; height: auto; display: block; padding-block: clamp(56px, 8vw, 104px); }
  .flow-track { flex-direction: column; transform: none !important; max-width: var(--container); margin-inline: auto; }
  .step { width: auto; min-height: 0; }
}
@media (min-width: 861px) {
  .flow-pin { padding-top: clamp(56px, 8vw, 96px); }
}

/* ---------------- 사례 ---------------- */

.cases { display: grid; gap: 18px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, .026);
  transition: transform .45s var(--ease), border-color .3s;
}
.case:hover { transform: translateY(-5px); border-color: var(--line-2); }
.case__top {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.case__cat { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--t-600); }
.case__badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  color: var(--success);
}
.case__badge.w { background: rgba(245, 158, 11, .14); color: var(--warning); }
.case__body { padding: 24px; }
.case h3 { font-size: 17px; font-weight: 700; color: var(--t-100); letter-spacing: -.03em; margin: 0 0 16px; line-height: 1.5; }
.rankmove {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.rankmove .from { font-size: 26px; font-weight: 800; color: var(--t-600); letter-spacing: -.04em; }
.rankmove .arrow { color: var(--accent); font-weight: 800; }
.rankmove .to { font-size: 40px; font-weight: 800; color: var(--t-100); letter-spacing: -.05em; line-height: 1; }
.rankmove .to i { font-style: normal; font-size: .42em; color: var(--t-400); margin-left: 3px; }
.case__meta { display: grid; gap: 7px; font-size: 13px; color: var(--t-400); }
.case__meta span { display: flex; justify-content: space-between; gap: 12px; }
.case__meta b { color: var(--t-200); font-weight: 700; font-variant-numeric: tabular-nums; }

.samplemark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .08);
  padding: 8px 14px;
  border-radius: 999px;
  margin-top: 26px;
}

/* ---------------- FAQ ---------------- */

.faq { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 24px 44px 24px 0;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--t-100);
  cursor: pointer;
  position: relative;
  line-height: 1.5;
  min-height: 64px;
}
.qa__q::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 13px; height: 13px;
  border-right: 1.6px solid var(--t-400);
  border-bottom: 1.6px solid var(--t-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .4s var(--ease), border-color .3s;
}
.qa.open .qa__q::after { transform: translateY(-20%) rotate(-135deg); border-color: var(--accent); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--t-400);
  line-height: 1.85;
  max-width: 70ch;
  padding-right: 20px;
}
.qa__a p strong { color: var(--t-100); font-weight: 700; }

/* ---------------- 안심 박스 + 최종 CTA ---------------- */

.assure {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(44px, 6vw, 72px);
}
@media (min-width: 880px) { .assure { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.assure > div { background: var(--ink-2); padding: 26px 24px; }
.assure b { display: block; font-size: 15.5px; font-weight: 700; color: var(--t-100); letter-spacing: -.03em; margin-bottom: 7px; }
.assure p { margin: 0; font-size: 13.8px; color: var(--t-400); line-height: 1.7; }

.final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(27, 58, 107, .7), transparent 62%),
    radial-gradient(70% 100% at 78% 100%, rgba(255, 107, 44, .2), transparent 60%),
    var(--ink);
  text-align: center;
}
.final h2 {
  font-size: clamp(30px, 6.4vw, 74px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
  color: var(--t-100);
  margin: 0 0 22px;
  text-wrap: balance;
}
.final p { font-size: clamp(15px, 1.8vw, 18px); color: var(--t-400); margin: 0 auto 36px; max-width: 54ch; }
.final .hero__cta { justify-content: center; margin-bottom: 0; }

/* ---------------- 푸터 ---------------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 56px 120px;
  font-size: 13.5px;
  color: var(--t-600);
}
@media (min-width: 900px) { .foot { padding-bottom: 56px; } }

.foot__grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.foot h4 { font-size: 12px; letter-spacing: .14em; color: var(--t-400); margin: 0 0 14px; font-weight: 800; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a:hover { color: var(--t-200); }
.foot__note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); line-height: 1.8; font-size: 12.5px; }
.foot__note b { color: var(--t-400); }

/* ---------------- 모바일 하단 고정 바 ---------------- */

.mbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 880;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  background: rgba(5, 8, 15, .93);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
.mbar.show { transform: none; }
.mbar a {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--t-100);
  letter-spacing: -.02em;
}
.mbar a + a { background: var(--accent); color: #fff; }

@media (min-width: 900px) { .mbar { display: none; } }

/* ---------------- 모션 축소 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero h1 .ln > span { transform: none; }
  .grain { display: none; }
  .flow-sticky { position: static; height: auto; display: block; }
  .flow-track { flex-direction: column; transform: none !important; max-width: var(--container); margin-inline: auto; }
  .step { width: auto; min-height: 0; }
}
