/* ============================================================================
   Hoardable Marketing Website - app.css
   Brand: Navy emerald (#2B597A) + warm amber (#F4A261) + electric teal (#00D4AA)
   Layout: Foundation 6 grid-container + CSS Grid
   Dark mode: [data-theme="dark"] attribute with system preference fallback
   ============================================================================ */

/* --- CSS Custom Properties ------------------------------------------------ */
:root {
  /* Brand palette */
  --h-emerald: #2B597A;
  --h-emerald-light: #387297;
  --h-emerald-dark: #1D3D54;
  --h-amber: #F4A261;
  --h-amber-light: #F7C088;
  --h-amber-dark: #E07C24;
  --h-cream: #F2F8F7;
  --h-cream-dark: #E4EFED;
  --h-charcoal: #2B3A4E;
  --h-charcoal-light: #5A7A8A;
  --h-teal: #54AFA8;
  --h-teal-light: #8BBDB4;
  --h-white: #FFFFFF;
  --h-gray-100: #F5F5F5;
  --h-gray-200: #E0E0E0;
  --h-gray-300: #CBD5E0;
  --h-gray-400: #A0AEC0;
  --h-gray-600: #757575;
  --h-error: #E74C3C;
  --h-success: #27AE60;

  /* Scan accent — electric teal for AI moments */
  --h-scan: #00D4AA;
  --h-scan-light: #33DDBB;
  --h-scan-dark: #00B892;

  /* Spacing */
  --h-section-padding: 6rem 0;
  --h-section-padding-mobile: 4rem 0;

  /* Border Radius */
  --h-radius-sm: 6px;
  --h-radius-md: 12px;
  --h-radius-lg: 20px;
  --h-radius-full: 9999px;

  /* Transitions */
  --h-transition-fast: 150ms ease;
  --h-transition-base: 250ms ease;

  /* Semantic tokens (light mode defaults) */
  --h-bg-primary: var(--h-cream);
  --h-bg-secondary: var(--h-white);
  --h-bg-tertiary: var(--h-cream-dark);
  --h-surface: var(--h-white);
  --h-text-primary: var(--h-charcoal);
  --h-text-secondary: var(--h-charcoal-light);
  --h-text-heading: var(--h-emerald-dark);
  --h-text-muted: var(--h-gray-600);
  --h-border: var(--h-gray-200);
  --h-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --h-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --h-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --h-nav-bg: rgba(242, 248, 247, 0.92);
  --h-footer-bg: var(--h-emerald-dark);
  --h-footer-text: #C0D0DA;
  --h-footer-heading: var(--h-white);
  --h-code-bg: var(--h-gray-100);
  --h-faq-border: var(--h-gray-200);
}

/* --- Dark Mode ------------------------------------------------------------ */
[data-theme="dark"] {
  --h-bg-primary: #0E1620;
  --h-bg-secondary: #152028;
  --h-bg-tertiary: #121C24;
  --h-surface: #1A2830;
  --h-text-primary: #E8E8E8;
  --h-text-secondary: #B0B0B0;
  --h-text-heading: #8BBDB4;
  --h-text-muted: #8A8A9A;
  --h-border: #243440;
  --h-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --h-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --h-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
  --h-nav-bg: rgba(14, 22, 32, 0.95);
  --h-footer-bg: #0A1218;
  --h-footer-text: #8A9AA0;
  --h-footer-heading: #C0D0DA;
  --h-code-bg: #243440;
  --h-faq-border: #243440;
  --h-cream: #0E1620;
  --h-cream-dark: #121C24;
  --h-white: #152028;
  --h-charcoal: #E8E8E8;
  --h-charcoal-light: #B0B0B0;
  --h-gray-100: #1A2830;
  --h-gray-200: #243440;
  --h-gray-300: #243440;
  --h-gray-400: #6A7A88;
  --h-gray-600: #9AAAB0;
  --h-scan: #00D4AA;
  --h-scan-light: #33DDBB;
}

/* System preference fallback (no JS or no preference stored) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --h-bg-primary: #0E1620;
    --h-bg-secondary: #152028;
    --h-bg-tertiary: #121C24;
    --h-surface: #1A2830;
    --h-text-primary: #E8E8E8;
    --h-text-secondary: #B0B0B0;
    --h-text-heading: #8BBDB4;
    --h-text-muted: #8A8A9A;
    --h-border: #243440;
    --h-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --h-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --h-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
    --h-nav-bg: rgba(14, 22, 32, 0.95);
    --h-footer-bg: #0A1218;
    --h-footer-text: #8A9AA0;
    --h-footer-heading: #C0D0DA;
    --h-code-bg: #243440;
    --h-faq-border: #243440;
    --h-cream: #0E1620;
    --h-cream-dark: #121C24;
    --h-white: #152028;
    --h-charcoal: #E8E8E8;
    --h-charcoal-light: #B0B0B0;
    --h-gray-100: #1A2830;
    --h-gray-200: #243440;
    --h-gray-300: #243440;
    --h-gray-400: #6A7A88;
    --h-gray-600: #9AAAB0;
    --h-scan: #00D4AA;
    --h-scan-light: #33DDBB;
  }
}

/* --- Base & Reset --------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--h-text-primary);
  background-color: var(--h-bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--h-text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--h-text-secondary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--h-text-muted);
  line-height: 1.7;
}

a {
  color: var(--h-emerald-light);
  transition: color var(--h-transition-fast);
}

a:hover {
  color: var(--h-amber);
}

@media screen and (max-width: 639px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .lead { font-size: 1.1rem; }
}

/* --- Buttons (Foundation overrides) --------------------------------------- */
.button, button {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  border-radius: var(--h-radius-md);
  transition: all var(--h-transition-fast);
}

.button.primary {
  background-color: var(--h-amber);
  color: var(--h-emerald-dark);
}

.button.primary:hover,
.button.primary:focus {
  background-color: var(--h-amber-dark);
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.button.secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
}

.button.hollow {
  background-color: transparent;
  border: 2px solid var(--h-emerald);
  color: var(--h-emerald);
}

.button.hollow:hover,
.button.hollow:focus {
  background-color: var(--h-emerald);
  color: #FFFFFF;
}

.button.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.button.small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* --- Header / Navigation -------------------------------------------------- */
.site-header {
  background-color: var(--h-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--h-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--h-shadow-md);
}

.site-header .grid-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--h-radius-sm);
}

.site-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--h-emerald);
  letter-spacing: -0.03em;
}

[data-theme="dark"] .site-logo span {
  color: var(--h-text-heading);
}

.site-header nav {
  display: flex;
  align-items: center;
}

ul.nav-links,
.site-header ul.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-left: 0;
  margin-bottom: 0;
}

ul.nav-links li,
.site-header ul.nav-links li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--h-text-secondary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--h-transition-fast);
}

.nav-links a:hover {
  color: var(--h-emerald);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--h-text-secondary);
  border-radius: var(--h-radius-sm);
  transition: color var(--h-transition-fast);
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  color: var(--h-text-primary);
}

.icon-sun,
.icon-moon {
  width: 20px;
  height: 20px;
}

.icon-sun.hidden,
.icon-moon.hidden {
  display: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--h-text-primary);
}

@media screen and (max-width: 639px) {
  .nav-toggle {
    display: block;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
  }

  ul.nav-links,
  .site-header ul.nav-links {
    display: none;
    background: var(--h-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--h-border);
    gap: 0.75rem;
  }

  ul.nav-links.is-active,
  .site-header ul.nav-links.is-active {
    display: flex;
  }
}

/* --- Hero Section --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--h-emerald-dark) 0%,
    var(--h-emerald) 50%,
    var(--h-emerald-light) 100%
  );
}

[data-theme="dark"] .hero {
  background: linear-gradient(
    135deg,
    #0A1620 0%,
    #152838 50%,
    #1D3D54 100%
  );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 40px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 38px,
      rgba(255, 255, 255, 0.02) 38px,
      rgba(255, 255, 255, 0.02) 40px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(244, 162, 97, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .grid-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

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

.hero-platforms {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  text-align: center;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-badges a {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.92;
}

.hero-badges a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.hero-badges img {
  height: 48px;
}

@media screen and (min-width: 640px) {
  .hero h1 { font-size: 3.8rem; }
  .hero-subtitle { font-size: 1.3rem; }
}

@media screen and (min-width: 1024px) {
  .hero h1 { font-size: 4.2rem; }
}

/* --- Spaces Mosaic (Hero decoration) -------------------------------------- */
.spaces-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 12px;
  justify-content: center;
  margin: 2.5rem auto 0;
  max-width: 336px;
}

.space-card {
  width: 72px;
  height: 72px;
  border-radius: var(--h-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: spaceFadeIn 0.5s ease forwards;
  position: relative;
  overflow: hidden;
}

.space-card svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
  stroke-width: 1.5;
  position: relative;
  z-index: 1;
}

.space-card:nth-child(1) { animation-delay: 0.1s; background: linear-gradient(135deg, #E07C24, #F4A261); }
.space-card:nth-child(2) { animation-delay: 0.2s; background: linear-gradient(135deg, #387297, #54AFA8); }
.space-card:nth-child(3) { animation-delay: 0.35s; background: linear-gradient(135deg, #C0392B, #E74C3C); }
.space-card:nth-child(4) { animation-delay: 0.15s; background: linear-gradient(135deg, #7D3C98, #AF7AC5); }
.space-card:nth-child(5) { animation-delay: 0.3s; background: linear-gradient(135deg, #2B597A, #387297); }
.space-card:nth-child(6) { animation-delay: 0.45s; background: linear-gradient(135deg, #27AE60, #2ECC71); }
.space-card:nth-child(7) { animation-delay: 0.25s; background: linear-gradient(135deg, #D4A574, #E07C24); }
.space-card:nth-child(8) { animation-delay: 0.4s; background: linear-gradient(135deg, #00B892, #00D4AA); }

@keyframes spaceFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Scan line sweep */
.spaces-mosaic::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 170, 0.15) 40%,
    rgba(244, 162, 97, 0.2) 60%,
    transparent 100%
  );
  animation: scanSweep 4s ease-in-out 1.5s infinite;
  pointer-events: none;
  z-index: 2;
}

.spaces-mosaic {
  position: relative;
}

@keyframes scanSweep {
  0% { left: -100%; }
  40% { left: 100%; }
  100% { left: 100%; }
}

@media screen and (max-width: 639px) {
  .spaces-mosaic {
    grid-template-columns: repeat(4, 60px);
    gap: 8px;
    max-width: 272px;
  }
  .space-card {
    width: 60px;
    height: 60px;
  }
  .space-card svg {
    width: 24px;
    height: 24px;
  }
}

/* --- Sections ------------------------------------------------------------- */
.section {
  padding: var(--h-section-padding);
}

.section-alt {
  background-color: var(--h-bg-tertiary);
}

.section-dark {
  background-color: var(--h-emerald-dark);
  color: #FFFFFF;
}

[data-theme="dark"] .section-dark {
  background-color: #0A1218;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #FFFFFF;
}

.section-dark p,
.section-dark .lead {
  color: rgba(255, 255, 255, 0.75);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

@media screen and (max-width: 639px) {
  .section {
    padding: var(--h-section-padding-mobile);
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

/* --- How It Works (3-col grid) -------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media screen and (max-width: 639px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--h-radius-full);
  background: linear-gradient(135deg, var(--h-emerald), var(--h-emerald-light));
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--h-emerald-light), var(--h-emerald));
  border-radius: var(--h-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.step-icon svg {
  stroke: #FFFFFF;
}

/* AI sparkle step icon variant */
.step-icon.step-icon-ai {
  background: linear-gradient(135deg, var(--h-scan-dark), var(--h-scan));
}

/* Search step icon variant */
.step-icon.step-icon-search {
  background: linear-gradient(135deg, var(--h-amber-dark), var(--h-amber));
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* --- Use Cases (4x2 → 2-col → 1-col grid) ------------------------------- */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media screen and (max-width: 1023px) {
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 639px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}

.use-case-card {
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--h-transition-base), transform var(--h-transition-base);
}

.use-case-card:hover {
  box-shadow: var(--h-shadow-md);
  transform: translateY(-3px);
}

.use-case-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--h-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.use-case-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.use-case-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Features (3-col → 2-col → 1-col grid) ------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media screen and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 639px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-md);
  padding: 2rem;
  text-align: center;
  transition: box-shadow var(--h-transition-base), transform var(--h-transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--h-emerald), var(--h-scan));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--h-shadow-md);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--h-emerald-light), var(--h-emerald));
  border-radius: var(--h-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #FFFFFF;
}

.feature-icon svg {
  stroke: #FFFFFF;
}

/* AI feature icon variant */
.feature-icon.feature-icon-ai {
  background: linear-gradient(135deg, var(--h-scan-dark), var(--h-scan));
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--h-text-secondary);
  margin-bottom: 0;
}

/* --- Pricing (2-col centered grid) ---------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

@media screen and (max-width: 639px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.pricing-card {
  background: var(--h-surface);
  border: 2px solid var(--h-border);
  border-radius: var(--h-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--h-transition-base), box-shadow var(--h-transition-base);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--h-shadow-lg);
}

.pricing-card.featured {
  border-color: var(--h-amber);
  background: var(--h-emerald);
  color: #FFFFFF;
  transform: scale(1.03);
  box-shadow: var(--h-shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-card.featured h3,
.pricing-card.featured p,
.pricing-card.featured .price,
.pricing-card.featured .price-period,
.pricing-card.featured li {
  color: #FFFFFF;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--h-amber);
  color: var(--h-emerald-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: var(--h-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--h-text-primary);
  margin: 1rem 0 0.25rem;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.95rem;
  color: var(--h-text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--h-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features li::before {
  content: '\2713';
  font-weight: 700;
  color: var(--h-success);
  flex-shrink: 0;
}

.pricing-card.featured .pricing-features li::before {
  color: var(--h-amber-light);
}

/* --- CTA Banner ----------------------------------------------------------- */
.cta-banner {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(244, 162, 97, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-banner .grid-container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-banner .lead {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background-color: var(--h-footer-bg);
  color: var(--h-footer-text);
  padding: 3rem 0 2rem;
}

[data-theme="dark"] .site-footer {
  background-color: #0A1218;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--h-radius-sm);
}

.footer-brand span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--h-footer-heading);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--h-footer-text);
  margin: 0;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--h-footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--h-transition-fast);
}

.footer-links a:hover {
  color: var(--h-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p {
  color: var(--h-footer-text);
  opacity: 0.7;
  margin: 0;
}

@media screen and (max-width: 639px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* --- Legal / Content Pages ------------------------------------------------ */
.content-page {
  padding: 3rem 0 4rem;
  min-height: 70vh;
}

.content-page h1 {
  color: var(--h-text-heading);
  margin-bottom: 0.5rem;
}

.content-page .last-updated {
  color: var(--h-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.content-page h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content-page h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-page ul,
.content-page ol {
  color: var(--h-text-secondary);
  margin-bottom: 1.25rem;
}

.content-page li {
  margin-bottom: 0.4rem;
}

.content-page code {
  background: var(--h-code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

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

/* --- FAQ Section ---------------------------------------------------------- */
.faq-section {
  padding: 2rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--h-faq-border);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--h-text-primary);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--h-text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* --- Contact Card --------------------------------------------------------- */
.contact-card {
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-md);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--h-shadow-sm);
  margin-top: 2rem;
}

.contact-card .contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* --- Warning / Info Boxes ------------------------------------------------- */
.warning-box {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: var(--h-radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.warning-box p {
  color: var(--h-text-primary);
  margin: 0;
}

.warning-box strong {
  color: var(--h-error);
}

.info-box {
  background: rgba(43, 89, 122, 0.08);
  border: 1px solid rgba(43, 89, 122, 0.25);
  border-radius: var(--h-radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box p {
  color: var(--h-text-primary);
  margin: 0;
}

/* --- Numbered Instructions ------------------------------------------------ */
.instruction-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.instruction-steps li {
  counter-increment: step;
  padding: 0.75rem 0 0.75rem 3rem;
  position: relative;
  color: var(--h-text-secondary);
}

.instruction-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--h-emerald);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- CTA Button (subpages) ------------------------------------------------ */
.cta-button {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--h-radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}

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

.cta-button-primary {
  background: var(--h-amber);
  color: var(--h-emerald-dark);
  box-shadow: 0 4px 14px rgba(244, 162, 97, 0.4);
}

.cta-button-primary:hover {
  background: var(--h-amber-light);
  color: var(--h-emerald-dark);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.5);
}

/* --- Foundation Overrides ------------------------------------------------- */
.row {
  max-width: 72rem;
}

table {
  background: var(--h-surface);
  color: var(--h-text-primary);
  border-color: var(--h-border);
}

table thead {
  background: var(--h-emerald);
  color: #FFFFFF;
}

table thead th {
  color: #FFFFFF;
}

table tbody tr {
  background: var(--h-surface);
  color: var(--h-text-primary);
}

table tbody tr:nth-child(even) {
  background: var(--h-bg-secondary);
}

/* --- Scroll Reveal Animations --------------------------------------------- */
.h-reveal-ready .h-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.h-reveal-ready .h-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(1) { transition-delay: 0ms; }
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(2) { transition-delay: 100ms; }
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(3) { transition-delay: 200ms; }
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(4) { transition-delay: 300ms; }
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(5) { transition-delay: 400ms; }
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(6) { transition-delay: 500ms; }
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(7) { transition-delay: 600ms; }
.h-reveal-ready .h-reveal-stagger > .h-reveal:nth-child(8) { transition-delay: 700ms; }

/* Step number pop on reveal */
.h-reveal-ready .h-reveal.is-visible .step-number {
  animation: stepPop 0.4s ease 0.3s both;
}

@keyframes stepPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .h-reveal-ready .h-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .h-reveal-ready .h-reveal-stagger > .h-reveal {
    transition-delay: 0ms !important;
  }
  .space-card {
    animation: none;
    opacity: 1;
  }
  .spaces-mosaic::after {
    animation: none;
  }
  * {
    animation-duration: 0.01ms !important;
  }
}

/* --- Utility Classes ------------------------------------------------------ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
