/* ============================================================
   찰칵(CHALKAK) — 사랑공장 포토키오스크 렌탈 페이지
   디자인 토큰: 사랑공장 홈페이지 style.css 계승 (2026 브로슈어)
   시그니처: 한글 라벨 + 영문 빅타이포(그라데이션, Exo 2 Bold Italic)
             센터 헤더 · 점선 디바이더 · 다크 CTA 밴드
   ============================================================ */
:root {
  --brand-red: #E63A58;
  --brand-red-soft: #F5556E;
  --bg-dark: #1E1C22;
  --bg-gray: #F4F4F6;
  --bg-card: #F7F7F9;
  --text-primary: #222222;
  --text-body: #333333;
  --text-secondary: #777777;
  --text-muted: #999999;
  --link-blue: #496194;
  --cat-gold: #977B3B;
  --cat-teal: #2E7E87;
  --cat-green: #0E8D5A;
  --cat-red: #E63A58;
  --radius-photo: 24px;
  --radius-card: 20px;
  --radius-pill: 36px;
  --grad: linear-gradient(90deg, #F5556E, #E63A58);
  --font-ko: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  --font-display: "Exo 2", "Arial", sans-serif;
  --dot-line: #DCDCE2;
  --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
body {
  font-family: var(--font-ko);
  color: var(--text-body);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── 디스플레이 타이포 (영문 전용 Exo 2 Bold Italic, 그라데이션) ── */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-red);
  letter-spacing: -0.01em;
  line-height: 1.14;
  padding-bottom: 0.18em; /* 이탤릭 디센더 클리핑 방지 */
}
.display-xl { font-size: clamp(44px, 6.5vw, 80px); }
.display-l  { font-size: clamp(35px, 5.2vw, 64px); }  /* 메인의 80% (2026-07-13 사장님 확정) */
.display-m  { font-size: clamp(24px, 3vw, 40px); }

/* ── 센터 헤더 (시그니처) ─────────────────────────────────── */
.center-head { text-align: center; padding: 96px 0 48px; }
.center-head .label {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; letter-spacing: 0.02em;
}
.center-head .sub {
  margin-top: 20px; font-size: 18px; color: var(--text-secondary);
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ── 점선 디바이더 ────────────────────────────────────────── */
.dotted { border: none; border-top: 2px dotted #D9D9DE; margin: 0 auto; max-width: var(--max-w); }

/* ── GNB ──────────────────────────────────────────────────── */
header.gnb {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid #EEEEF1;
}
.gnb-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.gnb-logo { display: flex; align-items: center; gap: 10px; }
.gnb-logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.gnb-logo .logo-en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 22px; color: var(--text-primary); letter-spacing: .01em;
}
.gnb-logo .logo-ko { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
nav.gnb-nav { display: flex; gap: 8px; align-items: center; }
nav.gnb-nav > a {
  font-size: 16px; font-weight: 500; color: var(--text-body);
  padding: 10px 16px; border-radius: var(--radius-pill);
  transition: background .15s; white-space: nowrap; position: relative;
}
nav.gnb-nav > a:hover { background: var(--bg-gray); }
nav.gnb-nav > a.active { color: var(--brand-red); font-weight: 700; }
nav.gnb-nav > a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2.5px; border-radius: 2px; background: var(--grad);
}
nav.gnb-nav > a.gnb-cta {
  background: var(--grad); color: #fff; font-weight: 700; margin-left: 6px;
}
nav.gnb-nav > a.gnb-cta:hover { opacity: .9; background: var(--grad); }

/* ── 히어로 ───────────────────────────────────────────────── */
.hero { text-align: center; padding: 88px 0 56px; }
.hero .co-name { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.hero .tagline { margin-top: 28px; font-size: 20px; color: var(--text-secondary); line-height: 1.65; }

.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.device-photo {
  border-radius: var(--radius-photo); overflow: hidden; background: var(--bg-gray);
  aspect-ratio: 4 / 3;
}
.device-photo img { width: 100%; height: 100%; object-fit: cover; }
.device-photo.pos-top img { object-position: center 20%; }
.device-photo.pos-mid img { object-position: center 64%; }
.hero-caption { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ── 지표 밴드 ────────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 48px 0 8px; }
.metric {
  background: var(--bg-card); border-radius: var(--radius-card);
  padding: 32px 24px; text-align: center;
}
.metric .val { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 40px; color: var(--text-primary); }
.metric .lab { margin-top: 8px; font-size: 15px; color: var(--text-secondary); }

/* ── 캐릭터 퍼레이드 ──────────────────────────────────────── */
.char-parade {
  width: 100%; overflow: hidden; margin-top: 44px; padding: 20px 0 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.char-track { display: flex; align-items: flex-end; gap: 44px; width: max-content; animation: parade 44s linear infinite; }
.char-set { display: flex; align-items: flex-end; gap: 44px; }
.char-parade .ch { height: 64px; width: auto; flex: 0 0 auto; animation: charbob 2.4s ease-in-out infinite; will-change: transform; }
.char-parade .ch:nth-child(2n) { animation-delay: -0.7s; }
.char-parade .ch:nth-child(3n) { animation-delay: -1.4s; }
@keyframes parade { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes charbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── 카드 공통 ────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { background: var(--bg-card); border-radius: var(--radius-card); padding: 36px 32px; }
.card h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 12px; }
.card p { font-size: 16px; color: var(--text-body); line-height: 1.6; }
.card .en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 15px; color: var(--brand-red); margin-bottom: 16px; display: block;
}

/* ── 스텝 ─────────────────────────────────────────────────── */
.step { background: var(--bg-card); border-radius: var(--radius-card); padding: 32px 24px; text-align: center; }
.step .no {
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 30px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 12px;
}
.step .en-tag {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
  display: block; margin-bottom: 6px;
}
.step h4 { font-size: 18px; color: var(--text-primary); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-body); line-height: 1.6; }

/* ── 노트 카드 ────────────────────────────────────────────── */
.note-card {
  background: var(--bg-gray); border-radius: 14px; padding: 18px 24px;
  font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-top: 24px;
}
.note-card b { color: var(--text-primary); }

/* ── 와이드 시나리오 카드 ─────────────────────────────────── */
.scenario-card {
  background: var(--bg-card); border-radius: var(--radius-card); padding: 44px 40px;
  margin-top: 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.scenario-card .en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 15px; color: var(--brand-red); margin-bottom: 14px; display: block; letter-spacing: .03em;
}
.scenario-card h3 { font-size: 24px; color: var(--text-primary); margin-bottom: 14px; }
.scenario-card p { font-size: 16px; line-height: 1.75; color: var(--text-body); }
.scenario-flow { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.scenario-flow span { font-size: 14.5px; color: var(--text-secondary); }
.scenario-flow b { color: var(--brand-red); font-weight: 700; }

/* ── 사진 플레이스홀더 + 컨텐츠 슬롯 ──────────────────────── */
.ph-photo {
  border-radius: var(--radius-photo); aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-align: center; padding: 20px; position: relative;
}
.ph-photo .ph-en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 40px; opacity: .92; line-height: 1.1; padding-bottom: 0.12em;
}
.ph-photo .ph-ko { font-size: 13px; opacity: .85; font-weight: 600; }
/* assets/slots/ 에 실사진을 넣으면 플레이스홀더 위를 덮음 (없으면 onerror로 제거) */
.ph-photo .slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.ph-red   { background: linear-gradient(135deg, #F5556E, #E63A58); }
.ph-green { background: linear-gradient(135deg, #16B375, #0E8D5A); }
.ph-gold  { background: linear-gradient(135deg, #B29450, #977B3B); }
.ph-teal  { background: linear-gradient(135deg, #3A96A1, #2E7E87); }
.ph-dark  { background: linear-gradient(135deg, #35323C, #1E1C22); }

/* ── AI 대비 카드 ─────────────────────────────────────────── */
.ai-card { display: flex; flex-direction: column; }
.ai-card .ph-photo { margin-bottom: 24px; aspect-ratio: 16 / 9; }
.ai-card ul { margin-top: 14px; }
.ai-card li { font-size: 15px; color: var(--text-body); line-height: 1.7; padding-left: 14px; text-indent: -14px; }
.ai-card li::before { content: "- "; color: var(--brand-red); font-weight: 700; }

/* ── 디자인 커스터마이징 비교 ─────────────────────────────── */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.cmp-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 40px 36px; position: relative; display: flex; flex-direction: column; }
.cmp-card.reco { box-shadow: 0 24px 56px rgba(230,58,88,.14); }
.reco-badge {
  position: absolute; top: 28px; right: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--brand-red); color: var(--brand-red); background: #fff;
  border-radius: var(--radius-pill); padding: 7px 16px;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 12px; letter-spacing: .08em;
}
.cmp-card .plan-en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 14px; letter-spacing: .06em; color: var(--text-muted); display: block; margin-bottom: 10px;
}
.cmp-card.reco .plan-en {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cmp-card h3 { font-size: 24px; color: var(--text-primary); margin-bottom: 8px; }
.cmp-card .plan-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 26px; }
.cmp-list { display: flex; flex-direction: column; }
.cmp-list li {
  font-size: 15.5px; line-height: 1.5; padding: 12px 0;
  border-top: 1px dashed var(--dot-line);
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.cmp-list li:first-child { border-top: none; }
.cmp-list .item { color: var(--text-primary); font-weight: 600; }
.cmp-list .who { font-size: 13px; font-weight: 700; white-space: nowrap; }
.who.inc { color: var(--brand-red); }
.who.client { color: var(--text-muted); }
.who.none { color: var(--dot-line); }
.cmp-foot { margin-top: auto; padding-top: 22px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* ── 단가표 ───────────────────────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-muted); text-transform: uppercase;
  padding: 0 18px 14px; border-bottom: 2px solid var(--text-primary);
}
.price-table td { padding: 22px 18px; border-bottom: 1px dashed var(--dot-line); vertical-align: middle; }
.price-table .p-name { font-size: 18px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.price-table .p-name .p-en {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 11.5px; letter-spacing: .07em; color: var(--brand-red); margin-bottom: 3px;
}
.price-table .p-desc { font-size: 14.5px; color: var(--text-body); line-height: 1.6; }
.price-table .p-price { text-align: right; white-space: nowrap; }
.price-table .p-price .won {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 27px; color: var(--text-primary); letter-spacing: -0.01em;
}
.price-table .p-price .unit { display: block; font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.inc-card ul, .ext-card ul { margin-top: 6px; }
.inc-card li, .ext-card li { font-size: 15px; color: var(--text-body); line-height: 1.8; padding-left: 14px; text-indent: -14px; }
.inc-card li::before, .ext-card li::before { content: "- "; color: var(--brand-red); font-weight: 700; }
.ext-card li::before { color: var(--text-muted); }

/* ── 사례 카드 (메인 레퍼런스 섹션) ───────────────────────── */
.case-card { display: flex; flex-direction: column; }
.case-photo {
  border-radius: var(--radius-photo); aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--bg-gray); position: relative; margin-bottom: 18px;
}
.case-photo .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 56px;
  color: #fff; opacity: .92;
}
.case-photo .slot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.case-name { font-size: 19px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.case-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.case-meta .badge {
  border: 1px solid #E3E3E8; border-radius: var(--radius-pill); padding: 2px 10px;
  font-size: 12px; color: var(--text-secondary);
}
.case-summary { font-size: 14.5px; color: var(--text-body); line-height: 1.6; }

.ghost-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; background: transparent; border: 2px dashed var(--dot-line);
  border-radius: var(--radius-card); padding: 28px 26px; min-height: 218px; color: var(--text-muted);
  transition: border-color .18s ease;
}
a.ghost-card:hover { border-color: var(--brand-red-soft); }
.ghost-plus { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 44px; line-height: 1; color: var(--brand-red-soft); padding-bottom: 0.1em; }
.ghost-title { font-size: 15px; font-weight: 700; color: var(--text-secondary); }
.ghost-sub { font-size: 13px; line-height: 1.55; }

/* ── 진행사례 갤러리 (/cases — ERP 수신, 메이슨리) ────────── */
.masonry { columns: 3 300px; column-gap: 24px; padding-bottom: 24px; }
.g-card {
  break-inside: avoid; margin-bottom: 24px; background: var(--bg-card);
  border-radius: var(--radius-card); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.g-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(30,28,34,.10); }
.g-thumb:not(.g-thumb-empty) { background: var(--bg-gray); }
.g-thumb img { width: 100%; height: auto; display: block; }
.g-thumb-empty {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.g-thumb-empty span {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 30px; opacity: .92; padding-bottom: .12em;
}
.g-body { padding: 20px 22px 24px; }
.g-cat {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-red);
}
.g-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 6px 0 8px; line-height: 1.4; }
.g-summary { font-size: 14.5px; color: var(--text-body); line-height: 1.6; }
.g-date { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.g-more { text-align: center; padding: 8px 0 24px; }
.g-status { text-align: center; font-size: 13px; color: var(--text-muted); padding-bottom: 24px; letter-spacing: .02em; }

/* ── 견적폼 (#quote — 메인사이트 통합견적폼과 동일 문법, 센터 풀폭) ── */
.quote-single { max-width: 1000px; margin: 0 auto; padding-bottom: 24px; }
.quote-box { background: var(--bg-card); border: 1px solid #EEEEF1; border-radius: var(--radius-card); padding: 36px 32px; }
.f-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); margin: 26px 0 10px; }
.f-label:first-child { margin-top: 0; }
.f-label b { color: var(--brand-red); }
.f-help { font-size: 12px; color: var(--text-muted); margin-top: 7px; }
.seg { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 680px) { .seg { grid-template-columns: repeat(2, 1fr); } }
.seg-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 18px; border: 1.5px solid #E3E3E8; background: #fff; border-radius: 14px; cursor: pointer; font-family: var(--font-ko); transition: border-color .15s, box-shadow .15s; }
.seg-btn:hover { border-color: var(--brand-red); }
.seg-btn.on { border-color: var(--brand-red); box-shadow: inset 0 0 0 1px var(--brand-red), 0 8px 22px rgba(230,58,88,.08); }
.seg-en { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--text-muted); }
.seg-btn.on .seg-en { color: var(--brand-red); }
.seg-ko { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.seg-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: var(--bg-gray); border-radius: var(--radius-pill);
  padding: 10px 20px; font-size: 15px; font-weight: 500; color: var(--text-body);
  border: 1.5px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ko); transition: border-color .15s, background .15s; min-height: 44px;
}
.chip:hover { border-color: #D9D9DE; }
.chip.on { background: var(--bg-dark); color: #fff; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inp { width: 100%; background: #fff; border: 1.5px solid #E3E3E8; border-radius: 12px; color: var(--text-body); padding: 13px 14px; font-size: 16px; font-family: var(--font-ko); min-height: 46px; outline: none; transition: border-color .15s; }
textarea.inp { min-height: 120px; resize: vertical; }
.inp:focus { border-color: var(--brand-red); }
.inp::placeholder { color: var(--text-muted); }
.f-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-top: 10px; cursor: pointer; }
.f-check input { accent-color: var(--brand-red); width: 18px; height: 18px; }
.f-files { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.f-attach { border: 1.5px dashed #D9D9DE; background: var(--bg-gray); color: var(--text-secondary); border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-ko); transition: border-color .15s, color .15s; }
.f-attach:hover { border-color: var(--brand-red); color: var(--brand-red); }
.f-filelist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.f-filelist li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); background: var(--bg-gray); border: 1px solid #E3E3E8; border-radius: 8px; padding: 8px 12px; }
.f-filelist .fn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.f-filelist .fs { font-size: 11px; color: var(--text-muted); }
.f-filelist li button { border: none; background: transparent; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 2px 6px; }
.f-filelist li button:hover { color: var(--brand-red); }
.f-filetotal { justify-content: flex-end; font-size: 11px; color: var(--text-muted); background: transparent !important; border: none !important; padding: 2px 4px !important; }
.f-actions { display: flex; gap: 10px; margin-top: 30px; }
.f-reset { flex: 0 0 auto; background: none; border: 1.5px solid #E3E3E8; color: var(--text-secondary); font-weight: 600; font-size: 16px; border-radius: var(--radius-pill); padding: 14px 28px; cursor: pointer; font-family: var(--font-ko); }
.f-reset:hover { border-color: #D9D9DE; }
.f-send { flex: 1; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; border: none; border-radius: var(--radius-pill); padding: 14px 28px; cursor: pointer; font-family: var(--font-ko); transition: opacity .15s; }
.f-send:hover { opacity: .9; }
.f-send:disabled { opacity: .5; cursor: default; }
.f-err { margin-top: 14px; color: var(--brand-red); font-size: 14px; }
.f-err a { color: var(--brand-red); text-decoration: underline; }
.f-note { margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.f-done { text-align: center; padding: 48px 32px; }
.f-done h3 { font-size: 24px; color: var(--text-primary); margin-bottom: 12px; }
.f-done p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }

/* ── CTA 밴드 (다크 푸터) ─────────────────────────────────── */
.cta-band { background: var(--bg-dark); text-align: center; padding: 96px 32px 72px; margin-top: 96px; }
.cta-band .display { margin-bottom: 16px; }
.cta-band .cta-label { color: rgba(255,255,255,.55); font-size: 15px; font-weight: 700; letter-spacing: .12em; margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 18px; margin-bottom: 36px; line-height: 1.7; }
.btn {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px 44px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  font-family: var(--font-ko); transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn-ghost { background: none; border: 1.5px solid #E3E3E8; color: var(--text-body); font-weight: 600; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.cta-foot .co { color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.cta-foot p { font-size: 14px; color: rgba(255,255,255,.55); margin: 0; line-height: 1.9; }

/* ── 접근성 / 모션 ────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-red); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .char-track { animation: none; width: 100%; justify-content: center; }
  .char-parade .ch { animation: none; }
  .char-parade { mask-image: none; -webkit-mask-image: none; }
  .char-set.dup { display: none; }
  .g-card, .g-card:hover { transition: none; transform: none; }
}

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .scenario-card { grid-template-columns: 1fr; }
  nav.gnb-nav > a { padding: 9px 11px; font-size: 15px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .cmp-grid, .hero-visual { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 40px; }
  .center-head { padding: 64px 0 36px; }
  .price-table .p-desc { display: none; }
  .f-grid { grid-template-columns: 1fr; }
  .gnb-logo .logo-ko { display: none; }
}

/* ── 인쇄 (A4 — 페이지가 곧 제안서로 출력됨) ──────────────── */
@page { size: A4 portrait; margin: 9mm; }
@media print {
  body { zoom: 0.62; }
  .wrap { max-width: 100%; }
  header.gnb, #quote, .g-more { display: none; }
  .page-break { break-before: page; }
  .center-head { padding: 40px 0 36px; }
  .cta-band { margin-top: 48px; }
  .card, .step, .metric, .cmp-card, .case-card, .scenario-card, .note-card,
  .price-table tr, .hero-visual, .metrics, .ghost-card, .g-card { break-inside: avoid; }
  /* PDF 렌더러가 background-clip:text를 무시하는 문제 → 단색 브랜드 컬러 대체 */
  .display, .step .no, .cmp-card.reco .plan-en {
    background: none !important;
    -webkit-background-clip: initial; background-clip: initial;
    -webkit-text-fill-color: currentColor; color: var(--brand-red);
  }
  /* 인쇄 페이지 폭(약 794px)이 모바일 브레이크포인트에 걸리는 문제 → 데스크톱 그리드 강제 */
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .cmp-grid, .hero-visual { grid-template-columns: repeat(2, 1fr); }
  .scenario-card { grid-template-columns: 1.2fr 1fr; }
  .char-track { animation: none; width: 100%; justify-content: center; gap: 0; }
  .char-set { gap: 24px; }
  .char-parade .ch { animation: none; height: 48px; }
  .char-parade { mask-image: none; -webkit-mask-image: none; padding-bottom: 24px; }
  .char-set.dup { display: none; }
}
