:root {
  --navy: #0f2742;
  --blue: #1769e0;
  --sky: #eaf4ff;
  --mint: #e9f8f1;
  --line: #dce5ef;
  --text: #162033;
  --muted: #65748b;
  --bg: #ffffff;
  --soft: #f6f9fc;
  --shadow: 0 14px 34px rgba(15, 39, 66, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
}

.skip-link:focus {
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: #334155;
  font-size: 14px;
}

.nav a:hover {
  background: var(--sky);
  color: var(--blue);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(234, 244, 255, 0.94), rgba(255, 255, 255, 0.7)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='640' viewBox='0 0 1200 640'%3E%3Cg fill='none' stroke='%231769e0' stroke-opacity='.12'%3E%3Cpath d='M80 160h220v130H80zM370 110h180v240H370zM640 180h210v110H640zM910 95h180v280H910zM160 420h220v80H160zM470 440h300v70H470z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 36px;
  padding: 56px 0;
}

.eyebrow,
.section-head span {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.page-hero p,
.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.hero-copy {
  max-width: 760px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
button.button,
.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.buy-link.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.topic-cloud a,
.tag-row span,
.check-grid span {
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--soft);
  color: #36506c;
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.band {
  padding: 72px 0;
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.article-content h2 {
  margin: 6px 0 10px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.25;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.post-card,
.category-card,
.utility-card,
.product-card,
.ranking-item,
.summary-box,
.decision-panel,
.score-section,
.situation-card,
.calculator,
.calc-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.post-card a {
  display: block;
  height: 100%;
  padding: 20px;
}

.post-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.35;
}

.post-card p {
  color: var(--muted);
  font-size: 15px;
}

.card-meta,
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.utility-grid,
.category-grid,
.product-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.utility-card,
.category-card {
  padding: 20px;
}

.utility-card b,
.category-card b {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.utility-card span,
.category-card span,
.category-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin: 20px 0;
  border: 1px dashed #aec4dc;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 14px;
}

.page-hero,
.article-header {
  padding: 64px 0 36px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.article-header h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  padding: 48px 0 80px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
}

.article-content section {
  margin-bottom: 42px;
}

.affiliate-notice {
  padding: 14px 16px;
  border: 1px solid #bdd5f5;
  border-radius: 8px;
  background: var(--sky);
  color: #23466d;
  font-weight: 700;
}

.summary-box {
  padding: 20px;
}

.mini-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.decision-panel,
.score-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  padding: 20px;
}

.decision-panel {
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.decision-panel h2,
.score-section h2 {
  margin-bottom: 8px;
}

.decision-panel p,
.score-section p {
  color: var(--muted);
}

.decision-list {
  display: grid;
  gap: 8px;
}

.decision-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.decision-list b {
  color: var(--blue);
  font-size: 13px;
}

.decision-list span {
  color: #27384d;
  font-weight: 700;
}

.score-bars {
  display: grid;
  gap: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 82px 1fr 46px;
  gap: 10px;
  align-items: center;
}

.score-row span {
  color: #334155;
  font-weight: 800;
}

.score-row b {
  text-align: right;
  color: var(--navy);
}

.score-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef7;
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #21a67a);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: #fff;
}

.compare-table th,
.compare-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.compare-table th {
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
}

.compare-table small {
  display: block;
  color: var(--muted);
}

.link-cell {
  display: grid;
  gap: 6px;
  min-width: 112px;
}

.buy-link {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.two-col > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.situation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.situation-card {
  padding: 18px;
}

.situation-card span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--mint);
  color: #17613d;
  font-size: 13px;
  font-weight: 800;
}

.situation-card h3 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.situation-card p {
  color: var(--muted);
  font-size: 15px;
}

.situation-card a {
  color: var(--blue);
  font-weight: 800;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  padding: 20px;
}

.rank-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--mint);
  color: #17613d;
  font-weight: 800;
  font-size: 13px;
}

.product-card dl {
  margin: 18px 0 0;
}

.product-card div {
  margin-bottom: 10px;
}

.product-card dt {
  color: var(--muted);
  font-size: 13px;
}

.product-card dd {
  margin: 0;
  font-weight: 700;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 22px;
}

.calculator label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.calculator input,
.calculator select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
}

.calc-result {
  display: grid;
  align-content: center;
  padding: 24px;
  background: var(--navy);
  color: #fff;
}

.calc-result span,
.calc-result small {
  color: #c9d9ea;
}

.calc-result strong {
  font-size: 36px;
  line-height: 1.2;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.ranking-item span {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.ranking-item h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.prose {
  max-width: 780px;
  color: #334155;
  font-size: 18px;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #dce8f5;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid a {
  display: inline-block;
  margin-left: 14px;
  color: #fff;
}

@media (max-width: 900px) {
  .header-inner,
  .footer-grid,
  .ranking-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .article-layout,
  .calc-layout,
  .decision-panel,
  .score-section {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .card-grid.four,
  .card-grid.three,
  .utility-grid,
  .category-grid,
  .product-grid,
  .situation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-grid {
    min-height: auto;
    padding: 42px 0;
  }

  h1 {
    font-size: 40px;
  }

  .card-grid.four,
  .card-grid.three,
  .card-grid.two,
  .guide-list,
  .utility-grid,
  .category-grid,
  .product-grid,
  .two-col,
  .situation-grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .decision-list div,
  .score-row {
    grid-template-columns: 1fr;
  }

  .score-row b {
    text-align: left;
  }

  .footer-grid a {
    margin: 0 12px 0 0;
  }
}
