@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap");

:root {
  --bg-cream: #f5f0e8;
  --surface: #fffaf1;
  --navy: #17324a;
  --navy-mid: #244b68;
  --slate: #406176;
  --muted: #5a7180;
  --subtle: #6b7e85;
  --orange: #d95d39;
  --orange-shadow: #ac4226;
  --teal: #2f7772;
  --sage: #dbe8e4;
  --sage-light: #edf3ef;
  --border-sage: #b8cfcc;
  --border-warm: #d7ddd5;
  --peach: #f0c7a7;
  --peach-ink: #7d463d;
  --gold: #b67a43;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg-cream);
  color: var(--navy);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.font-display, h1, h2, h3, .brand-title { font-family: "Space Grotesk", system-ui, sans-serif; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 216, 214, 0.65);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1rem;
}
.brand-link { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand-diamond {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--navy);
  transform: rotate(45deg);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-diamond svg { transform: rotate(-45deg); color: var(--surface); }
.brand-title { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.025em; color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: 0.92rem; font-weight: 600; color: var(--slate); }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-pill {
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--sage-light); border: 1px solid var(--border-sage);
  color: var(--teal) !important; font-weight: 700;
}
.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border-sage);
  border-radius: 999px; width: 40px; height: 40px; place-items: center; cursor: pointer;
}
.mobile-menu {
  display: none; position: absolute; right: 1.25rem; top: 72px; width: 230px;
  background: var(--surface); border: 1px solid var(--border-sage);
  border-radius: 1rem; padding: 0.5rem; box-shadow: 0 20px 35px rgba(23,50,74,0.16);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.7rem 0.95rem; border-radius: 0.7rem; font-size: 0.92rem; font-weight: 600; }
.mobile-menu a:hover { background: var(--sage-light); }

/* Badges & Buttons */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: var(--sage-light); border: 1px solid #c7d8d6;
  font-size: 0.73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--teal);
}
.flutter-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  background: var(--navy); color: var(--surface);
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.flutter-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.btn-spark {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  background: var(--orange); color: #fff; border: none; border-radius: 999px;
  padding: 0.95rem 1.65rem; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 7px 0 var(--orange-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-spark:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--orange-shadow); }
.btn-spark:active { transform: translateY(2px); box-shadow: 0 4px 0 var(--orange-shadow); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; border: none; border-radius: 999px;
  padding: 0.75rem 1rem; font-size: 0.92rem; font-weight: 700; color: var(--slate); cursor: pointer;
}
.btn-ghost:hover { color: var(--orange); }
.btn-ghost .play-ring {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage-light); border: 1px solid var(--border-sage);
  display: grid; place-items: center;
}

.quote-below-actions {
  margin-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.quote-download-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.48rem;
}
.centered-download-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  margin: 1.5rem auto 0;
}
.app-store-badge-link {
  display: inline-block;
  width: 186px;
  height: 56px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
  border: 1.5px solid #2b3945;
  box-shadow: 0 5px 0 var(--navy);
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--navy);
}
.app-store-badge-link:active {
  transform: translateY(1px);
  box-shadow: 0 3px 0 var(--navy);
}
.app-store-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.app-store-invite {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.35;
  margin: 0;
}

.hero-right-col { width: 100%; max-width: 540px; margin: 0 auto; }
.right-cta-group {
  margin-top: 1.35rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn-tally-feedback,
.btn-tally-updates {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  border-radius: 999px; padding: 0.82rem 1.35rem;
  font-size: 0.9rem; font-weight: 700; color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-tally-feedback {
  background: var(--orange);
  box-shadow: 0 6px 0 var(--orange-shadow);
}
.btn-tally-feedback:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-shadow); }
.btn-tally-updates {
  background: var(--teal);
  box-shadow: 0 6px 0 #1f5450;
}
.btn-tally-updates:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #1f5450; }

/* Hero Layout */
.hero-section { padding: 2.75rem 0 4.5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 3rem; align-items: center; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.35rem; }
.hero-headline {
  font-size: clamp(3.1rem, 6.4vw, 5.6rem);
  font-weight: 800; line-height: 0.94; letter-spacing: -0.055em; color: var(--navy);
}
.hero-headline .accent { color: var(--orange); }
.hero-lead { margin-top: 1.35rem; max-width: 34rem; font-size: 1.14rem; line-height: 1.68; color: var(--muted); }
.hero-actions { margin-top: 1.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }

/* Filter Chips */
.filter-bar { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.42rem 0.85rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-sage);
  font-size: 0.8rem; font-weight: 700; color: var(--slate); transition: all 0.15s ease;
}
.chip:hover { border-color: var(--orange); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--surface); }

.social-proof {
  margin-top: 1.85rem; padding-top: 1.15rem; border-top: 1px solid var(--border-warm);
  display: flex; align-items: center; gap: 0.95rem; font-size: 0.9rem; color: var(--subtle);
}
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg-cream);
  display: grid; place-items: center; font-size: 0.65rem; font-weight: 800; color: #fff;
  margin-left: -8px;
}
.avatar-stack span:first-child { margin-left: 0; }

/* Interactive Hero Card */
.card-stage { position: relative; max-width: 540px; width: 100%; margin: 0 auto; }
.ring-deco-left {
  position: absolute; left: -24px; top: 36px; width: 76px; height: 76px;
  border-radius: 50%; border: 10px solid var(--sage); opacity: 0.85; pointer-events: none;
}
.ring-deco-right {
  position: absolute; right: -22px; bottom: 26px; width: 104px; height: 104px;
  border-radius: 50%; border: 14px solid var(--peach); opacity: 0.75; pointer-events: none;
}
.keep-swinging-tag {
  position: absolute; right: -10px; top: 24px; z-index: 15;
  transform: rotate(6deg); background: var(--peach); color: var(--peach-ink);
  padding: 0.55rem 0.95rem; border-radius: 0.75rem; font-size: 0.74rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(23,50,74,0.16);
}
.spark-card {
  position: relative; overflow: hidden; border-radius: 2rem;
  border: 10px solid var(--surface); background: var(--teal);
  box-shadow: 0 22px 50px rgba(23, 50, 74, 0.22);
  height: 560px;
}
.spark-card-bg { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity 0.25s ease; }
.spark-ios-pill {
  position: absolute; top: 1rem; left: 1rem; z-index: 10;
  background: rgba(23, 50, 74, 0.82); backdrop-filter: blur(8px);
  color: var(--surface); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.spark-overlay {
  position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1.15rem; z-index: 10;
  background: rgba(23, 50, 74, 0.92); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 1.25rem;
  padding: 1.25rem 1.35rem; color: #fff;
}
.spark-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--peach); margin-bottom: 0.65rem;
}
.spark-quote { font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; font-weight: 700; line-height: 1.26; }
.spark-author-row { margin-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.spark-author { font-size: 0.92rem; font-weight: 600; color: #b9d2ce; }
.spark-controls { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.15); justify-content: space-between; flex-wrap: wrap; }
.ctrl-group { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.76rem;
  font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.24); }
.icon-btn.favorited { background: var(--orange); border-color: var(--orange); }

/* Content Sections */
.section-sage { background: var(--sage); padding: 4.5rem 0; }
.section-cream { background: var(--bg-cream); padding: 4.5rem 0; }
.section-navy { background: var(--navy); color: var(--surface); padding: 4.5rem 0; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 0.65rem; }
.section-head p { margin-top: 0.65rem; color: var(--muted); font-size: 1.04rem; }
.section-navy .section-head p { color: #b9d2ce; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.feature-card {
  background: var(--surface); border: 1px solid var(--border-sage);
  border-radius: 1.5rem; padding: 1.65rem;
  box-shadow: 0 10px 26px rgba(23,50,74,0.05);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sage-light);
  border: 1px solid var(--border-sage); color: var(--orange);
  display: grid; place-items: center; margin-bottom: 1rem; font-weight: 800;
}
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.94rem; color: var(--muted); }

.flutter-panel {
  background: rgba(255,250,241,0.07); border: 1px solid rgba(255,250,241,0.16);
  border-radius: 1.5rem; padding: 1.65rem;
}
.flutter-panel h3 { font-size: 1.2rem; font-weight: 700; color: var(--peach); margin-bottom: 0.5rem; }
.flutter-panel p { font-size: 0.94rem; color: #d5e4e1; }

/* Support Banner & Legal Cards */
.cta-banner {
  background: var(--sage-light); border: 1px solid var(--border-sage);
  border-radius: 2rem; padding: 2.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); font-weight: 700; letter-spacing: -0.03em; max-width: 38rem; }
.cta-banner p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }

.legal-card {
  background: var(--surface); border: 1px solid var(--border-sage);
  border-radius: 1.5rem; padding: 2rem;
}
.legal-card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 0.65rem; }
.legal-list { list-style: none; display: grid; gap: 0.65rem; margin-top: 0.85rem; font-size: 0.94rem; color: var(--muted); }
.legal-list li { padding-left: 1.25rem; position: relative; }
.legal-list li::before { content: "•"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }

/* Landing Page Middle Email Signup Space */
.signup-band {
  margin: 0.5rem auto 2.5rem; max-width: 780px;
  background: var(--surface); border: 2px solid var(--border-sage);
  border-radius: 2rem; padding: 2.35rem 2.25rem; text-align: center;
  box-shadow: 0 18px 42px rgba(23, 50, 74, 0.09); position: relative;
}
.signup-band h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 0.6rem; }
.signup-band p { color: var(--muted); max-width: 34rem; margin: 0.55rem auto 1.35rem; font-size: 1rem; }
.signup-form-wrap { max-width: 480px; margin: 1.1rem auto 0; display: none; }
.signup-form-wrap.open { display: block; }
.signup-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.input-field {
  flex: 1 1 240px; padding: 0.88rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--border-sage); background: #fff; font-size: 0.95rem; color: var(--navy);
}
.input-field:focus, .textarea-field:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.textarea-field {
  width: 100%; padding: 0.85rem 1rem; border-radius: 1rem;
  border: 1.5px solid var(--border-sage); background: #fff; font-size: 0.95rem; min-height: 105px;
}
.status-msg { margin-top: 0.85rem; font-size: 0.9rem; font-weight: 700; border-radius: 0.85rem; padding: 0.65rem 1rem; display: none; }
.status-msg.show { display: block; }
.status-msg.ok { background: var(--sage-light); color: var(--teal); border: 1px solid var(--border-sage); }
.status-msg.err { background: #fdecec; color: #9f2c1a; border: 1px solid #f5c2bc; }

/* Floating Bottom-Right Feedback Button & Modal */
.feedback-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--navy); color: var(--surface);
  border: 2px solid var(--surface); border-radius: 999px;
  padding: 0.82rem 1.3rem; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 14px 30px rgba(23, 50, 74, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}
.feedback-fab:hover { background: var(--orange); transform: translateY(-2px); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(23, 50, 74, 0.58); backdrop-filter: blur(5px);
  display: none; place-items: center; padding: 1.25rem;
}
.modal-backdrop.open { display: grid; }
.modal-panel {
  background: var(--surface); border: 2px solid var(--border-sage);
  border-radius: 1.75rem; width: 100%; max-width: 470px; padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(23, 50, 74, 0.3);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.rating-row { display: flex; gap: 0.45rem; margin: 0.65rem 0 1rem; }
.rate-pill {
  flex: 1; padding: 0.5rem 0; border-radius: 0.75rem; border: 1px solid var(--border-sage);
  background: #fff; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.rate-pill.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Toast & Footer */
.spark-toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  background: var(--navy); color: var(--surface); padding: 0.65rem 1.2rem;
  border-radius: 999px; font-size: 0.85rem; font-weight: 700; z-index: 90;
  box-shadow: 0 12px 28px rgba(23,50,74,0.28); display: none;
}
.spark-toast.show { display: block; }

.site-footer { border-top: 1px solid var(--border-warm); padding: 2.25rem 0; font-size: 0.9rem; color: #70838a; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.35rem; flex-wrap: wrap; font-weight: 600; color: var(--slate); }
.footer-links a:hover { color: var(--orange); }

/* Baseball Stats Top 30 Directory */
.stats-hero { padding: 2.75rem 0 2.5rem; border-bottom: 1px solid var(--border-warm); }
.breadcrumb-nav { font-size: 0.84rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.45rem; }
.breadcrumb-nav a:hover { color: var(--orange); }
.stats-hero-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 2.25rem; align-items: start; }
.stats-summary-box {
  background: var(--surface); border: 2px solid var(--border-sage);
  border-radius: 1.65rem; padding: 1.5rem 1.6rem;
  box-shadow: 0 14px 34px rgba(23, 50, 74, 0.08);
}
.stats-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin-top: 1rem; }
.kpi-tile { background: var(--sage-light); border: 1px solid var(--border-sage); border-radius: 1rem; padding: 0.85rem 1rem; }
.kpi-tile strong { font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; font-weight: 800; color: var(--navy); display: block; line-height: 1.1; }
.kpi-tile span { font-size: 0.78rem; font-weight: 600; color: var(--slate); }

.directory-toolbar {
  background: var(--surface); border: 1.5px solid var(--border-sage);
  border-radius: 1.5rem; padding: 1.15rem 1.35rem; margin-bottom: 1.85rem;
  display: flex; flex-direction: column; gap: 0.95rem;
  box-shadow: 0 10px 26px rgba(23, 50, 74, 0.05);
}
.toolbar-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.search-box { position: relative; flex: 1 1 300px; max-width: 460px; }
.search-box input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 999px; border: 1.5px solid var(--border-sage);
  background: #fff; font-size: 0.92rem; color: var(--navy);
}
.search-box input:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.search-box svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.results-counter { font-size: 0.88rem; font-weight: 700; color: var(--teal); }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.stat-card {
  background: var(--surface); border: 1.5px solid var(--border-sage);
  border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 10px 24px rgba(23, 50, 74, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 16px 32px rgba(23, 50, 74, 0.1); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 30px; padding: 0 0.65rem; border-radius: 999px;
  background: var(--navy); color: var(--surface);
  font-family: "Space Grotesk", sans-serif; font-size: 0.8rem; font-weight: 800;
}
.cat-pill {
  padding: 0.28rem 0.72rem; border-radius: 999px;
  background: var(--sage-light); border: 1px solid var(--border-sage);
  font-size: 0.72rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em;
}
.domain-pill { font-size: 0.78rem; font-weight: 600; color: var(--subtle); }
.stat-card h2 { font-size: 1.24rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 0.45rem; line-height: 1.25; }
.stat-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.15rem; }
.metric-chip {
  padding: 0.25rem 0.62rem; border-radius: 0.55rem;
  background: var(--bg-cream); border: 1px solid var(--border-warm);
  font-size: 0.75rem; font-weight: 700; color: var(--slate);
}
.stat-card-footer {
  padding-top: 0.85rem; border-top: 1px solid var(--border-warm);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.visit-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 800; color: var(--orange);
}
.visit-link:hover { color: var(--navy); }
.empty-state {
  display: none; text-align: center; padding: 2.5rem 1.5rem;
  background: var(--surface); border: 1.5px dashed var(--border-sage); border-radius: 1.5rem;
}

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-2, .stats-hero-grid, .stats-grid { grid-template-columns: 1fr; }
  .spark-card { height: 500px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
}
