/* Peace of Real Estate - Polished Static Build Styles */
/* A clean, professional aesthetic for data-driven real estate professionals */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Typography */
  --font-heading: "tt-commons-pro", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Brand Colors (from logo) */
  --brand-navy: #024A70;
  --brand-sky: #74D4FF;
  --brand-amber: #FFB86A;
  --brand-gray: #CAD5E2;

  /* Sky Blues */
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;

  /* Slate Grays */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Amber - Accent (matches logo) */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  /* Orange - Negative feedback */
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  /* Green - Success */
  --green-50: #f0fdf4;
  --green-500: #22c55e;
  --green-600: #16a34a;

  /* Layered shadows */
  --shadow-sm: 0 0 0 1px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px rgba(0,0,0,0.05);
  --shadow-lg: 0 0 0 1px rgba(0,0,0,0.03), 0 4px 8px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.08);
  --shadow-btn: 0 1px 2px rgba(0,0,0,0.05), 0 4px 12px rgba(2, 74, 112, 0.15);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-feature-settings: "ss02" on;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes checkmark {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

/* Page load transition */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageLoad 0.5s ease-out;
}

/* Hero stagger animations on page load */
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }

/* Scroll reveal - starts slightly faded and low, transitions when visible */
.reveal-on-scroll {
  opacity: 0.3;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility - respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .animate-fade-in-up {
    animation: none;
    opacity: 1;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.container-narrow { max-width: 768px; }
.container-wide { max-width: 1280px; }

/* ============================================
   Navigation - Glassmorphic
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s ease-out;
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo .logomark { height: 3.75rem; width: auto; }
.nav-logo .logotype { height: 3rem; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-family: var(--font-heading);
  font-feature-settings: "ss02" on;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-500);
  transition: color 0.2s ease-out;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-navy);
  transition: width 0.2s ease-out;
}

.nav-link:hover {
  color: var(--brand-navy);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--brand-navy);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.nav-mobile-btn {
  display: flex;
  padding: 0.5rem;
  color: var(--slate-600);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease-out;
}

.nav-mobile-btn:hover { color: var(--brand-navy); }

@media (min-width: 768px) {
  .nav-mobile-btn { display: none; }
}

.nav-mobile {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--slate-200);
}

.nav-mobile.open { display: block; }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 60%, #fff 100%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--slate-200);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(116, 212, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero { padding: 6rem 0; }
}

/* Dark hero variant */
.hero.hero-dark {
  background: linear-gradient(180deg, var(--sky-900) 0%, var(--sky-700) 100%);
  border-bottom: none;
}

.hero.hero-dark::before {
  background: radial-gradient(ellipse at 70% 100%, rgba(116, 212, 255, 0.1) 0%, transparent 50%);
}

.hero.hero-dark h1 { color: #fff; }
.hero.hero-dark .hero-subhead { color: var(--sky-200); }

.hero.hero-dark .btn-primary {
  background: #fff;
  color: var(--slate-800);
  box-shadow: var(--shadow-btn);
}

.hero.hero-dark .btn-primary:hover {
  background: var(--slate-100);
  transform: translateY(-2px);
}

.hero.hero-dark .btn-primary:active {
  transform: scale(0.98);
}

.hero.hero-dark .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}

.hero.hero-dark .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.hero.hero-dark .image-placeholder {
  background: var(--sky-800);
  border-color: var(--sky-700);
  color: var(--sky-400);
}

.hero-content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.hero-content.with-image {
  text-align: left;
  max-width: none;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content.with-image { grid-template-columns: 1fr 1fr; }
}

.hero h1 {
  font-size: 1.875rem;
  color: var(--slate-800);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
}

.hero-subhead {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subhead { font-size: 1.25rem; }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-cta-group { flex-direction: row; }
}

.hero-content.with-image .hero-cta-group {
  justify-content: flex-start;
}

/* Hero Layered Image (homepage) */

/* Mobile/tablet: simple overlay, no fancy positioning */
.hero-layered-image {
  position: relative;
}

.hero-layer-bg {
  border-radius: 1rem;
  overflow: hidden;
}

.hero-layer-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-layer-fg {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-layer-fg img {
  width: 100%;
  height: auto;
  display: block;
}

.hero.hero-dark:has(.hero-layered-image) {
  overflow-x: clip;
  overflow-y: visible;
}

.hero.hero-dark .hero-layered-image {
  margin-bottom: 0;
}

.hero.hero-dark:has(.hero-layered-image) + .section,
.hero.hero-dark:has(.hero-layered-image) + .section-darker {
  padding-top: 6rem;
}

/* Desktop: full layered effect */
@media (min-width: 1024px) {
  .hero-content.with-image:has(.hero-layered-image) {
    gap: 0;
  }

  .hero-layered-image {
    width: 125%;
    margin-left: -38%;
  }

  .hero-layer-bg {
    position: absolute;
    top: 0;
    left: 32%;
    transform: translateX(-50%);
    width: 83.5%;
    height: 83.5%;
    border-radius: 1.25rem;
  }

  .hero-layer-bg img {
    width: calc(100% / 0.835);
  }

  .hero-layer-fg {
    position: relative;
    left: 25%;
  }

  .hero.hero-dark .hero-layered-image {
    margin-bottom: -6rem;
  }

  .hero.hero-dark:has(.hero-layered-image) + .section,
  .hero.hero-dark:has(.hero-layered-image) + .section-darker {
    padding-top: 8rem;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-feature-settings: "ss02" on;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--sky-800);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 8px 24px rgba(2, 74, 112, 0.25);
  transform: translateY(-2px);
}

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

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-navy);
}

.btn-outline {
  background: #fff;
  color: var(--brand-navy);
  border: 1px solid var(--brand-navy);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--sky-50);
  border-color: var(--sky-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active {
  transform: scale(0.98) translateY(0);
}

.btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-navy);
}

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

/* ============================================
   Image Placeholder
   ============================================ */
.image-placeholder {
  background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-50) 100%);
  border: 2px dashed var(--slate-300);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  padding: 2rem;
  transition: border-color 0.2s ease-out;
}

.image-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
}

.image-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.aspect-1-1 { aspect-ratio: 1/1; }
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-4-5 { aspect-ratio: 4/5; }
.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-2-3 { aspect-ratio: 2/3; }

/* Image containers for real images */
.img-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--slate-100);
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card images - flat bottom to connect with card body */
.card-image .img-container {
  border-radius: 0;
}

/* ============================================
   Cards
   ============================================ */
.card {
  display: block;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.card-clickable { cursor: pointer; }

.card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-clickable:active {
  transform: translateY(-2px);
}

/* Coordinated hover effects */
.card-clickable .card-link {
  transition: gap 0.2s ease-out;
}

.card-clickable:hover .card-link {
  gap: 0.75rem;
}

.card-clickable .card-icon {
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.card-clickable:hover .card-icon {
  transform: scale(1.05);
  background: var(--sky-200);
}

.card-image {
  border-bottom: 1px solid var(--slate-100);
}

.card-image .image-placeholder {
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, var(--slate-200) 0%, var(--slate-100) 100%);
  color: var(--slate-400);
}

.card-body { padding: 1.5rem; }

@media (min-width: 768px) {
  .card-body { padding: 2rem; }
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--sky-100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-navy);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--slate-800);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .card h3 { font-size: 1.5rem; }
}

.card p {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange-600);
  font-weight: 500;
  transition: color 0.2s ease-out, gap 0.2s ease-out;
}

.card-link:hover { color: var(--orange-500); }

/* ============================================
   Feature Sections
   ============================================ */
.section {
  padding: 4rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

.section-alt {
  background: var(--slate-50);
}

.section-alt .vote-section {
  background: #fff;
  border-color: var(--slate-200);
}

.section-darker {
  background: var(--slate-100);
}

.feature-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-grid.reverse .feature-content { order: 2; }

@media (min-width: 768px) {
  .feature-grid.reverse .feature-content { order: 2; }
  .feature-grid.reverse .feature-image { order: 1; }
}

.feature-content h2 {
  font-size: 1.5rem;
  color: var(--slate-800);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .feature-content h2 { font-size: 1.875rem; }
}

.feature-content > p {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.feature-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--slate-600);
}

.feature-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23024A70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 0.125rem;
}

/* ============================================
   Vote Buttons (Micro Feedback)
   ============================================ */
.vote-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.vote-question {
  font-family: var(--font-heading);
  font-feature-settings: "ss02" on;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
}

.vote-buttons {
  display: flex;
  gap: 0.75rem;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-heading);
  font-feature-settings: "ss02" on;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #fff;
  border: 2px solid var(--slate-300);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-out;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}

.vote-btn:hover:not(.voted):not(.disabled) {
  border-color: var(--brand-navy);
  background: var(--sky-50);
  color: var(--brand-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.vote-btn.vote-down:hover:not(.voted):not(.disabled) {
  border-color: var(--orange-500);
  background: var(--orange-50);
  color: var(--orange-600);
}

.vote-btn:active:not(.voted):not(.disabled) {
  transform: scale(0.98) translateY(0);
}

.vote-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-navy);
}

.vote-btn.voted.vote-up {
  border-color: var(--brand-navy);
  background: var(--sky-100);
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px var(--brand-navy);
}

.vote-btn.voted.vote-down {
  border-color: var(--orange-500);
  background: var(--orange-100);
  color: var(--orange-600);
  box-shadow: inset 0 0 0 1px var(--orange-500);
}

.vote-btn.dimmed {
  opacity: 0.4;
  border-color: var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-400);
}

.vote-btn.dimmed:hover {
  opacity: 0.7;
  border-color: var(--slate-300);
  transform: none;
  box-shadow: none;
}

.vote-btn svg,
.vote-btn span {
  pointer-events: none;
}

.vote-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease-out;
}

.vote-btn:hover:not(.voted):not(.disabled) svg {
  transform: scale(1.1);
}

.vote-feedback {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.3s ease-out;
}

.vote-feedback svg {
  width: 1rem;
  height: 1rem;
  color: var(--green-500);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-200), transparent);
  margin: 2rem 0;
}

/* Vote section for dark backgrounds */
.vote-section-dark {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.vote-section-dark .vote-question { color: var(--sky-100); }

.vote-section-dark .vote-btn {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.vote-section-dark .vote-btn:hover:not(.voted):not(.disabled) {
  background: rgba(255,255,255,0.2);
  border-color: var(--brand-sky);
  color: #fff;
}

.vote-section-dark .vote-btn.voted.vote-up {
  border-color: var(--brand-sky);
  background: rgba(116, 212, 255, 0.2);
  color: var(--brand-sky);
}

.vote-section-dark .vote-btn.voted.vote-down {
  border-color: var(--orange-400);
  background: rgba(251, 146, 60, 0.2);
  color: var(--orange-300);
}

.vote-section-dark .vote-feedback { color: var(--sky-200); }

/* Text input for negative feedback */
.vote-text-input {
  margin-top: 1rem;
  display: none;
}

.vote-text-input.show {
  display: block;
  animation: fadeInUp 0.3s ease-out forwards;
}

.vote-text-input label {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
}

.vote-text-input-group {
  display: flex;
  gap: 0.5rem;
}

.vote-text-input input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.vote-text-input input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px var(--sky-100);
}

.vote-text-input button {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--slate-700);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.vote-text-input button:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
}

.vote-text-input button:active {
  transform: scale(0.98);
}

/* ============================================
   Waitlist Form
   ============================================ */
.waitlist-form {
  width: 100%;
  max-width: 28rem;
}

.waitlist-form-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .waitlist-form-inner {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.waitlist-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-feature-settings: "ss02" on;
  font-size: 1rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  box-shadow: var(--shadow-sm);
}

.hero .waitlist-form {
  max-width: none;
}

.hero .waitlist-form-inner > div {
  flex: 1;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px var(--sky-100);
}

.waitlist-form .error-msg {
  font-size: 0.875rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.waitlist-form .supporting-text {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

.waitlist-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  border-radius: 0.5rem;
  animation: fadeInUp 0.3s ease-out;
}

.waitlist-success svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-navy);
  flex-shrink: 0;
}

.waitlist-success p { margin: 0; }
.waitlist-success .title { font-weight: 500; color: var(--slate-800); }
.waitlist-success .subtitle { font-size: 0.875rem; color: var(--slate-600); }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  text-align: center;
  padding: 5rem 0 4rem;
  background: var(--slate-50);
  position: relative;
}

@media (min-width: 768px) {
  .cta-section { padding: 6rem 0; }
}

/* Dark CTA section variant */
.cta-section.cta-section-dark {
  background: var(--slate-800);
}

.cta-section-dark h2 { color: #fff; }

.cta-section-dark > p,
.cta-section-dark .container-narrow > p {
  color: var(--slate-300);
}

.cta-section-dark .waitlist-form input[type="email"] {
  background: var(--slate-700);
  border-color: var(--slate-600);
  color: #fff;
}

.cta-section-dark .waitlist-form input[type="email"]::placeholder {
  color: var(--slate-400);
}

.cta-section-dark .waitlist-form input[type="email"]:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 3px rgba(116, 212, 255, 0.2);
}

.cta-section-dark .waitlist-form .supporting-text { color: var(--slate-400); }

.cta-section.cta-section-dark .waitlist-form .btn-primary {
  background: #fff;
  color: var(--slate-800);
}

.cta-section.cta-section-dark .waitlist-form .btn-primary:hover {
  background: var(--slate-100);
}

.cta-section-dark .waitlist-success {
  background: var(--slate-700);
  border-color: var(--slate-600);
}

.cta-section-dark .waitlist-success .title { color: #fff; }
.cta-section-dark .waitlist-success .subtitle { color: var(--slate-300); }

.cta-section h2 {
  font-size: 1.5rem;
  color: var(--slate-800);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-section h2 { font-size: 1.875rem; }
}

.cta-section > p,
.cta-section .container-narrow > p {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  text-wrap: balance;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--slate-800);
  color: var(--slate-300);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  transition: opacity 0.2s ease-out;
}

.footer-brand .footer-logo:hover { opacity: 0.8; }

.footer-brand .logomark { height: 3.5rem; width: auto; }
.footer-brand .logotype { height: 2.75rem; width: auto; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-300);
  transition: color 0.2s ease-out;
}

.footer-links a:hover { color: var(--brand-sky); }

.footer-contact p {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.footer-contact a {
  color: var(--brand-sky);
  transition: color 0.2s ease-out;
}

.footer-contact a:hover { color: var(--sky-300); }

.footer-bottom {
  border-top: 1px solid var(--slate-700);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-400);
}

/* ============================================
   Persona Cards Grid
   ============================================ */
.persona-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .persona-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Results Page
   ============================================ */
.results-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.results-header { margin-bottom: 2rem; }

.results-header h1 {
  font-size: 1.875rem;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.results-header p { color: var(--slate-600); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.summary-card .label {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.summary-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-800);
}

.summary-card .value.positive { color: var(--green-600); }
.summary-card .value.negative { color: var(--orange-600); }

.results-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.5rem;
}

.results-tab {
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-feature-settings: "ss02" on;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--slate-500);
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.15s ease-out;
}

.results-tab:hover {
  color: var(--slate-700);
  background: var(--slate-100);
}

.results-tab.active {
  color: var(--brand-navy);
  background: var(--sky-100);
}

.results-view.hidden {
  display: none;
}

.results-table-wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.results-table th,
.results-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.results-table th {
  background: var(--slate-50);
  font-weight: 600;
  color: var(--slate-700);
}

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

.results-table tr {
  transition: background 0.15s ease-out;
}

.results-table tr:hover td { background: var(--slate-50); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-up {
  background: var(--sky-100);
  color: var(--brand-navy);
}

.badge-down {
  background: var(--orange-100);
  color: var(--orange-700);
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--slate-700);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-out;
  box-shadow: var(--shadow-sm);
}

.export-btn:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.export-btn:active {
  transform: scale(0.98);
}

/* Results Page - Section Cards */
.results-page-section {
  margin-bottom: 2.5rem;
}

.results-page-section h2 {
  font-size: 1.25rem;
  color: var(--slate-700);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.results-cards {
  display: grid;
  gap: 1rem;
}

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

.result-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.result-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.3;
}

.approval-badge {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
}

.approval-badge.high {
  background: var(--green-50);
  color: var(--green-600);
}

.approval-badge.medium {
  background: var(--amber-100);
  color: var(--amber-500);
}

.approval-badge.low {
  background: var(--orange-100);
  color: var(--orange-600);
}

.result-card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.result-card-stats .stat {
  display: flex;
  flex-direction: column;
}

.result-card-stats .stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-800);
}

.result-card-stats .stat-value.positive {
  color: var(--green-600);
}

.result-card-stats .stat-value.negative {
  color: var(--orange-600);
}

.result-card-stats .stat-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-card-bar {
  height: 0.5rem;
  background: var(--slate-100);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.result-card-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-navy), var(--sky-600));
  border-radius: 9999px;
  transition: width 0.3s ease-out;
}

.result-card-date {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.no-data {
  color: var(--slate-400);
  font-style: italic;
  grid-column: 1 / -1;
}

.access-denied {
  text-align: center;
  padding: 4rem 2rem;
}

.access-denied h1 {
  font-size: 1.5rem;
  color: var(--slate-800);
  margin-bottom: 1rem;
}

.access-denied p {
  color: var(--slate-600);
  margin-bottom: 2rem;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--slate-500);
}

.loading::after {
  content: "";
  animation: pulse 1.5s infinite;
}

/* ============================================
   Admin Login Form
   ============================================ */
.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 22rem;
  margin: 0 auto;
}

.login-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-feature-settings: "ss02" on;
  font-size: 1rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  box-shadow: var(--shadow-sm);
}

.login-field input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px var(--sky-100);
}

.login-btn {
  width: 100%;
}

.login-error {
  font-size: 0.875rem;
  color: #ef4444;
  text-align: center;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.admin-user-email {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; }
.hidden { display: none !important; }

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