@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap");
:root {
  --bg: #f7f5f0;
  --paper: #fffefa;
  --ink: #29272b;
  --muted: #727076;
  --accent: #785864;
  --line: #e4e0dc;
  --wood: #7f998b;
  --fire: #bf8c86;
  --earth: #b7a17b;
  --metal: #a4a4ad;
  --water: #8198ac;
  --radius: 24px;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ad8294;
  outline-offset: 4px;
}
header {
  max-width: 1100px;
  margin: auto;
  padding: 27px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: 0.13em;
}
.logo span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 27px;
  font-size: 14px;
}
nav a:hover {
  color: var(--accent);
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 0 24px 70px;
}
.hero {
  text-align: center;
  padding: 48px 0 26px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.065em;
  margin: 14px 0;
}
.hero p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}
.birth-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px #3f283707;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 17px;
}
.field label,
legend {
  font-size: 14px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:disabled {
  background: #efedeb;
}
.check {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.inline-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.primary,
.secondary {
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  min-height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #624451;
}
.secondary {
  background: #eee9e7;
  color: #624451;
}
.full {
  width: 100%;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
.center {
  text-align: center;
}
.note {
  margin: 15px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.services {
  margin: 58px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: 48px 1fr 16px;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s;
}
.service:hover {
  transform: translateY(-3px);
}
.service h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
}
.service p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.service .icon {
  font-family: Georgia, serif;
  color: var(--accent);
  font-size: 28px;
}
.service.wide {
  grid-column: 1/-1;
  background: #eee8ec;
}
.section-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.how {
  padding: 50px 0 5px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.steps span {
  font-family: Georgia, serif;
  color: var(--accent);
}
.steps h3 {
  font-size: 16px;
  font-weight: 500;
}
.steps p {
  font-size: 14px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1100px;
  margin: auto;
  padding: 30px 28px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.narrow {
  max-width: 620px;
  margin: auto;
}
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  padding: 28px;
  margin: 20px 0;
}
.insight {
  text-align: center;
  padding: 38px 28px;
  background: #eee7ec;
}
.insight h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -0.04em;
}
.insight blockquote {
  font-size: 23px;
  line-height: 1.8;
  margin: 20px 0;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 12px;
  color: var(--muted);
}
.elements {
  height: 165px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-top: 15px;
}
.element {
  flex: 1;
  text-align: center;
  font-size: 14px;
  min-width: 0;
}
.bar-track {
  height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 8px 0;
}
.bar {
  width: 100%;
  max-width: 48px;
  border-radius: 8px 8px 3px 3px;
  min-height: 3px;
  transition: height 0.5s;
}
.element strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.divider {
  border-top: 1px solid var(--line);
  margin: 28px 0 20px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.two h3 {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}
.two p {
  font-size: 22px;
  margin: 6px 0;
}
.score {
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.score small {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}
.score-row {
  display: grid;
  grid-template-columns: 110px 1fr 35px;
  align-items: center;
  gap: 15px;
  margin: 18px 0;
  font-size: 14px;
}
.meter {
  height: 5px;
  background: #eee9e8;
  border-radius: 5px;
  overflow: hidden;
}
.meter span {
  height: 100%;
  display: block;
  background: var(--accent);
  border-radius: 5px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 22px 0;
}
.actions > * {
  flex: 1;
  white-space: nowrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 8px;
  margin: 22px 0;
}
.detail-grid div {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 4px;
}
.detail-grid b {
  font-size: 26px;
  font-weight: 400;
  display: block;
}
.detail-grid small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 15px;
}
.notice {
  border-left: 3px solid #b79ba7;
  padding: 10px 15px;
  background: #eee9ec;
  font-size: 14px;
  margin: 20px 0;
}
.error {
  color: #963f4d;
  background: #f9eeee;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
}
.hidden {
  display: none !important;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
.product {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 14px 0;
}
.product h3 {
  margin: 0;
  font-size: 16px;
}
.product p {
  margin: 5px 0;
}
.legal h2 {
  font-size: 21px;
  margin-top: 30px;
}
.legal p,
.legal li {
  font-size: 15px;
  color: #615d63;
}
.login-buttons {
  display: grid;
  gap: 12px;
}
.kakao {
  background: #fee500;
  color: #191919;
}
.divider-label {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 22px 0;
}
.saved {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.saved button {
  font-size: 13px;
  padding: 8px 12px;
  min-height: 42px;
}
.answer {
  white-space: pre-wrap;
  line-height: 1.95;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.chips button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metrics article {
  background: var(--paper);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.metrics b {
  font-family: Georgia, serif;
  display: block;
  font-size: 32px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-weight: 500;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  z-index: 10;
  font-size: 14px;
  max-width: 90vw;
}
h2,
h3,
p {
  overflow-wrap: anywhere;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.heart {
  color: var(--accent);
  font-size: 25px;
}
.account-help {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
}
.saved-select {
  margin-bottom: 18px;
}
.birth-card h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 24px;
}
@media (max-width: 600px) {
  header {
    padding: 20px;
  }
  .logo {
    font-size: 25px;
  }
  nav {
    gap: 16px;
    font-size: 13px;
  }
  main {
    padding: 0 18px 45px;
  }
  .hero {
    padding: 30px 0 22px;
  }
  .hero h1 {
    font-size: 33px;
    margin: 10px 0;
  }
  .hero p {
    font-size: 15px;
  }
  .hero .eyebrow {
    font-size: 11px;
  }
  .birth-card {
    padding: 22px 20px;
  }
  .field {
    margin-bottom: 14px;
  }
  .services {
    margin-top: 35px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service {
    padding: 23px 20px;
    grid-template-columns: 34px 1fr 14px;
    gap: 12px;
  }
  .service.wide {
    grid-column: auto;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .steps article {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0 15px;
  }
  .steps h3 {
    margin: 0;
  }
  .steps p {
    grid-column: 2;
    margin: 6px 0 16px;
  }
  footer {
    flex-direction: column;
    padding: 25px 20px;
  }
  .card {
    padding: 23px 20px;
  }
  .insight h2 {
    font-size: 23px;
  }
  .insight blockquote {
    font-size: 21px;
  }
  .elements {
    gap: 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .row {
    gap: 12px;
  }
  .score-row {
    grid-template-columns: 100px 1fr 30px;
    gap: 10px;
  }
  .two h3 {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 380px) {
  header {
    padding: 18px 16px;
  }
  .logo {
    font-size: 23px;
  }
  nav {
    gap: 10px;
    font-size: 12px;
  }
  .birth-card {
    padding: 20px 16px;
  }
  .check {
    font-size: 12px;
  }
  .price-form {
    flex-wrap: wrap;
  }
}
