/* Vi Måste Prata Inspired Design - Warm, inviting, community-focused */
:root {
  /* Activist Vibrant */
  --primary: #5b2bbf;        /* deep purple */
  --primary-dark: #4a209e;
  --primary-light: #efeaff;
  --secondary: #19b6a2;      /* fresh mint */
  --accent: #ff6a3d;         /* warm orange */
  --bg-warm: #f7f7fb;
  --bg-card: #ffffff;
  --text: #151229;
  --text-muted: #5b586b;
  --border: rgba(21, 18, 41, 0.10);
  --shadow: 0 10px 30px rgba(21, 18, 41, 0.10);
  --shadow-hover: 0 16px 44px rgba(21, 18, 41, 0.14);
  --radius: 16px;

  /* subtle UI polish */
  --ring: 0 0 0 4px rgba(25, 182, 162, 0.26);
  --shadow-soft: 0 14px 46px rgba(21, 18, 41, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 12% 0%, rgba(91, 43, 191, 0.20), transparent 55%),
    radial-gradient(900px 600px at 85% 8%, rgba(25, 182, 162, 0.20), transparent 55%),
    radial-gradient(900px 600px at 70% 55%, rgba(255, 106, 61, 0.18), transparent 58%),
    linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
}

.hero .logo {
  letter-spacing: -0.01em;
}

.hero::after {
  content: "";
  display: block;
  width: 140px;
  height: 6px;
  margin: 1.5rem auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(91, 43, 191, 0.0),
    rgba(91, 43, 191, 0.55),
    rgba(25, 182, 162, 0.50),
    rgba(255, 106, 61, 0.50),
    rgba(91, 43, 191, 0.0)
  );
}

.logo {
  font-family: Fraunces, ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card.collapsible-card {
  padding: 0;
  overflow: hidden;
}

.card h2 {
  font-family: Fraunces, ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 {
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hidden { display: none; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #2c1a6a 100%);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: -120px -140px auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(25, 182, 162, 0.75), rgba(25, 182, 162, 0.0) 60%);
  pointer-events: none;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: auto auto -160px -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 106, 61, 0.70), rgba(255, 106, 61, 0.0) 62%);
  pointer-events: none;
}

.cta-section h1 {
  position: relative;
  font-size: 2rem;
  margin: 0 0 1rem 0;
}

.cta-section p {
  position: relative;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Bubble Chart */
.bubble-container {
  background: linear-gradient(135deg, rgba(91, 43, 191, 0.10), rgba(25, 182, 162, 0.10));
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.bubble-title {
  text-align: center;
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.theme-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  min-height: 200px;
}

.theme-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border: 2px solid rgba(91, 43, 191, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  box-shadow: 0 12px 30px rgba(21, 18, 41, 0.10);
  backdrop-filter: blur(6px);
}

.theme-bubble:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary) 0%, rgba(25, 182, 162, 0.95) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 50px rgba(21, 18, 41, 0.18);
}

.theme-bubble.active {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(25, 182, 162, 0.95) 100%);
  color: white;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.35);
}

.bubble-count {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.bubble-label {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 8px;
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff3d85 100%);
  color: white;
  box-shadow: 0 14px 34px rgba(255, 61, 133, 0.25), 0 12px 24px rgba(255, 106, 61, 0.20);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5a2d 0%, #ff2e7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(255, 61, 133, 0.30), 0 14px 30px rgba(255, 106, 61, 0.22);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid rgba(91, 43, 191, 0.30);
}

.btn-secondary:hover {
  background: rgba(91, 43, 191, 0.08);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Theme Pills */
.themes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.theme-pill {
  background: rgba(91, 43, 191, 0.08);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.theme-pill:hover {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(25, 182, 162, 0.95) 100%);
  color: white;
  transform: translateY(-2px);
}

.theme-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(25, 182, 162, 0.95) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Promise List */
.promise-list {
  display: grid;
  gap: 1rem;
}

.promise-item {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid var(--primary);
  transition: all 0.2s ease;
}

.promise-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.promise-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.promise-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.promise-practice {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* Quiz */
.quiz-item {
  background: rgba(255, 255, 255, 0.75);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(21, 18, 41, 0.06);
}

.quiz-question {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.quiz-item label {
  display: block;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.quiz-item label:hover {
  background: white;
}

.quiz-item input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: var(--primary);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: white;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}

/* Collapsible promises */
.collapsible {
  margin: 0;
}

.collapsible summary {
  list-style: none;
}

.collapsible summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(91, 43, 191, 0.10), rgba(25, 182, 162, 0.10));
  border-bottom: 1px solid var(--border);
}

.collapsible-summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.summary-left {
  display: grid;
  gap: 0.25rem;
}

.summary-title {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.summary-meta {
  margin: 0;
  font-size: 0.9rem;
}

.summary-sep {
  margin: 0 0.25rem;
  opacity: 0.7;
}

.summary-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 10px 24px rgba(21, 18, 41, 0.10);
}

.chev {
  display: inline-block;
  transition: transform 0.18s ease;
  color: var(--primary-dark);
  font-weight: 700;
}

details[open] .chev {
  transform: rotate(180deg);
}

.collapsible-content {
  padding: 1.5rem;
}

/* Reduce visual weight of the promise list when expanded */
.promise-item {
  background: #ffffff;
  border: 1px solid rgba(232, 221, 216, 0.9);
  border-left: 4px solid var(--primary);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.promise-item:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-soft);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-bubble,
  .btn,
  .promise-item,
  .chev {
    transition: none !important;
  }

  .promise-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Success Message */
.success-card {
  background: linear-gradient(135deg, rgba(25, 182, 162, 1) 0%, rgba(91, 43, 191, 1) 58%, rgba(255, 61, 133, 1) 100%);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

.success-card h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .cta-section h1 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .bubble-label {
    font-size: 0.65rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero {
    padding: 1rem;
    margin-bottom: 2rem;
  }
}

.picked-themes-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.1rem;
}

.theme-choice {
  background: rgba(91, 43, 191, 0.08);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: .5rem .7rem .55rem;
  cursor: pointer;
  min-width: 140px;
  position: relative;
}

.theme-choice-title {
  font-weight: 600;
  font-size: .85rem;
}

.theme-choice:hover {
  border-color: rgba(91, 43, 191, 0.28);
}

.theme-choice.selected {
  border-color: rgba(25, 182, 162, 0.65);
  background: rgba(25, 182, 162, 0.14);
  box-shadow: 0 0 0 2px rgba(25, 182, 162, 0.18);
}

.theme-choice .theme-hint {
  display: none;
  position: absolute;
  left: 0;
  top: 105%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 10px;
  padding: .4rem .5rem;
  width: 220px;
  font-size: .7rem;
  color: #5a524e;
  z-index: 5;
  box-shadow: 0 10px 35px rgba(15,23,42,0.15);
}

.theme-choice:hover .theme-hint {
  display: block;
}

.mt-1_5 {
  margin-top: 1.5rem;
}


.picked-themes-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.1rem;
}

.pick-pill {
  background: linear-gradient(135deg, var(--accent) 0%, #ff3d85 100%);
  color: #fff;
  border-radius: 999px;
  padding: .45rem .9rem .5rem;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out, background .08s linear;
  position: relative;
}

.pick-pill:hover {
  background: linear-gradient(135deg, #ff5a2d 0%, #ff2e7a 100%);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 61, 133, 0.24), 0 12px 24px rgba(255, 106, 61, 0.18);
}

.pick-pill.selected {
  background: #fff;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px rgba(91, 43, 191, 0.55);
}

.pick-pill .hint {
  display: none;
  position: absolute;
  left: 0;
  top: 115%;
  background: #fff;
  color: #333;
  font-weight: 400;
  font-size: .7rem;
  border-radius: 10px;
  padding: .45rem .55rem;
  width: 220px;
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
  z-index: 10;
}

.pick-pill:hover .hint {
  display: block;
}
