/* ============ TypeCompass: DISC & MBTI ============ */

:root {
  --ink: #1e1b2e;
  --ink-soft: #4b4660;
  --ink-muted: #7a7590;
  --paper: #faf8f4;
  --surface: #ffffff;
  --line: #e8e4dc;

  --violet: #6c5ce7;
  --violet-deep: #5344c9;
  --violet-soft: #eeebff;
  --coral: #e8654f;
  --coral-soft: #fdeae6;
  --gold: #e3a63c;
  --teal: #2a9d8f;
  --teal-soft: #e3f4f2;

  --disc-d: #e8654f;
  --disc-i: #e3a63c;
  --disc-s: #2a9d8f;
  --disc-c: #6c5ce7;

  --radius: 16px;
  --shadow: 0 2px 6px rgba(30, 27, 46, 0.06), 0 12px 32px rgba(30, 27, 46, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo-mark { color: var(--violet); font-size: 1.4rem; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover { color: var(--violet); }

/* ============ Views ============ */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 88px 0 64px;
  background:
    radial-gradient(600px 300px at 20% 0%, var(--violet-soft), transparent),
    radial-gradient(600px 300px at 85% 10%, var(--coral-soft), transparent);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-deep);
  background: var(--violet-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 760px; margin: 0 auto 20px;
}
.hero h1 em { font-style: italic; color: var(--violet-deep); }
.hero-sub {
  font-size: 1.12rem; color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: 0.85rem; color: var(--ink-muted); }

/* ============ Buttons ============ */
.btn {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 12px 24px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35); }
.btn-primary:hover { background: var(--violet-deep); }
.btn-secondary { background: var(--ink); color: #fff; box-shadow: 0 4px 14px rgba(30, 27, 46, 0.25); }
.btn-secondary:hover { background: #35304d; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn-link {
  background: none; border: none; color: var(--ink-muted); font-weight: 500;
  font-size: 0.9rem; cursor: pointer; padding: 4px 0; font-family: var(--font-body);
}
.btn-link:hover { color: var(--violet); }

/* ============ Cards ============ */
.cards { display: grid; gap: 24px; margin: 56px 0; }
.cards.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards.three-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.test-card h2 { font-size: 1.5rem; margin: 18px 0 12px; }
.test-card p { color: var(--ink-soft); font-size: 0.95rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #fff;
}
.mbti-icon { background: linear-gradient(135deg, var(--violet), var(--violet-deep)); }
.disc-icon { background: linear-gradient(135deg, var(--coral), #c94a35); }
.dichotomy-list { list-style: none; margin: 18px 0 14px; }
.dichotomy-list li {
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 0.92rem; color: var(--ink-soft);
}
.dichotomy-list li:last-child { border-bottom: none; }
.dichotomy-list strong { color: var(--ink); display: inline-block; min-width: 44px; }
.card-meta { font-size: 0.82rem !important; color: var(--ink-muted) !important; margin-bottom: 18px; }

/* ============ About ============ */
.about-section { padding-bottom: 72px; }
.section-title { text-align: center; font-size: 2rem; margin-top: 24px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--violet-deep); }
.info-card p { font-size: 0.9rem; color: var(--ink-soft); }
.disclaimer {
  background: var(--teal-soft); border: 1px solid #c5e6e2; border-radius: var(--radius);
  padding: 20px 24px; font-size: 0.9rem; color: #1d6a60;
}
.disclaimer.small { margin-top: 28px; font-size: 0.82rem; }

/* ============ Test view ============ */
#view-test { padding: 40px 0 80px; }
.test-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.test-title-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--coral));
  border-radius: 999px; transition: width 0.3s ease;
}
.progress-text { font-size: 0.82rem; color: var(--ink-muted); margin: 8px 0 24px; }

.question-card { padding: 40px; }
.question-number { font-size: 0.8rem; font-weight: 600; color: var(--violet); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.question-text { font-size: 1.45rem; margin-bottom: 28px; min-height: 3.5em; }

.likert { display: flex; flex-direction: column; gap: 10px; }
.likert-option {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 500; color: var(--ink-soft);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 18px; cursor: pointer; text-align: left;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}
.likert-option:hover { border-color: var(--violet); background: var(--violet-soft); transform: translateX(3px); }
.likert-option.selected { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-deep); font-weight: 600; }
.likert-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.likert-dot.d1 { background: #e8654f; opacity: 0.85; }
.likert-dot.d2 { background: #eda08f; }
.likert-dot.d3 { background: #cfc9bd; }
.likert-dot.d4 { background: #9d92e8; }
.likert-dot.d5 { background: #6c5ce7; }

.question-nav { display: flex; justify-content: space-between; margin-top: 26px; }

/* ============ Results ============ */
#view-results { padding: 48px 0 80px; }
.result-hero { text-align: center; margin-bottom: 36px; }
.result-kicker { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.result-type {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700;
  letter-spacing: 0.04em; line-height: 1;
  background: linear-gradient(120deg, var(--violet), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-name { font-size: 1.5rem; font-family: var(--font-display); margin-top: 8px; color: var(--ink); }
.result-tagline { color: var(--ink-soft); font-size: 1.05rem; max-width: 560px; margin: 10px auto 0; }

.trait-bars { margin: 32px 0; }
.trait-bar-row { margin-bottom: 22px; }
.trait-labels { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.trait-labels .left-label { color: var(--violet-deep); }
.trait-labels .right-label { color: var(--coral); }
.trait-labels .dim { opacity: 0.45; font-weight: 500; }
.trait-track { height: 14px; background: var(--line); border-radius: 999px; position: relative; overflow: hidden; }
.trait-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.trait-fill.left { background: var(--violet); }
.trait-fill.right { background: var(--coral); margin-left: auto; }
.trait-pct { font-size: 0.78rem; color: var(--ink-muted); margin-top: 4px; }

/* DISC bars */
.disc-bar-row { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 14px; margin-bottom: 16px; }
.disc-bar-label { font-size: 0.9rem; font-weight: 600; }
.disc-track { height: 18px; background: var(--line); border-radius: 999px; overflow: hidden; }
.disc-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.disc-fill.d { background: var(--disc-d); }
.disc-fill.i { background: var(--disc-i); }
.disc-fill.s { background: var(--disc-s); }
.disc-fill.c { background: var(--disc-c); }
.disc-pct { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); text-align: right; }

.result-section { margin-top: 28px; }
.result-section h3 {
  font-size: 1.2rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.result-section h3 .icon { font-size: 1.1rem; }
.result-section p { color: var(--ink-soft); font-size: 0.96rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill {
  background: var(--violet-soft); color: var(--violet-deep);
  font-size: 0.85rem; font-weight: 500; padding: 6px 14px; border-radius: 999px;
}
.pill.warm { background: var(--coral-soft); color: #b34a37; }
.pill.cool { background: var(--teal-soft); color: #1d6a60; }

.results-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; justify-content: center; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px;
  text-align: center; color: var(--ink-muted); font-size: 0.85rem;
}
.footnote { font-size: 0.75rem; margin-top: 6px; opacity: 0.8; }

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; height: auto; padding: 10px 0; gap: 4px; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.82rem; white-space: nowrap; }
  .hero { padding: 56px 0 44px; }
  .question-card { padding: 26px 20px; }
  .question-text { font-size: 1.2rem; min-height: 0; }
  .disc-bar-row { grid-template-columns: 110px 1fr 44px; }
}

/* ============ v2: homepage sections ============ */
.section { padding: 56px 0 8px; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 10px auto 0; }
.section .section-title { margin-bottom: 4px; }
.center { text-align: center; margin-top: 28px; }
.btn-xl { padding: 18px 38px; font-size: 1.1rem; border-radius: 14px; }

.proof-strip {
  margin-top: 24px; display: flex; gap: 10px; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--ink-soft);
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }

/* what you unlock */
.unlock-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-top: 28px;
}
.unlock-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  box-shadow: 0 1px 3px rgba(30,27,46,0.05);
}

/* journey steps */
.steps { display: flex; align-items: stretch; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 180px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.step h3 { font-size: 1.02rem; margin: 10px 0 6px; }
.step p { font-size: 0.85rem; color: var(--ink-soft); }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step-arrow { align-self: center; color: var(--ink-muted); font-size: 1.3rem; }

/* coming soon ecosystem */
.coming-soon-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.coming-label { font-size: 0.85rem; color: var(--ink-muted); margin-right: 4px; }
.soon-pill {
  border: 1.5px dashed var(--line); color: var(--ink-muted); border-radius: 999px;
  padding: 5px 14px; font-size: 0.82rem; font-weight: 500; background: var(--surface);
}

/* report preview */
.report-preview-section {
  background: linear-gradient(135deg, var(--violet-soft), var(--coral-soft));
  border-radius: 24px; padding: 48px 32px 40px; margin-top: 48px;
}
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 30px; }
.preview-card {
  background: var(--surface); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transform: rotate(-0.4deg);
}
.preview-card:nth-child(2) { transform: rotate(0.5deg); }
.preview-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.preview-type {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  background: linear-gradient(120deg, var(--violet), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1;
}
.preview-name { font-family: var(--font-display); font-size: 1.05rem; margin: 4px 0 14px; }
.mini-bar { height: 10px; background: var(--line); border-radius: 999px; margin-bottom: 8px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 999px; }
.mini-fill.violet { background: var(--violet); }
.mini-fill.coral { background: var(--coral); }
.mini-fill.teal { background: var(--teal); }
.preview-radar { width: 100%; max-width: 180px; display: block; margin: 0 auto; }
.radar-label { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--ink-soft); }

/* testimonials */
.quote-card .stars { margin-bottom: 10px; }
.quote { font-size: 0.95rem; color: var(--ink); font-style: italic; }
.quote-by { margin-top: 12px; font-size: 0.85rem; color: var(--ink-muted); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--violet-deep); margin-bottom: 14px; }
.price-note { font-size: 0.85rem; font-weight: 400; color: var(--ink-muted); }
.price-features { list-style: none; margin-bottom: 20px; flex: 1; }
.price-features li { font-size: 0.86rem; color: var(--ink-soft); padding: 5px 0; }
.price-card.featured { border: 2px solid var(--violet); box-shadow: 0 8px 32px rgba(108,92,231,0.18); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--violet); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.04em;
}

/* FAQ */
.faq-list { max-width: 720px; margin: 28px auto 0; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; font-size: 0.98rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--violet); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 16px; color: var(--ink-soft); font-size: 0.92rem; }

/* final CTA */
.final-cta { text-align: center; padding: 64px 0 72px; }
.final-cta h2 { font-size: 2rem; margin-bottom: 8px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 22px; }

/* ============ v2: results & sample report ============ */
.section-followup { margin-top: 14px; }
.disc-chart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.disc-radar { width: 100%; max-width: 240px; margin: 0 auto; display: block; }
.radar-wrap { text-align: center; }

/* share section */
.share-card-section { margin-top: 28px; border: 2px solid var(--violet-soft); }
.share-card-section h3 { font-size: 1.25rem; margin-bottom: 6px; }
.share-card-section > p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.share-btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; font-size: 0.88rem;
  font-weight: 600; color: #fff; text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font-body); transition: transform 0.12s, opacity 0.12s;
}
.share-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }
.share-btn.li { background: #0a66c2; }
.share-btn.tw { background: #1e1b2e; }
.share-btn.dl { background: var(--violet); }

.referral-box, .email-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-top: 12px;
}
.referral-box p, .email-box p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 10px; }
.referral-row { display: flex; gap: 10px; flex-wrap: wrap; }
.text-input {
  flex: 1; min-width: 200px; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
  background: var(--surface);
}
.text-input:focus { outline: none; border-color: var(--violet); }
.soon-tag {
  font-size: 0.72rem; background: var(--gold); color: #fff; border-radius: 999px;
  padding: 2px 10px; font-weight: 700; vertical-align: middle;
}
.tiny-note { font-size: 0.78rem !important; color: var(--ink-muted) !important; margin-top: 8px; }

/* premium teaser */
.premium-teaser { margin-top: 32px; }
.premium-header { text-align: center; margin-bottom: 18px; }
.premium-header h3 { font-family: var(--font-display); font-size: 1.4rem; }
.premium-header p { color: var(--ink-soft); font-size: 0.92rem; }
.premium-locked { position: relative; border-radius: var(--radius); overflow: hidden; }
.premium-content { filter: blur(7px); user-select: none; pointer-events: none; opacity: 0.75; }
.premium-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(250,248,244,0.35), rgba(250,248,244,0.75));
}
.lock-icon { font-size: 2.2rem; }
.premium-overlay p { font-size: 1.05rem; }

/* sample view */
.sample-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--violet-soft); border: 1.5px solid var(--violet);
  border-radius: var(--radius); padding: 16px 22px; margin: 32px 0 36px;
  font-size: 0.92rem; color: var(--violet-deep);
}
.sample-divider {
  text-align: center; margin: 48px 0 36px; position: relative;
}
.sample-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1.5px dashed var(--line);
}
.sample-divider span {
  position: relative; background: var(--paper); padding: 0 18px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-muted);
}
#view-sample { padding-bottom: 80px; }
#view-sample .final-cta { margin-top: 40px; padding: 40px 24px; text-align: center; }

/* v2 responsive */
@media (max-width: 720px) {
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .disc-chart-grid { grid-template-columns: 1fr; }
  .report-preview-section { padding: 36px 20px 32px; }
}
