@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --bg-accent: #f8d7c8;
  --ink: #1b1b1d;
  --muted: #5c5a63;
  --card: #ffffff;
  --line: #e4dcd4;
  --accent: #2f6bff;
  --accent-strong: #0a45d6;
  --shadow: 0 18px 50px rgba(28, 24, 48, 0.08);
}

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

body {
  font-family: "IBM Plex Sans", "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top left, var(--bg-accent), transparent 45%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: grid;
  gap: 24px;
}

.hero {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero__accent {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffb98a, #ffd0a5);
  opacity: 0.6;
  top: -90px;
  right: -60px;
}

.hero__content {
  position: relative;
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
}

.subhead {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.widget-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.widget-subtitle {
  margin-top: -10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 36px 8px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  min-width: 240px;
}

.select:focus {
  outline: 2px solid rgba(47, 107, 255, 0.25);
  outline-offset: 2px;
}

.status {
  font-size: 14px;
  color: var(--muted);
}

.btn {
  border: none;
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn--ghost:not(:disabled):hover {
  background: rgba(47, 107, 255, 0.1);
}

.qa-list {
  display: grid;
  gap: 14px;
}

.qa-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fffaf5, #fff2ea);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qa-item.hidden {
  display: none;
}

.qa-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 18, 39, 0.08);
  border-color: rgba(47, 107, 255, 0.35);
}

.question {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.question::after {
  content: "+";
  font-size: 18px;
  color: var(--accent);
}

.qa-item.open .question::after {
  content: "–";
}

.answer {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: none;
  animation: fadeIn 0.2s ease;
}

.qa-item.open .answer {
  display: block;
}

.qa-item.open .reactions {
  display: flex;
}

.reactions {
  margin-top: 14px;
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

.reaction-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.reaction-btn.active {
  border-color: var(--accent);
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.meta {
  margin-top: 10px;
  font-size: 12px;
  color: #8a7f74;
}

@media (max-width: 640px) {
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}
