/* Elaine "Sunny" theme -----------------------------------------------------
 * Mobile-first visual layer. The existing stylesheet remains the structural
 * safety net for every report and pilot component; this file supplies the
 * warm, illustrated product language requested for the refreshed experience.
 */

:root {
  --bg: #fff8ec;
  --bg-soft: #fffdf8;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --line: rgba(24, 36, 56, 0.09);
  --line-strong: rgba(255, 111, 97, 0.38);
  --text: #172438;
  --muted: #687386;
  --acid: #ff6f61;
  --acid-strong: #f65163;
  --coral: #ff8f78;
  --lavender: #b69af7;
  --sky: #77cdf2;
  --mint: #6bd6a5;
  --sunny: #ffc93d;
  --cream: #fff8ec;
  --shadow-border:
    0 0 0 1px rgba(23, 36, 56, 0.055),
    0 2px 4px -2px rgba(31, 42, 67, 0.10),
    0 12px 34px -18px rgba(31, 42, 67, 0.22);
  --shadow: 0 24px 70px -28px rgba(45, 54, 78, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --question-accent: #ff6f61;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 7%, rgba(255, 201, 61, 0.18), transparent 23rem),
    radial-gradient(circle at 94% 12%, rgba(182, 154, 247, 0.17), transparent 25rem),
    linear-gradient(155deg, #fffdf8 0%, #fff8ec 52%, #f4fbf8 100%);
  font-family: ui-rounded, "Avenir Next Rounded", "Avenir Next", "Nunito Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

h1,
h2,
h3 { text-wrap: balance; }

p { text-wrap: pretty; }

.noise {
  z-index: -1;
  opacity: 0.025;
  mix-blend-mode: multiply;
}

.ambient {
  filter: blur(90px);
  opacity: 0.16;
}

.ambient-one {
  width: 300px;
  height: 300px;
  top: 12%;
  left: -180px;
  background: var(--sunny);
}

.ambient-two {
  width: 340px;
  height: 340px;
  right: -210px;
  bottom: 15%;
  background: var(--sky);
}

.site-header,
.site-footer,
.app-shell {
  width: min(100% - 28px, 1180px);
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  padding-block: 12px;
}

.brand {
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  box-shadow: 0 12px 24px -13px rgba(242, 81, 116, 0.75);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  outline: 0;
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 13px; letter-spacing: 0.13em; }
.brand-copy small { color: var(--muted); font-size: 10px; font-weight: 650; }

.site-footer {
  min-height: 64px;
  border-top-color: rgba(23, 36, 56, 0.08);
  color: var(--muted);
}

.app-shell {
  min-height: calc(100vh - 136px);
  grid-template-columns: minmax(0, 1fr);
}

.screen {
  color: var(--text);
  animation: sunnyScreenIn 420ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes sunnyScreenIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.eyebrow,
.mini-label,
.result-kicker,
.question-kicker,
.section-heading small,
.insight-label {
  color: var(--acid);
  font-weight: 850;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.pulse-dot {
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(107, 214, 165, 0.18);
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  transition-property: scale, transform, box-shadow, background-color, opacity;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.button:hover { transform: translateY(-1px); }
.button:active:not(:disabled) { scale: 0.96; }
.button:focus-visible,
.icon-button:focus-visible,
.option-card:focus-visible,
.share-chip:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(47, 155, 234, 0.42);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(110deg, #f05c79 0%, #ff755e 58%, #ff9c55 100%);
  box-shadow: 0 16px 34px -15px rgba(240, 92, 121, 0.7);
}

.button-primary:hover {
  color: #fff;
  background: linear-gradient(110deg, #e95372 0%, #fa6a56 58%, #f9934d 100%);
  box-shadow: 0 20px 40px -16px rgba(240, 92, 121, 0.75);
}

.button-secondary,
.button-quiet {
  color: var(--text);
  background: #fff;
  border: 0;
  box-shadow: var(--shadow-border);
}

.button-secondary:hover,
.button-quiet:hover { background: #fffaf3; }

.button:disabled {
  color: #9aa1ac;
  background: #e9e7e3;
  box-shadow: none;
  opacity: 0.74;
}

/* Landing --------------------------------------------------------------- */

.landing-screen {
  padding: 26px 0 54px;
  align-items: stretch;
  flex-direction: column;
  gap: 28px;
}

.landing-copy,
.landing-message,
.landing-cta { min-width: 0; }

.landing-copy { max-width: 680px; }

.landing-screen h1 {
  max-width: 680px;
  margin: 16px 0 18px;
  color: var(--text);
  font-size: clamp(44px, 14vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.062em;
}

.landing-screen h1 em {
  display: block;
  color: var(--acid);
  font-style: normal;
}

.hero-copy {
  max-width: 600px;
  color: #58667a;
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.58;
}

.mobile-sunny-scene {
  position: relative;
  height: 252px;
  margin: 7px -4px 2px;
  isolation: isolate;
}

.mobile-sunny-scene::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 4px;
  width: min(88vw, 342px);
  height: 220px;
  translate: -50% 0;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.96) 0 31%, rgba(255, 239, 244, 0.7) 54%, transparent 73%),
    radial-gradient(circle at 72% 42%, rgba(183, 242, 215, 0.55), transparent 40%),
    radial-gradient(circle at 26% 33%, rgba(217, 202, 255, 0.62), transparent 42%);
  filter: blur(1px);
}

.mobile-sunny-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 12px;
  width: 210px;
  height: 28px;
  translate: -50% 0;
  border-radius: 50%;
  background: rgba(105, 80, 55, 0.13);
  filter: blur(12px);
}

.mobile-sunny-scene > img {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -12px;
  width: 258px;
  height: 258px;
  translate: -50% 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(91, 67, 45, 0.14));
  outline: 0;
  animation: sunnyMobileFloat 4.8s ease-in-out infinite;
}

.sunny-scene-copy {
  max-width: 390px;
  margin: 8px auto 0;
  text-align: center;
}

.sunny-scene-copy strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.sunny-scene-copy p {
  margin: 7px 0 0;
  color: #697589;
  font-size: 14px;
  line-height: 1.55;
}

@keyframes sunnyMobileFloat {
  0%, 100% { transform: translateY(4px) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

.mobile-scene-item {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 9px 10px rgba(62, 48, 73, 0.16));
  animation: sunnyPropFloat 5.4s ease-in-out infinite;
}

@keyframes sunnyPropFloat {
  0%, 100% { transform: translateY(2px) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.scene-calendar {
  left: 7%;
  bottom: 70px;
  width: 54px;
  height: 50px;
  border: 6px solid #fff6ec;
  border-top: 12px solid #ff756b;
  border-radius: 13px;
  color: #ef6076;
  background: #fff;
  font-size: 17px;
  rotate: -7deg;
}

.scene-calendar::before,
.scene-calendar::after {
  content: "";
  position: absolute;
  top: -17px;
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: #8a8d9a;
}

.scene-calendar::before { left: 8px; }
.scene-calendar::after { right: 8px; }
.scene-calendar i { font-style: normal; translate: 0 -2px; }

.scene-ticket {
  top: 31px;
  right: 17%;
  width: 62px;
  height: 39px;
  border-radius: 11px;
  background: linear-gradient(145deg, #b28df5, #7659da);
  font-size: 16px;
  rotate: 8deg;
  animation-delay: -1.2s;
}

.scene-ticket::before,
.scene-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f9f4ff;
  translate: 0 -50%;
}

.scene-ticket::before { left: -5px; }
.scene-ticket::after { right: -5px; }

.scene-pin {
  right: 4%;
  bottom: 63px;
  width: 45px;
  height: 45px;
  border-radius: 50% 50% 50% 12px;
  background: linear-gradient(145deg, #80e1ae, #32b778);
  rotate: -45deg;
  animation-delay: -2.4s;
}

.scene-pin i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e9fff4;
}

.scene-star {
  right: 8%;
  bottom: 14px;
  color: #ffc83d;
  font-size: 39px;
  rotate: 10deg;
  animation-delay: -3.1s;
}

.shared-result-banner {
  border: 0;
  color: var(--text);
  background: #f5efff;
  box-shadow: var(--shadow-border);
}

.shared-result-banner > span {
  color: #fff;
  background: var(--lavender);
}

.shared-result-banner strong { color: #795ac7; }
.shared-result-banner small { color: var(--text); }

.what-you-get {
  margin-top: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.benefit-card {
  min-height: 130px;
  padding: 14px 10px;
  border: 0;
  border-radius: 21px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-border);
}

.benefit-card > span {
  width: 38px;
  height: 38px;
  margin: 0 auto 9px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ef5f77;
  background: #fff0f3;
  font-size: 17px;
}

.benefit-card:nth-child(2) > span { color: #128b60; background: #e9f9f1; }
.benefit-card:nth-child(3) > span { color: #7858c4; background: #f1edff; }
.benefit-card strong { margin-top: 0; font-size: 12px; }
.benefit-card small { color: var(--muted); font-size: 9px; }

.hero-actions {
  margin-top: 26px;
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
}

.button-large { width: 100%; min-height: 56px; font-size: 15px; }
.time-note { color: var(--muted); font-size: 12px; }
.report-mini { color: #fff; background: var(--sky); }

.expectation-note {
  margin-top: 18px;
  padding: 13px 15px;
  grid-template-columns: 1fr;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  color: #6f7888;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 0 0 1px rgba(23, 36, 56, 0.05);
}

.expectation-note strong { color: var(--text); }

.hero-card.sunny-stage {
  display: none;
  width: 100%;
  min-height: 520px;
  padding: 18px;
  border: 0;
  border-radius: 34px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(155deg, #f6efff 0%, #fff1f2 45%, #eaf9f3 100%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(23, 36, 56, 0.04);
  overflow: hidden;
}

.hero-card.sunny-stage::after {
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 201, 61, 0.23);
  filter: blur(30px);
}

.hero-card-top { color: var(--muted); }
.mini-label { color: #e75c76; }
.mini-rank { color: #7b8291; }

.sunny-visual {
  position: relative;
  height: 330px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.sunny-visual::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  z-index: -1;
}

.sunny-visual img {
  width: min(108%, 390px);
  height: auto;
  margin-top: 8px;
  filter: drop-shadow(0 22px 20px rgba(91, 67, 45, 0.15));
  outline: 0;
  animation: sunnyFloat 4.8s ease-in-out infinite;
}

@keyframes sunnyFloat {
  0%, 100% { transform: translateY(4px) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

.sunny-spark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  filter: drop-shadow(0 5px 8px rgba(70, 61, 85, 0.14));
}

.spark-one { top: 44px; right: 26px; color: #ff8b6d; font-size: 28px; transform: rotate(12deg); }
.spark-two { left: 22px; top: 102px; color: #a984eb; font-size: 25px; }
.spark-three { right: 18px; bottom: 62px; color: #6bd6a5; font-size: 15px; }

.sunny-intro {
  position: relative;
  z-index: 2;
  padding: 16px 17px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-border);
}

.sunny-name { color: var(--text); font-size: 17px; font-weight: 850; }
.sunny-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.sunny-tags {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sunny-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #697383;
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 750;
}

/* Survey --------------------------------------------------------------- */

.survey-screen.is-active {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  min-height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 90% 4%, color-mix(in srgb, var(--question-accent) 14%, transparent), transparent 15rem),
    #fffdf8;
}

.survey-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  flex: 0 0 auto;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  padding-top: 0;
  padding-bottom: 10px;
  background: linear-gradient(180deg, #fffdf8 75%, rgba(255, 253, 248, 0));
}

.icon-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 0;
  color: #29364b;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-border);
  transition-property: scale, background-color, box-shadow, opacity;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.icon-button:hover { color: #172438; background: #fff; box-shadow: var(--shadow-border); }
.icon-button:active:not(:disabled) { scale: 0.96; }
.icon-button:disabled { opacity: 0.35; }

.progress-meta {
  margin-bottom: 8px;
  color: #687386;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 6px;
  background: #ece9e3;
}

.progress-bar {
  background: var(--question-accent);
  box-shadow: none;
  transition-property: width, background-color;
  transition-duration: 360ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.question-stage {
  flex: 0 0 auto;
  min-height: 0;
  padding: 16px 0 8px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.question-card {
  width: min(100%, 820px);
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  animation: sunnyQuestionIn 330ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes sunnyQuestionIn {
  from { opacity: 0; transform: translateX(16px); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.question-header { flex: 0 0 auto; width: 100%; }

.question-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--question-accent);
  font-size: 10px;
}

.question-glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--question-accent);
  background: color-mix(in srgb, var(--question-accent) 13%, white);
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--question-accent) 13%, transparent);
}

.question-card h2 {
  margin: 11px 0 7px;
  color: var(--text);
  font-size: clamp(27px, 8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.question-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.question-body {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  overflow: visible;
  padding: 2px 3px 6px;
}

.option-count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.option-card {
  position: relative;
  min-height: 78px;
  padding: 9px 44px 9px 9px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 21px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-border);
  text-align: left;
  cursor: pointer;
  transition-property: scale, transform, box-shadow, background-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.option-card:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: #fff;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--question-accent) 22%, transparent),
    0 14px 26px -18px rgba(31, 42, 67, 0.34);
}

.option-card:active { scale: 0.96; }

.option-card.is-selected {
  color: var(--text);
  background: color-mix(in srgb, var(--question-accent) 7%, white);
  box-shadow:
    0 0 0 2px var(--question-accent),
    0 15px 26px -18px color-mix(in srgb, var(--question-accent) 70%, transparent);
}

.option-art {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  background-image: var(--option-art);
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: var(--art-x) var(--art-y);
  outline: 1px solid rgba(23, 36, 56, 0.08);
  outline-offset: -1px;
}

.option-copy { min-width: 0; }
.option-copy strong { color: var(--text); font-size: 13px; line-height: 1.32; }

.option-check {
  right: 13px;
  top: 50%;
  width: 23px;
  height: 23px;
  transform: translateY(-50%);
  border: 2px solid #d6d8dc;
  color: transparent;
  background: #fff;
  transition-property: scale, opacity, filter, background-color, border-color;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.option-card.is-selected .option-check {
  color: #fff;
  border-color: var(--question-accent);
  background: var(--question-accent);
  filter: blur(0);
}

.text-response,
input,
select {
  border: 1px solid rgba(23, 36, 56, 0.13);
  color: var(--text);
  background: #fff;
  box-shadow: 0 10px 28px -24px rgba(31, 42, 67, 0.34);
}

.text-response {
  min-height: 190px;
  border-radius: 21px;
}

.text-response:focus,
input:focus,
select:focus {
  border-color: var(--question-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--question-accent) 12%, transparent);
}

.text-count { color: var(--muted); font-variant-numeric: tabular-nums; }

.survey-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  flex: 0 0 auto;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 14px 0 max(2px, env(safe-area-inset-bottom));
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), #fffdf8 28%);
}

.survey-footer .button-primary {
  min-width: 150px;
  background: var(--question-accent);
  box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--question-accent) 72%, transparent);
}

#keyboardHint,
#researchHint { display: none; }

.research-footer-actions { width: 100%; }
.research-footer-actions .button { flex: 1; }

/* Loading, unlock, result ----------------------------------------------- */

.loading-screen,
.unlock-screen { min-height: calc(100vh - 136px); }

.loading-screen { align-items: center; justify-content: center; padding: 24px 0 50px; }

.loading-card {
  position: relative;
  width: min(100%, 620px);
  padding: 28px 20px;
  border: 0;
  border-radius: 32px;
  color: var(--text);
  background: linear-gradient(155deg, #f7f0ff, #fff8ed 55%, #eafaf4);
  box-shadow: var(--shadow), 0 0 0 1px rgba(23, 36, 56, 0.05);
}

.loading-mascot {
  width: min(70vw, 260px);
  height: auto;
  margin: -12px auto -16px;
  display: block;
  outline: 0;
  filter: drop-shadow(0 18px 16px rgba(76, 55, 43, 0.12));
}

.loader-orbit { width: 78px; height: 28px; margin: 0 auto 16px; }
.loader-orbit span { width: 10px; height: 10px; margin: -5px; background: var(--coral); }
.loader-orbit span:nth-child(2) { background: var(--mint); }
.loader-orbit span:nth-child(3) { background: var(--lavender); }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(28px); }
  to { transform: rotate(360deg) translateX(28px); }
}

.loading-card h2 { color: var(--text); }
.loading-steps { gap: 8px; }
.loading-step { color: var(--muted); background: rgba(255, 255, 255, 0.68); }
.loading-step i { border-color: rgba(23, 36, 56, 0.12); }
.loading-step.is-done { color: var(--text); }
.loading-step.is-done i { color: #fff; border-color: var(--mint); background: var(--mint); }

.unlock-screen { padding: 24px 0 52px; }
.unlock-layout { grid-template-columns: 1fr; gap: 16px; }

.teaser-card,
.unlock-card,
.result-card,
.result-side-card,
.report-section,
.compare-grid,
.result-action-card,
.research-invite,
.research-done {
  border: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-border);
}

.teaser-card {
  min-height: 470px;
  padding: 24px;
  background: linear-gradient(150deg, #fff1f3 0%, #fff9ef 53%, #eafaf4 100%);
}

.teaser-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(119, 205, 242, 0.19);
}

.teaser-mascot {
  position: absolute;
  z-index: 0;
  width: 190px;
  height: auto;
  right: -16px;
  top: 32px;
  outline: 0;
  filter: drop-shadow(0 14px 14px rgba(77, 59, 42, 0.12));
}

.teaser-card > *:not(.teaser-mascot) { position: relative; z-index: 1; }
.teaser-name { max-width: 70%; color: var(--text); }
.teaser-eyebrow { color: var(--muted); }
.teaser-insight { color: #4d5c6f; }

.unlock-card {
  min-height: auto;
  padding: 24px;
  background: #fff;
}

.unlock-heading { color: var(--text); }
.unlock-sub,
.email-purpose { color: var(--muted); }
label { color: #4f5c6e; }
.check-row { color: var(--muted); }
.check-row input { accent-color: var(--acid); }
.form-error { color: #cf3e5b; }

.result-screen { padding: 24px 0 64px; }
.result-share-bar { border: 0; background: #fff; box-shadow: var(--shadow-border); }
.share-bar-copy p { color: var(--muted); }
.card-thumb { border: 0; background: #fffaf3; box-shadow: var(--shadow-border); }
.card-thumb-loading { color: var(--muted); }
.share-chip { border: 0; color: #596579; background: #fff; box-shadow: var(--shadow-border); }
.share-chip:hover { color: var(--text); background: #fff8ee; }

.result-hero-grid { grid-template-columns: 1fr; }

.result-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  background: linear-gradient(150deg, #fff4f5 0%, #fff9ef 58%, #eaf9f3 100%);
}

.result-card::after { background: radial-gradient(circle, rgba(255, 201, 61, 0.28), transparent 66%); }

.result-mascot {
  position: absolute;
  top: 24px;
  right: -24px;
  width: 210px;
  height: auto;
  outline: 0;
  filter: drop-shadow(0 18px 14px rgba(84, 59, 41, 0.14));
}

.result-kicker { max-width: calc(100% - 120px); }
.result-icon { margin-top: 112px; color: #fff; background: var(--acid); }
.result-card h1 { max-width: 780px; color: var(--text); }
.result-tagline { color: #48586d; }
.result-secondary { color: var(--muted); }
.result-trait { border: 0; color: #48566a; background: rgba(255, 255, 255, 0.75); box-shadow: var(--shadow-border); }
.result-divider { background: rgba(23, 36, 56, 0.08); }
.result-card h3 { color: #e65a74; }
.result-card p { color: #59687a; }
.signature-plan { border: 0; color: #46566a; background: rgba(255, 255, 255, 0.76); box-shadow: var(--shadow-border); }
.result-rarity { border: 0; color: #996216; background: #fff2cf; }

.result-side-card { background: #fff; }
.result-email-status { border: 0; background: #edf9ff; box-shadow: var(--shadow-border); }
.result-email-status > span { color: #fff; }
.result-email-status strong { color: var(--text); }
.result-email-status small { color: var(--muted); }

.hexagon .hex-label { fill: rgba(23, 36, 56, 0.62); }
.axis-note { border: 0; color: var(--text); background: #fffaf3; box-shadow: var(--shadow-border); }
.axis-note span { color: var(--muted); }

.report-section { background: rgba(255, 255, 255, 0.86); }
.section-heading > span { color: #fff; background: var(--acid); }
.section-heading h2 { color: var(--text); }
.section-heading small { color: #8a7282; }
.section-lead { color: var(--muted); }

.vignette-card,
.characteristic-card,
.snapshot-card,
.rule-card {
  border: 0;
  color: var(--text);
  background: #fffaf4;
  box-shadow: var(--shadow-border);
}

.vignette-card p { color: #465468; }
.characteristic-card > span,
.rule-index { color: var(--acid); }
.characteristic-card h3,
.snapshot-card strong,
.rule-card strong { color: var(--text); }
.characteristic-card p,
.snapshot-card small,
.rule-card small { color: var(--muted); }
.snapshot-card > span,
.rule-label { color: #8b7a7d; }

.insight-card { box-shadow: 0 22px 40px -26px rgba(31, 42, 67, 0.34); }
.insight-card h3 { color: var(--text); }
.coral-card { background: #ffb19f; }
.sky-card { background: #a8ddf4; }
.lavender-card { background: #d2c2fa; }

.result-action-card,
.research-invite,
.research-done { background: linear-gradient(140deg, #fff4f6, #eefaf5); }
.result-action-card p,
.research-invite p,
.research-done p { color: var(--muted); }
.research-done-icon { color: #fff; background: var(--mint); }
.pilot-invite { border-top-color: rgba(23, 36, 56, 0.08); }
.pilot-invite p { color: var(--muted); }

.compare-grid { background: #fff; }
.compare-insight { color: var(--text); }
.compare-gaps li { border: 0; background: #fffaf3; box-shadow: var(--shadow-border); }
.compare-gaps span,
.compare-legend { color: var(--muted); }

.modal {
  border: 0;
  color: var(--text);
  background: #fffdf8;
  box-shadow: 0 32px 90px -30px rgba(31, 42, 67, 0.45);
}
.modal::backdrop { background: rgba(45, 48, 61, 0.34); backdrop-filter: blur(8px); }
.modal p { color: var(--muted); }
.modal-close { border: 0; color: var(--text); background: #fff; box-shadow: var(--shadow-border); }
.text-button { color: #d94f6a; }

.matrix-row { border-color: rgba(23, 36, 56, 0.09); }
.matrix-label { color: var(--text); }
.matrix-cell { border-color: rgba(23, 36, 56, 0.10); background: #fff; }
.matrix-cell:hover { border-color: var(--question-accent); background: color-mix(in srgb, var(--question-accent) 6%, white); }
.matrix-cell.is-selected { border-color: var(--question-accent); background: var(--question-accent); }
.matrix-cell.is-selected::after { color: #fff; }
.consent-note { border: 0; color: var(--muted); background: #fff8ee; box-shadow: var(--shadow-border); }

@media (min-width: 620px) {
  .site-header,
  .site-footer,
  .app-shell { width: min(100% - 48px, 1180px); }

  .landing-screen { padding-top: 44px; }
  .landing-screen h1 { font-size: clamp(58px, 9vw, 82px); }
  .hero-actions { align-items: center; flex-direction: row; }
  .button-large { width: auto; }
  .expectation-note { grid-template-columns: auto 1fr; gap: 13px; }

  .survey-screen.is-active { padding-inline: 24px; }
  .survey-topbar { grid-template-columns: 48px minmax(0, 760px) 48px; gap: 22px; }
  .question-stage { padding-top: 24px; }
  .option-count span:last-child { display: none; }
  .options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .option-card { min-height: 88px; grid-template-columns: 68px minmax(0, 1fr); }
  .option-art { width: 68px; height: 68px; }
  #keyboardHint,
  #researchHint { display: inline; }
  .research-footer-actions { width: auto; }
  .research-footer-actions .button { flex: none; }

  .unlock-card { padding: 32px; }
  .result-card { padding: clamp(32px, 5vw, 52px); }
  .result-mascot { width: 300px; top: 24px; right: -24px; }
  .result-icon { margin-top: 160px; }
  .result-kicker { max-width: calc(100% - 210px); }
}

@media (min-width: 900px) {
  .site-header { min-height: 84px; }
  .app-shell { min-height: calc(100vh - 148px); }

  .landing-screen.is-active {
    display: block;
    padding: 58px 0 82px;
  }

  .landing-copy {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    grid-template-areas:
      "message character"
      "cta character";
    column-gap: clamp(52px, 8vw, 104px);
    align-items: center;
  }

  .landing-message { grid-area: message; align-self: end; }
  .landing-cta { grid-area: cta; align-self: start; }
  .hero-character { grid-area: character; }

  .mobile-sunny-scene {
    height: 390px;
    margin: 0;
  }

  .mobile-sunny-scene::before {
    width: min(36vw, 430px);
    height: 340px;
  }

  .mobile-sunny-scene::after {
    bottom: 21px;
    width: 270px;
  }

  .mobile-sunny-scene > img {
    bottom: -8px;
    width: 390px;
    height: 390px;
  }

  .scene-calendar { left: 2%; bottom: 105px; }
  .scene-ticket { top: 48px; right: 11%; }
  .scene-pin { right: 0; bottom: 98px; }
  .scene-star { right: 5%; bottom: 33px; }

  .sunny-scene-copy {
    max-width: 420px;
    margin-top: 12px;
  }

  .sunny-scene-copy strong { font-size: 21px; }
  .sunny-scene-copy p { font-size: 15px; }

  .question-stage { padding: 16px 0 10px; }
  .question-card {
    padding: 20px 24px 18px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 1px rgba(23, 36, 56, 0.045), 0 28px 70px -42px rgba(31, 42, 67, 0.34);
  }
  .question-card h2 { font-size: clamp(30px, 3.25vw, 39px); }
  .question-description { margin-bottom: 12px; }
  .option-card {
    min-height: 76px;
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .option-art { width: 58px; height: 58px; }

  .unlock-layout { grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr); gap: 20px; }
  .teaser-card,
  .unlock-card { min-height: 590px; }
  .teaser-mascot { width: 280px; right: -32px; top: 26px; }
  .teaser-name { max-width: 65%; }

  .result-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr); }
  .result-mascot { width: 330px; }
  .characteristic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-height: 720px) and (max-width: 619px) {
  .question-card h2 { font-size: 25px; }
  .question-description { margin-bottom: 10px; }
  .question-glyph { width: 32px; height: 32px; border-radius: 11px; }
  .option-card { min-height: 68px; grid-template-columns: 52px minmax(0, 1fr); }
  .option-art { width: 52px; height: 52px; border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .sunny-visual img { animation: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Discovery result ----------------------------------------------------- */

.discovery-screen {
  width: min(100%, 1040px);
  margin-inline: auto;
  gap: 18px;
  padding: 18px 0 52px;
}

.discovery-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-areas:
    "copy sunny"
    "insights insights";
  gap: 24px 12px;
  padding: 26px 22px 8px;
  border-radius: 30px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 201, 61, 0.24), transparent 12rem),
    linear-gradient(155deg, #ffffff 0%, #fffdf8 68%, #fff5e8 100%);
  box-shadow: 0 0 0 1px rgba(23, 36, 56, 0.05), 0 32px 72px -54px rgba(42, 48, 72, 0.42);
  overflow: hidden;
}

.discovery-copy {
  position: relative;
  z-index: 2;
  grid-area: copy;
  align-self: center;
}

.discovery-copy .result-kicker {
  display: block;
  max-width: none;
  color: #dd516c;
  font-size: 10px;
}

.discovery-copy .result-icon {
  width: 50px;
  height: 50px;
  margin: 18px 0 14px;
  border-radius: 17px;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--archetype-accent) 70%, transparent);
}

.discovery-copy h1 {
  margin: 0;
  max-width: 11ch;
  color: var(--text);
  font-size: clamp(42px, 12vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.discovery-screen[data-archetype="RD"] .discovery-copy h1 {
  font-size: clamp(35px, 9.2vw, 68px);
}

.discovery-copy .result-tagline {
  margin: 18px 0 0;
  max-width: 36ch;
  color: #526176;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.5;
}

.discovery-sunny {
  position: relative;
  z-index: 1;
  grid-area: sunny;
  align-self: start;
  min-height: 180px;
  display: grid;
  align-items: end;
  justify-items: center;
}

.discovery-sunny::before {
  content: "";
  position: absolute;
  inset: 20px -42px auto auto;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: rgba(255, 236, 166, 0.6);
}

.discovery-sunny .result-mascot {
  position: relative;
  inset: auto;
  width: 155px;
  height: auto;
  max-width: none;
  outline: 0;
  filter: drop-shadow(0 18px 16px rgba(84, 59, 41, 0.14));
  animation: discoverySunnyIn 620ms 120ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes discoverySunnyIn {
  from { opacity: 0; transform: translateY(18px) rotate(4deg) scale(0.92); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.discovery-spark {
  position: absolute;
  z-index: 2;
  font-weight: 900;
  filter: drop-shadow(0 6px 8px rgba(50, 55, 78, 0.12));
}

.discovery-sunny .spark-a { top: 8px; right: 4px; color: #9f81e8; font-size: 26px; rotate: 12deg; }
.discovery-sunny .spark-b { top: 42px; left: -3px; color: #ff6f61; font-size: 17px; rotate: -12deg; }

.discovery-insights {
  grid-area: insights;
  display: grid;
  border-top: 1px solid rgba(23, 36, 56, 0.08);
}

.discovery-insight {
  min-height: 0;
  padding: 22px 2px 24px;
}

.discovery-insight + .discovery-insight {
  border-top: 1px solid rgba(23, 36, 56, 0.08);
}

.discovery-insight > span,
.help-details-heading > span {
  display: block;
  margin-bottom: 8px;
  color: #15885e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.friction-insight > span { color: #dd516c; }

.discovery-insight h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(21px, 5.7vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.help-journey {
  position: relative;
  padding: 30px 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 221, 244, 0.48), transparent 16rem),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 58%, #fbf8ff 100%);
  box-shadow:
    0 0 0 1px rgba(65, 111, 145, 0.06),
    0 2px 4px rgba(39, 69, 91, 0.03),
    0 28px 64px -52px rgba(42, 73, 98, 0.38);
  overflow: hidden;
}

.help-fit {
  max-width: 720px;
  margin-bottom: 28px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(23, 36, 56, 0.08);
}

.help-fit > span {
  display: block;
  margin-bottom: 9px;
  color: #7657c9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.help-fit p {
  margin: 0;
  max-width: 40ch;
  color: var(--text);
  font-size: clamp(20px, 5.5vw, 27px);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -0.032em;
}

.help-intro { max-width: 720px; }

.help-intro h2 {
  margin: 0 0 12px;
  max-width: 18ch;
  color: var(--text);
  font-size: clamp(32px, 8.8vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.help-intro p {
  margin: 0;
  max-width: 58ch;
  color: #59697d;
  font-size: 15px;
  line-height: 1.65;
}

.help-choices {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.help-choices .button { width: 100%; }

.help-details {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(23, 36, 56, 0.1);
  animation: helpDetailsIn 320ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes helpDetailsIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-details-heading > span { color: #6f58b5; }

.help-details-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.help-details-heading p {
  margin: 9px 0 22px;
  color: #657386;
  font-size: 13px;
  line-height: 1.55;
}

.help-field-grid { display: grid; gap: 13px; }

.help-details label { color: #475568; }

.help-details input[type="text"],
.help-details input[type="email"] {
  min-height: 54px;
  border-color: rgba(23, 36, 56, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px -25px rgba(32, 52, 78, 0.35);
}

.help-details input:focus {
  border-color: #6d9dc1;
  box-shadow: 0 0 0 4px rgba(77, 152, 199, 0.13);
}

.help-details .check-row {
  margin: 16px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.help-details .email-purpose {
  margin-top: 12px !important;
  color: #738095 !important;
  font-size: 10px !important;
}

.help-declined,
.help-saved {
  margin-top: 25px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0 0 1px rgba(23, 36, 56, 0.06);
}

.help-declined > span,
.help-saved > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--mint);
  font-weight: 900;
}

.help-declined strong,
.help-saved strong { display: block; margin-top: 2px; color: var(--text); font-size: 14px; }
.help-declined p,
.help-saved p { margin: 4px 0 0; color: #68768a; font-size: 12px; line-height: 1.5; }

.help-declined-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.help-declined-actions .text-button { min-height: 38px; justify-self: center; }

.discovery-share {
  padding: 26px 4px 8px;
  display: grid;
  gap: 20px;
  border-top: 1px solid rgba(23, 36, 56, 0.09);
}

.discovery-share h2 {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: clamp(25px, 6vw, 34px);
  letter-spacing: -0.04em;
}

.discovery-share p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.discovery-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.discovery-share-actions .text-button { min-height: 44px; padding-inline: 10px; }
.discovery-share .copy-status { color: #17865e; font-size: 11px; font-weight: 750; }
.discovery-screen .result-privacy { color: #8a93a1; font-size: 10px; line-height: 1.5; }

@media (min-width: 620px) {
  .discovery-screen { padding-top: 28px; gap: 22px; }
  .discovery-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
    gap: 28px 20px;
    padding: 42px 42px 14px;
  }
  .discovery-sunny { min-height: 370px; align-self: center; }
  .discovery-sunny::before { inset: 34px auto auto 50%; width: 310px; height: 310px; translate: -50% 0; }
  .discovery-sunny .result-mascot { width: 330px; }
  .discovery-sunny .spark-a { top: 26px; right: 8px; font-size: 38px; }
  .discovery-sunny .spark-b { top: 86px; left: 0; font-size: 24px; }
  .discovery-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-insight { padding: 28px 26px 30px 2px; }
  .discovery-insight + .discovery-insight { padding-left: 30px; border-top: 0; border-left: 1px solid rgba(23, 36, 56, 0.08); }
  .help-journey { padding: 44px; }
  .help-choices { grid-template-columns: auto auto; justify-content: start; }
  .help-choices .button { width: auto; }
  .help-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-declined { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; }
  .help-declined-actions { grid-column: auto; justify-items: end; }
  .discovery-share { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (min-width: 900px) {
  .discovery-screen { padding-top: 38px; }
  .discovery-hero { padding: 52px 56px 18px; border-radius: 38px; }
  .help-journey { padding: 52px 56px; border-radius: 38px; }
}

[hidden] { display: none !important; }
