/* HeelYeah! Marketing Site Styles
   ================================
   Fun, professional, and easy to customize.
   All colors and key values are CSS variables for easy editing.
*/

/* Metric-adjusted fallbacks so the system font occupies the same box as the
   web font before it loads, eliminating the font-swap layout shift (CLS).
   Values match Inter/Poppins against Arial (standard capsize-derived metrics). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0.00%;
  size-adjust: 107.40%;
}
@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  ascent-override: 93.62%;
  descent-override: 31.21%;
  line-gap-override: 8.92%;
  size-adjust: 112.16%;
}

/* ============================================
   CSS VARIABLES - Edit these to change the look
   ============================================ */
:root {
  /* Primary Colors */
  --color-primary: #FF6B35;
  --color-primary-dark: #E55A2B;
  --color-primary-light: #FF8F66;
  
  /* Secondary Colors */
  --color-secondary: #2EC4B6;
  --color-secondary-dark: #25A99D;
  --color-secondary-light: #5DD4C8;
  
  /* Accent Colors */
  --color-accent: #FFD166;
  --color-accent-dark: #F5C142;

  /* Puppy Pink — brand accent from the wordmark. Use sparsely (~4%):
     badge dots, footer column headers, small highlights. */
  --color-pink: #FE98C7;

  /* Ink — the wordmark's shadow color; backs the feature icon tiles. */
  --color-ink: #091820;

  /* Neutrals */
  --color-dark: #1A1A2E;
  --color-gray-900: #2D2D44;
  --color-gray-700: #4A4A68;
  --color-gray-500: #7A7A96;
  --color-gray-300: #B8B8CC;
  --color-gray-100: #F0F0F5;
  --color-white: #FFFFFF;
  
  /* Semantic Colors */
  --color-success: #06D6A0;
  --color-warning: #FFD166;
  --color-error: #EF476F;
  
  /* Typography */
  --font-primary: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Poppins Fallback', 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.headline-hero {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.headline-section {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}

.subheadline {
  font-size: var(--text-xl);
  color: var(--color-gray-700);
  font-weight: 400;
  max-width: min(100%, 600px);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--color-gray-500);
}

.text-small {
  font-size: var(--text-sm);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 107, 53, 0.4);
}
/* 
.btn-secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border: 2px solid var(--color-gray-300);
} */

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ============================================
   NAVIGATION - React-based with dropdowns
   ============================================ */
.bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 44px;
  flex: 0 0 auto;
  text-decoration: none;
  /* ~1 "H" of clear space on the leading edge of the wordmark. */
  padding-right: var(--space-2);
}

/* The wordmark is the logo — never the paw alone, and never system text. */
.nav-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.navitem {
  position: relative;
}

.navlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: background 0.14s ease, color 0.14s ease;
  white-space: nowrap;
  text-decoration: none;
}

.navlink:hover {
  background: #f5f2ec;
  color: var(--color-dark);
}

.navitem.open .navlink {
  background: #fbeee3;
  color: var(--color-primary-dark);
}

.caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
  transition: transform 0.18s ease;
  margin-left: 2px;
  display: inline-block;
}

.navitem.open .caret {
  transform: rotate(-135deg) translateY(0);
  opacity: 0.9;
}

/* Dropdown Menu */
.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 16px;
  padding: 8px;
  min-width: 288px;
  box-shadow: 0 18px 44px -18px rgba(22, 27, 46, 0.28), 0 4px 12px -6px rgba(22, 27, 46, 0.12);
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.navitem.open .menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.mrow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.12s ease;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.mrow:hover {
  background: #f7f4ee;
}

.mrow .ic {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: #fbeee3;
}

.mrow .mt {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.mrow .md {
  font-size: 12.5px;
  color: var(--color-gray-500);
  margin-top: 2px;
  line-height: 1.35;
}

.mdiv {
  height: 1px;
  background: var(--color-gray-100);
  margin: 6px 10px;
}

.mtag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  padding: 8px 12px 4px;
}

.right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}

.signin {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 8px 6px;
  text-decoration: none;
}

.signin:hover {
  color: var(--color-primary-dark);
}

.cta {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 18px -8px rgba(242, 122, 46, 0.7);
  transition: background 0.14s ease, transform 0.1s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/*
 * Secondary nav CTA ("Live demo"), sat beside the primary Get Started.
 * Same pill geometry so the pair reads as one control group, but outlined
 * rather than filled — two solid orange pills side by side compete for the
 * same attention and neither wins.
 */
.cta-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}

.cta-ghost:hover {
  background: rgba(242, 122, 46, 0.08);
  color: var(--color-primary-dark);
}


/* Mobile hamburger + drawer — hidden on desktop, activated in the
   max-width: 768px block below. */
.nav-burger {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  /* The bar is sticky (in flow), so its 76px is already above us — don't
     add it again here or the hero badge floats miles below the nav. */
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

/* Warm glow in the top-right. Painted as a background layer on the hero itself
   rather than a positioned ::before box — a box narrower than the gradient's
   own radius clips it mid-fade, which showed up as a hard vertical seam down
   the hero on narrow viewports. */
.hero {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 107, 53, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-gray-100) 0%, var(--color-white) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  max-width: min(100%, 600px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  color: var(--color-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

/* Puppy Pink pulse-dot — the one pink note in the hero. */
.hero-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(254, 152, 199, 0.28);
  flex: 0 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero .subheadline {
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-300);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* Hero Video */
.hero-visual {
  position: relative;
}

.hero-video {
  position: relative;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--color-dark);
}

/* On mobile (single-column hero), keep the video from spanning the full
   viewport so it still reads as a hero accent, not a wall of video. */
@media (max-width: 1024px) {
  .hero-video {
    max-width: min(100%, 600px);
  }
}

.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lite YouTube facade: a thumbnail + play button that swaps in the real
   iframe on click, so the heavy YouTube player JS never loads on page load. */
.video-facade {
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--color-dark);
}

.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.video-facade-play svg {
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.video-facade-play-bg {
  fill: #212121;
  fill-opacity: 0.85;
  transition: fill-opacity 0.2s ease;
}

.video-facade:hover .video-facade-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-facade:hover .video-facade-play-bg {
  fill: var(--color-primary);
  fill-opacity: 1;
}

.video-facade:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Paw prints decoration (legacy — emoji paws, being retired in favor of
   .paw-watermark below. Still used by the interior pages.) */
.paw-prints {
  position: absolute;
  opacity: 0.05;
  font-size: 120px;
  color: var(--color-primary);
  pointer-events: none;
}

.paw-1 { top: 20%; left: 5%; transform: rotate(-15deg); }
.paw-2 { top: 60%; right: 10%; transform: rotate(25deg); }
.paw-3 { bottom: 10%; left: 15%; transform: rotate(-5deg); }

/* One soft paw watermark, drawn as a vector, replaces the loose emoji paws. */
.paw-watermark {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 380px;
  height: 380px;
  color: var(--color-primary);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .paw-watermark {
    width: 220px;
    height: 220px;
    right: -50px;
    bottom: -50px;
  }
}

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
.social-proof {
  background: var(--color-dark);
  padding: var(--space-6) 0;
}

.social-proof-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-gray-300);
  font-size: var(--text-sm);
}

.social-proof-item .icon {
  color: var(--color-secondary);
  font-size: var(--text-xl);
}

/* ============================================
   PROBLEM/SOLUTION SECTION
   ============================================ */
.problem-solution {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-100) 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.problem-card,
.solution-card {
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  position: relative;
}

.problem-card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-300);
}

.solution-card {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-white);
}

.problem-icon,
.solution-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

/* Line icons in the problem/solution callouts. Untinted (no ink tile) —
   they sit on the card background, so only the stroke color carries. */
.problem-icon svg,
.solution-icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-icon svg { stroke: var(--color-gray-500); }
.solution-icon svg { stroke: var(--color-primary); }

.problem-card h3,
.solution-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.solution-card h3 {
  color: var(--color-white);
}

.problem-list,
.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problem-list li,
.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.problem-x {
  color: var(--color-error);
  font-weight: 700;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.solution-check {
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.solution-list li {
  color: rgba(255, 255, 255, 0.95);
}

.solution-list strong {
  color: var(--color-white);
}

/* Retention Stats */
.retention-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.retention-stat {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
}

.retention-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.retention-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.retention-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.retention-label {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: 1.5;
}

.economics-callout {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.callout-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
}

.callout-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.callout-text h4 {
  color: var(--color-white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.callout-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.group-classes-callout {
  margin-top: var(--space-12);
}

.automation-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-6);
}

.automation-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-base);
  line-height: 1.5;
}

.automation-list .automation-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .automation-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  background: var(--color-white);
}

/* Issue 23: two stacked full-bleed feature sections doubled their padding
   (96px + 96px). Drop the second one's top padding so they read as one block. */
.features.section-lg + .features.section-lg {
  padding-top: 0;
}

.features-header {
  text-align: center;
  max-width: min(100%, 700px);
  margin: 0 auto var(--space-16);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
}

.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card.featured-feature {
  border: 2px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
}

.feature-badge {
  position: absolute;
  top: -10px;
  right: var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Feature icon tile: ink background, orange line icon (Lucide, 2px stroke).
   Emoji are not used as feature icons — they render differently per OS. */
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  border-radius: var(--radius-lg);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.feature-card p {
  color: var(--color-gray-700);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background: var(--color-gray-100);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 auto var(--space-6);
}

/* Some steps use an icon instead of a numeral. */
.step-number svg {
  width: 34px;
  height: 34px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  margin-bottom: var(--space-3);
}

.step p {
  color: var(--color-gray-700);
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  background: var(--color-white);
}

/* Base Pricing Card */
.pricing-base {
  max-width: min(100%, 800px);
  margin: 0 auto var(--space-12);
}

.pricing-base-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  color: var(--color-white);
}

.pricing-base-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-base-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.pricing-base-info {
  flex: 1;
}

.pricing-base-info h3 {
  color: var(--color-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-1);
}

.pricing-base-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-base);
}

.pricing-base-price {
  text-align: right;
}

.pricing-base-price .price-amount {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
}

.pricing-base-price .price-period {
  font-size: var(--text-lg);
  opacity: 0.8;
}

.pricing-base-includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.includes-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.95);
}

.includes-item .check {
  color: var(--color-accent);
  font-weight: 700;
}

/* Scale Up Add-ons */
.pricing-addons {
  text-align: center;
  margin-bottom: var(--space-12);
}

.addons-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.addons-subtitle {
  color: var(--color-gray-500);
  margin-bottom: var(--space-8);
}

.pricing-addons .addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: min(100%, 900px);
  margin: 0 auto;
}

.addon-card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: left;
  transition: all var(--transition-base);
}

.addon-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.addon-icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.addon-info h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.addon-info p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}

.addon-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.addon-amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
}

.addon-period {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* Pricing Examples */
.pricing-examples {
  margin-bottom: var(--space-12);
}

.examples-title {
  text-align: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: min(100%, 1000px);
  margin: 0 auto;
}

.example-card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition-base);
}

.example-card:hover {
  border-color: var(--color-gray-300);
}

.example-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.example-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.example-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-gray-100);
}

.example-icon {
  font-size: 28px;
}

.example-header h4 {
  font-size: var(--text-lg);
}

.example-breakdown {
  margin-bottom: var(--space-4);
}

.example-line {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}

.example-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 2px solid var(--color-gray-100);
  font-weight: 600;
}

.example-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
}

.example-price small {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-gray-500);
}

.example-includes {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-gray-100);
}

/* Five named pricing tiers */
.pricing-tiers {
  margin: 0 auto var(--space-12);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

.tier-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.tier-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tier-header {
  margin-bottom: var(--space-4);
}

.tier-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.tier-tagline {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.tier-limits {
  color: var(--color-gray-400);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

.tier-price {
  margin-bottom: var(--space-4);
}

.tier-price .price-amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
}

.tier-price .price-period {
  color: var(--color-gray-500);
  font-size: var(--text-base);
}

.tier-features {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  flex: 1;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.tier-features .check {
  color: var(--color-primary);
  font-weight: 700;
}

.btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing CTA */
.pricing-cta-section {
  text-align: center;
}

/* Issue 21: the retention-stats card and the CTA below it sat flush with no
   breathing room on the homepage vision block. */
.retention-stats + .pricing-cta-section {
  margin-top: var(--space-12);
}

.pricing-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray-900) 100%);
  color: var(--color-white);
}

.testimonials .headline-section {
  color: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.testimonial-quote {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  color: var(--color-gray-100);
}

.testimonial-quote::before {
  content: '"';
  font-size: var(--text-4xl);
  color: var(--color-primary);
  line-height: 0;
  margin-right: var(--space-2);
}

.testimonial-quote::after {
  content: '"';
  font-size: var(--text-4xl);
  color: var(--color-primary);
  line-height: 0;
  margin-left: var(--space-2);
  vertical-align: bottom;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-lg);
}

.testimonial-info h3 {
  color: var(--color-white);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.testimonial-info p {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  background: var(--color-gray-100);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: min(100%, 1000px);
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  text-align: left;
  color: var(--color-dark);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: var(--text-xl);
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-gray-700);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '🐾';
  position: absolute;
  font-size: 300px;
  opacity: 0.1;
  top: -50px;
  right: -50px;
  transform: rotate(15deg);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section .subheadline {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto var(--space-8);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.cta-section .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: var(--color-gray-100);
  box-shadow: var(--shadow-xl);
}

.cta-note {
  font-size: var(--text-sm);
  opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: block;
  margin-bottom: var(--space-4);
  text-decoration: none;
}

/* On-dark variant: cream letters, orange offset shadow. */
.footer-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Column headers carry the Puppy Pink accent against the dark footer. */
.footer-column h3 {
  color: var(--color-pink);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  background: var(--color-gray-100);
}

.contact-footnote {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-900);
}

.contact-form-field .required {
  color: var(--color-primary);
}

.contact-form-field input,
.contact-form-field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
  color: var(--color-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: var(--color-gray-500);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form-captcha {
  display: flex;
  justify-content: flex-start;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-form-actions .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-status {
  min-height: 1.4em;
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-form-status.success {
  color: var(--color-success);
}

.contact-form-status.error {
  color: var(--color-error);
}

@media (max-width: 600px) {
  .contact-form {
    padding: var(--space-6);
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-actions {
    justify-content: stretch;
  }
  .contact-form-actions .btn {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero .subheadline {
    margin: 0 auto var(--space-8);
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }

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

  .callout-content {
    flex-direction: column;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-addons .addons-grid {
    grid-template-columns: 1fr;
    max-width: min(100%, 400px);
    margin: 0 auto;
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
    max-width: min(100%, 400px);
    margin: 0 auto;
  }
  
  .example-card.featured {
    order: -1;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  /* Mobile nav adjustments handled via React component */
  
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .steps::before {
    display: none;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  /* Lay the link lists out in columns on mobile instead of one long stack;
     the brand block spans the full width above them. */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8) var(--space-5);
    text-align: left;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-social {
    justify-content: flex-start;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .pricing-addons .addons-grid,
  .examples-grid,
  .features-header {
    max-width: 100%;
  }

  /* Issue 24: the dark social-proof strip looked oversized on mobile; items
     stack and the 48px gap + full padding left a tall block of just text. */
  .social-proof {
    padding: var(--space-4) 0;
  }
  .social-proof-content {
    gap: var(--space-3);
  }

  /* Issue 25: the board & train hero left too much air before the next section
     on mobile (80px hero bottom + 96px section top). */
  .hero--compact-mobile {
    padding-bottom: var(--space-10);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  /* Three link columns are too tight on a narrow phone — drop to two. */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
  }

  .hero-stat {
    text-align: center;
  }

  .hero-stat + .hero-stat {
    border-left: 1px solid var(--color-gray-300);
    padding-left: var(--space-3);
  }

  .hero-stat-value {
    font-size: 1.125rem;
    line-height: 1.2;
  }

  .hero-stat-label {
    font-size: 0.75rem;
    margin-top: var(--space-1);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-pulse:hover {
  animation: pulse 0.5s ease;
}

.animate-wiggle:hover {
  animation: wiggle 0.3s ease;
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.bg-white { background-color: var(--color-white); }
.bg-gray-100 { background-color: var(--color-gray-100); }
.bg-primary { background-color: var(--color-primary); }

.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

/* ============================================
   MOBILE MENU - React nav dropdowns
   ============================================ */
@media (max-width: 768px) {
  .bar-inner {
    height: 64px;
    padding: 0 16px;
  }

  .hero {
    padding-top: var(--space-8);
  }

  .nav-logo {
    margin-right: 12px;
  }

  .nav-logo img {
    height: 36px;
  }

  /* Collapse the desktop nav into the hamburger drawer. */
  .nav,
  .right {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    box-shadow: 0 24px 44px -20px rgba(22, 27, 46, 0.35);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .mobile-nav.open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .mobile-nav-inner {
    padding: 8px 16px 28px;
  }

  .mobile-nav-link {
    display: block;
    padding: 15px 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .mobile-nav-group {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .mobile-nav-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    padding: 12px 8px 6px;
  }

  .mobile-nav-sublink {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
  }

  .mobile-nav-sublink:active {
    background: #f7f4ee;
  }

  .mn-ic {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: #fbeee3;
  }

  .mn-text {
    display: flex;
    flex-direction: column;
  }

  .mn-t {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
  }

  .mn-d {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 2px;
    line-height: 1.35;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
  }

  .mobile-signin {
    padding: 13px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    border: 1.5px solid var(--color-gray-100);
    border-radius: 999px;
  }

  .mobile-cta {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
  }
}

/* ============================================
   FOUNDER SECTION
   ============================================ */
.founder {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-100) 100%);
}

.vision {
  background: var(--color-gray-100);
}

.vision-statement {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.vision-statement p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-gray-700);
  margin-bottom: var(--space-5);
}

.vision-statement p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--color-gray-900);
}

.vision .retention-value {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.founder-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Issue 22 (/security): founder photo lives in the hero's right column; the
   "Why security is personal" copy then runs full-width below, centered. */
.security-hero-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.founder-text--full {
  max-width: 760px;
  margin: 0 auto;
}

/* Issue 20 (/about): the founder CTA and the "Our Vision" section below it were
   a full section-gap apart (96px + 96px). Tighten when they're adjacent. */
.founder.section-lg:has(+ .vision.section-lg) {
  padding-bottom: var(--space-12);
}
.founder.section-lg + .vision.section-lg {
  padding-top: var(--space-12);
}

.founder-photo {
  display: flex;
  justify-content: center;
}

.founder-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.founder-photo-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  text-align: center;
}

.founder-photo-emoji {
  font-size: 80px;
  line-height: 1;
}

.founder-photo-caption {
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.95;
}

.founder-eyebrow {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.founder-text h2 {
  margin-bottom: var(--space-6);
}

.founder-text p {
  font-size: var(--text-lg);
  color: var(--color-gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.founder-text strong {
  color: var(--color-dark);
}

.founder-text .btn {
  margin-top: var(--space-4);
}

@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .founder-photo-placeholder,
  .founder-photo img {
    max-width: 280px;
  }
}

/* ============================================
   INSIDE LOOK (SCREENSHOTS)
   ============================================ */
.inside-look {
  background: var(--color-white);
}

.inside-look-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.inside-look-card {
  margin: 0;
}

.inside-look-shot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-100);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.inside-look-card:hover .inside-look-shot {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.inside-look-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inside-look-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-white) 100%);
  color: var(--color-gray-500);
  font-weight: 500;
  font-size: var(--text-sm);
}

.inside-look-icon {
  font-size: 56px;
  opacity: 0.55;
}

.inside-look-card figcaption {
  padding: var(--space-5) var(--space-2) 0;
}

.inside-look-card figcaption h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.inside-look-card figcaption p {
  color: var(--color-gray-700);
  font-size: var(--text-base);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .inside-look-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HERO CTA NOTE
   ============================================ */
.hero-cta-note {
  width: 100%;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ============================================
   SPEC / CAPABILITIES TABLE (compare page)
   ============================================ */
.spec-table {
  width: 100%;
  max-width: min(100%, 960px);
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: var(--text-base);
}

.spec-table thead th {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-base);
  text-align: left;
  padding: var(--space-4) var(--space-5);
}

.spec-table tbody td {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-gray-100);
  color: var(--color-gray-700);
  line-height: 1.6;
  vertical-align: top;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--color-gray-100);
}

.spec-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .spec-table,
  .spec-table thead,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table thead {
    display: none;
  }

  .spec-table tbody tr {
    border-top: 1px solid var(--color-gray-100);
    padding: var(--space-2) 0;
  }

  .spec-table tbody td {
    border-top: none;
    padding: var(--space-2) var(--space-5);
  }

  .spec-table tbody td:first-child {
    white-space: normal;
    padding-top: var(--space-4);
    color: var(--color-primary);
  }
}

/* ============================================
   CAPABILITY EXPLORER (full features page)
   ============================================
   Scoped to /dog-training-software-features. Carries the brand palette and
   type from the brand guidelines (Nunito display / Space Mono labels) rather
   than the older site tokens, so the page reads as the reference document it
   is. Every panel is a native <details>: the content stays in the DOM for
   crawlers and works with JavaScript off. */
.fx-hero,
.fx-bar,
.fx-body,
.fx-end {
  --fx-orange: #F27A2E;
  --fx-orange-dk: #E0691F;
  --fx-navy: #161B2E;
  --fx-ink: #091820;
  --fx-cream: #FDF5E6;
  --fx-cream-2: #F5EEDC;
  --fx-paper: #F3EEE5;
  --fx-yellow: #F9C84A;
  --fx-pink: #FE98C7;
  --fx-line: #E4DED1;
  --fx-line-2: #D8D0BF;
  --fx-muted: #5B6274;
  --fx-muted-2: #8A8474;
  --fx-disp: 'Nunito', 'Poppins', 'Poppins Fallback', sans-serif;
  --fx-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color: var(--fx-navy);
}

.fx-kick {
  font-family: var(--fx-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fx-muted-2);
}

.fx-btn {
  display: inline-block;
  background: var(--fx-orange);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 16px -8px rgba(242, 122, 46, 0.7);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.fx-btn:hover {
  background: var(--fx-orange-dk);
  color: var(--color-white);
  transform: translateY(-1px);
}

.fx-btn-lg {
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
}

.fx-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.fx-mini {
  font-family: var(--fx-mono);
  font-size: 0.6875rem;
  color: var(--fx-muted-2);
}

/* --- hero --- */
.fx-hero {
  position: relative;
  overflow: hidden;
  background: var(--fx-cream);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.fx-hero-in {
  position: relative;
  max-width: 1120px;
}

.fx-paw {
  position: absolute;
  pointer-events: none;
}

.fx-paw-a {
  width: 340px;
  height: 340px;
  left: -70px;
  bottom: -120px;
  color: var(--fx-orange);
  opacity: 0.07;
}

.fx-paw-b {
  width: 230px;
  height: 230px;
  right: -60px;
  top: -90px;
  color: var(--fx-pink);
  opacity: 0.16;
}

.fx-h1 {
  font-family: var(--fx-disp);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.25rem, 5.4vw, 3.625rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--fx-navy);
  margin: var(--space-4) auto 0;
  max-width: 17ch;
}

.fx-dot {
  color: var(--fx-orange);
}

.fx-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fx-muted);
  max-width: 66ch;
  margin: var(--space-5) auto 0;
}

.fx-hero .fx-cta {
  justify-content: center;
  margin-top: var(--space-6);
}

/* --- count / expand-all bar --- */
.fx-bar {
  background: var(--color-white);
  border-top: 1px solid var(--fx-line);
  border-bottom: 1px solid var(--fx-line);
  padding: var(--space-4) 0;
}

.fx-bar-in {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 1120px;
}

.fx-count {
  font-family: var(--fx-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-muted-2);
  margin: 0;
}

.fx-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--fx-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-navy);
  background: var(--color-white);
  border: 1px solid var(--fx-line-2);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.fx-toggle:hover {
  border-color: var(--fx-orange);
  color: var(--fx-orange-dk);
}

.fx-toggle-ic {
  display: inline-flex;
}

.fx-toggle-ic-on,
.fx-toggle[data-fx-open="true"] .fx-toggle-ic {
  display: none;
}

.fx-toggle[data-fx-open="true"] .fx-toggle-ic-on {
  display: inline-flex;
}

/* --- rows --- */
.fx-body {
  background: var(--fx-paper);
  padding: var(--space-6) 0 var(--space-16);
}

.fx-body > .container {
  max-width: 1120px;
}

.fx-row {
  background: var(--color-white);
  border: 1px solid var(--fx-line);
  border-radius: var(--radius-xl);
  margin-bottom: 0.5625rem;
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  /* Anchored deep links (#billing) shouldn't hide under the sticky nav. */
  scroll-margin-top: 90px;
}

.fx-row[open] {
  border-color: var(--fx-line-2);
  box-shadow: 0 22px 46px -34px rgba(9, 24, 32, 0.5);
}

.fx-rh {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 1.0625rem 1.375rem;
  cursor: pointer;
  list-style: none;
}

.fx-rh::-webkit-details-marker {
  display: none;
}

.fx-rh:focus-visible {
  outline: 2px solid var(--fx-orange);
  outline-offset: -3px;
}

.fx-num {
  font-family: var(--fx-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--fx-orange);
  width: 22px;
  flex: 0 0 auto;
}

.fx-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--fx-cream-2);
  color: var(--fx-navy);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.fx-row[open] .fx-tile {
  background: var(--fx-ink);
  color: var(--fx-orange);
}

.fx-nm {
  font-family: var(--fx-disp);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--fx-navy);
  flex: 0 0 245px;
}

.fx-hd {
  font-family: var(--fx-disp);
  font-weight: 800;
  font-style: italic;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--fx-muted);
  /* grow to absorb the slack so the tier chip / count / chevron cluster pins to
     the right edge in a consistent column across every row */
  flex: 1 1 auto;
  min-width: 0;
  transition: color var(--transition-fast);
}

.fx-row[open] .fx-hd {
  color: var(--fx-orange-dk);
}

.fx-ct {
  font-family: var(--fx-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--fx-muted-2);
  /* fixed, right-aligned slot (fits "13") so the tier chip before it stays in a
     stable column regardless of 1- vs 2-digit counts */
  flex: 0 0 22px;
  text-align: right;
}

.fx-cv {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--fx-cream-2);
  color: var(--fx-navy);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform var(--transition-base), background var(--transition-fast), color var(--transition-fast);
}

.fx-row[open] .fx-cv {
  transform: rotate(180deg);
  background: var(--fx-navy);
  color: var(--color-white);
}

/* --- open panel --- */
.fx-panel {
  margin: 0 1.375rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px dashed var(--fx-line-2);
}

.fx-p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fx-muted);
  max-width: 70ch;
  margin: 0 0 var(--space-4);
}

.fx-tier {
  margin: calc(-1 * var(--space-2)) 0 var(--space-4);
}

.fx-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--fx-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(254, 152, 199, 0.22);
  color: #B8407C;
}

.fx-keys,
.fx-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fx-keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: var(--space-4);
}

.fx-key {
  border: 1px solid var(--fx-line);
  background: var(--fx-cream);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
}

.fx-key strong {
  display: block;
  font-family: var(--fx-disp);
  font-weight: 800;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
}

.fx-key span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--fx-muted);
  margin-top: 0.3rem;
}

.fx-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.125rem;
}

.fx-it {
  padding: 0.6875rem 0;
  border-bottom: 1px dashed var(--fx-line-2);
}

.fx-it strong {
  display: block;
  font-size: 0.845rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.fx-it span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--fx-muted);
  margin-top: 0.2rem;
}

/* Qualified so it outranks the `.fx-it span` rule above. */
.fx-it .fx-tag {
  display: inline-block;
  font-family: var(--fx-mono);
  font-size: 0.594rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-orange-dk);
  background: rgba(242, 122, 46, 0.12);
  border-radius: var(--radius-full);
  padding: 0.19rem 0.5rem;
  margin-top: 0.44rem;
}

/* --- tier / plan pills ---
   Every capability carries the minimum tier that unlocks it, derived from the
   server-side entitlement ladder (see entitlements-service.ts). Free is a quiet
   outline pill; paid tiers escalate Fetch (blue) -> Heel (orange) -> Off-Leash
   (purple) so the upsell reads at a glance. */
.fx-plan {
  display: inline-flex;
  align-items: center;
  font-family: var(--fx-mono);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 0.16rem 0.5rem;
  white-space: nowrap;
  border: 1px solid transparent;
}

.fx-plan-free {
  background: transparent;
  color: var(--fx-muted-2);
  border-color: var(--fx-line-2);
}

.fx-plan-fetch {
  background: rgba(58, 142, 251, 0.14);
  color: #2f6fbf;
}

.fx-plan-heel {
  background: rgba(242, 122, 46, 0.15);
  color: var(--fx-orange-dk);
}

/* per-item pill sits under the term/detail, like the old fx-tag.
   display + width beat the `.fx-it span { display:block }` rule above, which
   would otherwise stretch the pill to the full column width. */
.fx-it .fx-plan,
.fx-key .fx-plan {
  display: inline-flex;
  width: auto;
  align-self: flex-start;
  margin-top: 0.44rem;
}

/* collapsed-row header chip: the area's entry (minimum) tier. Fixed-width,
   centered slot so every tier tag lines up in one column down the page. */
.fx-plan-hdr {
  flex: 0 0 auto;
  min-width: 92px;
  justify-content: center;
}

/* legend in the count / expand-all bar */
.fx-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: var(--space-6);
}

.fx-legend-lbl {
  font-family: var(--fx-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-muted-2);
  margin-right: 0.15rem;
}

.fx-legend-link {
  font-family: var(--fx-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-orange-dk);
  margin-left: 0.15rem;
}

.fx-legend-link:hover {
  color: var(--fx-orange);
}

/* clarifier under the legend: Free and Sit share a feature set, so no capability
   ever carries a "Sit" badge; they differ only in their client cap. */
.fx-legend-note {
  font-family: var(--fx-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--fx-muted-2);
  margin: 0 0 0 0.3rem;
}

/* --- principles --- */
.fx-end {
  background: var(--fx-navy);
  color: var(--color-white);
  padding: var(--space-16) 0;
}

.fx-end > .container {
  max-width: 1120px;
}

.fx-end .fx-kick {
  color: rgba(255, 255, 255, 0.5);
}

.fx-end-h {
  font-family: var(--fx-disp);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.125rem);
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin: var(--space-3) 0 0;
}

.fx-principles {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-10);
}

.fx-principles strong {
  display: block;
  font-family: var(--fx-disp);
  font-weight: 800;
  font-size: 0.97rem;
  color: var(--fx-yellow);
}

.fx-principles span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 0.3rem;
}

.fx-end-foot {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.fx-end-foot .fx-mini {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1024px) {
  .fx-keys,
  .fx-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fx-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fx-nm {
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  .fx-hero {
    padding: var(--space-10) 0 var(--space-8);
    text-align: left;
  }

  .fx-hero .fx-cta {
    justify-content: flex-start;
  }

  .fx-h1,
  .fx-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .fx-bar-in {
    gap: var(--space-2) var(--space-3);
    flex-wrap: wrap;
  }

  .fx-count {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
  }

  .fx-toggle {
    white-space: nowrap;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.7rem;
  }

  /* legend drops to its own full-width row under the count / expand-all */
  .fx-legend {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    gap: 0.35rem;
  }

  .fx-legend-lbl {
    flex-basis: 100%;
    margin-bottom: 0.1rem;
  }

  .fx-paw-a {
    display: none;
  }

  .fx-paw-b {
    width: 190px;
    height: 190px;
    right: -50px;
    top: -60px;
  }

  .fx-body {
    padding: var(--space-4) 0 var(--space-10);
  }

  .fx-rh {
    padding: 0.875rem 0.9375rem;
    gap: 0.6875rem;
  }

  .fx-num,
  .fx-hd {
    display: none;
  }

  .fx-nm {
    flex: 1 1 auto;
    font-size: 1rem;
    min-width: 0;
  }

  /* On a phone the headline is hidden and space is tight, so let the tier chip
     size to its label (still right-anchored before the count) rather than hold a
     fixed 92px column that would crowd long area names. */
  .fx-plan-hdr {
    min-width: 0;
  }

  .fx-panel {
    margin: 0 0.9375rem;
    padding: 1rem 0 1.125rem;
  }

  .fx-keys,
  .fx-items,
  .fx-principles {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-row,
  .fx-tile,
  .fx-cv,
  .fx-btn {
    transition: none;
  }
}

/* ============================================
   BLOG / CONTENT (SEO articles under /blog)
   ============================================ */
/* Index hero */
.blog-hero {
  padding: var(--space-20) 0 var(--space-12);
  background: linear-gradient(180deg, var(--color-gray-100) 0%, var(--color-white) 100%);
  text-align: center;
}
.blog-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.blog-hero p {
  color: var(--color-gray-700);
  font-size: var(--text-lg);
  max-width: 640px;
  margin: var(--space-4) auto 0;
}

/* Search + tag filters */
.blog-controls {
  max-width: var(--container-narrow);
  margin: var(--space-8) auto 0;
}
.blog-search {
  position: relative;
}
.blog-search input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: var(--color-white);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.blog-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}
.blog-search::before {
  content: "🔍";
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-base);
  opacity: 0.6;
  pointer-events: none;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-5);
}
.blog-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gray-300);
  background: var(--color-white);
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.blog-tag:hover { border-color: var(--color-primary); color: var(--color-primary); }
.blog-tag.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Result count / no-results / empty states */
.blog-count {
  max-width: var(--container-narrow);
  margin: var(--space-8) auto var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}
.blog-empty,
.blog-no-results {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--color-gray-500);
}
.blog-empty h2,
.blog-no-results h2 {
  color: var(--color-gray-700);
  margin-bottom: var(--space-3);
}

/* Article grid + cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-12);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gray-300);
}
.blog-card[hidden] { display: none; }
.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--color-gray-100);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-6);
}
.blog-card-meta {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-3);
}
.blog-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.blog-card-title a { color: var(--color-dark); }
.blog-card:hover .blog-card-title a { color: var(--color-primary); }
.blog-card-excerpt {
  color: var(--color-gray-700);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}
.blog-card-tags span {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

/* ===== Article (single post) ===== */
.post {
  padding: var(--space-12) 0 var(--space-20);
}
.post-breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}
.post-breadcrumb a { color: var(--color-gray-500); }
.post-breadcrumb a:hover { color: var(--color-primary); }
.post-header { margin-bottom: var(--space-8); }
.post-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}
.post-meta .blog-card-tags span { background: var(--color-gray-100); }
.post-hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

/* Long-form prose */
.post-body {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-gray-900);
}
.post-body > * + * { margin-top: var(--space-6); }
.post-body h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-2);
}
.post-body h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-2);
}
.post-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover { color: var(--color-primary-dark); }
.post-body ul,
.post-body ol { padding-left: var(--space-8); }
.post-body li + li { margin-top: var(--space-2); }
.post-body li { padding-left: var(--space-1); }
.post-body blockquote {
  border-left: 4px solid var(--color-primary);
  background: var(--color-gray-100);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  color: var(--color-gray-700);
  font-style: italic;
}
.post-body img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--color-gray-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}
.post-body pre {
  background: var(--color-dark);
  color: var(--color-gray-100);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--color-gray-300);
  margin: var(--space-10) 0;
}

/* Post CTA card */
.post-cta {
  margin-top: var(--space-16);
  padding: var(--space-10);
  text-align: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray-900) 100%);
  border-radius: var(--radius-xl);
  color: var(--color-white);
}
.post-cta h2 { color: var(--color-white); margin-bottom: var(--space-3); }
.post-cta p { color: var(--color-gray-300); margin-bottom: var(--space-6); }
.post-cta .post-cta-note { font-size: var(--text-sm); }
.post-cta .post-cta-secondary {
  display: inline-block;
  margin-top: var(--space-4);
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  text-decoration: underline;
}
.post-cta .post-cta-secondary:hover { color: var(--color-white); }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .post-body { font-size: var(--text-base); }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .nav, .footer, .cta-section {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-8) 0;
  }

  .section {
    padding: var(--space-8) 0;
  }
}
