:root {
  --eq-ink: #102a43;
  --eq-text: #1f2933;
  --eq-muted: #52606d;
  --eq-navy: #102a43;
  --eq-blue: #4f8fc0;
  --eq-green: #4caf8f;
  --eq-gold: #f4b860;
  --eq-paper: #f7fafc;
  --eq-card: rgba(255, 255, 255, 0.84);
  --eq-line: rgba(16, 42, 67, 0.1);
  --eq-shadow: 0 24px 60px rgba(16, 42, 67, 0.14);
  --eq-radius-xl: 34px;
  --eq-radius-lg: 24px;
  --eq-radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--eq-text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(79, 143, 192, 0.16), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(76, 175, 143, 0.16), transparent 20%),
    radial-gradient(circle at 50% 110%, rgba(244, 184, 96, 0.14), transparent 26%),
    linear-gradient(180deg, #eef5fa 0%, #f7fafc 42%, #f4f8fb 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.energy-quiz-page {
  padding: calc(var(--site-topbar-offset, 96px) + 14px) 0 84px;
}

.energy-quiz-app {
  display: grid;
}

.energy-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--eq-radius-xl);
  border: 1px solid var(--eq-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.78)),
    var(--eq-card);
  box-shadow: var(--eq-shadow);
}

.energy-panel::before,
.energy-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.energy-panel::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -110px;
  background: radial-gradient(circle, rgba(79, 143, 192, 0.18), transparent 68%);
}

.energy-panel::after {
  width: 280px;
  height: 280px;
  left: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(76, 175, 143, 0.16), transparent 70%);
}

.energy-panel__inner {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.energy-panel--loading,
.energy-panel--error {
  padding: 44px 32px;
  text-align: center;
}

.energy-grid,
.result-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding: 32px;
}

.energy-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

.result-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 1.02fr);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.07);
  color: var(--eq-navy);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--eq-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-title,
.result-title {
  margin-top: 18px;
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
}

.section-title,
.question-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.energy-copy p,
.support-copy p,
.result-copy p,
.email-copy p,
.error-copy p {
  margin: 16px 0 0;
  color: var(--eq-muted);
  line-height: 1.72;
}

.hero-actions,
.question-actions,
.email-actions,
.result-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button,
.answer-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 52px;
  padding: 12px 22px;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--eq-navy), var(--eq-blue));
  box-shadow: 0 18px 28px rgba(16, 42, 67, 0.18);
}

.secondary-button {
  color: var(--eq-navy);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 42, 67, 0.14);
}

.ghost-button {
  color: var(--eq-muted);
  background: transparent;
  border: 1px dashed rgba(16, 42, 67, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.answer-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.support-card,
.question-panel,
.email-panel,
.result-summary,
.result-detail,
.result-cta,
.result-disclaimer,
.mini-card {
  border: 1px solid var(--eq-line);
  border-radius: var(--eq-radius-lg);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.support-card,
.question-panel,
.email-panel,
.result-summary,
.result-detail,
.result-cta {
  padding: 24px;
}

.support-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.support-list,
.theme-list,
.strengths-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.support-list li,
.theme-list li,
.strengths-list li {
  color: var(--eq-muted);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.support-list li::before,
.theme-list li::before,
.strengths-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--eq-green), var(--eq-blue));
  transform: translateY(-50%);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--eq-muted);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.08);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--eq-green), var(--eq-blue));
  transition: width 0.22s ease;
}

.answer-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.answer-button {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid rgba(16, 42, 67, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--eq-text);
}

.answer-button.is-selected {
  border-color: rgba(79, 143, 192, 0.72);
  background: linear-gradient(135deg, rgba(79, 143, 192, 0.14), rgba(76, 175, 143, 0.12));
  box-shadow: inset 0 0 0 1px rgba(79, 143, 192, 0.2);
}

.answer-button__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 14px;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.07);
  color: var(--eq-navy);
  font-weight: 800;
}

.answer-button__text {
  display: inline;
  vertical-align: middle;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--eq-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 42, 67, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--eq-text);
}

.field input:focus {
  outline: 2px solid rgba(79, 143, 192, 0.28);
  border-color: rgba(79, 143, 192, 0.7);
}

.fine-print,
.status-text,
.share-feedback {
  margin-top: 14px;
  color: var(--eq-muted);
  line-height: 1.6;
}

.status-text[data-tone="error"],
.share-feedback[data-tone="error"] {
  color: #a63a3a;
}

.result-summary {
  display: grid;
  gap: 18px;
  align-content: start;
}

.result-resonance {
  padding: 18px 20px;
  border-radius: var(--eq-radius-md);
  border: 1px solid rgba(16, 42, 67, 0.1);
  background: linear-gradient(135deg, rgba(79, 143, 192, 0.12), rgba(255, 255, 255, 0.7));
}

.result-resonance__headline,
.result-resonance__body {
  margin: 0;
}

.result-resonance__headline {
  color: var(--eq-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.result-resonance__body {
  margin-top: 10px;
  color: var(--eq-muted);
  line-height: 1.62;
}

.result-kicker {
  color: var(--eq-muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-visual {
  position: relative;
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 42, 67, 0.98), rgba(28, 72, 112, 0.9));
}

.result-visual span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.result-visual--storm {
  background:
    radial-gradient(circle at 72% 26%, rgba(244, 184, 96, 0.55), transparent 16%),
    linear-gradient(160deg, #102a43, #173e63 55%, #255d85);
}

.result-visual--storm span:nth-child(1) {
  inset: 24px 28px auto auto;
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.12);
}

.result-visual--storm span:nth-child(2) {
  left: 26px;
  bottom: 32px;
  width: 180px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-14deg);
}

.result-visual--storm span:nth-child(3) {
  right: 54px;
  bottom: 18px;
  width: 14px;
  height: 94px;
  background: linear-gradient(180deg, rgba(244, 184, 96, 0), rgba(244, 184, 96, 0.96));
  clip-path: polygon(36% 0, 100% 0, 56% 46%, 86% 46%, 0 100%, 30% 58%, 0 58%);
}

.result-visual--sprinter {
  background:
    radial-gradient(circle at 24% 22%, rgba(244, 184, 96, 0.38), transparent 20%),
    linear-gradient(160deg, #102a43, #7b3b22 52%, #f08d40);
}

.result-visual--sprinter span:nth-child(1),
.result-visual--sprinter span:nth-child(2),
.result-visual--sprinter span:nth-child(3) {
  left: -20px;
  right: 40px;
  height: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 241, 229, 0.86));
  transform: skewX(-24deg);
}

.result-visual--sprinter span:nth-child(1) { top: 58px; }
.result-visual--sprinter span:nth-child(2) { top: 100px; right: 18px; }
.result-visual--sprinter span:nth-child(3) { top: 142px; right: -8px; }

.result-visual--flicker {
  background:
    radial-gradient(circle at 50% 46%, rgba(244, 184, 96, 0.72), transparent 12%),
    linear-gradient(160deg, #102a43, #27547a 60%, #4f8fc0);
}

.result-visual--flicker span:nth-child(1),
.result-visual--flicker span:nth-child(2),
.result-visual--flicker span:nth-child(3) {
  inset: auto;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.48);
}

.result-visual--flicker span:nth-child(1) { left: 58px; top: 98px; opacity: 0.44; }
.result-visual--flicker span:nth-child(2) { left: 126px; top: 62px; opacity: 0.92; }
.result-visual--flicker span:nth-child(3) { left: 192px; top: 112px; opacity: 0.6; }

.result-visual--drainer {
  background:
    radial-gradient(circle at 76% 26%, rgba(244, 184, 96, 0.14), transparent 16%),
    linear-gradient(160deg, #102a43, #203a52 48%, #334e68);
}

.result-visual--drainer span:nth-child(1) {
  left: 52px;
  top: 74px;
  width: 170px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
}

.result-visual--drainer span:nth-child(2) {
  left: 66px;
  top: 88px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(244, 184, 96, 0.88), rgba(244, 184, 96, 0.34));
  border-radius: 10px;
}

.result-visual--drainer span:nth-child(3) {
  left: 228px;
  top: 94px;
  width: 12px;
  height: 34px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 4px;
}

.result-visual--glacier {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(160deg, #173550, #2f5d7f 58%, #7dbdd6);
}

.result-visual--glacier span:nth-child(1) {
  left: 22px;
  bottom: 34px;
  width: 220px;
  height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(240, 250, 255, 0.82));
  clip-path: polygon(0 100%, 22% 54%, 36% 66%, 52% 26%, 72% 58%, 88% 34%, 100% 100%);
}

.result-visual--glacier span:nth-child(2) {
  right: 28px;
  bottom: 32px;
  width: 112px;
  height: 84px;
  background: rgba(255, 255, 255, 0.28);
  clip-path: polygon(0 100%, 34% 42%, 56% 62%, 84% 20%, 100% 100%);
}

.result-visual--glacier span:nth-child(3) {
  left: 0;
  right: 0;
  bottom: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.36);
  border-radius: 0;
}

.result-visual--phoenix {
  background:
    radial-gradient(circle at 52% 46%, rgba(244, 184, 96, 0.72), transparent 16%),
    linear-gradient(160deg, #102a43, #1e4d68 48%, #4caf8f);
}

.result-visual--phoenix span:nth-child(1) {
  left: 108px;
  top: 34px;
  width: 96px;
  height: 96px;
  background: rgba(255, 247, 221, 0.92);
  box-shadow: 0 0 44px rgba(255, 221, 164, 0.44);
}

.result-visual--phoenix span:nth-child(2) {
  left: 42px;
  bottom: 26px;
  width: 108px;
  height: 118px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0));
  clip-path: polygon(0 100%, 28% 18%, 66% 100%);
}

.result-visual--phoenix span:nth-child(3) {
  right: 44px;
  bottom: 26px;
  width: 108px;
  height: 118px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0));
  clip-path: polygon(34% 100%, 72% 18%, 100% 100%);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-card h3 {
  font-size: 1.3rem;
}

.mini-card {
  padding: 20px;
}

.mini-card p {
  margin: 12px 0 0;
  color: var(--eq-muted);
  line-height: 1.66;
}

.result-disclaimer {
  margin-top: 18px;
  padding: 18px 20px;
}

.result-suggestions {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--eq-line);
  border-radius: var(--eq-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(79, 143, 192, 0.09), transparent 26%),
    rgba(255, 255, 255, 0.76);
}

.result-suggestions__header p,
.result-suggestions__disclaimer,
.suggestion-card p {
  margin: 12px 0 0;
  color: var(--eq-muted);
  line-height: 1.66;
}

.result-suggestions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.suggestion-card {
  padding: 18px;
  border-radius: var(--eq-radius-md);
  border: 1px solid rgba(16, 42, 67, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 26px rgba(16, 42, 67, 0.06);
}

.suggestion-card__label {
  color: var(--eq-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.suggestion-card__summary {
  color: var(--eq-text);
  font-weight: 700;
}

.suggestion-card__why {
  font-size: 0.95rem;
}

.result-disclaimer p,
.result-cta p {
  margin: 14px 0 0;
  color: var(--eq-muted);
  line-height: 1.66;
}

.referral-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--eq-line);
  border-radius: var(--eq-radius-lg);
  background:
    radial-gradient(circle at top left, rgba(76, 175, 143, 0.1), transparent 24%),
    rgba(255, 255, 255, 0.8);
}

.referral-panel h2,
.referral-panel p {
  margin-top: 14px;
}

.referral-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--eq-muted);
  line-height: 1.66;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.referral-note {
  margin-top: 14px;
  color: var(--eq-muted);
}

.referral-link-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--eq-radius-md);
  border: 1px dashed rgba(16, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.referral-link-label {
  color: var(--eq-ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-link-box a {
  display: inline-block;
  margin-top: 10px;
  color: var(--eq-blue);
  line-height: 1.6;
  word-break: break-all;
}

.empty-state {
  margin-top: 12px;
  color: var(--eq-muted);
}

@media (max-width: 960px) {
  .energy-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .mini-grid,
  .result-suggestions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .energy-quiz-page {
    padding-bottom: 54px;
  }

  .energy-panel--loading,
  .energy-panel--error,
  .energy-grid,
  .result-grid,
  .energy-panel__inner {
    padding: 22px;
  }

  .hero-title,
  .result-title {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .section-title,
  .question-title {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .hero-actions,
  .question-actions,
  .email-actions,
  .result-actions,
  .error-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}
