:root {
  --bg: #f8f3ee;
  --surface: #fffdfa;
  --ink: #231c1c;
  --muted: #6f6262;
  --accent: #a95f2c;
  --accent-2: #d59c56;
  --line: #eadfd5;
  --ok: #265b4f;
  --shadow: 0 20px 50px rgba(64, 38, 14, 0.13);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --bg-photo-1: url("inspirations/optimized/diversity-beauty-and-portrait-of-a-group-of-women-2026-03-25-05-31-03-utc.jpg");
  --bg-photo-2: url("inspirations/optimized/three-women-pose-confidently-in-studio-portrait-2026-01-09-08-32-19-utc.jpg");
  --bg-photo-3: url("inspirations/optimized/women-inclusion-and-confident-for-skincare-in-stu-2026-01-09-10-44-16-utc.jpg");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(160deg, #fdf9f6 0%, #f6eee7 100%);
  font-family: "Manrope", sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background-image: var(--bg-photo-1), var(--bg-photo-2), var(--bg-photo-3);
  background-repeat: no-repeat;
  background-size: 42vw auto, 34vw auto, 40vw auto;
  background-position: -6vw 10vh, 67vw 12vh, 24vw 70vh;
  opacity: 0.58;
  filter: saturate(1.02) contrast(1.02);
}

body::after {
  z-index: 0;
  background: radial-gradient(circle at 18% 10%, rgba(255, 244, 230, 0.85) 0%, transparent 40%),
    radial-gradient(circle at 87% 20%, rgba(239, 226, 214, 0.78) 0%, transparent 36%),
    linear-gradient(160deg, rgba(253, 249, 246, 0.78) 0%, rgba(246, 238, 231, 0.82) 100%);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  padding-top: 1.2rem;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(64, 38, 14, 0.08);
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  white-space: nowrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.client-logo {
  width: clamp(56px, 8vw, 84px);
  height: clamp(56px, 8vw, 84px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5d8cc;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem;
}

.site-title {
  margin: 0.1rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.site-header__tag,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin: 1rem auto 2rem;
}

.site-footer__inner {
  justify-content: center;
}

.site-footer p {
  white-space: nowrap;
}

.presence-badge {
  margin: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e7d4c3;
  color: #7c5533;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  background: rgba(215, 151, 92, 0.25);
  top: -80px;
  right: -40px;
}

.bg-shape-2 {
  width: 340px;
  height: 340px;
  background: rgba(133, 178, 143, 0.2);
  bottom: -120px;
  left: -80px;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 2rem));
  margin: 2rem auto;
}

.panel {
  display: none;
  background: color-mix(in srgb, var(--surface) 87%, white 13%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 2.2rem);
  backdrop-filter: blur(8px);
}

.panel.active {
  display: block;
  animation: fadeIn 0.45s ease;
}

#questionnaire-disabled-notice h2 {
  margin-bottom: 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin: 0;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

h3 {
  font-size: 1.06rem;
}

p {
  line-height: 1.6;
}

.lead {
  color: #3f3434;
  margin-top: 1rem;
  max-width: 70ch;
}

.intro-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.7rem;
}

.intro-hero__copy {
  border: 1px solid #e6d6c6;
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 242, 234, 0.88) 100%);
  box-shadow: 0 14px 28px rgba(53, 31, 17, 0.08);
}

.intro-hero__copy .lead {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.hero-kpis {
  display: grid;
  gap: 0.48rem;
}

.hero-kpis p {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: #4f4343;
  border-left: 2px solid #bc8963;
  padding: 0.28rem 0 0.28rem 0.68rem;
}

.intro-hero__visual {
  position: relative;
  overflow: hidden;
  border: 1px solid #e6d6c6;
  border-radius: 18px;
  min-height: 198px;
  background: linear-gradient(145deg, rgba(247, 235, 221, 0.94) 0%, rgba(236, 220, 204, 0.9) 100%);
}

.hero-orb {
  position: absolute;
  width: 240px;
  height: 240px;
  top: -88px;
  right: -76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 74, 47, 0.3) 0%, rgba(114, 74, 47, 0.02) 70%);
  animation: orbPulse 8.4s ease-in-out infinite;
}

.hero-card {
  position: absolute;
  border: 1px solid #dcc9b8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(69, 42, 22, 0.07);
  padding: 0.55rem 0.65rem;
  min-width: 148px;
}

.hero-card h3 {
  font-size: 0.96rem;
}

.hero-card .eyebrow {
  margin-bottom: 0.2rem;
  color: #7b6868;
}

.hero-card--one {
  top: 20px;
  left: 16px;
  animation: floatCardA 9s ease-in-out infinite;
}

.hero-card--two {
  top: 88px;
  right: 22px;
  animation: floatCardB 9.8s ease-in-out infinite;
}

.hero-card--three {
  bottom: 14px;
  left: 36px;
  animation: floatCardC 10.2s ease-in-out infinite;
}

.meta-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.2rem 0 1.5rem;
}

.meta-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  background: #fff;
}

.meta-grid h3 {
  margin-bottom: 0.4rem;
}

.meta-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.participant-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  background: #fff;
  margin: 0 0 1.2rem;
}

.participant-form.has-error {
  border-color: #cb6d5b;
  box-shadow: 0 0 0 3px rgba(203, 109, 91, 0.12);
  animation: cardShake 0.35s ease;
}

.participant-form h3 {
  margin-bottom: 0.3rem;
}

.participant-form p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.participant-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #4c4141;
}

.participant-grid input {
  width: 100%;
  border: 1px solid #dfd1c3;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  min-height: 44px;
  font: inherit;
  background: #fffdfb;
}

.participant-grid select {
  min-height: 44px;
}

.participant-grid input:focus {
  outline: 2px solid #e4b993;
  outline-offset: 1px;
}

.consent-wrap {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.consent-wrap .hidden {
  display: none;
}

.checkline {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: #4c4141;
  font-size: 0.88rem;
}

.checkline input {
  margin-top: 0.18rem;
}

.checkline-secondary {
  padding-top: 0.2rem;
  border-top: 1px dashed #eadfd5;
}

.checkline small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hidden {
  display: none;
}

.intro-error {
  margin: 0.8rem 0 0;
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  background: #fff3ef;
  border: 1px solid #f0c5bb;
  color: #9e4b3b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.draft-notice {
  margin: 0.8rem 0 0;
  padding: 0.72rem 0.82rem;
  border-radius: 12px;
  border: 1px solid #e7d4c3;
  background: #fff6ec;
}

.draft-notice__text {
  margin: 0;
  color: #5f4f42;
  font-size: 0.9rem;
}

.draft-notice__actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
}

.draft-notice__actions .btn {
  padding: 0.58rem 0.9rem;
  min-height: 40px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 24px rgba(162, 93, 38, 0.34);
}

.btn-ghost {
  color: #4c4141;
  background: #fff;
  border: 1px solid var(--line);
}

.quiz-header,
.result-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.progress-wrap {
  margin: 1.2rem 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.91rem;
  margin-bottom: 0.45rem;
}

.progress-bar {
  height: 9px;
  border-radius: 999px;
  background: #efe5db;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d29853 0%, #a95f2c 100%);
  transition: width 0.25s ease;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: #fff;
  animation: cardIn 0.25s ease;
}

.question-card.has-error {
  border-color: #cb6d5b;
  box-shadow: 0 0 0 3px rgba(203, 109, 91, 0.12);
  animation: cardShake 0.35s ease;
}

.question-card h3 {
  margin-bottom: 1rem;
  font-size: 1.12rem;
}

.question-error {
  margin-top: 0.85rem;
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  background: #fff3ef;
  border: 1px solid #f0c5bb;
  color: #9e4b3b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.option-list {
  display: grid;
  gap: 0.65rem;
}

.option-item {
  border: 1px solid #eadccc;
  border-radius: var(--radius-md);
  padding: 0.78rem 0.85rem;
  min-height: 52px;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  cursor: pointer;
  background: #fffdfa;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.option-item:hover {
  border-color: #cf9d6a;
}

.option-item.selected {
  border-color: #b86f3a;
  background: #fff2e6;
  transform: translateY(-1px);
}

.option-code {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.83rem;
  color: #6f4d2d;
  background: #f4e1cf;
  flex-shrink: 0;
}

.quiz-actions,
.result-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.result-content {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.result-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: #fff;
}

.result-block h3 {
  margin-bottom: 0.45rem;
}

.result-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pill {
  padding: 0.6rem 0.72rem;
  border-radius: 12px;
  background: #f8efe6;
  border: 1px solid #ebdac9;
  font-size: 0.95rem;
}

.list {
  margin: 0;
  padding-left: 1.15rem;
}

.list li {
  margin-bottom: 0.35rem;
}

.success-tag {
  color: var(--ok);
  font-weight: 700;
}

.save-status {
  margin: 0.7rem 0 0;
  color: #5c4f4f;
  font-size: 0.9rem;
}

.cta-block {
  background: linear-gradient(145deg, #fffaf5 0%, #fff 100%);
  border-color: #e5d2c3;
}

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

.cta-actions .btn {
  text-decoration: none;
  text-align: center;
}

.cta-note {
  margin: 0.8rem 0 0;
  color: #6d6060;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  body::before,
  body::after {
    position: absolute;
  }

  .bg-shape {
    display: none;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .site-header__meta {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .site-header__tag {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .presence-badge {
    font-size: 0.74rem;
    padding: 0.34rem 0.56rem;
  }

  .brand-lockup {
    width: auto;
    min-width: 0;
  }

  .site-title {
    font-size: 1rem;
    white-space: nowrap;
  }

  .client-logo {
    width: clamp(52px, 14vw, 72px);
    height: clamp(52px, 14vw, 72px);
  }

  body::before {
    background-image: var(--bg-photo-2);
    background-size: cover;
    background-position: center top;
    opacity: 0.3;
  }

  .panel {
    backdrop-filter: none;
  }

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

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

  .intro-hero__visual {
    min-height: 170px;
  }

  .hero-card {
    min-width: 132px;
  }

  .cta-actions {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    gap: 0.5rem;
  }

  .meta-grid article {
    padding: 0.7rem;
  }

  .meta-grid h3 {
    font-size: 0.95rem;
  }

  .meta-grid p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .participant-grid {
    grid-template-columns: 1fr;
  }

  .quiz-header,
  .result-header {
    flex-direction: column;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .site-footer p {
    font-size: 0.78rem;
  }

  .btn {
    width: 100%;
  }

  .quiz-actions,
  .result-actions {
    flex-direction: column;
  }

  .draft-notice__actions {
    flex-direction: column;
  }

  .quiz-actions {
    position: sticky;
    bottom: max(0.45rem, env(safe-area-inset-bottom));
    z-index: 3;
    margin-top: 0.85rem;
    padding: 0.5rem;
    border: 1px solid #eadfd5;
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(6px);
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .app-shell {
    width: calc(100vw - 1rem);
  }

  .site-header__inner,
  .site-footer__inner {
    padding: 0.72rem 0.78rem;
  }

  .site-header__tag {
    display: none;
  }

  .presence-badge {
    font-size: 0.7rem;
    padding: 0.28rem 0.5rem;
  }

  .site-title {
    font-size: 0.92rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .panel {
    padding: 0.88rem;
    border-radius: 18px;
  }

  .intro-hero__copy {
    padding: 0.82rem;
  }

  .intro-hero__visual {
    min-height: 152px;
  }

  .hero-card {
    min-width: 118px;
    padding: 0.45rem 0.52rem;
  }

  .hero-card h3 {
    font-size: 0.84rem;
  }

  .hero-card--one {
    top: 14px;
    left: 10px;
  }

  .hero-card--two {
    top: 58px;
    right: 10px;
  }

  .hero-card--three {
    bottom: 10px;
    left: 16px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .question-card h3 {
    font-size: 1.02rem;
  }

  .option-item {
    padding: 0.72rem 0.74rem;
    gap: 0.62rem;
  }

  .quiz-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .quiz-actions .btn {
    width: 100%;
  }

  .result-actions,
  .cta-actions {
    gap: 0.5rem;
  }
}

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

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

@keyframes cardShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.72;
  }
}

@keyframes floatCardA {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes floatCardB {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes floatCardC {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-card--one,
  .hero-card--two,
  .hero-card--three {
    animation: none;
  }
}

@media print {
  body {
    background: white;
  }

  .bg-shape,
  .result-actions,
  .cta-actions,
  .site-header,
  .site-footer,
  #restart-btn-top,
  .quiz-actions,
  .progress-wrap,
  #intro-screen,
  #quiz-screen {
    display: none !important;
  }

  .panel,
  .panel.active {
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0;
    width: 100%;
  }
}
