@font-face {
  font-family: "Geist";
  src: url("./fonts/GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-geist-sans: "Geist";
  --background: #f6f5f0;
  --surface: #ffffff;
  --surface-soft: #eef2ed;
  --text: #1d2925;
  --muted: #68736e;
  --line: #dde3de;
  --primary: #315f52;
  --primary-dark: #24483f;
  --accent: #e7a77f;
  --accent-soft: #f8e7dc;
  --shadow: 0 18px 50px rgba(35, 66, 57, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-geist-sans), "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
#app { flex: 1; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 227, 222, 0.8);
  background: rgba(246, 245, 240, 0.88);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1120px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 850; letter-spacing: -0.04em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: var(--primary); color: white; font-size: 15px; }
.topbar { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 650; transition: 0.2s ease; }
.nav-link:hover { background: white; color: var(--text); }
.nav-link:focus-visible, .button:focus-visible, .pet-card:focus-visible, .option-card:focus-within { outline: 3px solid rgba(49,95,82,.22); outline-offset: 2px; }

.container { width: min(100% - 40px, 1120px); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-title { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -.055em; }
.page-copy { margin: 18px auto 0; max-width: 570px; color: var(--muted); font-size: 17px; line-height: 1.75; letter-spacing: -.02em; }
.section-heading { text-align: center; margin-bottom: 36px; }

.hero { padding: 78px 0 46px; }
.hero-grid { min-height: 520px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { margin: 0; max-width: 640px; font-size: clamp(46px, 6vw, 76px); line-height: 1.03; letter-spacing: -.07em; }
.hero-title span { color: var(--primary); }
.hero-copy { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; letter-spacing: -.025em; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 12px 25px rgba(49,95,82,.18); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: white; border-color: var(--line); color: var(--text); }

.hero-visual { position: relative; min-height: 450px; display: grid; place-items: center; }
.hero-orbit { position: absolute; inset: 18px; border: 1px solid #d9e1dc; border-radius: 50%; }
.pet-portrait { position: relative; width: 310px; height: 370px; border-radius: 46% 46% 34% 34%; background: var(--primary); box-shadow: var(--shadow); display: grid; place-items: center; color: white; }
.pet-face { font-size: 104px; filter: grayscale(1) brightness(3); opacity: .95; }
.result-float { position: absolute; right: 4px; bottom: 45px; width: 178px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.result-float small { color: var(--muted); font-weight: 650; }
.result-float strong { display: block; margin-top: 5px; font-size: 28px; letter-spacing: -.04em; color: var(--primary); }
.dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); top: 46px; left: 34px; }

.how-section { padding: 70px 0 96px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { padding: 26px; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 22px; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: #9a5c38; font-weight: 800; }
.step-card h3 { margin: 22px 0 8px; font-size: 19px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.selection-page, .result-page, .quiz-page { padding: 68px 0 96px; }
.selection-intro, .result-intro, .quiz-intro { text-align: center; margin-bottom: 44px; }
.pet-grid { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pet-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 10px 32px rgba(35,66,57,.05); transition: .25s ease; }
.pet-card:hover { transform: translateY(-5px); border-color: #c4d2ca; box-shadow: var(--shadow); }
.pet-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pet-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--surface-soft); font-size: 38px; }
.pet-arrow { font-size: 24px; color: var(--primary); }
.pet-card h2 { margin: auto 0 8px; font-size: 28px; letter-spacing: -.04em; }
.pet-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.pet-meta { margin-top: 20px; color: var(--primary); font-size: 13px; font-weight: 750; }

.quiz-intro { max-width: 740px; margin-inline: auto; }
.quiz-meta { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.meta-chip { padding: 7px 11px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.questions { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.question-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); scroll-margin-top: 100px; }
.question-label { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; font-weight: 730; line-height: 1.5; }
.question-number { flex: 0 0 auto; min-width: 28px; color: var(--primary); }
.options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card span { min-height: 44px; padding: 8px 6px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); text-align: center; font-size: 13px; font-weight: 650; transition: .18s ease; }
.option-card:hover span { border-color: #aebfb6; background: var(--surface-soft); }
.option-card input:checked + span { border-color: var(--primary); background: var(--primary); color: white; box-shadow: 0 7px 16px rgba(49,95,82,.15); }
.submit-wrap { position: sticky; bottom: 18px; z-index: 10; max-width: 900px; margin: 24px auto 0; padding: 12px; border: 1px solid rgba(221,227,222,.9); border-radius: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.submit-note { margin-left: 8px; color: var(--muted); font-size: 13px; }

.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.result-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 12px 36px rgba(35,66,57,.05); }
.result-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.result-kind { margin: 0 0 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.result-card h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.type-badge { padding: 8px 12px; border-radius: 10px; background: var(--primary); color: white; font-weight: 850; letter-spacing: .04em; }
.axis { margin-bottom: 17px; }
.axis-labels { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.axis-track { height: 9px; display: flex; overflow: hidden; border-radius: 999px; background: #edf0ed; }
.axis-left { background: var(--accent); }
.axis-right { background: var(--primary); }
.result-summary { margin-top: 26px; padding: 20px; border-radius: 17px; background: var(--surface-soft); }
.result-summary strong { display: block; margin-bottom: 7px; font-size: 15px; }
.result-summary p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.result-type-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.result-type-title > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: white; font-size: 23px; }
.result-type-title small { display: block; margin-bottom: 2px; color: var(--primary); font-size: 11px; font-weight: 800; }
.result-type-title strong { margin: 0; font-size: 17px; }
.result-type-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.result-type-traits span { padding: 6px 9px; border: 1px solid #d9e2dc; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--primary-dark); font-size: 11px; font-weight: 750; }
.result-care-tip { margin-top: 15px; padding-top: 14px; border-top: 1px solid #d9e2dc; }
.result-care-tip strong { margin-bottom: 4px; color: var(--text); font-size: 12px; }
.result-type-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 15px; color: var(--primary); font-size: 13px; font-weight: 800; }
.result-type-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.breed-row { margin-top: 20px; }
.breed-title { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.breed-list { display: flex; flex-wrap: wrap; gap: 7px; }
.breed-chip { padding: 7px 10px; border-radius: 999px; background: var(--accent-soft); color: #8f5636; font-size: 12px; font-weight: 750; }
.empty-state { min-height: 320px; display: grid; place-items: center; text-align: center; }
.empty-state p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.result-actions { display: flex; justify-content: center; margin-top: 26px; }
.result-disclaimer { max-width: 760px; margin: 24px auto 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: center; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.45); }
.footer-inner { width: min(100% - 40px, 1120px); min-height: 112px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-inner p { margin: 0; display: grid; gap: 5px; }
.footer-inner p strong { font-size: 14px; }
.footer-inner p span { color: var(--muted); font-size: 12px; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); font-size: 13px; font-weight: 700; }
.footer-inner nav a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.legal-page { max-width: 860px; padding: 72px 0 100px; }
.legal-intro { margin-bottom: 36px; text-align: center; }
.legal-date { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.privacy-summary { margin-bottom: 20px; padding: 24px; border-radius: 20px; background: var(--primary); color: white; }
.privacy-summary strong { display: block; margin-bottom: 7px; font-size: 15px; }
.privacy-summary p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; }
.legal-document { padding: 18px 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 12px 36px rgba(35,66,57,.04); }
.legal-document section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.legal-document section:last-child { border-bottom: 0; }
.legal-document h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.025em; }
.legal-document p, .legal-document li { color: var(--muted); font-size: 14px; line-height: 1.8; }
.legal-document p { margin: 0; }
.legal-document p + p, .legal-document p + .button { margin-top: 14px; }
.legal-document ol { margin: 0; padding-left: 22px; }
.legal-document a { color: var(--primary); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legal-table-wrap { margin: 14px 0; overflow-x: auto; }
.legal-document table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.legal-document th, .legal-document td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.legal-document th { background: var(--surface-soft); color: var(--text); }
.legal-document td { color: var(--muted); }
.clear-results { margin-top: 16px; }
.clear-results:disabled { opacity: .65; cursor: default; transform: none; }
.clear-status { min-height: 22px; margin-top: 9px !important; color: var(--primary) !important; font-weight: 700; }

.types-page { padding: 76px 0 100px; }
.types-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.axis-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 940px; margin: 0 auto 80px; }
.axis-guide-card { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.axis-guide-card > strong { display: grid; height: 48px; place-items: center; border-radius: 13px; background: var(--primary); color: white; font-size: 15px; letter-spacing: .05em; }
.axis-guide-card h2 { margin: 0 0 4px; font-size: 16px; }
.axis-guide-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.types-section { scroll-margin-top: 90px; }
.types-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.types-section-head .eyebrow { margin-bottom: 7px; }
.types-section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.05em; }
.types-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.type-card { scroll-margin-top: 92px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 10px 34px rgba(35,66,57,.045); }
.type-card:target { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(49,95,82,.1), var(--shadow); }
.type-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.type-card-top > div { text-align: right; }
.type-card-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 17px; background: var(--accent-soft); font-size: 29px; }
.type-group { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 750; }
.type-code { color: var(--primary); font-size: 21px; letter-spacing: .08em; }
.type-card h2 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.04em; }
.type-description { min-height: 70px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.type-traits { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.type-traits span { padding: 7px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--primary-dark); font-size: 12px; font-weight: 750; }
.type-care-tip { margin-top: 20px; padding: 17px; border-radius: 15px; background: #faf7f3; }
.type-care-tip strong { display: block; margin-bottom: 5px; color: #9a5c38; font-size: 12px; }
.type-care-tip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 400px; }
  .steps, .results-grid, .types-grid { grid-template-columns: 1fr; }
  .axis-guide { grid-template-columns: 1fr; }
  .options { grid-template-columns: repeat(5, minmax(90px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 600px) {
  .header-inner { height: 64px; padding: 0 16px; }
  .brand span:last-child { display: none; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .container { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 48px; }
  .hero-title { font-size: 44px; }
  .hero-copy, .page-copy { font-size: 16px; }
  .hero-visual { min-height: 340px; }
  .pet-portrait { width: 230px; height: 280px; }
  .pet-face { font-size: 76px; }
  .result-float { width: 150px; right: 0; bottom: 24px; }
  .pet-grid { grid-template-columns: 1fr; }
  .pet-card { min-height: 240px; }
  .selection-page, .result-page, .quiz-page { padding: 48px 0 72px; }
  .question-card { padding: 19px 16px; }
  .options { grid-template-columns: 1fr; overflow: visible; }
  .option-card span { min-height: 42px; }
  .submit-wrap { bottom: 10px; }
  .submit-note { display: none; }
  .submit-wrap .button { width: 100%; }
  .result-card { padding: 22px 18px; }
  .types-page { padding: 52px 0 72px; }
  .types-intro { margin-bottom: 36px; }
  .axis-guide { margin-bottom: 58px; }
  .types-section-head { align-items: flex-start; flex-direction: column; }
  .type-card { padding: 22px 19px; }
  .type-description { min-height: auto; }
  .footer-inner { min-height: 132px; padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 18px; }
  .legal-page { padding: 48px 0 72px; }
  .legal-document { padding: 10px 19px; }
  .privacy-summary { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
