*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --primary: #10b981;
  --primary-dark: #047857;
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #36d399 100%);
  --accent: #064e3b;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography */
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(16, 185, 129, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  --surface-offset: #f0f2f5; /* Added for Stage B context boxes */

  /* === THEME: LIGHT (Default) === */
  --bg-body: #f3fbf8;
  --bg-hero-gradient: linear-gradient(135deg, #10b981 0%, #36d399 100%);
  --bg-section-mint: #e6f7f1;
  --bg-section-grey: #f0f2f5;

  --bg-section: var(--bg-section-mint);
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;

  --text-primary: #1f2937;
  --text-heading: #064e3b;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;

  --border-light: rgba(16, 185, 129, 0.1);
  --border-medium: rgba(16, 185, 129, 0.2);

  /* Navbar */
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-border: transparent;
  --nav-link: #374151;
  --nav-link-hover: #10b981;

  /* Component Specific: Mockup Card (Light) */
  --mockup-bg: #e9fdf5;
  --mockup-header-bg: linear-gradient(135deg, #10b981, #34d399);
  --mockup-header-text: #ffffff;
  --mockup-body-bg: #e9fdf5;
  --mockup-text-label: #374151;
  --mockup-text-value: #111827;
  --mockup-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.2);
  --mockup-pill-bg: #a7f3d0;
  --mockup-pill-text: #064e3b;
  --mockup-footer-bg: rgba(16, 185, 129, 0.1);
  --mockup-footer-text: #4b5563;

  /* Component Specific: Waitlist (Light) */
  --waitlist-bg: #10b981;
  --waitlist-gradient: linear-gradient(135deg, #10b981 0%, #36d399 100%);
  --waitlist-text: #ffffff;
}

[data-theme="dark"] {
  /* === THEME: DARK === */
  --bg-body: #0a2f28;
  --bg-section: #164e3f;
  --bg-section-mint: #0f352e;
  --bg-section-grey: #11302a;

  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-alt: rgba(255, 255, 255, 0.03);

  --bg-hero-gradient: linear-gradient(135deg, #064e3b 0%, #065f46 100%);

  --text-primary: #f3f4f6;
  --text-heading: #ffffff;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);

  --surface-offset: rgba(255, 255, 255, 0.05);

  --nav-bg: rgba(10, 47, 40, 0.85);
  --nav-border: transparent;
  --nav-link: #e5e7eb;
  --nav-link-hover: #34d399;

  /* Component Specific: Mockup Card (Dark) */
  --mockup-bg: #164e3f;
  --mockup-header-bg: linear-gradient(135deg, #10b981, #059669);
  --mockup-header-text: #ffffff;
  --mockup-body-bg: #164e3f;
  --mockup-text-label: #e5e7eb;
  --mockup-text-value: #ffffff;
  --mockup-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  --mockup-pill-bg: #10b981;
  --mockup-pill-text: #064e3b;
  --mockup-footer-bg: rgba(16, 185, 129, 0.1);
  --mockup-footer-text: #9ca3af;
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Headings Upgrade */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  background-image: var(--primary-gradient);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .nav__logo {
  color: #ffffff;
}

.nav__logo:hover {
  opacity: 0.8;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  font-size: 1.1rem;
  color: #064e3b;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav__group {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav__links a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.2s ease;
}

.nav__links a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__links .nav__cta {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav__links .nav__cta:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav__cta {
  color: white;
}

[data-theme="dark"] .nav__cta:hover {
  color: white;
}

.theme-toggle {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  width: 50px;
  height: 50px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: rotate(20deg);
}

/* MOBILE MENU TOGGLE */
.nav__mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.5rem;
}

/* HERO */
/* .hero {
  width: 100%;
  background: var(--bg-hero-gradient);
  position: relative;
  padding: 0; 
}
.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero::before {
  display: none;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: #ffffff; 
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15); 
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  color: #e9fdf5; 
  margin-bottom: var(--space-xl);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.hero__bullets {
  list-style: none;
  margin-bottom: var(--space-xl);
  color: #e9fdf5; 
  font-size: var(--font-size-lg);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.hero__bullets li {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
} */
/* HERO */
.hero {
  width: 100%;
  background: var(--bg-hero-gradient);
  position: relative;
  padding: 0;
}
.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero::before {
  display: none;
}

.hero__content h1 {
  position: relative;
  z-index: 10; /* Ensure text stays on top of overlapping image */
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-xs); /* Reduced to bring subtitle closer */
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem); /* Larger */
  line-height: 1.3;
  color: #e9fdf5;
  margin-bottom: var(--space-xl);
  font-weight: 600; /* Bolder */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  max-width: 90%;
}
.icon-check {
  width: 1.5rem;
  height: 1.5rem;
  -webkit-mask: url("assets/check.svg") no-repeat center;
  mask: url("assets/check.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: #ffffff;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
  display: inline-block;
}

[data-theme="dark"] .icon-check {
  background-color: #34d399;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.btn {
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn--primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
}

.btn--primary:hover {
  background: #f0fdf9;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

[data-theme="dark"] .btn--primary {
  background: var(--primary);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  padding: 1rem 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* MOCKUP CARD & HERO LOGO - Dynamic Light/Dark */
.hero__image {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  perspective: 1200px;
  position: relative;
}

.hero__logo {
  width: 100%;
  height: auto;
  max-width: 550px;
  transform: translateY(0px) translateX(-65px); /* Pull closer to text (left) */
  filter: drop-shadow(10px 10px 6px rgba(6, 78, 59, 0.3));
  transition: transform 0.3s ease;
}

.hero__logo:hover {
  transform: translateY(0px) translateX(-65px) scale(1.02);
}

.mockup-card {
  width: 100%;
  max-width: 340px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--mockup-shadow);
  background: var(--mockup-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  transition: transform 0.5s ease, background-color 0.3s, box-shadow 0.3s;
  animation: fade-in-up 1s ease-out 0.5s backwards;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.mockup-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.mockup-card__header {
  padding: 1rem 1.3rem;
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-card__body {
  padding: 1.5rem 1.3rem;
  font-size: 0.95rem;
  background: var(--mockup-body-bg);
  transition: background-color 0.3s;
}

.result-row {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: none;
  color: var(--mockup-text-value);
}

.result-row .label {
  color: var(--mockup-text-label);
  font-weight: 500;
}

.result-row .value {
  color: var(--mockup-text-value);
  font-weight: 600;
}

.pill {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill--green {
  background-color: var(--mockup-pill-bg);
  color: var(--mockup-pill-text);
}

.mockup-card__footer {
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--mockup-footer-text);
  text-align: center;
  background: var(--mockup-footer-bg);
  border-top: none;
  font-weight: 400;
  transition: background-color 0.3s;
}

/* SECTIONS */
.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section--light {
  background: var(--bg-section-mint);
}

.section--alt {
  background: var(--bg-section-grey);
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* GRID & CARDS */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--bg-card-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  top: 0;
}

[data-theme="dark"] .card {
  backdrop-filter: blur(10px);
}

.card:hover {
  top: -6px;
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card h3 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .card h3 {
  color: var(--primary);
}

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

/* TESTIMONIAL */
.testimonial {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, white, var(--bg-section));
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .testimonial {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--primary);
}

.testimonial::before {
  content: '"';
  font-size: 6rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial p {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .testimonial p {
  color: #ffffff;
  font-style: italic;
}

.testimonial span {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: var(--font-size-base);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="dark"] .testimonial span {
  color: var(--text-tertiary);
}

/* WAITLIST - Dynamic Light/Dark */
.section--accent {
  background: var(--waitlist-bg);
  background-image: var(--waitlist-gradient);
  color: var(--waitlist-text);
  margin: var(--space-2xl) auto;
  max-width: 1100px;
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.4);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.section--accent::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.section--accent h2 {
  color: var(--waitlist-text);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-4xl);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.section--accent p {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  font-size: var(--font-size-xl);
  color: var(--waitlist-text);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.waitlist__form {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  max-width: 600px;
  margin: 0 auto var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.waitlist__form input[type="email"] {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--waitlist-text);
  min-width: 280px;
  font-size: var(--font-size-base);
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
  backdrop-filter: blur(5px);
}

.waitlist__form input[type="email"]::placeholder {
  color: var(--waitlist-text);
  opacity: 0.7;
}

.waitlist__form input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.waitlist__form button {
  background: white;
  color: var(--accent);
  border: none;
  padding: var(--space-md) var(--space-xl);
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  font-size: var(--font-size-base);
  font-family: inherit;
}

.waitlist__form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #f0fdf4;
}

.waitlist__note {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--waitlist-text);
  opacity: 0.8;
}

/* FOOTER */
.footer {
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border-light);
  background: var(--bg-body);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.footer p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* RESPONSIVE */

/* Tablet & Mobile Menu Trigger */
@media (max-width: 900px) {
  .nav__mobile-toggle {
    display: block;
  }

  /* Hide Desktop Links */
  .nav__links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-gradient);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 90;
    box-shadow: var(--shadow-md);
  }

  .nav__links--active {
    transform: translateY(0);
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__bullets {
    display: inline-block;
    text-align: left;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: -1;
    margin-bottom: 0px; /* pull text up into image area */
    display: flex;
    justify-content: center;
  }

  .hero__logo {
    max-width: 320px;
    transform: translateY(0px); /* Reset defaults */
  }

  .hero__logo:hover {
    transform: translateY(0px); /* Disable hover effect on mobile */
  }

  /* Waitlist Responsive Fix (Tablet) */
  .section--accent {
    margin: var(--space-xl) var(--space-md);
    padding: var(--space-2xl) var(--space-md);
    border-radius: var(--radius-md);
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }

  .hero__content h1 {
    font-size: 2.5rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .mockup-card {
    border-radius: 1rem;
    max-width: 100%;
  }

  .section--accent {
    margin: var(--space-lg) var(--space-sm);
    padding: var(--space-xl) var(--space-md);
  }

  .footer__container {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .waitlist__form {
    flex-direction: column;
    width: 100%;
  }

  .waitlist__form input[type="email"],
  .waitlist__form button {
    width: 100%;
  }

  .testimonial {
    padding: var(--space-xl) var(--space-md);
  }

  .testimonial p {
    font-size: var(--font-size-xl);
  }
}
/* --- APP UI STYLES (Part 3 & 4) --- */

.app-body {
  background-color: #f3fbf8;
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.app-section {
  width: 100%;
}

.app-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-light);
}

.app-card__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.app-card__header h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.app-card__header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.app-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #f9fafb;
  margin-top: auto;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

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

.divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0.5rem 0;
}

.btn {
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn--primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
}

.btn--primary:hover {
  background: #f0fdf9;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

[data-theme="dark"] .btn--primary {
  background: var(--primary);
  color: white;
}

.btn--full {
  width: 100%;
  margin-top: 1rem;
}

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

.btn--secondary:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

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

.btn--outline:hover {
  background: var(--bg-section-mint);
  color: var(--primary-dark);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-box {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #f1f5f9;
}

.result-box.highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.result-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.result-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.traffic-light-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.traffic-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.traffic-light--green {
  background: #d1fae5;
  color: #065f46;
}

.traffic-light--amber {
  background: #fef3c7;
  color: #92400e;
}

.traffic-light--red {
  background: #fee2e2;
  color: #991b1b;
}

.summary-box {
  background: #f0fdf4;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
}

.summary-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.summary-box p {
  font-size: 0.9rem;
  margin: 0;
}

.broker-cta {
  background: #f0fdf4;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.broker-cta p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Decision Fork Title */
.decision-fork {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.decision-fork__title {
  font-size: 1.1rem;
  color: var(--text-heading);
  font-weight: 600;
  margin: 0;
}

[data-theme="dark"] .decision-fork__title {
  color: var(--text-primary);
}

/* Architect CTA Section */
.architect-cta {
  background: #f0fdf4;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.architect-cta h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.architect-cta p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.architect-logo {
  margin-bottom: 1rem;
}

.architect-logo img {
  max-width: 150px;
  height: auto;
}

.architect-logo-dark {
  display: none;
}

.action-row {
  display: flex;
  gap: 1rem;
}

.action-row .btn {
  flex: 1;
}

[data-theme="dark"] .app-body {
  background-color: var(--bg-body);
}

[data-theme="dark"] .app-card {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .app-card__header h2 {
  color: var(--text-heading);
}

[data-theme="dark"] .form-group label {
  color: var(--text-secondary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .form-group select option {
  background-color: #11302a; /* Match bg-section-grey dark variant */
  color: #f3f4f6;
}

[data-theme="dark"] .divider {
  border-color: var(--border-light);
}

[data-theme="dark"] .traffic-light--green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

[data-theme="dark"] .traffic-light--amber {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .traffic-light--red {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

[data-theme="dark"] .result-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-light);
}

[data-theme="dark"] .result-box.highlight {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .result-value {
  color: var(--primary);
}

[data-theme="dark"] .summary-box {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--primary);
}

[data-theme="dark"] .summary-box h3 {
  color: #34d399;
}

[data-theme="dark"] .summary-box p {
  color: var(--text-secondary);
}

[data-theme="dark"] .broker-cta {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .broker-cta p {
  color: var(--text-secondary);
}

/* Architect CTA Dark Mode */
[data-theme="dark"] .architect-cta {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .architect-cta h3 {
  color: #34d399;
}

[data-theme="dark"] .architect-cta p {
  color: var(--text-secondary);
}

[data-theme="dark"] .architect-logo-light {
  display: none;
}

[data-theme="dark"] .architect-logo-dark {
  display: inline-block;
}

[data-theme="dark"] .btn--outline {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .btn--outline:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #ffffff;
}

[data-theme="dark"] .btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

[data-theme="dark"] .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

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

  .footer__container {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* VALIDATION STYLES */
.input-error {
  border-color: #ef4444 !important; /* Red-500 */
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

[data-theme="dark"] .input-error {
  border-color: #f87171 !important; /* Red-400 */
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1) !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
  animation: slide-down 0.2s ease-out;
}

[data-theme="dark"] .error-message {
  color: #f87171;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dynamic Result Box Highlights */
.result-box.highlight--green {
  background-color: #d1fae5;
  border-color: #10b981;
}
.result-box.highlight--green .result-value {
  color: #065f46;
}

.result-box.highlight--amber {
  background-color: #fef3c7;
  border-color: #f59e0b;
}
.result-box.highlight--amber .result-value {
  color: #92400e;
}

.result-box.highlight--red {
  background-color: #fee2e2;
  border-color: #ef4444;
}
.result-box.highlight--red .result-value {
  color: #991b1b;
}

/* Dark Mode Overrides */
[data-theme="dark"] .result-box.highlight--green {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
}
[data-theme="dark"] .result-box.highlight--green .result-value {
  color: #34d399;
}

[data-theme="dark"] .result-box.highlight--amber {
  background-color: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
}
[data-theme="dark"] .result-box.highlight--amber .result-value {
  color: #fbbf24;
}

[data-theme="dark"] .result-box.highlight--red {
  background-color: rgba(248, 113, 113, 0.2);
  border-color: #f87171;
}
[data-theme="dark"] .result-box.highlight--red .result-value {
  color: #f87171;
}

/* ============================================================================= */
/* MILESTONE 4: DECISION ENGINE STYLES */
/* ============================================================================= */

/* --- STRATEGY CARDS --- */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.strategy-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.strategy-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
}

.strat-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.strat-info {
  flex-grow: 1;
}

.strat-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.strat-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.info-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-section-grey);
  color: var(--text-tertiary);
  text-align: center;
  line-height: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: help;
}

.strategy-card:hover .info-icon {
  background: var(--primary);
  color: white;
}

.strat-help {
  border-style: dashed;
  border-color: var(--primary);
  background: var(--bg-section-mint);
}

[data-theme="dark"] .strat-help {
  background: rgba(16, 185, 129, 0.1);
}

/* --- PROGRESS BAR --- */
.progress-container {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin-left: 2rem;
  border-radius: 2px;
  overflow: hidden;
  flex-grow: 1;
  max-width: 300px;
}

.progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* --- WIZARD STYLES --- */
.wizard-step {
  animation: fadeIn 0.4s ease;
  text-align: center;
  padding: 1rem 0;
}

.wizard-step h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.wizard-step .input-help-below {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.market-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.5s ease;
}

.market-status--loading {
  color: var(--text-secondary);
  font-style: italic;
}

.market-status--success {
  color: var(--primary);
  font-weight: 500;
}

.market-status--timeout {
  color: var(--text-tertiary);
}

.app-input {
  width: 100%;
  font-size: 1.2rem;
  padding: 1rem;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  transition: all 0.2s;
  background: #f9fafb;
}

.app-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .app-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  color: var(--text-primary);
}

[data-theme="dark"] .app-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

select.app-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

/* --- QUIZ STYLES --- */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

#quiz-container h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
  text-align: center;
}

#quiz-container p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* --- DECISION RESULT STYLES --- */
.decision-header {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.decision-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.decision-header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.diagnostics-list {
  list-style-type: none;
  padding: 0;
  margin: 1rem 0;
}

.diagnostics-list li {
  background: var(--bg-section-grey);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  position: relative;
  padding-left: 2rem;
}

.diagnostics-list li::before {
  content: "•";
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

[data-theme="dark"] .diagnostics-list li {
  background: rgba(255, 255, 255, 0.05);
}

#diagnostics-area h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.reassurance {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 1rem;
}

/* --- UTILITY CLASSES --- */
.fade-in {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .strategy-card {
    padding: 1.25rem;
  }

  .strat-icon {
    font-size: 2rem;
  }

  .progress-container {
    margin-left: 1rem;
    max-width: 200px;
  }

  .wizard-step h2 {
    font-size: 1.25rem;
  }

  .app-input {
    font-size: 1rem;
  }

  .decision-header {
    padding: 2rem 1.5rem;
  }

  .decision-icon {
    font-size: 2.5rem;
  }

  .decision-header h2 {
    font-size: 1.5rem;
  }
}

/* =============================================================================
   MILESTONE 5: LIVE MARKET TOOL STYLES
   ============================================================================= */

/* Info Tooltip */
.info-tooltip {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: var(--grey-300);
  color: var(--grey-700);
  border-radius: 50%;
  font-size: 12px;
  cursor: help;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.deal-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.375rem;
  font-weight: 600;
}

/* Human Reasons Section */
.human-reasons {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary);
}

.human-reasons h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reason-item {
  padding: 1rem;
  background: white;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .reason-item {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Sensitivity Analysis */
.sensitivity-toggle-container {
  margin: 2rem 0 1rem;
}

.sensitivity-controls {
  margin: 1.5rem 0;
  padding: 2rem;
  background: var(--bg-card-alt);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
}

.sensitivity-controls h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.sensitivity-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.variance-value {
  color: var(--primary);
  font-weight: 600;
}

.slider-group input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.2s;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Scenario Comparison Table */
.scenario-comparison {
  margin: 2rem 0;
}

.scenario-comparison h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.scenario-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.scenario-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .scenario-table {
  background: rgba(255, 255, 255, 0.03);
}

.scenario-table th,
.scenario-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .scenario-table th,
[data-theme="dark"] .scenario-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scenario-table th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

[data-theme="dark"] .scenario-table th {
  background: rgba(255, 255, 255, 0.05);
}

.scenario-table .worst-case {
  background: rgba(239, 68, 68, 0.05);
}

.scenario-table .expected-case {
  background: rgba(251, 191, 36, 0.05);
}

.scenario-table .best-case {
  background: rgba(34, 197, 94, 0.05);
}

/* Deals List */
.deals-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.deal-card {
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
}

[data-theme="dark"] .deal-card {
  background: rgba(255, 255, 255, 0.03);
}

.deal-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.deal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.deal-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.deal-card__strategy {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.deal-card__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.deal-metric {
  text-align: center;
}

.deal-metric__label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deal-metric__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 0.25rem;
}

.deal-card__delete {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  transition: color 0.2s;
}

.deal-card__delete:hover {
  color: #ef4444;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

.empty-state p {
  margin-bottom: 0.5rem;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.comparison-card {
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: white;
  transition: all 0.2s;
}

[data-theme="dark"] .comparison-card {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-card.strongest {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.comparison-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.comparison-card__strategy {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.ranking-explanation {
  padding: 2rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 0.75rem;
  border-left: 3px solid var(--primary);
  margin-bottom: 2rem;
}

.ranking-explanation h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.ranking-explanation p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease-out;
}

[data-theme="dark"] .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.modal-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  flex: 1;
}

/* Responsive Adjustments for New Components */
@media (max-width: 768px) {
  .sensitivity-controls {
    padding: 1.5rem;
  }

  .scenario-table {
    font-size: 0.875rem;
  }

  .scenario-table th,
  .scenario-table td {
    padding: 0.75rem 0.5rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   MILESTONE 6: CALM MODE & UX ENHANCEMENTS
   ========================================================================== */

/* TAP-FIRST BUTTONS */
.btn,
.app-input,
.strategy-card {
  min-height: 48px; /* Ensure 48px touch target */
}

/* CONFIDENCE MESSAGING */
.confidence-message {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background-color: var(--bg-section-mint);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  animation: fadeIn 0.5s ease-in-out;
  font-size: var(--font-size-base);
  line-height: 1.5;
}

[data-theme="dark"] .confidence-message {
  background-color: rgba(16, 185, 129, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PHOTO UPLOAD GRID */
.photo-upload-container {
  margin-top: var(--space-lg);
}

.photo-input-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-medium);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  background: var(--bg-card-alt);
}

.photo-input-label:hover {
  border-color: var(--primary);
  background: var(--bg-section-mint);
}

.photo-input-label input[type="file"] {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.photo-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* CALM WIZARD FLOW */
.wizard-step h2 {
  font-size: 1.5rem; /* Slightly smaller for calm feel */
  margin-bottom: var(--space-md);
  color: var(--text-heading);
}

.help-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* DRAFT / RESUME BANNER */
.resume-banner {
  background-color: var(--bg-section-mint);
  border: 1px solid var(--primary);
  color: var(--text-heading);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* COMPARISON MATRIX (Strict Metrics) */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.comparison-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.comparison-metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.metric-label {
  font-weight: 500;
  color: var(--text-secondary);
}
.metric-value {
  font-weight: 600;
  color: var(--text-heading);
}

/* VOICE INPUT */
.voice-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-voice-input {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s;
}

.btn-voice-input:hover {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.btn-voice-input.listening {
  color: #ef4444; /* Red when listening */
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* NOT SURE BUTTON */
.btn-not-sure {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* VIEWING MODE TOGGLE */
.viewing-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.toggle-label {
  font-weight: 500;
  color: var(--text-secondary);
}

/* PHOTO UPLOAD STYLES (Milestone 6) */
.photo-upload-container {
  margin-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.photo-input-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.photo-input-label:hover {
  background: #e5e7eb;
  color: var(--text-primary);
}

.photo-input-label input {
  display: none;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.photo-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.btn-delete-photo {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444; /* Red */
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.btn-delete-photo:hover {
  transform: scale(1.1);
  background: #dc2626;
}

/* ADD PHOTO BUTTON (Milestone 6) */
.photo-upload-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.photo-input-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px; /* Pill shape for premium feel */
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  border: 1px solid #d1d5db;
  width: fit-content;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.photo-input-label:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.photo-input-label:active {
  transform: translateY(0);
}

.photo-input-label input[type="file"] {
  display: none;
}

/* Dark Mode Overrides */
[data-theme="dark"] .photo-input-label {
  background: rgba(255, 255, 255, 0.05); /* Glassy look */
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .photo-input-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.add-photo-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor; /* Adapts to text color */
  -webkit-mask: url("assets/image.png") no-repeat center / contain;
  mask: url("assets/image.png") no-repeat center / contain;
  flex-shrink: 0;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photo-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.photo-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.btn-delete-photo {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.btn-delete-photo:hover {
  transform: scale(1.1);
  background: #dc2626;
}

/* TRAFFIC LIGHT STYLES */
.traffic-light-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.traffic-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.traffic-light--green {
  background-color: #d1fae5;
  color: #065f46;
  border: 2px solid #34d399;
}

.traffic-light--amber {
  background-color: #fef3c7;
  color: #92400e;
  border: 2px solid #f59e0b;
}

.traffic-light--red {
  background-color: #fee2e2;
  color: #991b1b;
  border: 2px solid #f87171;
}

/* Sensitivity/Exploratory Sliders */
.sensitivity-controls {
  background: var(--bg-card-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  border: 1px solid var(--border-light);
}

.slider-group {
  margin-bottom: 1.25rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.variance-label {
  font-weight: 600;
  color: var(--primary);
}

input[type="range"] {
  width: 100%;
  margin: 5px 0;
  background-color: transparent;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(16, 185, 129, 0.2);
  border: 0;
  border-radius: 25px;
  width: 100%;
  height: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  margin-top: -7px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] input[type="range"]::-webkit-slider-thumb {
  border-color: #1f2937;
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  flex: 1;
}

/* Dark Mode - Modal with solid colors */
[data-theme="dark"] .modal-content {
  background: #1a2e2a;
  border: 1px solid #2d4a44;
}

[data-theme="dark"] .modal-content h3 {
  color: #ffffff;
}

[data-theme="dark"] .modal-content p {
  color: #9ca3af;
}

/* ==========================================================================
   AUTH SCREEN STYLES
   ========================================================================== */

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-tab:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .auth-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.02);
}

.auth-form h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-form p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.form-error {
  background-color: #fee2e2;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .form-error {
  background-color: rgba(220, 38, 38, 0.1);
  color: #f87171;
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Auth Specific Modal tweaks */
.auth-modal-content {
  max-width: 400px;
}

/* ========================================= */
/* ENTRY GRID & CARDS (Milestone 10 Polish)  */
/* ========================================= */

.entry-grid {
  display: grid;
  gap: var(--space-md);
  /* Desktop: 3 columns default */
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .entry-grid {
    grid-template-columns: 1fr;
  }
}

.entry-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center; /* Center text */
  text-align: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%; /* Equal height */
}

.entry-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.entry-card.selected {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05); /* Slight tint */
  box-shadow: 0 0 0 2px var(--primary);
}

.entry-card h3 {
  font-size: var(--font-size-lg);
  color: var(--text-heading);
  margin: 0;
  font-weight: 600;
}

.entry-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .entry-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .entry-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
}

/* ========================================= */
/* ENTRY INTERACTION STYLES (Added)          */
/* ========================================= */

.entry-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entry-input-container {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
  animation: slide-down 0.2s ease-out;
}

.photo-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
}

.photo-thumbnail-mini {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

/* Hide card content when input is open to reduce clutter? 
   No, keep it visible as context, but maybe dim strictly if needed. 
   For now, simple expansion is good. */

/* Utility for Copy Feedback */
.btn--success {
  background-color: var(--color-success, #22c55e) !important;
  border-color: var(--color-success, #22c55e) !important;
  color: white !important;
}

/* ==========================================================================
   AUCTION TIP STYLES
   ========================================================================== */

.not-sure-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-auction-tip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

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

.btn-flip-tip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

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

.auction-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auction-tips-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  line-height: 1.5;
}

.auction-tips-list li:last-child {
  border-bottom: none;
}

.auction-tips-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--primary);
  font-weight: bold;
}

.tip-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Upgrade Value Props */
.upgrade-value-props {
  background: var(--bg-section-mint);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.upgrade-heading {
  margin: 0 0 0.75rem 0;
  color: var(--text-heading);
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-list li {
  padding: 0.4rem 0;
  color: var(--text-primary);
  line-height: 1.4;
}

.upgrade-reassurance {
  margin: 0.75rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* AI Estimate Panel (V2) */
.ai-estimate-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s ease-out;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.ai-icon {
  font-size: 1.2rem;
}

.ai-title {
  font-weight: 600;
  color: var(--text-heading);
  flex: 1;
}

.ai-confidence {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
}

/* Confidence Colors (using tailored defaults if Tailwind classes fail) */
.ai-confidence.text-green-600 {
  color: #059669;
  background: #ecfdf5;
}
.ai-confidence.text-amber-600 {
  color: #d97706;
  background: #fffbeb;
}
.ai-confidence.text-gray-600 {
  color: #4b5563;
  background: #f3f4f6;
}

.ai-panel-body {
  margin-bottom: 1rem;
}

.ai-main-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ai-main-value .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.ai-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.ai-description {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin: 0.5rem 0 0 0;
}

.ai-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================================================
   SQM INPUT (Three-Path Input for build_size)
   ============================================================================= */

.sqm-input-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sqm-option {
  padding: 0;
}

.sqm-option--unsure {
  background: var(--surface-offset);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.sqm-option--upload {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.btn--active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

.plan-doc-item {
  transition: background 0.2s ease;
}

.plan-doc-item:hover {
  background: var(--surface-hover);
}

/* Assumed figures warning in results */
.assumed-figures-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.assumed-figures-warning strong {
  color: rgb(245, 158, 11);
}

/* =============================================================================
   ASK SARAH - Floating Action Button & Chat Modal
   ============================================================================= */

/* Floating Action Button */
.fab-ask-sarah {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.fab-ask-sarah:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.fab-ask-sarah:active {
  transform: translateY(0) scale(0.98);
}

.fab-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Modal Container */
.ask-sarah-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  pointer-events: none;
}

.ask-sarah-modal.hidden {
  display: none;
}

.ask-sarah-modal.visible {
  pointer-events: auto;
}

.ask-sarah-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ask-sarah-modal.visible .ask-sarah-overlay {
  opacity: 1;
}

/* Chat Panel */
.ask-sarah-panel {
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 100px);
  background: var(--bg-card, #ffffff);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.ask-sarah-modal.visible .ask-sarah-panel {
  transform: translateY(0);
  opacity: 1;
}

/* Header */
.sarah-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card, #ffffff);
  flex-shrink: 0;
}

.sarah-header-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.sarah-header-info small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.sarah-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.sarah-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="dark"] .sarah-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Messages Area */
.sarah-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-section-grey, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message Bubbles */
.sarah-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: messageSlide 0.2s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sarah-message--sarah {
  background: var(--bg-card, white);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--text-primary);
}

.sarah-message--user {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Loading dots */
.sarah-message--loading {
  padding: 12px 20px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  animation: typingBounce 1.4s infinite ease-in-out both;
  font-size: 1.2rem;
  line-height: 1;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Chips Area */
.sarah-chips {
  padding: 12px 16px;
  background: var(--bg-card, white);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sarah-chip {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: left;
  line-height: 1.3;
}

.sarah-chip:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary);
}

.sarah-chip--category {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.sarah-chip--category:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.sarah-chip--back {
  background: transparent;
  color: var(--text-tertiary);
  border-color: var(--border-light);
}

.sarah-chip--back:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Input Area */
.sarah-input-area {
  padding: 12px 16px;
  background: var(--bg-card, white);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sarah-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  font-size: 0.9rem;
  background: var(--bg-card-alt, #f8fafc);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
}

.sarah-input:focus {
  outline: none;
  border-color: var(--primary);
}

.sarah-input::placeholder {
  color: var(--text-tertiary);
}

.sarah-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sarah-send-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.sarah-send-btn:active {
  transform: scale(0.95);
}

/* Footer */
.sarah-footer {
  padding: 12px 16px;
  background: var(--bg-section-grey, #f8fafc);
  border-top: 1px solid var(--border-light);
  text-align: center;
  flex-shrink: 0;
}

.sarah-disclaimer {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0 0 6px 0;
}

.sarah-escalation {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sarah-escalation:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Markdown formatting inside messages */
.sarah-message ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style: disc;
}

.sarah-message li {
  margin: 4px 0;
  line-height: 1.4;
}

.sarah-message strong {
  font-weight: 600;
}

.sarah-message em {
  font-style: italic;
}

/* Dark Mode - Solid colors, no transparency */
[data-theme="dark"] .ask-sarah-panel {
  background: #1a2e2a;
  border-color: #2d4a44;
}

[data-theme="dark"] .sarah-header {
  background: #1a2e2a;
  border-color: #2d4a44;
}

[data-theme="dark"] .sarah-messages {
  background: #0f1f1c;
}

[data-theme="dark"] .sarah-message--sarah {
  background: #243d38;
  border-color: #2d4a44;
}

[data-theme="dark"] .sarah-chips {
  background: #1a2e2a;
  border-color: #2d4a44;
}

[data-theme="dark"] .sarah-input-area {
  background: #1a2e2a;
  border-color: #2d4a44;
}

[data-theme="dark"] .sarah-input {
  background: #0f1f1c;
  border-color: #2d4a44;
}

[data-theme="dark"] .sarah-footer {
  background: #0f1f1c;
  border-color: #2d4a44;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .ask-sarah-modal {
    padding: 10px;
    align-items: stretch;
    justify-content: stretch;
  }

  .ask-sarah-panel {
    width: 100%;
    max-width: none;
    height: calc(100vh - 80px);
    max-height: none;
    border-radius: 16px 16px 0 0;
  }

  .fab-ask-sarah {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .sarah-chips {
    max-height: 120px;
  }
}
