/* ==========================================================================
   Aravoza (알아보자 AI) — AI 요금제·무료 한도 비교 허브
   styles.css · 아정당(ajd.co.kr) 톤 리뉴얼
   - 파랑 #145CE6 / 연파랑 #ECF2FD / 연회색 #F4F6FA / 잉크 #1F2429
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-soft-2: #ecf0f4;
  --bg-blue: #ecf2fd;
  --bg-blue-2: #f6f9fe;

  --ink: #1f2429;
  --ink-2: #575e64;
  --ink-3: #8c939a;
  --ink-4: #b4bac1;

  --blue: #145ce6;
  --blue-deep: #0e49c0;
  --blue-soft: #ecf2fd;
  --blue-line: #d8e4fb;
  --blue-grad: linear-gradient(164deg, #4c9af9 0%, #365cdf 100%);

  --line: #ecf0f4;
  --line-2: #e2e7ee;

  --ok: #0b8a5f;
  --ok-bg: #e9f7f0;
  --warn: #b4650a;
  --warn-bg: #fff5e6;
  --yellow: #fee500;

  --r-btn: 10px;
  --r-card: 20px;
  --r-lg: 24px;
  --r-xl: 28px;

  --shadow-card: 0 2px 10px -6px rgba(31, 36, 41, 0.16);
  --shadow-float: 0 18px 48px -28px rgba(31, 36, 41, 0.28);
  --shadow-modal: 0 40px 90px -40px rgba(31, 36, 41, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1080px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
body.has-compare { padding-bottom: 96px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.035em; font-weight: 700; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.noscript-bar {
  padding: 12px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--warn);
  background: var(--warn-bg);
  border-bottom: 1px solid #f6e2c8;
}

/* 상단 안내 바 ------------------------------------------------------------- */
.promo-bar {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 20px;
  text-align: center;
}
.promo-inner strong { font-weight: 700; }
.promo-inner .promo-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}
.promo-inner a {
  display: inline-flex; align-items: center; gap: 3px;
  color: #fff; font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}
.promo-inner a:hover { opacity: 0.85; }

/* 헤더 -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
}

.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; }
.brand-name {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.util-nav { display: flex; gap: 18px; }
.util-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s var(--ease);
}
.util-nav a:hover { color: var(--blue); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.currency-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-soft);
  border-radius: 999px;
}
.currency-toggle button {
  border: none;
  background: transparent;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  letter-spacing: 0;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.currency-toggle button:hover { color: var(--ink); }
.currency-toggle button[aria-pressed="true"] {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(31, 36, 41, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 8px 18px -10px rgba(20, 92, 230, 0.8); }
.btn-outline {
  background: var(--white);
  border-color: var(--line-2);
  color: var(--ink);
  font-weight: 600;
}
.btn-outline:hover { border-color: var(--ink-4); background: var(--bg-soft); }
.btn-ghost {
  background: var(--white);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-4); }
.btn-text { background: none; color: var(--ink-2); padding: 10px 12px; font-weight: 600; }
.btn-text:hover { color: var(--blue); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-head-compare {
  gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.btn-head-compare:hover { background: var(--blue-soft); color: var(--blue); }
.head-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.head-count.is-active { background: var(--blue); color: #fff; }

/* 카테고리 네비 (2단) */
.header-cats {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 50px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.header-cats::-webkit-scrollbar { display: none; }
.header-cats button, .header-cats > a {
  position: relative;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.header-cats button:hover, .header-cats > a:hover,
.header-cats button[aria-current="true"] { color: var(--blue); }
.header-cats button .dot-new {
  position: absolute;
  top: -1px;
  right: -7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #f04452;
}
.header-cats .nav-end { margin-left: auto; }
.header-cats .nav-end a {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 4px 0;
}
.header-cats .nav-end a:hover { color: var(--blue); }

/* 히어로 ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-blue);
  padding: 52px 0 118px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 45%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 44px;
  align-items: center;
}

.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.hero h1 {
  font-size: clamp(2.1rem, 4.1vw, 2.85rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.hero h1 .accent { color: var(--blue); }

.hero-sub {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.hero-sub strong { color: var(--ink); font-weight: 700; }

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 7px 7px 7px 0;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  max-width: 540px;
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.hero-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 92, 230, 0.12), var(--shadow-float);
}
.search-icon {
  position: absolute;
  left: 17px;
  width: 19px;
  height: 19px;
  color: var(--ink-3);
  pointer-events: none;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 6px 13px 46px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}
.hero-search input::placeholder { color: var(--ink-4); }
.hero-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-search input:focus { outline: none; }

.search-clear {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-3);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.search-clear:hover { background: var(--bg-soft-2); color: var(--ink); }
.search-submit { border-radius: 10px; padding: 12px 20px; }

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}
.quick-label { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.tag-chip {
  padding: 7px 13px;
  border: 1px solid rgba(20, 92, 230, 0.14);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.tag-chip:hover { border-color: var(--blue); color: var(--blue); background: #fff; }

.hero-visual { display: grid; place-items: center; }
.hero-card-float {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 26px 60px -34px rgba(31, 36, 41, 0.4);
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-pill {
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hero-icon {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border-radius: 14px;
}
.hero-icon img { width: 56%; height: 56%; object-fit: contain; }
.hero-card-float:hover .hero-icon:nth-child(2n) { transform: translateY(-2px); }
.hero-icon { transition: transform 0.2s var(--ease); }
.hero-card-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hero-card-bottom > div { display: flex; flex-direction: column; gap: 1px; }
.mini-label { font-size: 11.5px; color: var(--ink-3); }
.hero-card-bottom strong {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--blue-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-card-bottom strong .per { font-size: 0.66em; font-weight: 700; -webkit-text-fill-color: var(--ink-3); }

/* 히어로 아래 바로가기 패널 -------------------------------------------------- */
.quick-services {
  position: relative;
  z-index: 3;
  margin-top: -78px;
}
.qs-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}
.qs-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--bg-soft);
  flex: 1 1 auto;
}
.qs-label {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.qs-items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.qs-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qs-item strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
.qs-item span { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* 공통 섹션 ---------------------------------------------------------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.section-head p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.section-head.left { text-align: left; margin-left: 0; }

/* 왜 Aravoza인가요 ---------------------------------------------------------- */
.why { padding: 64px 0 20px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.why-card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.why-num {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.why-card h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 6px; }
.why-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 26px 20px;
  background: var(--bg-soft);
  border-radius: var(--r-card);
  text-align: center;
}
.stat-strip > div { display: flex; flex-direction: column; gap: 2px; }
.stat-strip strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
.stat-strip span { font-size: 12.5px; color: var(--ink-3); }

/* 툴 목록 ------------------------------------------------------------------ */
.tools { padding: 56px 0 20px; scroll-margin-top: 118px; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}

.tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 17px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.tab:hover { border-color: var(--blue-line); color: var(--blue); background: var(--bg-blue-2); }
.tab[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue);
  font-weight: 700;
}
.tab-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

.filter-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative;
  width: 40px; height: 23px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  transition: background 0.2s var(--ease);
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 36, 41, 0.25);
  transition: transform 0.22s var(--ease);
}
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(17px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch-label { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 36px 10px 15px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.select-wrap select:hover { border-color: var(--blue-line); }
.select-arrow { position: absolute; right: 12px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }

.result-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px 0;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
.result-meta strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--blue); font-size: 13px; font-weight: 700;
  padding: 4px 0;
}
.link-btn:hover { color: var(--blue-deep); text-decoration: underline; }

/* 그리드 & 카드 ------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(326px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
  animation: cardIn 0.32s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-line);
  box-shadow: 0 18px 40px -26px rgba(20, 92, 230, 0.35);
}
.card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 92, 230, 0.1);
}

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

.card-icon {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border-radius: 14px;
  overflow: hidden;
}
.card-icon img { width: 30px; height: 30px; object-fit: contain; }
.card-icon .icon-fallback {
  display: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.card-icon.is-broken img { display: none; }
.card-icon.is-broken .icon-fallback { display: block; }

.card-title { flex: 1; min-width: 0; }
.card-title h3 { font-size: 1.06rem; font-weight: 800; letter-spacing: -0.04em; }
.card-vendor { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge-cat {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  white-space: nowrap;
}

.card-tagline { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; min-height: 2.9em; }

.free-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.free-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--white);
  color: var(--blue);
  margin-top: 1px;
}
.free-row.is-none { background: var(--warn-bg); color: #8a5200; }
.free-row.is-none .free-tag { background: #fff; color: #a8630c; }

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px 10px;
  padding-top: 2px;
}
.price-main { display: flex; flex-direction: column; gap: 1px; flex: 0 0 auto; }
.price-label { font-size: 11.5px; color: var(--ink-3); }
.price-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--blue-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-value .per { font-size: 0.62em; font-weight: 700; margin-left: 1px; letter-spacing: 0; -webkit-text-fill-color: var(--ink-3); }
.price-alt { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; padding-bottom: 3px; }
.price-note {
  flex: 1 1 100%;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

.value-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--bg-blue-2);
}
.value-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.value-line p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }

.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-ko-full { background: var(--blue-soft); color: var(--blue); }
.badge-ko-part { background: #eef6ff; color: #1c6fd0; }
.badge-ko-en { background: var(--bg-soft); color: var(--ink-2); }
.badge-aff-yes { background: var(--ok-bg); color: var(--ok); }
.badge-aff-no { background: var(--bg-soft); color: var(--ink-3); }
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.highlights li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.highlights li::before {
  content: "";
  position: absolute; left: 3px; top: 6px;
  width: 5px; height: 5px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0.5;
}

.compare-point {
  padding-top: 11px;
  border-top: 1px dashed var(--line-2);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.compare-point strong { display: block; font-size: 11px; font-weight: 800; color: var(--ink-2); margin-bottom: 2px; }

.card-actions { display: flex; gap: 7px; margin-top: auto; padding-top: 4px; }
.card-actions .btn { flex: 1; padding: 11px 12px; font-size: 13.5px; border-radius: var(--r-btn); }
.btn-compare {
  background: var(--white);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-weight: 600;
}
.btn-compare:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-4); }
.btn-compare[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: var(--blue);
}

/* 빈 상태 / 오류 ------------------------------------------------------------ */
.empty, .load-error {
  margin-top: 20px;
  padding: 52px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-soft);
}
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; background: var(--white); color: var(--ink-3); }
.empty h2, .load-error h2 { font-size: 1.05rem; margin-bottom: 6px; }
.empty p, .load-error p { color: var(--ink-2); font-size: 13.5px; margin-bottom: 16px; }
.load-error pre {
  display: inline-block; margin: 0; padding: 11px 15px;
  border-radius: 10px; background: var(--white); border: 1px solid var(--line);
  color: var(--blue); text-align: left; overflow-x: auto; max-width: 100%;
}

/* 가성비 표 ----------------------------------------------------------------- */
.value-section { padding: 64px 0 8px; }
.value-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
table.value-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
table.value-table th, table.value-table td {
  padding: 15px 18px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.value-table thead th {
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
table.value-table tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
table.value-table td.num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}
table.value-table tr:last-child th, table.value-table tr:last-child td { border-bottom: none; }
table.value-table td.small { color: var(--ink-2); font-size: 13px; }
.value-foot { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* 고르는 법 ----------------------------------------------------------------- */
.guide { padding: 60px 0 20px; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px;
}
.guide-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.guide-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow-card); }
.guide-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  margin-bottom: 10px;
}
.guide-card h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.035em; }
.guide-card p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* 비교 방법 ----------------------------------------------------------------- */
.method { padding: 52px 0 20px; }
.method-card {
  padding: 30px 28px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
}
.method-card h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.045em; margin-bottom: 6px; }
.method-card .lead { font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; }
.method-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method-item {
  padding: 18px;
  background: var(--white);
  border-radius: 16px;
}
.method-item strong { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.method-item p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.method-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }

/* FAQ ---------------------------------------------------------------------- */
.faq { padding: 52px 0 80px; }
.faq-wrap { max-width: 860px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.03em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-plus { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.6px;
  border-radius: 2px;
  background: var(--ink-3);
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--blue); }
.faq-body { padding: 0 2px 22px; }
.faq-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; max-width: 72ch; }
.faq-body p + p { margin-top: 8px; }
.faq-body strong { color: var(--ink); font-weight: 700; }
.faq-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* 페이지(소개·방침·문의) ----------------------------------------------------- */
.page-hero {
  background: var(--bg-blue);
  padding: 46px 0 44px;
}
.page-hero .eyebrow { background: rgba(255, 255, 255, 0.85); }
.page-hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.32;
}
.page-hero p { margin-top: 10px; max-width: 60ch; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.page-meta { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

.page-body { padding: 44px 0 72px; }
.prose { max-width: 820px; }
.prose h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 34px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
  line-height: 1.45;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 15px; font-weight: 800; margin: 20px 0 6px; }
.prose p { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { margin: 8px 0 0; padding-left: 20px; }
.prose li { font-size: 14px; color: var(--ink-2); line-height: 1.85; margin-bottom: 4px; }
.prose li strong, .prose p strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose .note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
}
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.prose table th, .prose table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose table thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink-2); font-size: 12.5px; }
.prose table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose .doc-list { list-style: none; padding: 0; }
.prose .doc-list li { display: flex; gap: 8px; }
.prose .doc-list li::before { content: "·"; color: var(--blue); font-weight: 800; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
}
.contact-card .contact-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-card h2 { font-size: 16px; font-weight: 800; margin: 0 0 6px; padding: 0; border: none; letter-spacing: -0.035em; }
.contact-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.contact-card a.mail {
  display: inline-block;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--blue);
  word-break: break-all;
}
.contact-card a.mail:hover { text-decoration: underline; }
.mail-template {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.85;
}
.mail-template strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13.5px; }

/* 푸터 --------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  padding: 40px 0 48px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-name { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -0.04em; }
.footer-sub { display: block; font-size: 12px; color: var(--ink-3); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.footer-nav a:hover { color: var(--blue); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 16px 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-meta #footerUpdated, .footer-meta #footerRate { color: var(--ink-2); font-weight: 700; }
.footer-note {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.8;
  max-width: 98ch;
}
.footer-note + .footer-note { margin-top: 6px; }
.footer-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--ink-3); }

/* 비교 바 ------------------------------------------------------------------ */
.compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -24px rgba(31, 36, 41, 0.5);
  animation: barIn 0.24s var(--ease) both;
}
@keyframes barIn { from { transform: translateY(100%); } to { transform: none; } }
.compare-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 12px; padding-bottom: 12px;
}
.compare-slots { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 38px; }
.slot {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 7px 5px 5px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 13.5px;
  font-weight: 700;
}
.slot img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 7px; padding: 2px; }
.slot button {
  display: grid; place-items: center;
  width: 19px; height: 19px;
  border: none; border-radius: 50%;
  background: var(--white);
  color: var(--ink-3);
  font-size: 0.95rem; line-height: 1; cursor: pointer;
}
.slot button:hover { background: var(--ink); color: #fff; }
.slot-empty {
  padding: 8px 13px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.compare-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* 비교 모달 ---------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(31, 36, 41, 0.45);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.16s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.22s var(--ease) both;
  overflow: hidden;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 1.05rem; font-weight: 800; }
.modal-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink-2);
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-body { padding: 0 22px 24px; overflow-y: auto; }

.cmp-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 540px; }
table.cmp th, table.cmp td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
table.cmp thead th {
  position: sticky; top: 0;
  background: var(--white);
  padding-top: 18px;
  z-index: 1;
}
table.cmp thead th:first-child { width: 104px; }
table.cmp tbody th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
table.cmp td { color: var(--ink); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }
.cmp-head { display: flex; align-items: center; gap: 9px; }
.cmp-head img { width: 30px; height: 30px; object-fit: contain; background: var(--bg-soft); border-radius: 9px; padding: 4px; }
.cmp-head strong { font-size: 0.95rem; display: block; letter-spacing: -0.03em; }
.cmp-head span { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.cmp-price {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--blue-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cmp-krw { display: block; font-size: 12px; color: var(--ink-2); font-weight: 500; -webkit-text-fill-color: var(--ink-2); }
.cmp-highlights { margin: 0; padding-left: 14px; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.cmp-cta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.cmp-note { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.cmp-note strong { color: var(--ink); }
.cmp-note .cmp-hint { font-size: 12px; color: var(--ink-3); }
.cmp-value { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

/* 반응형 ------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { padding: 40px 0 108px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { justify-items: start; }
  .hero-card-float { max-width: 440px; }
  .util-nav { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .method-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .promo-inner { font-size: 12px; gap: 6px; }
  .header-top { height: 56px; gap: 10px; }
  .brand-name { font-size: 1.1rem; }
  .header-cats { gap: 18px; height: 46px; }
  .header-cats button { font-size: 14px; }
  .currency-toggle button { padding: 6px 9px; font-size: 11.5px; }
  .btn-head-compare { padding: 8px 12px; font-size: 12.5px; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.3rem); }
  .hero-sub { font-size: 15px; }
  .hero-search { flex-wrap: wrap; border-radius: 14px; }
  .search-submit { width: 100%; }
  .hero-visual { display: none; }
  .qs-card { padding: 12px; gap: 6px; }
  .qs-group { flex: 1 1 100%; padding: 10px 12px; }
  .qs-items { gap: 14px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; padding: 20px 14px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; padding: 9px 14px; font-size: 13.5px; }
  .filter-right { justify-content: space-between; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 18px; }
  .card-tagline { min-height: 0; }
  .footer-top { flex-direction: column; gap: 14px; }
  .compare-inner { flex-direction: column; align-items: stretch; gap: 9px; }
  .compare-actions { justify-content: flex-end; }
  .modal { padding: 0; place-items: end center; }
  .modal-panel { max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-body { padding: 0 14px 20px; }
  .modal-head { padding: 14px 16px; }
  .page-hero { padding: 34px 0 32px; }
  .prose h2 { font-size: 1.05rem; margin-top: 28px; }
}

@media (max-width: 420px) {
  .currency-toggle { display: none; }
  .card-top { flex-wrap: wrap; }
  .badge-cat { order: 3; }
}

/* 모션·인쇄 ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .promo-bar, .compare-bar, .modal, .filter-bar, .hero-search, .quick-tags,
  .hero-visual, .quick-services { display: none !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; border-color: #ddd; }
  .why, .method { break-inside: avoid; }
}
