:root {
  color-scheme: light;
  --bg: #f5f2e9;
  --surface: #fffdf7;
  --surface-soft: #edf2e6;
  --surface-warm: #e7e2d3;
  --ink: #294133;
  --muted: #667568;
  --line: #dcd7c8;
  --forest: #5e7d68;
  --forest-dark: #294133;
  --leaf: #a8c19e;
  --sand: #e7e2d3;
  --cream: #f5f2e9;
  --coral: #d86a4a;
  --violet: #7c7193;
  --shadow: 0 24px 70px rgba(41, 65, 51, 0.14);
  --shadow-soft: 0 16px 44px rgba(41, 65, 51, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(168, 193, 158, 0.28),
      transparent 29%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(231, 226, 211, 0.74),
      transparent 32%
    ),
    linear-gradient(180deg, #fffdf7 0%, var(--bg) 46%, #eef4e9 100%);
  color: var(--ink);
  font-family:
    Inter,
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(90deg, rgba(41, 65, 51, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(41, 65, 51, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

body::after {
  z-index: -1;
  opacity: 0.18;
  background-image: radial-gradient(
    circle,
    rgba(41, 65, 51, 0.18) 0 0.7px,
    transparent 0.8px
  );
  background-size: 11px 11px;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 20px;
  /* background: #f5f2e9; */
  background: #fbf9f6;
  border-bottom: 1px solid rgba(220, 215, 200, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.test-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--forest-dark);
  font-weight: 800;
}

.brand-logo {
  display: block;
  /* width: 28px;
  height: 28px; */
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

main {
  overflow: hidden;
}

.hero,
.result-section,
.body-guide {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: 56px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 10px;
  color: var(--forest-dark);
  font-size: clamp(58px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--forest);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 800;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button.primary {
  border-color: var(--forest-dark);
  background: linear-gradient(135deg, var(--forest-dark), #173526);
  color: #fff;
  box-shadow: 0 12px 28px rgba(41, 65, 51, 0.18);
}

.button.ghost {
  background: rgba(255, 253, 247, 0.66);
}

.hero-panel,
.result-card,
.result-share-card,
.coach-note,
.body-card,
.test-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.dashboard-panel,
.result-card,
.result-share-card,
.body-card,
.test-panel {
  backdrop-filter: blur(18px);
}

.dashboard-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(255, 253, 247, 0.93),
      rgba(245, 242, 233, 0.82)
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(168, 193, 158, 0.2),
      transparent 30%
    );
}

.dashboard-panel::before {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    linear-gradient(90deg, rgba(41, 65, 51, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(41, 65, 51, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
}

.dashboard-panel > * {
  position: relative;
}

.panel-topline,
.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.panel-topline {
  margin-bottom: 14px;
}

.panel-topline strong,
.body-type-badge {
  padding: 4px 8px;
  border: 1px solid rgba(94, 125, 104, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.68);
  color: var(--forest-dark);
  font-size: 12px;
}

.preview-card {
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(237, 242, 230, 0.96),
    rgba(231, 226, 211, 0.78)
  );
  border: 1px solid rgba(94, 125, 104, 0.14);
}

.preview-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.preview-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.08;
}

.preview-bars,
.percentages {
  display: grid;
  gap: 14px;
}

.preview-bars {
  margin-top: 22px;
}

.mini-insight {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(66, 95, 82, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-insight span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-insight strong {
  display: block;
  line-height: 1.35;
}

.routine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.routine-chips span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(41, 65, 51, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.preview-bars div,
.percent-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.preview-bars i,
.percent-row i,
.progress i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--tone, var(--forest)) var(--value),
    #e4e9df var(--value)
  );
}

.test-section,
.result-section,
.body-guide {
  scroll-margin-top: 84px;
  padding: 54px 0;
}

.test-section {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100svh - 68px);
  padding: 76px 16px;
}

.test-panel {
  width: min(760px, 100%);
  padding: 30px;
}

.test-panel .section-head {
  margin-bottom: 22px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9df;
}

.progress i {
  height: 100%;
  background: var(--forest);
}

.option-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.option {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.option:hover {
  border-color: var(--forest);
  box-shadow: 0 12px 30px rgba(41, 65, 51, 0.13);
  transform: translateY(-1px);
}

.test-controls {
  justify-content: space-between;
  gap: 12px;
}

.result-hero {
  margin-bottom: 24px;
  padding: 32px;
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 92% 18%,
      rgba(168, 193, 158, 0.22),
      transparent 24%
    ),
    linear-gradient(135deg, var(--forest-dark), #153425);
  color: #fff;
}

.result-hero .eyebrow,
.result-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.result-dashboard,
.body-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.result-dashboard {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.result-card,
.result-share-card,
.coach-note,
.body-card {
  padding: 22px;
}

.result-card p,
.result-share-card p,
.coach-note p,
.body-card p {
  color: var(--muted);
}

.result-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-card li {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 700;
}

.score-card,
.routine-card,
.food-card {
  grid-row: span 2;
}

.focus-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(41, 65, 51, 0.97), rgba(94, 125, 104, 0.9)),
    var(--forest-dark);
  color: #fff;
}

.focus-card .card-kicker,
.focus-card p {
  color: rgba(255, 255, 255, 0.76);
}

.focus-card h3 {
  max-width: 520px;
  margin: 18px 0 16px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  background: linear-gradient(
    180deg,
    rgba(255, 253, 247, 0.94),
    rgba(245, 242, 233, 0.9)
  );
}

.metric-card h3,
.routine-card h3 {
  margin-top: 6px;
}

.routine-card {
  background: linear-gradient(
    135deg,
    rgba(255, 253, 247, 0.92),
    rgba(231, 226, 211, 0.78)
  );
}

.routine-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.routine-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 2px 12px;
  padding: 12px;
  border: 1px solid rgba(94, 125, 104, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
}

.routine-item span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--forest-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.routine-item strong {
  line-height: 1.25;
}

.routine-item p {
  margin: 0;
  font-size: 14px;
}

.food-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.percent-row {
  grid-template-columns: 64px 42px 1fr;
}

.ad-slot {
  width: 100%;
  margin: 22px 0;
  padding: 12px 0;
  border-top: 1px solid rgba(102, 117, 104, 0.18);
  border-bottom: 1px solid rgba(102, 117, 104, 0.18);
}

.ad-slot > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(102, 117, 104, 0.74);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.ad-slot:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}

.result-share-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 22px;
  align-items: center;
  margin-top: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 253, 247, 0.96),
      rgba(237, 242, 230, 0.86)
    ),
    radial-gradient(
      circle at 94% 16%,
      rgba(216, 106, 74, 0.13),
      transparent 30%
    );
}

.body-guide-ad {
  margin: 28px 0 0;
}

.result-share-card h3 {
  margin: 10px 0 8px;
  color: var(--forest-dark);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.result-share-card .card-kicker {
  display: inline-flex;
  justify-content: flex-start;
}

.share-card-bars {
  display: grid;
  gap: 10px;
}

.share-card-bars span {
  display: grid;
  grid-template-columns: 64px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.share-card-bars i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--tone, var(--forest)) var(--value),
    #e4e9df var(--value)
  );
}

.share-card-bars b,
.share-card-bars strong {
  color: var(--forest-dark);
}

.coach-note {
  margin: 16px 0 20px;
  background: var(--surface-warm);
}

.safety-note {
  max-width: 760px;
  margin: 0 auto 4px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid rgba(220, 215, 200, 0.86);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-dark);
}

.site-footer p {
  max-width: 720px;
  margin: 0 auto;
}

.body-guide {
  padding-bottom: 90px;
}

.body-guide .section-head {
  max-width: 860px;
}

.body-card {
  --body-tone: var(--forest);
  --body-tint: #f3f6ef;
  --body-tint-strong: #e8efe3;
  padding: 26px;
  background: linear-gradient(
    145deg,
    rgba(255, 253, 247, 0.96),
    rgba(245, 242, 233, 0.84)
  );
}

.body-theme-taeyang {
  --body-tone: #294133;
  --body-tint: #f1f5ec;
  --body-tint-strong: #dfead7;
}

.body-theme-soyang {
  --body-tone: var(--coral);
  --body-tint: #fff0ea;
  --body-tint-strong: #f4d2c4;
}

.body-theme-taeeum {
  --body-tone: #5e7d68;
  --body-tint: #eef4e9;
  --body-tint-strong: #d9e7d0;
}

.body-theme-soeum {
  --body-tone: var(--violet);
  --body-tint: #f2eef5;
  --body-tint-strong: #ded8e8;
}

.body-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.body-card-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: var(--body-tone);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.body-card-head h3 img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.body-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

figure {
  margin: 0;
  padding: 14px 14px 10px;
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 50% 94%,
      var(--body-tint-strong),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), var(--body-tint));
  border: 1px solid rgba(255, 253, 247, 0.82);
  text-align: center;
}

figure img {
  width: 100%;
  height: clamp(260px, 24vw, 390px);
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(36, 48, 44, 0.13));
}

figcaption {
  margin-top: 10px;
  color: #3d4540;
  font-size: 15px;
  font-weight: 700;
}

.body-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--body-tone);
  font-size: 20px;
  line-height: 1.35;
}

.body-card p {
  max-width: 620px;
  margin-bottom: 0;
  color: #4f5752;
  font-size: 16px;
}

.body-type-badge {
  background: color-mix(in srgb, var(--body-tint-strong) 62%, #fffdf7);
  color: #4a4039;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 62px;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 44px;
  }

  .result-dashboard,
  .body-grid,
  .result-share-card {
    grid-template-columns: 1fr;
  }

  .score-card,
  .routine-card,
  .food-card {
    grid-row: auto;
  }

  .test-panel {
    width: min(100% - 24px, 760px);
    padding: 22px;
  }

  .focus-card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero,
  .result-section,
  .body-guide,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .test-controls {
    flex-direction: column;
  }

  .body-images {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .body-card {
    padding: 20px;
  }

  .body-card-head h3 {
    font-size: 26px;
  }

  .body-card-head h3 img {
    width: 28px;
    height: 28px;
  }

  figure {
    border-radius: 14px;
    padding: 10px 8px 8px;
  }

  figure img {
    height: clamp(210px, 58vw, 300px);
  }

  figcaption {
    font-size: 13px;
  }

  .body-card strong {
    font-size: 18px;
  }

  .routine-item {
    grid-template-columns: 1fr;
  }

  .routine-item span {
    grid-row: auto;
    width: auto;
    height: auto;
    padding: 5px 8px;
    border-radius: 999px;
    justify-self: start;
  }
}
