:root {
  --navy: #163a4d;
  --navy-deep: #0f2a39;
  --teal: #138c88;
  --teal-dark: #0e6e6b;
  --teal-soft: #ddf1ef;
  --bg: #f8f6f1;
  --bg-deep: #efebe2;
  --surface: #ffffff;
  --border: #e6e1d8;
  --text: #163a4d;
  --text-2: #5b6b75;
  --text-3: #8a969d;
  --warn-soft: #fdf4e3;
  --warn: #8a5a14;
  --radius: 16px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f2a39;
    --bg-deep: #0b2230;
    --surface: #163a4d;
    --border: #24506a;
    --text: #f2f5f6;
    --text-2: #b7c6cd;
    --text-3: #8fa3ad;
    --teal: #3cc2bd;
    --teal-dark: #5fd3ce;
    --teal-soft: #12454f;
    --warn-soft: #3a3020;
    --warn: #f0c27a;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

header.site {
  padding: 20px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img.wordmark {
  height: 32px;
  width: auto;
}

nav.top a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
  white-space: nowrap;
}

nav.top a:hover {
  color: var(--text);
}

.hero {
  padding: 40px 0 56px;
}

.badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}

.lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-2);
  max-width: 38em;
  margin: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--navy);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .button.primary {
    background: var(--teal);
    color: #0b2230;
  }
}

.button.ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

section {
  padding: 48px 0;
}

section.alt {
  background: var(--bg-deep);
}

h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.sub {
  color: var(--text-2);
  margin: 0 0 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--text-2);
}

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

ol.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 18px 64px;
  position: relative;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}

ol.steps strong {
  display: block;
}

ol.steps span {
  color: var(--text-2);
}

.notice {
  background: var(--warn-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.notice h2 {
  font-size: 22px;
}

.notice ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.notice li + li {
  margin-top: 6px;
}

.contact {
  font-size: 20px;
  font-weight: 700;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-3);
  font-size: 14px;
}

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

footer.site a {
  color: var(--text-2);
  margin-right: 16px;
}

.doc {
  padding-top: 24px;
  padding-bottom: 64px;
  max-width: calc(44em + 40px);
}

.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
}

@media (max-width: 560px) {
  nav.top a {
    margin-left: 12px;
    font-size: 14px;
  }

  .hero {
    padding: 24px 0 40px;
  }

  section {
    padding: 36px 0;
  }

  .button {
    flex: 1 1 100%;
  }
}

/* Hero band, phone example, icons, FAQ, contact card */
.hero-band {
  background: var(--navy-deep);
  color: #f2f5f6;
}

.hero-band .brand,
.hero-band nav.top a {
  color: #e7edf0;
}

.hero-band nav.top a:hover {
  color: #ffffff;
}

.hero-band .lead {
  color: #c4d2d8;
}

.hero-band .badge {
  background: rgba(60, 194, 189, 0.18);
  color: #7fe0db;
}

.hero-band .button.primary {
  background: #3cc2bd;
  color: #0b2230;
}

.hero-band .button.ghost {
  background: transparent;
  border-color: rgba(231, 237, 240, 0.35);
  color: #f2f5f6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.phone {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

.phone-screen {
  background: #f8f6f1;
  color: #163a4d;
  border-radius: 34px;
  border: 8px solid #24506a;
  padding: 18px 14px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  padding: 0 4px 2px;
}

.phone-top .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #138c88;
}

.req,
.pro {
  background: #ffffff;
  border: 1px solid #e6e1d8;
  border-radius: 14px;
  padding: 12px;
}

.req-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.chip {
  background: #fdf4e3;
  color: #8a5a14;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.req-status {
  color: #0e6e6b;
  font-weight: 700;
}

.req-title {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 15px;
}

.req-meta {
  margin: 2px 0 0;
  color: #5b6b75;
  font-size: 13px;
}

.req-amount {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #5b6b75;
}

.req-amount strong {
  color: #163a4d;
}

.pro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.pro div {
  display: grid;
  line-height: 1.35;
}

.pro div span {
  color: #5b6b75;
  font-size: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ddf1ef;
  color: #0e6e6b;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.avatar.alt {
  background: #e7edf0;
  color: #163a4d;
}

.pick {
  background: #163a4d;
  color: #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 12px;
}

.pick.ghost {
  background: #efebe2;
  color: #163a4d;
}

.phone figcaption {
  text-align: center;
  font-size: 12px;
  color: #8fa3ad;
  margin-top: 12px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 44em;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-3);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--text-2);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.contact-card .sub {
  margin: 0;
}

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

  .phone {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  nav.top a:first-child {
    display: none;
  }

  .contact-card {
    padding: 22px;
  }
}

/* Legal documents */
.doc .meta {
  color: var(--text-3);
  margin-top: -8px;
}

.doc h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.doc ol,
.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc .table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}

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

.doc th {
  background: var(--bg-deep);
}

@media (max-width: 380px) {
  nav.top a:nth-child(2) {
    display: none;
  }
}
