/* =========================
   RESET + BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f7f5f2;
  color: #1c1c1c;
  line-height: 1.5;
}

/* =========================
   VARIABLES
========================= */

:root {
  --bg: #f7f5f2;
  --card: #ffffff;
  --border: #e6e2dc;

  --text: #1c1c1c;
  --muted: #6f6b66;

  --accent: #6f8f7b;
  --accent-soft: #e7efe9;
  --accent-strong: #4f6f5e;

  --radius: 14px;
}

/* =========================
   LAYOUT
========================= */

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

/* =========================
   HEADER
========================= */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.lang-switcher {
  display: flex;
  gap: 6px;
}

.lang-pill {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
}

.lang-pill.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
}

/* =========================
   HERO
========================= */

.hero {
  margin-top: 24px;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.hero p {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* =========================
   SECTION
========================= */

.section {
  margin-top: 30px;
}

.section-head h2 {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

.section-head p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   STACK
========================= */

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

/* =========================
   CARD
========================= */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

/* =========================
   CARD META
========================= */

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.userline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.nameblock {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.nameblock span {
  color: var(--muted);
}


/*====================
    CHOICES
====================== */

.choices {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.choice:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/*=============================
    NOTE
=============================*/

.note {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
}

/*==========================
    STATS
==========================*/
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 680px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   PILLS
========================= */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  white-space: nowrap;
}

/* =========================
   CARD CONTENT
========================= */

.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 12px 0 6px;
}

.card-title a {
  text-decoration: none;
  color: var(--text);
}

.card-title a:hover {
  color: var(--accent-strong);
}

.card-body {
  font-size: 0.9rem;
  color: var(--muted);
}

.read-more {
  margin-left: 6px;
  font-size: 0.85rem;
  color: var(--accent-strong);
  text-decoration: none;
}

/* =========================
   QUESTION
========================= */

.question-label {
  margin-top: 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.question {
  font-weight: 700;
  margin: 4px 0 12px;
}

/* =========================
   RESULTS
========================= */

.result-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.bar {
  height: 6px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* =========================
   CARD FOOTER
========================= */

.card-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start; /* 👈 key change */
}

.card-actions .pill {
  flex: 0 0 auto;
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}