:root {
  --forest: #2F5D50;
  --ivory: #F7F4EF;
  --gray: #B7B2A9;
  --terracotta: #A96A5B;
  --ink: #243A34;
  --muted: #66736A;
  --paper: #FFFCF7;
  --line: rgba(47, 93, 80, 0.18);
  --shadow: 0 22px 70px rgba(36, 58, 52, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", Inter, system-ui, sans-serif;
  background: var(--ivory);
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
}

.intro {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(140deg, rgba(47, 93, 80, 0.94), rgba(47, 93, 80, 0.8)),
    url("/assets/background-cosmetics-01.jpg") center / cover;
}

.intro::after,
.workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 244, 239, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(247, 244, 239, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.brand,
.intro > div,
.note {
  position: relative;
  z-index: 1;
}

.brand img {
  width: min(220px, 58vw);
  height: auto;
  display: block;
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro .kicker {
  color: rgba(247, 244, 239, 0.82);
}

h1,
h2,
.result-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.94;
}

h2 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
}

.lead {
  max-width: 550px;
  margin: 22px 0 0;
  color: rgba(247, 244, 239, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.note {
  max-width: 500px;
  color: rgba(247, 244, 239, 0.78);
  font-size: 14px;
  line-height: 1.72;
}

.workspace {
  position: relative;
  min-height: 100vh;
  padding: clamp(18px, 4.5vw, 62px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(47, 93, 80, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 93, 80, 0.05) 1px, transparent 1px),
    var(--ivory);
  background-size: 42px 42px;
}

.app-card {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress {
  width: 180px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(183, 178, 169, 0.42);
}

.progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--terracotta);
  transition: width 180ms ease;
}

.copy,
.helper,
.result-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.helper {
  margin: 10px 0 20px;
  font-size: 14px;
}

.answers,
.form-grid,
.result-stack {
  display: grid;
  gap: 12px;
}

.answer {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(47, 93, 80, 0.19);
  border-radius: 8px;
  background: rgba(247, 244, 239, 0.76);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.answer:hover,
.answer:focus-visible,
.answer.is-selected {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(169, 106, 91, 0.66);
  background: #fffaf3;
}

.answer-mark {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 93, 80, 0.25);
  border-radius: 50%;
  color: var(--forest);
}

.answer.is-selected .answer-mark {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}

.nav,
.actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.btn {
  min-height: 48px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(47, 93, 80, 0.24);
  border-radius: 8px;
  background: transparent;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.input,
.select {
  min-height: 50px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(47, 93, 80, 0.22);
  border-radius: 8px;
  background: #fffaf3;
  color: var(--ink);
}

.consent {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.consent input {
  margin-top: 3px;
}

.result-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
}

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

.card,
.scale {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 244, 239, 0.66);
}

.card h3,
.scale p {
  margin: 0;
}

.card h3 {
  font-size: 18px;
}

.card p {
  margin: 9px 0 0;
  line-height: 1.62;
}

.scale-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bar {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(183, 178, 169, 0.4);
}

.bar span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: var(--terracotta);
}

.toast {
  min-height: 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 940px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .intro {
    position: relative;
    min-height: 48vh;
  }

  .workspace {
    min-height: auto;
    padding-top: 24px;
  }
}

@media (max-width: 580px) {
  .intro,
  .workspace,
  .app-card {
    padding: 22px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .topline,
  .nav,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .progress,
  .btn {
    width: 100%;
  }

  .summary-grid,
  .scale-grid {
    grid-template-columns: 1fr;
  }
}
