/* 압구정 바우처 - 공개 페이지 */
:root {
  --blue: #1F55B0;
  --blue-dark: #163F85;
  --blue-soft: #EAF1FC;
  --teal: #0B6E7D;
  --teal-soft: #E6F5F6;
  --aqua: #4FB6C2;
  --ink: #0F1B33;
  --muted: #4A5568;
  --line: #E3E8F0;
  --line-2: #EEF1F6;
  --border: #C9D3E3;
  --bg-soft: #F4F7FB;
  --navy: #0D2149;
  --kakao: #FEE500;
  --naver: #03C75A;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #FFFFFF; color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  letter-spacing: -0.01em; line-height: 1.5; word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--blue); margin-bottom: 10px; }
.eyebrow-light { color: #8FD3DB; }
.mb40 { margin-bottom: 40px !important; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-sm { height: 44px; padding: 0 18px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-kakao { background: var(--kakao); color: #191600; }
.btn-kakao:hover { color: #191600; filter: brightness(.97); }
.btn-naver { background: var(--naver); color: #fff; }
.btn-naver:hover { color: #fff; filter: brightness(.95); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 35px; object-fit: contain; }
.brand span { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--blue); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-inner { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 130px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-eyebrow .eyebrow { margin: 0; }
.coins { display: flex; gap: 6px; }
.coins i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.coins i.sm { font-size: 12px; }
.hero h1 { font-size: 56px; line-height: 1.22; font-weight: 900; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { margin: 0; font-size: 19px; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; display: block; }

.today-card { flex: 1 1 400px; min-width: 0; max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(15,27,51,.22); padding: 28px; }
.today-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.today-title { font-size: 18px; font-weight: 700; }
.today-title small { font-size: 14px; font-weight: 500; color: var(--muted); }
.today-time { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.today-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.today-row > div:not(:first-child) { text-align: right; }
.today-label { padding: 10px 0; border-bottom-color: var(--line); font-size: 13px; color: var(--muted); font-weight: 500; }
.t-name { font-size: 16px; font-weight: 700; }
.t-name small { font-size: 12px; color: var(--muted); font-weight: 500; }
.today-row .t-buy, .today-row .t-sell { font-size: 17px; font-weight: 700; }
.t-buy { color: var(--blue); }
.t-sell { color: var(--teal); }
.today-more { display: block; margin-top: 18px; text-align: center; font-size: 15px; font-weight: 700; text-decoration: none; padding: 8px; }

/* Sections */
.section { padding-top: 80px; padding-bottom: 96px; }
.section h2, .calc h2, .location h2 { font-size: 38px; font-weight: 900; letter-spacing: -.03em; line-height: 1.3; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sub { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.updated { font-size: 14px; color: var(--muted); }
.updated strong { color: var(--ink); }
.empty { padding: 40px; text-align: center; background: var(--bg-soft); border-radius: 16px; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* Rate table */
.rate-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.rate-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.rate-table thead th { background: var(--bg-soft); padding: 18px 24px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: left; }
.rate-table th.c-buy, .rate-table td.c-buy { text-align: right; }
.rate-table th.c-sell, .rate-table td.c-sell { text-align: right; }
.rate-table thead .c-buy { color: var(--blue); }
.rate-table thead .c-sell { color: var(--teal); }
.rate-table thead span { font-weight: 500; }
.rate-table tbody { border-top: 1px solid var(--line); }
.rate-table tbody tr + tr td { border-top: 1px solid var(--line-2); }
.rate-table tbody th { text-align: left; vertical-align: top; padding: 18px 24px; font-size: 16px; font-weight: 700; width: 24%; }
.rate-table td { padding: 16px 24px; font-size: 16px; }
.rate-table td.c-denom { color: var(--muted); width: 14%; }
.rate-table td strong { font-size: 18px; }
.pill { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; min-width: 52px; text-align: center; }
.pill-buy { background: var(--blue-soft); color: var(--blue); }
.pill-sell { background: var(--teal-soft); color: var(--teal); }
.rate-cards { display: none; }
.notice { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
[data-group].is-hidden { display: none !important; }

/* Calculator */
.calc { background: var(--navy); color: #fff; }
.calc-inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.calc-copy { flex: 1 1 360px; min-width: 0; }
.calc-copy p { margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: #C5D0E6; }
.calc-box { flex: 1 1 520px; min-width: 0; background: #fff; color: var(--ink); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 12px; padding: 4px; }
.seg-btn { height: 48px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 16px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg-btn.is-active { background: #fff; box-shadow: 0 1px 3px rgba(15,27,51,.15); font-weight: 700; color: var(--ink); }
.field-label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.field-row { display: flex; gap: 24px; flex-wrap: wrap; }
.field.grow { flex: 1 1 220px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip.is-active { border: 2px solid var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 700; padding: 0 15px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 44px; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; font: inherit; font-size: 20px; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--bg-soft); }
.stepper input { width: 56px; height: 42px; border: 0; text-align: right; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .unit { font-weight: 700; padding: 0 6px 0 2px; }
.calc-result { border-top: 1px dashed var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.calc-meta { font-size: 14px; color: var(--muted); line-height: 1.7; }
.calc-total { text-align: right; margin-left: auto; }
.calc-total-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.calc-total output { display: block; font-size: 40px; font-weight: 900; letter-spacing: -.03em; color: var(--blue); }

/* Guide */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 56px; }
.guide-card { border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.guide-card h3 { font-size: 21px; font-weight: 700; }
.guide-card p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.g-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.g-blue { background: var(--blue-soft); color: var(--blue); }
.g-teal { background: var(--teal-soft); color: var(--teal); }
.g-navy { background: #EEF0F4; color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-soft); border-radius: 16px; overflow: hidden; }
.steps li { padding: 32px; display: flex; gap: 16px; align-items: flex-start; }
.steps li + li { border-left: 1px solid var(--line); }
.steps b { font-family: Montserrat, sans-serif; font-size: 28px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.steps strong { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Location */
.location { background: var(--bg-soft); }
.location-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px; }
.loc-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.info-list { margin: 0; display: grid; grid-template-columns: 96px 1fr; row-gap: 18px; font-size: 16px; line-height: 1.6; }
.info-list dt { font-weight: 700; color: var(--muted); }
.info-list dd { margin: 0; }
.info-list a { text-decoration: none; }
.big-tel { font-weight: 700; font-size: 20px; }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; }
.loc-media { flex: 1.4 1 540px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 300px 220px; gap: 16px; }
.map-box { grid-column: span 2; border-radius: 16px; overflow: hidden; background: #DCE4EF; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.photo { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #DCE4EF; }
.photo-tall { grid-row: span 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall img { object-position: 30% 40%; }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 8px; background: rgba(13,33,73,.86); color: #fff; font-size: 13px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--navy); color: #C5D0E6; }
.footer-inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.f-brand { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.03em; margin-bottom: 14px; }
.f-info { margin: 0 0 14px; font-size: 14px; line-height: 1.9; }
.f-copy { margin: 0; font-size: 13px; color: #8E9BB8; }
.f-call { align-self: flex-start; display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 12px; border: 1px solid #3A4F7A; color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; }
.f-call:hover { color: #fff; border-color: #fff; }

.mobile-bar { display: none; }

/* 관리자 미리보기 안내 (비공개 상태일 때 관리자에게만 표시) */
.preview-bar { background: #B45309; color: #fff; text-align: center; font-size: 14px; padding: 10px 16px; line-height: 1.5; }
.preview-bar a { color: #fff; font-weight: 700; margin-left: 8px; white-space: nowrap; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .hero h1 { font-size: 46px; }
  .today-card { max-width: none; }
  .loc-media { flex-basis: 100%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  html { scroll-padding-top: 64px; }
  .wrap { padding: 0 20px; }
  .header-inner { height: 60px; gap: 12px; }
  .brand img { width: 32px; height: 28px; }
  .brand span { font-size: 19px; }
  .header-call span { display: none; }
  .header-call { width: 44px; padding: 0; }

  .hero-inner { padding-top: 40px; padding-bottom: 80px; gap: 28px; }
  .hero-copy { gap: 14px; flex-basis: 100%; }
  .hero h1 { font-size: 32px; line-height: 1.3; }
  .lead { font-size: 15px; }
  .hero-actions { display: none; }
  .coins i { width: 24px; height: 24px; font-size: 11px; }
  .hero-eyebrow .eyebrow { font-size: 11px; }
  .today-card { padding: 18px 18px 10px; border-radius: 16px; flex-basis: 100%; }
  .today-row { padding: 12px 0; }
  .today-row .t-buy, .today-row .t-sell, .t-name { font-size: 15px; }
  .hero-wave { height: 60px; }

  .section { padding-top: 36px; padding-bottom: 44px; }
  .section h2, .calc h2, .location h2 { font-size: 24px; }
  .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .sub { font-size: 13px; }
  .section-head { margin-bottom: 16px; gap: 6px; }
  .updated { font-size: 13px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }

  .rate-table-wrap { display: none; }
  .rate-cards { display: flex; flex-direction: column; gap: 12px; }
  .rate-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .rc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; background: var(--bg-soft); }
  .rc-head strong { font-size: 16px; }
  .rc-head span { font-size: 12px; color: var(--muted); text-align: right; }
  .rc-row { display: grid; grid-template-columns: .8fr 1fr 1fr; padding: 10px 16px; font-size: 15px; }
  .rc-row > div:not(:first-child) { text-align: right; font-weight: 700; }
  .rc-label { padding-bottom: 0; font-size: 12px; color: var(--muted); }
  .rc-label > div:not(:first-child) { font-weight: 400; }
  .rc-d { color: var(--muted); }
  .notice { font-size: 13px; }

  .calc-inner { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
  .calc-copy p { display: none; }
  .calc-box { padding: 18px; gap: 18px; border-radius: 16px; }
  .seg-btn { height: 44px; font-size: 15px; }
  .chip { padding: 0 12px; font-size: 14px; }
  .chip.is-active { padding: 0 11px; }
  .field-row { gap: 16px; }
  .calc-total output { font-size: 28px; }
  .calc-meta { font-size: 12px; }

  .guide-grid { gap: 10px; margin-bottom: 20px; }
  .guide-card { padding: 18px; gap: 6px; }
  .guide-card .g-icon { display: none; }
  .guide-card h3 { font-size: 16px; }
  .guide-card p { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 16px 18px; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps b { font-size: 20px; }
  .steps strong { font-size: 16px; }
  .steps span { font-size: 14px; }

  .location-inner { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
  .loc-info { gap: 18px; }
  .info-list { grid-template-columns: 72px 1fr; row-gap: 12px; font-size: 14px; }
  .big-tel { font-size: 16px; }
  .loc-media { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 95px 95px; gap: 10px; }
  .map-box { grid-column: 1 / -1; border-radius: 14px; }
  .photo-tall { grid-row: span 2; }
  .photo { border-radius: 14px; }
  .photo figcaption { display: none; }

  .footer-inner { padding-top: 32px; padding-bottom: 110px; }
  .f-brand { font-size: 18px; margin-bottom: 8px; }
  .f-info { font-size: 12px; line-height: 1.8; }
  .f-call { display: none; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15,27,51,.08); }
  .mobile-bar.single { grid-template-columns: 1fr; }
  .mobile-bar .btn { height: 52px; border-radius: 12px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
