:root {
  --coral: #ff6b6b;
  --coral-dark: #e6533f;
  --cream: #fff8f2;
  --ink: #2d2a26;
  --muted: #7a746c;
  --card: #ffffff;
  --border: #f0e6dc;
  --success: #2f9e6b;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(45, 42, 38, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}
.logo span { color: var(--coral); }
nav.main-nav a {
  margin-left: 22px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--coral-dark); }
nav.main-nav a.active { color: var(--coral-dark); }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 20px 24px;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Quiz card */
.quiz-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 32px;
}

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-fill {
  height: 100%;
  background: var(--coral);
  width: 25%;
  transition: width 0.3s ease;
}

.step-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.question h2 {
  font-size: 1.5rem;
  margin: 0 0 20px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
  text-align: center;
}
.option-btn .emoji { font-size: 1.8rem; }
.option-btn:hover {
  border-color: var(--coral);
  background: #fff5f2;
}
.option-btn.selected {
  border-color: var(--coral);
  background: #ffece8;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 99px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover { background: var(--coral-dark); }
.btn-primary:disabled {
  background: #f2c9c2;
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--coral); color: var(--coral-dark); }

/* Results */
.results { display: none; }
.results.active { display: block; }
.results-header {
  text-align: center;
  margin-bottom: 28px;
}
.results-header h2 { font-size: 1.8rem; margin-bottom: 6px; }
.results-header p { color: var(--muted); }

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.gift-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.gift-card .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.gift-card h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.gift-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin: 0 0 14px;
}
.gift-card .price-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: #e9f8f0;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  width: fit-content;
}
.gift-card .shop-btn {
  text-align: center;
  background: var(--coral);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}
.gift-card .shop-btn:hover {
  background: var(--coral-dark);
  text-decoration: none;
}

.disclosure {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
}

.retake-wrap { text-align: center; }

/* Share (results screen) */
.share-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 18px;
}
.btn-share {
  background: var(--ink);
  color: #fff;
}
.btn-share:hover { background: #46423c; }
.share-fb-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border: 2px solid var(--border);
  border-radius: 99px;
  padding: 10px 18px;
}
.share-fb-link:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
  text-decoration: none;
}
.share-feedback {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

/* Ad slot */

/* Content pages */
.content-page {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 40px auto;
  max-width: 760px;
}
.content-page h1 { font-size: 2rem; margin-top: 0; }
.content-page h2 { font-size: 1.3rem; margin-top: 32px; }
.content-page ul { padding-left: 20px; }
.content-page li { margin-bottom: 8px; }

.guides-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.guide-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}
.guide-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.guide-card p { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site-footer a { margin: 0 10px; color: var(--muted); }
footer.site-footer a:hover { color: var(--coral-dark); }

/* Related guide link (quiz results) */
.related-guide {
  text-align: center;
  font-size: 0.95rem;
  margin: 0 auto 6px;
}

/* Related guides (bottom of guide articles) */
.related-guides {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 32px;
}

/* How it works */
.how-it-works {
  text-align: center;
  margin: 56px auto;
}
.how-it-works h2 {
  font-size: 1.6rem;
  margin-bottom: 28px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
}
.step-num {
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  margin: 0 auto 12px;
}
.step h3 { font-size: 1rem; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto 56px;
}
.faq h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq-item h3 { font-size: 1rem; margin: 0 0 8px; }
.faq-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .options-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .quiz-card, .content-page { padding: 24px; }
}
