@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;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0d1226;
    --paper: #161b34;
    --ink: #e7e9f5;
    --muted: #9ba0c2;
    --line: rgba(231, 233, 245, .14);
    --shadow: 0 18px 55px rgba(0, 0, 0, .5);
  }
}

* { 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; }

.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font: 500 13px "DM Sans";
}
.install-banner.hidden { display: none; }
.install-banner p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.install-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.install-banner-actions button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font: 700 12px "DM Sans";
  cursor: pointer;
}
#installBannerAction { background: var(--coral); color: #fff; }
#installBannerDismiss { background: rgba(255,255,255,.14); color: #fff; }
.install-banner-ios #installBannerAction { cursor: default; }

.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-progress {
  display: inline-flex;
  min-width: 64px;
  margin-top: 4px;
  padding: 6px 10px;
  justify-content: center;
  border-radius: 999px;
  color: var(--navy);
  background: #e9e5fa;
  font: 800 11px "DM Sans";
  letter-spacing: .06em;
}
.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); }
.quiz-navigation { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.quiz-navigation .full-button { width: 100%; }
.quiz-back-button {
  min-width: 112px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: white;
}
.quiz-back-button[hidden] { display: none; }
.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 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.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; }
.type-estimate-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.estimate-type-button {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--navy);
  border-radius: 12px;
  color: var(--navy);
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.estimate-type-button:hover { color: white; background: var(--navy); }
.estimate-type-button:disabled { opacity: .42; cursor: not-allowed; }
.chemistry-estimate-button { margin: 0 0 12px; }
.observer-result-note {
  margin: 10px 0 0;
  padding: 8px 11px;
  border-radius: 10px;
  color: #7d4439;
  background: #ffe7df;
  font-size: 10px;
  line-height: 1.45;
}
.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); }
.fortune-result { position: relative; transform-origin: 50% 55%; }
.fortune-result::before {
  content: "✦";
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background:
    radial-gradient(circle at 50% 44%, rgba(255,213,77,.25), transparent 24%),
    linear-gradient(145deg, #7163b8, #23285f 70%);
  font-size: 92px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.fortune-result.is-fortune-waiting {
  animation: none;
}
.fortune-result.is-fortune-waiting::before {
  opacity: 1;
  visibility: visible;
  animation: fortuneWaitingBreath 3s ease-in-out infinite alternate;
}
.fortune-result.is-gathering {
  animation: fortuneGather var(--fortune-gather-duration, 1200ms) cubic-bezier(.35,.05,.65,.95) both;
}
.fortune-result.is-gathering::before {
  opacity: 1;
  visibility: visible;
  animation: fortuneOrbGather var(--fortune-gather-duration, 1200ms) ease-in both;
}
.fortune-result.is-revealing::before {
  visibility: visible;
  animation: fortuneCoverDissolve .55s ease-out both;
}
.fortune-result.is-reveal-preparing > * { opacity: 0; }
.fortune-result.is-revealing > .card-kicker,
.fortune-result.is-revealing > .fortune-orb,
.fortune-result.is-revealing > .fortune-date,
.fortune-result.is-revealing > h2,
.fortune-result.is-revealing > .fortuneMessage,
.fortune-result.is-revealing > .fortune-scores,
.fortune-result.is-revealing > .fortune-details,
.fortune-result.is-revealing > .card-footer {
  opacity: 0;
  animation: fortuneContentReveal .32s ease-out forwards;
}
.fortune-result.is-revealing > .card-kicker { animation-delay: .08s; }
.fortune-result.is-revealing > .fortune-orb { animation-delay: .12s; }
.fortune-result.is-revealing > .fortune-date { animation-delay: .18s; }
.fortune-result.is-revealing > h2 {
  animation: fortuneInkTitle .7s cubic-bezier(.2,.8,.2,1) .28s forwards;
}
.fortune-result.is-revealing > .fortuneMessage { animation: none; opacity: 1; }
.fortune-result.is-revealing > .fortuneMessage span {
  display: block;
  opacity: 0;
  animation: fortuneLineUp .38s ease-out forwards;
}
.fortune-result.is-revealing > .fortuneMessage span:nth-child(1) { animation-delay: .58s; }
.fortune-result.is-revealing > .fortuneMessage span:nth-child(2) { animation-delay: .72s; }
.fortune-result.is-revealing > .fortuneMessage span:nth-child(3) { animation-delay: .86s; }
.fortune-result.is-revealing > .fortune-scores { animation-delay: .82s; }
.fortune-result.is-revealing > .fortune-details { animation: fortuneDetailPop .35s cubic-bezier(.2,1.35,.4,1) 1.02s forwards; }
.fortune-result.is-revealing > .card-footer { animation-delay: 1.10s; }
.fortune-result.is-revealing .fortune-scores b {
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}
@keyframes fortuneWaitingBreath {
  from { transform: rotate(-.5deg) scale(.97); filter: drop-shadow(0 0 10px rgba(255,213,77,.30)); }
  to { transform: rotate(.5deg) scale(1.04); filter: drop-shadow(0 0 34px rgba(255,213,77,.78)); }
}
@keyframes fortuneGather {
  0% { transform: translate(0,0) rotate(0); }
  40% { transform: translate(.3px,-.2px) rotate(.04deg); }
  70% { transform: translate(-.8px,.5px) rotate(-.09deg); }
  86% { transform: translate(1.4px,-.8px) rotate(.14deg); }
  94% { transform: translate(-1.8px,1px) rotate(-.18deg); }
  100% { transform: translate(0,0) rotate(0); }
}
@keyframes fortuneOrbGather {
  0% { opacity: 1; transform: scale(.96); filter: drop-shadow(0 0 10px rgba(255,213,77,.30)); }
  72% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 42px rgba(255,213,77,.82)); }
  100% { opacity: 1; transform: scale(1.13); filter: drop-shadow(0 0 70px rgba(255,213,77,1)); }
}
@keyframes fortuneCoverDissolve {
  0%, 25% { opacity: 1; transform: scale(1.13); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.2); filter: blur(12px); }
}
@keyframes fortuneContentReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fortuneInkTitle {
  from { opacity: 0; filter: blur(8px); letter-spacing: .3em; transform: translateY(4px); }
  to { opacity: 1; filter: blur(0); letter-spacing: -.05em; transform: translateY(0); }
}
@keyframes fortuneLineUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fortuneDetailPop {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@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; }
  .type-estimate-control { grid-template-columns: 1fr; }
  .estimate-type-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .fortune-result.is-reveal-preparing > *,
  .fortune-result.is-revealing > * { opacity: 1 !important; transform: none !important; }
  .fortune-result::before { display: 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; }
.home-streak-badge {
  display: inline;
  margin-left: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--navy);
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  font: 700 10px "DM Sans";
  white-space: nowrap;
}
.home-streak-badge.hidden { display: none; }
.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; }
.site-footer,
.home-page footer {
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #77746d;
}
.site-footer strong,
.home-page footer strong { color: var(--navy); font-family: "DM Sans"; }
.site-footer nav,
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.site-footer a,
.footer-links a { font-size: 13px; font-weight: 700; }
.site-footer a:hover,
.site-footer a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--coral); outline: none; text-decoration: underline; text-underline-offset: 4px; }

.legal-page { background: #f5f7fa; }
.legal-shell { width: min(820px, calc(100% - 40px)); margin: 70px auto 100px; }
.legal-shell > h1 { margin: 12px 0 20px; color: var(--navy); font-size: clamp(42px, 7vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
.legal-lead { max-width: 720px; margin: 0 0 45px; color: #505666; font-size: 18px; line-height: 1.85; }
.legal-meta { margin: -8px 0 32px; color: var(--muted); font-size: 13px; }
.legal-card { margin-top: 16px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); }
.legal-card h2 { margin: 0 0 14px; color: var(--navy); font-size: 20px; letter-spacing: -.025em; }
.legal-card p, .legal-card li { color: #4e5565; font-size: 15px; line-height: 1.85; }
.legal-card p { margin: 0; }
.legal-card p + p { margin-top: 14px; }
.legal-card ul { margin: 0; padding-left: 20px; }
.legal-card li + li { margin-top: 5px; }
.legal-card a { color: #c74431; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-card code { padding: 2px 6px; border-radius: 5px; background: #eef1f5; font-family: "DM Sans", monospace; font-size: 13px; }
.legal-note { border-left: 5px solid var(--coral); }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.contact-card .primary-link { flex: 0 0 auto; color: white; text-decoration: none; }
.contact-label { color: var(--coral); font: 800 10px "DM Sans"; letter-spacing: .14em; }
.error-shell { min-height: calc(100vh - 260px); display: grid; align-content: center; }
.error-code { margin: 0 0 12px; color: var(--coral); font: 800 clamp(64px, 12vw, 110px)/.82 "DM Sans", sans-serif; letter-spacing: -.07em; }
.error-shell .legal-lead { margin-bottom: 30px; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.error-actions .primary-link { color: white; text-decoration: none; }
.error-actions .ghost-button { min-height: 54px; padding: 0 22px; }

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  left: 22px;
  max-width: 760px;
  margin: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(16,28,76,.18);
  border-radius: 18px;
  color: var(--navy);
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 55px rgba(16,28,76,.2);
  backdrop-filter: blur(12px);
}
.consent-banner strong { display: block; margin-bottom: 5px; font-size: 15px; }
.consent-banner p { margin: 0; color: #565d6c; font-size: 12px; line-height: 1.6; }
.consent-banner a { color: var(--coral); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { flex: 0 0 auto; display: flex; gap: 7px; }
.consent-actions button { min-height: 40px; padding: 0 14px; border: 1px solid var(--navy); border-radius: 9px; background: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.consent-actions button:last-child { color: white; background: var(--navy); }

.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; }
.related-services {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.related-services-heading {
  margin-bottom: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.related-services-heading > div { display: flex; align-items: center; gap: 9px; }
.related-services-heading span { color: var(--coral); font: 800 9px "DM Sans"; letter-spacing: .12em; }
.related-services-heading h2,
.related-services-heading h3 { margin: 0; color: var(--navy); font-size: 17px; }
.related-services-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.related-services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.related-services-list > a {
  min-height: 94px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  background: white;
  transition: border-color .2s ease, transform .2s ease;
}
.related-services-list > a:hover { border-color: var(--navy); transform: translateY(-2px); }
.related-services-list strong { display: block; color: var(--navy); font-size: 14px; }
.related-services-list p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.related-services-list > a > span { flex: 0 0 auto; color: var(--coral); font-size: 10px; font-weight: 800; white-space: nowrap; }
.legal-related-services { margin-top: 16px; }
.couple-result-section { margin-top: 26px; }
.couple-summary-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.couple-summary-list > a { min-height: 156px; }
.couple-summary-list small {
  display: block;
  margin-bottom: 7px;
  color: var(--coral);
  font: 800 9px "DM Sans";
  letter-spacing: .1em;
  text-transform: uppercase;
}
.couple-highlight-badge { color: var(--coral); font-weight: 700; }
.save-toggle {
  width: max-content;
  margin-top: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--muted);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.18);
  font: 700 12px "DM Sans";
  cursor: pointer;
}
.save-toggle.active { border-color: var(--coral); color: var(--coral); background: rgba(255,255,255,.9); }
.gift-title-row .save-toggle { margin: 0; align-self: flex-start; }
.saved-section {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
}
.saved-section-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.saved-section-heading span { color: var(--coral); font: 800 10px "DM Sans"; }
.saved-section-heading h2 { margin: 0; color: var(--navy); font-size: 20px; }
.saved-items-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.saved-items-list article {
  min-height: 142px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  flex-wrap: wrap;
  gap: 8px;
}
.saved-items-list article .secondary-button { flex-shrink: 0; }
.saved-items-list strong { color: var(--navy); font-size: 16px; }
.saved-items-list p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.saved-remove {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--coral);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.saved-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.saved-empty p { margin: 0 0 14px; color: var(--muted); }
.couple-summary-list strong { font-size: 18px; }
.couple-swap-prompt,
.couple-share-bar {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.couple-swap-prompt p { margin: 0; color: var(--navy); font-weight: 700; }
.couple-share-bar > div { min-width: 0; }
.couple-share-bar span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}
.couple-share-actions .share-image-button span { color: #fff; }
.kakao-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #fee500;
  color: #191600;
  padding: 10px 18px;
  font: 700 13px "DM Sans";
  cursor: pointer;
}
.kakao-share-button:hover { background: #f5d900; }
.kakao-share-button.hidden { display: none; }
.couple-share-bar code {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.noscript-notice {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 13px 16px;
  display: block;
  border: 1px solid #e6b451;
  border-radius: 12px;
  color: #604711;
  background: #fff7df;
  font-size: 13px;
  line-height: 1.6;
}
.editorial-section {
  width: min(1120px, calc(100% - 48px));
  margin: 72px auto 96px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}
.home-page .editorial-section { margin-top: 28px; }
.editorial-heading { max-width: 820px; }
.editorial-heading h2 { margin: 8px 0 16px; color: var(--navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.16; letter-spacing: -.045em; }
.editorial-heading > p:last-child { margin: 0; color: #4e5565; font-size: 16px; line-height: 1.85; }
.editorial-grid { margin-top: 34px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.editorial-grid > article, .editorial-faq article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}
.editorial-grid h3, .editorial-faq > h3 { margin: 0 0 14px; color: var(--navy); font-size: 18px; }
.editorial-grid ul { margin: 0; padding-left: 20px; color: #4e5565; }
.editorial-grid li { line-height: 1.7; }
.editorial-grid li + li { margin-top: 8px; }
.editorial-grid nav { display: grid; gap: 7px; }
.editorial-grid nav a {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
}
.editorial-grid nav a:last-child { border-bottom: 0; }
.editorial-grid nav span { color: var(--coral); }
.editorial-faq { margin-top: 34px; }
.editorial-faq > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.editorial-faq h4 { margin: 0 0 10px; color: var(--navy); font-size: 15px; line-height: 1.45; }
.editorial-faq p { margin: 0; color: #555d6c; font-size: 13px; line-height: 1.72; }
.editorial-source {
  margin-top: 14px;
  padding: 20px 22px;
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: #fff5f1;
}
.editorial-source strong { color: var(--navy); font-size: 13px; }
.editorial-source p { margin: 7px 0 0; color: #5b5e69; font-size: 12px; line-height: 1.7; }
.type-faq-section { padding: 74px 0; border-top: 1px solid var(--line); }
.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; }
  .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; }
  .related-services-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .related-services-list { grid-template-columns: 1fr; }
  .related-services-list > a { min-height: 84px; }
  .couple-summary-list > a { min-height: 130px; }
  .saved-items-list { grid-template-columns: 1fr; }
  .saved-items-list article { min-height: 120px; }
  .couple-swap-prompt,
  .couple-share-bar { align-items: stretch; flex-direction: column; }
  .couple-swap-prompt button,
  .couple-share-bar button { width: 100%; }
  .quiz-navigation { grid-template-columns: 1fr; }
  .quiz-back-button { order: 2; width: 100%; }
  .editorial-section { width: calc(100% - 28px); margin: 46px auto 64px; padding: 28px 20px; border-radius: 18px; }
  .editorial-heading h2 { font-size: 31px; }
  .editorial-heading > p:last-child { font-size: 15px; }
  .editorial-grid, .editorial-faq > div { grid-template-columns: 1fr; }
  .editorial-grid > article, .editorial-faq article { padding: 20px; }
  .type-faq-section { padding: 54px 0; }
  .fortune-scores > div { grid-template-columns: 82px 1fr 25px; }
  .site-footer,
  .home-page footer { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .legal-shell { width: calc(100% - 28px); margin-top: 45px; }
  .legal-card { padding: 24px 22px; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .consent-banner { right: 12px; bottom: 12px; left: 12px; padding: 17px; align-items: stretch; flex-direction: column; gap: 14px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .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; }
}

/* Static MBTI type landing pages */
.type-landing-page { background: #f5f7fa; }
.type-landing-header { width: min(1180px, calc(100% - 48px)); }
.type-language-links { display: flex; align-items: center; gap: 7px; font: 800 11px "DM Sans", sans-serif; }
.type-language-links a { color: var(--muted); }
.type-language-links a[aria-current="page"] { color: var(--coral); }
.type-landing-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.type-landing-hero { position: relative; padding: 100px 0 90px; border-bottom: 1px solid var(--line); }
.type-landing-code {
  position: absolute;
  right: 0;
  top: 35px;
  color: rgba(16,28,76,.045);
  font: 900 clamp(120px, 22vw, 280px)/.8 "DM Sans", sans-serif;
  letter-spacing: -.1em;
  pointer-events: none;
}
.type-landing-hero h1 {
  position: relative;
  max-width: 850px;
  margin: 18px 0 34px;
  color: var(--navy);
  font-size: clamp(48px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.07em;
}
.type-intro { position: relative; max-width: 790px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.type-intro p { margin: 0; color: #4f5664; font-size: 16px; line-height: 1.82; }
.type-insight-section, .type-preview-section, .type-module-section, .type-pair-section, .type-explore-section { padding: 82px 0; border-bottom: 1px solid var(--line); }
.type-section-heading { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.type-section-heading > div { display: flex; align-items: center; gap: 13px; }
.type-section-heading > div > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: var(--navy); font: 800 10px "DM Sans"; }
.type-section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(26px, 4vw, 38px); letter-spacing: -.05em; }
.type-section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: right; }
.type-preview-columns { display: grid; grid-template-columns: 2fr 3fr; gap: 22px; }
.type-cognitive-stack {
  padding: 28px;
  border-radius: 22px;
  color: white;
  background: var(--navy);
}
.type-cognitive-stack > h3 { margin: 0 0 18px; color: var(--yellow); font-size: 14px; }
.type-cognitive-stack > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.type-cognitive-stack article { padding: 17px; border-radius: 14px; background: rgba(255,255,255,.08); }
.type-cognitive-stack article > span { color: #a9e0ca; font: 800 8px "DM Sans"; letter-spacing: .08em; }
.type-cognitive-stack article > strong { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 14px; }
.type-cognitive-stack article > strong b {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--navy);
  background: white;
  font: 900 11px "DM Sans";
}
.type-cognitive-stack article p { margin: 9px 0 0; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.55; }
.type-insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.type-insight-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.type-insight-grid span { color: var(--coral); font: 900 9px "DM Sans"; letter-spacing: .1em; }
.type-insight-grid p { margin: 11px 0 0; color: #4f5868; font-size: 13px; line-height: 1.65; }
.type-preview-group { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.type-preview-group h3 { margin: 0 0 14px; color: var(--navy); font-size: 17px; }
.type-preview-list { display: grid; gap: 8px; }
.type-preview-list a { min-height: 112px; padding: 18px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; border-radius: 14px; color: var(--navy); background: #f7f8fb; transition: transform .2s ease, background .2s ease; }
.type-preview-list a:hover, .type-preview-list a:focus-visible { outline: none; transform: translateY(-2px); background: #fff4ef; }
.type-preview-list a > span { color: var(--coral); font: 800 18px "DM Sans"; }
.type-preview-list strong { font-size: 16px; }
.type-preview-list small { margin-left: 7px; color: var(--muted); font-size: 10px; }
.type-preview-list p { margin: 7px 0 0; color: #555d6a; font-size: 12px; line-height: 1.55; }
.type-module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-module-grid a { position: relative; min-height: 210px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; color: var(--navy); background: white; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.type-module-grid a:hover, .type-module-grid a:focus-visible { outline: none; transform: translateY(-4px); border-color: var(--coral); box-shadow: 0 16px 34px rgba(16,28,76,.08); }
.type-module-grid a > span { color: var(--coral); font: 800 10px "DM Sans"; }
.type-module-grid strong { margin-top: 42px; font-size: 21px; }
.type-module-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.type-module-grid i { position: absolute; right: 22px; bottom: 19px; color: var(--coral); font-style: normal; font-size: 20px; }
.type-pair-card {
  display: block;
  border-radius: 20px;
  padding: 24px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.type-pair-card:hover, .type-pair-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.type-pair-card strong { display: block; margin-bottom: 8px; font: 800 20px "DM Sans"; }
.type-pair-card p { margin: 0 0 12px; color: #c7cbe0; line-height: 1.65; }
.type-pair-card span { color: var(--coral); font-weight: 700; }
.type-explore-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.type-explore-grid a { min-height: 92px; padding: 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: white; }
.type-explore-grid a:hover, .type-explore-grid a:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.type-explore-grid strong { font: 800 17px "DM Sans"; }
.type-explore-grid span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.home-type-guides { padding: 26px 0 70px; }
.home-type-guides header { margin-bottom: 15px; display: flex; justify-content: space-between; gap: 20px; color: var(--navy); }
.home-type-guides header strong { font-size: 16px; }
.home-type-guides header span { color: var(--muted); font-size: 12px; }
.home-type-guide-links { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.home-type-guide-links a { min-height: 45px; display: grid; place-items: center; border: 1px solid var(--service-line); border-radius: 9px; color: var(--navy); background: white; font: 800 12px "DM Sans"; }
.home-type-guide-links a:hover, .home-type-guide-links a:focus-visible { outline: none; border-color: var(--coral); color: var(--coral); }

@media (max-width: 850px) {
  .type-cognitive-stack > div { grid-template-columns: 1fr 1fr; }
  .type-insight-grid { grid-template-columns: 1fr 1fr; }
  .type-preview-columns { grid-template-columns: 1fr; }
  .type-module-grid { grid-template-columns: 1fr 1fr; }
  .type-explore-grid { grid-template-columns: repeat(3, 1fr); }
  .home-type-guide-links { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .type-landing-header, .type-landing-shell { width: calc(100% - 28px); }
  .type-landing-hero { padding: 70px 0 60px; }
  .type-landing-code { top: 38px; font-size: 105px; }
  .type-landing-hero h1 { margin-top: 13px; font-size: 45px; }
  .type-intro { grid-template-columns: 1fr; gap: 18px; }
  .type-intro p { font-size: 15px; }
  .type-insight-section, .type-preview-section, .type-module-section, .type-pair-section, .type-explore-section { padding: 58px 0; }
  .type-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .type-section-heading > p { text-align: left; }
  .type-preview-group { padding: 18px; }
  .type-cognitive-stack { padding: 18px; }
  .type-cognitive-stack > div, .type-insight-grid { grid-template-columns: 1fr; }
  .type-module-grid { grid-template-columns: 1fr; }
  .type-module-grid a { min-height: 160px; }
  .type-module-grid strong { margin-top: 25px; }
  .type-explore-grid { grid-template-columns: 1fr 1fr; }
  .home-type-guides header { flex-direction: column; gap: 5px; }
}

@media (max-width: 640px) {
  .install-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Fortune start button — user-triggered reveal */
.fortune-result .fortune-start {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 34%;
}
.fortune-result.is-reveal-preparing > .fortune-start { opacity: 1; }
.fortune-start-button {
  min-width: 200px;
  min-height: 52px;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

/* Travel and gift selection shuffle */
.pick-shuffle-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 34px;
  color: var(--navy);
  background: rgba(255,255,255,.94);
  text-align: center;
  pointer-events: none;
}
.pick-shuffle-overlay span { max-width: 520px; font-size: clamp(34px, 8vw, 64px); font-weight: 900; letter-spacing: -.06em; }
.pick-shuffle-overlay small { color: var(--coral); font: 800 10px "DM Sans"; letter-spacing: .18em; }
.share-card.is-shuffling { animation: pickCardShuffle .8s cubic-bezier(.25,.7,.25,1) both; }
@keyframes pickCardShuffle {
  0% { transform: perspective(900px) rotateY(0) scale(1); }
  34% { transform: perspective(900px) rotateY(-7deg) scale(.985); }
  66% { transform: perspective(900px) rotateY(5deg) scale(.992); }
  100% { transform: perspective(900px) rotateY(0) scale(1); }
}

/* Recommendation evidence by owner */
.match-badge strong { display: grid; gap: 1px; }
.match-badge strong span { font-size: 17px; line-height: 1.1; }
.match-badge strong small { font-size: 10px; line-height: 1.1; }
.fit-evidence, .result-context { display: grid; gap: 6px; }
.fit-evidence div, .result-context div {
  display: grid;
  grid-template-columns: minmax(95px, auto) 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(255,255,255,.66);
  font-size: 10px;
}
.fit-evidence div strong, .result-context div strong { color: var(--navy); }
.fit-evidence div strong b, .result-context div strong b { color: var(--coral); font: inherit; }
.fit-evidence div span, .result-context div span { padding: 0; border: 0; background: transparent; font-weight: 700; }
.fit-evidence div::before { content: none; }
.fit-evidence div span::before { content: none; }
.rotation-note {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  color: rgba(16,28,76,.65);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
.gift-result { padding-bottom: 112px; }
.lifestyle-result .rotation-note { margin-top: 14px; color: #5d6777; }
.lifestyle-orbit {
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1px;
  font-size: 28px;
}
.lifestyle-orbit small { font: 800 8px "DM Sans"; letter-spacing: .06em; }

/* Deep MBTI insights */
.chemistry-result,
.profile-result,
.travel-result,
.lifestyle-result { padding-bottom: 112px; }
.chemistry-insight-lead {
  position: relative;
  z-index: 2;
  margin: 0 0 30px;
  padding: 22px 24px;
  border-left: 4px solid var(--coral);
  border-radius: 0 16px 16px 0;
  color: var(--navy);
  background: rgba(255,255,255,.68);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}
.chemistry-insight-section,
.chemistry-score-panel,
.profile-functions {
  position: relative;
  z-index: 2;
}
.chemistry-insight-section { margin-top: 27px; }
.insight-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.insight-section-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font: 800 8px "DM Sans";
}
.insight-section-heading h2,
.insight-section-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -.03em;
}
.chemistry-insight-axes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chemistry-insight-axis {
  padding: 16px;
  border: 1px solid rgba(16,28,76,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.68);
}
.chemistry-insight-axis > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chemistry-insight-axis > div span { color: var(--muted); font-size: 10px; font-weight: 800; }
.chemistry-insight-axis em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #6252a8;
  background: #eeeafd;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.chemistry-insight-axis.complementary em { color: #a34d3f; background: #ffe6df; }
.chemistry-insight-axis > strong {
  display: block;
  margin-top: 13px;
  font: 800 18px "DM Sans";
}
.chemistry-insight-axis > strong i { color: var(--coral); font-style: normal; }
.chemistry-insight-axis p { margin: 8px 0 0; color: #4f5a70; font-size: 11px; line-height: 1.55; }
.chemistry-function-grid,
.chemistry-tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chemistry-function-card,
.chemistry-deep-tip {
  padding: 17px;
  border-radius: 15px;
  background: var(--navy);
  color: white;
}
.chemistry-function-card > span,
.chemistry-deep-tip > strong {
  color: var(--yellow);
  font: 800 9px "DM Sans";
  letter-spacing: .09em;
}
.chemistry-function-card > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 15px;
}
.chemistry-function-card > strong b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--navy);
  background: white;
  font: 900 12px "DM Sans";
}
.chemistry-function-card p,
.chemistry-deep-tip p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.55; }
.chemistry-deep-tip > div { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.chemistry-deep-tip > div span { color: #a9e0ca; font: 800 8px "DM Sans"; letter-spacing: .1em; }
.chemistry-score-panel {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(16,28,76,.15);
}
.chemistry-score-panel > h2 { margin: 8px 0 7px; font-size: 31px; letter-spacing: -.05em; }

.travel-pair-insight {
  margin-top: 12px;
  border: 1px solid rgba(16,28,76,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.travel-pair-insight summary {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
}
.travel-pair-insight > div { padding: 0 14px 14px; }
.travel-style-people { display: grid; gap: 8px; }
.travel-style-people p,
.travel-pair-insight > div > p {
  margin: 0;
  color: #4d576d;
  font-size: 10px;
  line-height: 1.55;
}
.travel-style-people strong,
.travel-pair-insight > div > p strong {
  display: block;
  margin-bottom: 2px;
  color: var(--coral);
  font: 900 9px "DM Sans";
}
.travel-style-differences { display: grid; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(16,28,76,.1); }
.travel-style-differences p { margin: 0; color: #4d576d; font-size: 10px; line-height: 1.55; }
.travel-style-differences span { display: inline-block; margin-right: 7px; color: var(--navy); font-weight: 900; }

.gift-insight {
  position: relative;
  z-index: 2;
  margin: -7px 0 15px;
  padding: 12px 14px;
  border-left: 3px solid var(--coral);
  border-radius: 0 10px 10px 0;
  color: #334844;
  background: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.profile-functions { margin-top: 18px; }
.profile-function-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-function-stack article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.78);
}
.profile-function-stack article > span { color: var(--muted); font: 800 8px "DM Sans"; letter-spacing: .08em; }
.profile-function-stack article > strong { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; }
.profile-function-stack article > strong b {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--profile-color);
  font: 900 10px "DM Sans";
}
.profile-function-stack article p { margin: 7px 0 0; color: #586174; font-size: 10px; line-height: 1.45; }

@media (max-width: 620px) {
  .chemistry-insight-axes,
  .chemistry-function-grid,
  .chemistry-tip-grid,
  .profile-function-stack { grid-template-columns: 1fr; }
  .chemistry-insight-lead { padding: 18px; font-size: 15px; }
  .chemistry-score-panel > h2 { font-size: 27px; }
}
.share-image-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  font: 700 13px "DM Sans", sans-serif;
  cursor: pointer;
}

.share-image-button:hover {
  background: var(--coral);
}

.couple-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (prefers-color-scheme: dark) {
  .home-page,
  .legal-page,
  .type-landing-page { background: var(--cream); }

  .onboarding-copy h1,
  .home-hero-copy h1,
  .module-hero h1,
  .result-label,
  .section-title-row h2,
  .category-group header h3,
  .editorial-heading h2,
  .home-type-guides header,
  .legal-shell > h1,
  .type-landing-hero h1,
  .type-section-heading h2,
  .site-footer strong,
  .home-page footer strong,
  .language-switch button.active { color: var(--ink); }

  .home-hero-copy > p:not(.eyebrow),
  .service-promises strong,
  .editorial-heading > p:last-child,
  .legal-lead,
  .type-intro p { color: var(--muted); }

  .profile-panel { background: rgba(255,255,255,.9); }
  .type-landing-code { color: rgba(231,233,245,.045); }
  .site-footer { color: var(--muted); }

  .control-panel,
  .profile-panel,
  .type-card,
  .quick-card,
  .category-item,
  .editorial-grid > article,
  .editorial-faq article,
  .legal-card,
  .alternative-panel,
  .related-services,
  .saved-section,
  .score-method,
  .type-insight-grid article,
  .type-preview-group,
  .type-module-grid a,
  .type-explore-grid a {
    --ink: #17203f;
    --muted: #6c6f7e;
    --line: rgba(16, 28, 76, .14);
    color: var(--ink);
  }
}
