/* 가전셈 공통 스타일 — 방향: "제품이 직접 일한다"(계산기가 첫 화면), 차가운 회색 + 코발트 하나 */
:root {
  --bg: #eef0f3;
  --surface: #e2e5ea;
  --panel: #ffffff;
  --ink: #0b0c0e;
  --muted: #535a66;
  --accent: #1f2de6;
  --accent-ink: #ffffff;
  --accent-soft: #c9cdf9;
  --line: #cfd3da;
  --up: #b42318;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.625rem, 1.2rem + 2.2vw, 3rem);
  --step-big: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 4px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--step-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
img, svg { max-width: 100%; }
.num, td, .tabular { font-variant-numeric: tabular-nums; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.25; margin: 0; font-weight: 800; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.col { max-width: 700px; margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s;
}
.btn:hover { color: var(--accent-ink); background: #1622c4; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--ink); }
.btn.ghost:hover { background: #2a2d33; }

/* 머리 */
.bar { padding: 14px 0; }
.bar .wrap { display: flex; align-items: center; gap: 20px; }
.mark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em; text-decoration: none; }
.mark b { color: var(--accent); }
.bar nav { display: flex; gap: 18px; margin-left: auto; font-size: var(--step-small); font-weight: 600; }
.bar nav a { text-decoration: none; }
.bar .btn { min-height: 38px; padding: 0 16px; font-size: var(--step-small); }

/* 글 */
.crumb { font-size: var(--step-small); color: var(--muted); margin: 12px 0 10px; }
.crumb a { text-decoration: none; }
.post h1 { font-size: var(--step-head); }
.meta { font-size: var(--step-small); color: var(--muted); margin: 10px 0 0; }
.ad-notice {
  margin: 14px 0 0; padding: 10px 14px; background: var(--surface); color: var(--accent);
  font-size: 1rem; font-weight: 600; line-height: 1.5; border-radius: var(--radius);
}
.direct { font-size: var(--step-lead); font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; margin: 20px 0 14px; }
.direct strong { color: var(--accent); }
.verdict { background: var(--panel); border-radius: 8px; padding: 6px 16px 16px; }
.verdict table { width: 100%; border-collapse: collapse; }
.verdict th { text-align: left; font-weight: 600; font-size: var(--step-small); color: var(--muted); padding: 10px 0 4px; }
.verdict td { padding: 9px 0; border-top: 1px solid var(--surface); vertical-align: baseline; }
.verdict td.amt { text-align: right; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.verdict td.amt.hot { color: var(--accent); }
.verdict .tier { display: block; font-size: var(--step-small); color: var(--muted); }
.verdict .tier.up { color: var(--up); font-weight: 600; }
.verdict .go { display: flex; width: 100%; margin-top: 12px; }
.verdict .basis { font-size: var(--step-small); color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

.prose { margin-top: 8px; }
.prose > p, .prose li { margin: 0 0 1em; }
.prose h2 { font-size: var(--step-lead); margin: 2.4em 0 0.7em; }
.prose strong { font-weight: 700; }
.table-scroll { overflow-x: auto; margin: 1.2em 0 0.6em; }
.prose table, .slot table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; }
.prose th, .prose td, .slot th, .slot td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.prose th { font-size: var(--step-small); font-weight: 600; color: var(--muted); vertical-align: bottom; }
.prose td { white-space: nowrap; }
.prose th:first-child, .prose td:first-child { text-align: left; white-space: normal; padding-left: 0; }
.prose td:last-child, .prose th:last-child { padding-right: 0; }

.chart { margin: 1.4em 0 0.4em; padding: 16px; background: var(--panel); border-radius: 8px; }
.chart h3 { font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.chart ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chart li { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; align-items: center; font-size: var(--step-small); }
.chart .track { position: relative; height: 26px; }
.chart .fill {
  height: 100%; width: var(--w); background: var(--surface); border-radius: 2px;
  transform-origin: left; display: flex; align-items: center; justify-content: flex-end;
}
.chart .val { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--w) + 6px); font-weight: 700; white-space: nowrap; }
.chart li.on .fill { background: var(--accent); }
.chart li.on { font-weight: 700; }
.chart .src { font-size: var(--step-small); color: var(--muted); margin: 12px 0 0; }

.block { margin-top: 56px; }
.block > h2 { font-size: var(--step-lead); margin-bottom: 10px; }
.slot { background: var(--surface); border-radius: 8px; padding: 16px; }
.slot .cap { font-size: var(--step-small); color: var(--muted); margin: 0 0 10px; }
.slot .cap b { color: var(--ink); }
.slot th { font-size: var(--step-small); font-weight: 600; color: var(--muted); text-align: left; }
.slot td { color: var(--muted); text-align: left; }
.slot .todo { font-size: var(--step-small); color: var(--muted); margin: 10px 0 0; }
.buy { display: flex; flex-wrap: wrap; gap: 8px; }
.buy span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: var(--step-small); font-weight: 600; }

.calc-field { margin-top: 56px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 24px 20px; }
.calc-field h2 { font-size: var(--step-lead); }
.calc-field p { margin: 8px 0 18px; }
.calc-field .btn { background: var(--panel); color: var(--accent); }
.calc-field .btn:hover { background: #e9ebff; color: var(--accent); }

.faq details { background: var(--panel); border-radius: 8px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 0.6em; }
.faq details[open] summary::before { background: var(--accent); }
.faq details p { margin: 0; padding: 0 16px 16px 34px; }

.related { list-style: none; margin: 0; padding: 0; }
.related li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--panel); border-radius: 6px; margin-bottom: 6px; }
.related .when { color: var(--muted); font-size: var(--step-small); white-space: nowrap; }
.sources { margin-top: 56px; font-size: 0.9375rem; color: var(--ink); }
.sources dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
.sources dt { color: var(--muted); }
.sources dd { margin: 0; }
.sources ul { padding-left: 1.1em; margin: 6px 0 14px; }
.sources .disclaim { background: var(--surface); padding: 12px 14px; border-radius: var(--radius); margin: 0; }

/* 바닥 */
.foot { margin-top: 120px; background: var(--ink); color: #fff; padding: 56px 0 28px; }
.foot a { color: #fff; }
.foot-in { display: grid; grid-template-columns: 5fr 4fr auto; gap: 32px; align-items: start; }
.foot .mark { font-size: 1.75rem; }
.foot .mark b { color: #8e96ff; }
.foot-brand p { margin: 10px 0 0; max-width: 24em; color: #c9ccd3; }
.foot-nav { display: grid; gap: 10px; font-weight: 600; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: #8e96ff; }
.foot .foot-go:hover { color: #fff; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; font-size: var(--step-small); color: #a3a8b2; }
.foot-legal p { margin: 0; }

@media (max-width: 720px) {
  .bar nav .hide-s { display: none; }
  .foot { margin-top: 80px; padding-top: 40px; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .foot-go { justify-self: stretch; }
  .foot-legal { flex-direction: column; margin-top: 32px; }
}
@media (max-width: 400px) {
  .bar .wrap { gap: 12px; }
  .bar nav { gap: 12px; }
}

/* 들어오는 움직임: 스크립트가 있을 때만 숨겼다가 보인다 */
.js [data-rise] { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .chart .fill { transform: scaleX(0); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .chart.in .fill { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js .chart .fill { opacity: 1; transform: none; transition: none; }
}

/* 홈 */
.hero { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(24px, 6vw, 88px); padding-bottom: 24px; }
.hero h1 { font-size: var(--step-big); line-height: 1.08; letter-spacing: -0.045em; }
.hero .lead { font-size: var(--step-lead); line-height: 1.45; margin: 24px 0 28px; max-width: 26em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.mini { background: var(--panel); border-radius: 10px; padding: 20px; display: grid; gap: 12px; font-size: 0.9375rem; }
.mini-h { margin: 0; font-weight: 800; font-size: 1.0625rem; }
.mini label { display: grid; gap: 4px; font-weight: 600; }
.mini small { font-weight: 400; color: var(--muted); }
.mini input, .mini select, .calc input, .calc select {
  font: inherit; font-size: 1rem; padding: 10px 12px; min-height: 46px; width: 100%;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.mini input:focus, .mini select:focus, .calc input:focus, .calc select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.mini output { display: grid; gap: 2px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 14px 16px; }
.m-big { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m-sub { font-size: var(--step-small); }
.m-more { font-weight: 700; color: var(--accent); text-decoration: none; justify-self: start; }
.posts { margin-top: 112px; display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 4vw, 56px); }
.posts-h p { margin: 8px 0 0; color: var(--muted); }
.pc-list { display: grid; gap: 10px; }
.pc { display: grid; gap: 10px; padding: 22px 24px; background: var(--panel); border-radius: 10px; text-decoration: none; transition: transform 0.15s; }
.pc:hover { color: inherit; }
.pc:hover .pc-title { color: var(--accent); }
.pc:active { transform: scale(0.99); }
.pc-title { font-size: var(--step-lead); font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }
.pc-ans { line-height: 1.55; }
.pc-ans b { color: var(--accent); }
.pc-meta { display: flex; align-items: center; font-size: var(--step-small); color: var(--muted); }
.pc-go { margin-left: auto; font-size: 1.25rem; color: var(--accent); transition: transform 0.2s; }
.pc:hover .pc-go { transform: translateX(4px); }

.posts h2, .how h2 { font-size: var(--step-lead); margin-bottom: 12px; }
.field { margin-top: 120px; background: var(--accent); color: var(--accent-ink); padding: clamp(48px, 8vw, 112px) 0; }
.field-in { display: grid; grid-template-columns: 4fr 5fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.field h2 { font-size: var(--step-head); }
.field p { margin: 16px 0 24px; }
.field .btn { background: var(--panel); color: var(--accent); }
.field .btn:hover { background: #e9ebff; color: var(--accent); }
.chart.on-field { background: #1824c2; color: #fff; margin: 0; }
.chart.on-field .fill { background: #3d49f0; }
.chart.on-field li.on .fill { background: #fff; }
.chart.on-field .val { color: #fff; }
.how { margin-top: 120px; }
.how-lead { font-size: var(--step-lead); line-height: 1.45; font-weight: 600; letter-spacing: -0.02em; max-width: 34em; margin: 0 0 48px; }
.how-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.how-cols p { margin: 0; font-size: 1rem; line-height: 1.55; }
.how-cols b { color: var(--ink); }
@media (max-width: 860px) {
  .hero, .field-in, .posts { grid-template-columns: 1fr; }
  .how-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .how-cols { grid-template-columns: 1fr; }
  .posts { margin-top: 64px; }
  .pc { padding: 18px; }
  .field, .how { margin-top: 80px; }
}

/* 계산기 */
.calc-page { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(20px, 4vw, 56px); align-items: start; padding-top: clamp(16px, 4vw, 56px); }
.calc-page h1 { font-size: var(--step-head); }
.calc-page .lead { margin: 12px 0 20px; }
.calc { background: var(--panel); border-radius: 10px; padding: 18px; display: grid; gap: 16px; }
.calc label { display: grid; gap: 4px; font-weight: 600; font-size: 0.9375rem; }
.calc label small { font-weight: 400; color: var(--muted); }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: grid; gap: 8px; margin-top: 8px; }
.chips p { margin: 0; font-size: var(--step-small); color: var(--muted); }
.chips div { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  font: inherit; font-size: var(--step-small); font-weight: 600; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background 0.15s, transform 0.1s;
}
.chips button:hover { border-color: var(--accent); color: var(--accent); }
.chips button:active { transform: scale(0.96); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.res { position: sticky; top: 16px; display: grid; gap: 12px; }
.res-main { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 20px; }
.res-main p { margin: 0; }
.res-main .big { font-size: var(--step-big); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; margin: 6px 0; font-variant-numeric: tabular-nums; }
.res-main .sub { font-size: 0.9375rem; }
.res-empty { background: var(--surface); border-radius: 10px; padding: 20px; margin: 0; }
.meter { background: var(--panel); border-radius: 10px; padding: 16px; }
.meter h2, .breakdown h2 { font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.meter-bar { position: relative; height: 34px; display: flex; gap: 3px; }
.meter-bar .seg { height: 100%; background: var(--surface); display: flex; align-items: center; padding-left: 6px; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.meter-bar .seg.hit { background: var(--accent-soft); color: var(--ink); }
.meter-bar .pin { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--ink); }
.meter-bar .pin.after { background: var(--accent); }
.meter-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; font-size: var(--step-small); }
.meter-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--ink); vertical-align: 0; }
.meter-legend .a i { background: var(--accent); }
.meter-legend span:last-child { color: var(--muted); }
.breakdown { background: var(--panel); border-radius: 10px; padding: 16px; }
.breakdown table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.breakdown th, .breakdown td { text-align: right; padding: 8px 0 8px 8px; border-bottom: 1px solid var(--surface); white-space: nowrap; }
.breakdown th { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.breakdown th:first-child, .breakdown td:first-child { text-align: left; padding-left: 0; white-space: normal; color: var(--muted); }
.breakdown tr:last-child td { border-bottom: 0; font-weight: 800; color: var(--ink); }
.calc-notes { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-notes h2 { font-size: var(--step-lead); margin-bottom: 10px; }
.calc-notes p { margin: 0 0 8px; }
.err { color: var(--up); font-weight: 600; }
@media (max-width: 860px) {
  .calc-page, .calc-notes { grid-template-columns: 1fr; }
  .res { position: static; }
}
@media (max-width: 400px) {
  .calc .row { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* 모바일 첫 화면 안에 결론 상자 전체가 들어오게 */
@media (max-width: 520px) {
  .bar { padding: 8px 0; }
  .crumb { margin: 4px 0 6px; }
  .post h1 { font-size: 1.5rem; }
  .meta { margin-top: 6px; }
  .ad-notice { margin-top: 10px; padding: 8px 12px; }
  .direct { font-size: 1.1875rem; margin: 14px 0 10px; }
  .verdict { padding: 2px 14px 14px; }
  .verdict td { padding: 6px 0; }
  .verdict td.amt { font-size: 1.0625rem; }
  .verdict .basis { margin-top: 6px; }
  .verdict .go { min-height: 44px; margin-top: 10px; }
}
.slot th { white-space: nowrap; }
@media (max-width: 520px) { .hero h1 { font-size: 2rem; } .hero .lead { font-size: 1.125rem; margin: 16px 0 20px; } }
.peek { display: none; }
@media (max-width: 860px) {
  .peek:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; align-items: baseline; gap: 10px;
    padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
    box-shadow: 0 6px 20px rgba(11, 12, 14, 0.25); transition: transform 0.25s, opacity 0.25s;
  }
  .peek b { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .peek span { font-size: var(--step-small); }
  .peek span:last-child { margin-left: auto; }
  .peek.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
.slot .cols { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.slot .cols li { background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: var(--step-small); font-weight: 600; }
