/* ============================================================
   세금체크 KR · 공용 스타일
   ============================================================ */
:root {
  --bg: #f2f5fa;
  --bg-soft: #e9eef7;
  --card: #ffffff;
  --card-2: #f7f9fd;
  --line: #e2e8f3;
  --line-strong: #cfd8e8;
  --text: #0d1726;
  --text-2: #33415c;
  --muted: #68758c;
  --brand: #2c5cff;
  --brand-dark: #1b3fd0;
  --brand-soft: #eaf0ff;
  --mint: #009e83;
  --mint-soft: #e6f7f2;
  --coral: #e94b32;
  --coral-soft: #fdece8;
  --amber: #b7791f;
  --shadow: 0 1px 2px rgba(13, 23, 38, .04), 0 12px 32px -18px rgba(13, 23, 38, .22);
  --shadow-lg: 0 2px 6px rgba(13, 23, 38, .05), 0 32px 64px -32px rgba(13, 23, 38, .3);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --max: 1180px;
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --bg-soft: #111a2c;
  --card: #141d2f;
  --card-2: #17223a;
  --line: #22304a;
  --line-strong: #2f405e;
  --text: #eef3fb;
  --text-2: #c3cee1;
  --muted: #97a5bf;
  --brand: #6f92ff;
  --brand-dark: #4a72ff;
  --brand-soft: #182647;
  --mint: #37d6b6;
  --mint-soft: #10312c;
  --coral: #ff8a72;
  --coral-soft: #3a1d18;
  --amber: #f0b44c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .4), 0 40px 80px -40px #000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -.03em; font-weight: 750; }
p { margin: 0; }
button { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.04em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center;
  font-size: 17px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent);
}
.brand-name { font-size: 16.5px; }
.brand-name span { color: var(--brand); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-2); font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.theme-toggle {
  margin-left: 4px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; font-size: 16px; flex: 0 0 auto;
}
.theme-toggle:hover { border-color: var(--line-strong); }

/* ---------- Page shell ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 0 20px 72px; }
.hero { padding: 44px 0 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 999px; margin-bottom: 14px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: clamp(27px, 4.4vw, 42px); letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { margin-top: 12px; color: var(--muted); font-size: clamp(14.5px, 1.7vw, 16.5px); max-width: 720px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px;
}
.pill svg { flex: 0 0 auto; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 392px; gap: 26px; }
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card-head { padding: 22px 22px 0; }
.card-head h2 { font-size: 19px; letter-spacing: -.035em; }
.card-head p { margin-top: 5px; color: var(--muted); font-size: 13.5px; }
.card-body { padding: 20px 22px 24px; }
@media (max-width: 560px) {
  .card-head { padding: 18px 16px 0; }
  .card-body { padding: 16px 16px 20px; }
  .page { padding: 0 14px 88px; }
  .header-inner { padding: 10px 12px; gap: 6px; }
  .brand-name { display: none; }
  .nav a { padding: 7px 9px; font-size: 13px; }
  .theme-toggle { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  .nav a { padding: 6px 7px; font-size: 12.5px; }
  .brand-mark { width: 32px; height: 32px; }
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend.group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 750; color: var(--text-2);
  letter-spacing: -.01em; padding: 0 0 10px;
}
.group-title .step {
  width: 20px; height: 20px; border-radius: 7px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
}
.group + .group { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.group-hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label {
  font-size: 13px; font-weight: 650; color: var(--text-2);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.field .opt { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.input-wrap {
  display: flex; align-items: center; gap: 6px;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 12px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-wrap:focus-within {
  border-color: var(--brand); background: var(--card);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}
.input-wrap input, .input-wrap select {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: 0; background: transparent; color: var(--text);
  font-size: 16.5px; font-weight: 650; font-variant-numeric: tabular-nums;
  padding: 13px 0; outline: none; appearance: none;
}
.input-wrap select { font-size: 15px; font-weight: 600; cursor: pointer; }
.input-wrap .unit { font-size: 13px; color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.input-wrap .unit.suffix { padding-left: 2px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select { padding-right: 26px; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 13px; font-size: 13.5px; color: var(--text-2); font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.check:hover { border-color: var(--line-strong); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.check small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
.check:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); }

.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--bg-soft); border-radius: 12px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 650;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: all .15s ease;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(13, 23, 38, .12); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.input-wrap .chip { flex: 0 0 auto; padding: 5px 9px; font-size: 11px; letter-spacing: -.02em; }
.input-wrap .chip:hover { background: var(--brand-soft); border-color: var(--brand); }
.chip:hover { border-color: var(--brand); color: var(--brand); }

details.adv { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
details.adv > summary {
  cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--brand);
  list-style: none; display: flex; align-items: center; gap: 6px;
}
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: "＋"; font-weight: 800; }
details.adv[open] > summary::before { content: "－"; }
details.adv .adv-body { margin-top: 14px; }

/* ---------- Result panel ---------- */
.result { position: sticky; top: 82px; scroll-margin-top: 84px; }
@media (max-width: 999px) { .result { position: static; } }
.card, .section-block { scroll-margin-top: 84px; }
.result-card {
  border-radius: var(--radius); overflow: hidden; color: #fff;
  background: linear-gradient(140deg, #2c5cff 0%, #1b3fd0 62%, #1736b4 100%);
  box-shadow: var(--shadow-lg);
}
.result-card.is-plus { background: linear-gradient(140deg, #ff7452 0%, #e8442b 60%, #cf341d 100%); }
.result-card.is-zero { background: linear-gradient(140deg, #4a5b7d 0%, #2c3852 100%); }
.result-top { padding: 24px 24px 20px; position: relative; }
.result-top::after {
  content: ""; position: absolute; inset: auto -30% -70% 40%; height: 220px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
  pointer-events: none;
}
.result-label { font-size: 13.5px; font-weight: 650; opacity: .9; display: flex; align-items: center; gap: 6px; }
.result-amount {
  margin-top: 6px; font-size: clamp(34px, 6vw, 44px); font-weight: 800; letter-spacing: -.045em;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.result-amount .won-sign { font-size: .58em; font-weight: 700; margin-left: 3px; opacity: .9; }
.result-sub { margin-top: 8px; font-size: 13px; opacity: .88; }
.result-note {
  margin-top: 16px; background: rgba(255, 255, 255, .14); border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.55;
}
.result-note b { font-weight: 750; }
.result-body { background: var(--card); color: var(--text); padding: 6px 24px 22px; border-radius: 20px 20px 0 0; margin-top: -12px; position: relative; }
.breakdown { display: flex; flex-direction: column; }
.brow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; }
.brow + .brow { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.brow dt, .brow .k { color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.brow .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brow.total { padding-top: 12px; margin-top: 2px; border-top: 1.5px solid var(--line); font-size: 14.5px; }
.brow.total .k { color: var(--text); font-weight: 750; }
.brow.total .v { font-size: 16px; }
.v.minus { color: var(--coral); }
.v.plus { color: var(--mint); }
.v.muted { color: var(--muted); font-weight: 600; }

.tip {
  margin-top: 16px; background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--mint) 26%, transparent);
  color: var(--text-2); border-radius: 12px; padding: 12px 13px; font-size: 12.8px; line-height: 1.6;
}
.tip b { color: var(--mint); }
.tip.warn { background: var(--coral-soft); border-color: color-mix(in srgb, var(--coral) 26%, transparent); }
.tip.warn b { color: var(--coral); }
.tip ul { margin: 6px 0 0; padding-left: 16px; }
.tip li + li { margin-top: 3px; }

.bars { margin: 15px 0 2px; display: flex; flex-direction: column; gap: 9px; }
.bar-row { font-size: 12px; color: var(--muted); }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 4px; font-weight: 600; }
.bar-track { height: 7px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #6f92ff); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar-fill.mint { background: linear-gradient(90deg, #00b894, #37d6b6); }
.bar-fill.gray { background: linear-gradient(90deg, #9aa8c0, #c3cee1); }

/* ---------- Sections ---------- */
.section-block { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(20px, 2.6vw, 26px); }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .checklist { grid-template-columns: minmax(0, 1fr); } }
.check-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 16px 15px; box-shadow: var(--shadow); display: flex; gap: 12px;
}
.check-item .idx {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800;
}
.check-item h3 { font-size: 14.5px; letter-spacing: -.02em; }
.check-item p { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.check-item .saving { display: inline-block; margin-top: 7px; font-size: 12px; font-weight: 700; color: var(--mint); }

.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promo-grid { grid-template-columns: minmax(0, 1fr); } }
.promo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  color: var(--text); text-decoration: none;
}
a.promo:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-1px); }
.promo-tag { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--brand); }
.promo h3 { font-size: 15.5px; }
.promo p { font-size: 13px; color: var(--muted); }
.promo .go { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--brand); }
.ad-slot {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, transparent, transparent 9px, color-mix(in srgb, var(--line) 40%, transparent) 9px, color-mix(in srgb, var(--line) 40%, transparent) 10px);
  display: grid; place-items: center; min-height: 110px; color: var(--muted); font-size: 12px; text-align: center; padding: 16px;
}
.ad-slot small { display: block; font-size: 11px; opacity: .8; margin-top: 2px; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 18px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--muted); font-weight: 700; flex: 0 0 auto; }
.faq details[open] summary::after { content: "－"; }
.faq .answer { padding: 0 0 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.faq .answer p + p { margin-top: 8px; }
.faq .answer ul { margin: 6px 0 0; padding-left: 18px; }
.faq .answer li + li { margin-top: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
table.data th, table.data td { padding: 11px 13px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { background: var(--card-2); color: var(--text-2); font-weight: 700; font-size: 12.5px; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.k { font-weight: 650; color: var(--text-2); }
table.data tr.hi td { background: color-mix(in srgb, var(--brand-soft) 70%, transparent); font-weight: 700; }

.page-foot {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; line-height: 1.8;
}
.page-foot .foot-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.page-foot .foot-links a { color: var(--text-2); font-weight: 600; }
.disclaimer {
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--muted); font-size: 12.5px; line-height: 1.7;
}
.disclaimer b { color: var(--text-2); }

/* ---------- Mobile sticky summary ---------- */
.mobile-summary {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center; gap: 12px; box-shadow: 0 -8px 24px -18px rgba(13, 23, 38, .5);
}
.mobile-summary .ms-label { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.mobile-summary .ms-value { font-size: 18px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mobile-summary .ms-btn {
  margin-left: auto; border: 0; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 700;
  background: var(--brand); color: #fff; cursor: pointer;
}
@media (max-width: 999px) { .mobile-summary { display: flex; } }

.hidden { display: none !important; }
.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;
}

.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tests page ---------- */
.test-page { max-width: 900px; margin: 0 auto; padding: 28px 20px 80px; }
.test-summary { font-size: 15px; font-weight: 700; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; }
.test-summary.ok { background: var(--mint-soft); border-color: color-mix(in srgb, var(--mint) 40%, transparent); color: var(--mint); }
.test-summary.fail { background: var(--coral-soft); border-color: color-mix(in srgb, var(--coral) 40%, transparent); color: var(--coral); }
.test-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--card); }
.test-table th, .test-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.test-table td.pass { color: var(--mint); font-weight: 700; }
.test-table td.fail { color: var(--coral); font-weight: 700; }

/* ---------- 추천 도서(쿠팡 파트너스) 카드 ---------- */
.book-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.book-main { flex: 1 1 320px; min-width: 0; }
.book-card .promo-tag { display: inline-block; }
.book-card h3 { margin-top: 2px; font-size: 16.5px; }
.book-meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.book-desc { margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.65; }
.book-buy { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.book-price { font-size: 13px; color: var(--muted); font-weight: 600; }
.book-price s { font-weight: 500; opacity: .75; }
.book-price strong { margin-left: 6px; font-size: 18px; letter-spacing: -.02em; color: var(--coral); }
.book-price .off {
  margin-left: 6px; font-size: 11.5px; font-weight: 800; color: var(--coral);
  background: var(--coral-soft); border-radius: 999px; padding: 2px 7px;
}
a.book-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  min-width: 148px; padding: 11px 22px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--brand) 90%, transparent);
  transition: background .18s ease, transform .18s ease;
}
a.book-btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.book-card .disclosure {
  flex-basis: 100%; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11.5px; line-height: 1.6; color: var(--muted);
}
@media (max-width: 560px) {
  .book-buy { align-items: flex-start; flex-basis: 100%; }
}
