/* ==========================================================================
   Hearthmade — Style System (Uber Black & Candlelit Hearth Aesthetic)
   Colors:
     - Background: Deep steeped-tea charcoal (#121110, #161412, #1A1715)
     - Card Surface: Warm charcoal tint (#1E1B18, #25211D)
     - Accents: Warm Honey / Amber (#E5A962), Hearth Terracotta (#D47355), Radiant Gold (#F3C078)
     - Typography: Soft Linen Cream (#F5EFEB), Muted Hearth Sand (#C7BFB6), Ash Subtext (#8E857C)
   ========================================================================== */

:root {
  --bg-deep: #121110;
  --bg-base: #161412;
  --bg-surface: #1C1917;
  --bg-surface-elevated: #24201D;
  --bg-surface-glass: rgba(28, 25, 23, 0.75);
  
  --border-subtle: rgba(229, 169, 98, 0.12);
  --border-medium: rgba(229, 169, 98, 0.22);
  --border-glow: rgba(229, 169, 98, 0.45);
  
  --amber-primary: #E5A962;
  --amber-light: #F7CA92;
  --amber-glow: rgba(229, 169, 98, 0.25);
  --amber-halo: rgba(229, 169, 98, 0.08);
  --terracotta: #D47355;
  --terracotta-dark: #8F3C28;
  
  --text-linen: #F5EFEB;
  --text-sand: #C7BFB6;
  --text-muted: #8E857C;
  --text-dim: #645C54;
  
  --font-display: 'Fraunces', Georgia, serif;
  --font-editorial: 'Newsreader', 'Lora', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-reading: 'Lora', serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-hearth: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 40px rgba(229, 169, 98, 0.06);
  --shadow-flame: 0 0 25px rgba(229, 169, 98, 0.35);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.hearth-body {
  background-color: var(--bg-deep);
  color: var(--text-linen);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient Candlelit Backgrounds */
.candlelit-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 15%, rgba(229, 169, 98, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 80% 60%, rgba(212, 115, 85, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(229, 169, 98, 0.03) 0%, transparent 40%);
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ambient-glow.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 169, 98, 0.12) 0%, transparent 70%);
  top: -100px;
  left: calc(50% - 250px);
  animation: hearthFlicker 9s ease-in-out infinite alternate;
}

.ambient-glow.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 115, 85, 0.08) 0%, transparent 70%);
  bottom: 10%;
  right: -100px;
  animation: hearthFlicker 12s ease-in-out infinite alternate-reverse;
}

@keyframes hearthFlicker {
  0% { transform: scale(0.95); opacity: 0.45; }
  50% { transform: scale(1.05); opacity: 0.65; }
  100% { transform: scale(0.98); opacity: 0.52; }
}

/* Base Container & Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.hearth-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 17, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-flame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(229, 169, 98, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-flame);
}

.brand-flame.sm {
  width: 32px;
  height: 32px;
}

.flame-halo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(229, 169, 98, 0.3) 0%, transparent 70%);
  animation: flamePulse 3s ease-in-out infinite;
}

@keyframes flamePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-linen);
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.76rem;
  color: var(--amber-primary);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-sand);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--amber-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-hearth-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: rgba(229, 169, 98, 0.12);
  color: var(--amber-light);
  border: 1px solid var(--border-medium);
}

.btn-hearth-sm:hover {
  background: var(--amber-primary);
  color: #121110;
  border-color: var(--amber-primary);
  box-shadow: 0 0 20px var(--amber-glow);
}

.btn-flame-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-primary);
  box-shadow: 0 0 8px var(--amber-primary);
}

.btn-hearth-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, #E5A962 0%, #D47355 100%);
  color: #121110;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(229, 169, 98, 0.3);
}

.btn-hearth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(229, 169, 98, 0.45);
}

.btn-hearth-secondary {
  padding: 14px 28px;
  background: var(--bg-surface);
  color: var(--text-linen);
  border: 1px solid var(--border-medium);
}

.btn-hearth-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--amber-primary);
  color: var(--amber-light);
  transform: translateY(-2px);
}

.btn-ghost-hearth {
  padding: 8px 18px;
  background: transparent;
  color: var(--text-sand);
  border: 1px solid var(--border-subtle);
}

.btn-ghost-hearth:hover {
  color: var(--text-linen);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero Section */
.hero-section {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(229, 169, 98, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-primary);
  box-shadow: 0 0 10px var(--amber-primary);
  animation: badgeBlink 2s ease-in-out infinite;
}

@keyframes badgeBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-linen);
}

.hero-highlight {
  background: linear-gradient(135deg, #F7CA92 0%, #E5A962 40%, #D47355 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lede {
  font-family: var(--font-reading);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-sand);
  margin: 0 auto 38px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-reassurance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reassurance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(28, 25, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--text-sand);
}

.reassurance-pill svg {
  color: var(--amber-primary);
}

/* Section Common */
.section-block {
  padding: 90px 0;
  position: relative;
}

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

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-primary);
  margin-bottom: 12px;
}

.eyebrow-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.eyebrow-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: monospace;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-linen);
}

.section-subtitle {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  color: var(--text-sand);
  line-height: 1.7;
}

/* Geo-Pantry Grounding Bar */
.pantry-location-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-hearth);
}

.location-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(36, 32, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-sand);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loc-chip:hover {
  background: rgba(229, 169, 98, 0.1);
  border-color: var(--border-medium);
  color: var(--text-linen);
}

.loc-chip.active {
  background: rgba(229, 169, 98, 0.18);
  border-color: var(--amber-primary);
  color: var(--amber-light);
  box-shadow: 0 0 16px rgba(229, 169, 98, 0.15);
}

.loc-chip.special-mode {
  border-color: rgba(212, 115, 85, 0.4);
}

.loc-chip.special-mode.active {
  background: rgba(212, 115, 85, 0.22);
  border-color: var(--terracotta);
  color: #FFA585;
}

.custom-geo-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.input-with-icon {
  position: relative;
  flex: 1;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-with-icon input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  color: var(--text-linen);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 12px rgba(229, 169, 98, 0.15);
}

.grounding-card-wrapper {
  margin-top: 24px;
}

.grounding-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-hearth);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

.grounding-meta-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.grounding-meta-head .grocer-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(229, 169, 98, 0.12);
  color: var(--amber-primary);
  border-radius: var(--radius-full);
}

.grounding-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-linen);
  margin-bottom: 8px;
}

.grounding-walking-dist {
  font-size: 0.9rem;
  color: var(--amber-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.grounding-desc {
  font-family: var(--font-reading);
  color: var(--text-sand);
  line-height: 1.65;
  margin-bottom: 24px;
}

.staples-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staple-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(36, 32, 29, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.staple-icon {
  font-size: 1.3rem;
}

.staple-name {
  font-weight: 600;
  color: var(--text-linen);
}

.staple-purpose {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.recommended-tonight-box {
  background: rgba(22, 20, 18, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tonight-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.tonight-dish-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text-linen);
  margin-bottom: 12px;
}

.tonight-dish-desc {
  font-family: var(--font-reading);
  font-size: 0.94rem;
  color: var(--text-sand);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tonight-specs {
  display: flex;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--amber-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* 5 Forgiving Archetypes */
.archetypes-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.archetype-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archetype-tab:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.archetype-tab.active {
  border-color: var(--amber-primary);
  background: rgba(229, 169, 98, 0.1);
  box-shadow: 0 0 20px rgba(229, 169, 98, 0.12);
}

.tab-num {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--amber-primary);
  font-weight: 700;
}

.tab-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-linen);
  line-height: 1.3;
}

.archetype-display-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-hearth);
}

.archetype-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.archetype-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.archetype-title-row .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(229, 169, 98, 0.14);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.archetype-main-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-linen);
}

.archetype-variations-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.var-pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  color: var(--amber-light);
}

.archetype-prose {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-sand);
  margin-bottom: 24px;
}

.forgiving-aspect-box {
  background: rgba(22, 20, 18, 0.7);
  border-left: 3px solid var(--amber-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.forgiving-aspect-box h5 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-primary);
  margin-bottom: 6px;
}

.forgiving-aspect-box p {
  font-size: 0.94rem;
  color: var(--text-linen);
  line-height: 1.5;
}

/* Steps Sequence */
.archetype-steps-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.steps-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-linen);
  margin-bottom: 20px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-bubble {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(229, 169, 98, 0.12);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-weight: 700;
  color: var(--amber-primary);
  font-size: 0.9rem;
}

.step-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-linen);
  margin-bottom: 4px;
}

.step-content p {
  font-family: var(--font-reading);
  font-size: 0.94rem;
  color: var(--text-sand);
  line-height: 1.55;
}

/* The Hearth Companion Layout */
.companion-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

/* Phone Frame */
.phone-frame-outer {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 380px;
  background: #080807;
  border: 3px solid #2B2622;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(229, 169, 98, 0.15);
  position: relative;
}

.phone-speaker-notch {
  width: 90px;
  height: 5px;
  background: #25211D;
  border-radius: var(--radius-full);
  margin: 8px auto 14px;
}

.viewport-screen {
  background: #0F0E0D;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 14;
  border: 1px solid rgba(229, 169, 98, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Amber Ring */
.camera-amber-ring {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.camera-amber-ring .ring-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--amber-primary);
  animation: ringExpand 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.camera-amber-ring .ring-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-primary);
  box-shadow: 0 0 10px var(--amber-primary);
}

@keyframes ringExpand {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.viewport-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.camera-video, .camera-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-video.is-hidden {
  display: none;
}

.viewport-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.7) 0%, transparent 25%, transparent 65%, rgba(14, 13, 12, 0.85) 100%);
  pointer-events: none;
  z-index: 10;
}

.viewport-overlay * {
  pointer-events: auto;
}

.viewport-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 32px; /* space for amber ring */
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 17, 16, 0.8);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-light);
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}

.btn-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(28, 25, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-sand);
  padding: 4px 10px;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-icon-pill:hover {
  color: var(--amber-light);
  border-color: var(--amber-primary);
}

.viewport-bottom-hud {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scent-thermal-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 17, 16, 0.75);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  backdrop-filter: blur(8px);
}

.thermal-label {
  color: var(--text-muted);
}

.thermal-value {
  color: var(--amber-light);
  font-weight: 600;
}

.audio-feedback-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.audio-feedback-waveform .bar {
  width: 3px;
  height: 6px;
  background: var(--amber-primary);
  border-radius: 2px;
  animation: waveBar 1.4s ease-in-out infinite alternate;
}

.audio-feedback-waveform .bar:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.audio-feedback-waveform .bar:nth-child(3) { animation-delay: 0.4s; height: 14px; }
.audio-feedback-waveform .bar:nth-child(4) { animation-delay: 0.1s; height: 8px; }
.audio-feedback-waveform .bar:nth-child(5) { animation-delay: 0.5s; height: 16px; }
.audio-feedback-waveform .bar:nth-child(6) { animation-delay: 0.3s; height: 11px; }
.audio-feedback-waveform .bar:nth-child(7) { animation-delay: 0.6s; height: 7px; }
.audio-feedback-waveform .bar:nth-child(8) { animation-delay: 0.25s; height: 12px; }

@keyframes waveBar {
  0% { transform: scaleY(0.4); opacity: 0.4; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

/* Reassurance Feed in Phone */
.reassurance-feed {
  position: relative;
  z-index: 30;
  margin: 12px;
  background: rgba(18, 17, 16, 0.92);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px;
  backdrop-filter: blur(12px);
  display: flex;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: slideReassurance 0.4s ease-out;
}

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

.companion-avatar {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(229, 169, 98, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.speech-bubble p {
  font-family: var(--font-reading);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-linen);
  margin-bottom: 4px;
}

.speech-meta {
  font-size: 0.68rem;
  color: var(--amber-primary);
}

/* Companion Controls Panel */
.companion-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-card-hearth {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-hearth);
}

.panel-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 18px;
}

.panel-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text-linen);
  margin-bottom: 4px;
}

.panel-sub {
  font-size: 0.88rem;
  color: var(--text-sand);
}

.btn-voice-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(229, 169, 98, 0.15);
  border: 1px solid var(--amber-primary);
  border-radius: var(--radius-full);
  color: var(--amber-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-voice-active.is-muted {
  background: rgba(36, 32, 29, 0.6);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.companion-prompts-group {
  margin-bottom: 28px;
}

.prompt-group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-primary);
  margin-bottom: 12px;
}

.prompt-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-prompt {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-sand);
  font-family: var(--font-body);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prompt:hover {
  background: rgba(229, 169, 98, 0.1);
  border-color: var(--border-medium);
  color: var(--text-linen);
  transform: translateX(2px);
}

/* Transcript */
.transcript-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.btn-text-dim {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-text-dim:hover {
  color: var(--amber-light);
}

.transcript-scroll {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.transcript-line {
  display: flex;
  gap: 10px;
  line-height: 1.4;
}

.transcript-line .time {
  color: var(--text-dim);
  font-family: monospace;
  font-size: 0.75rem;
}

.transcript-line.system .text {
  color: var(--text-muted);
  font-style: italic;
}

.transcript-line.spoken .text {
  color: var(--amber-light);
}

.step-pacer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

/* Recovery Guide / The Forgiving Kitchen */
.section-forgiving {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #151311 100%);
}

.recovery-search-wrap {
  max-width: 600px;
  margin: 0 auto 40px;
}

.recovery-search-box {
  position: relative;
}

.recovery-search-box svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber-primary);
}

.recovery-search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 16px 20px 16px 52px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-linen);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recovery-search-box input:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 20px var(--amber-glow);
}

.recovery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recovery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.recovery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hearth);
}

.recovery-top {
  margin-bottom: 20px;
}

.recovery-symptom-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  background: rgba(212, 115, 85, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.recovery-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-linen);
  margin-bottom: 10px;
}

.recovery-myth {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-bottom: 14px;
}

.recovery-cure {
  font-family: var(--font-reading);
  font-size: 0.98rem;
  color: var(--text-sand);
  line-height: 1.6;
}

.recovery-steps-mini {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--amber-light);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Ingredient Passport Preview */
.passport-regions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.passport-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.passport-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.passport-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px dashed var(--amber-primary);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.68rem;
  color: var(--amber-primary);
  transform: rotate(-6deg);
  opacity: 0.7;
}

.passport-flag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.passport-flag {
  font-size: 1.5rem;
}

.passport-region-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-linen);
}

.passport-store-type {
  font-size: 0.78rem;
  color: var(--amber-primary);
}

.passport-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.passport-items-list li {
  font-size: 0.88rem;
  color: var(--text-sand);
  display: flex;
  align-items: center;
  gap: 6px;
}

.passport-items-list li::before {
  content: "•";
  color: var(--amber-primary);
}

.passport-gold-dish {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.passport-gold-dish strong {
  color: var(--text-linen);
  display: block;
}

/* Footer */
.hearth-footer {
  background: #0D0C0B;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-desc {
  font-family: var(--font-reading);
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 18px 0 20px;
  max-width: 380px;
}

.aram-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(229, 169, 98, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--amber-light);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-primary);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--text-sand);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--amber-light);
}

.status-indicator-live code {
  background: var(--bg-surface-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--amber-light);
  font-size: 0.8rem;
}

.footer-bottom-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-meta-tags {
  display: flex;
  gap: 10px;
}

.meta-tag {
  font-size: 0.74rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .companion-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .companion-controls-panel {
    width: 100%;
    max-width: 600px;
  }
  .archetypes-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .recovery-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .passport-regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .grounding-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .archetype-hero-grid {
    grid-template-columns: 1fr;
  }
  .archetypes-tabs {
    grid-template-columns: 1fr;
  }
  .recovery-cards-grid {
    grid-template-columns: 1fr;
  }
  .passport-regions-grid {
    grid-template-columns: 1fr;
  }
  .prompt-buttons-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-row {
    grid-template-columns: 1fr;
  }
}
