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

.b100-longevity-calculator {
  --b100-bg: #f7f3ff;
  --b100-surface: #ffffff;
  --b100-ink: #1c1b24;
  --b100-muted: #6b6a75;
  --b100-accent: #7c3aed;
  --b100-accent-2: #a855f7;
  --b100-border: #e6e1f3;
  --b100-shadow: 0 18px 50px rgba(23, 18, 43, 0.12);
  --b100-radius: 24px;
  font-family: 'Manrope', 'Satoshi', 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--b100-ink);
}

.b100-calc {
  position: relative;
  padding: 64px 20px;
}

.b100-calc__shell {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 40px 48px;
  background: radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.08), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(168, 85, 247, 0.08), transparent 40%),
    linear-gradient(135deg, #fdfbff 0%, #f6f2ff 50%, #ffffff 100%);
  border-radius: var(--b100-radius);
  box-shadow: var(--b100-shadow);
  overflow: hidden;
  animation: b100-fade-up 0.6s ease both;
}

.b100-calc__shell::after {
  content: '';
  position: absolute;
  inset: -40% -30% auto auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
  filter: blur(0px);
  opacity: 0.7;
  pointer-events: none;
}

.b100-calc__header {
  max-width: 620px;
}

.b100-calc__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b100-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.b100-calc__title {
  font-size: clamp(26px, 2.4vw, 36px);
  margin: 0 0 10px;
  font-weight: 700;
}

.b100-calc__intro {
  margin: 0 0 24px;
  color: var(--b100-muted);
  line-height: 1.6;
}

.b100-calc__progress {
  margin-bottom: 28px;
}

.b100-calc__progress-bar {
  position: relative;
  padding: 8px 0;
}

.b100-calc__progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #efe8ff;
  overflow: visible;
}

.b100-calc__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--b100-accent), var(--b100-accent-2));
  border-radius: 999px;
  transition: width 0.3s ease;
  z-index: 1;
}

.b100-calc__progress-milestones {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.b100-calc__milestone {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e4def2;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 12px rgba(124, 58, 237, 0.14);
}

.b100-calc__milestone::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #f1ecff;
}

.b100-calc__milestone.is-complete {
  border-color: #cdbaf7;
}

.b100-calc__milestone.is-complete::after {
  background: #cdbaf7;
}

.b100-calc__milestone.is-active {
  border-color: var(--b100-accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.b100-calc__milestone.is-active::after {
  background: var(--b100-accent);
}

.b100-calc__progress-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--b100-muted);
}


.b100-calc__question {
  background: var(--b100-surface);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--b100-border);
  box-shadow: 0 10px 30px rgba(28, 27, 36, 0.08);
}

.b100-calc__intro-card,
.b100-calc__summary-card {
  background: var(--b100-surface);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--b100-border);
  box-shadow: 0 10px 30px rgba(28, 27, 36, 0.08);
}

.b100-calc__intro-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.b100-calc__intro-copy {
  margin: 0 0 10px;
  color: var(--b100-muted);
  line-height: 1.6;
}

.b100-calc__intro-meta {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--b100-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.b100-calc__summary-label {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b100-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.b100-calc__summary-score {
  font-size: 36px;
  font-weight: 700;
  color: var(--b100-accent);
  margin-bottom: 6px;
}

.b100-calc__summary-copy {
  margin: 0 0 16px;
  color: var(--b100-muted);
}

.b100-calc__summary-bar {
  background: #efe8ff;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.b100-calc__summary-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--b100-accent), var(--b100-accent-2));
}

.b100-calc__info {
  margin: 16px 0 10px;
}

.b100-calc__info details {
  background: #fbf9ff;
  border: 1px solid var(--b100-border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.b100-calc__info + .b100-calc__options {
  margin-top: 16px;
}

.b100-calc__info summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--b100-accent);
  list-style: none;
  display: block;
  margin-bottom: 14px;
}

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

.b100-calc__info-body {
  margin-top: 10px;
  color: var(--b100-muted);
  line-height: 1.6;
  font-size: 14px;
}

.b100-calc__info-body a {
  display: inline-block;
  margin-top: 8px;
  color: var(--b100-accent);
  font-weight: 600;
  text-decoration: none;
}

.b100-calc__category {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b100-accent);
  margin-bottom: 10px;
}

.b100-calc__question-title {
  margin: 0 0 18px;
  font-size: 20px;
}

.b100-calc__options {
  display: grid;
  gap: 12px;
}

.b100-calc__option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.b100-calc__option input {
  position: absolute;
  opacity: 0;
}

.b100-calc__option-label {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--b100-border);
  background: #fbf9ff;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: b100-fade-up 0.4s ease both;
}

.b100-calc__option-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.12);
}

.b100-calc__option input:focus-visible + .b100-calc__option-label {
  outline: 2px solid rgba(124, 58, 237, 0.4);
  outline-offset: 2px;
}

.b100-calc__option input:checked + .b100-calc__option-label {
  background: #f2ebff;
  border-color: var(--b100-accent);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
}

.b100-calc__option:nth-child(1) .b100-calc__option-label {
  animation-delay: 0.02s;
}
.b100-calc__option:nth-child(2) .b100-calc__option-label {
  animation-delay: 0.06s;
}
.b100-calc__option:nth-child(3) .b100-calc__option-label {
  animation-delay: 0.1s;
}
.b100-calc__option:nth-child(4) .b100-calc__option-label {
  animation-delay: 0.14s;
}
.b100-calc__option:nth-child(5) .b100-calc__option-label {
  animation-delay: 0.18s;
}

.b100-calc__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.b100-calc__btn {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(120deg, var(--b100-accent), var(--b100-accent-2));
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.2);
}

.b100-calc__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
}

.b100-calc__btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.b100-calc__btn--ghost {
  background: #f1ecff;
  color: var(--b100-accent);
  box-shadow: none;
}

.b100-calc__results-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 32px;
}

.b100-calc__ring {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(
    var(--b100-accent) calc(var(--percent) * 1%),
    #e9e4f4 0
  );
  display: grid;
  place-items: center;
  position: relative;
}

.b100-calc__ring-inner {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: #ffffff;
  position: relative;
  box-shadow: inset 0 0 0 1px #f0ebff;
}

.b100-calc__ring-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--b100-accent);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.b100-calc__ring-label {
  font-size: 13px;
  color: var(--b100-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 30%);
}

.b100-calc__result-copy {
  max-width: 520px;
  color: var(--b100-muted);
  line-height: 1.6;
  margin: 0;
}

.b100-calc__section {
  margin-top: 28px;
}

.b100-calc__section-title {
  font-weight: 700;
  margin-bottom: 16px;
}

.b100-calc__section-copy {
  margin: -6px 0 16px;
  color: var(--b100-muted);
  line-height: 1.6;
}

.b100-calc__version {
  margin-top: 18px;
  font-size: 12px;
  color: var(--b100-muted);
  text-align: center;
}

.b100-calc__category-grid,
.b100-calc__lever-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.b100-calc__category-card,
.b100-calc__lever-card {
  background: var(--b100-surface);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--b100-border);
  box-shadow: 0 10px 24px rgba(28, 27, 36, 0.06);
  animation: b100-fade-up 0.4s ease both;
}

.b100-calc__category-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.b100-calc__category-score {
  font-size: 20px;
  font-weight: 700;
  color: var(--b100-accent);
  margin-bottom: 8px;
}

.b100-calc__bar {
  background: #efe8ff;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.b100-calc__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--b100-accent), var(--b100-accent-2));
}

.b100-calc__lever-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--b100-accent);
  margin-bottom: 8px;
}

.b100-calc__lever-question {
  font-weight: 600;
  margin-bottom: 8px;
}

.b100-calc__lever-answer {
  color: var(--b100-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.b100-calc__lever-tip {
  font-size: 13px;
  color: var(--b100-ink);
}

.b100-calc__actions--results {
  margin-top: 32px;
}

.b100-calc__newsletter {
  display: flex;
  justify-content: center;
}

.b100-calc__newsletter .sib-form-container {
  width: 100%;
}

@keyframes b100-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .b100-calc {
    padding: 48px 16px;
  }

  .b100-calc__shell {
    padding: 32px 22px 36px;
  }

  .b100-calc__question {
    padding: 20px;
  }

  .b100-calc__actions {
    flex-direction: column;
  }

  .b100-calc__progress-meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media (min-width: 900px) {
  .b100-calc__title {
    white-space: nowrap;
  }
}
