:root {
  --black: #000000;
  --white: #ffffff;
  --mist: #f3f4f8;
  --grey: #babfc5;
  --slate: #69788c;
  --navy: #17213b;
  --purple: #240040;
  --coral: #ff825e;
  --pink: #ff4057;
  --yellow: #ffd603;
  --card: rgba(255,255,255,0.76);
  --stroke: rgba(23,33,59,0.13);
  --stroke-strong: rgba(23,33,59,0.22);
  --soft-text: rgba(23,33,59,0.72);
  --shadow: 0 24px 70px rgba(23,33,59,0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 130, 94, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(255, 64, 87, 0.10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--mist) 56%, #ffffff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(23,33,59,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,33,59,.055) 1px, transparent 1px);
  background-size: 25vw 25vw;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.ambient { position: fixed; pointer-events: none; z-index: 0; border-radius: 999px; opacity: .55; }
.ambient-one { width: 22rem; height: 22rem; border: 1px solid rgba(255,130,94,.46); right: -8rem; top: 14rem; }
.ambient-two { width: 16rem; height: 16rem; border: 1px solid rgba(23,33,59,.13); left: -5rem; bottom: 5rem; }

.site-header, .site-footer, .app-shell { position: relative; z-index: 1; }
.site-header {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-logo { width: auto; height: 34px; display: block; object-fit: contain; flex: 0 0 auto; }
.wordmark { font-size: 16px; letter-spacing: .02em; font-weight: 700; text-transform: uppercase; }
.header-note, .site-footer { color: rgba(23,33,59,.62); font-size: 14px; }

.app-shell { width: min(1060px, calc(100% - 36px)); margin: 34px auto 0; }
.panel {
  min-height: 640px;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(243,244,248,.78));
  backdrop-filter: blur(18px);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 68px);
}
.hidden { display: none !important; }

.hero-panel { display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--coral); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; margin-bottom: 22px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(44px, 8vw, 86px); line-height: .95; font-weight: 300; letter-spacing: -0.06em; max-width: 850px; margin-bottom: 24px; }
h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.04; font-weight: 300; letter-spacing: -0.04em; }
.lead { max-width: 730px; color: var(--soft-text); font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.time-note { color: rgba(23,33,59,.62); }
.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--coral); color: var(--black); }
.primary:hover { background: var(--pink); color: var(--white); }
.ghost { background: transparent; color: var(--navy); border: 1px solid var(--stroke-strong); }
.ghost:hover { border-color: rgba(255,130,94,.75); color: var(--black); }
.pillars-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.pillars-preview span { padding: 10px 13px; border: 1px solid var(--stroke); border-radius: 999px; color: rgba(23,33,59,.74); background: rgba(255,255,255,.7); }

.quiz-panel { display: grid; grid-template-rows: auto 1fr auto; gap: 32px; }
.progress-wrap { display: grid; gap: 12px; }
.step-meta { display: flex; justify-content: space-between; color: rgba(23,33,59,.66); font-size: 14px; }
.progress-track { height: 8px; background: rgba(23,33,59,.12); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 8.33%; background: linear-gradient(90deg, var(--coral), var(--pink)); border-radius: inherit; transition: width .25s ease; }
.question-card { align-self: center; }
.question-number { color: var(--coral); font-weight: 700; margin-bottom: 18px; }
.helper-text { color: rgba(23,33,59,.66); line-height: 1.55; }
.scale { display: grid; gap: 12px; margin-top: 30px; }
.option {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  color: var(--navy);
  background: rgba(255,255,255,.84);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(23,33,59,.045);
}
.option strong { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(23,33,59,.07); color: var(--coral); }
.option-copy { display: grid; gap: 4px; }
.option-copy b { font-size: 16px; font-weight: 700; }
.option-copy small { color: rgba(23,33,59,.62); font-size: 14px; line-height: 1.35; }
.option:hover, .option[aria-checked="true"] { border-color: var(--coral); background: rgba(255,130,94,.12); }
.option[aria-checked="true"] strong { background: var(--coral); color: var(--black); }
.nav-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.results-panel { display: grid; gap: 28px; }
.results-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.score-orb { width: clamp(144px, 18vw, 210px); height: clamp(144px, 18vw, 210px); border-radius: 50%; border: 1px solid rgba(23,33,59,.16); display: grid; place-items: center; background: radial-gradient(circle, rgba(255,130,94,.30), rgba(255,255,255,.7)); }
.score-orb span { font-size: clamp(48px, 7vw, 76px); font-weight: 300; line-height: 1; }
.score-orb small { margin-top: -48px; color: rgba(23,33,59,.56); }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 16px; align-items: center; }
.bar-name { color: rgba(23,33,59,.82); }
.bar-track { height: 12px; border-radius: 999px; background: rgba(23,33,59,.10); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--pink)); }
.bar-score { color: rgba(23,33,59,.62); text-align: right; }
.recommendation-card, .lead-form, .success-card { border: 1px solid var(--stroke); border-radius: 24px; background: rgba(255,255,255,.74); padding: clamp(22px, 4vw, 34px); box-shadow: 0 12px 40px rgba(23,33,59,.06); }
.recommendation-card p, .lead-form p, .success-card p { color: rgba(23,33,59,.70); line-height: 1.55; }
.next-steps { margin: 14px 0 0; padding-left: 20px; color: rgba(23,33,59,.74); line-height: 1.55; }
.next-steps li { margin: 7px 0; }
.urgency-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--stroke); color: rgba(23,33,59,.74); }
.lead-form { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: start; }
.form-grid { display: grid; gap: 12px; }
label { display: grid; gap: 7px; color: rgba(23,33,59,.72); font-size: 14px; }
input { width: 100%; padding: 14px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.88); color: var(--navy); font: inherit; }
input:focus { outline: 2px solid rgba(255,130,94,.55); outline-offset: 2px; }
.results-actions { justify-content: flex-start; }
.success-card { display: grid; gap: 12px; }
.success-card h2 { margin-bottom: 0; }
.success-card .button { justify-self: start; }

.site-footer { width: min(1180px, calc(100% - 36px)); margin: 28px auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .site-header { padding: 18px 0; }
  .brand-logo { height: 30px; }
  .header-note { display: none; }
  .panel { border-radius: 24px; min-height: auto; }
  .hero-panel, .quiz-panel, .results-panel { padding: 26px; }
  h1 { font-size: 46px; }
  h2 { font-size: 30px; }
  .results-grid, .lead-form { grid-template-columns: 1fr; }
  .score-orb { width: 150px; height: 150px; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .bar-score { text-align: left; }
}
