:root {
  --bg: #fbf6f3;
  --bg-alt: #f4e9ed;
  --surface: #ffffff;
  --text: #1c121b;
  --text-muted: #6b5b67;
  --line: rgba(28, 18, 27, 0.11);
  --line-strong: rgba(28, 18, 27, 0.2);
  --accent: #c6206c;
  --accent-2: #9c1a4c;
  --accent-soft: #f3dbe4;
  --navy: #1c1240;
  --gold: #a8752f;
  --gold-soft: #f1e2c9;
  --shadow: 0 20px 50px -25px rgba(28, 12, 26, 0.35);
  --radius: 14px;
  --measure: 38em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; word-break: keep-all; }
p, li, label { word-break: keep-all; }

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  width: 100%;
  height: 72px;
  padding: 0 max(20px, calc((100vw - 992px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.brand-icon { width: auto; height: 30px; flex: none; object-fit: contain; }
.brand-word {
  display: inline-flex;
  align-items: baseline;
  color: var(--accent);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-word b { font-weight: 900; }
.i-dot { position: relative; display: inline-block; }
.brand-spark {
  position: absolute;
  top: -0.66em;
  left: 50%;
  width: 0.62em;
  height: 0.62em;
  transform: translateX(-50%);
  color: var(--accent);
}
.topbar-note { color: var(--text-muted); font-size: 14.5px; font-weight: 600; }

.hero {
  position: relative;
  min-height: 590px;
  padding: clamp(82px, 10vw, 118px) max(20px, calc((100vw - 992px) / 2)) clamp(72px, 9vw, 104px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 84% 16%, rgba(198, 32, 108, 0.1), transparent 30%),
    linear-gradient(135deg, var(--bg) 0%, #fffaf8 52%, #f7edf1 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: clamp(-160px, -8vw, -70px);
  bottom: clamp(-210px, -12vw, -120px);
  width: 430px;
  height: 430px;
  border: 1px solid rgba(198, 32, 108, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(198, 32, 108, 0.025), 0 0 0 108px rgba(198, 32, 108, 0.02);
}
.hero-copy { position: relative; z-index: 1; max-width: 800px; }
.hero-hook {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: clamp(13px, 1.5vw, 16.5px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-hook svg { width: 16px; height: 16px; flex: none; }
.hero h1 {
  max-width: 14em;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.12;
  font-weight: 900;
}
.hero h1 em {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 70%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero-lead {
  max-width: var(--measure);
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 38px; }

.button {
  min-height: 48px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button span { margin-left: 2px; font-size: 16px; }
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(198, 32, 108, 0.7);
}
.button-primary:hover { box-shadow: 0 16px 30px -12px rgba(198, 32, 108, 0.75); }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.button-dark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.button-outline { border-color: rgba(255,255,255,.28); background: transparent; color: #fff; }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12.5px; }
.pulse { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(198,32,108,.09); }

.diagnostic { padding: clamp(72px, 10vw, 132px) max(20px, calc((100vw - 992px) / 2)); background: var(--bg-alt); }
.section-heading { max-width: 40em; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow span { width: 16px; height: 1.5px; background: currentColor; }
.eyebrow.light { color: #ff9dc4; }
.section-heading h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.2; font-weight: 800; }
.section-heading > p { max-width: var(--measure); margin: 16px 0 0; color: var(--text-muted); font-size: 16.5px; line-height: 1.7; }

.quiz-shell {
  padding: clamp(28px, 5.5vw, 56px) clamp(20px, 6vw, 64px) clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.quiz-progress { margin-bottom: clamp(38px, 5vw, 54px); }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.progress-track { height: 3px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.progress-track > div { width: 16.66%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }
.question { min-height: 308px; animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.question-meta { margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.question h3 { max-width: 27em; margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; font-weight: 800; }
.question-copy { max-width: var(--measure); margin: 0 0 32px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option { position: relative; min-width: 0; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
  min-height: 74px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: .18s ease;
  cursor: pointer;
}
.option-index { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; }
.option input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.option input:checked + label { border-color: var(--accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 24px -16px rgba(198,32,108,.8); }
.option input:checked + label .option-index { background: #fff; color: var(--accent); }
.validation { min-height: 22px; margin: 4px 0 0; color: #a4204d; font-size: 12px; font-weight: 700; }
.quiz-nav { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
.quiz-nav .button { min-width: 112px; }
.quiz-nav .button[hidden] { visibility: hidden; display: inline-flex; }

.result { animation: enter .45s ease both; }
.result-hero {
  min-height: 340px;
  padding: clamp(36px, 6vw, 60px) clamp(24px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(circle at 88% 10%, rgba(226,58,129,.26), transparent 30%), linear-gradient(135deg, #321527, #160d14);
  overflow: hidden;
}
.result-kicker { margin: 0 0 10px; color: #cdb7c4; font-size: 13px; font-weight: 700; }
.result-hero h2 { max-width: 16em; font-size: clamp(30px, 5vw, 52px); line-height: 1.18; font-weight: 900; }
.result-hero > div:first-child > p:last-child { max-width: 42em; margin: 24px 0 0; color: #d3c3cc; font-size: 15px; line-height: 1.8; }
.score-ring { flex: 0 0 170px; width: 170px; height: 170px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#ef4e95 var(--score), rgba(255,255,255,.1) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #21131e; }
.score-ring > div { position: relative; z-index: 1; text-align: center; }
.score-ring strong { display: block; font-size: 52px; font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.score-ring span { color: #bba8b8; font-size: 11px; font-weight: 700; }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.report-card { min-height: 350px; padding: clamp(30px, 4vw, 42px); border-radius: var(--radius); background: var(--surface); }
.card-number { margin: 0 0 56px; color: var(--text-muted); font-size: 11px; font-weight: 800; }
.report-card h3 { margin: 0 0 24px; font-size: 25px; font-weight: 800; }
.gap-list { display: grid; gap: 12px; }
.gap-item { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); font-size: 14px; font-weight: 600; line-height: 1.6; }
.gap-item p { margin: 0; }
.gap-item span { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 8px; border-radius: 2px; background: var(--accent); }
.priority-card { background: var(--accent-soft); }
.priority-card ol { margin: 0; padding: 0; display: grid; gap: 17px; list-style: none; counter-reset: priority; }
.priority-card li { position: relative; padding-left: 44px; color: #4b2639; font-size: 14px; font-weight: 650; line-height: 1.6; counter-increment: priority; }
.priority-card li::before { content: "0" counter(priority); position: absolute; left: 0; top: 2px; color: var(--accent); font-size: 11px; font-weight: 800; }

.salesfit-role {
  margin-top: 16px;
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 80px);
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(circle at 15% 10%, rgba(198,32,108,.24), transparent 34%), linear-gradient(135deg, #321527, #160d14);
}
.role-intro h3 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; font-weight: 900; }
.role-intro h3 em { color: #ff8ebc; font-style: normal; }
.role-intro > p:last-child { max-width: var(--measure); margin: 24px 0 0; color: #c7b5bf; font-size: 14px; line-height: 1.85; }
.role-list { display: grid; align-content: center; }
.role-item { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.role-item:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.role-item p { margin: 0; }
.role-item .role-phase { margin-bottom: 8px; color: #ff9dc4; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.role-item strong { display: block; margin-bottom: 5px; font-size: 17px; }
.role-item span { color: #bba8b8; font-size: 12px; line-height: 1.6; }

.report-actions { padding: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.report-actions .button-outline { border-color: var(--line-strong); color: var(--text); }
.report-actions .button-outline:hover { border-color: var(--accent); color: var(--accent); }
.text-button { margin-left: auto; padding: 11px 0; border: 0; border-bottom: 1px solid var(--text); background: none; color: var(--text); font-size: 12px; font-weight: 800; }
#report-status { width: 100%; color: var(--accent); font-size: 13px; font-weight: 700; }
#print-button[disabled] { opacity: .68; cursor: wait; transform: none; box-shadow: none; }

.brief { margin-top: 40px; padding: clamp(34px, 6vw, 60px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); animation: enter .35s ease both; }
.brief-head { max-width: 44em; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.brief-head h3 { max-width: 18em; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 800; }
.brief-head > p { max-width: var(--measure); margin: 18px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.brief-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.brief-fields label { color: var(--text-muted); font-size: 14px; font-weight: 700; }
.brief-fields label > span { color: var(--accent); }
.brief-fields .full { grid-column: 1 / -1; }
.brief-fields input, .brief-fields textarea { width: 100%; margin-top: 9px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfc; color: var(--text); font-size: 16px; line-height: 1.5; outline: none; resize: vertical; }
.brief-fields input:focus, .brief-fields textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198,32,108,.1); }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.generated-brief { margin-top: 24px; padding: 24px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: #261520; color: #ddced6; white-space: pre-line; font-size: 13px; line-height: 1.75; }
.privacy-consent { margin-top: 22px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-muted); font-size: 13px; font-weight: 600; line-height: 1.65; cursor: pointer; }
.privacy-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
#copy-status, #submit-status { width: 100%; color: var(--accent); font-size: 13px; font-weight: 700; }
#submit-status[data-state="success"] { color: #21744b; }
#submit-status[data-state="error"] { color: #a4204d; }
#submit-button[disabled] { opacity: .68; cursor: wait; transform: none; box-shadow: none; }

footer {
  padding: 44px max(20px, calc((100vw - 992px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: #ab929f;
  background: #1c121b;
  font-size: 11px;
}
footer p { margin: 0; }
footer p:last-child { justify-self: end; }
.footer-brand .brand-word { color: #fff; font-size: 18px; }
.footer-brand .brand-icon { height: 26px; }

@media (max-width: 820px) {
  .hero { min-height: 540px; }
  .result-grid, .salesfit-role { grid-template-columns: 1fr; }
  .salesfit-role { gap: 42px; }
  .result-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .topbar { height: 64px; }
  .topbar-note { font-size: 12.5px; }
  .brand-icon { height: 27px; }
  .brand-word { font-size: 19px; }
  .hero { min-height: 0; padding-top: 72px; padding-bottom: 72px; }
  .hero::after { right: -260px; bottom: -250px; }
  .hero-hook { padding: 9px 14px 9px 11px; font-size: 11px; letter-spacing: 0; }
  .hero h1 { max-width: 9.5em; font-size: clamp(36px, 11vw, 46px); line-height: 1.16; }
  .hero-lead { font-size: 16px; line-height: 1.7; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .privacy-note { justify-content: center; }
  .diagnostic { padding-left: 16px; padding-right: 16px; }
  .section-heading { padding: 0 4px; }
  .section-heading h2 { max-width: 12em; }
  .section-heading > p { font-size: 15px; }
  .quiz-shell { padding-left: 20px; padding-right: 20px; }
  .question { min-height: 456px; }
  .question h3 { font-size: 25px; line-height: 1.4; }
  .options { grid-template-columns: 1fr; }
  .option label { min-height: 64px; }
  .quiz-nav { position: sticky; z-index: 2; bottom: 0; margin: 0 -20px -24px; padding: 14px 20px 18px; background: color-mix(in srgb, #fff 94%, transparent); backdrop-filter: blur(10px); }
  .result-hero { padding: 38px 24px; }
  .result-hero h2 { max-width: 10em; }
  .score-ring { width: 130px; height: 130px; flex-basis: 130px; }
  .score-ring strong { font-size: 42px; }
  .report-card { min-height: auto; padding: 34px 24px; }
  .card-number { margin-bottom: 38px; }
  .salesfit-role { padding: 42px 24px; }
  .report-actions { align-items: stretch; flex-direction: column; }
  .report-actions .button { width: 100%; }
  .text-button { margin: 8px auto 0; }
  .brief { padding: 38px 22px; }
  .brief-fields { grid-template-columns: 1fr; }
  .brief-fields .full { grid-column: auto; }
  .brief-actions { align-items: stretch; flex-direction: column; }
  .brief-actions .button { width: 100%; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p:last-child { justify-self: start; }
}

@media (max-width: 380px) {
  .topbar-note { display: none; }
  .hero h1 { font-size: 35px; }
  .hero-hook { font-size: 10px; }
}

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

@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .topbar, .hero, .section-heading, .quiz-shell, .report-actions, .brief, footer { display: none !important; }
  .diagnostic { padding: 0; background: #fff; }
  .result[hidden] { display: none; }
  .result-hero, .report-card, .salesfit-role { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
