:root {
  color-scheme: only light;
  --green: #49b24a;
  --green-dark: #2f8b37;
  --navy: #0f1330;
  --navy-soft: #151a3d;
  --cream: #f5f4ee;
  --mint: #e6f4e6;
  --shadow: 0 24px 60px rgba(15, 19, 48, 0.2);
}

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

body {
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #f0f8ef, #fdfbf6 45%, #e6eef8 100%);
  color: var(--navy);
  position: relative;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.page {
  min-height: 100vh;
  padding: 72px 8vw 72px;
  display: grid;
  gap: 48px;
  align-content: center;
  position: relative;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 40% 60% 35% 65%;
  background: linear-gradient(135deg, rgba(73, 178, 74, 0.16), rgba(15, 19, 48, 0.12));
  filter: blur(0px);
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

.page::before {
  top: -120px;
  right: -140px;
}

.page::after {
  bottom: -180px;
  left: -140px;
  animation-delay: 2s;
}

.hero {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-dark);
}

h1 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.6rem, 3.8vw, 4.6rem);
  line-height: 1.05;
  color: var(--navy);
}

h1 span {
  color: var(--green);
}

h1 em {
  font-style: italic;
  color: var(--navy-soft);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2d3154;
}

.note-card {
  margin-top: 12px;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.note-card h2 {
  font-size: 1.3rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-pill {
  background: var(--navy);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.status-meta {
  font-weight: 600;
  color: var(--green-dark);
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.actions a {
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 19, 48, 0.2);
}

.primary {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.primary:hover {
  background: #3e9f41;
}

.note-card .primary {
  justify-self: start;
  padding: 14px 26px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 30px rgba(73, 178, 74, 0.32);
  position: relative;
  overflow: hidden;
}

.note-card .primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.note-card .primary:hover::after {
  opacity: 1;
}

.ghost {
  border: 1px solid rgba(15, 19, 48, 0.2);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}

.survey {
  display: grid;
  gap: 24px;
  max-width: 900px;
  width: min(92vw, 900px);
  max-height: 88vh;
  overflow: auto;
  position: relative;
  z-index: 2;
}

.survey-card,
.results-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.survey:not(.show-results) .results-card {
  display: none;
}

.survey.show-results .survey-card {
  display: none;
}

.survey-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.survey-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--green-dark);
}

.survey-subtitle {
  color: #2d3154;
  font-weight: 600;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  position: relative;
  font-weight: 700;
  color: var(--navy);
}

.progress-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(15, 19, 48, 0.12);
  stroke-width: 12;
}

.ring-progress {
  fill: none;
  stroke: var(--green);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.4s ease;
}

#questionText {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--navy);
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  border: 1px solid rgba(15, 19, 48, 0.15);
  background: white;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.option:hover {
  border-color: rgba(73, 178, 74, 0.6);
  box-shadow: 0 10px 24px rgba(15, 19, 48, 0.12);
  transform: translateY(-2px);
}

.option input {
  margin-top: 4px;
  accent-color: var(--green);
}

.option.selected {
  border-color: var(--green);
  background: rgba(73, 178, 74, 0.08);
}

.survey-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  gap: 16px;
}

.survey-footer button {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.survey-footer .ghost {
  border: 1px solid rgba(15, 19, 48, 0.2);
  background: white;
}

.results-card {
  display: grid;
  gap: 16px;
}

.results-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.scoreline {
  font-size: 1.1rem;
  color: #2d3154;
}

.result-pill {
  background: var(--navy);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  width: fit-content;
}

.focus {
  font-size: 1.2rem;
  color: var(--green-dark);
  font-weight: 600;
}

.results-summary {
  color: #2d3154;
  line-height: 1.6;
}

.results-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.results-card-block {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 19, 48, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-card-block ul {
  display: grid;
  gap: 4px;
  padding-left: 0;
  color: #2d3154;
  list-style: none;
  margin-top: auto;
  margin-bottom: auto;
}

.results-card-block li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
}

.results-card-block li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.results-grid a {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
}

.results-form {
  justify-self: center;
  margin-top: 16px;
  display: grid;
  gap: 10px;
  max-width: 520px;
  width: 100%;
}

.results-form label {
  font-weight: 600;
  color: #2d3154;
}

.results-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.results-form input[type="email"],
.results-form input[type="text"] {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 19, 48, 0.15);
  font-size: 1rem;
  height: 46px;
}

.results-form button {
  padding: 12px 18px;
  border-radius: 12px;
  height: 46px;
  line-height: 1;
  border: none;
  font-weight: 600;
  white-space: nowrap;
}

.form-status {
  font-size: 0.95rem;
  color: var(--green-dark);
  min-height: 1.2em;
}

@media (max-width: 760px) {
  .results-form-row {
    grid-template-columns: 1fr;
  }
}

.survey-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.survey-modal.is-open {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.survey-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 48, 0.45);
  backdrop-filter: blur(4px);
}

.survey-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: white;
  color: var(--navy);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.panel {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.panel-card h2 {
  font-size: 1.25rem;
  color: var(--navy);
}

.panel-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: #2d3154;
}

.panel-card p {
  color: #2d3154;
  line-height: 1.6;
}

.signup {
  display: grid;
  gap: 12px;
}

.signup input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 19, 48, 0.15);
  font-size: 1rem;
}

.signup button {
  background: var(--navy);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.signup button:hover {
  background: #0c1028;
}

.highlight {
  background: linear-gradient(140deg, rgba(73, 178, 74, 0.18), rgba(15, 19, 48, 0.08));
}

.progress {
  height: 12px;
  background: rgba(15, 19, 48, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 999px;
  animation: load 2.6s ease-out;
}

small {
  color: #2d3154;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(18px) scale(1.05);
  }
}

@keyframes load {
  from {
    width: 0;
  }
  to {
    width: 72%;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 64px 6vw 72px;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions a {
    width: 100%;
    text-align: center;
  }

  .survey-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .survey-footer {
    flex-direction: column;
  }

  .survey-footer button {
    width: 100%;
  }
}
