:root {
  --bezel: #e8ebee;   /* 페이지 바탕: 방송 모니터 베젤 같은 차가운 회색 */
  --paper: #ffffff;
  --ink: #1d2329;     /* 본문 */
  --slate: #5b6672;   /* 보조 글 */
  --line: #cfd5db;
  --device: #15191d;  /* 폰 프레임, 자막 바 */
  --caption: #ffd43b; /* 방송 자막 노랑: 포인트는 이 색 하나 */
  --rec: #e8453c;
  --head: "IBM Plex Sans KR", "Pretendard", sans-serif;
  --body: "Pretendard", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bezel); color: var(--ink); font: 400 17px/1.65 var(--body); word-break: keep-all; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--caption); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 10; background: rgb(232 235 238 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; gap: 40px; height: 68px; }
.wordmark { font: 700 21px/1 var(--head); text-decoration: none; letter-spacing: -.01em; }
.wordmark::after { content: ""; display: block; height: 4px; margin-top: 5px; background: var(--caption); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--ink); }

/* 버튼 */
.btn { display: inline-block; padding: 13px 22px; border-radius: 6px; font: 600 15px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn--dark { background: var(--device); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--paper); }
.btn--yellow { background: var(--caption); color: var(--device); }
.btn--line-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn--line-light:hover { border-color: #fff; }

/* 자막 바 제목: 이 사이트의 시그니처 */
.caption-head { margin: 0; font: 700 clamp(40px, 5.2vw, 68px)/1.18 var(--head); letter-spacing: -.02em; }
.caption-line { display: table; padding: .06em .32em .1em; margin-bottom: .14em; background: var(--device); color: #fff; }
.caption-line:last-child { color: var(--caption); }
.caption-head--light .caption-line { background: #fff; color: var(--device); }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: center; padding: 88px 0 96px; }
.lede { max-width: 33em; margin: 32px 0 28px; font-size: 19px; color: var(--ink); }
.facts { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--slate); font-size: 15.5px; }
.facts strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; gap: 12px; }

/* 폰 프레임 */
.phone { position: relative; display: block; width: 100%; padding: 12px; border: 0; border-radius: 34px; background: var(--device); cursor: pointer; box-shadow: 0 30px 60px -28px rgb(21 25 29 / .55); }
.phone video, .phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; background: #000; }
.phone__play { position: absolute; left: 50%; bottom: 30px; translate: -50% 0; padding: 9px 16px; border-radius: 4px; background: rgb(21 25 29 / .82); color: #fff; font: 600 14px/1 var(--body); white-space: nowrap; }
.phone__play::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--rec); vertical-align: 1px; }
.phone:hover .phone__play { background: var(--device); }
.hero__media { margin: 0; }
.hero__media figcaption { margin-top: 16px; font-size: 14px; color: var(--slate); line-height: 1.55; }

/* 공통 섹션 제목 */
.section-title { margin: 0 0 10px; font: 700 34px/1.3 var(--head); letter-spacing: -.015em; }
.section-sub { margin: 0 0 36px; color: var(--slate); max-width: 40em; }

/* 판독 테스트 */
.readtest { padding: 88px 0; background: var(--paper); border-block: 1px solid var(--line); }
.readtest__rows { display: grid; gap: 28px; }
.readtest__row { margin: 0; display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.readtest__row figcaption { font-size: 15.5px; color: var(--slate); }
.readtest__row figcaption b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }
.readtest__row img { width: 100%; height: auto; border-radius: 6px; outline: 1px solid var(--line); }
.readtest__row:not(.readtest__row--ok) img { filter: saturate(.9); }
.readtest__row--ok figcaption b { box-shadow: inset 0 -.45em 0 var(--caption); display: inline; }

/* 작업물 */
.work { padding: 96px 0 72px; }
.feature { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; margin-top: 28px; }
.feature__body h3 { margin: 8px 0 6px; font: 700 28px/1.35 var(--head); letter-spacing: -.01em; }
.feature__who { margin: 0 0 28px; color: var(--slate); }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--slate); font-size: 15px; }
.specs dd { margin: 0; }
.upcoming { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.upcoming li { padding: 22px 22px 26px; border: 1.5px dashed #aab3bc; border-radius: 10px; color: var(--slate); font-size: 15.5px; }
.upcoming__tag { display: block; margin-bottom: 8px; color: var(--ink); font: 600 17px/1.4 var(--head); }
.upcoming__note { margin: 14px 0 0; font-size: 14px; color: var(--slate); }

/* 제작 과정 */
.process { padding: 96px 0; background: var(--device); color: #e9edf1; }
.process .section-title { color: #fff; }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: step; padding: 0 28px 0 0; border-top: 2px solid #39424b; position: relative; }
.steps li::before { content: counter(step); display: block; width: 34px; height: 34px; margin: -18px 0 22px; border-radius: 50%; background: var(--caption); color: var(--device); font: 700 16px/34px var(--head); text-align: center; }
.steps h3 { margin: 0 0 10px; font: 600 19px/1.4 var(--head); color: #fff; }
.steps p { margin: 0; font-size: 15.5px; color: #b6c0ca; }

/* 비용 */
.price { padding: 96px 0 72px; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 10px; overflow: hidden; outline: 1px solid var(--line); }
.price-table th, .price-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table thead th { font: 700 20px/1.2 var(--head); background: #f4f6f8; }
.price-table tbody th { width: 140px; font-weight: 600; color: var(--slate); }
.row-launch td { font: 700 22px/1.2 var(--head); }
.row-launch td::after { content: ""; display: block; width: 36px; height: 4px; margin-top: 8px; background: var(--caption); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.addons { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; font-size: 15px; color: var(--slate); }
.addons li { padding: 12px 0; border-top: 1px solid var(--line); }
.addons b { color: var(--ink); }
.promise { margin: 40px 0 0; padding: 18px 22px; background: var(--paper); border-left: 6px solid var(--caption); font-weight: 600; }

/* FAQ */
.faq { padding: 24px 0 96px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; font: 600 18px/1.4 var(--head); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -4px 0 22px; color: var(--slate); max-width: 40em; }

/* 문의 */
.contact { padding: 96px 0; background: var(--device); color: #d7dde3; }
.contact__inner { max-width: 820px; }
.contact p { font-size: 18px; margin: 28px 0 32px; max-width: 34em; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.foot { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 40px; font-size: 13.5px; color: var(--slate); }
.foot p { margin: 0; }

/* 영상 창 */
.player { padding: 0; border: 0; background: transparent; max-width: min(440px, 92vw); }
.player::backdrop { background: rgb(10 12 14 / .82); }
.player video { width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
.player__close { position: absolute; top: -44px; right: 0; padding: 8px 14px; border: 0; border-radius: 4px; background: #fff; font: 600 14px/1 var(--body); cursor: pointer; }

/* 첫 화면 자막 등장: 페이지에서 유일한 자동 모션 */
@media (prefers-reduced-motion: no-preference) {
  .hero .caption-line { clip-path: inset(0 100% 0 0); animation: type-in .7s steps(14, end) forwards; }
  .hero .caption-line:nth-child(2) { animation-delay: .75s; }
}
@keyframes type-in { to { clip-path: inset(0 0 0 0); } }

/* 작은 화면 (2단계에서 다듬기) */
@media (max-width: 960px) {
  .wrap { width: calc(100% - 40px); }
  .top__inner { gap: 16px; }
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 56px 0 64px; }
  .hero__media { max-width: 340px; }
  .readtest__row, .feature { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .section-title { font-size: 27px; }
  .caption-head { font-size: clamp(32px, 9vw, 44px); }
  .price-table th, .price-table td { padding: 14px 12px; font-size: 15px; }
  .price-table tbody th { width: 72px; }
  .row-launch td { font-size: 18px; }
  .feature .phone { max-width: 320px; }
  .upcoming, .steps, .addons { grid-template-columns: 1fr; gap: 16px; }
  .steps li { padding: 0 0 8px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .foot { flex-direction: column; }
}
