:root {
  --ink: #152033;
  --muted: #667085;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #d9dee8;
  --blue: #1f5fd6;
  --green: #16805c;
  --amber: #b66b00;
  --red: #c63d32;
  --violet: #6f4bd8;
  --teal: #007f86;
  --soft-blue: #eef5ff;
  --soft-green: #ecf8f2;
  --soft-amber: #fff4df;
  --soft-red: #fff0ee;
  --shadow: 0 16px 40px rgba(21, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.62;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
}

.topbar .inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 230px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

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

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

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

nav a:hover {
  border-color: var(--line);
  background: var(--surface);
}

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 24px 80px;
}

.hero {
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 34px 0 28px;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #344054;
  font-size: 20px;
}

.hero-shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section > .kicker,
.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead {
  max-width: 980px;
  margin: 0 0 22px;
  color: #344054;
  font-size: 17px;
}

.decision-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.decision {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.decision b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.decision p {
  margin: 0;
  color: #475467;
  font-size: 14px;
}

.callout {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--soft-blue);
}

.callout strong {
  color: #0f3f96;
}

.callout.warn {
  border-left-color: var(--red);
  background: var(--soft-red);
}

.callout.warn strong {
  color: var(--red);
}

.callout.good {
  border-left-color: var(--green);
  background: var(--soft-green);
}

.callout.good strong {
  color: var(--green);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.panel p,
.panel li {
  color: #475467;
  font-size: 14px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.score-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.score-card strong {
  display: block;
  color: #344054;
  font-size: 13px;
}

.score-card .num {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.score-card .num.low {
  color: var(--red);
}

.score-card .num.mid {
  color: var(--amber);
}

.score-card .num.high {
  color: var(--green);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f5f9;
  color: #344054;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

td:last-child,
th:last-child {
  border-right: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.tag.own {
  background: var(--blue);
}

.tag.comp {
  background: var(--violet);
}

.tag.policy {
  background: var(--green);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.shot .label {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.shot .viewport {
  height: 360px;
  overflow: hidden;
  background: #ffffff;
}

.shot.mobile .viewport {
  height: 430px;
  display: flex;
  justify-content: center;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot.mobile img {
  width: auto;
  height: 100%;
}

.shot .note {
  min-height: 54px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  color: #475467;
  font-size: 12px;
}

.review {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 22px;
  margin: 28px 0 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.review h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.review .summary {
  position: sticky;
  top: 82px;
  align-self: start;
}

.review .summary p {
  color: #475467;
}

.mini-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-shots img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.fact-list {
  display: grid;
  gap: 10px;
}

.fact {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fact b {
  display: block;
  margin-bottom: 4px;
}

.fact p {
  margin: 0;
  color: #475467;
  font-size: 14px;
}

pre {
  margin: 14px 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #182033;
  color: #f4f7fb;
  font-size: 13px;
  line-height: 1.55;
}

code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #eef2f7;
  color: #263246;
  font-size: 0.92em;
}

.requirement-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.req {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.req span {
  color: var(--amber);
  font-weight: 900;
  font-size: 12px;
}

.req p {
  margin: 0;
  color: #344054;
  font-size: 14px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: phase;
}

.step {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step::before {
  counter-increment: phase;
  content: counter(phase);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: #475467;
  font-size: 14px;
}

.sources {
  font-size: 13px;
}

.sources li {
  margin: 6px 0;
}

.muted {
  color: var(--muted);
}

.good-text {
  color: var(--green);
  font-weight: 800;
}

.bad-text {
  color: var(--red);
  font-weight: 800;
}

.amber-text {
  color: var(--amber);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .review {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .decision-band,
  .grid-3,
  .roadmap {
    grid-template-columns: 1fr 1fr;
  }

  .gallery,
  .score-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review .summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar .inner {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .wrap {
    padding: 24px 16px 60px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p,
  .lead {
    font-size: 16px;
  }

  .decision-band,
  .grid-2,
  .grid-3,
  .gallery,
  .score-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .req {
    grid-template-columns: 1fr;
  }
}

@media print {
  .topbar {
    position: static;
  }

  body {
    background: #ffffff;
  }

  .section {
    break-inside: avoid;
  }
}
