/* ══════════════════════════════════════════════════════════════════════════
   PlexView 랜딩페이지 — 디자인 시스템
   ══════════════════════════════════════════════════════════════════════════

   타이포그래피 체계 (실제 렌더링 시안으로 검증한 결과)
     대제목      Arita Buri 500      세리프. 품격 — 교육 브랜드의 신뢰감
     리드·부제   Arita Buri 300
     소제목·버튼 Arita Dotum 500     산세리프. 정보 전달
     본문        Arita Dotum 300
     영문·숫자   Arita Sans LTN      라틴 전용. 한글과 섞일 때 자동 선택되게
                                     font-family 목록 앞에 둔다
   판독에서 배제한 것
     · Arita Dotum Thin(100) 을 12px 캡션에 쓰면 획이 사라진다 → 캡션도 300 을 쓴다.
       Thin 은 32px 이상 장식용으로만 남긴다(--f-hair).
     · Arita Buri HairLine 은 화면에서 흐려 본문 계열에서 제외. 히어로 워터마크만.

   색 — 제품 스플래시에서 추출한 실제 브랜드 색(build-deck.js 와 동일 팔레트)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* 브랜드 */
  --navy:    #0B1B3C;   /* 지배색 */
  --navy-2:  #0C2D57;
  --edge:    #071E3D;
  --blue:    #1273D4;   /* 강조 */
  --sky:     #4FA3E8;
  --orange:  #F67F00;   /* 로고의 주황 — CTA 에만, 아주 드물게 */
  --cyan:    #00B4D7;   /* 로고의 청록 */

  /* 잉크 */
  --ink:     #16213A;
  --sub:     #6B7A90;
  --faint:   #9AA7B8;
  --line:    #E3E9F2;
  --bg:      #F7F9FC;
  --tint:    #E9F2FC;
  --white:   #FFFFFF;

  /* 서체 */
  --serif:  'Arita Sans LTN', 'Arita Buri', 'Nanum Myeongjo', serif;
  --sans:   'Arita Sans LTN', 'Arita Dotum', 'Malgun Gothic', system-ui, sans-serif;

  /* 리듬 — 8px 그리드 */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --wrap: 1160px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11,27,60,.06), 0 2px 8px rgba(11,27,60,.04);
  --shadow-md: 0 2px 6px rgba(11,27,60,.07), 0 12px 32px rgba(11,27,60,.08);
  --shadow-lg: 0 4px 12px rgba(11,27,60,.09), 0 24px 64px rgba(11,27,60,.12);
}

/* ── 기본 ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  /* 한글 가독성 — 자간을 살짝 좁혀 아리따의 넓은 자폭을 보정한다 */
  letter-spacing: -.01em;
  word-break: keep-all;      /* 한글 단어 중간에서 줄바꿈되지 않게 */
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--navy);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s3); }
section { padding: var(--s7) 0; }
@media (max-width: 720px) { section { padding: var(--s6) 0; } }

/* ── 타이포 유틸 ─────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans); font-weight: 500;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: var(--s2);
}
.h-xl { font-size: clamp(34px, 5.2vw, 60px); }
.h-lg { font-size: clamp(28px, 3.6vw, 42px); }
.h-md { font-size: clamp(22px, 2.4vw, 28px); }
.lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(17px, 1.7vw, 21px); line-height: 1.72;
  color: var(--ink); letter-spacing: -.015em;
}
.sub  { color: var(--sub); }
.small { font-size: 14px; line-height: 1.7; }
.note { font-size: 13.5px; line-height: 1.7; color: var(--sub); }
/* 장식용 초경량 — 32px 이상에서만 쓴다 */
.hair { font-family: var(--serif); font-weight: 300; opacity: .5; }

.center { text-align: center; }
.mt1{margin-top:var(--s1)} .mt2{margin-top:var(--s2)} .mt3{margin-top:var(--s3)}
.mt4{margin-top:var(--s4)} .mt5{margin-top:var(--s5)} .mt6{margin-top:var(--s6)}

/* ── 버튼 ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: -.01em;
  padding: 15px 30px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(246,127,0,.28); }
.btn-primary:hover { background: #E57400; box-shadow: 0 6px 20px rgba(246,127,0,.36); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--sky); }
.btn-lg { font-size: 17px; padding: 17px 36px; }

/* ── 상단 내비게이션 ─────────────────────────────────────────────────────── */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0; transition: background .2s ease, box-shadow .2s ease, padding .2s ease;
}
.topnav.solid {
  background: rgba(7,30,61,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  padding: 9px 0;
}
.topnav-in { display: flex; align-items: center; gap: var(--s4); }
.topnav-brand { display: block; flex: none; }
.topnav-brand img { height: 26px; width: auto; }
.topnav-links { display: flex; gap: var(--s3); margin-left: auto; }
.topnav-links a {
  font-family: var(--sans); font-weight: 500; font-size: 14.5px;
  color: rgba(255,255,255,.72);
}
.topnav-links a:hover { color: #fff; text-decoration: none; }
.topnav-cta { padding: 10px 20px; font-size: 14.5px; }
@media (max-width: 860px) {
  .topnav-links { display: none; }
  .topnav-cta { margin-left: auto; }
}

/* ── 히어로 ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(0,180,215,.20), transparent 62%),
    radial-gradient(900px 520px at 8% 104%, rgba(18,115,212,.24), transparent 58%),
    linear-gradient(158deg, var(--navy-2) 0%, var(--navy) 52%, var(--edge) 100%);
  color: #fff; padding: calc(var(--s8) + 40px) 0 var(--s7);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s6); align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero { padding-top: calc(var(--s7) + 30px); }
}
.hero h1 { color: #fff; }
/* 배경 워터마크 — 초경량 세리프를 아주 크게, 낮은 명도로 */
.hero::after {
  content: 'PlexView';
  position: absolute; right: -3%; bottom: -12%;
  font-family: var(--serif); font-weight: 300; font-size: clamp(140px, 22vw, 330px);
  color: rgba(255,255,255,.035); letter-spacing: -.04em; pointer-events: none;
  line-height: 1; user-select: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }

/* 무상 제공 배지 */
.badge-free {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(246,127,0,.14); border: 1px solid rgba(246,127,0,.4);
  color: #FFC98A; font-family: var(--sans); font-weight: 500; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; margin-bottom: var(--s3);
  letter-spacing: -.005em;
}
.badge-free .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* 히어로 하단 스펙 스트립 */
.spec-strip {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,.13);
}
.spec-strip div { min-width: 120px; }
.spec-strip .k {
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.spec-strip .v {
  font-family: var(--serif); font-weight: 500; font-size: 25px;
  color: #fff; margin-top: 4px; letter-spacing: -.02em;
}

/* ── 제품 화면 ───────────────────────────────────────────────────────────── */
/* 캡처를 앱 창틀 안에 넣어 '잘린 사각형'이 아니라 '앱 화면'으로 읽히게 한다.
   구조:  figure.shot-wrap > div.shot > img  +  figcaption.shot-cap        */
.shot-wrap { margin: 0; }

.shot {
  position: relative;
  background: #0E1B31;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(4,14,32,.30), 0 34px 80px rgba(4,14,32,.24);
}
.shot::before {                       /* 타이틀바 */
  content: ''; display: block; height: 30px;
  background: linear-gradient(180deg, #17294A, #101F38);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.shot::after {                        /* 창 버튼 3개 */
  content: ''; position: absolute; left: 13px; top: 10.5px;
  width: 44px; height: 9px;
  background:
    radial-gradient(circle 4.5px at  4.5px 4.5px, #E5695B 98%, transparent 100%),
    radial-gradient(circle 4.5px at 22px   4.5px, #E3B341 98%, transparent 100%),
    radial-gradient(circle 4.5px at 39.5px 4.5px, #59B96A 98%, transparent 100%);
}
.shot img { width: 100%; height: auto; display: block; }

/* 캡처 파일이 아직 없을 때 — 깨진 이미지 대신 안내 상자.
   apply.js 가 아니라 index.html 말미의 onerror 처리가 .is-empty 를 붙인다. */
.shot.is-empty { display: flex; flex-direction: column; }
.shot.is-empty .ph {
  flex: 1; min-height: 210px;
  display: grid; place-content: center; gap: 6px; text-align: center;
  padding: var(--s4) var(--s3);
  font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,.5);
}
.shot.is-empty .ph b {
  display: block; font-weight: 500; font-size: 15px; color: rgba(255,255,255,.72);
}
.shot.is-empty .ph code {
  font-size: 12.5px; color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.06); border-radius: 5px; padding: 3px 8px;
}

.shot-cap {
  font-family: var(--sans); font-weight: 300;
  font-size: 13.5px; line-height: 1.6; color: var(--sub);
  margin: 12px 2px 0;
}

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); }
.shots .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* 히어로 안의 캡처는 캡션 없이 액자만 */
.hero-shot { margin: 0; }
@media (max-width: 980px) { .hero-shot { max-width: 660px; } }

/* ── 카드 ────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s3); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #D3DEEE; transform: translateY(-2px); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--sub); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--tint);
  display: grid; place-items: center; margin-bottom: var(--s2);
}
.icon-badge svg { width: 23px; height: 23px; stroke: var(--blue); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.band { background: var(--bg); }

/* ── 호환성 표 ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background:#fff; }
table.compat { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.compat th, table.compat td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
table.compat thead th {
  font-family: var(--sans); font-weight: 500; font-size: 13.5px;
  color: var(--navy); background: var(--bg); white-space: nowrap;
}
table.compat tbody th {
  text-align: left; font-family: var(--sans); font-weight: 500;
  font-size: 15px; color: var(--ink); white-space: nowrap;
}
table.compat tbody tr:last-child th, table.compat tbody tr:last-child td { border-bottom: none; }
.yes  { color: #1E9E5A; font-weight: 500; }
.part { color: #C98A00; font-weight: 500; }
.no   { color: var(--faint); }

/* ── 무상 제공 안내 ──────────────────────────────────────────────────────── */
.apply {
  background: linear-gradient(158deg, var(--navy-2), var(--navy) 60%, var(--edge));
  color: #fff;
}
.apply h2 { color: #fff; }
.apply .lead { color: rgba(255,255,255,.82); }
.apply-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s6); align-items: start;
}
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr; gap: var(--s4); } }
.apply-terms {
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(255,255,255,.14);
}
.apply-terms li {
  font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.76);
  padding: 14px 0 14px 26px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.apply-terms li::before {
  content: ''; position: absolute; left: 4px; top: 23px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
}
.apply-terms b { font-weight: 500; color: #fff; }

/* ── 신청 폼(신청 페이지에서 사용) ───────────────────────────────────────── */
.form-card {
  background: #fff; color: var(--ink); border-radius: 18px;
  padding: var(--s5); box-shadow: var(--shadow-lg);
}
.field { margin-bottom: var(--s3); }
.field label {
  display: block; font-family: var(--sans); font-weight: 500; font-size: 14px;
  color: var(--navy); margin-bottom: 7px;
}
.field .req { color: var(--orange); margin-left: 3px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-weight: 300; font-size: 16px;
  color: var(--ink); background: #fff;
  padding: 13px 15px; border: 1px solid #CFDAE9; border-radius: 9px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,115,212,.13);
}
.field .hint { font-size: 13px; color: var(--sub); margin-top: 6px; }
.field.err input, .field.err textarea { border-color: #D64545; }
.field .errmsg { display: none; font-size: 13px; color: #D64545; margin-top: 6px; }
.field.err .errmsg { display: block; }

.consent {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: var(--s3); font-size: 13.5px; line-height: 1.72; color: var(--sub);
}
.consent table { width: 100%; border-collapse: collapse; margin: var(--s2) 0; font-size: 13px; }
.consent th, .consent td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.consent th { background: #fff; font-family: var(--sans); font-weight: 500; color: var(--ink); white-space: nowrap; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink); margin-top: var(--s2); cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }

.form-msg { display: none; margin-top: var(--s3); padding: 14px 16px; border-radius: 9px; font-size: 15px; }
.form-msg.ok   { display: block; background: #E7F6ED; color: #12703F; border: 1px solid #B9E3CB; }
.form-msg.fail { display: block; background: #FDECEC; color: #9B2C2C; border: 1px solid #F3C4C4; }

/* ── 푸터 ────────────────────────────────────────────────────────────────── */
footer { background: var(--edge); color: rgba(255,255,255,.62); padding: var(--s5) 0; font-size: 14px; }
footer a { color: rgba(255,255,255,.82); }
footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s2); }
footer .brand img { height: 26px; width: auto; }

/* ── 인쇄 ────────────────────────────────────────────────────────────────── */
@media print {
  .hero { background: #fff !important; color: var(--ink) !important; }
  .hero h1, .apply h2 { color: var(--navy) !important; }
  .hero::after, .btn { display: none !important; }
  .card, .form-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── 기본 메뉴 목록 ──────────────────────────────────────────────────────
   기기별 ●△ 대조표를 걷어내고 메뉴 이름만 나열하는 자리.
   카드(.card)보다 가볍게 보이도록 알약 형태로 둔다. */
.menu-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s3, 14px);
}
.menu-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line, #E3E9F2);
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink, #16213A);
}
.menu-grid li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue, #0078B7);
}

/*  '기본 메뉴' 머리글 — 원래 대조표의 첫 열 머리글이었다.
    표를 목록으로 바꾸면서 이 자리를 없앴다가 다시 살렸다. */
.menu-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #16213A);
  letter-spacing: -.01em;
}
