:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f7f9fc;
  --text: #18212f;
  --muted: #647084;
  --line: #dbe3ee;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --success-soft: #edf7f2;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body:lang(ko) {
  word-break: keep-all;
  line-height: 1.78;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 22px 24px;
}

.brand {
  color: var(--text);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

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

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.site-nav a:last-child {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 24px 72px;
}

.hero,
.page-hero {
  max-width: 780px;
  padding: 86px 0 52px;
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
}

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

h1 {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 24px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 18px;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-copy,
.page-hero p {
  color: var(--muted);
  font-size: 21px;
  max-width: 720px;
}

.page-hero .hero-copy {
  color: var(--text);
  font-size: 23px;
  line-height: 1.5;
}

.hero-secondary {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
}

.button-secondary {
  background: #ffffff;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.home-growth-section {
  border-top: 1px solid var(--line);
  padding: 18px 0 38px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 18px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

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

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

.info-card,
.metric-card,
.ratio-row,
.ratio-card,
.note-card,
.privacy-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card,
.metric-card,
.ratio-card,
.note-card {
  padding: 18px;
}

.info-card p,
.ratio-card p,
.note-card p,
.privacy-note p {
  color: var(--muted);
  margin-bottom: 0;
}

.note-card a {
  display: inline-block;
  font-weight: 700;
  margin-top: 14px;
}

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

.metric-card span,
.ratio-label span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.ratio-list {
  display: grid;
  gap: 12px;
}

.ratio-row {
  padding: 14px;
}

.ratio-label {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.ratio-label strong {
  font-size: 16px;
}

.ratio-value {
  color: var(--text);
  font-weight: 700;
}

.ratio-track {
  background: #e8eef7;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.ratio-fill {
  background: var(--accent);
  border-radius: 999px;
  height: 100%;
  max-width: 100%;
  min-width: 2px;
}

.note-list {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

.note-list li + li {
  margin-top: 8px;
}

.meaning-section p {
  color: var(--text);
  font-size: 18px;
  max-width: 780px;
}

.growth-placeholder {
  background:
    linear-gradient(90deg, rgba(219, 227, 238, 0.6) 1px, transparent 1px),
    linear-gradient(0deg, rgba(219, 227, 238, 0.6) 1px, transparent 1px),
    var(--surface);
  background-size: 72px 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.growth-feature {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
}

.growth-chart-card {
  background:
    linear-gradient(90deg, rgba(219, 227, 238, 0.58) 1px, transparent 1px),
    linear-gradient(0deg, rgba(219, 227, 238, 0.58) 1px, transparent 1px),
    var(--surface);
  background-size: 72px 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.growth-chart-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px;
}

.growth-chart-header span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.growth-chart-header strong {
  color: var(--text);
  display: block;
  font-size: 36px;
  line-height: 1;
}

.growth-chart-header p {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.chart-placeholder {
  min-height: 260px;
  position: relative;
}

.growth-baseline-point {
  background: var(--accent);
  border: 4px solid #ffffff;
  border-radius: 999px;
  bottom: 58px;
  box-shadow: 0 0 0 1px var(--accent);
  height: 18px;
  left: 74px;
  position: absolute;
  width: 18px;
  z-index: 2;
}

.growth-callout {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  left: 112px;
  margin: 0;
  max-width: 390px;
  padding: 14px 16px;
  position: absolute;
  top: 54px;
}

.home-metric-row {
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 18px;
}

.home-metric-row span {
  color: var(--muted);
  font-size: 14px;
}

.home-metric-row strong {
  color: var(--text);
}

.growth-copy {
  align-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  padding: 20px;
}

.growth-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

.growth-placeholder-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
}

.growth-placeholder-header span {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.growth-chart-frame {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 240px;
  padding: 28px;
  position: relative;
}

.growth-chart-frame p {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
  padding: 16px 18px;
  text-align: center;
}

.growth-axis {
  background: #a9b7cc;
  position: absolute;
}

.growth-axis-y {
  bottom: 34px;
  left: 34px;
  top: 28px;
  width: 1px;
}

.growth-axis-x {
  bottom: 34px;
  height: 1px;
  left: 34px;
  right: 28px;
}

.privacy-note {
  background: var(--success-soft);
  margin-top: 22px;
  padding: 20px;
}

.privacy-note h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.article-page {
  max-width: 760px;
  padding: 74px 0 40px;
}

.article-header {
  margin-bottom: 38px;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

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

.article-content h2 {
  font-size: 25px;
  margin-bottom: 14px;
}

.article-content h3 {
  margin-top: 22px;
}

.article-content p,
.article-content li {
  color: var(--text);
}

.faq-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.disclaimer {
  background: var(--success-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.error-message {
  color: #b42318;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .page-hero {
    padding: 54px 0 36px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 18px;
  }

  .card-grid,
  .card-grid.compact,
  .growth-feature,
  .latest-notes-grid,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .growth-chart-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .growth-callout {
    left: 56px;
    right: 18px;
    top: 44px;
  }

  .growth-baseline-point {
    left: 46px;
  }
}
