:root {
  --ink: #263128;
  --muted: #6f766f;
  --paper: #f7f3e9;
  --paper-deep: #eee6d7;
  --green: #315f4f;
  --green-dark: #24483c;
  --coral: #c8735b;
  --line: rgba(49, 95, 79, .17);
  --shadow: 0 24px 70px rgba(50, 61, 50, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(217, 190, 156, .23), transparent 28%),
    linear-gradient(135deg, #faf8f2, var(--paper));
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .38;
}
.ambient-one { top: -180px; right: -130px; background: #d7dfc7; }
.ambient-two { bottom: -220px; left: -160px; background: #ecd0bf; }

.site-header {
  width: min(1160px, calc(100% - 40px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Gowun Dodum", serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 48% 52%;
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 10px;
  background: var(--green);
  transform: rotate(-7deg);
}
.header-note { color: var(--muted); font-size: 13px; }

main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.view { display: none; }
.view.active { display: flex; animation: rise .45s ease both; }

.hero {
  min-height: calc(100vh - 156px);
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 70px 4% 90px;
}
.hero-copy { flex: 1; max-width: 590px; }
.eyebrow {
  margin: 0 0 19px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}
h1, h2, h3, p { word-break: keep-all; }
h1 {
  margin: 0;
  font-family: "Gowun Dodum", serif;
  font-size: clamp(48px, 6.4vw, 86px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.055em;
}
h1 em { color: var(--green); font-style: normal; }
.hero-description {
  margin: 32px 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.primary-button, .secondary-button {
  min-height: 54px;
  border-radius: 4px;
  padding: 0 26px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s, background .2s, opacity .2s;
}
.primary-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(49, 95, 79, .17);
}
.primary-button:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .35; }
.primary-button span { margin-left: 18px; }
.secondary-button {
  border: 1px solid var(--line);
  color: var(--green);
  background: transparent;
}
.secondary-button:hover { background: rgba(49, 95, 79, .06); }
.privacy-note { margin: 15px 0 0; color: #92968f; font-size: 11px; }

.hero-visual { position: relative; flex: 0 1 430px; height: 480px; }
.postcard {
  position: absolute;
  width: 340px;
  height: 430px;
  border: 1px solid rgba(71, 80, 67, .14);
  box-shadow: var(--shadow);
}
.postcard-back { top: 28px; left: 26px; background: #d7ad91; transform: rotate(9deg); }
.postcard-front {
  top: 8px;
  left: 0;
  padding: 48px 42px;
  overflow: hidden;
  background: #f5efe2;
  transform: rotate(-4deg);
}
.postcard-front::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -90px;
  bottom: -85px;
  border: 1px solid rgba(49, 95, 79, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(49, 95, 79, .04), 0 0 0 42px rgba(49, 95, 79, .03);
}
.postcard-front p {
  margin: 70px 0 32px;
  font-family: "Gowun Dodum", serif;
  font-size: 25px;
  line-height: 1.65;
}
.stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 58px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--coral);
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.postcard-line { display: block; width: 96px; margin-top: 10px; border-top: 1px solid rgba(49, 95, 79, .35); }
.postcard-line.short { width: 62px; }
.postcard-sign { color: var(--green); font-family: "Gowun Dodum", serif; font-size: 14px; }
.flower { position: absolute; z-index: 3; color: var(--coral); font-size: 58px; }
.flower-one { right: 2px; bottom: 10px; transform: rotate(18deg); }
.flower-two { top: 0; left: -32px; color: var(--green); font-size: 34px; }

.questionnaire { min-height: calc(100vh - 150px); flex-direction: column; padding: 60px 0 100px; }
.progress-wrap { width: min(760px, 100%); margin: 0 auto 34px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.progress-meta b { color: var(--green); }
.text-button { border: 0; padding: 0; color: var(--muted); cursor: pointer; background: none; }
.progress-track { height: 3px; overflow: hidden; background: var(--paper-deep); }
.progress-track span { display: block; width: 16.6%; height: 100%; background: var(--green); transition: width .35s ease; }
.question-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 54px 58px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .75);
  box-shadow: var(--shadow);
}
.question-card h2, .result-heading h2 {
  margin: 0;
  font-family: "Gowun Dodum", serif;
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 400;
  letter-spacing: -.04em;
}
.question-help { margin: 13px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  padding: 17px 19px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: border .2s, transform .2s, background .2s;
}
.option:hover { border-color: rgba(49, 95, 79, .5); transform: translateY(-1px); }
.option.selected { border-color: var(--green); background: rgba(49, 95, 79, .08); }
.option-icon { width: 31px; color: var(--coral); font-family: "Gowun Dodum", serif; font-size: 23px; text-align: center; }
.option-copy strong { display: block; font-size: 14px; }
.option-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.question-actions { display: flex; justify-content: flex-end; margin-top: 34px; }

.result { flex-direction: column; padding: 64px 4% 100px; }
.result-heading { max-width: 740px; margin: 0 auto 40px; text-align: center; }
.result-badge { display: inline-block; margin-bottom: 22px; border-radius: 999px; padding: 7px 13px; color: var(--green); font-size: 11px; font-weight: 700; background: rgba(49, 95, 79, .09); }
.result-heading > p:last-child { color: var(--muted); line-height: 1.8; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-card {
  position: relative;
  min-height: 245px;
  border: 1px solid var(--line);
  padding: 36px;
  background: rgba(255, 253, 247, .82);
}
.result-card h3 { margin: 22px 0 12px; font-family: "Gowun Dodum", serif; font-size: 28px; font-weight: 400; }
.result-card p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.card-number { position: absolute; top: 28px; right: 30px; color: rgba(49, 95, 79, .3); font-family: "Gowun Dodum", serif; font-size: 13px; }
.card-label { margin: 0 !important; color: var(--coral) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .12em; }
.verdict-card { color: #fff; background: var(--green); }
.verdict-card .card-label, .verdict-card p { color: rgba(255, 255, 255, .75) !important; }
.verdict-card .card-number { color: rgba(255, 255, 255, .4); }
.wide-card { grid-column: span 2; min-height: auto; }
.gift-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.gift-type { border-top: 1px solid var(--line); padding-top: 18px; }
.gift-type b { display: block; margin-bottom: 7px; font-family: "Gowun Dodum", serif; font-size: 19px; }
.gift-type span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.message-card blockquote { margin: 25px 0 23px; font-family: "Gowun Dodum", serif; font-size: 21px; line-height: 1.7; }
.message-card .secondary-button { min-height: 42px; padding: 0 17px; font-size: 12px; }
.caution-card ul { margin: 23px 0 0; padding: 0; list-style: none; }
.caution-card li { position: relative; margin-top: 13px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.caution-card li::before { content: "×"; position: absolute; left: 0; color: var(--coral); font-weight: 800; }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.result-disclaimer { max-width: 650px; margin: 22px auto 0; color: #92968f; font-size: 10px; line-height: 1.7; text-align: center; }

footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: #92968f;
  font-size: 11px;
}
footer p { margin: 0; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  padding: 12px 18px;
  color: #fff;
  font-size: 12px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .site-header { height: 70px; }
  .header-note { display: none; }
  .hero { min-height: auto; flex-direction: column; align-items: flex-start; gap: 65px; padding: 64px 0 95px; }
  .hero-copy { max-width: 100%; }
  .hero-visual { width: 100%; flex-basis: 390px; transform: scale(.9); transform-origin: center top; }
  .postcard { left: 50%; transform-origin: center; }
  .postcard-back { transform: translateX(-48%) rotate(9deg); }
  .postcard-front { transform: translateX(-55%) rotate(-4deg); }
  .flower-one { right: 6%; }
  .flower-two { left: 8%; }
  .question-card { padding: 42px 30px; }
  .result-grid { grid-template-columns: 1fr; }
  .wide-card { grid-column: auto; }
}

@media (max-width: 560px) {
  main, .site-header, footer { width: min(100% - 28px, 1160px); }
  h1 { font-size: 47px; }
  .hero-description { font-size: 15px; }
  .hero-visual { height: 365px; flex-basis: 365px; transform: scale(.78); }
  .questionnaire { padding-top: 35px; }
  .question-card { padding: 34px 20px; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 66px; }
  .question-actions .primary-button { width: 100%; }
  .result { padding: 45px 0 80px; }
  .result-card { min-height: auto; padding: 30px 24px; }
  .gift-types { grid-template-columns: 1fr; }
  .gift-type { padding: 15px 0; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
