/* ============================================================
   HVAC Quote Engine — Demo Stylesheet
   Premium dark theme with glassmorphism & micro-animations
   ============================================================ */

/* ---------- Local Fonts (Offline Support) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/Inter-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/Inter-ExtraBold.woff2') format('woff2');
}

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --bg-deep: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(37, 99, 235, 0.04);
  --bg-glass-hover: rgba(37, 99, 235, 0.08);

  --accent: #1e40af;
  --accent-light: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.2);
  --accent-subtle: rgba(37, 99, 235, 0.1);

  --green: #059669;
  --green-light: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --green-subtle: rgba(16, 185, 129, 0.1);

  --orange: #ea580c;
  --red: #dc2626;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border: rgba(15, 23, 42, 0.1);
  --border-active: rgba(37, 99, 235, 0.4);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px var(--accent-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

html[data-hvac-embedded="1"] body {
  min-height: auto;
  background: transparent;
}

html[data-hvac-embedded="1"] .site-header,
html[data-hvac-embedded="1"] .hero,
html[data-hvac-embedded="1"] .demo-banner,
html[data-hvac-embedded="1"] .site-footer {
  display: none;
}

html[data-hvac-embedded="1"] .widget-section {
  max-width: none;
  margin: 0;
  padding: 0;
}

html[data-hvac-embedded="1"] .widget-container {
  border-radius: var(--radius-lg);
}

html[data-hvac-platform="wordpress"] .widget-container {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

/* ---------- Site Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

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

.site-logo__icon {
  font-size: 28px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
  }
}

.site-logo__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.site-logo__tagline {
  font-size: 12px;
  color: var(--text-muted);
}

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

.site-nav__link {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--text-primary);
}

.site-nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch__btn:hover {
  color: var(--text-primary);
}

.lang-switch__btn--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.btn-call {
  text-decoration: none;
  background: var(--accent-subtle);
  color: var(--accent-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-call:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 700px;
  padding: 0 var(--space-lg);
}

.hero__badge {
  display: inline-block;
  background: var(--green-subtle);
  color: var(--green-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  animation: float-in 0.6s ease-out;
}

.hero__title {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  animation: float-in 0.6s ease-out 0.1s both;
}

.hero__highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: float-in 0.6s ease-out 0.2s both;
}

.hero__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  animation: float-in 0.6s ease-out 0.3s both, bounce 2s ease-in-out 1s infinite;
  transition: color 0.2s;
}

.hero__arrow:hover {
  color: var(--text-primary);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ---------- Widget Section ---------- */
.widget-section {
  padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
  max-width: 800px;
  margin: 0 auto;
}

.widget-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  padding: var(--space-lg) var(--space-xl) 0;
}

.progress-bar__track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-bar__fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 0.7;
}

.progress-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
}

.progress-step.active .progress-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.progress-step.completed .progress-step__dot {
  background: var(--green);
  border-color: var(--green);
}

.progress-step__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-step.active .progress-step__label {
  color: var(--text-primary);
}

/* ---------- Steps ---------- */
.step {
  display: none;
  padding: var(--space-xl);
  animation: step-in 0.4s ease-out;
}

.step--active {
  display: block;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step__header {
  margin-bottom: var(--space-xl);
}

.step__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: 18px;
  color: var(--text-secondary);
}

.step__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

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

.btn--glow {
  box-shadow: var(--shadow-glow);
}

.btn--glow:hover {
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn--large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

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

.input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font);
  transition: all 0.25s;
  outline: none;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
  background: var(--bg-surface);
}

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

.input--large {
  padding: 18px 20px 18px 50px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  text-align: center;
}

.input__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

.textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  resize: vertical;
  outline: none;
  transition: all 0.25s;
}

.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.textarea::placeholder {
  color: var(--text-muted);
}

/* ---------- Postal Code ---------- */
.postal-input-group {
  max-width: 360px;
  margin: 0 auto;
}

.postal-status {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 14px;
  font-weight: 500;
  min-height: 24px;
  transition: all 0.3s;
}

.postal-status--valid {
  color: var(--green-light);
}

.postal-status--invalid {
  color: var(--orange);
}

/* ---------- Install Type ---------- */
.install-type-group {
  margin-top: var(--space-xl);
  animation: float-in 0.4s ease-out;
}

.group-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: block;
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.radio-card {
  cursor: pointer;
}

.radio-card input {
  display: none;
}

.radio-card__content {
  padding: var(--space-lg);
  background: var(--bg-glass);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
  position: relative;
}

.radio-card__content:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.radio-card input:checked+.radio-card__content {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.radio-card__icon {
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.radio-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.radio-card__desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.radio-card__badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--green-subtle);
  color: var(--green-light);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.radio-card__badge--alt {
  background: var(--accent-subtle);
  color: var(--accent-light);
}

.radio-card__badge--neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* ---------- Brand / Zone Filter ---------- */
.brand-filter,
.zone-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.brand-chip,
.zone-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

.brand-chip:hover,
.zone-chip:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.brand-chip--active,
.zone-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-height: 420px;
  overflow-y: auto;
  padding-right: var(--space-sm);
}

.product-grid::-webkit-scrollbar {
  width: 4px;
}

.product-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-glass);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s;
}

.product-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.product-card--selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.product-card__brand-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.product-card__info {
  flex: 1;
  min-width: 0;
}

.product-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.product-card__specs {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.product-card__spec {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card__price {
  text-align: right;
  flex-shrink: 0;
}

.product-card__price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-card__price-label {
  font-size: 11px;
  color: var(--text-muted);
}

.product-card__cold-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

/* ---------- Quote Card ---------- */
.quote-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.quote-card__product {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.quote-card__product-name {
  font-size: 18px;
  font-weight: 700;
}

.quote-card__product-specs {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.quote-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.quote-line__value {
  font-weight: 600;
}

.quote-line__value--green {
  color: var(--green-light);
}

.quote-line--grant {
  background: var(--green-subtle);
  margin: 0 calc(var(--space-lg) * -1);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
}

.quote-divider {
  height: 1px;
  background: var(--border);
}

.quote-line--total {
  font-size: 18px;
}

.quote-line__value--big {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quote-disclaimer {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  line-height: 1.6;
}

.quote-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Photo Upload ---------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.upload-card {
  display: flex;
  flex-direction: column;
}

.upload-card__preview {
  aspect-ratio: 4/3;
  background: var(--bg-glass);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s;
  margin-bottom: var(--space-sm);
}

.upload-card__preview:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.upload-card__preview--has-image {
  border-style: solid;
  border-color: var(--green);
}

.upload-card__preview--has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-card__placeholder {
  text-align: center;
  padding: var(--space-md);
}

.upload-card__icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
}

.upload-card__label {
  font-size: 13px;
  font-weight: 600;
}

.upload-card__hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.upload-card__input {
  display: none;
}

.upload-card__btn {
  padding: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

.upload-card__btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.notes-group {
  margin-top: var(--space-xl);
}

/* ---------- Contact Form ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* ---------- Success Screen ---------- */
.success-screen {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.success-screen__icon {
  font-size: 64px;
  display: block;
  margin-bottom: var(--space-lg);
  animation: pop-in 0.5s ease-out;
}

.success-screen__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.success-screen__desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.success-screen__summary {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: left;
  margin-bottom: var(--space-lg);
  font-size: 14px;
  line-height: 2;
}

.success-screen__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ---------- Demo Banner ---------- */
.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
}

.demo-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.demo-banner__badge {
  background: linear-gradient(135deg, var(--orange), #d97706);
  color: #000;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.demo-banner__pills {
  margin-left: auto;
  display: flex;
  gap: var(--space-sm);
}

.demo-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-pill {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.demo-pill--outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---------- Retention Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease-out;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modal-in 0.4s ease-out;
  box-shadow: var(--shadow-lg);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal__close:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.modal__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.modal__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.modal__form {
  display: flex;
  gap: var(--space-sm);
}

.modal__form .input {
  flex: 1;
}

.modal__form .btn {
  flex-shrink: 0;
}

.modal__footnote {
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  padding-bottom: 80px;
  /* space for demo banner */
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__brand {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-footer__copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .site-header__controls {
    width: 100%;
    justify-content: flex-end;
  }

  .site-header__cta {
    display: none;
  }

  .radio-cards {
    grid-template-columns: 1fr;
  }

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

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

  .progress-step__label {
    display: none;
  }

  .demo-banner__inner {
    flex-wrap: wrap;
    font-size: 12px;
  }

  .demo-banner__pills {
    margin-left: 0;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .quote-line--grant {
    margin: 0 calc(var(--space-md) * -1);
    padding: var(--space-sm) var(--space-md);
  }
}
