/* MoodFit AI shared product system */
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgray-Paperlogy-1Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgrbw-Paperlogy-2ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgrcv-Paperlogy-3Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgrds-Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgrer-Paperlogy-5Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgrg7-Paperlogy-6SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgrhn-Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgrj2-Paperlogy-8ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("../mpwcgr9y-Paperlogy-9Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF7F3;
  --surface: #FFFFFF;
  --surface-soft: #F6F1EA;
  --primary: #B98CFF;
  --primary-deep: #7A4FE8;
  --rose: #F4A7B9;
  --blue: #A9C7FF;
  --coral: #FFB49A;
  --text: #242126;
  --text-2: #6F6875;
  --border: #E8E1DA;
  --success: #5FAE8F;
  --warning: #D99A3D;
  --error: #D96B6B;
  --shadow-soft: 0 18px 44px rgba(82, 62, 48, 0.08);
  --shadow-card: 0 10px 28px rgba(82, 62, 48, 0.055);
  --radius-card: 24px;
  --radius-control: 16px;
  --radius-upload: 28px;
  --radius-pill: 999px;
  --font-body: "Paperlogy", Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Paperlogy", Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max-mobile: 430px;
  --max-desktop: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--surface) 78%, var(--bg)) 48%, var(--bg) 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

button { cursor: pointer; }

img,
svg { display: block; }

.page {
  min-height: 100vh;
  padding-bottom: 96px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max-desktop));
  margin-inline: auto;
}

.mobile-shell {
  width: min(100% - 24px, var(--max-mobile));
  margin: 0 auto;
}

.site-header,
.screen-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(250, 247, 243, 0.82);
  border-bottom: 1px solid rgba(232, 225, 218, 0.72);
}

.site-header .container,
.screen-header .mobile-shell,
.screen-header .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: -0.012em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(135deg, var(--primary-deep), var(--primary) 58%, var(--rose));
  box-shadow: 0 12px 28px rgba(122, 79, 232, 0.20);
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-sub {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-weight: 700;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0 14px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 18px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.004em;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}
.btn:focus-visible,
.seg-option:focus-visible,
.chip:focus-visible,
.choice-card:focus-visible,
.upload-dropzone:focus-visible {
  outline: 4px solid rgba(185, 140, 255, 0.30);
  outline-offset: 3px;
}

.btn-primary {
  color: white;
  background: var(--primary-deep);
  box-shadow: 0 12px 28px rgba(122, 79, 232, 0.20);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary-deep), var(--primary) 18%);
  box-shadow: 0 14px 32px rgba(122, 79, 232, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(185, 140, 255, 0.46);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}

.btn-danger {
  color: var(--error);
  background: rgba(217, 107, 107, 0.09);
  border-color: rgba(217, 107, 107, 0.18);
}

.btn[aria-busy="true"] {
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.btn[aria-busy="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.btn.is-complete {
  color: white;
  background: var(--success);
  border-color: var(--success);
}

.hero {
  display: grid;
  gap: 40px;
  padding: 44px 0 64px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.korean-title {
  margin: 0;
  font-size: clamp(40px, 10vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 760;
  text-wrap: balance;
}

.korean-title--launcher {
  max-width: 760px;
  font-size: clamp(44px, 5.2vw, 67px);
  line-height: 1.08;
  letter-spacing: -0.034em;
  font-weight: 760;
  text-align: left;
}

.korean-title--launcher span {
  display: block;
}

.korean-title--stacked span {
  display: block;
}

.section-title,
.screen-title {
  margin: 0;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.13;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.screen-title {
  font-size: clamp(28px, 8vw, 38px);
}

.lead {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: clamp(17px, 3.8vw, 21px);
  line-height: 1.7;
  letter-spacing: -0.006em;
  text-wrap: pretty;
}

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

.action-row--header {
  margin-top: 0;
}

.hero-art {
  position: relative;
  min-height: 520px;
}

.phone-preview {
  width: min(100%, 390px);
  min-height: 520px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72)),
    linear-gradient(135deg, rgba(185,140,255,0.24), rgba(244,167,185,0.16));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.preview-screen {
  height: 100%;
  min-height: 486px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid rgba(232,225,218,0.84);
  padding: 20px;
  overflow: hidden;
}

.portrait-token {
  height: 182px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.86) 0 25%, transparent 26%),
    radial-gradient(circle at 50% 76%, rgba(255,255,255,0.80) 0 32%, transparent 33%),
    linear-gradient(145deg, rgba(185,140,255,0.34), rgba(244,167,185,0.30), rgba(169,199,255,0.28));
  border: 1px solid rgba(255,255,255,0.84);
}

.floating-card,
.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 225, 218, 0.86);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.result-card,
.report-section,
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.floating-card {
  position: absolute;
  padding: 14px 16px;
  min-width: 190px;
  color: var(--text);
  backdrop-filter: blur(10px);
}

.floating-card strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.floating-card span {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.float-1 { top: 26px; left: 0; }
.float-2 { top: 156px; right: 0; }
.float-3 { bottom: 104px; left: 8px; }
.float-4 { bottom: 22px; right: 18px; }

.mini-metric {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(232, 225, 218, 0.72);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary), var(--rose));
  width: var(--value, 50%);
  transition: width 280ms var(--ease);
}

.section {
  padding: 64px 0;
}

.grid-3,
.grid-2,
.report-grid {
  display: grid;
  gap: 16px;
}

.benefit-card,
.screen-card {
  min-height: 160px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.benefit-card h3,
.screen-card h3,
.result-card h3,
.report-section h2,
.panel-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.benefit-card p,
.screen-card p,
.result-card p,
.report-section p,
.panel-card p {
  margin: 10px 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

.flow-label {
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 850;
}

.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-align-start { align-items: start; }

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--primary-deep);
  background: rgba(185, 140, 255, 0.15);
  margin-bottom: 16px;
}

.trust-bar,
.privacy-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(246, 241, 234, 0.82);
  border: 1px solid var(--border);
}

.trust-bar strong,
.privacy-card strong {
  display: block;
  margin-bottom: 2px;
}

.trust-bar p,
.privacy-card p {
  margin: 0;
  color: var(--text-2);
}

.screen-main {
  padding: 26px 0 80px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 22px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 850;
}

.screen-intro {
  margin-bottom: 26px;
}

.screen-intro .lead {
  font-size: 16px;
  margin-top: 10px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(246, 241, 234, 0.88);
  border: 1px solid var(--border);
}

.segmented--gender {
  grid-template-columns: repeat(3, 1fr);
}

.seg-option {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--text-2);
  background: transparent;
  font-weight: 850;
}

.seg-option.is-selected,
.seg-option[aria-pressed="true"] {
  color: var(--primary-deep);
  background: var(--surface);
  border-color: rgba(185, 140, 255, 0.52);
  box-shadow: 0 8px 20px rgba(122, 79, 232, 0.10);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}

.choice-card:hover { transform: translateY(-1px); }

.choice-card.is-selected,
.choice-card[aria-pressed="true"] {
  border-color: rgba(122, 79, 232, 0.58);
  background: linear-gradient(135deg, rgba(185,140,255,0.16), rgba(255,255,255,0.94));
}

.choice-card .check {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--border);
}

.choice-card.is-selected .check,
.choice-card[aria-pressed="true"] .check {
  background: var(--primary-deep);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.status-pill,
.price-badge {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 0 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-2);
  font-weight: 850;
  font-size: 13px;
}

.chip.toggle {
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.chip.toggle:hover { transform: translateY(-1px); }

.chip.is-selected,
.chip[aria-pressed="true"] {
  color: var(--primary-deep);
  border-color: rgba(122,79,232,0.46);
  background: rgba(185,140,255,0.16);
}

.status-pill.success { color: #28785f; background: rgba(95, 174, 143, 0.14); border-color: rgba(95,174,143,0.26); }
.status-pill.warning { color: #965f15; background: rgba(217, 154, 61, 0.14); border-color: rgba(217,154,61,0.28); }
.status-pill.error { color: #a34242; background: rgba(217, 107, 107, 0.14); border-color: rgba(217,107,107,0.26); }
.price-badge { color: var(--primary-deep); background: rgba(185,140,255,0.14); border-color: rgba(122,79,232,0.25); }

.bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 243, 0.88);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(232, 225, 218, 0.76);
}

.bottom-cta .btn {
  width: min(100%, var(--max-mobile));
  margin: 0 auto;
}

.upload-dropzone {
  width: 100%;
  min-height: 260px;
  border: 1.5px dashed rgba(122,79,232,0.38);
  border-radius: var(--radius-upload);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,241,234,0.64)),
    radial-gradient(circle at 50% 0%, rgba(185,140,255,0.16), transparent 44%);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.upload-dropzone[data-state="success"] { border-color: rgba(95,174,143,0.65); }
.upload-dropzone[data-state="warning"] { border-color: rgba(217,154,61,0.70); }
.upload-dropzone[data-state="error"] { border-color: rgba(217,107,107,0.70); }
.upload-dropzone[data-state="uploading"] .upload-icon { animation: pulse 900ms var(--ease) infinite alternate; }

.upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--primary-deep);
  background: rgba(185, 140, 255, 0.16);
}

.upload-title {
  display: block;
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.upload-meta {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 750;
}

.upload-preview {
  margin: 0;
  padding: 14px;
  display: grid;
  gap: 10px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.upload-preview[hidden] {
  display: none;
}

.upload-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface-soft);
}

.upload-preview figcaption {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
}

.guide-grid {
  display: grid;
  gap: 12px;
}

.guide-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.guide-card h3 { margin: 0 0 12px; font-size: 18px; }
.guide-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--text-2); }
.guide-card li { display: flex; gap: 8px; align-items: center; }

.status-stack {
  display: grid;
  gap: 8px;
}

.status-row {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 740;
}

.status-row.is-active {
  display: flex;
  color: var(--text);
  border-color: rgba(122,79,232,0.35);
  box-shadow: var(--shadow-card);
}

.loading-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(232,225,218,0.86);
  box-shadow: var(--shadow-soft);
}

.progress-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background:
    conic-gradient(var(--primary-deep) var(--loading, 72%), rgba(232,225,218,0.68) 0);
  position: relative;
}

.progress-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: var(--surface);
}

.progress-ring strong {
  position: relative;
  z-index: 1;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.loading-steps {
  display: grid;
  gap: 10px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(246,241,234,0.70);
  color: var(--text-2);
  font-weight: 760;
}

.loading-step.is-done,
.loading-step.is-active {
  background: rgba(185,140,255,0.14);
  color: var(--text);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.is-done .dot,
.is-active .dot { background: var(--primary-deep); }
.is-active .dot { animation: pulse 900ms var(--ease) infinite alternate; }

.report-hero {
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(185,140,255,0.20), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(169,199,255,0.18), transparent 34%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.report-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(31px, 8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 780;
  text-wrap: balance;
}

.note {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.result-card {
  padding: 22px;
  min-height: 210px;
}

.result-label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 850;
}

.result-value {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 820;
  letter-spacing: -0.024em;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.swatch {
  min-width: 66px;
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}

.swatch::before {
  content: "";
  height: 34px;
  border-radius: 13px;
  background: var(--swatch);
  border: 1px solid rgba(36,33,38,0.08);
}

.meter-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.meter {
  display: grid;
  gap: 6px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 850;
}

.upsell {
  padding: 26px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(122,79,232,0.94), rgba(185,140,255,0.86)),
    var(--primary-deep);
  color: white;
  box-shadow: 0 22px 64px rgba(122,79,232,0.26);
}

.upsell p { color: rgba(255,255,255,0.78); }
.upsell .chip { color: white; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.24); }
.upsell .btn-secondary { color: white; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.upsell .price-badge {
  color: #20182b;
  background: #fff;
  border-color: rgba(255,255,255,0.92);
  box-shadow: 0 8px 22px rgba(36,27,45,0.16);
}

.detail-layout {
  display: grid;
  gap: 22px;
}

.toc {
  display: none;
}

.toc-card {
  position: static;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.toc-card a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 13px;
  padding: 0 12px;
  color: var(--text-2);
  font-weight: 800;
  font-size: 13px;
}

.toc-card a:hover {
  color: var(--primary-deep);
  background: rgba(185,140,255,0.12);
}

.side-ad {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(232,225,218,0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.mobile-tabs::-webkit-scrollbar { display: none; }

.mobile-tabs button {
  min-height: 42px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  padding: 0 14px;
  font-weight: 850;
}

.mobile-tabs button.is-selected {
  color: var(--primary-deep);
  border-color: rgba(122,79,232,0.36);
  background: rgba(185,140,255,0.14);
}

.report-section {
  padding: 24px;
  scroll-margin-top: 86px;
}

.recommend-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.recommend-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
}

.recommend-card .status-pill { margin-bottom: 10px; }

.coupang-ad-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(232,225,218,0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.coupang-ad-panel--wide {
  max-width: 760px;
}

.coupang-ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coupang-ad-head strong {
  font-size: 14px;
  line-height: 1.35;
}

.ad-disclosure {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0 8px;
  color: var(--text-2);
  background: rgba(246,241,234,0.78);
  border: 1px solid rgba(232,225,218,0.92);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.coupang-banner-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(232,225,218,0.72);
  line-height: 0;
}

.coupang-banner-link:hover {
  border-color: rgba(122,79,232,0.30);
}

.coupang-banner-link:focus-visible,
.coupang-category-link:focus-visible,
.coupang-product-chip:focus-visible {
  outline: 4px solid rgba(185, 140, 255, 0.30);
  outline-offset: 3px;
}

.coupang-banner-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
}

.side-ad .coupang-banner-link img {
  max-height: 46px;
}

.coupang-carousel-shell {
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.coupang-carousel {
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.coupang-carousel[hidden],
.coupang-carousel:empty {
  display: none;
}

.coupang-carousel iframe,
.coupang-carousel > * {
  max-width: 100%;
}

.coupang-link-row,
.coupang-product-row {
  display: flex;
  gap: 8px;
}

.coupang-link-row {
  flex-wrap: wrap;
}

.coupang-product-row {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 0 2px 2px;
  scrollbar-width: none;
}

.coupang-product-row::-webkit-scrollbar {
  display: none;
}

.coupang-category-link,
.coupang-product-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0 13px;
  color: var(--text);
  background: rgba(246,241,234,0.78);
  border: 1px solid rgba(232,225,218,0.92);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.coupang-product-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
}

.coupang-category-link:hover,
.coupang-product-chip:hover {
  border-color: rgba(122,79,232,0.30);
  background: rgba(185,140,255,0.12);
}

.coupang-product-chip {
  color: var(--primary-deep);
  background: rgba(185,140,255,0.10);
  border-color: rgba(122,79,232,0.18);
}

.coupang-partners-notice {
  margin: 0;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.45;
}

.checkout-card {
  padding: 26px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 820;
}

.checkout-line span { color: var(--text-2); font-weight: 760; }
.price { font-size: 36px; font-weight: 850; letter-spacing: -0.024em; }

.share-stage {
  width: min(100%, 390px);
  margin: 0 auto;
}

.share-card {
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,0.90) 0 15%, transparent 16%),
    radial-gradient(circle at 80% 18%, rgba(169,199,255,0.34), transparent 28%),
    radial-gradient(circle at 22% 82%, rgba(244,167,185,0.34), transparent 30%),
    linear-gradient(155deg, #fff 0%, #f7efff 52%, #fff7f1 100%);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow-soft);
}

.share-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.026em;
}

.share-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 820;
}

.share-result {
  display: grid;
  gap: 14px;
}

.share-stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(232,225,218,0.80);
  color: var(--text-2);
  font-weight: 840;
}

.share-stat strong { color: var(--text); text-align: right; }

.launcher-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.screen-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.screen-card:hover {
  transform: translateY(-2px);
  border-color: rgba(122,79,232,0.32);
}

.screen-card .screen-number {
  color: var(--primary-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(24px);
  z-index: 40;
  width: min(calc(100% - 32px), 390px);
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  font-weight: 800;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.06); opacity: 1; } }

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

@media (min-width: 720px) {
  .grid-2,
  .guide-grid,
  .report-grid,
  .recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .segmented { grid-template-columns: repeat(4, 1fr); }
  .segmented--gender { grid-template-columns: repeat(3, 1fr); }
  .launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.78fr); padding: 70px 0 90px; }
  .section { padding: 84px 0; }
  .bottom-cta { display: none; }
  .detail-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .toc {
    display: block;
    position: sticky;
    top: 88px;
  }
  .mobile-tabs { display: none; }
  .launcher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .screen-main { padding-top: 44px; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .site-header .container,
  .screen-header .mobile-shell,
  .screen-header .container { min-height: 62px; }
  .brand-sub { display: none; }
  .hero-actions .btn,
  .action-row .btn { width: 100%; }
  .hero-art { min-height: 470px; }
  .phone-preview { min-height: 470px; }
  .preview-screen { min-height: 435px; }
  .floating-card { position: static; min-width: 0; margin-top: 8px; }
  .float-1, .float-2, .float-3, .float-4 { top: auto; left: auto; right: auto; bottom: auto; }
  .korean-title { font-size: clamp(40px, 12vw, 52px); }
  .coupang-ad-head { align-items: flex-start; flex-direction: column; }
  .coupang-category-link { flex: 1 1 calc(50% - 8px); min-width: 128px; }
  .coupang-product-chip { flex: 0 0 auto; }
}
