/* ==========================================================================
   MyExitNumber Design System
   Professional business valuation SaaS — trust, clarity, premium feel
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary palette — deep navy */
  --color-primary-900: #0a1020;
  --color-primary-800: #101c32;
  --color-primary-700: #1B2A4A;
  --color-primary-600: #223358;
  --color-primary-500: #2A3D6B;
  --color-primary-400: #415A87;
  --color-primary-300: #647DA5;
  --color-primary-200: #91A5C8;
  --color-primary-100: #BECDE1;
  --color-primary-50:  #E6ECF5;

  /* Accent — teal for interactive elements & CTAs */
  --color-accent-700: #1A6B5F;
  --color-accent-600: #228478;
  --color-accent-500: #2A9D8F;
  --color-accent-400: #40B5A6;
  --color-accent-300: #6ECBC0;
  --color-accent-200: #A3DED7;
  --color-accent-100: #D0F0EC;
  --color-accent-50:  #ECF9F7;

  /* Warm accent — gold for premium/upgrade CTAs */
  --color-gold-600: #a16207;
  --color-gold-500: #ca8a04;
  --color-gold-400: #eab308;
  --color-gold-300: #fbbf24;
  --color-gold-200: #fcd34d;
  --color-gold-100: #fef3c7;

  /* Neutrals — cool slate for readability */
  --color-neutral-950: #0f172a;
  --color-neutral-900: #1e293b;
  --color-neutral-800: #334155;
  --color-neutral-700: #475569;
  --color-neutral-600: #64748b;
  --color-neutral-500: #78879d;
  --color-neutral-400: #94a3b8;
  --color-neutral-300: #cbd5e1;
  --color-neutral-200: #e2e8f0;
  --color-neutral-100: #f1f5f9;
  --color-neutral-50:  #f7f8fa;
  --color-white:       #ffffff;

  /* Semantic colors */
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #ca8a04;
  --color-warning-bg: #fefce8;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;
  --color-info: #2563eb;
  --color-info-bg: #eff6ff;

  /* Typography — Outfit for headings, Plus Jakarta Sans for body */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', 'Courier New', monospace;

  /* Type scale (1.25 ratio) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing scale (4px base) */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Border radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --header-height: 64px;
}


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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-neutral-800);
  background-color: var(--color-neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accent-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-600);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-700);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }
h5 { font-size: var(--text-lg);  }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
}

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

ul, ol {
  padding-left: var(--space-6);
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid var(--color-neutral-200);
  margin: var(--space-8) 0;
}

::selection {
  background-color: var(--color-primary-100);
  color: var(--color-primary-900);
}


/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.main-content {
  flex: 1;
  padding: var(--space-10) 0;
}

.page-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-neutral-500);
  margin-bottom: var(--space-2);
}

body.blog-post-page .main-content {
  padding-top: calc(var(--space-10) * 0.7);
}

.page-breadcrumbs a {
  color: var(--color-primary-600);
  text-decoration: none;
}

.page-breadcrumbs a:hover {
  color: var(--color-accent-700);
  text-decoration: underline;
}

.page-breadcrumbs__sep {
  color: var(--color-neutral-300);
}

.section {
  padding: var(--space-16) 0;
}

.section--alt {
  background-color: var(--color-white);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Flex utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }


/* --------------------------------------------------------------------------
   Skip-to-content (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-500);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}


/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-neutral-100);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary-800);
  text-decoration: none;
}

.logo svg {
  width: 32px;
  height: 32px;
}
.logo-img {
  height: 40px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-main a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-primary-600);
  background-color: var(--color-primary-50);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-neutral-700);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile auth links (hidden on desktop, shown inside hamburger menu) */
.nav-mobile-auth {
  display: none;
}


/* --------------------------------------------------------------------------
   Nav Dropdown (Admin)
   -------------------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger.active {
  color: var(--color-primary-600);
  background-color: var(--color-primary-50);
}

.nav-dropdown__trigger svg {
  flex-shrink: 0;
}

.nav-dropdown__chevron {
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 200;
  animation: fadeInUp 0.15s ease;
}

.nav-dropdown.open .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown__item:hover {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  text-decoration: none;
}

.nav-dropdown__item svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.nav-dropdown__item:hover svg {
  opacity: 0.8;
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--color-neutral-100);
  margin: var(--space-2) var(--space-3);
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary-900);
  color: var(--color-neutral-300);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  max-width: 320px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-400);
  outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — teal */
.btn-primary {
  background-color: var(--color-accent-600);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-700);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Secondary — navy outline */
.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary-700);
  border-color: var(--color-primary-700);
}

.btn-secondary:hover {
  background-color: var(--color-primary-50);
  border-color: var(--color-primary-600);
  color: var(--color-primary-600);
}

/* Accent (for CTAs — gold/premium) */
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600));
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--color-accent-400), var(--color-accent-500));
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Premium (gold gradient for purchase CTA) */
.btn-premium {
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
}

.btn-premium:hover {
  background: linear-gradient(135deg, var(--color-gold-400), var(--color-gold-500));
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.4);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--color-primary-500);
}

.btn-ghost:hover {
  background-color: var(--color-primary-50);
  color: var(--color-primary-600);
}

/* Danger */
.btn-danger {
  background-color: var(--color-error);
  color: var(--color-white);
}

.btn-danger:hover {
  background-color: #b91c1c;
  color: var(--color-white);
}

/* Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

/* Full width */
.btn-block {
  width: 100%;
}

/* Icon inside button */
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-lg svg,
.btn-xl svg {
  width: 20px;
  height: 20px;
}


/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-neutral-800);
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-400);
  box-shadow: 0 0 0 3px rgba(30, 85, 140, 0.1);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--color-accent-400);
  outline-offset: 2px;
}

.form-input::placeholder {
  color: var(--color-neutral-400);
}

.form-input.is-error,
.form-select.is-error {
  border-color: var(--color-error);
}

.form-input.is-error:focus,
.form-select.is-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e7588' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

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

/* Currency input wrapper */
.input-currency {
  position: relative;
}

.input-currency::before {
  content: '$';
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-neutral-500);
  font-size: var(--text-base);
  pointer-events: none;
  z-index: 1;
}

.input-currency .form-input {
  padding-left: var(--space-8);
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent-600);
  cursor: pointer;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
}

/* Inline form groups */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.form-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Form section divider */
.form-section {
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-neutral-100);
}

.form-section-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
}

.form-section-desc {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}


/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  box-shadow: none;
}

.card--bordered {
  border: 1px solid var(--color-neutral-200);
}

.card--highlight {
  border-color: var(--color-primary-200);
  box-shadow: 0 0 0 1px var(--color-primary-100);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-neutral-100);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-900);
}

.card-body {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-100);
}


/* --------------------------------------------------------------------------
   Valuation Results Card (special)
   -------------------------------------------------------------------------- */
.valuation-result {
  background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary-600));
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.valuation-result__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: var(--space-2);
}

.valuation-result__range {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.valuation-result__range span {
  opacity: 0.6;
  font-weight: var(--weight-normal);
}

.valuation-result__subtitle {
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* Method cards */
.method-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.method-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.method-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-card__icon--sde  { background-color: var(--color-primary-50);  color: var(--color-primary-500); }
.method-card__icon--ebitda { background-color: var(--color-accent-50); color: var(--color-accent-600); }
.method-card__icon--revenue { background-color: var(--color-gold-100); color: var(--color-gold-600); }

.method-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.method-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
}

.method-card__range {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}

.method-card__desc {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-neutral-100);
}


/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-600);
  background-color: var(--color-neutral-50);
  border-bottom: 1px solid var(--color-neutral-200);
  white-space: nowrap;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-neutral-100);
  color: var(--color-neutral-700);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: var(--color-neutral-50);
}

.table--striped tbody tr:nth-child(even) {
  background-color: var(--color-neutral-50);
}

.table td.numeric,
.table th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table td.currency {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-medium);
}


/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1.5;
  white-space: nowrap;
}

.badge--primary {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
}

.badge--success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.badge--warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge--danger {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

.badge--neutral {
  background-color: var(--color-neutral-100);
  color: var(--color-neutral-600);
}

.badge--premium {
  background: linear-gradient(135deg, var(--color-gold-100), var(--color-gold-200));
  color: var(--color-gold-600);
}


/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border: 1px solid transparent;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert--info {
  background-color: var(--color-info-bg);
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert--success {
  background-color: var(--color-success-bg);
  border-color: #bbf7d0;
  color: #166534;
}

.alert--warning {
  background-color: var(--color-warning-bg);
  border-color: #fef08a;
  color: #854d0e;
}

.alert--error {
  background-color: var(--color-error-bg);
  border-color: #fecaca;
  color: #991b1b;
}

.alert-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.alert-dismiss:hover {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   Tooltips
   -------------------------------------------------------------------------- */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  cursor: help;
}

.tooltip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-neutral-200);
  color: var(--color-neutral-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-neutral-900);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  white-space: normal;
  width: max-content;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 50;
  box-shadow: var(--shadow-lg);
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-neutral-900);
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content {
  opacity: 1;
  visibility: visible;
}


/* --------------------------------------------------------------------------
   Searchable Industry Dropdown
   -------------------------------------------------------------------------- */
.industry-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-1);
}

.industry-option {
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: background var(--transition-fast);
}

.industry-option:hover,
.industry-option.active {
  background: var(--color-primary-50);
}

.industry-option.selected {
  color: var(--color-primary-600);
  font-weight: var(--weight-semibold);
}

.industry-dropdown__empty {
  padding: var(--space-2) var(--space-3);
  color: var(--color-neutral-400);
  font-size: var(--text-sm);
}

.industry-clear {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-neutral-400);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  display: none;
}

.industry-clear:hover {
  color: var(--color-neutral-600);
}


/* --------------------------------------------------------------------------
   Password Strength Meter
   -------------------------------------------------------------------------- */
.pw-strength {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}

.pw-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-neutral-200);
  transition: background var(--transition-fast);
}

.strength-bar {
  transition: background var(--transition-fast);
}


/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, var(--color-primary-500) 100%);
  color: var(--color-white);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  color: var(--color-white);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: left;
}

.hero-stat__number {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

.hero-stat__label {
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* Hero Video */
.hero-video__container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  background: #000;
}

.hero-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.hero-video__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video__container--playing {
  overflow: visible;
}

.hero-video__container video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-lg);
}


/* --------------------------------------------------------------------------
   Calculator Form
   -------------------------------------------------------------------------- */
.calculator-section {
  background-color: var(--color-white);
  padding: var(--space-16) 0;
}

.calculator-form {
  max-width: 800px;
  margin: 0 auto;
}

.calculator-form .card {
  padding: var(--space-8);
}

/* Progressive disclosure */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

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

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border: 2px solid var(--color-neutral-200);
  color: var(--color-neutral-400);
  background: var(--color-white);
  transition: all var(--transition-normal);
}

.step-dot.active {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: var(--color-white);
}

.step-dot.completed {
  border-color: var(--color-accent-500);
  background: var(--color-accent-500);
  color: var(--color-white);
}

.step-line {
  width: 40px;
  height: 2px;
  background-color: var(--color-neutral-200);
  transition: background-color var(--transition-normal);
}

.step-line.completed {
  background-color: var(--color-accent-500);
}


/* --------------------------------------------------------------------------
   Scenario Modeling
   -------------------------------------------------------------------------- */
.scenario-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.scenario-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.slider-group {
  margin-bottom: var(--space-2);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.slider-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
}

.slider-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-600);
  font-variant-numeric: tabular-nums;
}

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-neutral-200);
  outline: none;
  transition: background var(--transition-fast);
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-500);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
  background: var(--color-primary-600);
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-500);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slider-range {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  margin-top: var(--space-1);
}

/* Delta display */
.delta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.delta--positive {
  color: var(--color-success);
  background-color: var(--color-success-bg);
}

.delta--negative {
  color: var(--color-error);
  background-color: var(--color-error-bg);
}

.delta--neutral {
  color: var(--color-neutral-500);
  background-color: var(--color-neutral-100);
}


/* --------------------------------------------------------------------------
   Comparison View
   -------------------------------------------------------------------------- */
.compare-table th {
  position: sticky;
  top: 0;
  z-index: 10;
}
.compare-table th.text-right {
  text-align: right;
}

.compare-table .metric-label {
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
  background-color: var(--color-neutral-50);
}

.compare-highlight {
  background-color: var(--color-primary-50);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-700);
}


/* --------------------------------------------------------------------------
   Comparative Analysis (Benchmarks)
   -------------------------------------------------------------------------- */
.benchmark-meter {
  position: relative;
  height: 8px;
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-full);
  overflow: visible;
  margin: var(--space-3) 0;
}

.benchmark-meter__fill {
  position: absolute;
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.benchmark-meter__marker {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-primary-500);
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  z-index: 2;
}

.benchmark-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
}

.benchmark-rating {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.benchmark-rating--well-above { background-color: #dcfce7; color: #166534; }
.benchmark-rating--above      { background-color: #d1fae5; color: #047857; }
.benchmark-rating--average    { background-color: var(--color-neutral-100); color: var(--color-neutral-700); }
.benchmark-rating--below      { background-color: #fef3c7; color: #92400e; }
.benchmark-rating--well-below { background-color: #fee2e2; color: #991b1b; }


/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.dashboard-header h1 {
  font-size: var(--text-3xl);
}

.valuation-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.valuation-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.valuation-item:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-md);
}

.valuation-item__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent-600);
  cursor: pointer;
}

.valuation-item__info {
  min-width: 0;
}

.valuation-item__name {
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-900);
  margin-bottom: 2px;
}

.valuation-item__meta {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  display: flex;
  gap: var(--space-3);
}

.valuation-item__value {
  text-align: right;
  white-space: nowrap;
}

.valuation-item__value-amount {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
}

.valuation-item__value-label {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

.valuation-item__actions {
  display: flex;
  gap: var(--space-2);
}


/* --------------------------------------------------------------------------
   Auth Pages
   -------------------------------------------------------------------------- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-8) var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card .card {
  padding: var(--space-8);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.auth-header p {
  color: var(--color-neutral-500);
  font-size: var(--text-sm);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-neutral-200);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
}


/* --------------------------------------------------------------------------
   Admin Layout
   -------------------------------------------------------------------------- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
  background-color: var(--color-white);
  border-right: 1px solid var(--color-neutral-100);
  padding: var(--space-6) 0;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-3);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.admin-nav a:hover {
  background-color: var(--color-neutral-50);
  color: var(--color-neutral-800);
  text-decoration: none;
}

.admin-nav a.active {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  font-weight: var(--weight-medium);
}

.admin-nav svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.admin-content {
  padding: var(--space-8);
  background-color: var(--color-neutral-50);
}

/* Admin stat cards */
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.stat-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card__value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
  margin-top: var(--space-1);
  font-variant-numeric: tabular-nums;
}

.stat-card__change {
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}


/* --------------------------------------------------------------------------
   Purchase / Premium Features
   -------------------------------------------------------------------------- */
.premium-cta {
  background: linear-gradient(135deg, #fef3c7, #fef9e7);
  border: 1px solid var(--color-gold-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.premium-cta__price {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
  margin: var(--space-4) 0;
}

.premium-cta__price sup {
  font-size: var(--text-xl);
  vertical-align: super;
}

.premium-cta__features {
  list-style: none;
  padding: 0;
  margin: var(--space-6) auto;
  max-width: 360px;
  text-align: left;
}

.premium-cta__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
}

.premium-cta__features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Feature lock overlay */
.feature-locked {
  position: relative;
}

.feature-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  border-radius: inherit;
  z-index: 5;
}

.feature-locked__prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  text-align: center;
  padding: var(--space-6);
}


/* --------------------------------------------------------------------------
   Report Preview (Free/Unpurchased Valuation)
   -------------------------------------------------------------------------- */

/* Container: positions the CTA card over the blurred zone */
.report-preview {
  position: relative;
  margin-top: var(--space-8);
}

/* Blurred zone: applies blur to all child content.
   pointer-events:none prevents interaction with fake data.
   user-select:none prevents copying fake numbers. */
.report-preview__blurred {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

/* Sections container: titles visible, content individually blurred */
.report-preview__sections {
  position: relative;
  max-height: 2800px;
  overflow: hidden;
}

/* Per-element blur for individual content blocks */
.blurred-content {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Gradient fade at the bottom of the blurred zone */
.report-preview__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  z-index: 2;
}

/* CTA overlay: positioned over the blurred zone, NOT blurred */
.report-preview__cta {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  max-width: 480px;
  padding: 0 var(--space-4);
}

/* CTA Card styling */
.report-preview__cta-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Lock icon circle */
.report-preview__cta-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-gold-100), var(--color-gold-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-gold-600);
}

.report-preview__cta-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-1);
}

/* Feature checklist */
.report-preview__cta-features {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
  text-align: left;
}

.report-preview__cta-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
}

.report-preview__cta-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Price display */
.report-preview__cta-price {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
  margin: var(--space-3) 0;
}

.report-preview__cta-price sup {
  font-size: var(--text-xl);
  vertical-align: super;
}

/* ---- Report Preview: Mobile responsive ---- */
@media (max-width: 768px) {
  .report-preview__cta {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    margin-top: var(--space-6);
    padding: 0;
  }

  .report-preview__blurred {
    max-height: 400px;
    overflow: hidden;
  }

  .report-preview__sections {
    max-height: 1200px;
  }

  .report-preview__fade {
    height: 120px;
  }

  .report-preview__cta-card {
    padding: var(--space-6);
  }
}


/* --------------------------------------------------------------------------
   Purchase Success Page
   -------------------------------------------------------------------------- */
.success-page {
  text-align: center;
  padding: var(--space-16) 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-success-bg);
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}


/* --------------------------------------------------------------------------
   Error Pages
   -------------------------------------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-8);
}

.error-page__code {
  font-size: 8rem;
  font-weight: var(--weight-bold);
  color: var(--color-neutral-200);
  line-height: 1;
}

.error-page__title {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
}

.error-page__message {
  color: var(--color-neutral-500);
  max-width: 400px;
  margin-top: var(--space-3);
}


/* --------------------------------------------------------------------------
   Legal Pages (Terms, Privacy)
   -------------------------------------------------------------------------- */
.legal-page {
  max-width: 800px;
  padding: var(--space-8) 0;
}

.legal-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.legal-page h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-primary-700);
}

.legal-page p,
.legal-page ul {
  margin-bottom: var(--space-3);
  line-height: 1.7;
  color: var(--color-neutral-600);
}

.legal-page ul {
  padding-left: var(--space-6);
}

.legal-page li {
  margin-bottom: var(--space-2);
}

.legal-page a {
  color: var(--color-accent-600);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.text-lg      { font-size: var(--text-lg); }
.text-muted   { color: var(--color-neutral-500); }
.text-primary { color: var(--color-primary-600); }
.text-success { color: var(--color-success); }
.text-error   { color: var(--color-error); }
.text-bold    { font-weight: var(--weight-bold); }
.text-semibold { font-weight: var(--weight-semibold); }

.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.p-4   { padding: var(--space-4); }
.p-6   { padding: var(--space-6); }
.p-8   { padding: var(--space-8); }

.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;
}

.hidden { display: none; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}


/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.animate-fade-in  { animation: fadeIn 0.4s ease; }
.animate-slide-up { animation: slideUp 0.4s ease; }

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-neutral-200);
  border-top-color: var(--color-primary-500);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner--lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent-500));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}


/* --------------------------------------------------------------------------
   Confirmation Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-2xl);
  animation: fadeInUp 0.2s ease;
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
}

.modal-body {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-6);
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}


/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet (768px) */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row--3 {
    grid-template-columns: 1fr;
  }

  /* Header mobile nav */
  .nav-main {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-1);
    z-index: 99;
    border-top: 1px solid var(--color-neutral-100);
    overflow-y: auto;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main a {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .nav-toggle svg {
    flex-shrink: 0;
  }

  /* Hide auth buttons from header on mobile — moved into hamburger menu */
  .nav-actions .btn,
  .nav-actions form {
    display: none;
  }

  /* Mobile auth links inside hamburger menu */
  .nav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    border-top: 1px solid var(--color-neutral-100);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
  }

  .nav-mobile-auth a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-neutral-600);
    border-radius: var(--radius-md);
  }

  .nav-mobile-auth a:hover {
    color: var(--color-primary-600);
    background-color: var(--color-primary-50);
    text-decoration: none;
  }

  /* Footer link touch targets */
  .footer-links a {
    padding: var(--space-2) 0;
  }

  /* Valuation owner header — stack on mobile */
  .valuation-owner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .valuation-owner-actions {
    flex-wrap: wrap;
    gap: var(--space-2);
    width: 100%;
  }

  /* Nav dropdown mobile — inline expand */
  .nav-dropdown__menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-4);
    background: transparent;
    animation: none;
  }

  .nav-dropdown.open .nav-dropdown__menu {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown__divider {
    margin: var(--space-1) 0;
  }

  /* Hero adjustments */
  /* Remove main-content padding on homepage (hero follows main) */
  .main-content:has(+ .hero) {
    padding: 0;
  }

  .hero {
    padding: var(--space-10) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-video__container {
    max-width: 560px;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Scenario panel */
  .scenario-panel {
    grid-template-columns: 1fr;
  }

  /* Dashboard */
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .valuation-item {
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
  }

  .valuation-item__value,
  .valuation-item__actions {
    grid-column: 2;
  }

  /* Admin layout */
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-neutral-100);
    padding: var(--space-3) 0;
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 var(--space-4);
    gap: var(--space-1);
  }

  .admin-nav a {
    white-space: nowrap;
  }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  :root {
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

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

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

  .success-actions .btn {
    width: 100%;
  }

  .valuation-result__range {
    font-size: var(--text-3xl);
  }

  .premium-cta {
    padding: var(--space-6);
  }

  .auth-card .card {
    padding: var(--space-6);
  }

  .btn-xl {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    max-width: 100%;
  }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-grid {
    gap: var(--space-16);
  }
}


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


/* --------------------------------------------------------------------------
   Touch Target — Slider Thumb (Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .slider-input::-webkit-slider-thumb {
    width: 44px;
    height: 44px;
  }

  .slider-input::-moz-range-thumb {
    width: 44px;
    height: 44px;
  }
}


/* ==========================================================================
   Paid Valuation Detail Page (.vd-* prefix)
   ========================================================================== */

/* --- Layout --- */
.vd-section {
  margin-top: var(--space-16);
  margin-bottom: var(--space-12);
  scroll-margin-top: 140px;
}

.vd-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-800);
  letter-spacing: -0.01em;
}

.vd-section__underline {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-300));
  margin-bottom: var(--space-8);
  border-radius: 2px;
}

.vd-divider {
  border: none;
  border-top: 1px solid var(--color-neutral-200);
  margin: var(--space-8) 0;
}

.vd-prose {
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  line-height: var(--leading-relaxed);
}


/* --- Hero --- */
.vd-hero {
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, var(--color-primary-600) 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.vd-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.vd-hero__score {
  text-align: center;
  flex-shrink: 0;
}

.vd-hero__score-value {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vd-hero__score--good     { background: linear-gradient(135deg, var(--color-success), #22c55e); }
.vd-hero__score--moderate  { background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-400)); }
.vd-hero__score--low       { background: linear-gradient(135deg, var(--color-warning), #f59e0b); }

.vd-hero__score-label {
  font-size: var(--text-xs);
  opacity: 0.6;
  margin-top: var(--space-1);
}

.vd-hero__score-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-top: 2px;
}

.vd-hero__main {
  flex: 1;
  text-align: center;
}

.vd-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: var(--space-3);
}

.vd-hero__range {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.vd-hero__range span {
  opacity: 0.5;
  font-weight: var(--weight-normal);
}

.vd-hero__midpoint {
  font-size: var(--text-base);
  opacity: 0.7;
}


/* --- Metrics Strip --- */
.vd-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.vd-metric {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.vd-metric:hover {
  box-shadow: var(--shadow-md);
}

.vd-metric__value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
  letter-spacing: -0.01em;
}

.vd-metric__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: var(--space-1);
}


/* --- Page Navigation --- */
.vd-page-nav {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-8);
  padding: 6px var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-md);
  overflow-x: auto;
  white-space: nowrap;
  position: sticky;
  top: calc(var(--header-height) + 4px);
  z-index: 50;
  box-shadow: var(--shadow-md);
  scrollbar-width: none;
}

.vd-page-nav::-webkit-scrollbar {
  display: none;
}

.vd-page-nav__link {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-500);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.vd-page-nav__link:hover {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  text-decoration: none;
  transform: translateY(-1px);
}

.vd-page-nav__link--active {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}


/* --- Accent Panels --- */
.vd-accent-panel {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, rgba(232,241,250,0.5) 100%);
  border-left: 4px solid var(--color-primary-500);
  padding: var(--space-6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}

.vd-accent-panel p {
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  line-height: var(--leading-relaxed);
}

.vd-accent-panel__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary-800);
  margin-bottom: var(--space-3);
}


/* --- Findings List --- */
.vd-findings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vd-findings-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  line-height: var(--leading-relaxed);
}

.vd-findings-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary-400);
  box-shadow: 0 0 0 3px rgba(30,85,140,0.12);
}


/* --- KPI Cards --- */
.vd-kpi-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-top: 3px solid var(--color-primary-400);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
  position: relative;
}

.vd-kpi-card:hover {
  box-shadow: var(--shadow-md);
}

.vd-kpi-card--highlight {
  border-top-color: var(--color-accent-500);
  background: linear-gradient(180deg, var(--color-accent-50) 0%, var(--color-white) 60%);
}

.vd-kpi-card--highlight .vd-kpi-card__value {
  color: var(--color-accent-700);
}

.vd-kpi-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-800);
  letter-spacing: -0.02em;
}

.vd-kpi-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: var(--space-2);
}

.vd-kpi-card__sub {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  margin-top: 2px;
}


/* --- Range Bar --- */
.vd-range-bar {
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-neutral-100);
}

.vd-range-bar__track {
  position: relative;
  height: 14px;
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-full);
  overflow: visible;
}

.vd-range-bar__fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-300), var(--color-primary-500));
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(30,85,140,0.2);
}

.vd-range-bar__marker {
  position: absolute;
  width: 4px;
  height: 22px;
  background-color: var(--color-primary-800);
  top: -4px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.vd-range-bar__labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  margin-top: var(--space-3);
}

.vd-range-bar__mid-label {
  font-weight: var(--weight-bold);
  color: var(--color-primary-800);
  font-size: var(--text-sm);
}


/* --- Weights Strip --- */
.vd-weights-strip {
  background-color: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.vd-weight {
  display: grid;
  grid-template-columns: 140px 50px 1fr;
  align-items: center;
  gap: var(--space-3);
}

.vd-weight__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
}

.vd-weight__pct {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-primary-600);
  text-align: right;
}

.vd-weight__bar {
  height: 8px;
  background-color: var(--color-neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.vd-weight__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-400), var(--color-primary-600));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}


/* --- Table Variants --- */
.vd-table-section td {
  background-color: var(--color-primary-50);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-800);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-primary-100);
}

.vd-table-bold td {
  font-weight: var(--weight-semibold);
}

.vd-table-highlight td {
  background-color: var(--color-accent-50);
  border-bottom: 2px solid var(--color-accent-200);
}

/* Zebra striping for sensitivity tables */
.vd-section .table-wrap .table tbody tr:nth-child(even):not(.vd-table-bold):not(.vd-table-highlight):not(.vd-table-section) td {
  background-color: var(--color-neutral-50);
}

/* Better table header styling within vd-section */
.vd-section .table thead th {
  background-color: var(--color-primary-800);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}

.vd-section .table thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.vd-section .table thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

/* Wrap tables in subtle card container */
.vd-section .table-wrap {
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.vd-section .table-wrap .table {
  margin-bottom: 0;
}


/* --- Revenue Waterfall --- */
.vd-waterfall {
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.vd-waterfall__bar {
  display: flex;
  height: 52px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.vd-waterfall__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  transition: opacity var(--transition-fast);
}

.vd-waterfall__seg:hover {
  opacity: 0.85;
}

.vd-waterfall__seg--cogs { background: linear-gradient(180deg, #fecaca, #fee2e2); color: #b91c1c; }
.vd-waterfall__seg--opex { background: linear-gradient(180deg, #fde68a, #fef3c7); color: #92400e; }
.vd-waterfall__seg--noi  { background: linear-gradient(180deg, #6ee7b7, #d1fae5); color: #065f46; }

.vd-waterfall__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  padding: 0 var(--space-3);
}


/* --- Margin Chart --- */
.vd-margin-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.vd-margin-row {
  display: grid;
  grid-template-columns: 110px 1fr 120px;
  align-items: center;
  gap: var(--space-3);
}

.vd-margin-row__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-700);
}

.vd-margin-row__bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vd-margin-row__bar {
  height: 14px;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.vd-margin-row__bar--yours {
  background: linear-gradient(90deg, var(--color-primary-400), var(--color-primary-600));
  box-shadow: 0 2px 4px rgba(30,85,140,0.15);
}

.vd-margin-row__bar--industry {
  background: var(--color-neutral-300);
  opacity: 0.8;
}

.vd-margin-row__values {
  display: flex;
  flex-direction: column;
  font-size: var(--text-xs);
  text-align: right;
  gap: 4px;
}

.vd-margin-row__val--yours {
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
  font-size: var(--text-sm);
}

.vd-margin-row__val--industry {
  color: var(--color-neutral-500);
}

.vd-margin-legend {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

.vd-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-medium);
}

.vd-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.vd-legend-dot--blue { background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-600)); }
.vd-legend-dot--gray { background-color: var(--color-neutral-300); }


/* --- Method Detail Cards --- */
.vd-method-detail {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.vd-method-detail:hover {
  box-shadow: var(--shadow-md);
}

.vd-method-detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-neutral-100);
}

.vd-method-detail__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-800);
}

.vd-method-detail__weight {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-500);
}

.vd-method-detail .vd-prose {
  max-width: none;
}


/* --- Stacked Bar (Blended Weights) --- */
.vd-stacked-bar {
  display: flex;
  height: 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.vd-stacked-bar__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  min-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition-fast);
  padding: 0 var(--space-2);
}

.vd-stacked-bar__seg:hover {
  opacity: 0.9;
}

.vd-stacked-bar__seg--sde     { background: linear-gradient(180deg, var(--color-primary-700), var(--color-primary-900)); color: var(--color-white); }
.vd-stacked-bar__seg--ebitda  { background: linear-gradient(180deg, var(--color-primary-400), var(--color-primary-600)); color: var(--color-white); }
.vd-stacked-bar__seg--revenue { background: linear-gradient(180deg, #7aa8f0, #5b8be0); color: var(--color-white); }


/* --- Hero Result (Blended Section) --- */
.vd-hero-result {
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, var(--color-primary-600) 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.vd-hero-result::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.vd-hero-result__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: var(--space-3);
}

.vd-hero-result__value {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.vd-hero-result__range {
  font-size: var(--text-base);
  opacity: 0.65;
}


/* --- Comparison Chart --- */
.vd-comparison-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.vd-comparison-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.vd-comparison-row__label {
  width: 70px;
  text-align: right;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-700);
  flex-shrink: 0;
}

.vd-comparison-row__bar-track {
  flex: 1;
  height: 26px;
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-md);
  position: relative;
  overflow: visible;
}

.vd-comparison-row__bar {
  position: absolute;
  height: 100%;
  border-radius: var(--radius-md);
  min-width: 2px;
  transition: width var(--transition-slow);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vd-comparison-row__bar--sde     { background: linear-gradient(180deg, var(--color-primary-300), var(--color-primary-500)); }
.vd-comparison-row__bar--ebitda  { background: linear-gradient(180deg, var(--color-primary-400), var(--color-primary-600)); }
.vd-comparison-row__bar--revenue { background: linear-gradient(180deg, #7aa8f0, #5b8be0); }
.vd-comparison-row__bar--blended { background: linear-gradient(180deg, var(--color-accent-400), var(--color-accent-600)); }

.vd-comparison-row__marker {
  position: absolute;
  width: 3px;
  height: 100%;
  background-color: var(--color-neutral-900);
  top: 0;
  border-radius: 2px;
}

.vd-comparison-row__value {
  width: 100px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-800);
  text-align: right;
  flex-shrink: 0;
}


/* --- Bank Readiness --- */
.vd-bank-readiness {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, rgba(232,241,250,0.5) 100%);
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.vd-bank-readiness__details h5 {
  margin-bottom: var(--space-4);
  color: var(--color-primary-800);
  font-weight: var(--weight-bold);
}

.vd-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
}

.vd-dl dt {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
}

.vd-dl dd {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-800);
}

.vd-bank-readiness__dscr {
  text-align: center;
  flex-shrink: 0;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-md);
  min-width: 140px;
}

.vd-dscr-value {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

.vd-dscr--strong   { color: var(--color-success); }
.vd-dscr--moderate { color: var(--color-warning); }
.vd-dscr--weak     { color: var(--color-error); }


/* --- Quartile Chart --- */
.vd-quartile-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.vd-quartile-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.vd-quartile-row__label {
  width: 70px;
  text-align: right;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-700);
  flex-shrink: 0;
}

.vd-quartile-row__bar {
  flex: 1;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.vd-quartile-row__q1 { background: linear-gradient(180deg, #fecaca, #fee2e2); }
.vd-quartile-row__q2 { background: linear-gradient(180deg, #fde68a, #fef3c7); }
.vd-quartile-row__q3 { background: linear-gradient(180deg, #86efac, #d1fae5); }
.vd-quartile-row__q4 { background: linear-gradient(180deg, #93c5fd, #dbeafe); }

.vd-quartile-row__median {
  position: absolute;
  width: 3px;
  height: 100%;
  background-color: var(--color-primary-800);
  top: 0;
  z-index: 2;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.vd-quartile-row__marker {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--color-gold-500);
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-radius: 3px;
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.vd-quartile-row__value {
  width: 100px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-800);
  text-align: right;
  flex-shrink: 0;
}

.vd-quartile-legend {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  flex-wrap: wrap;
}

.vd-quartile-legend span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-medium);
}


/* --- Profile Cards --- */
.vd-profile-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.vd-profile-card:hover {
  box-shadow: var(--shadow-md);
}

.vd-profile-card__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-primary-500));
}


/* --- Factor Lists --- */
.vd-factor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.vd-factor-list li {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-fast);
}

.vd-factor-list--positive li {
  background-color: var(--color-success-bg);
  border: 1px solid rgba(22,163,74,0.12);
}

.vd-factor-list--risk li {
  background-color: var(--color-warning-bg);
  border: 1px solid rgba(202,138,4,0.12);
}

.vd-factor-list li::before {
  content: '';
  position: absolute;
  left: var(--space-3);
  top: var(--space-5);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.vd-factor-list--positive li::before { background-color: var(--color-success); }
.vd-factor-list--risk li::before     { background-color: #b45309; box-shadow: 0 0 0 3px rgba(180,83,9,0.15); }

.vd-factor-list li strong {
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
}


/* --- Disclaimer --- */
.vd-disclaimer {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.vd-disclaimer__heading {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-800);
}

.vd-disclaimer__underline {
  width: 48px;
  height: 3px;
  background-color: var(--color-error);
  margin-top: var(--space-2);
  border-radius: 2px;
}

.vd-disclaimer__box {
  background-color: var(--color-error-bg);
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}


/* --- Back to Top --- */
.vd-back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  background: var(--color-primary-700);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 100;
}

.vd-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.vd-back-to-top:hover {
  background: var(--color-primary-800);
}


/* --- Valuation Detail Responsive --- */
@media (max-width: 768px) {
  .vd-section {
    margin-top: var(--space-10);
    margin-bottom: var(--space-8);
    overflow-x: hidden;
  }

  .vd-hero {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }

  .vd-hero__range {
    font-size: var(--text-3xl);
  }

  .vd-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .vd-page-nav {
    position: static;
  }

  .vd-margin-row {
    grid-template-columns: 80px 1fr 80px;
  }

  .vd-weight {
    grid-template-columns: 100px 40px 1fr;
  }

  .vd-bank-readiness {
    flex-direction: column;
    text-align: center;
  }

  .vd-comparison-row__label,
  .vd-quartile-row__label {
    width: 55px;
    font-size: var(--text-xs);
  }

  .vd-comparison-row__value,
  .vd-quartile-row__value {
    width: 80px;
    font-size: var(--text-xs);
  }

  .vd-method-detail {
    padding: var(--space-5);
    margin-bottom: var(--space-5);
  }

  .vd-stacked-bar {
    height: 36px;
  }

  .vd-stacked-bar__seg {
    min-width: 40px;
    font-size: 10px;
  }

  .vd-hero-result__value {
    font-size: var(--text-3xl);
  }

  .vd-disclaimer {
    padding: var(--space-5);
  }
}

@media (max-width: 480px) {
  .vd-hero__range {
    font-size: var(--text-3xl);
  }

  .vd-hero-result__value {
    font-size: var(--text-3xl);
  }

  .vd-kpi-card__value {
    font-size: var(--text-lg);
  }

  .vd-metrics-strip {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .vd-stacked-bar {
    height: 32px;
  }

  .vd-comparison-chart,
  .vd-quartile-chart,
  .vd-margin-chart {
    padding: var(--space-3);
  }
}


/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn,
  .admin-sidebar,
  .vd-page-nav {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .vd-hero,
  .vd-hero-result {
    background: var(--color-primary-800) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .feedback-fab { display: none !important; }
}

/* ============================================================
   Feedback / Report Issue
   ============================================================ */

.feedback-fab {
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.feedback-fab:hover {
  background: var(--color-neutral-200);
  color: var(--color-neutral-800);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.feedback-fab svg {
  flex-shrink: 0;
}

/* Overlay */
.feedback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}

.feedback-overlay.active {
  display: flex;
}

/* Modal */
.feedback-modal {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: fadeInUp 0.2s ease;
}

.feedback-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-neutral-400);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-1);
}

.feedback-modal__close:hover {
  color: var(--color-neutral-700);
}

.feedback-modal__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-900);
  margin-bottom: var(--space-2);
}

.feedback-modal__subtitle {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-bottom: var(--space-5);
}

/* Issue type cards */
.feedback-types {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feedback-type-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-neutral-50);
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.feedback-type-card:hover {
  border-color: var(--color-accent-400);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.1);
}

.feedback-type-card svg {
  flex-shrink: 0;
  color: var(--color-accent-500);
  margin-top: 2px;
}

.feedback-type-card__label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary-900);
  margin-bottom: 2px;
}

.feedback-type-card__desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

/* Back button */
.feedback-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--color-neutral-500);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--space-3);
}

.feedback-back-btn:hover {
  color: var(--color-accent-500);
}

.feedback-selected-type {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-50);
  color: var(--color-accent-700);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  margin-top: var(--space-1);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .feedback-fab {
    bottom: var(--space-3);
    left: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: 0.7rem;
  }

  .feedback-modal {
    padding: var(--space-5);
    width: 95%;
  }

  .feedback-type-card {
    padding: var(--space-3) var(--space-4);
  }

  .feedback-type-card svg {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   Blog
   ========================================================================== */

/* --- Blog Hero --- */

.blog-hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, var(--color-primary-500) 100%);
  color: var(--color-white);
  padding: 8rem 0 3rem;
  overflow: hidden;
}

.blog-hero__pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 40%);
  pointer-events: none;
}

.blog-hero__content {
  position: relative;
  max-width: 640px;
  z-index: 1;
}

.blog-hero__divider {
  width: 48px;
  height: 3px;
  margin-bottom: var(--space-6);
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-accent-300));
  border-radius: 2px;
}

.blog-hero__content h1 {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.blog-hero__content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.blog-separator {
  border-bottom: 1px solid var(--color-neutral-200);
}

/* --- Blog Listing --- */

.blog-listing {
  padding: var(--space-12) 0 var(--space-20);
}

.blog-listing__empty {
  text-align: center;
  color: var(--color-neutral-500);
  font-size: 1.125rem;
  padding: var(--space-12) 0;
}

.blog-listing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.1);
}

.blog-card__image {
  aspect-ratio: 40 / 21;
  overflow: hidden;
  background: var(--color-neutral-100);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}

.blog-card__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-neutral-400);
  margin-bottom: var(--space-3);
}

.blog-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-neutral-300);
  flex-shrink: 0;
}

.blog-card__title {
  margin-bottom: var(--space-3);
}

.blog-card__title a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-700);
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card__title a:hover {
  color: var(--color-accent-700);
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-neutral-500);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  font-weight: 500;
}

.blog-card__read {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent-600);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card__read span {
  display: inline-block;
  transition: transform 0.2s;
}

.blog-card:hover .blog-card__read {
  color: var(--color-accent-700);
}

.blog-card:hover .blog-card__read span {
  transform: translateX(2px);
}

/* --- Blog Article --- */

.blog-article {
  padding: var(--space-16) 0 var(--space-20);
}

.blog-article__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.blog-article__hero {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.06);
  margin-bottom: var(--space-8);
}

.blog-article__title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-primary-700);
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.blog-article__byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-neutral-500);
  margin-bottom: var(--space-10);
}

.blog-article__byline img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-article__byline a {
  font-weight: 500;
  color: var(--color-neutral-700);
  text-decoration: none;
}

.blog-article__byline a:hover {
  color: var(--color-accent-500);
}

/* --- Blog Prose (article body) --- */

.blog-prose {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-neutral-800);
}

.blog-prose h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--color-primary-700);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.blog-prose h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-700);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.blog-prose p {
  margin-bottom: var(--space-4);
}

.blog-prose a {
  color: var(--color-accent-600);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-200);
  text-underline-offset: 2px;
}

.blog-prose a:hover {
  color: var(--color-accent-700);
  text-decoration-color: var(--color-accent-500);
}

.blog-prose strong {
  font-weight: 600;
  color: var(--color-neutral-900);
}

.blog-prose ul,
.blog-prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.blog-prose li {
  margin-bottom: var(--space-2);
}

.blog-prose ol {
  list-style: decimal;
}

.blog-prose ul {
  list-style: disc;
}

.blog-prose code {
  font-size: 0.9375em;
  background: var(--color-neutral-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-primary-600);
}

.blog-prose pre {
  background: var(--color-neutral-900);
  color: var(--color-neutral-100);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-5);
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
  font-size: 0.9375rem;
}

.blog-prose thead {
  background: var(--color-primary-50);
}

.blog-prose th {
  font-weight: 600;
  color: var(--color-primary-700);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-neutral-200);
}

.blog-prose td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-neutral-200);
  color: var(--color-neutral-700);
}

.blog-prose figure {
  margin: var(--space-6) 0;
}

.blog-prose figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}

.blog-prose figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-2);
  font-style: italic;
}

.blog-prose dfn {
  font-style: normal;
  font-weight: 600;
}

/* --- Definition Block (AEO) --- */

.definition-block {
  background: var(--color-accent-50);
  border-left: 4px solid var(--color-accent-500);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-neutral-800);
}

.definition-block strong {
  color: var(--color-primary-700);
}

/* --- FAQ Section (AEO) --- */

.faq-section {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-neutral-200);
}

.faq-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary-700);
  margin-bottom: var(--space-6);
}

.faq-section h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-700);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.faq-section p {
  color: var(--color-neutral-700);
  line-height: 1.65;
}

/* --- Blog CTA --- */

.blog-cta {
  margin-top: var(--space-12);
  padding: var(--space-8) var(--space-8);
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-accent-50));
  border-radius: var(--radius-lg);
  text-align: center;
}

.blog-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary-700);
  margin-bottom: var(--space-3);
}

.blog-cta p {
  font-size: 1rem;
  color: var(--color-neutral-600);
  max-width: 520px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.blog-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.blog-cta__or {
  font-size: 0.875rem;
  color: var(--color-neutral-400);
}

.blog-cta__link {
  font-size: 0.9375rem;
  color: var(--color-accent-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-cta__link:hover {
  color: var(--color-accent-700);
}

/* --- Blog Lightbox --- */

.blog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.blog-lightbox.active {
  display: flex;
}

.blog-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, 0.85);
  cursor: pointer;
}

.blog-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.blog-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.blog-lightbox__close:hover {
  opacity: 1;
}

/* --- Blog Responsive --- */

@media (max-width: 768px) {
  .blog-listing__grid {
    grid-template-columns: 1fr;
  }

  .blog-hero__content h1 {
    font-size: 2.25rem;
  }

  .blog-hero {
    padding: 6rem 0 2rem;
  }

  .blog-article__title {
    font-size: 1.75rem;
  }

  .blog-cta {
    padding: var(--space-6);
  }
}
