/**
 * Fitness Quest - With My Pet — Nightfall Design System Stylesheet
 * Brand Palette: Obsidian (#0A0E13), Card (#121820), Raised (#19212A), Luminous Neon (#B8FF3D)
 * Typography: Native SF Pro Display / System Stack
 */

:root {
  --color-bg: #0A0E13;
  --color-surface-card: #121820;
  --color-surface-raised: #19212A;
  --color-surface-sunken: #070A0E;
  --color-text-primary: #F5F4EF;
  --color-text-secondary: #ABB5B8;
  --color-text-muted: #6C7A82;
  --color-accent: #B8FF3D;
  --color-accent-hover: #93D932;
  --color-accent-subtle: rgba(184, 255, 61, 0.12);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-accent: rgba(184, 255, 61, 0.4);
  --color-danger: #FF5A5A;
  --color-success: #38E084;
  
  --font-family-base: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 28px rgba(184, 255, 61, 0.22);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  
  --container-max: 1200px;
  --container-narrow: 840px;
  --header-height: 76px;
}

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

html {
  font-family: var(--font-family-base);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(25, 33, 42, 0.6) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(184, 255, 61, 0.03) 0%, transparent 40%);
  background-repeat: no-repeat;
}

/* Skip Link Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 10px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--color-accent-hover);
}

.text-accent {
  color: var(--color-accent) !important;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 14, 19, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.brand-logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

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

.nav-item a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--color-text-primary);
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  padding: 8px;
  cursor: pointer;
}
.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

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

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(184, 255, 61, 0.28);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 255, 61, 0.36);
}

.btn-secondary {
  background-color: var(--color-surface-card);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background-color: var(--color-surface-raised);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

/* Cards & Surfaces */
.card {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.card-raised {
  background-color: var(--color-surface-raised);
}

.card-accent-border {
  border-color: var(--color-border-accent);
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: var(--color-accent);
}

/* Section Common */
.section {
  padding: 100px 0;
  position: relative;
}

.section-tight {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-header p {
  margin-top: 14px;
  font-size: 1.15rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(90vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 80px 0 100px 0;
  overflow: hidden;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: saturate(1.15) contrast(1.05);
}

.hero-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, rgba(10, 14, 19, 0.18) 0%, rgba(10, 14, 19, 0.50) 65%, rgba(10, 14, 19, 0.90) 100%),
    radial-gradient(circle at 50% 45%, rgba(10, 14, 19, 0.05) 0%, rgba(10, 14, 19, 0.68) 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-title .highlight {
  color: var(--color-accent);
  display: block;
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-video-toggle {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  background: rgba(18, 24, 32, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}

/* Feature Grid & Narrative Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-family: var(--font-family-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  margin-bottom: 12px;
}

/* Companion Gallery / Pet Cards */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  transition: opacity 0.25s ease;
}

.pet-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.pet-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 255, 61, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(184, 255, 61, 0.12);
}

.pet-card-challenge {
  border-color: rgba(229, 166, 66, 0.25);
}

.pet-card-challenge:hover {
  border-color: rgba(229, 166, 66, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(229, 166, 66, 0.15);
}

.pet-media-frame {
  width: 100%;
  height: 250px;
  background: radial-gradient(circle at 50% 35%, #18222d 0%, #0a0d12 80%);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pet-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pet-card:hover .pet-media-frame img {
  transform: scale(1.06);
}

.pet-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(10, 14, 19, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 255, 61, 0.35);
  color: var(--color-accent);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pet-badge-gold {
  border-color: rgba(229, 166, 66, 0.5);
  color: #ffca65;
}

.pet-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pet-tagline {
  font-size: 0.88rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.pet-traits-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.pet-trait-pill {
  font-size: 0.76rem;
  background: var(--color-surface-sunken);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--color-text-secondary);
}

/* Companion Filter Controls */
.pet-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.pet-filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pet-filter-btn:hover {
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  border-color: rgba(184, 255, 61, 0.3);
}

.pet-filter-btn.active {
  background: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(184, 255, 61, 0.3);
}

.pet-points {
  font-family: var(--font-family-mono);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.05rem;
}

/* App Screenshot Showcase */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.phone-mockup-frame {
  background: #020305;
  border: 6px solid #1E2835;
  border-radius: 36px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #020305;
  margin: 0 auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Care Logic & Deduplication Callout */
.logic-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.logic-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
}

.logic-pill {
  display: inline-block;
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.logic-pill-steps {
  background: rgba(184, 255, 61, 0.15);
  color: var(--color-accent);
}

.logic-pill-workouts {
  background: rgba(86, 178, 255, 0.15);
  color: #56B2FF;
}

/* FAQ Details Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Editorial Blog Styling */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-accent);
}

.blog-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-sunken);
  overflow: hidden;
  position: relative;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card-readmore {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Single Article Editorial Prose Layout */
.article-header {
  padding: 60px 0 40px 0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.article-hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prose-content {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #D3D8DB;
}

.prose-content h2 {
  margin-top: 52px;
  margin-bottom: 20px;
  font-size: 1.85rem;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 12px;
}

.prose-content h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: var(--color-text-primary);
}

.prose-content p {
  margin-bottom: 24px;
  font-size: 1.125rem;
  color: #C0C8CD;
}

.prose-content ul, .prose-content ol {
  margin-bottom: 28px;
  padding-left: 28px;
}

.prose-content li {
  margin-bottom: 10px;
  color: #C0C8CD;
}

.prose-content strong {
  color: var(--color-text-primary);
}

.prose-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 16px 24px;
  margin: 36px 0;
  background: var(--color-surface-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-primary);
}

.prose-content .callout-box {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 36px 0;
}

.prose-content .callout-box h4 {
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--color-surface-sunken);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.2);
}

.form-control.is-invalid {
  border-color: var(--color-danger);
}

.form-feedback-error {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 6px;
}

.alert {
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(56, 224, 132, 0.12);
  border: 1px solid rgba(56, 224, 132, 0.35);
  color: #72F3A8;
}

.alert-danger {
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #FF8F8F;
}

/* Footer & Exact Required Credit */
.site-footer {
  margin-top: auto;
  background-color: var(--color-surface-sunken);
  border-top: 1px solid var(--color-border-subtle);
  padding: 80px 0 40px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-credit {
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .logic-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 68px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 19, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    z-index: 999;
  }
  .nav-links.is-open {
    transform: translateY(0);
  }
  .nav-actions {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sticky Header Anchor Offset */
[id] {
  scroll-margin-top: 96px;
}

/* Store Badge Controls */
.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
}

.store-badge-btn:hover {
  border-color: var(--color-accent);
  background: #121820;
  transform: translateY(-2px);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(184, 255, 61, 0.15);
}

.store-badge-disabled {
  opacity: 0.65;
  cursor: default;
  border-style: dashed;
}

.store-badge-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.22);
  background: #000000;
  box-shadow: none;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-badge-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.store-badge-main {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Growth Gallery & Pet Detail Styles */
.growth-switcher-bar {
  display: inline-flex;
  background: var(--color-surface-card);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.growth-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.growth-tab-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-raised);
}

.growth-tab-btn.active {
  background: var(--color-accent);
  color: #0A0E13;
  font-weight: 800;
  border-color: var(--color-accent);
  box-shadow: 0 4px 18px rgba(184, 255, 61, 0.35);
}

.growth-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.growth-panel {
  animation: fadeIn 0.3s ease;
}

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

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

@media (max-width: 980px) {
  .plans-grid {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    gap: 20px !important;
  }
}

@media (max-width: 860px) {
  .pet-hero-grid,
  .growth-panel-grid,
  .care-breakdown-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .growth-tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   Community Reviews Section — Nightfall Ticker & Accessible Carousel
   ========================================================================== */

.community-reviews-section {
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.reviews-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.reviews-header-content {
  max-width: 680px;
}

.reviews-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.reviews-sample-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(184, 255, 61, 0.08);
  border: 1px solid rgba(184, 255, 61, 0.28);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reviews-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.reviews-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 620px;
}

.reviews-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.review-nav-btn,
.review-play-pause-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.review-nav-btn:hover,
.review-play-pause-btn:hover {
  background: var(--color-surface-raised);
  border-color: rgba(184, 255, 61, 0.45);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.review-nav-btn:focus-visible,
.review-play-pause-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.review-nav-btn:active,
.review-play-pause-btn:active {
  transform: translateY(0);
}

/* Viewport and Ticker Track */
.reviews-track-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 24px 28px;
  margin: 0 -24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-track-viewport::-webkit-scrollbar {
  display: none;
}

.reviews-track-viewport:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  align-items: stretch;
}

/* Individual Card */
.review-card {
  position: relative;
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  background: rgba(18, 24, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  user-select: text;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 255, 61, 0.38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(184, 255, 61, 0.08);
}

.review-card:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(184, 255, 61, 0.25);
}

.review-card-accent-bar {
  position: absolute;
  top: 0;
  left: 24px;
  width: 36px;
  height: 2.5px;
  background: var(--color-accent);
  border-radius: 0 0 2px 2px;
  opacity: 0.85;
}

.review-quote-icon {
  color: var(--color-accent);
  opacity: 0.45;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.review-quote {
  margin: 0 0 22px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  font-style: normal;
  flex-grow: 1;
}

.review-quote p {
  margin: 0;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: auto;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.review-author-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.review-sample-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(184, 255, 61, 0.08);
  border: 1px solid rgba(184, 255, 61, 0.22);
  color: var(--color-accent);
  white-space: nowrap;
}

.reviews-compliance-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-subtle);
}

.reviews-compliance-note p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 820px;
}

.reviews-compliance-note .note-highlight {
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .community-reviews-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .reviews-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }
  .review-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    padding: 24px 20px 18px;
  }
  .review-quote {
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .review-nav-btn,
  .review-play-pause-btn {
    width: 40px;
    height: 40px;
  }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video {
    display: none;
  }
  .hero-poster-fallback {
    display: block;
  }
  .reviews-track-viewport {
    scroll-behavior: auto !important;
  }
  .review-card {
    transition: none !important;
  }
}

