:root {
  --primary-color: #1b333c; /* Dark teal from Figma */
  --secondary-color: #4a7682; /* Medium teal from Figma */
  --primary-tint: rgba(27, 51, 60, 0.08); /* Soft teal wash for tags/sections */
  --primary-tint-strong: rgba(27, 51, 60, 0.12);
  --accent-color: linear-gradient(135deg, #4cb89a, #3ba88a); /* Vibrant jade (Cool Summer) */
  --warning-color: linear-gradient(135deg, #e8b94a, #d9a040); /* Saturated cool gold */
  --danger-color: linear-gradient(135deg, #d65780, #c94371); /* Raspberry */
  --ideal-range-color: rgba(59, 168, 138, 0.20); /* Jade tint for ideal range fill */
  --ideal-range-border-color: rgba(59, 168, 138, 0.45); /* Jade border */
  --background-color: #edeef2; /* Matches hero gradient end colour */
  --text-color: #1d1d1f; /* Dark grey for text */
  --text-light-color: #6e6e73; /* Lighter grey for subtitles */
  --card-background: rgba(255, 255, 255, 0.8); /* Slightly more opaque for better readability */
  --card-border: rgba(229, 229, 234, 0.7);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --border-radius-main: 12px;
  --border-radius-small: 8px;
  --border-radius-button: 4px;

  /* Classic dashboard scheme (restored for the live demo block, per latest design pass) */
  --dash-green: #2aa876;      /* productivity / good */
  --dash-green-soft: #d5efe2; /* light green card bg */
  --dash-blue: #5b7cfa;       /* hours saved / neutral info */
  --dash-blue-soft: #e0e6ff;  /* light blue card bg */
  --dash-red: #e85a7a;        /* reduced absenteeism / negative */
  --dash-red-soft: #fde0e6;   /* light pink card bg */
  --dash-amber: #f2b742;      /* SBS risk / warning */
  --dash-amber-soft: #fff3d6; /* light amber card bg */
  --dash-purple: #6b5bf5;     /* active toggle pill */
}

/* --- General Styles & Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 400; /* Helvetica Neue Regular for the airy editorial feel from Figma */
  letter-spacing: -0.01em;
}
h2 {
  font-weight: 400;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Cap typography stroke weight at Medium (500), no bold anywhere */
strong, b {
  font-weight: 500;
}

/* Global orphan prevention: even out line lengths in headlines, avoid single-word last lines in prose */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
p, li {
  text-wrap: pretty;
}

/* --- Background Shapes (kept very subtle to not fight the hero photo) --- */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.shape { position: absolute; border-radius: 50%; opacity: 0.5; filter: blur(220px); }
.shape-1 { width: 600px; height: 600px; background: rgba(74, 118, 130, 0.10); top: -150px; left: -150px; }
.shape-2 { width: 500px; height: 500px; background: rgba(27, 51, 60, 0.08); bottom: -100px; right: -100px; }
.shape-3 { width: 400px; height: 400px; background: rgba(74, 118, 130, 0.06); top: 40%; left: 50%; transform: translate(-50%, -50%); }

/* --- Floating Glass Header & Navigation (matches Figma) --- */
.main-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border: none;
  transition: transform 0.35s ease;
  will-change: transform;
  pointer-events: none; /* let clicks fall through container, nav itself re-enables */
}
.main-header .container {
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.main-header.is-hidden {
  transform: translateY(calc(-100% - 20px));
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(965px, calc(100% - 40px));
  padding: 8px 8px 8px 20px; /* extra left so the unfilled logo balances the filled CTA on the right */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 8px;
  pointer-events: auto;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
/* When scrolled past the hero, swap to opaque white nav with dark text */
.main-header.is-scrolled .main-nav {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.main-header.is-scrolled .logo,
.main-header.is-scrolled .nav-links a {
  color: var(--text-color);
}
.main-header.is-scrolled .cta-button.primary {
  background-color: var(--primary-color);
  color: #ffffff;
}
.logo {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0;
  transition: color 0.35s ease;
  display: inline-flex;
  align-items: center;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}
.nav-links a {
  color: #ffffff;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  transition: opacity 0.3s ease, color 0.35s ease;
}
.nav-links a:hover { opacity: 0.7; }

/* --- Buttons (4px corners, Helvetica Neue Medium 16px from Figma) --- */
.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--border-radius-button);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  border: none; cursor: pointer;
  white-space: nowrap;
}
.cta-button.primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.25);
}
.cta-button.primary:hover { background-color: #122830; }
.cta-button.secondary {
  background-color: #ffffff;
  color: var(--secondary-color);
  border: none;
}
.cta-button.secondary:hover { background-color: rgba(255, 255, 255, 0.92); }
.cta-button:hover { transform: translateY(-2px); }
.cta-button.large { padding: 14px 20px; font-size: 1rem; }

/* --- Hero Section (matches Figma: building photo + teal-to-light gradient overlay) --- */
.hero-section {
  position: relative;
  min-height: 850px;
  padding: 252px 0 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 0;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-background::after {
  /* Hold the dark teal through the subtitle for white-text contrast (WCAG AA),
     then fade to body bg below the CTAs */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 61, 88, 0.50) 0%,
    rgba(0, 61, 88, 0.45) 55%,
    rgba(0, 61, 88, 0.30) 70%,
    #edeef2 95%
  );
}
.hero-section .container.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1164px; /* 1100px content area + 32px padding each side */
  padding: 0 2rem;
}
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.125rem); /* 50px target, trimmed to lock 2-line wrap */
  font-weight: 400; /* Helvetica Neue Regular */
  letter-spacing: -1.08px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  max-width: 1100px;
  text-wrap: balance; /* let the browser even out line lengths */
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem); /* 20px target */
  font-weight: 400;
  line-height: 1.4;
  color: #fefeff;
  max-width: 720px;
  margin: 0;
  text-wrap: pretty; /* avoid single-word last lines */
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

/* --- Content & Feature Sections --- */
.content-section, .features-section, .demo-section, .cta-final-section, .why-aura-section {
  padding: 6rem 0;
}
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-tag { display: inline-block; background-color: var(--primary-tint); color: var(--secondary-color); padding: 0.3rem 0.85rem; border-radius: 20px; font-weight: 500; margin-bottom: 0.9rem; font-size: 0.8rem; }
.section-header h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-bottom: 1rem; font-weight: 400; letter-spacing: -0.02em; color: var(--primary-color); }
.section-header p { font-size: 1rem; color: var(--text-light-color); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 820px; margin: 0 auto; }

/* Aura Advantage: teal panel with glassy cards, spans near edge-to-edge */
.features-section { padding: 6rem 0; }
.features-section .container {
  max-width: none;
  padding: 0 1rem; /* ~1rem gap between the teal panel and the viewport edges */
}
.features-panel {
  background: linear-gradient(
    180deg,
    #407d85 0%,
    #3b7179 35%,
    #4a8a90 50%,
    #7fb0b3 62%,
    #b5d2d3 72%,
    #d6e3e4 80%,
    #e4eaeb 87%,
    var(--background-color) 95%
  );
  border-radius: var(--border-radius-main);
  padding: 4.5rem clamp(2rem, 6vw, 6rem) 3rem;
}
.features-panel .section-header { margin-bottom: 3rem; }
.features-panel .section-header .section-tag {
  background-color: #ffffff;
  color: #2d5e65;
}
.features-panel .section-header h2 { color: #ffffff; }
.features-panel .section-header p { color: rgba(255, 255, 255, 0.82); }

/* Demo block sits inside the teal panel, below the feature cards */
.demo-block {
  margin-top: 4rem;
  padding-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-main); padding: 2.25rem 1.75rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card-non-hover {
  position: relative;
  left: 0;
  width: 100%;
  height: calc(100% - 20%);    /* fill remaining 560px */
  padding: 2rem 2rem 1.5rem;
  background: var(--card-background);
  border-radius: 0 0 var(--border-radius-main) var(--border-radius-main);

  /* If content is too tall, allow vertical scrolling inside the card */
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  flex-direction: column;
}
/* 4) Headings + paragraphs inside each card */
.feature-card-non-hover h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: var(--text-color);
}
.feature-card-non-hover p {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: var(--text-light-color);
}

.feature-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.12); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); }
.feature-icon { width: 48px; height: 48px; margin-bottom: 1.75rem; display: block; }
.feature-card h3 { margin-top: 0; margin-bottom: 0.75rem; font-size: 1.15rem; color: #ffffff; }
.feature-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); line-height: 1.6; margin: 0; }

/* --- Why Aura Section --- */
#why-aura { background-color: rgba(255,255,255,0.5); }
.why-aura-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.why-aura-item {
  background: var(--card-background); border: 1px solid var(--card-border);
  border-radius: var(--border-radius-main); padding: 2rem;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 6px 25px var(--shadow-color);
}
.why-aura-item h5 { font-size: 1.05rem; color: var(--secondary-color); margin-bottom: 0.5rem; font-weight: 500; }
.why-aura-item p { font-size: 0.9rem; color: var(--text-light-color); }

.user-select-none {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Embedded Demo --- */
/* .demo-section no longer used as a standalone section; demo lives inside .features-panel */
.demo-section { padding: 3rem 0; }
/* Outer shell: low-opacity backing container visible behind the main dashboard */
.dashboard-outer-shell {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 10px;
}
.dashboard-container-embed {
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 940px;
  min-height: 940px;

  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  gap: 1rem;
  background: transparent;
  flex-grow: 1;
  overflow: hidden;
}

.floorplan-area {
  flex: 1 1 100%;
  min-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  transition: flex-basis 0.4s ease-in-out;
}
.floorplan-area.panel-expanded {
  flex-basis: 60% !important;
}

.floorplan-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
  gap: 1rem;
}
.floorplan-header {
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.15rem;
}
.floorplan-subtitle {
  font-size: 0.825rem;
  color: var(--text-light-color);
  margin: 0;
  line-height: 1.4;
  max-width: 340px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.divider-line {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 0.5rem 0;
}
.performance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 0 0.25rem;
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.performance-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}
.performance-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.date-range-display {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-color);
  background: rgba(0,0,0,0.03);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.date-range-icon { width: 15px; height: 15px; display: inline-block; flex-shrink: 0; }
.floorplan-with-pager {
  display: flex;
  gap: 0.5rem;
  flex-grow: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.floor-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding-top: 2rem;
  min-width: 40px;
  flex-shrink: 0;
}
.floor-pager-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light-color);
}
.floor-pager-active {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
}
.floor-pager-item {
  font-size: 0.85rem;
  color: #bbb;
  cursor: pointer;
}
.floor-pager-arrow {
  width: 14px;
  height: 14px;
  display: block;
  cursor: pointer;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}
.floorplan-toggles {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.floorplan-toggles::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 16px;
  background: var(--dash-purple);
  transition: transform 0.28s ease, background-color 0.28s ease;
  z-index: 0;
  pointer-events: none;
}
.floorplan-toggles:has(input[value="sbs"]:checked)::before {
  transform: translateX(100%);
  background: var(--dash-amber);
}
.floorplan-toggles .toggle-label {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 78px;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
  background: transparent;
  color: rgba(0,0,0,0.6);
  font-weight: 500;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.floorplan-toggles .toggle-label:has(input:checked) {
  color: #ffffff;
}
.floorplan-toggles .toggle-label:has(input[value="sbs"]:checked) {
  color: #ffffff;
}
.floorplan-toggles .toggle-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
/* Generic toggle-label kept for other sections */
.toggle-label:not(.floorplan-toggles .toggle-label) { font-size: 0.8rem; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: var(--border-radius-small); background-color: rgba(0,0,0,0.05); transition: background-color 0.3s; }
.toggle-label:not(.floorplan-toggles .toggle-label) input { margin-right: 0.3rem; vertical-align: middle; }
.toggle-label:not(.floorplan-toggles .toggle-label):has(input:checked) { background-color: var(--primary-color); color: white; }

/* Summary Stats Bar */
.summary-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  margin-bottom: 0.5rem;
  background: transparent;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.summary-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  position: relative;
}
.summary-stat + .summary-stat::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(0,0,0,0.08);
}
.summary-stat-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}
.summary-stat-label {
  display: block;
  font-size: 0.62rem;
  color: var(--text-light-color);
  font-weight: 500;
}
.summary-stat-value {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-color);
}
.stat-badge {
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.12rem 0.5rem;
  border-radius: 20px;
  text-transform: none;
  letter-spacing: 0;
  color: #ffffff;
}
.stat-badge.good {
  background-color: var(--dash-green);
  color: #ffffff;
}
.stat-badge.average {
  background-color: var(--dash-amber);
  color: #4a3a10;
}
.stat-badge.poor {
  background-color: var(--dash-red);
  color: #ffffff;
}


#floorplan {
  width: 100%;
  height: 100%;
  background: rgba(248, 250, 248, 0.8);
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(0,0,0,0.06);
}
.zone path { stroke: none; stroke-width: 0; transition: fill 0.3s ease; cursor: pointer; fill: rgba(230, 240, 230, 0.5); }
.zone:hover path, .zone:focus path { filter: brightness(0.96); outline: none; }
.zone.active path { stroke: var(--primary-color); stroke-width: 3px; filter: brightness(1.02); }
.zone text { pointer-events: none; font-weight: 400; }
.zone .zone-label-main { font-size: 11px; fill: #2b2b2e; font-weight: 500; }
.zone .zone-data { font-size: 16px; fill: #1d1d1f; font-weight: 500; }
#floorplan .area-label { font-size: 10px; fill: #bbb; font-weight: 500; pointer-events: none; }

/* Classic traffic-light zone fills, restored for the live demo */
.productivity-high path, .sbs-risk-low path { fill: rgba(42, 168, 118, 0.35) !important; }   /* Green */
.productivity-medium path, .sbs-risk-medium path { fill: rgba(242, 183, 66, 0.40) !important; } /* Amber */
.productivity-low path, .sbs-risk-high path { fill: rgba(232, 90, 122, 0.35) !important; }    /* Red */


.timeline-slider-container { padding: 0.45rem 0.75rem 0.5rem; background-color: rgba(0,0,0,0.02); border-radius: var(--border-radius-small); flex-shrink: 0; }
.slider-label { display: block; font-size: 0.72rem; font-weight: 500; margin-bottom: 0.2rem; color: var(--text-color); }
.slider { width: 100%; cursor: pointer; -webkit-appearance: none; appearance: none; height: 4px; background: #ddd; border-radius: 5px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; background: var(--primary-color); border-radius: 50%; cursor: pointer; }
.slider::-moz-range-thumb { width: 14px; height: 14px; background: var(--primary-color); border-radius: 50%; cursor: pointer; border: none; }
.time-labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-light-color); margin-top: 0.2rem; }

.dashboard-panel-main {
  flex: 0 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 0;
  border-left: none;
  opacity: 0;
  transform: scaleX(0.9) translateX(20px);
  transform-origin: left center;
  transition: flex-basis 0.4s ease-in-out, opacity 0.3s ease-in-out, transform 0.4s ease-in-out, min-width 0.4s ease-in-out, padding-left 0.4s ease-in-out;
}
.dashboard-panel-main:not(.collapsed) {
  flex-basis: 40%; /* Expand to this size */
  min-width: 320px;
  opacity: 1;
  transform: scaleX(1) translateX(0);
  padding-left: 1rem;
  border-left: 1px solid rgba(0,0,0,0.05);
}

.zone-title-panel {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--text-color);
}
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}
.panel-collapse-btn {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.panel-collapse-btn:hover {
  background: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.8);
}

.mobile-zone-selector-container {
  display: none;
  margin-bottom: 1rem;
}
.zone-selector-mobile {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--border-radius-small);
  border: 1px solid var(--card-border);
  background-color: white;
  font-size: 0.9rem;
}


.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.5rem; margin-bottom: 0.5rem; }
.metric-card { background-color: rgba(255,255,255,0.5); border-radius: var(--border-radius-small); padding: 0.5rem 0.6rem; border: 1px solid rgba(0,0,0,0.03); }
.metric-value { font-size: 1rem; font-weight: 500; display: block; margin-bottom: 0.1rem; }
.metric-label { font-size: 0.55rem; color: var(--text-light-color); }



.risk-card { background-color: var(--dash-amber-soft); border-left: 3px solid var(--dash-amber); }
.risk-card .metric-value { color: #8a6a1f; }
.risk-level {
  margin-top: 0.2rem; padding: 0.15rem 0.4rem; border-radius: 50px;
  font-size: 0.6rem; color: white; text-align: center;
  display: inline-block; font-weight: 500;
}
.risk-level.low { background: var(--dash-green); color: #ffffff; }
.risk-level.medium { background: var(--dash-amber); color: #4a3a10; }
.risk-level.high { background: var(--dash-red); color: #ffffff; }

.productivity-card {
  background-color: var(--dash-green-soft); border-left: 3px solid var(--dash-green);
}
.productivity-card .metric-value { color: #1d7a54; }

.hours-card {
  background-color: var(--dash-blue-soft); border-left: 3px solid var(--dash-blue);
}
.hours-card .metric-value { color: #3b4fb0; }

.absent-card {
  background-color: var(--dash-red-soft); border-left: 3px solid var(--dash-red);
}
.absent-card .metric-value { color: #b03959; }

.time-series-chart-container { position: relative;
  /* flex-grow: 1;  */
  display: flex;
  flex-direction: column;
   min-height: 210px;
   height: 210px;
  }
.chart-controls-overlay {
    /* position: absolute; */
    /* top: 2px;
    right: 2px;
    z-index: 10; */
    justify-content: center;
    display: flex;
    gap: 0.3rem;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0.25rem;
    border-radius: calc(var(--border-radius-small) - 4px);
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */
}
.chart-dropdown-group { flex: 0 0 auto; }
.chart-dropdown {
  padding: 0.2rem 0.35rem;
  border-radius: calc(var(--border-radius-small) - 6px);
  border: 1px solid var(--card-border);
  background-color: white;
  font-size: 0.65rem;
  color: var(--text-color);
  /* -webkit-appearance: none; appearance: none; */
  /* background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007AFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E'); */
  /* background-repeat: no-repeat; background-position: right .4em top 50%; background-size: .4em auto; */
  max-width: 130px;
}


.chart-container { background-color: rgba(255,255,255,0.3); padding: 0.5rem; border-radius: var(--border-radius-small); }
.chart-title { font-size: 0.78rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text-color); }
#time-series-chart { width: 100%; height: 210px; flex-grow: 1; min-height: 180px; max-height: 210px;}
#sbs-pie-chart { width: 100%; height: 200px; max-height: 200px; }


/* --- Final CTA & Footer --- */
.cta-final-section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-final-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.cta-final-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('cta-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-final-background::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Solid cool teal wash so the buildings read as a monochrome backdrop */
  background: linear-gradient(
    to bottom,
    rgba(0, 61, 88, 0.55) 0%,
    rgba(0, 61, 88, 0.50) 100%
  );
}
.cta-final-section .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 1100px; /* Wide enough for the headline to sit on one line at desktop */
}
.cta-final-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  max-width: 100%;
}
.cta-final-section p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  color: #fefeff;
  max-width: 720px; /* Targets three lines of body copy at desktop */
  margin: 0;
}
.cta-final-section .cta-button {
  margin-top: 0.75rem;
}
.main-footer { text-align: center; padding: 3rem 0 2rem; background-color: #e9ecef; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: 1.5rem; font-weight: 500; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer-links a { color: var(--text-light-color); font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); }
.copyright-text { font-size: 0.8rem; color: #86868b; }

/* --- Accessibility & Helper classes --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* --- Animations & Responsive --- */
.content-section, .features-section, .demo-section, .cta-final-section, .why-aura-section {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.content-section.visible, .features-section.visible, .demo-section.visible, .cta-final-section.visible, .why-aura-section.visible {
  opacity: 1; transform: translateY(0);
}

/* --- Before/After toggle card --- */
.toggle-container {
  max-width: 600px;
  margin: 2rem auto;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-main);
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 8px 28px var(--shadow-color);
  text-align: center;
}
.split-content > .toggle-container {
  flex: 0 1 500px;
  margin: 0;
  max-width: 500px;
}

/* Pill toggle track */
.toggle-pill-track {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: #edeef2;
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 2rem;
}
.toggle-pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 26px;
  background: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}
/* Slide the pill right when the second button is active */
.toggle-pill-track.right .toggle-pill-indicator {
  transform: translateX(100%);
}
.toggle-pill-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: 26px;
  background: transparent;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.toggle-pill-btn.active {
  color: #ffffff;
}

/* Content crossfade stage */
.toggle-content-stage {
  position: relative;
  min-height: 120px;
}
.toggle-pane {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.toggle-pane.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}
.toggle-pane pre {
  font-family: 'Courier New', Courier, monospace;
  background-color: #f5f5f7;
  padding: 1.25rem 1rem;
  border-radius: var(--border-radius-small);
  border: 1px solid #e5e5ea;
  font-size: 0.85rem;
  white-space: pre-wrap;
  text-align: center;
  margin: 0;
  color: var(--text-light-color);
  line-height: 1.8;
}
.toggle-pane p {
  margin: 0.5rem 0;
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
}

.toggle-container, #sbs-mindmap {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.visible .toggle-container,
.visible #sbs-mindmap {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------
   2-Column Layout for IEQ Problem Section
   --------------------------------------------------- */
   .split-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  /* Left column: text */
  .split-text {
    flex: 1 1 45%; /* approximately 45% width, but flexible */
  }
  .split-text > .section-header {
    text-align: left;
  }
  
  /* Right column: mind-map */
  .mindmap-wrapper {
    flex: 1 1 45%;
    display: flex;
    justify-content: center; /* center the mindmap inside its column */
    align-items: center;
  }
  
  /* Ensure the mindmap fills its column */
  #sbs-mindmap {
    width: 100%;
    max-width: 600px; /* optional max-width */
  }

.content-section.visible .mindmap-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------
   Toggle Card Styles (Hidden Cost)
   ---------------------------- */
   .toggle-card {
    width: 40vw;
    height: max-content;

    position: relative;       /* required for absolutely positioned children */
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-main);
    box-shadow: 0 6px 25px var(--shadow-color);
    overflow: auto;         /* hide anything outside the fixed box */
    display: flex;
    flex-direction: column;
    padding: 1rem;

  }
  
  /* Toggle Buttons Container */
  .toggle-buttons-cost {
    display: flex;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--border-radius-small);
    /* border-bottom: 1px solid var(--card-border);
    margin-bottom: 0.75rem; */
  }
  
  /* Individual Toggle Button */
  .toggle-buttons-cost .toggle-btn {
    flex: 1;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-style: none none solid none;
    border-color: var(--primary-color);
    /* Ensure the button fills the 40px height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
  }

  
  /* Active state */
  .toggle-buttons-cost .toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
    border: none;
  }
  
  /* Hover state (non-active) */
  .toggle-buttons-cost .toggle-btn:not(.active):hover {
    background-color: var(--primary-tint);
    color: var(--primary-color);
  }
  
  /* Card visibility */
  .card-visible {
    /* display: block;
    width: 100%; */
    display: flex;
  }
  .card-hidden {
    display: none;
    /* width: 100%; */
  }

  /* ─── Chart Containers fill the rest of the card ─── */
  #ieq-cost-chart,
  #cognitive-scatter {
    flex: 1;          /* take all leftover vertical space */
    width: 100%;      /* full width inside the card’s padding */
    /* no explicit height; Plotly will fill flex area */
  }

  
  @media (max-width: 1024px) {
    .dashboard-container-embed { max-height: none; height: auto; }
    .content-wrapper { flex-direction: column; }
    .dashboard-panel-main { order: 2; margin-top: 1.5rem; overflow-y: visible; padding-left:0; border-left: none; max-width: 100%; }
    .dashboard-panel-main.collapsed { max-width: 100%; transform: none; opacity: 0; height: 0; margin-top:0; padding:0; overflow:hidden;}
    .floorplan-area { order: 1; margin-bottom: 1rem; max-height: 45vh; flex-basis: auto !important; }
    #floorplan { max-height: 100%; }
    .mobile-zone-selector-container { display: block; }
  }
  
  
  @media (max-width: 992px) {
    .nav-links { display: none; }
    .hero-title { font-size: clamp(2.2rem, 6vw, 3rem); }
    .hero-subtitle { font-size: clamp(1rem, 3vw, 1.15rem); }
    .split-content {
      flex-direction: column;
    }
    .split-text,
    .mindmap-wrapper {
      flex: 1 1 100%;
    }
    /* Add some bottom margin between stacked items */
    .split-text {
      margin-bottom: 1.5rem;
    }
    .split-text > .section-header {
      text-align: center;
    }
    .toggle-card {
      padding: 0.75rem;
      width: 100%;
      height: 100%; /* you can shrink the height on mobile */
    }
  }
  
  @media (max-width: 768px) {
    .hero-section { padding: 140px 0 0; min-height: 600px; }
    .section-header h2 { font-size: clamp(1.8rem, 5vw, 2.2rem); }
    .section-header p { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .dashboard-container-embed { padding: 1rem; min-height: auto; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .chart-controls-overlay { position: static; flex-direction: column; background-color: transparent; padding: 0; box-shadow: none; margin-bottom: 0.5rem;}
    .chart-dropdown { max-width: none;}
    .footer-content { flex-direction: column; gap: 1rem; }
    .floorplan-area { max-height: 40vh; }
    #time-series-chart { min-height: 180px;}
    #sbs-pie-chart { min-height: 160px;}
    .summary-stats-bar { flex-wrap: wrap; gap: 0.75rem; }
    .feature-card {
      margin-bottom: 1rem;
    }
    .split-container {
      flex-direction: column;
    }
    .split-text,
    .split-visual {
      flex: 1 1 100%;
      max-width: 100%;
    }
    
  }
  
  @media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .cta-button.large { padding: 14px 18px; font-size: 0.95rem; }
    .hero-cta { flex-direction: column; gap: 1rem; align-items: center; }
    .dashboard-container-embed { padding: 0.75rem; }
    .metrics-grid { grid-template-columns: 1fr; }
    .metric-card { padding: 0.6rem; }
    .metric-value { font-size: 1.1rem; }
    .metric-label { font-size: 0.6rem;}
    .risk-level { font-size: 0.6rem; padding: 0.15rem 0.35rem;}
    .chart-title { font-size: 0.85rem;}
    #time-series-chart { min-height: 160px; }
    #sbs-pie-chart { min-height: 140px; }
    .floorplan-area { max-height: 35vh; }
    .floorplan-header-controls { flex-direction: column; align-items: flex-start; gap: 0.3rem;}
  }