:root {
  --bg: #eef1f6;
  --panel: #ffffff;
  --ink: #171923;
  --muted: #545454;
  --blue: #1d3c6e;
  --blue-2: #344d82;
  --green: #145d44;
  --green-2: #1f7a5a;
  --line: #e2e8f0;
  --cyan: #22c8e5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

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

.step {
  display: none;
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
}

.step.is-active {
  display: block;
}

.topbar {
  padding: 12px 6% 0;
}

.logo {
  display: block;
  width: 158px;
  max-width: 48vw;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.landing {
  padding-bottom: 78px;
}

.hero {
  display: grid;
  padding: 8px 7% 14px;
  text-align: center;
  align-content: start;
  justify-items: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.24;
  font-weight: 900;
}

.lead {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.hero-image {
  width: min(100%, 360px);
  max-height: 47svh;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.sticky-cta button,
.next-button {
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.content {
  padding: 18px 7% 0;
}

.info-card,
.contact-cards article {
  margin-bottom: 16px;
  padding: 22px 7%;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 7px 18px rgba(18, 42, 74, 0.08);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.38;
}

.info-card p,
.list-card span,
.dark-guide span,
.contact-cards span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.list-card {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 15px;
  border-radius: 8px;
  background: #fff6de;
}

.list-card strong,
.dark-guide strong,
.contact-cards strong {
  font-size: 17px;
  line-height: 1.45;
}

.dark-guide {
  display: grid;
  gap: 13px;
  margin-bottom: 16px;
  padding: 22px 7%;
  border-radius: 8px;
  background: #1d3c6e;
  color: #fff;
}

.dark-guide .section-kicker,
.dark-guide span {
  color: #fff;
}

.dark-guide div,
.contact-cards article {
  display: grid;
  gap: 9px;
}

.contact-cards button,
.contact-cards a {
  display: grid;
  min-height: 48px;
  align-items: center;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.footer {
  padding: 38px 7% 70px;
  background: #f8fbf8;
  color: #334139;
  font-size: 14px;
  line-height: 1.6;
}

.footer-logo {
  width: auto;
  max-width: 180px;
  height: auto;
  max-height: 62px;
  margin-bottom: 18px;
  object-fit: contain;
}

.footer p {
  margin: 3px 0;
}

.privacy-link {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: #334139;
  text-decoration: underline;
  cursor: pointer;
}

.copyright {
  padding-top: 22px;
  color: #66756d;
}

.sticky-cta {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 480px);
  padding: 10px 7% calc(10px + env(safe-area-inset-bottom));
  transform: translateX(50%);
  background: rgba(238, 241, 246, 0.92);
  backdrop-filter: blur(12px);
}

.question-step {
  position: relative;
  padding: 26px 7% 96px;
  background: var(--bg);
}

.question-shell {
  min-height: calc(100svh - 128px);
}

.back-button {
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 38px;
  line-height: 30px;
}

.question-step h2 {
  margin: 0 0 36px;
  text-align: center;
  font-size: 27px;
  line-height: 1.37;
  font-weight: 900;
}

.subcopy {
  margin: -28px 0 36px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.option-grid {
  display: grid;
  gap: 14px;
}

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

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

.option-grid button {
  min-height: 60px;
  padding: 8px 6px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #2d3748;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.option-grid button.is-selected {
  border-color: var(--blue-2);
  background: var(--blue-2);
  color: #fff;
}

.notice-box {
  margin-top: 30px;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
}

.notice-box strong {
  color: #f27c01;
  font-size: 16px;
}

.notice-box.warning strong {
  color: #ff6666;
}

.notice-box p {
  margin: 8px 0 0;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}

.notice-box b {
  color: inherit;
}

.next-button {
  position: fixed;
  right: 50%;
  bottom: 20px;
  width: min(calc(100% - 14%), 413px);
  transform: translateX(50%);
}

.next-button:disabled,
.next-button.is-disabled {
  background: #ccc;
  cursor: not-allowed;
}

.range-label {
  display: block;
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  height: 12px;
  border-radius: 12px;
  background: linear-gradient(to right, #0068bd 0%, #e5e5e5 0%);
  outline: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0068bd;
  box-shadow: 0 4px 10px rgba(0, 104, 189, 0.4);
  cursor: pointer;
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #0068bd;
  cursor: pointer;
}

.range-heading {
  margin-top: 58px !important;
}

.final-step .question-shell {
  padding-bottom: 24px;
}

.field-label {
  display: block;
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.text-field,
.time-select {
  width: 100%;
  height: 50px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.text-field {
  padding: 0 15px;
}

.phone-row {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr;
  align-items: center;
  gap: 6px;
}

.phone-row span {
  color: var(--line);
  text-align: center;
  font-weight: 900;
}

.phone-row input {
  text-align: center;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-methods button {
  height: 46px;
  border-radius: 7px;
  background: var(--line);
  color: #454545;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.contact-methods button.is-selected:first-child {
  background: #333;
  color: #fff;
}

.contact-methods button.is-selected:last-child {
  background: #f1d900;
  color: #45282a;
}

.time-select {
  height: 50px;
  margin-top: 10px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 5px;
  appearance: none;
  cursor: pointer;
}

.privacy-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
  color: #444;
  font-size: 14px;
  font-weight: 700;
}

.privacy-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.privacy-row button {
  padding: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.privacy-modal.is-open {
  display: block;
}

.privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.privacy-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90%, 432px);
  max-height: 70svh;
  overflow: auto;
  transform: translate(-50%, -50%);
  background: #fff;
}

.privacy-panel header {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  min-height: 55px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.privacy-panel h2 {
  margin: 0;
  text-align: center;
  font-size: 19px;
}

.privacy-panel header button {
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}

.privacy-content {
  padding: 28px 7%;
  color: #333;
  font-size: 13px;
  line-height: 1.9;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.result-body {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.result-page {
  width: min(100%, 420px);
  padding: 34px 28px;
  border-radius: 15px;
  background: #fff;
  text-align: center;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.09);
}

.result-logo {
  width: auto;
  max-width: 190px;
  height: 34px;
  object-fit: contain;
}

.result-page h1 {
  margin: 28px 0 10px;
  font-size: 28px;
}

.result-page p {
  color: var(--muted);
  line-height: 1.6;
}

.primary-link {
  display: grid;
  min-height: 52px;
  margin-top: 22px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

@keyframes pulseGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (min-width: 481px) {
  .step {
    box-shadow: 0 0 24px rgba(20, 30, 50, 0.08);
  }
}

@media (min-width: 768px) {
  body {
    background: #f3f5f7;
  }

  .landing.step {
    width: 100%;
    max-width: none;
    box-shadow: none;
  }

  .topbar,
  .hero,
  .content,
  .footer {
    width: min(100%, 1120px);
    margin-inline: auto;
  }

  .topbar {
    padding: 18px 24px 0;
  }

  .logo {
    width: 188px;
    max-width: none;
  }

  .hero {
    grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1fr);
    min-height: min(520px, calc(100svh - 128px));
    gap: 34px;
    align-items: center;
    padding: 18px 24px 24px;
    text-align: left;
  }

  .hero-copy {
    justify-self: stretch;
    justify-items: start;
    transform: translateY(-18px);
  }

  .hero h1 {
    font-size: clamp(42px, 5vw, 60px);
    line-height: 1.16;
  }

  .lead {
    margin-top: 14px;
    font-size: 20px;
  }

  .hero-image {
    grid-column: 2;
    width: min(100%, 450px);
    max-height: 500px;
    justify-self: center;
  }

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

  .content > * {
    margin-bottom: 0;
  }

  .content .info-card:first-child,
  .dark-guide,
  .contact-cards {
    grid-column: 1 / -1;
  }

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

  .dark-guide .section-kicker {
    grid-column: 1 / -1;
  }

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

  .contact-cards article {
    min-height: 184px;
  }

  .footer {
    margin-top: 28px;
    padding: 44px 24px 84px;
  }

  .sticky-cta {
    width: 420px;
    padding-inline: 0;
    background: transparent;
    backdrop-filter: none;
  }

}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 29px;
  }

  .question-step h2 {
    font-size: 24px;
  }

  .option-grid button {
    font-size: 15px;
  }
}
