:root {
  --wine: #4b1024;
  --wine-light: #722a43;
  --ink: #211a1d;
  --paper: #fffaf7;
  --rose: #ead7d9;
  --line: #dfd4d2;
  --gold: #b9945c;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 46%) 1fr; }
.visual-panel { position: relative; min-height: 100vh; overflow: hidden; background: var(--wine); color: white; }
.visual-panel > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; position: absolute; inset: 0; }
.visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,8,16,.42) 0%, rgba(32,8,16,.06) 44%, rgba(32,8,16,.72) 100%); }
.brand-lockup, .mobile-brand { display: flex; align-items: center; gap: 12px; }
.brand-lockup { position: absolute; top: 34px; left: 38px; color: white; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.72); display: grid; place-items: center; border-radius: 50%; font-family: "Playfair Display", serif; letter-spacing: -.06em; }
.profile-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 3px 14px rgba(0,0,0,.18); }
.brand-lockup div, .mobile-brand div { display: grid; gap: 2px; }
.brand-lockup strong, .mobile-brand strong { font-size: .91rem; letter-spacing: .02em; }
.brand-lockup span:last-child, .mobile-brand span:last-child { font-size: .73rem; opacity: .78; }
.visual-quote { position: absolute; left: 38px; bottom: 38px; margin: 0; font: 600 clamp(1.65rem, 3vw, 2.8rem)/1.12 "Playfair Display", serif; text-shadow: 0 2px 22px rgba(0,0,0,.36); }
.visual-quote em { font-weight: 600; color: #f2d9dd; }

.experience-panel { min-height: 100vh; display: grid; place-items: center; padding: 44px clamp(28px, 6vw, 92px); }
.experience-inner { width: min(100%, 650px); }
.mobile-brand { display: none; color: var(--wine); margin-bottom: 48px; text-decoration: none; }
.mobile-brand .brand-mark { border-color: var(--wine); }
.mobile-brand .profile-avatar { border-color: var(--wine); box-shadow: 0 3px 12px rgba(75,16,36,.14); }
.screen { display: none; animation: reveal .42s ease both; }
.screen.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 18px; color: var(--wine-light); text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; font-weight: 700; }
h1 { margin: 0; color: var(--wine); font: 600 clamp(3.1rem, 7vw, 6.4rem)/.87 "Playfair Display", serif; letter-spacing: -.055em; }
h1 em { font-weight: 600; color: var(--wine-light); }
.intro { max-width: 570px; margin: 30px 0 24px; font-size: 1.08rem; line-height: 1.7; color: #5b5053; }
.promise-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.promise-list span { border: 1px solid var(--line); padding: 9px 12px; border-radius: 999px; font-size: .84rem; background: rgba(255,255,255,.6); }
.primary-btn { border: 0; background: var(--wine); color: white; min-height: 56px; padding: 16px 24px; border-radius: 4px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 22px; text-decoration: none; box-shadow: 0 10px 26px rgba(75,16,36,.17); transition: transform .2s, background .2s; }
.primary-btn:hover { background: #651a33; transform: translateY(-2px); }
.primary-btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #d9a9b8; outline-offset: 3px; }
.privacy-note { font-size: .76rem; color: #887c7f; margin: 16px 0 0; }

.quiz-topline { display: flex; justify-content: space-between; align-items: center; color: #75696c; font-size: .84rem; }
.text-btn { border: 0; padding: 8px 0; background: transparent; color: var(--wine); font-weight: 600; }
.progress-track { height: 3px; background: var(--rose); margin: 14px 0 54px; overflow: hidden; }
#progress-bar { height: 100%; width: 12.5%; background: var(--wine); transition: width .35s ease; }
.question-wrap h2 { margin: 0 0 32px; color: var(--ink); font: 600 clamp(2rem, 4vw, 3.25rem)/1.08 "Playfair Display", serif; letter-spacing: -.025em; }
.options { display: grid; gap: 12px; }
.option { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 15px; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.62); padding: 15px 17px; border-radius: 6px; color: #3e3538; transition: border-color .2s, background .2s, transform .2s; }
.option:hover { border-color: var(--wine-light); background: white; transform: translateX(3px); }
.option-letter { flex: 0 0 31px; height: 31px; display: grid; place-items: center; border: 1px solid #c9babb; border-radius: 50%; color: var(--wine); font: 600 .83rem "Playfair Display", serif; }

.result-screen { text-align: center; }
.result-icon { width: 68px; height: 68px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: var(--wine); font: 600 2rem "Playfair Display", serif; }
.result-prefix { color: #75696c; margin: 0 0 5px; font-size: .88rem; }
.result-screen h2 { margin: 0; color: var(--wine); font: 600 clamp(2.5rem, 5vw, 4.4rem)/1 "Playfair Display", serif; letter-spacing: -.04em; }
.result-tagline { margin: 14px 0; font: italic 600 1.18rem "Playfair Display", serif; color: var(--wine-light); }
.result-description { max-width: 570px; margin: 0 auto; color: #5b5053; line-height: 1.65; }
.advice-card { margin: 26px auto; max-width: 560px; text-align: left; padding: 19px 22px; border-left: 3px solid var(--gold); background: #f5ece9; }
.advice-card span { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--wine); }
.advice-card p { margin: 8px 0 0; line-height: 1.52; }
.result-screen .primary-btn { width: min(100%, 400px); }
.challenge-btn { width: min(100%, 400px); min-height: 54px; margin: 12px auto 0; border: 1px solid var(--wine); background: transparent; color: var(--wine); padding: 14px 22px; border-radius: 4px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 20px; transition: background .2s, color .2s, transform .2s; }
.challenge-btn:hover { background: #f1e3e5; transform: translateY(-2px); }
.share-status { min-height: 18px; margin: 9px 0 0; color: #75696c; font-size: .78rem; }
.secondary-btn { display: block; border: 0; background: transparent; color: var(--wine); text-decoration: underline; text-underline-offset: 4px; margin: 18px auto 0; padding: 8px; }
.signature { margin: 30px 0 0; color: #887c7f; font-size: .78rem; line-height: 1.55; }
.signature a { color: var(--wine-light); text-decoration: none; font-weight: 700; }

@media (max-width: 800px) {
  .app-shell { display: block; }
  .visual-panel { display: none; }
  .experience-panel { min-height: 100svh; padding: 26px 22px 42px; align-items: start; }
  .experience-inner { max-width: 580px; }
  .mobile-brand { display: flex; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .intro { margin-top: 24px; }
  .progress-track { margin-bottom: 38px; }
  .question-wrap h2 { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  .result-screen .eyebrow { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
