@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap");

:root {
  --cream: #f5f7fa;
  --paper: #ffffff;
  --navy: #101c4c;
  --ink: #17203f;
  --muted: #6c6f7e;
  --coral: #ff6b55;
  --coral-soft: #ffc6b7;
  --lilac: #b5a4ee;
  --mint: #8dd9cc;
  --yellow: #ffd54d;
  --blue: #a9d4f2;
  --line: rgba(16, 28, 76, .14);
  --shadow: 0 18px 55px rgba(36, 30, 81, .10);
  --radius-lg: 32px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, rgba(181, 164, 238, .12), transparent 22rem),
    radial-gradient(circle at 0% 33%, rgba(141, 217, 204, .10), transparent 25rem),
    var(--cream);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: none;
  z-index: 10;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.brand span {
  color: var(--coral);
  display: inline-block;
  transform: rotate(-4deg);
}
.ghost-button, .text-button {
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.ghost-button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.ghost-button:hover { background: rgba(255,255,255,.6); }
.text-button { color: var(--coral); padding: 8px 0; }

.hero, .dashboard {
  width: min(1180px, calc(100% - 40px));
  margin: 50px auto 100px;
}
.hero {
  position: relative;
}
.hero::after {
  content: "✦";
  position: absolute;
  right: 5%;
  top: 30px;
  width: 124px;
  aspect-ratio: 1;
  border-radius: 40% 60% 60% 40%;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 28px 28px 0 var(--mint);
  transform: rotate(9deg);
}
.eyebrow, .result-label, .small-label {
  margin: 0 0 14px;
  font-family: "DM Sans", sans-serif;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}
.hero h1, .dashboard-intro h1, .module-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.06;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--coral); }
.hero-copy {
  max-width: 550px;
  margin: 24px 0 65px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.section-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading > div { display: flex; align-items: center; gap: 13px; }
.section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.step {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.type-card {
  min-height: 108px;
  padding: 16px 10px;
  border: 1px solid transparent;
  border-radius: 17px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.type-card:hover, .type-card:focus-visible {
  outline: none;
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 12px 26px rgba(26, 27, 70, .13);
}
.type-card strong {
  display: block;
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  letter-spacing: -.03em;
}
.type-card span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
}
.type-card.purple { background: #ddd4fa; }
.type-card.green { background: #c2e8dd; }
.type-card.blue { background: #d5eaf7; }
.type-card.yellow { background: #ffe9a1; }

.dashboard { margin-top: 65px; }
.dashboard-intro { text-align: center; }
.dashboard-intro .eyebrow { margin-bottom: 10px; }
.type-badge-large {
  width: max-content;
  margin: 0 auto 20px;
  padding: 11px 22px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 25px;
  font-weight: 800;
  transform: rotate(-2deg);
}
.dashboard-intro h1 {
  font-size: clamp(36px, 5vw, 62px);
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 60px;
}
.module-card {
  position: relative;
  min-height: 410px;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.module-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.module-card p, .module-card > span {
  position: relative;
  z-index: 2;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.module-card h2 {
  position: relative;
  z-index: 2;
  margin: 14px 0 32px;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -.05em;
}
.travel-card { background: var(--coral-soft); }
.gift-card { background: var(--mint); }
.fortune-card { background: var(--lilac); }
.module-icon {
  position: absolute;
  right: -20px;
  bottom: -25px;
  display: grid;
  width: 230px;
  height: 230px;
  place-items: center;
  border: 35px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: var(--navy);
  font-family: serif;
  font-size: 88px;
  transform: rotate(-10deg);
}
footer {
  padding: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.quiz-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(16, 28, 76, .25);
}
.quiz-dialog::backdrop { background: rgba(16, 28, 76, .58); backdrop-filter: blur(5px); }
.quiz-dialog form { padding: 34px; }
.quiz-top { display: flex; align-items: flex-start; justify-content: space-between; }
.quiz-top h2 { margin: 0; color: var(--navy); font-size: 27px; }
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.quiz-question { margin: 25px 0; padding: 0; border: 0; }
.quiz-question legend { margin-bottom: 12px; font-weight: 700; }
.quiz-question legend span { margin-right: 9px; color: var(--coral); font-family: "DM Sans"; font-size: 12px; }
.quiz-question label { display: block; margin: 8px 0; cursor: pointer; }
.quiz-question input { position: absolute; opacity: 0; }
.quiz-question label span {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 14px;
  transition: .2s ease;
}
.quiz-question input:checked + span { border-color: var(--navy); background: #e9e5fa; box-shadow: inset 4px 0 0 var(--coral); }
.primary-button, .secondary-button {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.primary-button { color: white; background: var(--navy); }
.primary-button:disabled { opacity: .4; cursor: not-allowed; }
.secondary-button { color: var(--navy); background: transparent; border: 1px solid var(--navy); }
.full-button { width: 100%; }

.module-page { background: var(--cream); }
.module-shell { width: min(1080px, calc(100% - 40px)); margin: 30px auto 100px; }
.module-header-actions { display: flex; align-items: center; gap: 16px; }
.module-hero { margin: 55px 0 50px; }
.module-hero h1 { font-size: clamp(42px, 6vw, 68px); }
.module-hero h1 span { color: var(--coral); }
.module-hero > p:last-child { max-width: 580px; color: var(--muted); line-height: 1.7; }
.control-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.65);
}
.travel-controls, .gift-controls { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.filter-block h2 { margin: 0 0 14px; font-size: 15px; }
.segmented { display: flex; flex-wrap: wrap; gap: 7px; }
.segmented button, .period-tabs button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.segmented button.active { color: white; border-color: var(--navy); background: var(--navy); }
.type-select {
  width: 100%;
  min-height: 43px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: white;
  font: 700 13px "Pretendard", "Apple SD Gothic Neo", sans-serif;
}
.type-select:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.type-select:disabled { color: var(--muted); background: rgba(16,28,76,.05); cursor: not-allowed; }
.filter-help { margin: 9px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.result-section { width: min(680px, 100%); margin: 75px auto 0; }
.result-label { color: var(--navy); text-align: center; }
.share-card {
  position: relative;
  width: 100%;
  min-height: 680px;
  padding: 42px;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow);
}
.card-kicker, .card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.card-kicker span:first-child { color: var(--coral); }
.card-footer {
  position: absolute;
  right: 42px;
  bottom: 35px;
  left: 42px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(16,28,76,.16);
}
.travel-result { background: var(--coral-soft); }
.travel-result::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -100px;
  top: 90px;
  border-radius: 50%;
  background: var(--yellow);
}
.destination-mark, .gift-mark {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  margin: 48px 0 24px auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: var(--paper);
  font-size: 38px;
  transform: rotate(8deg);
}
.travel-result .small-label { color: var(--navy); }
.travel-result h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--navy);
  font-size: clamp(58px, 12vw, 90px);
  line-height: 1;
  letter-spacing: -.08em;
}
.location { margin: 12px 0 40px; font-family: "DM Sans"; font-weight: 800; letter-spacing: .14em; }
.reason-box {
  position: relative;
  z-index: 2;
  padding: 21px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
}
.reason-box span { font: 800 10px "DM Sans"; letter-spacing: .12em; }
.reason-box p { margin: 9px 0 0; font-size: 15px; line-height: 1.7; }
.share-actions { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.share-status, .placeholder-note { color: var(--muted); text-align: center; font-size: 12px; }
.placeholder-note { margin: 18px 0 -8px; }
.score-note {
  max-width: 600px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.gift-result { min-height: 810px; color: var(--navy); background: var(--mint); }
.gift-result::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -70px;
  border: 42px solid rgba(255,255,255,.35);
  border-radius: 50%;
}
.gift-title-row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 52px 0 25px; }
.gift-title-row h2 { margin: 0; font-size: 42px; letter-spacing: -.06em; }
.gift-mark { flex: 0 0 auto; margin: 0; background: var(--yellow); }
.gift-basis {
  position: relative;
  z-index: 2;
  margin: -9px 0 18px;
  color: #40514d;
  font-size: 12px;
  font-weight: 700;
}
.gift-list { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; }
.gift-list li { display: grid; grid-template-columns: 52px 1fr; gap: 15px; padding: 20px 0; border-top: 1px solid rgba(16,28,76,.16); }
.gift-list li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: var(--navy); font: 700 12px "DM Sans"; }
.gift-list strong { font-size: 18px; }
.gift-list p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }

.period-tabs { width: max-content; margin: 0 auto 25px; padding: 5px; border-radius: 999px; background: rgba(16,28,76,.08); }
.period-tabs button { min-width: 100px; border: 0; background: transparent; }
.period-tabs button.active { color: white; background: var(--navy); }
.fortune-section { margin-top: 0; }
.fortune-result {
  min-height: 900px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,213,77,.38), transparent 24%),
    linear-gradient(145deg, #7163b8, #23285f 70%);
}
.fortune-result .card-kicker { color: white; }
.fortune-result .card-kicker span:first-child { color: var(--yellow); }
.fortune-orb {
  width: 180px;
  height: 180px;
  margin: 48px auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: var(--yellow);
  background: radial-gradient(circle, rgba(255,255,255,.26), rgba(255,255,255,.04));
  box-shadow: 0 0 55px rgba(255,213,77,.24), inset 0 0 40px rgba(255,255,255,.12);
  font-size: 76px;
}
.fortune-date { font: 700 11px "DM Sans"; letter-spacing: .14em; opacity: .75; }
.fortune-result h2 { margin: 10px 0 16px; color: var(--yellow); font-size: 42px; letter-spacing: -.05em; }
.fortuneMessage { max-width: 460px; margin: auto; font-size: 16px; line-height: 1.75; }
.fortune-scores {
  max-width: 480px;
  margin: 30px auto 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.09);
}
.fortune-scores > div {
  display: grid;
  grid-template-columns: 92px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 11px;
  text-align: left;
}
.fortune-scores i { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.fortune-scores b { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.fortune-scores strong { color: white; font: 700 11px "DM Sans"; text-align: right; }
.fortune-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 35px; }
.fortune-details div { padding: 14px 8px; border-radius: 14px; background: rgba(255,255,255,.1); }
.fortune-details span { display: block; margin-bottom: 7px; font: 700 9px "DM Sans"; letter-spacing: .09em; opacity: .75; }
.fortune-details strong { color: white; font-size: 17px; }
.fortune-result .card-footer { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); text-align: left; }
.fortune-result .card-footer strong { color: var(--yellow); }

@media (max-width: 900px) {
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 300px; }
  .control-panel, .travel-controls, .gift-controls { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .site-header, .hero, .dashboard, .module-shell { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .ghost-button { font-size: 12px; }
  .hero { margin-top: 32px; }
  .hero::after { display: none; }
  .hero-copy { margin-bottom: 45px; font-size: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .type-card { min-height: 90px; }
  .dashboard { margin-top: 40px; }
  .module-grid { margin-top: 40px; }
  .module-card { min-height: 280px; padding: 26px; }
  .module-hero { margin: 35px 0 40px; }
  .control-panel { padding: 20px; }
  .segmented button { flex: 1 1 42%; }
  .result-section { margin-top: 55px; }
  .share-card { min-height: 610px; padding: 28px; border-radius: 28px; }
  .gift-result { min-height: 850px; }
  .fortune-result { min-height: 860px; }
  .card-footer { right: 28px; bottom: 27px; left: 28px; }
  .destination-mark { margin-top: 45px; }
  .travel-result h2 { font-size: 58px; }
  .gift-title-row h2, .fortune-result h2 { font-size: 34px; }
  .gift-list li { padding: 16px 0; }
  .fortune-orb { width: 145px; height: 145px; margin-top: 42px; font-size: 62px; }
  .fortune-details strong { font-size: 14px; }
  .share-actions { flex-direction: column; }
  .share-actions button { width: 100%; }
  .quiz-dialog form { padding: 24px; }
}

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

/* Service home — shared Korean/English interface */
.home-page {
  --service-bg: #f5f7fa;
  --service-line: #dce1e9;
  --service-coral: #f0644b;
  --service-sage: #6f957f;
  background: var(--service-bg);
}
.service-header {
  width: min(1320px, calc(100% - 56px));
  height: 84px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--service-line);
  position: relative;
  z-index: 20;
}
.main-nav { display: flex; align-items: center; gap: 42px; }
.main-nav a { padding: 30px 2px 27px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--service-coral); border-color: var(--service-coral); outline: none; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.language-switch { display: flex; align-items: center; gap: 5px; color: #8a877f; font: 700 12px "DM Sans", sans-serif; }
.language-switch button { padding: 7px 3px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.language-switch button.active { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.type-switch {
  min-width: 138px;
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--service-coral);
  border-radius: 10px;
  color: var(--service-coral);
  background: transparent;
  cursor: pointer;
}
.type-switch strong { font: 800 14px "DM Sans", sans-serif; }
.type-switch span { font-size: 12px; font-weight: 700; }

.onboarding, .service-home {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
.onboarding { padding: 88px 0 110px; }
.onboarding-copy { max-width: 680px; margin-bottom: 65px; }
.onboarding-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.onboarding-copy > p:not(.eyebrow) { margin: 22px 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.quiz-link { padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; color: var(--service-coral); background: none; cursor: pointer; font-weight: 700; }
.selection-title { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.selection-title > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: white; background: var(--navy); font: 700 11px "DM Sans"; }
.selection-title h2 { margin: 0; font-size: 21px; }
.home-page .type-card {
  min-height: 112px;
  border-color: rgba(16,28,76,.06);
  border-radius: 12px;
  background: white;
}
.home-page .type-card.purple { box-shadow: inset 0 4px 0 #a79ad8; }
.home-page .type-card.green { box-shadow: inset 0 4px 0 #7faa91; }
.home-page .type-card.blue { box-shadow: inset 0 4px 0 #8bb8d0; }
.home-page .type-card.yellow { box-shadow: inset 0 4px 0 #dfbc4f; }

.home-hero {
  min-height: 520px;
  padding: 82px 0 70px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 58px;
  border-bottom: 1px solid var(--service-line);
}
.home-hero-copy h1 {
  max-width: 690px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(52px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -.065em;
}
.home-hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 22px 0 32px; color: #4f5361; font-size: 18px; line-height: 1.75; }
.primary-link {
  min-height: 54px;
  width: max-content;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  color: white;
  background: var(--service-coral);
  font-weight: 800;
}
.primary-link:hover { background: #d94e37; }
.profile-panel {
  min-height: 350px;
  padding: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 1px solid #97ae9e;
  border-radius: 14px;
  background: rgba(255,255,255,.45);
}
.service-promises {
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--service-line);
}
.service-promises > span {
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--service-line);
}
.service-promises > span:last-child { border-right: 0; }
.service-promises i {
  color: var(--service-coral);
  font: 800 10px "DM Sans", sans-serif;
  font-style: normal;
  letter-spacing: .08em;
}
.service-promises strong { color: #4f5361; font-size: 12px; }
.profile-label { color: var(--service-sage); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.profile-copy > strong { display: block; margin: 8px 0 3px; color: #48715a; font: 800 64px "DM Sans", sans-serif; line-height: 1; }
.profile-copy h2 { margin: 0 0 18px; color: #48715a; font-size: 22px; }
.profile-copy p { margin: 0; color: #4d5750; font-size: 14px; line-height: 1.7; }
.profile-illustration { position: relative; height: 260px; }
.sun-line { position: absolute; width: 45px; height: 45px; top: 25px; right: 20px; border: 2px solid #5d856c; border-radius: 50%; }
.sun-line::before, .sun-line::after { content: ""; position: absolute; width: 70px; height: 2px; left: -14px; top: 20px; background: #5d856c; }
.sun-line::after { transform: rotate(90deg); }
.mountain-line { position: absolute; width: 110px; height: 70px; top: 75px; right: 35px; border-top: 2px solid #5d856c; transform: skew(-28deg) rotate(-22deg); }
.bag-shape { position: absolute; width: 105px; height: 125px; left: 20px; bottom: 15px; border: 3px solid #5d856c; border-radius: 20px 20px 16px 16px; }
.bag-shape::before { content: ""; position: absolute; width: 45px; height: 25px; left: 27px; top: -28px; border: 3px solid #5d856c; border-bottom: 0; border-radius: 16px 16px 0 0; }
.bag-shape span { position: absolute; width: 65px; height: 45px; left: 17px; bottom: 20px; border: 2px solid #5d856c; border-radius: 8px; }

.quick-section, .category-section { padding: 72px 0; scroll-margin-top: 30px; }
.category-section { padding-top: 15px; padding-bottom: 105px; }
.section-title-row { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-title-row > div { display: flex; align-items: center; gap: 12px; }
.section-title-row h2 { margin: 0; color: var(--navy); font-size: 28px; letter-spacing: -.04em; }
.section-title-row > p { margin: 0 0 2px; color: var(--muted); font-size: 14px; }
.section-number { display: grid; width: 34px; height: 34px; margin: 0; place-items: center; border-radius: 50%; color: white; background: var(--navy); font: 700 10px "DM Sans"; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card {
  min-height: 245px;
  padding: 28px;
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-rows: 1fr auto;
  gap: 15px 20px;
  border: 1px solid var(--service-line);
  border-radius: 14px;
  background: white;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.quick-card:hover, .quick-card:focus-visible { outline: none; transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 14px 35px rgba(16,28,76,.09); }
.quick-card .line-icon { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 27px; }
.quick-card p { margin: 2px 0 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.quick-card h3 { margin: 0 0 9px; color: var(--navy); font-size: 27px; letter-spacing: -.04em; }
.quick-card div > span { color: #555b68; font-size: 14px; }
.quick-card > strong { grid-column: 2; align-self: end; font-size: 13px; }
.quick-travel { color: var(--service-coral); background: #fff9f6; }
.quick-gift { color: #527b65; background: #f7faf7; }
.quick-fortune { color: #b18311; background: #fffaf0; }
.coverage-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--service-line);
  border-radius: 12px;
  background: white;
}
.coverage-strip > div { padding: 18px 22px; display: flex; align-items: baseline; gap: 9px; border-right: 1px solid var(--service-line); }
.coverage-strip > div:last-child { border-right: 0; }
.coverage-strip strong { color: var(--navy); font: 800 23px "DM Sans"; }
.coverage-strip span { color: var(--muted); font-size: 12px; font-weight: 700; }

.category-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.category-group { min-width: 0; }
.category-group header { padding-bottom: 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--service-coral); }
.category-group header h3 { margin: 0; color: var(--navy); font-size: 18px; }
.category-group header span { color: var(--muted); font: 700 9px "DM Sans"; letter-spacing: .12em; }
.taste-group header { border-color: var(--service-sage); }
.care-group header { border-color: #d5aa32; }
.category-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.category-item {
  min-width: 0;
  min-height: 145px;
  padding: 18px 10px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--service-line);
  border-radius: 10px;
  color: var(--navy);
  background: rgba(255,255,255,.72);
  cursor: pointer;
}
.category-item:hover, .category-item:focus-visible { outline: none; border-color: var(--navy); background: white; }
.category-item > span { font: 500 32px "DM Sans"; }
.category-item strong { font-size: 13px; text-align: center; }
.category-item small { color: var(--muted); font-size: 10px; }
.category-item.featured small { color: var(--service-coral); font-weight: 800; }
.home-page footer { display: flex; justify-content: center; gap: 16px; color: #77746d; }
.home-page footer strong { color: var(--navy); font-family: "DM Sans"; }

.match-badge {
  position: absolute;
  z-index: 3;
  top: 88px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-badge strong { color: var(--navy); font: 800 22px "DM Sans"; }
.match-badge span { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.trait-pills, .result-context { display: flex; flex-wrap: wrap; gap: 6px; }
.trait-pills { margin-top: 14px; }
.trait-pills span, .result-context span {
  padding: 5px 9px;
  border: 1px solid rgba(16,28,76,.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.fit-evidence {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.fit-evidence span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #30443d;
  background: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 800;
}
.fit-evidence span::before { content: "✓"; margin-right: 5px; color: var(--coral); }
.alternative-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.alternative-panel > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.alternative-panel h3 { margin: 0; color: var(--navy); font-size: 17px; }
.alternative-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.alternative-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.alternative-grid button {
  min-height: 92px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fb;
  cursor: pointer;
}
.alternative-grid button.active { border-color: var(--navy); background: #edf1f7; box-shadow: inset 3px 0 0 var(--coral); }
.alternative-grid button > span { color: var(--coral); font: 700 9px "DM Sans"; }
.alternative-grid button strong { color: var(--navy); font-size: 14px; text-align: left; }
.alternative-grid button small { color: var(--muted); font-size: 9px; text-align: left; }
.result-context { position: relative; z-index: 2; margin: -8px 0 10px; }
.gift-name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gift-name-row em { color: var(--navy); font: 800 11px "DM Sans"; font-style: normal; }
.gift-list li div > small { display: block; margin-top: 7px; color: rgba(16,28,76,.62); font-size: 10px; font-weight: 700; }

/* Expanded lifestyle modules */
.chemistry-controls { grid-template-columns: .8fr 1.2fr; }
.compact-type-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.compact-type-grid button {
  min-height: 37px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: white;
  cursor: pointer;
  font: 800 10px "DM Sans", sans-serif;
}
.compact-type-grid button:hover,
.compact-type-grid button:focus-visible,
.compact-type-grid button.active {
  outline: none;
  color: white;
  border-color: var(--navy);
  background: var(--navy);
}
.chemistry-selection-status { margin-top: 11px; }
.chemistry-empty {
  width: min(680px, 100%);
  margin: 52px auto 0;
  padding: 54px 36px;
  border: 1px dashed rgba(16,28,76,.24);
  border-radius: 28px;
  color: var(--navy);
  background: rgba(255,255,255,.58);
  text-align: center;
}
.chemistry-empty > span {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--coral);
  background: var(--coral-soft);
  font: 800 10px "DM Sans", sans-serif;
  letter-spacing: .1em;
}
.chemistry-empty h2 { margin: 17px 0 9px; font-size: 28px; letter-spacing: -.04em; }
.chemistry-empty p { max-width: 440px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.65; }
.chemistry-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.chemistry-result-heading .result-label { margin: 0; text-align: left; }
.chemistry-swap {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.chemistry-swap:hover, .chemistry-swap:focus-visible { outline: none; border-color: var(--navy); background: white; }
.chemistry-result {
  --pair-color: #4f8e76;
  min-height: 980px;
  color: var(--navy);
  background:
    radial-gradient(circle at 90% 12%, rgba(111,149,127,.28), transparent 30%),
    linear-gradient(145deg, #f1edff, #e9f4f5 68%, #fff);
}
.chemistry-pair {
  position: relative;
  z-index: 2;
  margin: 64px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.chemistry-pair > div { min-width: 0; }
.chemistry-pair > div:last-child { text-align: right; }
.chemistry-pair strong { display: block; font: 800 clamp(48px, 10vw, 72px) "DM Sans", sans-serif; letter-spacing: -.07em; }
.chemistry-pair > div:last-child strong { color: var(--pair-color); }
.chemistry-pair span { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; }
.chemistry-pair i { color: var(--coral); font: 500 34px "DM Sans"; font-style: normal; }
.chemistry-score { display: flex; align-items: baseline; gap: 10px; }
.chemistry-score strong { color: var(--coral); font: 800 38px "DM Sans"; }
.chemistry-score strong::after { content: "/100"; font-size: 13px; margin-left: 3px; }
.chemistry-score span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.chemistry-result > h2 { margin: 8px 0 7px; font-size: 34px; letter-spacing: -.05em; }
.chemistry-summary {
  position: relative;
  z-index: 2;
  margin: 0 0 21px;
  color: #59647a;
  font-size: 11px;
  font-weight: 800;
}
.chemistry-basis {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.chemistry-dimension {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(16,28,76,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}
.dimension-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.dimension-heading span { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.dimension-heading em {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 999px;
  color: #6252a8;
  background: #eeeafd;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}
.chemistry-dimension.complementary .dimension-heading em { color: #a34d3f; background: #ffe6df; }
.dimension-pair { display: flex; align-items: baseline; gap: 4px; margin: 11px 0 9px; }
.dimension-pair b { color: var(--navy); font: 800 18px "DM Sans", sans-serif; }
.dimension-pair i { color: var(--coral); font-size: 10px; font-style: normal; }
.dimension-pair strong { margin-left: auto; color: var(--navy); font: 800 9px "DM Sans", sans-serif; }
.dimension-track { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(16,28,76,.1); }
.dimension-track span { display: block; height: 100%; border-radius: inherit; background: #7767c4; }
.chemistry-dimension.complementary .dimension-track span { background: var(--coral); }
.chemistry-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chemistry-columns section,
.chemistry-advice {
  padding: 20px;
  border: 1px solid rgba(16,28,76,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}
.chemistry-columns section > span,
.chemistry-advice > span,
.profile-guide-grid span,
.lifestyle-action > span,
.lifestyle-more > span {
  color: var(--coral);
  font: 800 9px "DM Sans", sans-serif;
  letter-spacing: .12em;
}
.chemistry-columns ul { margin: 12px 0 0; padding-left: 18px; }
.chemistry-columns li { margin: 8px 0; font-size: 12px; line-height: 1.55; }
.chemistry-advice { margin-top: 10px; border-color: transparent; background: var(--navy); color: white; }
.chemistry-advice p { margin: 9px 0 0; font-size: 14px; line-height: 1.6; }
.chemistry-advice > span { color: var(--yellow); }
.score-method {
  margin: 18px 0 0;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}
.score-method summary {
  padding: 16px 0;
  color: var(--navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.score-method > p { margin: -3px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.method-weights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding-bottom: 18px; }
.method-weights span { padding: 10px; border-radius: 10px; background: #edf1f7; text-align: center; }
.method-weights strong { display: block; color: var(--muted); font-size: 9px; }
.method-weights b { display: block; margin-top: 3px; color: var(--navy); font: 800 13px "DM Sans", sans-serif; }

.profile-section { margin-top: 35px; }
.profile-result {
  --profile-color: #55a57b;
  min-height: 900px;
  color: var(--navy);
  background:
    radial-gradient(circle at 78% 17%, rgba(141,217,204,.38), transparent 28%),
    linear-gradient(160deg, #fff 0 52%, #edf2f7 100%);
}
.profile-result::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: 85px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(141,217,204,.62);
  border-radius: 50%;
  opacity: .48;
}
.profile-result-head {
  position: relative;
  z-index: 2;
  margin: 58px 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.profile-result-head h2 { margin: 0; color: var(--profile-color); font: 800 94px/1 "DM Sans", sans-serif; letter-spacing: -.08em; }
.profile-result-head h3 { margin: 5px 0 0; font-size: 24px; }
.profile-symbol {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: white;
  background: var(--profile-color);
  font-size: 42px;
  transform: rotate(7deg);
}
.profile-strength { position: relative; z-index: 2; max-width: 500px; margin: 0 0 28px; color: #46506c; font-size: 16px; line-height: 1.7; }
.dimension-list { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dimension-list div {
  min-height: 62px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}
.dimension-list strong { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: white; background: var(--profile-color); font: 800 15px "DM Sans"; }
.dimension-list span { font-size: 11px; font-weight: 700; line-height: 1.35; }
.profile-guide-grid { position: relative; z-index: 2; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-guide-grid section { padding: 18px; border-radius: 14px; background: var(--navy); color: white; }
.profile-guide-grid span { color: var(--yellow); }
.profile-guide-grid p { margin: 9px 0 0; font-size: 12px; line-height: 1.55; }

.lifestyle-tabs { display: flex; width: max-content; }
.lifestyle-tabs button { min-width: 112px; }
.lifestyle-controls { grid-template-columns: 1.25fr .75fr; align-items: center; }
.context-note { padding: 15px 18px; border-left: 1px solid var(--line); }
.context-note strong { color: var(--coral); font: 800 12px "DM Sans"; letter-spacing: .12em; }
.context-note p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.lifestyle-result {
  --life-color: #6f957f;
  min-height: 850px;
  color: var(--navy);
  background: linear-gradient(180deg, var(--life-soft, #e8f2ed), #fff 56%);
}
.lifestyle-result::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -75px;
  width: 300px;
  height: 300px;
  border: 40px solid rgba(255,255,255,.48);
  border-radius: 50%;
}
.lifestyle-orbit {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 94px;
  margin: 56px 0 28px auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: white;
  font-size: 35px;
}
.lifestyle-result .small-label { color: var(--life-color); }
.lifestyle-result h2 { position: relative; z-index: 2; max-width: 520px; margin: 0; font-size: 46px; line-height: 1.15; letter-spacing: -.06em; }
.lifestyle-reason { position: relative; z-index: 2; margin: 18px 0 24px; color: #4c5667; font-size: 15px; line-height: 1.7; }
.lifestyle-action { position: relative; z-index: 2; padding: 20px; border-radius: 16px; background: var(--navy); color: white; }
.lifestyle-action > span { color: var(--yellow); }
.lifestyle-action p { margin: 9px 0 0; font-size: 14px; line-height: 1.6; }
.lifestyle-more { position: relative; z-index: 2; margin-top: 20px; }
.lifestyle-more > span { color: var(--life-color); }
.lifestyle-more > div { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lifestyle-more p { margin: 0; padding: 14px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.75); }
.lifestyle-more strong { font-size: 11px; }
.lifestyle-more p span { color: var(--coral); font: 800 10px "DM Sans"; }

@media (max-width: 1000px) {
  .service-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .home-hero { grid-template-columns: 1fr; gap: 45px; }
  .profile-panel { min-height: 300px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 185px; }
  .category-groups { grid-template-columns: 1fr; gap: 40px; }
  .chemistry-controls, .lifestyle-controls { grid-template-columns: 1fr; }
  .context-note { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 650px) {
  .service-header { width: calc(100% - 28px); height: 70px; }
  .header-actions { gap: 8px; }
  .type-switch { min-width: 0; padding: 0 11px; }
  .type-switch span { display: none; }
  .onboarding, .service-home { width: calc(100% - 28px); }
  .onboarding { padding: 55px 0 80px; }
  .onboarding-copy { margin-bottom: 45px; }
  .onboarding-copy h1 { font-size: 43px; }
  .home-hero { padding: 55px 0; }
  .home-hero-copy h1 { font-size: 44px; }
  .home-hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .service-promises { grid-template-columns: 1fr; padding: 10px 0; }
  .service-promises > span { min-height: 42px; justify-content: flex-start; padding: 0 10px; border-right: 0; }
  .profile-panel { padding: 25px; grid-template-columns: 1fr; }
  .profile-illustration { display: none; }
  .profile-copy > strong { font-size: 54px; }
  .section-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .quick-section { padding: 55px 0; }
  .quick-card { min-height: 190px; padding: 22px; grid-template-columns: 56px 1fr; }
  .quick-card .line-icon { width: 52px; height: 52px; }
  .category-items { gap: 7px; }
  .category-item { min-height: 125px; padding-inline: 5px; }
  .category-item > span { font-size: 26px; }
  .coverage-strip { grid-template-columns: 1fr 1fr; }
  .coverage-strip > div:nth-child(2) { border-right: 0; }
  .coverage-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--service-line); }
  .coverage-strip > div { padding: 14px; }
  .alternative-panel > div:first-child { align-items: flex-start; flex-direction: column; gap: 5px; }
  .alternative-grid { grid-template-columns: 1fr; }
  .alternative-grid button { min-height: 72px; }
  .fortune-scores > div { grid-template-columns: 82px 1fr 25px; }
  .home-page footer { flex-direction: column; align-items: center; gap: 4px; }
  .compact-type-grid { grid-template-columns: repeat(4, 1fr); }
  .chemistry-empty { padding: 42px 22px; }
  .chemistry-result-heading { align-items: flex-start; }
  .chemistry-result, .profile-result, .lifestyle-result { min-height: 820px; }
  .chemistry-pair { margin-top: 50px; }
  .chemistry-pair strong { font-size: 42px; }
  .chemistry-pair span { font-size: 10px; }
  .chemistry-columns { grid-template-columns: 1fr; }
  .chemistry-basis { grid-template-columns: 1fr 1fr; }
  .chemistry-result { min-height: 1160px; }
  .chemistry-result > h2 { font-size: 29px; }
  .method-weights { grid-template-columns: 1fr 1fr; }
  .profile-result-head h2 { font-size: 68px; }
  .profile-symbol { width: 70px; height: 70px; border-radius: 20px; font-size: 30px; }
  .dimension-list, .profile-guide-grid, .lifestyle-more > div { grid-template-columns: 1fr; }
  .profile-result { min-height: 990px; }
  .lifestyle-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .lifestyle-tabs button { min-width: 0; }
  .lifestyle-result h2 { font-size: 38px; }
}
