:root {
  --blue: #1476df;
  --blue-dark: #0750ad;
  --ink: #172033;
  --muted: #5c6c80;
  --line: #cfd9e8;
  --soft: #eaf2fb;
  --green: #13a56b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--ink);
  background: #f3f6fa;
  letter-spacing: 0;
}

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

.site-header,
.page,
.site-footer {
  width: 680px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 800;
  font-size: 15px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 34px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-menu {
  position: relative;
  margin-left: auto;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu[open] summary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.nav-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 132px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.14);
}

.nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
  font-size: 14px;
}

.nav a.active {
  background: var(--blue);
  color: var(--white);
}

main {
  min-height: calc(100vh - 122px);
}

.page {
  display: none;
  padding: 7px 18px 52px;
}

.page.active {
  display: block;
}

.home-main {
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
p {
  word-break: keep-all;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.lead,
.section-head p,
.panel p,
.info-card p,
.guide-block p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  margin: 18px 0 0;
  font-size: 16px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.primary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 900;
}

.primary-button {
  min-width: 133px;
  padding: 0 20px;
  background: var(--blue);
  color: var(--white);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.text-button {
  min-width: 119px;
  padding: 0 13px;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue-dark);
}

.text-button:hover {
  background: #edf5ff;
}

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

.section-head h1 {
  font-size: 32px;
}

.home-guide {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.guide-block h2 {
  padding: 10px 12px;
  background: var(--soft);
  color: #10243e;
  font-size: 16px;
}

.guide-block p {
  margin: 12px 0 0;
  font-size: 14px;
}

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

.routine-grid article {
  min-height: 150px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.routine-grid strong {
  color: var(--blue);
  font-size: 13px;
}

.routine-grid h3 {
  margin: 10px 0 8px;
  font-size: 17px;
}

.routine-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.idea-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.idea-list span {
  display: inline-block;
  min-width: 64px;
  color: var(--blue-dark);
  font-weight: 900;
}

.flow-card {
  padding: 22px;
  border-radius: 8px;
  background: #f7fbf2;
  border: 1px solid #d6e8c8;
}

.flow-card h2 {
  margin-bottom: 16px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.flow-steps p {
  margin: 0;
  padding: 14px 10px;
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.flow-steps span {
  display: block;
  margin-bottom: 6px;
  color: #2f7b2c;
  font-weight: 900;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.info-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.info-card,
.panel {
  padding: 20px;
}

.panel {
  margin-top: 14px;
}

.panel.muted {
  background: #f7faff;
}

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

.formula-list p,
.note {
  margin: 0;
}

.note {
  padding-top: 12px;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-wrap:not(.compact) table {
  min-width: 640px;
}

.rate-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.rate-item span {
  color: #193255;
  font-weight: 900;
}

.rate-item strong {
  color: var(--blue-dark);
  font-size: 20px;
  white-space: nowrap;
}

.rate-item.highlight {
  border-color: #9fc5ff;
  background: #edf5ff;
}

th,
td {
  padding: 9px 8px;
  border: 1px solid #6d7480;
  text-align: center;
  vertical-align: middle;
}

th {
  background: #f8fbff;
  color: #142849;
  font-weight: 900;
}

.check-list,
.steps {
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
  line-height: 1.8;
}

.apply-layout {
  display: grid;
  gap: 14px;
}

.apply-layout .panel {
  margin-top: 0;
}

.apply-landing {
  padding-bottom: 20px;
}

.apply-landing h1 {
  font-size: 34px;
}

.apply-landing p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.apply-red-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
  border-radius: 10px;
  background: #e12727;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.apply-red-button:hover {
  background: #c91f1f;
}

.ad-slot {
  min-height: 120px;
  margin: 24px 0 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice {
  padding: 14px;
  border-left: 4px solid var(--blue);
  background: #f4f8ff;
}

.apply-detail h3 {
  margin: 0 0 8px;
  color: #193255;
  font-size: 16px;
}

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

.method-list section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.method-list p {
  margin: 0;
}

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

.document-list li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.document-list strong {
  color: var(--blue-dark);
}

.document-list span {
  color: var(--muted);
  line-height: 1.65;
}

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

.process-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.process-list p {
  margin: 4px 0 0;
}

.process-list strong {
  display: block;
  margin-bottom: 4px;
  color: #193255;
}

.qa-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.qa-list dt {
  font-weight: 900;
}

.qa-list dd {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 22px 16px 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
  line-height: 1.65;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 680px;
  max-width: 100%;
  margin: 0 auto;
  padding: 18px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.bottom-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #f8fbff;
  font-weight: 900;
  text-align: center;
}

.bottom-nav a:hover {
  border-color: var(--blue);
  background: #edf5ff;
}

@media (max-width: 520px) {
  .brand {
    flex: 1;
  }

  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1,
  .section-head h1 {
    font-size: 29px;
  }

  .primary-button,
  .text-button {
    width: 100%;
  }

  .bottom-nav {
    grid-template-columns: 1fr;
    padding-right: 14px;
    padding-left: 14px;
  }

  .routine-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }
}
