:root {
  --bg: #f2eee7;
  --bg-soft: #f8f4ee;
  --ink: #1f1915;
  --muted: #75695f;
  --line: rgba(44, 33, 22, 0.18);
  --line-soft: rgba(44, 33, 22, 0.07);
  --accent: #2c2018;
  --accent-soft: #a1866a;
  --gold: #c4a67e;
  --panel: rgba(255, 255, 255, 0.64);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --shadow: 0 22px 68px rgba(31, 24, 17, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 16%, rgba(255, 255, 255, 0.86), transparent 31%),
    radial-gradient(circle at 87% 15%, rgba(244, 231, 215, 0.62), transparent 33%),
    radial-gradient(circle at 50% 112%, rgba(229, 214, 194, 0.52), transparent 40%),
    linear-gradient(180deg, #f8f3ec 0%, #f0e9df 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Crimson Text", Georgia, serif;
  letter-spacing: -0.02em;
}

.ambient-shape {
  position: fixed;
  width: 44vw;
  height: 44vw;
  pointer-events: none;
  border-radius: 48% 52% 64% 36% / 46% 44% 56% 54%;
  filter: blur(2px);
  z-index: 0;
}

.ambient-left {
  left: -16vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(237, 223, 205, 0.22));
}

.ambient-right {
  right: -17vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(247, 235, 221, 0.72), rgba(231, 212, 190, 0.2));
}

.ambient-center {
  left: 30vw;
  top: 24vh;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(246, 237, 226, 0.45), rgba(255, 255, 255, 0));
}

.site-frame {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 58px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.brand-seal {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #fff, #e9dccb);
  box-shadow: inset 0 0 0 1px rgba(44, 33, 22, 0.14);
}

.brand-seal.mini {
  width: 42px;
  height: 42px;
}

.seal-ring {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(44, 33, 22, 0.18);
  border-radius: 50%;
}

.seal-mark {
  font-family: "Crimson Text", Georgia, serif;
  font-size: 1.6rem;
  transform: translateY(-1px);
}

.seal-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  right: 11px;
  bottom: 10px;
}

.brand-wordmark {
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.screen-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.73rem;
}

.nav-mini {
  min-width: 105px;
}

.lang-toggle {
  display: inline-flex;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.62);
  padding: 4px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.auth-top-button {
  min-width: 90px;
}

.screen[hidden] {
  display: none !important;
}

.screen {
  min-height: calc(100vh - 130px);
}

.kicker {
  margin: 0;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  min-height: calc(100vh - 175px);
}

.landing-copy,
.landing-aside,
.view-shell,
.panel,
.scent-card-preview {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.landing-copy {
  padding: clamp(36px, 7vw, 76px);
  display: grid;
  align-content: center;
  gap: 20px;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.9;
  max-width: 9ch;
}

.lead,
.aside-copy,
.result-quote,
.section-header p,
.panel p,
.metric-label,
.recommendation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 46ch;
  font-size: 1.02rem;
}

.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-aside {
  padding: 30px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.app-icon-preview {
  width: 130px;
  height: 130px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(234, 218, 198, 0.95));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-icon-glyph {
  font-family: "Crimson Text", Georgia, serif;
  font-size: 3rem;
  letter-spacing: -0.07em;
}

.aside-meta {
  display: grid;
  gap: 10px;
}

.aside-meta span {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--panel-strong);
  font-size: 0.9rem;
}

.view-shell {
  padding: clamp(24px, 4vw, 42px);
}

.view-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.view-header h2 {
  margin: 10px 0 0;
  font-size: clamp(2.05rem, 4.8vw, 3.7rem);
  line-height: 0.95;
}

.progress-area {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.progress-area span {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.progress-track {
  height: 2px;
  background: rgba(36, 27, 18, 0.16);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2c2018, #9d7c5b);
  transition: width 280ms ease;
}

.question-stage {
  min-height: 58vh;
  display: flex;
  align-items: center;
}

.question-card {
  width: 100%;
  animation: fadeUp 0.46s ease;
}

.question-card h3 {
  margin: 0;
  font-size: clamp(1.95rem, 4.2vw, 3.05rem);
  max-width: 18ch;
  line-height: 1.03;
}

.question-card p {
  margin: 14px 0 0;
}

.answer-list {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.answer-button {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.answer-button:hover {
  background: #fff;
  border-color: rgba(44, 33, 22, 0.32);
  transform: translateY(-1px);
}

.result-shell,
.scent-shell {
  display: grid;
  gap: 22px;
}

.free-summary {
  border-radius: 22px;
}

.free-summary-copy {
  font-size: 1rem;
  line-height: 1.8;
}

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

.metric-block {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: var(--panel-strong);
  padding: 18px;
}

.metric-label {
  text-transform: uppercase;
  font-size: 0.71rem;
  letter-spacing: 0.17em;
  margin-bottom: 8px;
}

.metric-block h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.premium-cta-shell {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(240, 227, 210, 0.9));
  padding: 1.4rem;
}

.premium-cta-shell h3 {
  margin: 0.35rem 0 0.45rem;
}

.premium-cta-shell ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.premium-price-box {
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 14px;
  align-self: center;
}

.premium-price-box p {
  margin: 0.3rem 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.panel {
  padding: 18px;
}

.panel-wide {
  grid-column: 1 / -1;
}

.dna-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.dna-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--panel-strong);
  font-size: 0.84rem;
}

.scent-card-hero {
  display: grid;
  gap: 14px;
}

.scent-card-preview {
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(238, 224, 205, 0.92));
  padding: 18px;
}

.scent-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.scent-card-preview h4 {
  margin: 14px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.section-header {
  margin-bottom: 12px;
}

.section-header h3 {
  margin: 0;
  font-size: clamp(1.52rem, 3vw, 2.2rem);
}

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

.recommendation-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: var(--panel-strong);
  padding: 18px;
  display: grid;
  gap: 11px;
  animation: fadeUp 0.42s ease;
}

.recommendation-card:nth-child(2) { animation-delay: 40ms; }
.recommendation-card:nth-child(3) { animation-delay: 80ms; }
.recommendation-card:nth-child(4) { animation-delay: 120ms; }

.recommendation-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.recommendation-brand {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.7rem;
  color: var(--accent-soft);
}

.recommendation-card h4 {
  margin: 0;
  font-size: 1.32rem;
}

.match-pill {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 6px 10px;
}

.image-slot {
  height: 142px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.image-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(21, 16, 12, 0.08));
}

.note-list {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--muted);
}

.shop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.free-insights .metric-block h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
}

.recommendation-unlock-card {
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.95), rgba(239, 227, 210, 0.92));
}

.community-featured {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(240, 227, 209, 0.9));
}

.community-list-empty {
  grid-column: 1 / -1;
}

.premium-lock-target {
  position: relative;
}

.premium-lock-target.is-locked {
  overflow: hidden;
}

.premium-lock-target.is-locked > * {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.premium-lock-target.is-locked::after {
  content: attr(data-lock-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.92rem;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(249, 244, 236, 0.68), rgba(249, 244, 236, 0.9));
  backdrop-filter: blur(1px);
  pointer-events: none;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-price {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--accent);
  font-family: "Crimson Text", Georgia, serif;
}

.payment-meta {
  font-size: 0.88rem;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.pay-method {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  padding: 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.pay-method:hover {
  border-color: rgba(44, 33, 22, 0.35);
}

.pay-method strong {
  font-size: 0.98rem;
}

.pay-method span {
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-status {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--accent-soft);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 16, 0.48);
  backdrop-filter: blur(3px);
}

.sheet-dialog {
  position: relative;
  width: min(460px, calc(100% - 28px));
  margin: 8vh auto;
  border-radius: 20px;
  border: 1px solid rgba(44, 33, 22, 0.2);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(240, 228, 212, 0.95));
  box-shadow: 0 35px 80px rgba(21, 17, 12, 0.32);
  padding: 1.2rem;
}

.share-dialog {
  width: min(620px, calc(100% - 28px));
}

.auth-close {
  float: right;
}

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

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

.auth-form input {
  border: 1px solid rgba(44, 33, 22, 0.2);
  border-radius: 10px;
  padding: 0.74rem 0.8rem;
  background: rgba(255, 255, 255, 0.86);
}

.share-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--muted);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: rgba(28, 22, 16, 0.96);
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 0.88rem;
  z-index: 100;
}

.reveal {
  animation: fadeUp 0.5s ease;
}

.reveal-delay {
  animation: fadeUp 0.64s ease;
}

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

@media (max-width: 1020px) {
  .landing-grid,
  .panel-grid,
  .recommendation-grid,
  .payment-grid,
  .result-metrics,
  .premium-cta-shell {
    grid-template-columns: 1fr;
  }

  .view-header {
    flex-direction: column;
  }

  .share-platform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-frame {
    width: min(100% - 18px, 1220px);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-right {
    justify-content: space-between;
  }

  .button {
    width: 100%;
  }

  .result-actions,
  .landing-actions {
    display: grid;
  }

  .share-platform-grid {
    grid-template-columns: 1fr;
  }
}
