:root {
  --bg: #f5f7f8;
  --paper: #ffffff;
  --ink: #17212b;
  --muted: #5f6f7c;
  --line: #dbe3e8;
  --soft: #eef3f5;
  --brand: #11615b;
  --brand-dark: #0b4642;
  --blue: #2f5f9f;
  --amber: #9a5b00;
  --red: #b3261e;
  --green-soft: #e4f3f0;
  --blue-soft: #e8f0fb;
  --amber-soft: #fff1d8;
  --red-soft: #fde8e5;
  --shadow: 0 16px 42px rgba(23, 33, 43, 0.08);
  --radius: 8px;
  --urgent: #b3261e;
  --urgent-soft: #fde8e5;
  --teal: #0891b2;
  --navy: #1e3a5f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.68;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

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

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  color: var(--brand-dark);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.footer-links a,
.button,
.source-card,
.path-card {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: 46px 0 28px;
}

.hero-copy,
.hero-panel,
.panel,
.ad-slot,
.card,
.source-card,
.path-card,
.notice,
.check-item,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(24px, 4vw, 44px);
}

.hero-panel {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.22), transparent 44%),
    var(--navy);
  color: #fff;
}

.eyebrow,
.tag,
.updated {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow,
.tag.info {
  color: var(--brand-dark);
  background: var(--green-soft);
}

.tag.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.tag.danger {
  color: var(--red);
  background: var(--red-soft);
}

.tag.source,
.updated {
  color: var(--blue);
  background: var(--blue-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 60px);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 10px 0 0;
}

.lead,
.section-head p,
.card p,
.source-card p,
.path-card p,
.notice p,
.check-item p,
.contact-card p,
.footer p,
li {
  color: var(--muted);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.2);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 33, 43, 0.08);
}

.button.primary:hover {
  background: #087f9d;
  border-color: #087f9d;
}

.urgent-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.urgent-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.urgent-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--urgent);
}

.panel-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 610px;
}

.grid-2,
.grid-3,
.source-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}

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

.grid-3,
.source-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.source-card,
.path-card,
.notice,
.check-item,
.contact-card,
.panel {
  padding: 20px;
}

.path-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 210px;
  overflow: hidden;
  padding-top: 72px;
}

.path-card::before {
  content: attr(data-card);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.path-card[data-card="전세"]::before {
  background: var(--blue);
}

.path-card[data-card="매매"]::before {
  background: #7b4fb3;
}

.path-card[data-card="증거"]::before {
  background: var(--brand);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 850;
}

.card-link::after {
  content: ">";
  transition: transform 0.18s ease;
}

.path-card:hover .card-link::after {
  transform: translateX(3px);
}

.path-card h3,
.card h3,
.source-card h3,
.contact-card h3 {
  margin-top: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust-strip div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfb;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.trust-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ad-slot {
  margin: 30px 0;
  padding: 20px;
  background: #fbfcfc;
  box-shadow: none;
}

.ad-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px dashed #b9c5cc;
  border-radius: 6px;
  color: #7a8790;
  background: #fff;
  text-align: center;
  font-size: 13px;
}

.ad-note {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.article {
  width: min(calc(100% - 32px), 960px);
  margin: 0 auto;
  padding: 36px 0;
}

.article-hero {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 850;
}

.steps strong {
  display: block;
  color: var(--ink);
}

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

.source-card {
  display: grid;
  align-content: start;
  min-height: 180px;
}

.source-card a {
  color: var(--brand-dark);
  font-weight: 800;
}

.contact-action {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.contact-action span {
  color: var(--muted);
  font-size: 13px;
}

.contact-action a {
  width: fit-content;
}

.policy-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.notice {
  border-left: 4px solid var(--brand);
}

.notice.warning {
  border-left-color: var(--amber);
}

.notice.danger {
  border-left-color: var(--red);
}

.footer {
  margin-top: 28px;
  padding: 42px 0;
  background: var(--navy);
  color: #fff;
}

.footer-stack {
  display: grid;
  gap: 26px;
}

.footer-disclaimer {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.footer-disclaimer h2 {
  font-size: 22px;
}

.footer-disclaimer p,
.footer p {
  color: rgba(255, 255, 255, 0.76);
}

.footer-date {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.footer-links {
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 920px) {
  .hero,
  .grid-2,
  .grid-3,
  .source-grid,
  .contact-grid,
  .check-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .section-head,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .article {
    width: min(calc(100% - 24px), 960px);
  }

  h1 {
    font-size: 34px;
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .card,
  .source-card,
  .path-card,
  .notice,
  .check-item,
  .contact-card {
    padding: 17px;
  }

  .steps li {
    padding-left: 54px;
  }
}

/* Design refresh: clearer information hierarchy and Figma-ready component rules */
:root {
  --page-max: 1120px;
  --focus-ring: 0 0 0 3px rgba(47, 95, 159, 0.16);
  --panel-shadow: 0 10px 28px rgba(23, 33, 43, 0.07);
}

body {
  background:
    linear-gradient(180deg, #eef4f5 0, #f7f8f8 420px, #f5f7f8 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  min-height: 68px;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--brand-dark);
  background: var(--green-soft);
}

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

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 9px 0 0 var(--blue), 0 9px 0 var(--amber);
}

.hero-copy,
.hero-panel,
.panel,
.source-card,
.path-card,
.notice,
.check-item,
.contact-card {
  box-shadow: var(--panel-shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--urgent), var(--brand), var(--blue));
}

.article {
  width: min(calc(100% - 32px), var(--page-max));
  padding-top: 30px;
}

.article-hero {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 97, 91, 0.09), transparent 42%),
    linear-gradient(180deg, #ffffff, #fbfcfc);
  box-shadow: var(--panel-shadow);
}

.article-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: var(--urgent);
}

.article-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 4.6vw, 54px);
}

.article-hero .lead {
  max-width: 760px;
  font-size: 17px;
}

.article-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.article-body > .panel,
.article-body > .notice {
  width: min(100%, 960px);
  justify-self: center;
}

.panel h2,
.notice h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h2::before,
.notice h2::before {
  content: "";
  width: 9px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand);
}

.steps {
  gap: 10px;
}

.steps li {
  min-height: 86px;
  border-color: #d6e0e6;
  box-shadow: 0 4px 14px rgba(23, 33, 43, 0.04);
}

.steps li::before {
  background: linear-gradient(180deg, var(--urgent), #7f1d17);
}

.steps li:hover,
.check-item:hover,
.path-card:hover,
.source-card:hover,
.contact-card:hover {
  border-color: rgba(17, 97, 91, 0.32);
  box-shadow: 0 14px 32px rgba(23, 33, 43, 0.1);
}

.check-grid {
  gap: 14px;
}

.check-item {
  min-height: 176px;
  display: grid;
  align-content: start;
  border-top: 4px solid var(--brand);
}

.check-item:has(.tag.warn) {
  border-top-color: var(--amber);
}

.check-item:has(.tag.danger) {
  border-top-color: var(--red);
}

.ad-slot {
  margin: 34px 0;
  padding: 16px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.64);
}

.ad-placeholder {
  min-height: 104px;
  background:
    repeating-linear-gradient(135deg, #ffffff, #ffffff 10px, #f7fafb 10px, #f7fafb 20px);
}

.button:focus-visible,
.nav-links a:focus-visible,
.source-card a:focus-visible,
.footer-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (min-width: 980px) {
  .article-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-body > .ad-slot {
    width: min(100%, 900px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .nav-links a {
    padding: 0 8px;
  }

  .article {
    padding-top: 18px;
  }

  .article-hero {
    width: min(100%, 358px);
    padding: 22px 18px;
  }

  .article-body > .panel,
  .article-body > .notice,
  .article-body > .ad-slot {
    width: min(100%, 358px);
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .check-item {
    min-height: auto;
  }
}
