/* ============================================
   AROMATHERAPY RECIPES — Landing Page Styles
   Brand: #2D8A4E sage green, #FAF7F2 cream
   Fonts: Cormorant Garamond (headings), Outfit (body)
   ============================================ */

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

:root {
  --sage: #2D8A4E;
  --sage-dark: #236B3D;
  --sage-light: #3DA863;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --ink-muted: #7A7A7A;
  --white: #FFFDF9;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
  --max-width: 1400px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  /* In-phone app palette */
  --app-sage: #5B7553;
  --app-cream: #F5F0E8;
  --app-terracotta: #C4896D;
  --app-ink: #2D2A26;
  --app-border: #E8E0D2;
  --font-app-heading: 'Playfair Display', Georgia, serif;
  --font-app-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background-color 0.4s var(--ease-out-expo),
              backdrop-filter 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background-color: rgba(250, 247, 242, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(45, 138, 78, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-badge {
  display: block;
  height: 32px;
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
}

.nav-badge svg {
  height: 32px;
  width: auto;
  display: block;
}

.nav-badge:hover {
  opacity: 0.85;
}

.nav-badge:active {
  transform: scale(0.96);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-video-mask {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--cream) 0%, rgba(250, 247, 242, 0.88) 22%, rgba(250, 247, 242, 0.45) 50%, rgba(250, 247, 242, 0.15) 72%, rgba(250, 247, 242, 0.6) 100%),
    linear-gradient(to bottom, rgba(250, 247, 242, 0.9) 0%, transparent 20%, transparent 75%, var(--cream) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  padding-right: 2rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.35s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-download {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.65s forwards;
}

.hero-download-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hero-store-badges {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero-store-badge {
  display: block;
  height: 44px;
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
}

.hero-store-badge svg {
  height: 44px;
  width: auto;
  display: block;
}

.hero-store-badge:hover {
  opacity: 0.8;
}

.hero-store-badge:active {
  transform: scale(0.96);
}

.hero-fine-print {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

/* Hero phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-phone-mockup {
  position: relative;
  width: 340px;
  border-radius: 2.75rem;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(26, 26, 26, 0.16),
    0 12px 40px rgba(26, 26, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 5px solid var(--ink);
  background: var(--ink);
}

.hero-phone-screen {
  width: 100%;
  border-radius: 2.25rem;
}

/* --- SHOWCASE --- */
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(auto, 55%) 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #18402A;
}

/* Full-bleed dark background behind the grid */
.showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 55% at 50% 50%, rgba(45, 138, 78, 0.28) 0%, rgba(45, 138, 78, 0.10) 40%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 20% 65%, rgba(45, 138, 78, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 55% 40% at 80% 30%, rgba(61, 168, 99, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(20, 64, 42, 0.35) 0%, transparent 60%),
    linear-gradient(160deg, #1A4C2E 0%, #1E5E35 28%, #247040 50%, #1E5E35 72%, #1A4C2E 100%);
  z-index: 0;
  pointer-events: none;
}

/* Botanical texture overlay */
.showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: url('assets/showcase-bg.webp') center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

/* Showcase intro — illustrated banner */
.showcase-intro {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0.5rem 0;
  padding: 3rem 3rem;
  background: url('assets/showcase-intro-bg.webp') center / cover no-repeat;
  border-radius: 2rem;
  overflow: hidden;
}

/* White overlay for text contrast */
.showcase-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 85% at center, rgba(255, 253, 249, 0.95) 0%, rgba(255, 253, 249, 0.82) 55%, rgba(255, 253, 249, 0.45) 80%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Centered content */
.showcase-intro-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
}

.showcase-intro-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(12px);
}

.showcase-intro-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
}

.showcase-intro-arrow {
  color: rgba(26, 26, 26, 0.2);
  font-weight: 300;
  margin: 0 0.15em;
}

.showcase-intro-accent {
  color: var(--sage);
}

.showcase-intro-body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.65;
  color: #5a5550;
  max-width: 520px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(12px);
}

.showcase-intro-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  transform: translateY(10px);
}

.showcase-intro-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}

.showcase-intro-stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.showcase-intro-stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #9B9590;
  text-transform: lowercase;
}

/* Intro entrance animation (triggered by .visible class) */
.showcase-intro.visible .showcase-intro-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s var(--ease-out-expo);
}
.showcase-intro.visible .showcase-intro-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out 0.1s, transform 0.7s var(--ease-out-expo) 0.1s;
}
.showcase-intro.visible .showcase-intro-body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s var(--ease-out-expo) 0.2s;
}
.showcase-intro.visible .showcase-intro-stats {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out 0.35s, transform 0.6s var(--ease-out-expo) 0.35s;
}

/* Sticky left column — stepper + phone */
.showcase-left {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  align-items: flex-start;
  padding-top: 10vh;
  gap: 2rem;
  z-index: 2;
  /* NO overflow: hidden — breaks sticky */
}

/* Phone wrapper */
.showcase-phone-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone — perspective wrapper */
.showcase-phone-perspective {
  transform: perspective(1200px) rotateY(-2.5deg) rotateX(0.5deg);
  z-index: 2;
}

/* Phone — scale wrapper (JS animates scale here) */
.showcase-phone-scale {
  will-change: transform;
}

/* Phone — float wrapper (GSAP float animation targets this) */
.showcase-phone-float {
  will-change: transform;
}

/* Phone — the visual frame */
.showcase-phone-frame {
  position: relative;
  width: 300px;
  height: 610px;
  border-radius: 2.75rem;
  background: var(--ink);
  padding: 4px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Dynamic Island notch — hidden */
.showcase-phone-notch {
  display: none;
}

/* Screen area */
.showcase-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.25rem;
  overflow: hidden;
}

/* --- APP SCREEN SYSTEM (inside phone mockup) --- */
.app-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
  background: var(--app-cream);
  overflow: hidden;
  font-family: var(--font-app-body);
  color: var(--app-ink);
  font-size: 11px;
  line-height: 1.4;
}
.app-screen.is-active { opacity: 1; pointer-events: auto; }

/* Status bar */
.app-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 600;
  color: var(--app-ink);
  background: var(--app-cream);
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}
.app-status-bar--light { color: #fff; background: transparent; position: absolute; top: 0; left: 0; right: 0; }
.status-time { font-family: var(--font-app-body); font-weight: 700; font-size: 10.5px; }
.status-icons { display: flex; gap: 4px; align-items: center; }

/* Tab bar */
.app-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--app-cream);
  border-top: 1px solid var(--app-border);
  z-index: 10;
}
.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #999;
  font-size: 7px;
  font-family: var(--font-app-body);
  font-weight: 500;
}
.app-tab svg { width: 16px; height: 16px; }
.app-tab.active { color: var(--app-sage); }

/* Content area between status bar and tab bar */
.app-content {
  position: absolute;
  top: 28px;
  bottom: 50px;
  left: 0;
  right: 0;
  overflow: hidden;
}

/* ===== Screen 0: Welcome ===== */
.screen-welcome {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.screen-welcome-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 20, 10, 0.3) 0%, rgba(10, 20, 10, 0.65) 100%);
  z-index: 0;
}
.screen-welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 30%;
}
.screen-welcome-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.screen-welcome-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.screen-welcome-title {
  font-family: var(--font-app-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.screen-welcome-accent {
  font-family: var(--font-app-heading);
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  color: #FFE066;
  text-align: center;
}
.screen-welcome-tagline {
  font-family: var(--font-app-body);
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-top: 6px;
  padding: 0 20px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.screen-welcome-bottom {
  position: relative;
  z-index: 2;
  padding: 0 12px 16px;
}
.screen-welcome-stats {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.screen-welcome-stat {
  flex: 1;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
}
.screen-welcome-stat-num {
  font-family: var(--font-app-heading);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.screen-welcome-stat-label {
  font-family: var(--font-app-body);
  font-size: 6px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-top: 2px;
  line-height: 1.3;
}
.screen-welcome-cta {
  background: #4CAF50;
  color: #fff;
  font-family: var(--font-app-body);
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  padding: 7px 0;
  border-radius: 14px;
}

/* ===== Screen 1: Home ===== */
.screen-home { display: flex; flex-direction: column; }
.screen-home-hero {
  height: 35%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.screen-home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(91, 117, 83, 0.55), rgba(91, 117, 83, 0.75));
}
.screen-home-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
  border: 1.5px solid rgba(255,255,255,.3);
}
.screen-home-brand {
  position: relative;
  z-index: 1;
  font-family: var(--font-app-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}
.screen-home-brand em {
  font-style: italic;
  color: #FFE066;
}
.screen-home-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--font-app-heading);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-top: -2px;
}
.screen-home-body {
  flex: 1;
  padding: 10px 12px;
  overflow: hidden;
}
.screen-home-section-label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #6B6560;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.screen-home-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.screen-home-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px 8px;
  background: var(--app-cream);
  border-radius: 12px;
  border: 1px solid rgba(91, 117, 83, 0.2);
}
.screen-home-cat-icon {
  width: 26px;
  height: 26px;
  color: var(--app-sage);
}
.screen-home-cat-name {
  font-size: 8px;
  font-weight: 600;
  color: var(--app-ink);
  text-align: center;
  line-height: 1.2;
}
.screen-home-cat-count {
  font-size: 6.5px;
  font-weight: 400;
  color: #9B9590;
  text-align: center;
}
.screen-home-cta {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  font-weight: 600;
  color: var(--app-cream);
  background: var(--app-terracotta);
  text-align: center;
  padding: 5px 0;
  border-radius: 8px;
}
.screen-home-cta-secondary {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  color: var(--app-terracotta);
  background: var(--app-cream);
  border: 1px solid var(--app-terracotta);
  text-align: center;
  padding: 4px 0;
  border-radius: 8px;
}

/* ===== Screen 2: Recipe Grid ===== */
.screen-grid { display: flex; flex-direction: column; }
.screen-grid-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  flex-shrink: 0;
}
.screen-grid-back-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.screen-grid-back-btn svg { width: 14px; height: 14px; color: var(--app-ink); }
.screen-grid-header-text { flex: 1; }
.screen-grid-home-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.screen-grid-home-btn svg { width: 13px; height: 13px; color: var(--app-ink); }
.screen-grid-title {
  font-family: var(--font-app-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink);
  line-height: 1.15;
}
.screen-grid-subtitle {
  font-size: 8.5px;
  color: #9B9590;
  font-weight: 500;
}
.screen-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px 12px;
  overflow: hidden;
  flex: 1;
}
.screen-grid-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--app-border);
}
.screen-grid-thumb {
  width: 100%;
  height: 65px;
  object-fit: cover;
  display: block;
}
.screen-grid-name {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--app-ink);
  padding: 4px 6px 0;
  line-height: 1.2;
}
.screen-grid-sub {
  font-size: 7px;
  color: #9B9590;
  padding: 1px 6px 0;
}
.screen-grid-meta {
  display: flex;
  gap: 3px;
  padding: 3px 6px 2px;
}
.screen-grid-badge {
  font-size: 6.5px;
  font-weight: 600;
  color: var(--app-sage);
  background: rgba(91, 117, 83, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}
.screen-grid-tags {
  font-size: 6.5px;
  color: #9B9590;
  padding: 0 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Screen 3: Recipe Detail ===== */
.screen-detail { position: absolute; inset: 0; }

/* --- Nav overlay (fixed during scroll) --- */
.screen-detail-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 0;
}
.screen-detail-nav-right { display: flex; gap: 6px; }
.screen-detail-back-btn,
.screen-detail-heart-btn,
.screen-detail-home-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-detail-back-btn svg,
.screen-detail-heart-btn svg,
.screen-detail-home-btn svg {
  width: 13px;
  height: 13px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

/* --- Scroll viewport --- */
.screen-detail-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.screen-detail-scroll { will-change: transform; }

/* --- Hero image --- */
.screen-detail-hero {
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* --- Body content --- */
.screen-detail-body { padding: 10px 12px 0; }

/* --- Title --- */
.screen-detail-title {
  font-family: var(--font-app-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink);
  line-height: 1.15;
  margin-bottom: 4px;
}

/* --- Meta row: method + category pill --- */
.screen-detail-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.screen-detail-method {
  font-family: var(--font-app-body);
  font-size: 8px;
  font-weight: 500;
  color: var(--app-terracotta);
}
.screen-detail-meta-dot { font-size: 8px; color: #9B9590; }
.screen-detail-category-pill {
  font-family: var(--font-app-body);
  font-size: 6.5px;
  font-weight: 600;
  color: var(--app-sage);
  background: rgba(91, 117, 83, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- Tags --- */
.screen-detail-tags {
  font-family: var(--font-app-body);
  font-size: 7px;
  color: #9B9590;
  margin-bottom: 4px;
}

/* --- Short description --- */
.screen-detail-desc {
  font-family: var(--font-app-body);
  font-size: 8px;
  font-weight: 400;
  color: #5a5550;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* --- Info badges (prep time + difficulty) --- */
.screen-detail-info-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.screen-detail-info-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 2px 7px;
  font-family: var(--font-app-body);
  font-size: 7px;
  font-weight: 500;
  color: #6B6560;
}
.screen-detail-info-badge svg { width: 10px; height: 10px; color: #9B9590; }
.screen-detail-info-badge--accent { color: var(--app-terracotta); }
.screen-detail-info-badge--accent svg { color: var(--app-terracotta); }

/* --- Divider --- */
.screen-detail-divider {
  height: 1px;
  background: var(--app-border);
  margin-bottom: 8px;
}

/* --- Yield callout --- */
.screen-detail-yield {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(91, 117, 83, 0.07);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
}
.screen-detail-yield svg {
  width: 14px;
  height: 14px;
  color: var(--app-sage);
  flex-shrink: 0;
}
.screen-detail-yield span {
  font-family: var(--font-app-body);
  font-size: 8px;
  font-weight: 500;
  color: var(--app-sage);
}
.screen-detail-yield strong { font-weight: 700; }

/* --- Section titles --- */
.screen-detail-section-title {
  font-family: var(--font-app-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9B9590;
  margin-bottom: 5px;
  margin-top: 10px;
}
.screen-detail-section-title--sage { color: var(--app-sage); }
.screen-detail-section-title--warning { color: var(--app-terracotta); }

/* --- Ingredients (bullet style) --- */
.screen-detail-ingredients {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}
.screen-detail-ingredient {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
}
.screen-detail-ingredient-bullet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--app-sage);
  flex-shrink: 0;
  margin-top: 4px;
}
.screen-detail-ingredient-text {
  font-family: var(--font-app-body);
  font-size: 8.5px;
  color: var(--app-ink);
  line-height: 1.4;
}
.screen-detail-ingredient-amount { font-weight: 400; }
.screen-detail-ingredient-name { font-weight: 600; color: var(--app-sage); }

/* --- You'll Need (supply item) --- */
.screen-detail-supply {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  margin-bottom: 4px;
}
.screen-detail-supply-text { display: flex; flex-direction: column; }
.screen-detail-supply-name {
  font-family: var(--font-app-body);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--app-sage);
}
.screen-detail-supply-size {
  font-family: var(--font-app-body);
  font-size: 7px;
  color: #9B9590;
}

/* --- Direction step cards --- */
.screen-detail-directions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 4px;
}
.screen-detail-step-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 7px 8px;
}
.screen-detail-step-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.screen-detail-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(91, 117, 83, 0.1);
  color: var(--app-sage);
  font-family: var(--font-app-body);
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.screen-detail-step-title {
  font-family: var(--font-app-body);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--app-ink);
}
.screen-detail-step-text {
  font-family: var(--font-app-body);
  font-size: 7.5px;
  color: #6B6560;
  line-height: 1.45;
  margin-left: 24px;
}

/* --- Safety notes card --- */
.screen-detail-safety-card {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  background: rgba(212, 164, 62, 0.08);
  border: 1px solid rgba(212, 164, 62, 0.2);
  border-radius: 8px;
  padding: 7px 8px;
  margin-bottom: 8px;
}
.screen-detail-safety-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.screen-detail-safety-text {
  font-family: var(--font-app-body);
  font-size: 7px;
  color: #5a5550;
  line-height: 1.5;
}

/* --- Bottom spacer --- */
.screen-detail-spacer { height: 60px; }

/* --- FAB --- */
.screen-detail-fab {
  position: absolute;
  bottom: 56px;
  right: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--app-sage);
  color: #fff;
  border: none;
  padding: 5px 9px;
  border-radius: 20px;
  font-family: var(--font-app-body);
  font-size: 7.5px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(91, 117, 83, 0.35);
  cursor: default;
}
.screen-detail-fab.entrance-done {
  animation: thymelyFabFloat 3s ease-in-out infinite alternate;
}
.screen-detail-fab svg { width: 12px; height: 12px; }

@keyframes thymelyFabFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

/* ===== Screen 4: Thymely ===== */
.screen-thymely { position: absolute; inset: 0; }
.screen-thymely-bg {
  position: absolute;
  inset: 0;
  padding: 40px 10px 10px;
  background: var(--app-cream);
}
.screen-thymely-bg-title {
  font-family: var(--font-app-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--app-ink);
  opacity: 0.3;
}
.screen-thymely-bg-text {
  font-size: 8px;
  color: var(--app-ink);
  opacity: 0.2;
  margin-top: 3px;
}
.screen-thymely-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.screen-thymely-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88%;
  background: var(--app-cream);
  border-radius: 12px 12px 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.screen-thymely-handle {
  width: 32px;
  height: 3.5px;
  border-radius: 2px;
  background: #ccc;
  margin: 6px auto 4px;
  flex-shrink: 0;
}
.screen-thymely-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 6px;
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.screen-thymely-header-left { flex: 1; min-width: 0; }
.screen-thymely-sheet-name {
  font-family: var(--font-app-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--app-ink);
}
.screen-thymely-sheet-desc {
  font-size: 8px;
  font-style: italic;
  color: #9B9590;
  margin-top: 1px;
}
.screen-thymely-close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--app-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.screen-thymely-close svg { width: 10px; height: 10px; color: #6B6560; }
.screen-thymely-messages {
  flex: 1;
  padding: 8px 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.screen-thymely-bubble {
  padding: 7px 9px;
  border-radius: 12px;
  font-size: 7.5px;
  line-height: 1.45;
  max-width: 90%;
}
.screen-thymely-bubble strong { font-weight: 700; }
.screen-thymely-bubble--welcome {
  background: #fff;
  color: var(--app-ink);
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.screen-thymely-bubble--user {
  background: var(--app-sage);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 4px;
}
.screen-thymely-bubble--answer {
  background: #fff;
  color: var(--app-ink);
  align-self: flex-start;
  min-height: 14px;
}
.screen-thymely-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.screen-thymely-chip {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 5px 8px;
  font-family: var(--font-app-body);
  font-size: 7.5px;
  color: var(--app-ink);
  line-height: 1.35;
}
.screen-thymely-chip--highlight {
  border-color: var(--app-sage);
  background: rgba(91, 117, 83, 0.06);
}
.screen-thymely-input-area {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 5px 8px 6px;
  border-top: 1px solid var(--app-border);
  background: var(--app-cream);
}
.screen-thymely-input-label {
  font-family: var(--font-app-body);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9B9590;
  margin-bottom: 3px;
}
.screen-thymely-input-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.screen-thymely-input {
  flex: 1;
  height: 22px;
  background: #FAFAF8;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  padding: 0 8px;
  font-family: var(--font-app-body);
  font-size: 7px;
  color: #bbb;
  display: flex;
  align-items: center;
}
.screen-thymely-send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--app-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.4;
}
.screen-thymely-send svg { width: 11px; height: 11px; }
.screen-thymely-cursor { color: var(--app-sage); opacity: 0.7; font-weight: 400; }

/* ===== Screen 5: Oil Library ===== */
.screen-oils { display: flex; flex-direction: column; }
.screen-oils-title {
  font-family: var(--font-app-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink);
  padding: 4px 10px 0;
  flex-shrink: 0;
}
.screen-oils-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 10px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  flex-shrink: 0;
}
.screen-oils-search-icon { width: 12px; height: 12px; color: #999; flex-shrink: 0; }
.screen-oils-search-text { font-size: 8px; color: #bbb; }
.screen-oils-chips {
  display: flex;
  gap: 4px;
  padding: 0 10px 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.screen-oils-chip {
  font-size: 7.5px;
  font-weight: 600;
  padding: 3.5px 9px;
  border-radius: 10px;
  border: 1px solid var(--app-border);
  color: #777;
  white-space: nowrap;
}
.screen-oils-chip--active {
  background: var(--app-sage);
  color: #fff;
  border-color: var(--app-sage);
}
.screen-oils-list {
  flex: 1;
  overflow: hidden;
}
.screen-oils-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(232, 224, 210, 0.6);
}
.screen-oils-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.screen-oils-info { flex: 1; min-width: 0; }
.screen-oils-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--app-ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-oils-latin {
  font-size: 7.5px;
  color: #999;
  font-style: italic;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-oils-chevron { width: 12px; height: 12px; color: #ccc; flex-shrink: 0; }

/* Oil Library: list/profile toggle */
.screen-oils-list-view { display: flex; flex-direction: column; height: 100%; }
.screen-oils-profile {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.screen-oils-profile-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 0;
}
.screen-oils-profile-back-btn,
.screen-oils-profile-home-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.screen-oils-profile-back-btn svg,
.screen-oils-profile-home-btn svg {
  width: 13px;
  height: 13px;
  color: var(--app-ink);
}
.screen-oils-profile-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.screen-oils-profile-scroll { will-change: transform; }
.screen-oils-profile-hero {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.screen-oils-profile-body { padding: 8px 10px; }
.screen-oils-profile-title {
  font-family: var(--font-app-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink);
  line-height: 1.15;
}
.screen-oils-profile-latin {
  font-size: 8px;
  font-style: italic;
  color: #9B9590;
  margin-top: 2px;
}
.screen-oils-profile-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(91, 117, 83, 0.09);
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--app-sage);
}
.screen-oils-profile-type-badge svg { color: var(--app-sage); flex-shrink: 0; }
.screen-oils-profile-desc {
  font-size: 8px;
  color: #5a5550;
  line-height: 1.5;
  margin-top: 8px;
}
.screen-oils-profile-details-card {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.screen-oils-profile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(232, 224, 210, 0.5);
}
.screen-oils-profile-detail-row--last { border-bottom: none; }
.screen-oils-profile-detail-label {
  font-size: 7.5px;
  font-weight: 600;
  color: #6B6560;
}
.screen-oils-profile-detail-value {
  font-size: 7.5px;
  font-weight: 400;
  color: var(--app-ink);
  text-align: right;
}
.screen-oils-profile-aroma {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.screen-oils-profile-aroma-title {
  font-size: 7.5px;
  font-weight: 600;
  color: #6B6560;
  margin-bottom: 4px;
}
.screen-oils-profile-aroma-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.screen-oils-profile-aroma-chip {
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 7px;
  font-weight: 500;
  color: #9B8EA8;
  background: rgba(155, 142, 168, 0.09);
  border: 1px solid rgba(155, 142, 168, 0.25);
}

/* Therapeutic Properties card */
.screen-oils-profile-props {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.screen-oils-profile-props-title {
  font-size: 7.5px;
  font-weight: 600;
  color: #6B6560;
  margin-bottom: 4px;
}
.screen-oils-profile-props-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.screen-oils-profile-props-chip {
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 7px;
  font-weight: 500;
  color: var(--app-sage);
  background: rgba(91, 117, 83, 0.08);
  border: 1px solid rgba(91, 117, 83, 0.2);
}

/* Chemical Family card */
.screen-oils-profile-chemfam {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.screen-oils-profile-chemfam-title {
  font-size: 7.5px;
  font-weight: 600;
  color: #6B6560;
  margin-bottom: 4px;
}
.screen-oils-profile-chemfam-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.screen-oils-profile-chemfam-chip {
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 7px;
  font-weight: 500;
}
.screen-oils-profile-chemfam-chip--green {
  color: var(--app-sage);
  background: rgba(91, 117, 83, 0.08);
  border: 1px solid rgba(91, 117, 83, 0.2);
}
.screen-oils-profile-chemfam-chip--coral {
  color: var(--app-terracotta);
  background: rgba(196, 137, 109, 0.08);
  border: 1px solid rgba(196, 137, 109, 0.2);
}

/* Safety Information card */
.screen-oils-profile-safety {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  background: rgba(212, 164, 62, 0.08);
  border: 1px solid rgba(212, 164, 62, 0.2);
  border-radius: 8px;
  padding: 7px 8px;
  margin-top: 6px;
}
.screen-oils-profile-safety-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.screen-oils-profile-safety-content { flex: 1; min-width: 0; }
.screen-oils-profile-safety-title {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--app-terracotta);
  margin-bottom: 2px;
}
.screen-oils-profile-safety-text {
  font-size: 7px;
  color: #5a5550;
  line-height: 1.5;
}

/* GCMS Report button */
.screen-oils-profile-gcms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 0;
  border: 1px solid var(--app-terracotta);
  border-radius: 8px;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--app-terracotta);
}
.screen-oils-profile-gcms svg { color: var(--app-terracotta); flex-shrink: 0; }
.screen-oils-profile-gcms-ext { opacity: 0.5; }

/* View Recipes button */
.screen-oils-profile-recipes-btn {
  margin-top: 6px;
  padding: 7px 0;
  background: var(--app-sage);
  color: #fff;
  font-size: 7.5px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
}

/* --- Vertical Progress Stepper --- */
.showcase-stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  padding: 2rem 0;
  z-index: 3;
  flex-shrink: 0;
}

.showcase-stepper-track {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.showcase-stepper-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--sage);
  transition: height 0.4s var(--ease-out-expo);
}

.showcase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  z-index: 1;
}

.showcase-step-drop {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(250, 247, 242, 0.25);
  stroke-width: 32px;
  stroke-miterlimit: 10;
  transition: all 0.5s var(--ease-out-expo);
  transform: scale(0.85);
  filter: drop-shadow(0 0 0 transparent);
}

.showcase-step.active .showcase-step-drop {
  stroke: var(--sage);
  fill: var(--sage);
  transform: scale(1);
  filter: drop-shadow(0 0 6px rgba(45, 138, 78, 0.35));
  animation: dropPulse 2.4s ease-in-out infinite;
}

.showcase-step.completed .showcase-step-drop {
  stroke: var(--sage);
  fill: var(--sage);
  transform: scale(0.85);
}

@keyframes dropPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(45, 138, 78, 0.35)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(45, 138, 78, 0.5)); }
}

.showcase-step-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.3);
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.5s var(--ease-out-expo);
}

.showcase-step.active .showcase-step-label {
  color: var(--cream);
  font-weight: 500;
}

.showcase-step.completed .showcase-step-label {
  color: rgba(250, 247, 242, 0.5);
}

.showcase-step-line {
  width: 1.5px;
  height: 48px;
  background: rgba(250, 247, 242, 0.1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.showcase-step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--sage);
  opacity: 0.5;
  transition: height 0.6s var(--ease-out-expo);
}

.showcase-step-line.completed::after {
  height: 100%;
}

/* --- Scrollable right column --- */
.showcase-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10vh 0 calc(90dvh - 610px);
  position: relative;
  z-index: 2;
}

/* --- Marketing Content Cards (flow, not absolute) --- */
.showcase-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(20, 46, 31, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(45, 138, 78, 0.12);
  border-radius: 1.25rem;
  opacity: 0.3;
  will-change: opacity;
  transition: opacity 0.5s var(--ease-out-expo);
}

.showcase-card.active {
  opacity: 1;
}

/* Card scroll-weight via min-height */
.showcase-card[data-card="0"] { min-height: 55vh; }
.showcase-card[data-card="1"] { min-height: 50vh; }
.showcase-card[data-card="2"] { min-height: 60vh; }
.showcase-card[data-card="3"] { min-height: 60vh; }
.showcase-card[data-card="4"] { min-height: 60vh; }

.showcase-card-icon {
  width: 40px;
  height: 40px;
  color: var(--sage-light);
  margin-bottom: 1.25rem;
}

.showcase-card-icon svg {
  width: 100%;
  height: 100%;
}

.showcase-card-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1rem;
}

.showcase-card-divider {
  width: 32px;
  height: 2px;
  background: var(--sage);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.showcase-card-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.75);
  max-width: 38ch;
  margin-bottom: 1.25rem;
}

.showcase-card-list {
  list-style: none;
  counter-reset: card-step;
  margin-bottom: 1.5rem;
  padding: 0;
}

.showcase-card-list li {
  counter-increment: card-step;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(250, 247, 242, 0.80);
  line-height: 1.6;
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.375rem;
}

.showcase-card-list li::before {
  content: counter(card-step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--sage-light);
  width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(45, 138, 78, 0.25);
  margin-top: 2px;
}

.showcase-card-highlight {
  border-left: 3px solid var(--sage);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.showcase-card-stat {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  display: block;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.showcase-card-stat-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.60);
  display: block;
  margin-top: 0.125rem;
}

.showcase-card-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-light);
  padding: 0.5rem 1.25rem;
  border: 1.5px solid rgba(45, 138, 78, 0.35);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
}

.showcase-card-cta:hover {
  background-color: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

/* --- TESTIMONIALS --- */
.testimonials {
  background-color: var(--cream);
  position: relative;
  z-index: 1;
}

.testimonials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem 6rem 4rem;
}

.testimonials-header {
  margin-bottom: 4rem;
}

.testimonials-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.testimonials-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.65;
  color: #6B6560;
  max-width: 52ch;
}

/* Asymmetric 2-column grid (SKILL.md: no 3-col cards) */
.testimonials-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.5rem 3rem;
}

/* Base quote styling — no card boxes, just spacing */
.testimonial {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out calc(var(--index) * 0.1s),
              transform 0.6s var(--ease-out-expo) calc(var(--index) * 0.1s);
}

.testimonial.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.testimonial-cite {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: normal;
  color: #9B9590;
  letter-spacing: 0.02em;
}

.testimonial-tag {
  font-weight: 400;
  color: var(--sage);
  margin-left: 0.5rem;
}

/* Accent variant — left sage border for featured quotes */
.testimonial--accent {
  padding-left: 1.5rem;
  border-left: 3px solid var(--sage);
}

/* Pullquote variant — larger text for short punchy quotes */
.testimonial--pullquote .testimonial-text {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* --- AUTHORS --- */
.authors {
  background-color: var(--cream);
  border-top: 1px solid rgba(45, 138, 78, 0.08);
}

.authors-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem 6rem 4rem;
}

.authors-header {
  margin-bottom: 4rem;
}

.authors-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.authors-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.authors-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.65;
  color: #6B6560;
  max-width: 56ch;
}

/* Grid: lead author full-width, then equal columns below */
.authors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Base author card — no box, just spacing */
.author {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out calc(var(--index) * 0.12s),
              transform 0.6s var(--ease-out-expo) calc(var(--index) * 0.12s);
}

.author.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lead author spans full width with horizontal layout */
.author--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.author-photo-wrap {
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4 / 5;
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Non-lead authors: vertical photo + text stack */
.author:not(.author--lead) .author-photo-wrap {
  aspect-ratio: 3 / 2;
  margin-bottom: 1.25rem;
}

.author-name {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.author-role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.author-bio {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: #6B6560;
  max-width: 52ch;
}

/* --- FEATURE STRIP --- */
.features {
  background-color: var(--cream);
  border-top: 1px solid rgba(45, 138, 78, 0.06);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 5rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.feature-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
  transition-delay: calc(var(--index) * 120ms);
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--sage);
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* --- TRUST BAR --- */
.trust {
  background-color: var(--cream);
  border-top: 1px solid rgba(45, 138, 78, 0.08);
  border-bottom: 1px solid rgba(45, 138, 78, 0.08);
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 4rem 4rem;
}

.trust-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2.5rem;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.trust-stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.trust-stat.visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.trust-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 65ch;
}

/* --- CTA --- */
.cta {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(61, 168, 99, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 55% at 15% 70%, rgba(196, 137, 109, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 35% 50% at 85% 30%, rgba(255, 224, 102, 0.04) 0%, transparent 50%),
    linear-gradient(170deg, #153723 0%, #1E5E35 18%, #2D8A4E 42%, #3DA863 60%, #2D8A4E 82%, #1A4C2E 100%);
  overflow: hidden;
}

/* Botanical illustration — right side */
.cta::before {
  content: '';
  position: absolute;
  right: -2%;
  bottom: -8%;
  width: 420px;
  height: 640px;
  background: url('assets/cta-helichrysum.webp') center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

/* Botanical illustration — left side (mirrored, offset) */
.cta::after {
  content: '';
  position: absolute;
  left: -4%;
  top: -5%;
  width: 340px;
  height: 520px;
  background: url('assets/cta-helichrysum.webp') center / contain no-repeat;
  opacity: 0.07;
  transform: scaleX(-1) rotate(15deg);
  pointer-events: none;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

.cta-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 243, 210, 0.85);
  margin-bottom: 1rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.cta-pricing {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 300;
  color: rgba(250, 247, 242, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.cta-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.cta-store-badge {
  display: inline-block;
  transition: all 0.3s var(--ease-out-expo);
}

.cta-store-badge:hover {
  transform: translateY(-2px);
}

.cta-store-badge:active {
  transform: scale(0.97);
}

.cta-store-badge svg {
  height: 48px;
  width: auto;
}

.cta-note {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.45);
  margin-top: 1.5rem;
}

/* --- FOOTER --- */
.footer {
  background-color: #143D24;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.6);
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .showcase {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .showcase-intro {
    padding: 2.5rem 2rem;
    margin: 2rem 0.5rem 0;
  }

  .showcase-stepper {
    display: none;
  }

  .showcase-left {
    height: 45vh;
    justify-content: center;
  }

  .showcase-phone-frame {
    width: 260px;
    height: 529px;
  }

  .showcase-right {
    padding: 2rem 0 50vh;
  }

  .showcase-card {
    min-height: auto !important;
    padding: 1.5rem;
  }

  .showcase-card-list,
  .showcase-card-highlight {
    display: none;
  }

  .testimonials-inner {
    padding: 4rem 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .authors-inner {
    padding: 4rem 1.5rem;
  }

  .authors-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .author--lead {
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
  }

  .features-inner {
    padding-left: 2rem;
    gap: 2rem;
  }

  .trust-inner {
    padding-left: 2rem;
  }
}

@media (max-width: 860px) {
  .nav-logo span {
    font-size: 1.05rem;
  }

  .nav-badge svg {
    height: 28px;
  }

  .nav-badges {
    gap: 0.375rem;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 7rem 1.5rem 3rem;
    text-align: left;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-visual {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .hero-phone-mockup {
    width: 260px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-store-badge svg {
    height: 40px;
  }

  /* Showcase mobile — hide phone, cards go full-width */
  .showcase-intro {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem 0.5rem 0;
    border-radius: 1.5rem;
  }

  .showcase-intro-stats {
    gap: 1.5rem;
  }

  .showcase-intro-stat-num {
    font-size: 1.5rem;
  }

  .showcase-left {
    display: none;
  }

  .showcase-right {
    padding: 1.5rem 0 3rem;
  }

  .showcase-card {
    padding: 1.25rem;
  }

  .showcase-card-body {
    font-size: 0.875rem;
  }

  /* Testimonials mobile — single column */
  .testimonials-inner {
    padding: 3.5rem 1.5rem;
  }

  .testimonials-header {
    margin-bottom: 2.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Authors mobile — single column, lead stacks vertically */
  .authors-inner {
    padding: 3.5rem 1.5rem;
  }

  .authors-header {
    margin-bottom: 2.5rem;
  }

  .authors-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .author--lead {
    grid-template-columns: 1fr;
  }

  .author--lead .author-photo-wrap {
    aspect-ratio: 3 / 2;
    max-width: 320px;
  }

  /* Features mobile */
  .features-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3.5rem 1.5rem;
  }

  /* Trust mobile */
  .trust-stats {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .trust-inner {
    padding: 3rem 1.5rem;
  }

  /* CTA mobile */
  .cta-inner {
    padding: 5rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 1rem 1rem;
  }

  .nav-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .nav-logo span {
    font-size: 0.95rem;
  }

  .nav-badge svg {
    height: 24px;
  }

  .nav-badges {
    gap: 0.25rem;
  }

  .hero-inner {
    padding: 6rem 1rem 2rem;
  }

  .hero-phone-mockup {
    width: 230px;
  }

  .showcase-phone-frame {
    width: 190px;
    height: 386px;
  }

  .showcase-phone-notch {
    width: 65px;
    height: 18px;
    top: 6px;
  }

  .showcase-card {
    padding: 1rem 0.875rem;
  }

  .showcase-card-body,
  .showcase-card-cta {
    display: none;
  }

  .features-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
  }

  .trust-stats {
    grid-template-columns: 1fr 1fr;
  }

  .trust-inner {
    padding: 2.5rem 1rem;
  }

  .cta-inner {
    padding: 4rem 1rem;
  }
}
