:root {
  --navy: #071d3a;
  --navy-soft: #12345c;
  --ink: #10223c;
  --muted: #667085;
  --paper: #fdf7fb;
  --surface: #ffffff;
  --mist: #f6eef5;
  --blue-mist: #e8f2f8;
  --blush: #fdf2f8;
  --rose: #ec4899;
  --lavender: #8b5cf6;
  --sage: #059669;
  --line: #eadde8;
  --gold: #b78a45;
  --danger: #b42318;
  --shadow: 0 8px 24px rgba(7, 29, 58, 0.08);
  --shadow-soft: 0 2px 8px rgba(7, 29, 58, 0.08);
  --focus-ring: 0 0 0 3px rgba(236, 72, 153, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Raleway, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(253, 247, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.home-page .brand img {
  width: 10.9rem;
}

.home-page nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: clamp(2rem, 5vw, 5rem);
  color: var(--navy);
  font-size: clamp(0.96rem, 0.55vw + 0.84rem, 1.25rem);
  font-weight: 700;
}

.auth-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.auth-button,
.user-pill {
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  color: white;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 0.65rem;
  font-weight: 900;
  white-space: nowrap;
}

.auth-button {
  cursor: pointer;
}

.user-pill {
  display: inline-flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 10rem;
}

.brand img {
  display: block;
  width: 9.8rem;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 800;
}

nav a {
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--navy-soft);
  border-color: var(--rose);
}

main {
  overflow: hidden;
}

.quiz-shell,
.assessment-section,
.products-section,
.community-section,
.mission-section,
.catalog-hero,
.catalog-section,
.owner-section {
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 4rem);
}

.quiz-shell {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, #e7f5ff 0%, #f9fbfb 43%, #f7eee6 100%);
}

.quiz-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 32%, rgba(165, 211, 241, 0.8), transparent 30%),
    radial-gradient(ellipse at 42% 58%, rgba(135, 191, 225, 0.42), transparent 38%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 34%);
  filter: blur(0.5px);
  pointer-events: none;
}

.quiz-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25vh;
  background: linear-gradient(180deg, rgba(7, 29, 58, 0), #071d3a 44%);
  pointer-events: none;
}

.quiz-intro {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
}

.visual-landing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding: clamp(6.5rem, 13vh, 9rem) 0 0;
  text-align: left;
  transform: translateY(var(--hero-scroll, 0px));
  transition: transform 80ms linear;
  will-change: transform;
}

.hero-main {
  position: relative;
  display: grid;
  min-height: 68vh;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
}

.hero-text-block {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 58rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: clamp(0.76rem, 0.42vw + 0.62rem, 1rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quiz-intro h1,
.catalog-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Lora, Georgia, serif;
  font-size: clamp(3.25rem, 9vw, 9.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-kicker {
  margin: 0 0 clamp(1.25rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 0.9vw + 0.85rem, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-statement {
  display: grid;
  gap: clamp(0.2rem, 1vw, 1rem);
  color: rgba(255, 255, 255, 0.88);
  font-family: Raleway, system-ui, sans-serif;
  font-size: clamp(4.2rem, 13.5vw, 15.5rem);
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: 0;
  transform: translateY(var(--hero-scroll, 0px));
  transition: transform 80ms linear;
  will-change: transform;
}

.hero-motto {
  max-width: 58rem;
  margin: 0;
  color: var(--navy);
  font-family: Lora, Georgia, serif;
  font-size: clamp(4.7rem, 7vw, 9rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: none;
}

.hero-subcopy {
  max-width: 28rem;
  margin: clamp(1.2rem, 2vw, 1.8rem) 0 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 0.9vw + 0.95rem, 1.7rem);
  line-height: 1.55;
}

.hero-statement span {
  display: block;
  max-width: 100%;
  text-wrap: balance;
}

.hero-statement span:nth-child(2) {
  padding-left: clamp(1.5rem, 15vw, 17rem);
}

.hero-note {
  width: min(28rem, 100%);
  margin: clamp(2.5rem, 9vw, 7rem) 0 0;
  padding-left: 1.2rem;
  color: rgba(7, 29, 58, 0.62);
  border-left: 1px solid rgba(7, 29, 58, 0.22);
  font-size: clamp(1rem, 1vw + 0.78rem, 1.35rem);
  line-height: 1.5;
}

.quiz-intro p:not(.hero-kicker):not(.hero-note):not(.hero-subcopy),
.catalog-hero p,
.section-heading p,
.mission-copy p,
.community-copy p,
.market-heading p {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1rem, 1vw + 0.75rem, 1.45rem);
  line-height: 1.75;
}

.hero-actions,
.quiz-controls,
.results-actions,
.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-link-action {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 13.7rem;
  padding: 0 0 0.65rem;
  color: var(--navy);
  border-bottom: 1px solid currentColor;
  font-size: clamp(1rem, 0.5vw + 0.88rem, 1.25rem);
  font-weight: 800;
}

.hero-link-action::after {
  content: "->";
  font-weight: 700;
}

.hero-insight-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(28rem, 1.55fr) minmax(17rem, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  min-height: 15.5rem;
  padding: clamp(1.6rem, 3vw, 3rem) clamp(1.5rem, 5vw, 6rem);
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(71, 132, 174, 0.34), transparent 45%),
    #071d3a;
}

.insight-start span,
.community-preview span {
  display: block;
  color: rgba(219, 233, 242, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-start p,
.community-preview p,
.insight-steps p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.insight-start p {
  font-size: clamp(1rem, 0.45vw + 0.9rem, 1.28rem);
}

.insight-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
  text-align: left;
}

.insight-steps div {
  position: relative;
  min-width: 0;
}

.insight-steps strong {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  color: white;
  border: 1px solid rgba(219, 233, 242, 0.8);
  border-radius: 50%;
  font-size: 1.28rem;
}

.insight-steps h2 {
  margin: 1.2rem 0 0;
  color: white;
  font-size: 1.25rem;
  line-height: 1.2;
}

.community-preview {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(219, 233, 242, 0.42);
}

.button,
.product-card button,
.question-form button,
.reply-form button,
.community-owner-login button,
.owner-form button,
.owner-login button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.85rem clamp(1.05rem, 0.65vw + 0.8rem, 1.45rem);
  border: 1px solid transparent;
  border-radius: 0.65rem;
  cursor: pointer;
  font-size: clamp(0.92rem, 0.35vw + 0.8rem, 1.1rem);
  font-weight: 900;
  transition: box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.product-card button:hover,
.question-form button:hover,
.reply-form button:hover,
.community-owner-login button:hover,
.owner-form button:hover,
.owner-login button:hover {
  box-shadow: var(--shadow-soft);
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.primary {
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow-soft);
}

.quiet,
.ghost {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--line);
}

.product-tag,
.rating-pill,
.question-post span,
.suggestion-preview span {
  padding: 0.42rem 0.6rem;
  color: var(--navy);
  background: var(--blue-mist);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.shelf-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.shelf-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.assessment-section,
.products-section,
.catalog-section {
  background: var(--mist);
}

.section-heading,
.community-copy,
.market-heading,
.catalog-inner,
.owner-inner {
  max-width: 78rem;
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading h2,
.mission-copy h2,
.community-copy h2,
.market-heading h2,
.owner-inner h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.section-heading p {
  margin-inline: auto;
}

.assessment-layout,
.community-layout {
  display: grid;
  gap: 1rem;
  width: min(100%, 78rem);
  max-width: 78rem;
  margin: 0 auto;
  align-items: start;
}

.assessment-layout {
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
}

.assessment-layout > *,
.quiz-form,
.progress-panel,
.quiz-group,
.question-block {
  min-width: 0;
}

.progress-panel,
.quiz-form,
.results-panel,
.question-form,
.questions-feed,
.product-card,
.owner-panel,
.owner-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
}

.progress-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
  overflow: hidden;
}

.progress-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy);
  font-size: clamp(0.9rem, 0.32vw + 0.8rem, 1.08rem);
  font-weight: 900;
}

.progress-bar {
  height: 0.7rem;
  margin: 1rem 0;
  overflow: hidden;
  background: var(--mist);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--navy);
  transition: width 240ms ease;
}

.section-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-list li {
  padding: clamp(0.62rem, 0.3vw + 0.52rem, 0.78rem) clamp(0.7rem, 0.42vw + 0.54rem, 0.95rem);
  color: var(--muted);
  background: var(--paper);
  border-radius: 0.5rem;
  font-size: clamp(0.86rem, 0.3vw + 0.76rem, 1.04rem);
  font-weight: 800;
}

.section-list li.complete {
  color: var(--navy);
  background: var(--blue-mist);
}

.quiz-form,
.results-panel,
.question-form,
.questions-feed,
.owner-panel,
.owner-form {
  padding: clamp(1rem, 2.4vw, 2.75rem);
  max-width: 100%;
  overflow: hidden;
}

.quiz-group {
  padding: 0 0 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.quiz-group.single-question {
  display: grid;
  gap: clamp(1rem, 1vw, 1.55rem);
  min-height: clamp(18rem, 36vw, 25rem);
  padding: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.quiz-group:last-of-type {
  margin-bottom: 0;
}

.quiz-step-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--navy);
  font-size: clamp(0.82rem, 0.34vw + 0.72rem, 1.02rem);
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-step-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quiz-group h3,
.product-card h3,
.feed-header h3,
.suggestion-preview h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: clamp(1.24rem, 0.9vw + 1rem, 1.85rem);
  line-height: 1.14;
}

.quiz-group > p,
.product-card p,
.suggestion-preview p,
.owner-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.45vw + 0.88rem, 1.2rem);
  line-height: 1.6;
}

.question-block {
  margin-top: 1rem;
  min-width: 0;
}

.question-block legend,
.rank-label,
.question-form label,
.owner-form label,
.owner-login label {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: clamp(0.95rem, 0.4vw + 0.82rem, 1.16rem);
  font-weight: 900;
}

.option-grid,
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: clamp(0.65rem, 0.45vw, 0.95rem);
}

.option-card,
.concerns-grid label {
  display: flex;
  min-height: clamp(4.3rem, 4.5vw, 5.35rem);
  padding: clamp(0.8rem, 0.55vw + 0.6rem, 1.05rem);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
}

.option-card input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}

.option-card span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 0.42vw + 0.84rem, 1.17rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.option-card strong {
  color: var(--navy);
}

.option-card:has(input:checked) {
  border-color: rgba(236, 72, 153, 0.45);
  background: linear-gradient(180deg, #fff, var(--blush));
  box-shadow: var(--focus-ring);
}

.concerns-grid label {
  align-items: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  color: var(--navy);
  font-size: clamp(0.92rem, 0.35vw + 0.82rem, 1.08rem);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.loading-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 78rem;
  margin: 1.2rem auto 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
}

.loading-panel[hidden] {
  display: none;
}

.loading-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.loading-pulse {
  width: 3.2rem;
  height: 3.2rem;
  border: 0.45rem solid var(--blue-mist);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.results-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 8rem;
  height: 8rem;
  color: var(--navy);
  background: var(--surface);
  border: 0.7rem solid var(--blue-mist);
  border-radius: 50%;
}

.score-ring span {
  font-size: 2rem;
  font-weight: 900;
}

.score-ring small {
  max-width: 4.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-grid,
.product-grid,
.suggestion-preview {
  display: grid;
  gap: 0.8rem;
}

.profile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.profile-item {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.profile-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-item strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.recommendations > div {
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.product-suggestions {
  margin-top: 1rem;
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.product-suggestions h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.product-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.research-product-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.research-product-card span {
  width: fit-content;
  padding: 0.32rem 0.52rem;
  color: var(--navy);
  background: var(--blue-mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.research-product-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.research-product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.research-product-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.recommendations h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.recommendations li {
  margin-bottom: 0.55rem;
  color: var(--muted);
  line-height: 1.5;
}

.mission-section {
  display: block;
  background:
    linear-gradient(135deg, rgba(7, 29, 58, 0.98), rgba(18, 52, 92, 0.96)),
    var(--navy);
}

.mission-copy {
  max-width: 78rem;
  margin-inline: auto;
}

.mission-copy .eyebrow {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.08em;
}

.mission-copy h2,
.mission-copy p {
  color: white;
}

.market-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.74fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.market-heading h2 {
  max-width: 13ch;
}

.shelf-visual {
  margin: 0;
  aspect-ratio: 16 / 11;
}

.suggestion-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 78rem;
  margin: 1rem auto 0;
}

.suggestion-preview article {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.suggestion-preview span {
  display: inline-flex;
  margin-bottom: 1rem;
}

.community-section {
  background:
    linear-gradient(180deg, var(--paper), #fff);
}

.community-page-hero {
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 4rem);
  background:
    radial-gradient(ellipse at 16% 18%, rgba(236, 72, 153, 0.1), transparent 32%),
    linear-gradient(180deg, #fff, var(--paper));
}

.community-page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Lora, Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.community-page-hero p {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.community-layout {
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  margin-top: 1.5rem;
}

.question-form {
  display: grid;
  gap: 0.75rem;
}

.question-form input,
.question-form textarea,
.question-form select,
.reply-form input,
.community-owner-login input,
.owner-form input,
.owner-form textarea,
.owner-form select,
.owner-login input {
  width: 100%;
  padding: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.question-form input:focus,
.question-form textarea:focus,
.question-form select:focus,
.reply-form input:focus,
.community-owner-login input:focus,
.owner-form input:focus,
.owner-form textarea:focus,
.owner-form select:focus,
.owner-login input:focus {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.question-form textarea,
.owner-form textarea {
  resize: vertical;
}

.guardian-status {
  min-height: 3rem;
  padding: 0.75rem;
  color: var(--navy);
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  line-height: 1.45;
}

.guardian-status.blocked {
  color: var(--danger);
  background: #fff1f0;
  border-color: #fecdca;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feed-header span {
  color: var(--muted);
  font-weight: 900;
}

.question-feed {
  display: grid;
  gap: 0.55rem;
}

.question-post {
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.question-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.question-post h4 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}

.question-post p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

.question-post > p:not(.post-author) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.question-post .post-author {
  margin: -0.05rem 0 0.35rem;
  color: var(--navy-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0;
}

.question-actions span,
.like-button {
  min-height: 2.25rem;
  padding: 0.4rem 0.6rem;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.like-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.like-button.liked {
  color: white;
  background: var(--rose);
  border-color: var(--rose);
}

.like-pop {
  position: absolute;
  left: 50%;
  top: -0.4rem;
  color: var(--gold);
  pointer-events: none;
  transform: translate(-50%, 0);
  animation: like-pop 520ms ease forwards;
}

.community-owner-login,
.reply-form {
  display: grid;
  gap: 0.55rem;
}

.community-owner-login {
  grid-template-columns: minmax(12rem, 1fr) auto;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.community-owner-login[hidden] {
  display: none;
}

.reply-thread {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.reply-dropdown {
  margin: 0.35rem 0;
  padding: 0.38rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.reply-dropdown summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.empty-replies {
  margin: 0;
  color: var(--muted);
}

.reply-message {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.5rem 0.6rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.reply-message p {
  margin: 0;
}

.reply-message span {
  color: var(--navy-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.delete-reply {
  justify-self: start;
  padding: 0.35rem 0.55rem;
  color: #7a2d2d;
  background: #f7e6e3;
  border: 1px solid #deb9b3;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.reply-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
}

.reply-form input {
  min-height: 2rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
}

.reply-form button {
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.84rem;
}

@keyframes like-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.2rem) scale(0.85);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -1.5rem) scale(1.05);
  }
}

.delete-question {
  padding: 0.45rem 0.65rem;
  color: var(--danger);
  background: #fff1f0;
  border: 1px solid #fecdca;
  border-radius: 0.55rem;
  cursor: pointer;
  font-weight: 900;
}

.view-all-link {
  display: inline-flex;
  margin: 0 0 1rem;
  color: var(--navy);
  font-weight: 900;
  border-bottom: 2px solid var(--rose);
}

.catalog-hero {
  background:
    radial-gradient(ellipse at 86% 20%, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #fff, var(--paper));
}

.catalog-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 auto 1rem;
  max-width: 78rem;
}

.shelf-filter {
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  cursor: pointer;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.shelf-filter.active {
  color: white;
  background: var(--rose);
  border-color: var(--rose);
}

.shelf-filter:hover {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: var(--shadow-soft);
}

.product-grid {
  max-width: 78rem;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 24rem));
  justify-content: start;
}

.product-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-height: 100%;
  padding: clamp(1rem, 3vw, 1.35rem);
  overflow: hidden;
}

.product-card[hidden] {
  display: none;
}

.product-art {
  min-height: 11rem;
  margin: calc(clamp(1rem, 3vw, 1.45rem) * -1) calc(clamp(1rem, 3vw, 1.45rem) * -1) 0;
  background-image: url("assets/postpure-product-shelf.png");
  background-size: 240%;
  border-bottom: 1px solid var(--line);
}

.product-art.image {
  margin: calc(clamp(1rem, 3vw, 1.45rem) * -1) calc(clamp(1rem, 3vw, 1.45rem) * -1) 0;
  background: var(--paper);
}

.product-art.image img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  display: block;
  object-fit: cover;
}

.product-art.cleanser {
  background-position: 12% 48%;
}

.product-art.leavein {
  background-position: 34% 48%;
}

.product-art.mask {
  background-position: 52% 48%;
}

.product-art.gel {
  background-position: 70% 48%;
}

.product-art.serum {
  background-position: 86% 48%;
}

.product-art.tonic {
  background-position: 96% 48%;
}

.product-art.custom {
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--blue-mist);
  font-family: Lora, Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
}

.product-meta,
.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.product-meta {
  flex-wrap: wrap;
}

.rating-stack {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.rating-row span:first-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.rating-row strong {
  color: var(--navy);
}

.product-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.product-card dl div {
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.product-card dt {
  color: var(--navy-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
}

.empty-catalog {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 0.85rem;
}

.empty-catalog h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.empty-catalog p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-card button,
.reference-link {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
}

.reference-link {
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1rem;
  border-radius: 0.65rem;
  font-weight: 900;
}

.owner-section {
  background: linear-gradient(180deg, var(--paper), #fff);
}

.owner-panel {
  margin-bottom: 1rem;
}

.owner-login {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  max-width: 34rem;
  margin-top: 1rem;
}

.owner-form[hidden],
.owner-panel[hidden] {
  display: none;
}

.owner-form {
  display: grid;
  gap: 0.8rem;
  max-width: 78rem;
  margin: 0 auto;
}

.owner-form .form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .visual-landing,
  .hero-statement {
    transform: none !important;
  }
}

.footer-logo {
  width: 5.6rem;
  height: auto;
  padding: 0.35rem;
  background: white;
  border-radius: 0.5rem;
}

.site-footer span:first-child {
  font-weight: 900;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: white;
}

.footer-nav a {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 58, 0.68);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 24px 80px rgba(7, 29, 58, 0.28);
}

.auth-dialog h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.auth-dialog p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-switch {
  min-height: 2.5rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.form-message {
  min-height: 1.35rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.auth-form label {
  color: var(--ink);
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  padding: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.modal-close,
.nudge-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.45rem 0.65rem;
}

.quiz-nudge {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 18px 48px rgba(7, 29, 58, 0.18);
}

.quiz-nudge strong {
  display: block;
  padding-right: 4rem;
  color: var(--navy);
}

.quiz-nudge p {
  margin: 0.55rem 0 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.quiz-nudge .button {
  width: 100%;
}

.nudge-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.55rem;
}

@media (max-width: 980px) {
  .quiz-shell,
  .assessment-layout,
  .mission-section,
  .community-layout,
  .market-heading,
  .catalog-inner {
    grid-template-columns: 1fr;
  }

  .quiz-shell {
    min-height: 100vh;
  }

  .home-page .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .home-page nav {
    position: static;
    transform: none;
    width: 100%;
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .hero-main {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8rem;
  }

  .hero-insight-band {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .insight-steps {
    gap: 1rem;
  }

  .community-preview {
    padding-left: 0;
    border-left: 0;
  }

  .progress-panel {
    position: static;
  }

  .section-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  }

  .profile-grid,
  .product-suggestion-grid,
  .suggestion-preview,
  .owner-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 24rem));
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-area {
    width: 100%;
    justify-content: flex-start;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .quiz-intro h1,
  .catalog-hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .visual-landing {
    padding-top: 0;
  }

  .hero-motto {
    max-width: 100%;
    font-size: clamp(3.4rem, 16vw, 5rem);
    line-height: 0.94;
  }

  .hero-subcopy {
    max-width: 20rem;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 1rem;
  }

  .hero-link-action {
    min-width: min(100%, 13.2rem);
  }

  .hero-insight-band {
    padding-inline: 1rem;
  }

  .insight-steps {
    grid-template-columns: 1fr;
  }

  .insight-steps strong {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }

  .assessment-section {
    padding-inline: 0.85rem;
  }

  .assessment-layout {
    gap: 0.85rem;
  }

  .progress-panel,
  .quiz-form,
  .results-panel {
    padding: 0.9rem;
  }

  .progress-top {
    gap: 0.35rem 0.75rem;
    font-size: 0.82rem;
  }

  .section-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-list li {
    padding: 0.55rem 0.58rem;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .quiz-step-meta {
    gap: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .quiz-group h3 {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .question-block legend {
    line-height: 1.35;
  }

  .option-grid,
  .profile-grid,
  .product-suggestion-grid,
  .suggestion-preview,
  .recommendations,
  .owner-form .form-grid,
  .owner-login,
  .community-owner-login {
    grid-template-columns: 1fr;
  }

  .concerns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .option-card,
  .concerns-grid label {
    min-height: 3.55rem;
    padding: 0.68rem;
  }

  .quiz-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .quiz-controls .button {
    width: 100%;
    min-width: 0;
    padding-inline: 0.75rem;
  }

  #submitQuiz {
    grid-column: 1 / -1;
  }

  .reply-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-grid {
    grid-template-columns: minmax(0, min(100%, 24rem));
  }

  .results-heading,
  .results-actions,
  .loading-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .loading-panel {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 7rem;
    height: 7rem;
  }

  .brand img {
    width: 9rem;
  }

  .catalog-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .shelf-filter {
    flex: 0 0 auto;
  }

  .product-art {
    min-height: 13rem;
    background-size: 190%;
  }
}

/* Premium dark studio polish */
:root {
  --navy: #f6f4ee;
  --navy-soft: #d8ded4;
  --ink: #f6f4ee;
  --muted: rgba(246, 244, 238, 0.62);
  --paper: #030706;
  --surface: rgba(255, 255, 255, 0.045);
  --mist: #050807;
  --blue-mist: rgba(165, 255, 95, 0.1);
  --blush: rgba(255, 255, 255, 0.055);
  --rose: #a5ff5f;
  --lavender: #9ed6c9;
  --sage: #a5ff5f;
  --line: rgba(255, 255, 255, 0.105);
  --gold: #ffc774;
  --danger: #ff8f82;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.22);
  --focus-ring: 0 0 0 3px rgba(165, 255, 95, 0.22);
}

html {
  background: #030706;
}

body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 78% 4%, rgba(255, 199, 116, 0.13), transparent 31rem),
    radial-gradient(ellipse at 8% 22%, rgba(0, 68, 58, 0.44), transparent 34rem),
    linear-gradient(180deg, #030706 0%, #07100e 44%, #030706 100%);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 58%);
}

.site-header,
.home-page .site-header {
  position: sticky;
  top: 0.9rem;
  left: auto;
  right: auto;
  inset: auto;
  width: min(1180px, calc(100% - 2rem));
  margin: 0.9rem auto 0;
  padding: 0.7rem 0.8rem;
  color: rgba(246, 244, 238, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.9rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(22px) saturate(145%);
}

.home-page .site-header {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 30;
  margin: 0;
  transform: translateX(-50%);
}

.brand,
.home-page .brand img,
.brand img {
  min-width: auto;
  width: auto;
}

.brand img,
.home-page .brand img {
  width: clamp(7.7rem, 9vw, 9.7rem);
  filter: brightness(0) invert(1) sepia(0.15) saturate(0.5);
  opacity: 0.92;
}

nav,
.home-page nav {
  position: static;
  transform: none;
  color: rgba(246, 244, 238, 0.66);
  gap: clamp(0.8rem, 2.5vw, 2rem);
  font-size: clamp(0.74rem, 0.28vw + 0.68rem, 0.9rem);
  font-weight: 600;
}

nav a {
  padding: 0.45rem 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

nav a:hover,
nav a.active {
  color: #f6f4ee;
  border-color: rgba(165, 255, 95, 0.58);
}

.auth-button,
.user-pill {
  min-height: 2.45rem;
  color: #08100d;
  background: rgba(246, 244, 238, 0.94);
  border-color: rgba(246, 244, 238, 0.76);
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.ghost-auth {
  color: var(--navy);
  background: transparent;
  border-color: rgba(7, 29, 58, 0.22);
}

.auth-button:hover {
  background: #ffffff;
  border-color: rgba(165, 255, 95, 0.48);
  box-shadow: 0 10px 28px rgba(165, 255, 95, 0.12);
}

main {
  overflow: clip;
}

.quiz-shell {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.13) 0%, rgba(3, 7, 6, 0.5) 62%, #030706 100%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 199, 116, 0.22), transparent 26rem),
    radial-gradient(ellipse at 18% 34%, rgba(0, 68, 58, 0.6), transparent 34rem),
    linear-gradient(135deg, #001f1c 0%, #030706 56%, #070b09 100%);
}

.quiz-shell::before {
  background:
    linear-gradient(90deg, rgba(3, 7, 6, 0.72), rgba(3, 7, 6, 0.22) 43%, rgba(3, 7, 6, 0.72)),
    radial-gradient(ellipse at 74% 14%, rgba(255, 245, 208, 0.28), transparent 19rem),
    radial-gradient(ellipse at 72% 44%, rgba(165, 255, 95, 0.08), transparent 22rem),
    linear-gradient(180deg, rgba(246, 244, 238, 0.08), transparent 38%);
  filter: none;
}

.quiz-shell::after {
  height: 31vh;
  background: linear-gradient(180deg, rgba(3, 7, 6, 0), #030706 74%);
}

.visual-landing {
  padding: clamp(7rem, 14vh, 10rem) 0 0;
}

.hero-main {
  min-height: 71vh;
  padding-inline: clamp(1.25rem, 6vw, 6.5rem);
}

.hero-text-block {
  max-width: 60rem;
}

.hero-motto,
.quiz-intro h1,
.catalog-hero h1,
.community-page-hero h1,
.section-heading h2,
.mission-copy h2,
.community-copy h2,
.market-heading h2,
.owner-inner h2,
.auth-dialog h2,
.results-heading h2 {
  color: #f6f4ee;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

.hero-motto {
  max-width: 53rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.2rem, 8.8vw, 9.4rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero-title-main,
.hero-title-script {
  display: block;
}

.hero-title-main {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.hero-title-script {
  margin-top: 0.055em;
  font-family: "Snell Roundhand", "Brush Script MT", Lobster, cursive;
  font-size: 1.02em;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero-subcopy {
  max-width: 31rem;
  color: rgba(246, 244, 238, 0.68);
  font-size: clamp(1rem, 0.72vw + 0.85rem, 1.34rem);
  font-weight: 400;
}

.hero-link-action {
  min-width: 0;
  padding: 0.85rem 1rem;
  color: rgba(246, 244, 238, 0.9);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.75rem;
  backdrop-filter: blur(16px);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.hero-link-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(165, 255, 95, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.hero-link-action::after {
  content: ">";
  color: #a5ff5f;
}

.hero-insight-band {
  min-height: 14.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: minmax(12rem, 0.78fr) minmax(0, 1.8fr) minmax(12rem, 0.78fr);
  gap: clamp(1.5rem, 2.8vw, 3.75rem);
  padding: clamp(2rem, 3vw, 3.2rem) clamp(1.25rem, 4vw, 4.75rem);
  overflow: hidden;
  color: rgba(246, 244, 238, 0.88);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(3, 7, 6, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.insight-start span,
.community-preview span,
.eyebrow {
  color: rgba(165, 255, 95, 0.78);
  font-size: clamp(1.1rem, 0.72vw + 0.9rem, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.insight-start p,
.community-preview p,
.insight-steps p,
.quiz-intro p:not(.hero-kicker):not(.hero-note):not(.hero-subcopy),
.catalog-hero p,
.section-heading p,
.mission-copy p,
.community-copy p,
.market-heading p,
.product-card p,
.suggestion-preview p,
.owner-panel p,
.community-page-hero p,
.empty-catalog p,
.research-product-card p,
.recommendations li,
.auth-dialog p,
.quiz-nudge p {
  color: rgba(246, 244, 238, 0.58);
  font-weight: 400;
}

.insight-start,
.community-preview,
.insight-steps,
.insight-steps div {
  min-width: 0;
}

.insight-start p,
.community-preview p {
  max-width: 22rem;
  font-size: clamp(1rem, 0.75vw + 0.82rem, 1.45rem);
  line-height: 1.55;
}

.insight-steps {
  align-items: start;
  gap: clamp(1rem, 2vw, 2.4rem);
  text-align: center;
}

.insight-steps div {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.insight-steps strong {
  color: #a5ff5f;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.16);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

.insight-steps h2 {
  color: #f6f4ee;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 1.85vw + 1rem, 3.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
}

.insight-steps p {
  max-width: 11rem;
  font-size: clamp(1rem, 0.68vw + 0.82rem, 1.35rem);
  line-height: 1.45;
}

.community-preview {
  justify-self: end;
  max-width: 22rem;
  border-left-color: rgba(255, 255, 255, 0.12);
}

.quiz-shell,
.assessment-section,
.products-section,
.community-section,
.mission-section,
.catalog-hero,
.catalog-section,
.owner-section,
.community-page-hero {
  padding-block: clamp(5.5rem, 10vw, 10rem);
}

.assessment-section,
.products-section,
.catalog-section,
.community-section,
.owner-section {
  background:
    radial-gradient(ellipse at 92% 12%, rgba(0, 53, 47, 0.34), transparent 30rem),
    linear-gradient(180deg, #030706 0%, #07100e 52%, #030706 100%);
}

.mission-section {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 45%),
    radial-gradient(ellipse at 16% 18%, rgba(165, 255, 95, 0.08), transparent 24rem),
    #050807;
  border-block: 1px solid rgba(255, 255, 255, 0.075);
}

.section-heading,
.community-copy,
.market-heading,
.catalog-inner,
.owner-inner,
.mission-copy {
  max-width: 76rem;
}

.section-heading {
  margin-bottom: clamp(2.6rem, 5vw, 4.7rem);
}

.section-heading h2,
.mission-copy h2,
.community-copy h2,
.market-heading h2,
.owner-inner h2 {
  font-size: clamp(2.35rem, 5.6vw, 5.45rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.mission-copy .eyebrow {
  color: #f6f4ee;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.progress-panel,
.quiz-form,
.results-panel,
.question-form,
.questions-feed,
.product-card,
.owner-panel,
.owner-form,
.suggestion-preview article,
.recommendations > div,
.product-suggestions,
.research-product-card,
.profile-item,
.empty-catalog,
.auth-dialog,
.quiz-nudge,
.community-owner-login,
.reply-dropdown,
.reply-message,
.rating-stack,
.product-card dl div {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 0.8rem;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(130%);
}

.product-card,
.question-post,
.research-product-card,
.suggestion-preview article {
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.question-post:hover,
.research-product-card:hover,
.suggestion-preview article:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.quiz-form,
.results-panel,
.question-form,
.questions-feed,
.owner-panel,
.owner-form {
  padding: clamp(1.15rem, 2.4vw, 2.5rem);
}

.progress-panel {
  top: 6.5rem;
}

.progress-top,
.quiz-step-meta,
.question-block legend,
.rank-label,
.question-form label,
.owner-form label,
.owner-login label,
.auth-form label,
.feed-header span,
.profile-item span,
.score-ring small,
.rating-row span:first-child {
  color: rgba(246, 244, 238, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.progress-bar,
.section-list li,
.profile-item,
.recommendations > div,
.product-suggestions,
.rating-stack,
.community-owner-login {
  background: rgba(255, 255, 255, 0.035);
}

.progress-bar span {
  background: linear-gradient(90deg, #a5ff5f, #ffc774);
}

.section-list li {
  color: rgba(246, 244, 238, 0.5);
  border: 1px solid transparent;
}

.section-list li.complete {
  color: #f6f4ee;
  background: rgba(165, 255, 95, 0.095);
  border-color: rgba(165, 255, 95, 0.16);
}

.quiz-group h3,
.product-card h3,
.feed-header h3,
.suggestion-preview h3,
.product-suggestions h3,
.recommendations h3,
.empty-catalog h3,
.loading-panel h3,
.question-post h4,
.research-product-card h4,
.profile-item strong,
.rating-row strong,
.question-post .post-author,
.reply-message span,
.product-card dt,
.product-card dd,
.score-ring,
.score-ring span,
.reply-dropdown summary,
.guardian-status {
  color: #f6f4ee;
}

.quiz-group h3,
.feed-header h3,
.product-card h3,
.product-suggestions h3,
.recommendations h3,
.empty-catalog h3,
.loading-panel h3,
.research-product-card h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.quiz-group.single-question {
  gap: clamp(1.35rem, 1.8vw, 2.25rem);
  min-height: clamp(22rem, 38vw, 29rem);
}

.quiz-step-meta {
  color: rgba(246, 244, 238, 0.64);
  font-size: clamp(1.08rem, 0.58vw + 0.95rem, 1.45rem);
  font-weight: 700;
}

.quiz-group.single-question h3 {
  max-width: 20ch;
  color: #f6f4ee;
  font-size: clamp(2.45rem, 4.2vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.quiz-group.single-question > p {
  max-width: 44rem;
  color: rgba(246, 244, 238, 0.62);
  font-size: clamp(1.4rem, 0.95vw + 1rem, 2.05rem);
  line-height: 1.45;
}

.option-card,
.concerns-grid label,
.question-form input,
.question-form textarea,
.question-form select,
.reply-form input,
.community-owner-login input,
.owner-form input,
.owner-form textarea,
.owner-form select,
.owner-login input,
.auth-form input {
  color: #f6f4ee;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 0.7rem;
}

.question-form input::placeholder,
.question-form textarea::placeholder,
.reply-form input::placeholder,
.community-owner-login input::placeholder,
.owner-form input::placeholder,
.owner-form textarea::placeholder,
.owner-login input::placeholder,
.auth-form input::placeholder {
  color: rgba(246, 244, 238, 0.35);
}

.option-card,
.concerns-grid label {
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.option-card:hover,
.concerns-grid label:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.option-card span,
.question-post p,
.empty-replies,
.reply-message,
.product-card p,
.research-product-card small {
  color: rgba(246, 244, 238, 0.56);
}

.option-card strong,
.concerns-grid label {
  color: rgba(246, 244, 238, 0.9);
}

.option-card:has(input:checked) {
  border-color: rgba(165, 255, 95, 0.48);
  background: rgba(165, 255, 95, 0.11);
  box-shadow: 0 0 0 3px rgba(165, 255, 95, 0.08);
}

.button,
.product-card button,
.question-form button,
.reply-form button,
.community-owner-login button,
.owner-form button,
.owner-login button,
.reference-link {
  border-radius: 0.72rem;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary,
.shelf-filter.active {
  color: #07100e;
  background: #f6f4ee;
  border-color: rgba(246, 244, 238, 0.76);
  box-shadow: 0 14px 34px rgba(246, 244, 238, 0.08);
}

.primary:hover,
.shelf-filter.active:hover {
  background: #ffffff;
  border-color: rgba(165, 255, 95, 0.46);
  box-shadow: 0 16px 34px rgba(165, 255, 95, 0.12);
}

.quiet,
.ghost,
.product-card button,
.reference-link,
.question-form button,
.reply-form button,
.community-owner-login button,
.owner-form button,
.owner-login button,
.shelf-filter {
  color: rgba(246, 244, 238, 0.88);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.quiet:hover,
.ghost:hover,
.product-card button:hover,
.reference-link:hover,
.question-form button:hover,
.reply-form button:hover,
.community-owner-login button:hover,
.owner-form button:hover,
.owner-login button:hover,
.shelf-filter:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(165, 255, 95, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.product-tag,
.rating-pill,
.question-post span,
.suggestion-preview span,
.research-product-card span {
  color: rgba(246, 244, 238, 0.76);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
}

.loading-panel {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.105);
}

.loading-pulse {
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: #a5ff5f;
}

.score-ring {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(165, 255, 95, 0.16);
}

.catalog-hero,
.community-page-hero {
  background:
    radial-gradient(ellipse at 82% 14%, rgba(255, 199, 116, 0.12), transparent 25rem),
    linear-gradient(180deg, #030706, #07100e);
}

.product-grid {
  gap: clamp(1rem, 2vw, 1.4rem);
}

.product-art,
.product-art.image,
.product-art.custom {
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.105);
  filter: brightness(0.78) saturate(0.85);
}

.product-art.custom {
  color: rgba(246, 244, 238, 0.9);
  font-family: "Playfair Display", Georgia, serif;
}

.question-post {
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 0.74rem;
}

.question-actions span,
.like-button {
  color: rgba(246, 244, 238, 0.78);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.105);
}

.like-button:hover,
.like-button.liked {
  color: #07100e;
  background: #a5ff5f;
  border-color: #a5ff5f;
}

.like-pop {
  color: #ffc774;
  text-shadow: 0 6px 20px rgba(255, 199, 116, 0.32);
}

.guardian-status {
  background: rgba(165, 255, 95, 0.09);
  border-color: rgba(165, 255, 95, 0.18);
}

.guardian-status.blocked,
.delete-question,
.delete-reply {
  color: #ffd1ca;
  background: rgba(255, 143, 130, 0.12);
  border-color: rgba(255, 143, 130, 0.28);
}

.view-all-link {
  color: #f6f4ee;
  border-bottom-color: rgba(165, 255, 95, 0.62);
}

.site-footer {
  color: rgba(246, 244, 238, 0.7);
  background:
    radial-gradient(ellipse at 84% 0%, rgba(165, 255, 95, 0.08), transparent 22rem),
    #030706;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: brightness(0) invert(1);
}

.footer-nav,
.footer-nav a {
  color: rgba(246, 244, 238, 0.72);
}

.footer-nav a:hover {
  color: #f6f4ee;
}

.auth-backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-close,
.nudge-close {
  color: rgba(246, 244, 238, 0.8);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
}

.auth-switch {
  color: rgba(246, 244, 238, 0.72);
}

.auth-switch:hover {
  color: #f6f4ee;
}

.form-message {
  color: #ffd1ca;
}

.quiz-nudge {
  color: #f6f4ee;
  background: rgba(3, 7, 6, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
}

.quiz-nudge strong {
  color: #f6f4ee;
}

@media (max-width: 980px) {
  .site-header,
  .home-page .site-header {
    align-items: flex-start;
    width: min(100% - 1.3rem, 46rem);
    padding: 0.85rem;
  }

  .home-page nav,
  nav {
    width: 100%;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero-main {
    min-height: auto;
    padding-top: clamp(8rem, 18vh, 10rem);
  }

  .quiz-shell {
    background:
      linear-gradient(180deg, rgba(3, 7, 6, 0.08), rgba(3, 7, 6, 0.72) 58%, #030706),
      radial-gradient(ellipse at 70% 18%, rgba(255, 199, 116, 0.18), transparent 22rem),
      linear-gradient(135deg, #001f1c, #030706 66%);
  }

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

@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header,
  .home-page .site-header {
    top: 0.65rem;
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin-top: 0.65rem;
  }

  .home-page .site-header {
    top: 0.65rem;
  }

  .brand img,
  .home-page .brand img {
    width: 8.4rem;
  }

  .auth-button,
  .user-pill {
    width: 100%;
  }

  .visual-landing {
    padding-top: 0;
  }

  .hero-main {
    padding: 8.8rem 1rem 0;
  }

  .hero-motto {
    max-width: min(100%, 22rem);
    font-size: clamp(2.55rem, 11.4vw, 3.45rem);
    line-height: 1;
    letter-spacing: -0.025em;
  }

  .hero-title-script {
    margin-top: 0.04em;
  }

  .hero-subcopy {
    max-width: min(100%, 20.5rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 20rem);
  }

  .hero-link-action {
    width: 100%;
    justify-content: space-between;
  }

  .hero-insight-band {
    padding: 1.25rem 1rem 1.7rem;
  }

  .quiz-shell,
  .assessment-section,
  .products-section,
  .community-section,
  .mission-section,
  .catalog-hero,
  .catalog-section,
  .owner-section,
  .community-page-hero {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-block: clamp(4.4rem, 14vw, 6rem);
  }

  .quiz-intro p:not(.hero-kicker):not(.hero-note):not(.hero-subcopy),
  .catalog-hero p,
  .section-heading p,
  .mission-copy p,
  .community-copy p,
  .market-heading p,
  .community-page-hero p {
    max-width: calc(100vw - 2rem);
  }

  .section-heading h2,
  .mission-copy h2,
  .community-copy h2,
  .market-heading h2,
  .owner-inner h2 {
    font-size: clamp(2.15rem, 12vw, 3.55rem);
  }

  .mission-copy .eyebrow {
    font-size: clamp(2.5rem, 15vw, 4.5rem);
  }

  .question-form input,
  .question-form textarea,
  .question-form select,
  .reply-form input,
  .community-owner-login input,
  .owner-form input,
  .owner-form textarea,
  .owner-form select,
  .owner-login input,
  .auth-form input {
    font-size: 1rem;
  }

  .reply-form {
    grid-template-columns: 1fr;
  }

  .quiz-nudge {
    left: 0.75rem;
    right: auto;
    bottom: 0.75rem;
    width: calc(100vw - 2.25rem);
    max-width: calc(100vw - 2.25rem);
  }
}
