@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #eef5f4;
  --card: #ffffff;
  --text: #1f2f2d;
  --muted: #5c6e6a;
  --accent: #53b6ad;
  --accent-strong: #2f9c90;
  --border: #d6e4e2;
  --shadow: 0 12px 32px rgba(31, 47, 45, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(145deg, #f0f7f6 0%, #e8f2f1 35%, #f1f8f6 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.logo {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 20px;
  color: var(--accent-strong);
}

.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section {
  display: none;
}

.section.visible {
  display: block;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.3;
  margin: 0;
}

.hero-subtitle {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.hero-lead {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

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

.eyebrow {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
}

.result-heading {
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
}

h1 {
  font-size: 32px;
  letter-spacing: 1px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
}

.lead {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.primary-btn, .ghost-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 156, 144, 0.28);
  font-size: 16px;
}

.primary-btn:active {
  transform: translateY(1px);
}

.ghost-btn {
  background: #ffffffcc;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 560px;
}

.counter {
  font-weight: 700;
  min-width: 70px;
}

.bar {
  flex: 1;
  height: 8px;
  background: #e1eded;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transition: width 0.25s ease;
}

.question {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 auto 16px;
  text-align: left;
  max-width: 580px;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #f3f8f7;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-size: 18px;
  line-height: 1.5;
}
.option-btn:focus {
  outline: none;
}

.option-btn:active {
  transform: translateY(1px);
}

.option-btn.pressed {
  transform: scale(0.98);
  border-color: var(--accent-strong);
  box-shadow: 0 6px 12px rgba(47, 156, 144, 0.2);
}

.prev-btn {
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .option-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(47, 42, 40, 0.06);
  }
}
.keywords {
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 12px;
}

.result-title {
  text-align: center;
}

.chart-wrap {
  margin: 4px 0;
  padding: 0;
  background: transparent;
  border: none;
}

.chart-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.info-card {
  background: #f6faf9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(31, 47, 45, 0.06);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 {
  margin: 0;
  font-size: 16px;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.accordion summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 600;
  margin-top: 8px;
}

.accordion[open] summary {
  color: var(--text);
}

.accordion {
  margin-top: 6px;
}

.accordion > div {
  margin-top: 8px;
}

.theory {
  margin-top: 20px;
  padding: 14px;
  background: #e4efed;
  border: 1px solid var(--border);
  border-radius: 14px;
  line-height: 1.7;
  color: var(--text);
  font-size: 14px;
}

.theory h3 {
  margin: 6px 0;
}

.result-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  background: #f6faf9;
}

.result-block p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.dimension-item {
  padding: 12px;
  background: #f3f8f7;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.dimension-item h5 {
  margin: 0 0 6px;
  font-size: 15px;
}

.dimension-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.dimension-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.12);
  padding: 16px;
  transition: bottom 0.25s ease;
  z-index: 20;
}

.drawer.open {
  bottom: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.backdrop.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }
  .hero-title {
    font-size: 26px;
  }
  .card {
    padding: 18px 16px 20px;
    align-items: center;
  }
  .hero-actions {
    flex-direction: column;
  }
  .question {
    font-size: 19px;
    text-align: left;
  }
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }
  .info-card {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .page {
    padding: 16px 12px 28px;
  }
}
