/* ===== BRAND TOKENS ===== */
:root {
  --plum: #4b2c4f;
  --charcoal: #2c2b2e;
  --sage: #8c947f;
  --gold: #b89a5b;
  --cream: #f7f3ed;
  --rose: #c7a6a6;
  --taupe: #a89f94;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  position: relative;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== SCREEN MANAGEMENT ===== */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.screen--active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ===== WELCOME SCREEN ===== */
.welcome-inner {
  width: 100%;
  max-width: 480px;
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.logo-welcome {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 28px;
}

.welcome-header {
  text-align: center;
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 300;
  color: var(--plum);
  line-height: 1.13;
  margin-bottom: 14px;
}

.welcome-subtext {
  font-size: 0.93rem;
  color: var(--taupe);
  line-height: 1.65;
}

.beverage-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.beverage-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: white;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.beverage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(75, 44, 79, 0.1);
}

.beverage-card:active {
  transform: scale(0.98);
  box-shadow: none;
}

.beverage-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  line-height: 1;
}

.beverage-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--plum);
  display: block;
  line-height: 1.15;
}

.beverage-desc {
  font-size: 0.8rem;
  color: var(--taupe);
  display: block;
  margin-top: 3px;
}

/* ===== RITUAL SCREEN ===== */
.ritual-inner {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.ritual-header {
  padding: 22px 28px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex-shrink: 0;
}

.logo-header {
  height: 28px;
  width: auto;
  display: block;
  justify-self: center;
}

.back-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--taupe);
  letter-spacing: 0.04em;
  padding: 6px 0;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--plum);
}

.ritual-beverage-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  text-align: right;
  justify-self: end;
}

.progress-dots {
  display: flex;
  gap: 9px;
  padding: 22px 28px 0;
  flex-shrink: 0;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0.4;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.progress-dot--active {
  background: var(--plum);
  opacity: 1;
  transform: scale(1.25);
}

.progress-dot--done {
  background: var(--gold);
  opacity: 0.8;
}

.step-content {
  flex: 1;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: opacity 0.2s ease;
}

.step-content--fading {
  opacity: 0;
}

.step-number {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.step-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 7.5vw, 2.7rem);
  font-weight: 300;
  color: var(--plum);
  line-height: 1.18;
}

.step-instruction {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--charcoal);
}

.tip-card {
  background: rgba(140, 148, 127, 0.11);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin-top: 4px;
}

.tip-card--hidden {
  display: none;
}

.tip-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.tip-text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.68;
}

.ritual-footer {
  padding: 0 28px 44px;
  flex-shrink: 0;
}

.next-btn {
  width: 100%;
  padding: 18px;
  background: var(--plum);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 12px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.next-btn:hover {
  background: #5c3662;
}

.next-btn:active {
  transform: scale(0.98);
}

/* ===== COMPLETE SCREEN ===== */
.complete-inner {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  padding: 0 28px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}

.logo-complete {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.complete-icon {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 8px;
}

.complete-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 7.5vw, 2.8rem);
  font-weight: 300;
  color: var(--plum);
  line-height: 1.2;
}

.complete-body {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--charcoal);
  max-width: 320px;
}

.complete-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 6px 0;
}

.restart-btn {
  margin-top: 12px;
  padding: 15px 38px;
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  transition: background 0.22s ease, color 0.22s ease;
}

.restart-btn:hover {
  background: var(--plum);
  color: var(--cream);
}

.restart-btn:active {
  transform: scale(0.98);
}

/* ===== RESPONSIVE ===== */

@media (prefers-reduced-motion: reduce) {
  .screen,
  .step-content,
  .beverage-card,
  .next-btn,
  .restart-btn,
  .progress-dot {
    transition: none;
  }
}
