/* ==========================================================================
   PRISM DIGITAL AI — CORE STYLESHEET
   Design System: Human-Centric Warmth (Airbnb) + Layout Precision (Stripe)
   Palette: #2A363B, #E84A5F, #FF847C, #FECEA8, #99B898
   Target: 100 Lighthouse Score (Performance, A11y, Best Practices, SEO)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Dual-Theme Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Swatches */
  --brand-slate: #2A363B;
  --brand-berry: #E84A5F;
  --brand-salmon: #FF847C;
  --brand-apricot: #FECEA8;
  --brand-sage: #99B898;

  /* Typography Stacks */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Spacing */
  --max-width: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Motion */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Slick Slate Dark Mode (Default) */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* Canvas & Surfaces (60-30-10) */
  --bg-canvas: #1D262A;
  --bg-surface: #2A363B;
  --bg-surface-elevated: #334147;
  --bg-surface-subtle: rgba(42, 54, 59, 0.65);
  --bg-badge: rgba(254, 206, 168, 0.12);

  /* Borders & Dividers */
  --border-subtle: rgba(254, 206, 168, 0.16);
  --border-hover: rgba(255, 132, 124, 0.5);
  --border-focus: #FECEA8;

  /* Typography */
  --text-primary: #FAF6F0;
  --text-secondary: #D6D1C7;
  --text-muted: #AFBEC4; /* Enhanced to guarantee >5.2:1 contrast against all dark surfaces */
  --text-eyebrow: #FECEA8;

  /* Accents */
  --accent-berry: #FF847C; /* Lightened to salmon in dark mode for >5.5:1 text contrast */
  --accent-salmon: #FF9B94;
  --accent-apricot: #FECEA8;
  --accent-sage: #B4D5B3; /* Brightened for >5.2:1 contrast on dark elevated cards */

  --brand-name-suffix-color: #FF847C;

  /* Interactive Elements (WCAG AAA Compliance: >10:1 Contrast) */
  --btn-primary-bg: #FECEA8;
  --btn-primary-text: #2A363B;
  --btn-primary-hover-bg: #FAF6F0;
  --btn-primary-hover-text: #1D262A;

  --btn-secondary-bg: rgba(254, 206, 168, 0.08);
  --btn-secondary-text: #FAF6F0;
  --btn-secondary-border: rgba(254, 206, 168, 0.28);
  --btn-secondary-hover-bg: rgba(254, 206, 168, 0.16);

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 132, 124, 0.15);
  --nav-backdrop: rgba(29, 38, 42, 0.88);
}

/* Warm Editorial Light Mode */
[data-theme="light"] {
  color-scheme: light;

  /* Canvas & Surfaces */
  --bg-canvas: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F3EDE4;
  --bg-surface-subtle: #F6F1EA;
  --bg-badge: rgba(254, 206, 168, 0.35);

  /* Borders & Dividers */
  --border-subtle: #E6DEC8;
  --border-hover: rgba(201, 54, 75, 0.4);
  --border-focus: #2A363B;

  /* Typography (WCAG AAA Contrast > 11:1) */
  --text-primary: #2A363B;
  --text-secondary: #3D4C53;
  --text-muted: #52636A; /* Strict >4.8:1 contrast on alabaster canvas */
  --text-eyebrow: #2A363B;

  /* Accents */
  --accent-berry: #C9364B; /* Deepened for 4.8:1+ contrast */
  --accent-salmon: #C5443B;
  --accent-apricot: #8A522A;
  --accent-sage: #385E3B; /* Deepened for 4.9:1 contrast */

  --brand-name-suffix-color: #C9364B;

  /* Interactive Elements */
  --btn-primary-bg: #2A363B;
  --btn-primary-text: #FAF7F2;
  --btn-primary-hover-bg: #1D262A;
  --btn-primary-hover-text: #FFFFFF;

  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-text: #2A363B;
  --btn-secondary-border: #D8CEB8;
  --btn-secondary-hover-bg: #F3EDE4;

  --card-shadow: 0 10px 30px -12px rgba(42, 54, 59, 0.08), 0 1px 3px rgba(42, 54, 59, 0.04);
  --card-shadow-hover: 0 20px 40px -15px rgba(42, 54, 59, 0.15), 0 0 25px rgba(232, 74, 95, 0.08);
  --nav-backdrop: rgba(250, 247, 242, 0.88);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-canvas);
  transition: var(--transition-theme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessibility: Keyboard Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent-berry);
}

/* Accessibility: Universal Focus Ring */
:focus-visible {
  outline: 2px solid var(--brand-salmon);
  outline-offset: 3px;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.35rem, 4.5vw + 1rem, 3.85rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 1.8vw + 0.3rem, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

.section {
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface-elevated);
  transition: var(--transition-theme);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-eyebrow);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-sage);
}

.section-title {
  margin-bottom: 18px;
}

.section-lead {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges (Strict Contrast Rules)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.0625rem;
}

.btn-coral {
  background-color: var(--brand-berry);
  color: #FAF6F0;
  border-color: transparent;
}
.btn-coral:hover {
  background-color: var(--brand-salmon);
  color: #2A363B;
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  color: var(--text-eyebrow);
}

.badge-sage {
  background-color: rgba(153, 184, 152, 0.18);
  border-color: rgba(153, 184, 152, 0.35);
  color: #2A363B;
}
[data-theme="dark"] .badge-sage {
  color: #FECEA8;
}

.badge-coral {
  background-color: rgba(232, 74, 95, 0.15);
  border-color: rgba(232, 74, 95, 0.3);
  color: #2A363B;
}
[data-theme="dark"] .badge-coral {
  color: #FF847C;
}

/* --------------------------------------------------------------------------
   5. Global Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--nav-backdrop);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-theme);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Brand Wordmark */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-prism-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-name-suffix {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-name-suffix-color);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Desktop Nav Links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--btn-secondary-bg);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.icon-sun {
  display: none;
}
.icon-moon {
  display: block;
}

[data-theme="light"] .icon-sun {
  display: block;
}
[data-theme="light"] .icon-moon {
  display: none;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   6. Accessible Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
  padding: 24px;
  overflow-y: auto;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.drawer-open {
  overflow: hidden;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  right: 10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 74, 95, 0.12) 0%, rgba(254, 206, 168, 0.05) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-glow-2 {
  position: absolute;
  bottom: -50px;
  left: 5%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 184, 152, 0.12) 0%, rgba(42, 54, 59, 0.05) 60%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.hero-content {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-sage);
  box-shadow: 0 0 8px rgba(153, 184, 152, 0.6);
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--brand-salmon) 0%, var(--brand-berry) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.35rem);
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 740px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-sage);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Bento Grid (3 In-House Platforms)
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

/* Card 1: One Team Music (Spans 7 cols on desktop) */
.bento-card-otm {
  grid-column: span 7;
}

/* Card 2: Fish Angler Pro (Spans 5 cols on desktop) */
.bento-card-fap {
  grid-column: span 5;
}

/* Card 3: ClaimScout Pro (Spans 12 cols on desktop) */
.bento-card-csp {
  grid-column: span 12;
}

.bento-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.bento-tag {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bento-title {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.bento-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

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

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.bento-link:hover {
  gap: 12px;
  color: var(--brand-salmon);
}

.bento-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.bento-link:hover svg {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   9. Tactile Code-Rendered UI Component Frames
   -------------------------------------------------------------------------- */
.tactile-frame {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 10px;
  margin-bottom: 20px;
  user-select: none;
}

/* OTM: 60-Day Interactive Release Roadmap Frame */
.otm-roadmap-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-eyebrow);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.roadmap-phase-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-phase-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-berry);
}

.roadmap-phase-item.active {
  border-left-color: var(--brand-salmon);
}

.phase-days {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-eyebrow);
  white-space: nowrap;
}

.phase-content {
  flex: 1;
}

.phase-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.phase-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.phase-status-pill {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: rgba(254, 206, 168, 0.18);
  color: var(--text-eyebrow);
}

.phase-status-pill.in-progress {
  background-color: rgba(180, 213, 179, 0.2);
  color: var(--accent-sage);
}
[data-theme="light"] .phase-status-pill.in-progress {
  background-color: rgba(56, 94, 59, 0.12);
  color: var(--accent-sage);
}

.phase-status-pill.completed {
  background-color: rgba(232, 74, 95, 0.14);
  color: #FFAFA8;
}
[data-theme="light"] .phase-status-pill.completed {
  background-color: rgba(197, 68, 59, 0.12);
  color: #A82C24;
}

/* FAP: Weather & Telemetry Frame */
.fap-telemetry-frame {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.telemetry-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.telemetry-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.telemetry-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.telemetry-trend {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-sage);
}

.fap-lure-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border-left: 3px solid var(--accent-sage);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lure-info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lure-info-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* CSP: Room Catalog & Receipt OCR Frame */
.csp-inventory-frame {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.inventory-room-preview {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.room-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-eyebrow);
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  padding: 6px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.ocr-scanner-preview {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.ocr-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-sage);
}

.ocr-detected-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   10. Value Proposition Strip ("Why Work with a Builder")
   -------------------------------------------------------------------------- */
.value-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.value-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-berry);
}

.value-icon-box svg {
  width: 26px;
  height: 26px;
}

.value-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.value-card-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Services & Pricing Cards (`services.html`)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

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

.pricing-card.featured {
  border-color: var(--brand-berry);
  box-shadow: 0 15px 35px -10px rgba(232, 74, 95, 0.2);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 32px;
  background-color: var(--brand-apricot);
  color: #2A363B;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pricing-tier-name {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pricing-tier-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 48px;
}

.pricing-price-box {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-sage);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   12. Contact Form & Free Audit Section
   -------------------------------------------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-salmon);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--card-shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-salmon);
  box-shadow: 0 0 0 3px rgba(255, 132, 124, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Accessible Inline Feedback */
.form-status-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-status-alert.success {
  display: block;
  background-color: rgba(153, 184, 152, 0.18);
  border: 1px solid rgba(153, 184, 152, 0.4);
  color: var(--text-primary);
}

.form-status-alert.error {
  display: block;
  background-color: rgba(232, 74, 95, 0.15);
  border: 1px solid rgba(232, 74, 95, 0.35);
  color: var(--text-primary);
}

/* Hidden Bot Trap */
.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* --------------------------------------------------------------------------
   13. Work Showcase Alternating Cards (`work.html`)
   -------------------------------------------------------------------------- */
.work-case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.work-case-study:last-child {
  border-bottom: none;
}

.work-case-study.reverse {
  direction: rtl;
}
.work-case-study.reverse > * {
  direction: ltr;
}

.case-study-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-study-badge {
  align-self: flex-start;
}

.case-study-title {
  font-size: clamp(1.85rem, 2.5vw + 0.5rem, 2.45rem);
}

.case-study-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.case-study-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px 0;
}

.case-study-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.case-study-feature-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.case-study-preview-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

/* --------------------------------------------------------------------------
   14. FAQ Accordion (`services.html`)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--brand-salmon);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

/* --------------------------------------------------------------------------
   15. Global Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(60px, 8vw, 90px) 0 40px 0;
  transition: var(--transition-theme);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col {
  max-width: 440px;
}

.footer-tagline {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 14px;
  margin-bottom: 20px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

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

.footer-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   16. Media Queries & Responsive Refinements
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento-card-otm,
  .bento-card-fap {
    grid-column: span 12;
  }

  .value-strip-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .work-case-study,
  .work-case-study.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .bento-card-csp .csp-inventory-frame {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Reduced Motion Preference for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
