:root {
  --bg: #fbf6ef;
  --panel: rgba(255, 251, 246, 0.84);
  --panel-strong: #fffaf4;
  --ink: #3e342c;
  --ink-soft: #6f6157;
  --line: rgba(101, 78, 60, 0.14);
  --accent: #d6b992;
  --accent-strong: #ba9260;
  --rose: #d9bbb5;
  --success: #77936f;
  --warning: #b78f5b;
  --danger: #aa6f66;
  --shadow: 0 24px 80px rgba(103, 78, 53, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-title: "Cormorant Garamond", serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 187, 181, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(214, 185, 146, 0.18), transparent 32%),
    linear-gradient(180deg, #fdfaf5 0%, #f7efe6 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 6px 0 22px;
}

.brand-mark {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.ghost-link,
.button-as-link {
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-select {
  appearance: none;
  min-width: 152px;
  padding: 10px 38px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(251, 242, 233, 0.92));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(103, 78, 53, 0.08);
  cursor: pointer;
}

.landing-main,
.wizard-main,
.results-main {
  display: grid;
  gap: 24px;
}

.hero-card,
.wizard-card,
.feature-card,
.result-card,
.product-card,
.metric-card,
.loading-card,
.wizard-side {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 40px;
  padding: 28px;
  display: grid;
  gap: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent-strong);
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 9vw, 5.4rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.02rem;
}

.benefit-list,
.detail-list,
.simple-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
}

.hero-actions,
.header-actions,
.wizard-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

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

.button-primary {
  background: linear-gradient(135deg, #d8bb95 0%, #bc9565 100%);
  color: #fffaf4;
  box-shadow: 0 16px 30px rgba(188, 149, 101, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-panel,
.feature-strip,
.metrics-grid,
.product-grid,
.summary-grid,
.pill-grid,
.photo-actions,
.inline-grid,
.question-options {
  display: grid;
  gap: 16px;
}

.soft-stat,
.feature-card,
.metric-card,
.result-card,
.product-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.soft-stat {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.soft-stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.wizard-main {
  grid-template-columns: 1fr;
  align-items: start;
}

.wizard-side,
.wizard-card {
  border-radius: 30px;
  padding: 24px;
}

.luxury-note {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 243, 233, 0.66));
  border: 1px solid var(--line);
}

.progress-wrap {
  margin-bottom: 26px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rose), var(--accent));
  border-radius: inherit;
  transition: width 220ms ease;
}

.step-panel {
  display: grid;
  gap: 20px;
}

.step-panel-header {
  display: grid;
  gap: 8px;
}

.step-counter {
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.question-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(107, 82, 60, 0.1);
  display: grid;
  gap: 14px;
}

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

.input-group {
  display: grid;
  gap: 10px;
}

.text-input,
.textarea-input,
.date-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(95, 74, 60, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.textarea-input {
  min-height: 96px;
  resize: vertical;
}

.option-chip {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(103, 78, 53, 0.14);
  background: rgba(255, 255, 255, 0.76);
  padding: 14px 16px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

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

.option-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.option-chip.is-selected {
  border-color: rgba(186, 146, 96, 0.5);
  background: linear-gradient(135deg, rgba(255, 251, 246, 0.98), rgba(249, 236, 226, 0.88));
}

.option-chip-label {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.option-chip-sub {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.helper-text,
.error-text {
  font-size: 0.92rem;
}

.helper-text {
  color: var(--ink-soft);
}

.error-text {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.photo-drop {
  border: 1px dashed rgba(103, 78, 53, 0.26);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 18px;
}

.photo-preview-wrap {
  overflow: hidden;
  border-radius: 24px;
  min-height: 240px;
  background: linear-gradient(180deg, #f8efe6, #fff6ee);
  display: grid;
  place-items: center;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructions-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(250, 240, 229, 0.75);
  border: 1px solid rgba(185, 146, 98, 0.16);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(251, 246, 239, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 40;
}

.loading-card {
  max-width: 460px;
  border-radius: 30px;
  padding: 32px;
  text-align: center;
}

.loading-orb {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(217, 187, 181, 0.7), rgba(186, 146, 96, 0.78));
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.76; }
  50% { transform: scale(1.04); opacity: 1; }
}

.results-main {
  gap: 20px;
}

.results-hero {
  border-radius: 38px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(255, 251, 246, 0.95), rgba(245, 231, 221, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.score-badge,
.status-badge,
.fit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.score-badge {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.status-good {
  background: rgba(119, 147, 111, 0.16);
  color: var(--success);
}

.status-normal {
  background: rgba(183, 143, 91, 0.16);
  color: var(--warning);
}

.status-attention {
  background: rgba(170, 111, 102, 0.14);
  color: var(--danger);
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-family: var(--font-title);
  margin: 12px 0 8px;
}

.pill-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pill {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(103, 78, 53, 0.08);
  color: var(--ink-soft);
}

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

.routine-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-meta,
.routine-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span,
.routine-chip {
  font-size: 0.84rem;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  border: 1px solid rgba(103, 78, 53, 0.1);
}

.cta-card {
  background: linear-gradient(135deg, rgba(213, 185, 146, 0.2), rgba(217, 187, 181, 0.2));
}

.print-note {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

@media (min-width: 760px) {
  .page-shell {
    padding: 28px 26px 72px;
  }

  .hero-card {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    padding: 42px;
  }

  .feature-strip,
  .summary-grid,
  .routine-columns {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .wizard-main {
    grid-template-columns: 0.8fr 1.25fr;
  }

  .wizard-side {
    position: sticky;
    top: 20px;
  }

  .question-options.two-col,
  .inline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 759px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .language-switcher,
  .language-select {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media print {
  body {
    background: #ffffff;
  }

  body::before,
  .site-header,
  .loading-overlay,
  .stack-actions,
  .print-note {
    display: none !important;
  }

  .page-shell {
    max-width: none;
    padding: 0;
  }

  .results-hero,
  .result-card,
  .product-card,
  .metric-card {
    box-shadow: none;
    border: 1px solid #ddd5ca;
    background: #ffffff;
    break-inside: avoid;
  }
}
