/* ==========================================================================
   트립쿠폰허브 — 공통 스타일시트
   화이트 / 딥네이비 / 블루 톤, Pretendard + JetBrains Mono
   ========================================================================== */

:root {
  --navy-900: #08172c;
  --navy-800: #0d2140;
  --navy-700: #163158;
  --ink: #10233f;
  --ink-soft: #34465f;
  --muted: #64748b;
  --muted-2: #8494a8;
  --line: #e4e9f1;
  --line-strong: #d3dbe7;
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --white: #ffffff;
  --blue: #2f6bff;
  --blue-dark: #1f52d6;
  --blue-soft: #eef3ff;
  --sky: #dbe7ff;
  --green: #0f8a5f;
  --green-soft: #e8f6ef;
  --amber: #b45309;
  --amber-soft: #fff5e6;
  --red: #c8362f;
  --red-soft: #fdeceb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(9, 24, 46, .05), 0 4px 14px rgba(9, 24, 46, .05);
  --shadow-md: 0 12px 30px rgba(9, 24, 46, .10);
  --shadow-lg: 0 26px 60px rgba(6, 18, 37, .22);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(47, 107, 255, .55); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--navy-900);
  text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, #6ea1ff 100%);
  display: grid; place-items: center; color: #fff; font-size: 17px;
  box-shadow: 0 6px 14px rgba(47, 107, 255, .32);
}
.brand small {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; line-height: 1.2;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); font-size: 14.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px; text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--navy-900); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-soft); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy-900); color: #fff !important; font-size: 14px; font-weight: 700;
  padding: 9px 16px; border-radius: 10px; white-space: nowrap;
}
.header-cta:hover { background: var(--navy-700); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -10%, rgba(47, 107, 255, .30), transparent 60%),
    radial-gradient(700px 380px at 4% 10%, rgba(110, 161, 255, .14), transparent 65%),
    linear-gradient(160deg, #08172c 0%, #0d2140 55%, #102a52 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px; align-items: center;
  padding-top: 62px; padding-bottom: 70px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  color: #d9e6ff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 7px 13px; border-radius: 999px; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #5cf0b4; box-shadow: 0 0 0 4px rgba(92, 240, 180, .18); }
.hero h1 {
  margin: 0 0 18px; font-size: clamp(30px, 4.1vw, 47px); line-height: 1.26;
  letter-spacing: -.035em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: #8fb6ff; }
.hero-lead {
  margin: 0 0 28px; color: #c2d2e8; font-size: 16.5px; line-height: 1.75; max-width: 46ch;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.hero-stats li {
  display: flex; align-items: baseline; gap: 7px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  padding: 9px 14px; border-radius: 12px; font-size: 13px; color: #c9d8ee;
}
.hero-stats strong { font-size: 17px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; padding: 13px 22px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(47, 107, 255, .38); }
.btn-primary:hover { background: #3f79ff; }
.btn-ghost { background: rgba(255, 255, 255, .10); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .17); }
.btn-light { background: #fff; color: var(--navy-900); border-color: var(--line-strong); }
.btn-light:hover { background: #f7f9fd; }
.btn-block { width: 100%; }

/* ---------- calculator ---------- */
.calc {
  background: #fff; color: var(--ink); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, .6);
}
.calc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.calc-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.calc-title span { color: var(--blue); }
.calc-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.calc-live {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 11px; font-weight: 800; color: var(--green); background: var(--green-soft);
  padding: 5px 9px; border-radius: 999px; letter-spacing: .04em;
}
.calc-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input-money { position: relative; }
.input-money input {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 11px;
  padding: 13px 44px 13px 14px; font-family: var(--mono); font-size: 18px; font-weight: 700;
  color: var(--ink); background: #fff; letter-spacing: -.02em;
}
.input-money input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(47, 107, 255, .13); }
.input-money .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; font-weight: 700; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc select {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 11px;
  padding: 12px 34px 12px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  appearance: none; cursor: pointer;
}
.calc select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(47, 107, 255, .13); }
.calc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 16px; }
.calc-quick button {
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-soft);
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  font-family: var(--mono);
}
.calc-quick button:hover { background: var(--sky); border-color: #c3d6ff; color: var(--navy-800); }
.calc-result { background: linear-gradient(165deg, #f7f9ff 0%, #eef3ff 100%); border: 1px solid #dbe6ff; border-radius: 15px; padding: 16px 17px; }
.calc-breakdown { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.calc-breakdown li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.calc-breakdown li span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.calc-breakdown li b { font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.calc-breakdown .minus b { color: var(--red); }
.calc-breakdown .plus b { color: var(--green); }
.calc-total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  border-top: 1px dashed #c9d8f5; padding-top: 12px;
}
.calc-total .label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.calc-total .amount { font-family: var(--mono); font-size: 27px; font-weight: 800; letter-spacing: -.04em; color: var(--navy-900); line-height: 1.1; }
.calc-total .amount small { font-size: 15px; font-weight: 700; margin-left: 3px; color: var(--muted); }
.calc-save { display: inline-flex; align-items: center; gap: 5px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 8px; margin-top: 8px; }
.calc-note { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.calc-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 14px 0 4px; }

/* ---------- section basics ---------- */
.section { padding: 62px 0; }
.section-tight { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; font-weight: 800; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
.section-head .link-more { font-size: 14px; font-weight: 700; white-space: nowrap; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .10em; color: var(--blue-dark); text-transform: uppercase; margin-bottom: 10px; }

/* ---------- toolbar / filters ---------- */
.toolbar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font-size: 13.5px; font-weight: 700; padding: 9px 15px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { border-color: #bfd2f7; background: var(--blue-soft); }
.tab[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tab .count { font-family: var(--mono); font-size: 11px; opacity: .75; }
.toolbar-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: #bfd2f7; color: var(--blue-dark); }
.chip[aria-pressed="true"] { background: var(--blue-soft); border-color: #b9cffb; color: var(--blue-dark); }
.search { position: relative; margin-left: auto; min-width: 210px; flex: 1 1 210px; max-width: 300px; }
.search input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 9px 12px 9px 34px; font-size: 13.5px; background: #fff;
}
.search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--muted-2); }
.sort {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 30px 9px 11px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); background: #fff; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.filter-meta { display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.filter-meta strong { color: var(--ink); }
.reset-btn { border: 0; background: none; color: var(--blue-dark); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ---------- coupon cards ---------- */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.coupon {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.coupon:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c9d8f4; }
.coupon-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.platform-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; letter-spacing: .01em;
}
.platform-chip i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.p-myrealtrip { background: #fff0f3; color: #c0264a; }
.p-myrealtrip i { background: #ff3b64; }
.p-klook { background: #fff3ec; color: #b84a12; }
.p-klook i { background: #ff6a2b; }
.p-agoda { background: #eef4ff; color: #1f4fbd; }
.p-agoda i { background: #3c6ef0; }
.p-tripcom { background: #eaf6ff; color: #0b5f9e; }
.p-tripcom i { background: #199ef0; }
.badge-dday {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; font-weight: 800;
  padding: 5px 9px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-soft); white-space: nowrap;
}
.badge-dday.is-urgent { background: var(--red-soft); color: var(--red); }
.badge-dday.is-soon { background: var(--amber-soft); color: var(--amber); }
.badge-dday.is-upcoming { background: #eef4ff; color: var(--blue-dark); }
.discount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.discount .num { font-size: 27px; font-weight: 800; letter-spacing: -.045em; color: var(--navy-900); line-height: 1.15; }
.discount .num small { font-size: 15px; font-weight: 800; margin-left: 2px; }
.discount .off { font-size: 13px; font-weight: 800; color: var(--blue-dark); background: var(--blue-soft); padding: 3px 8px; border-radius: 7px; }
.coupon h3 { margin: 2px 0 8px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.coupon .desc { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.62; }
.meta-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.meta-list li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.meta-list li b { color: var(--ink-soft); font-weight: 700; }
.meta-list li .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.meta-list .mono { font-family: var(--mono); font-size: 12px; letter-spacing: -.02em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
  background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line);
}
.tag.stack { background: var(--blue-soft); color: var(--blue-dark); border-color: #cddcfd; }
.tag.hot { background: var(--amber-soft); color: var(--amber); border-color: #f5dfba; }
.code-box { display: flex; gap: 8px; margin: auto 0 10px; }
.code {
  flex: 1; min-width: 0; border: 1.5px dashed #c2d3f0; background: #f8faff; border-radius: 10px;
  padding: 10px 12px; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--navy-800);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; letter-spacing: .01em;
}
.code span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code .copy-mini { border: 0; background: none; color: var(--blue-dark); font-size: 11px; font-weight: 800; cursor: pointer; padding: 2px; flex-shrink: 0; }
.code.no-code { border-style: solid; border-color: var(--line); background: #fff; font-family: var(--font); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.coupon-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.coupon-actions .btn { padding: 11px 16px; font-size: 14px; border-radius: 10px; }
.coupon details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 2px; }
.coupon summary {
  list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 9px 0 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.coupon summary::-webkit-details-marker { display: none; }
.coupon summary::after { content: "+"; font-size: 15px; color: var(--muted-2); }
.coupon details[open] summary::after { content: "−"; }
.coupon details ul { margin: 8px 0 4px; padding-left: 16px; display: grid; gap: 5px; }
.coupon details li { font-size: 12.3px; color: var(--ink-soft); line-height: 1.6; }
.coupon details li::marker { color: var(--muted-2); }
.coupon-foot { font-size: 11px; color: var(--muted-2); margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: #fff;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted);
}
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 320px at 90% -30%, rgba(47, 107, 255, .18), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 42px;
}
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-dark); }
.crumbs .sep { color: var(--line-strong); }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.035em; font-weight: 800; line-height: 1.3; }
.page-hero .lead { margin: 0 0 22px; color: var(--ink-soft); font-size: 16px; max-width: 74ch; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px 16px;
  min-width: 132px; box-shadow: var(--shadow-sm);
}
.stat .k { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.stat .v { font-family: var(--mono); font-size: 19px; font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; }
.stat .v small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 2px; }

/* ---------- content blocks ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; letter-spacing: -.03em; margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; letter-spacing: -.02em; margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 20px; display: grid; gap: 7px; margin: 0 0 16px; }
.prose li::marker { color: var(--muted-2); }
.prose strong { color: var(--ink); }
.note {
  background: var(--blue-soft); border: 1px solid #d3e0ff; border-radius: 13px;
  padding: 15px 18px; font-size: 13.5px; color: var(--ink-soft); margin: 0 0 20px;
}
.note strong { color: var(--blue-dark); }
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; font-size: 14px; color: var(--ink-soft);
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -.02em; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.card .big { font-family: var(--mono); font-size: 26px; font-weight: 800; color: var(--navy-900); letter-spacing: -.04em; margin-bottom: 2px; }
.link-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.link-list a:hover { border-color: #bfd2f7; background: #fafcff; text-decoration: none; }
.link-list a span.arrow { color: var(--blue); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data caption { text-align: left; padding: 16px 18px 0; font-size: 12.5px; color: var(--muted); }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: #f8fafd; font-size: 12px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
table.data td .code-inline { font-family: var(--mono); font-size: 12.5px; background: #f4f7fd; border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
table.data tr.is-best td { background: #f6faff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 0 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 30px 17px 0; font-size: 15px; font-weight: 700;
  position: relative; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--muted-2);
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.72; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--navy-900); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 300;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ok { color: #5cf0b4; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bbd3; padding: 52px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand small { color: #8fa4c0; }
.site-footer p { font-size: 13px; line-height: 1.75; color: #9db0c9; margin: 0 0 10px; }
.site-footer h4 { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #dbe6f5; text-transform: uppercase; margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #a9bbd3; font-size: 13.5px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10); margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #7f95b3;
}
.footer-disclosure { font-size: 11.5px; color: #7f95b3; line-height: 1.7; margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; padding-bottom: 54px; }
  .hero-lead { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; position: absolute; left: 16px; right: 16px; top: 72px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 10px; flex-direction: column; align-items: stretch; gap: 2px;
  }
  .nav.open a { padding: 12px 14px; }
  .header-cta { display: none; }
  .nav.open .header-cta { display: inline-flex; justify-content: center; margin-top: 6px; color: #fff !important; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero-inner { padding-top: 34px; padding-bottom: 44px; }
  .hero h1 { font-size: 29px; }
  .calc { padding: 20px 17px 18px; border-radius: 18px; }
  .calc-row { grid-template-columns: 1fr; }
  .coupon-grid { grid-template-columns: 1fr; }
  .coupon { padding: 18px 16px 16px; }
  .toolbar { padding: 12px; }
  .search { margin-left: 0; max-width: none; }
  .stat { flex: 1 1 40%; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .discount .num { font-size: 24px; }
  .calc-total .amount { font-size: 24px; }
  .section-head { margin-bottom: 18px; }
  .page-hero { padding: 20px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
