/* ===== RENTULSE REDESIGN CSS - Warm Editorial Theme ===== */
/* Completely new design system for conversion-optimal frontend */

:root {
  /* Base Colors - Warm Paper */
  --bg: #F5F0E8;
  --bg-alt: #EDE7DB;
  --bg-dark: #D4C9B8;

  /* Primary - Forest Green */
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark: #0F2818;
  --primary-muted: rgba(27, 67, 50, 0.12);

  /* Accent - Terracotta */
  --accent: #C65D3E;
  --accent-light: #D4846A;
  --accent-muted: rgba(198, 93, 62, 0.12);

  /* Gold / Success / Warmth */
  --warm: #D4A853;
  --warm-light: #E0BE6F;
  --warm-muted: rgba(212, 168, 83, 0.12);

  /* Text */
  --text: #1A1714;
  --text-secondary: #4A4339;
  --text-muted: #7A7267;

  /* Surface */
  --card: #FFFFFF;
  --card-border: #E0D8C8;
  --panel: #FAF7F1;

  /* States */
  --danger: #E04848;
  --warning: #F0A040;
  --success: #28A878;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,23,20,0.06);
  --shadow-md: 0 4px 16px rgba(26,23,20,0.08);
  --shadow-lg: 0 8px 40px rgba(26,23,20,0.12);
  --shadow-xl: 0 16px 64px rgba(26,23,20,0.16);
  --shadow-glow: 0 0 40px rgba(27,67,50,0.15);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }
h5 { font-size: 17px; line-height: 1.35; }
h6 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-family: var(--font-body); }

/* ===== HEADER / NAV ===== */
.site-header,
.container .header-wrap {
  background: rgba(245, 240, 232, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: none !important;
}

.container .header-wrap.scrolled {
  box-shadow: var(--shadow-sm) !important;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.site-logo:hover { transform: scale(1.04); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 200ms ease;
  font-family: var(--font-body);
  white-space: nowrap;
}

.nav-btn:hover { color: var(--text); background: rgba(27,67,50,0.06); }
.nav-btn.active { color: var(--primary); background: var(--primary-muted); }

.nav-btn svg { width: 16px; height: 16px; }

/* User nav group */
.nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--card-border);
}

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform 200ms ease;
}

.nav-avatar:hover { transform: scale(1.1); }

/* Trust chip in nav */
.trust-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--warm-muted);
  border: 1.5px solid rgba(212,168,83,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warm);
  cursor: pointer;
  transition: all 200ms ease;
}

.trust-chip:hover {
  background: rgba(212,168,83,0.2);
  border-color: rgba(212,168,83,0.5);
  transform: translateY(-1px);
}

.trust-chip svg { width: 13px; height: 13px; }

/* Logout button */
.nav-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 200ms ease;
  color: var(--text-muted);
}

.nav-logout:hover { background: rgba(224,72,72,0.08); color: var(--danger); }
.nav-logout svg { width: 18px; height: 18px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.hamburger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 300ms ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ===== HERO SECTION ===== */
.hero-new {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--primary) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--accent) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-gradient-orb-1 {
  position: absolute;
  top: -15%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary-muted), transparent 70%);
  filter: blur(80px);
  animation: heroFloat 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-gradient-orb-2 {
  position: absolute;
  bottom: -10%; right: -8%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-muted), transparent 70%);
  filter: blur(60px);
  animation: heroFloat 25s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-20px, 40px); }
  75% { transform: translate(-40px, -10px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "hero-left  hero-right"
    "hero-cta   hero-right";
  column-gap: 64px;
  row-gap: 24px;
  align-items: start;
}

/* Left column — message */
.hero-left {
  grid-area: hero-left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CTA row: form + proof — sits in left column on desktop */
.hero-cta-row {
  grid-area: hero-cta;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-muted);
  border: 1px solid rgba(27,67,50,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
  animation: fadeInUp 600ms ease both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
  animation: fadeInUp 600ms 80ms ease both;
}

.hero-title .accent-word {
  background: linear-gradient(135deg, var(--accent), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  animation: fadeInUp 600ms 160ms ease both;
}

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

/* Hero inline conversion form */
.hero-form {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 600ms 240ms ease both;
}

.hero-form .phone-input-wrap {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.hero-form input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 2px solid var(--card-border);
  border-radius: 14px;
  background: var(--card);
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  transition: all 200ms ease;
  outline: none;
}

.hero-form input[type="tel"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-muted);
}

.hero-form input[type="tel"]::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.hero-form .btn-convert {
  height: 52px;
  padding: 0 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 200ms ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(27,67,50,0.25);
}

.hero-form .btn-convert:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27,67,50,0.35);
}

/* Social proof under hero form */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeInUp 600ms 320ms ease both;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-proof-item svg { width: 14px; height: 14px; color: var(--success); }

/* Hero avatar stack */
.hero-avatar-stack {
  display: flex;
  margin-right: 4px;
}

.hero-avatar-stack span {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
}

.hero-avatar-stack span:nth-child(1) { background: var(--primary); z-index: 3; }
.hero-avatar-stack span:nth-child(2) { background: var(--accent); z-index: 2; }
.hero-avatar-stack span:nth-child(3) { background: var(--warm); z-index: 1; }

/* Right column: trust card — spans both rows on desktop */
.hero-right {
  grid-area: hero-right;
  position: relative;
  display: flex;
  justify-content: center;
  align-self: center;
  animation: fadeInUp 800ms 200ms ease both;
}

.trust-card-3d {
  position: relative;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: visible;
  box-shadow: var(--shadow-lg);
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg);
  transition: transform 500ms ease;
}

.trust-card-3d:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
  box-shadow: var(--shadow-xl);
}

.trust-card-header {
  padding: 24px 28px 0 28px;
}

.trust-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.trust-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

/* Score ring */
.trust-ring-outer {
  display: flex;
  justify-content: center;
  padding: 20px 16px;
  position: relative;
}

.trust-svg-ring {
  width: 180px;
  height: 180px;
  animation: trustScoreReveal 1200ms 400ms ease both;
}

@keyframes trustScoreReveal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.trust-svg-ring .ring-bg {
  fill: none;
  stroke: var(--bg-alt);
  stroke-width: 12;
}

.trust-svg-ring .ring-fill {
  fill: none;
  stroke: url(#trustGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502; /* JS will animate to correct value */
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1500ms ease;
}

.trust-center-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.trust-score-number {
  font-size: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.trust-score-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Trust card breakdowns */
.trust-card-breakdown {
  padding: 4px 28px 8px 28px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.breakdown-row:last-child { border-bottom: none; }

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.breakdown-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.breakdown-icon.verified {
  background: rgba(39, 174, 96, 0.15);
  color: var(--success);
}

.breakdown-icon.pending {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.breakdown-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.trust-card-footer-section {
  padding: 4px 28px 20px 28px;
}

.trust-card-cta {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 200ms ease;
  text-align: center;
}

.trust-card-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}


/* ===== PROBLEM SECTION (Pain Points) ===== */
.section-problem {
  padding: 64px 32px;
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.problem-inner {
  max-width: 984px;
  margin: 0 auto;
}

.section-overline {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--warm-light);
  margin-bottom: 12px;
}

/* Fix overline visibility on light backgrounds */
.section-steps .section-overline,
.section-features .section-overline,
.section-role-split .section-overline,
.section-faq .section-overline {
  color: var(--primary);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  max-width: 640px;
  margin-bottom: 48px;
}

/* Dark backgrounds — white text */
.section-problem .section-title,
.section-cta .section-title {
  color: white;
}

/* Light backgrounds — dark text */
.section-steps .section-title,
.section-features .section-title,
.section-role-split .section-title,
.section-faq .section-title {
  color: var(--text);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.problem-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 300ms ease;
  position: relative;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--warm);
  opacity: 0;
  transition: opacity 300ms ease;
}

.problem-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.problem-card:hover::before { opacity: 1; }

.problem-emoji {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.problem-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  font-family: var(--font-body);
  line-height: 1.4;
}

.problem-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}

/* ===== HOW IT WORKS: TIMELINE ===== */
.section-steps {
  padding: 64px 32px;
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.steps-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.section-steps .section-title {
  color: var(--text);
  margin-bottom: 56px;
}

.timeline {
  position: relative;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--bg-alt);
}

.timeline-step {
  position: relative;
  padding: 0 0 40px 64px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 14px; top: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: var(--bg);
  z-index: 2;
}

.timeline-dot.active {
  background: var(--primary);
}

.timeline-step-num {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.timeline-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 10px;
  transition: all 300ms ease;
}

.timeline-step:hover {
  transform: translateX(4px);
  border-color: rgba(27,67,50,0.3);
  box-shadow: var(--shadow-md);
}

.timeline-step h4 {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text);
  margin: 0 0 6px;
}

.timeline-step p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}


/* ===== FEATURES: ASYMMETRIC GRID ===== */
.section-features {
  padding: 64px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
}

.features-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.section-features .section-title {
  margin-bottom: 48px;
}

.features-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-block {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
}

.feature-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 0 3px 0 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.feature-block:hover::after {
  opacity: 1;
}

.feature-block.primary-accent::after { background: var(--primary); }
.feature-block.warm-accent::after { background: var(--warm); }
.feature-block.accent-accent::after { background: var(--accent); }
.feature-block.success-accent::after { background: var(--success); }

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

.feature-icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon-box.fg-primary { background: var(--primary-muted); color: var(--primary); }
.feature-icon-box.fg-warm { background: var(--warm-muted); color: var(--warm); }
.feature-icon-box.fg-accent { background: var(--accent-muted); color: var(--accent); }
.feature-icon-box.fg-success { background: rgba(40,168,120,0.1); color: var(--success); }

.feature-icon-box svg { width: 24px; height: 24px; }

.feature-block h4 {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text);
  margin-bottom: 8px;
}

.feature-block p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}

/* Span across full width */
.feature-block.full-width {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}


/* ===== REDESIGNED BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: 12px;
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(27,67,50,0.25);
}

.btn.primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27,67,50,0.3);
}

.btn.terracotta {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(198,93,62,0.25);
}

.btn.terracotta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(198,93,62,0.35);
}

.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--card-border);
}

.btn.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-muted);
}

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

.btn.ghost:hover {
  border-color: var(--primary);
  border-style: solid;
  color: var(--primary);
  background: var(--primary-muted);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn.large {
  padding: 14px 28px;
  font-size: 15px;
  min-height: 48px;
}

.btn.small {
  padding: 6px 14px;
  font-size: 12px;
  min-height: 32px;
  border-radius: 8px;
}


/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 300ms ease;
  margin-bottom: 16px;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card.elevated {
  box-shadow: var(--shadow-md);
  border: none;
}

.card.compact { padding: 16px 20px; }


/* ===== FORM INPUTS ===== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  transition: all 200ms ease;
  outline: none;
  min-height: 44px;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-muted);
}

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

.form-input.error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(224,72,72,0.1) !important;
}

.form-input.success {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(40,168,120,0.1) !important;
}

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

select.form-input {
  appearance: none;
  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='%237A7267' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

/* ===== ROLE SELECTION: TENANT / LANDLORD ===== */
.section-role-split {
  padding: 64px 32px;
  background: var(--panel);
}

.role-split-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Role toggle — hidden on desktop, shown on mobile */
.role-toggle-wrap {
  display: none;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  margin-bottom: 28px;
}

.role-toggle-btn {
  padding: 10px 28px;
  border: 1.5px solid var(--card-border);
  background: var(--card);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 200ms ease;
  font-family: var(--font-body);
}

.role-toggle-btn.tenant.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.role-toggle-btn.landlord.active {
  background: var(--warm);
  border-color: var(--warm);
  color: white;
}

.role-toggle-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile behavior: show toggle, hide non-active card */
@media (max-width: 1024px) {
  .role-toggle-wrap {
    display: flex;
  }

  .role-cards-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .role-card {
    transition: all 300ms ease;
  }

  /* Hide non-active cards on mobile */
  .role-cards-grid.tenant-active .role-card.landlord,
  .role-cards-grid.landlord-active .role-card.tenant {
    display: none;
  }
}

/* If no data-role attribute on cards (desktop), always show both */
@media (min-width: 1025px) {
  .role-cards-grid .role-card {
    display: block !important;
  }
}

.role-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.role-card {
  position: relative;
  padding: 32px;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 300ms ease;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.role-card.tenant::before {
  background: linear-gradient(175deg, var(--primary-muted), transparent 60%);
}

.role-card.landlord::before {
  background: linear-gradient(175deg, var(--warm-muted), transparent 60%);
}

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

.role-card-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative;
}

.role-card.tenant .role-card-tag { background: var(--primary-muted); color: var(--primary); }
.role-card.landlord .role-card-tag { background: var(--warm-muted); color: var(--warm); }

.role-card h3 {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
}

.role-card > p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

.role-checks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.role-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.role-checks li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.role-card.tenant .role-checks li svg { color: var(--primary); }
.role-card.landlord .role-checks li svg { color: var(--warm); }


/* ===== FAQ SECTION ===== */
.section-faq {
  padding: 64px 32px;
  background: var(--panel);
}

.faq-inner {
  max-width: 960px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--card-border);
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-question {
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 200ms ease;
}

.faq-question:hover { color: var(--primary); }

.faq-item.open .faq-question { color: var(--primary); }

.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 300ms ease;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-answer-inner {
  padding-bottom: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 400px; }


/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 40px 32px;
  text-align: center;
  margin-top: auto;
}

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

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer a:hover { color: white; }

.site-footer { display: none; }
.site-footer p { margin: 0; font-size: 13px; }

/* ===== SLEEK FOOTER ===== */
.footer-sleek {
  text-align: center;
  padding: 12px 32px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-sleek .fs {
  margin: 0 6px;
  color: var(--bg-alt);
}

.footer-sleek a {
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
}

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

@media (max-width: 480px) {
  .footer-sleek {
    padding: 10px 16px;
    font-size: 11px;
  }
  .footer-sleek .fs { margin: 0 4px; }
}

/* Footer bottom bar */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}


/* ===== CTA BANNER SECTION ===== */
.section-cta {
  padding: 80px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,83,0.15), transparent 70%);
  filter: blur(80px);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-inner h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-form input[type="tel"] {
  width: 280px;
  height: 48px;
  padding: 0 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
  transition: all 200ms ease;
}

.cta-form input[type="tel"]::placeholder { color: rgba(255,255,255,0.5); }
.cta-form input[type="tel"]:focus { border-color: var(--warm); background: rgba(255,255,255,0.15); }

.cta-form .btn {
  background: white;
  color: var(--primary);
  height: 48px;
  padding: 0 24px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-form .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }


/* ===== LOGIN / SIGNUP CARDS ===== */
.auth-page-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px var(--primary-muted);
}

.auth-icon svg {
  width: 26px;
  height: 26px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  font-family: var(--font-body);
}

.auth-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Form layout */
.auth-form,
.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
}

.form-group-sm .auth-input { min-width: 0; }

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--card);
  color: var(--text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

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

select.auth-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: var(--card) 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='%238B8172' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 32px !important;
  cursor: pointer;
}

/* Phone field with prefix */
.phone-field {
  display: flex;
  gap: 8px;
}

.phone-field .prefix-input {
  flex: 0 0 72px;
  text-align: center;
  font-weight: 600;
  background: var(--warm-muted);
  cursor: default;
}

.phone-field .main-input {
  flex: 1;
}

/* Buttons */
#otpPhoneStep > .auth-btn {
  margin-top: 24px;
}

#otpPhoneStep {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms ease;
  position: relative;
}

.auth-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-btn.small svg {
  width: 14px;
  height: 14px;
}

/* Pulse loader for button loading state */
.auth-btn .pulse-loader {
  width: 60px !important;
  height: 20px !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.auth-btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px var(--primary-muted);
}

.auth-btn.primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--primary-muted);
}

.auth-btn.outline {
  background: transparent;
  border: 1.5px solid var(--card-border);
  color: var(--text);
}

.auth-btn.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.auth-btn.small {
  height: 40px;
  font-size: 13px;
  font-weight: 600;
}

/* Consent box */
.consent-box {
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}

.consent-item input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-item a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* OTP section */
.otp-section {
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-muted), rgba(212,168,83,0.08));
  border-radius: 16px;
  border: 1px solid rgba(27,67,50,0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.otp-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.otp-code-input {
  width: 100%;
  height: 52px;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 8px;
  font-size: 22px;
  font-weight: 700;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  outline: none;
  font-family: var(--font-mono);
}

.otp-code-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

.otp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* OTP header (login step 2) */
.otp-header {
  text-align: center;
  margin-bottom: 24px;
}

.otp-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px var(--primary-muted);
}

.otp-icon svg { width: 26px; height: 26px; }

.otp-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  font-family: var(--font-body);
}

.otp-phone-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

/* OTP digit inputs */
.otp-digits {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.otp-digit-input {
  width: 48px;
  height: 56px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--card-border);
  border-radius: 12px;
  outline: none;
  transition: all 200ms ease;
  font-family: var(--font-mono);
}

.otp-digit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
  transform: scale(1.05);
}

.otp-timer-row {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Link & footer */
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-family: var(--font-body);
  font-size: inherit;
}

.link-btn:hover { color: var(--primary-light); }

.change-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: var(--font-body);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-message {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  min-height: 18px;
}
/* ===== DASHBOARD ===== */
.dashboard-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px;
}

.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--primary-muted), var(--warm-muted));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  margin-bottom: 28px;
}

.dash-welcome h2 { font-size: 24px; margin: 0 0 4px; }
.dash-welcome p { font-size: 14px; color: var(--text-muted); margin: 0; }

.dash-score-compact {
  display: flex; align-items: center; gap: 10px;
}

.dash-score-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; font-family: var(--font-display);
}

.dash-score-label .val {
  font-size: 16px; font-weight: 700; color: var(--text);
  font-family: var(--font-display);
}

.dash-score-label .sub { font-size: 11px; color: var(--text-muted); }

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 28px;
}

.dash-stat {
  padding: 20px 24px; background: var(--card);
  border: 1px solid var(--card-border); border-radius: 14px;
  transition: all 300ms ease;
}

.dash-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.dash-stat-overline {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px;
}

.dash-stat-value {
  font-size: 32px; font-weight: 700; font-family: var(--font-display); color: var(--text);
}

.dash-stat-footer { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===== PROPERTY / LISTING CARDS ===== */
.listing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}

.listing-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden; transition: all 300ms ease;
}

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

.listing-card-accent {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, var(--primary-muted), var(--bg-alt));
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}

.listing-card-body { padding: 18px 20px; }
.listing-card-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-body); }
.listing-card-body .price {
  font-size: 18px; font-weight: 800; color: var(--primary);
  font-family: var(--font-display); margin-bottom: 8px;
}

.listing-card-details {
  display: flex; gap: 12px; font-size: 12px; color: var(--text-muted);
  padding: 12px 20px; border-top: 1px solid var(--bg-alt);
}

.listing-card-details svg { width: 14px; height: 14px; margin-right: 3px; }

/* ===== CHAT LAYOUT ===== */
.chat-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  height: calc(100vh - 140px); background: var(--card);
  border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden;
}

.chat-sidebar {
  background: var(--panel); border-right: 1px solid var(--card-border);
  display: flex; flex-direction: column;
}

.chat-sidebar-header { padding: 20px; border-bottom: 1px solid var(--card-border); }
.chat-sidebar-header h3 { font-size: 16px; font-weight: 700; margin: 0; font-family: var(--font-body); }

.chat-conversations { flex: 1; overflow-y: auto; padding: 8px; }

.chat-conversation {
  padding: 12px 16px; border-radius: 12px; cursor: pointer;
  transition: all 200ms ease; display: flex; align-items: center; gap: 12px;
}

.chat-conversation:hover { background: var(--primary-muted); }
.chat-conversation.active { background: var(--primary-muted); }

.chat-list-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}

.chat-conversation-name { font-weight: 600; font-size: 14px; color: var(--text); }

.chat-conversation-preview {
  font-size: 12px; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.chat-main { display: flex; flex-direction: column; }
.chat-main-header {
  padding: 16px 24px; border-bottom: 1px solid var(--card-border);
  display: flex; align-items: center; gap: 12px;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
}

.chat-bubble {
  max-width: 60%; padding: 10px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.5;
}

.chat-bubble.sent {
  align-self: flex-end; background: var(--primary); color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble.received {
  align-self: flex-start; background: var(--bg-alt); color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  padding: 12px 20px; border-top: 1px solid var(--card-border);
  display: flex; gap: 8px; align-items: center;
}

.chat-input-area .form-input { border-radius: 100px; padding: 0 20px; }

.chat-send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms ease; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27,67,50,0.3);
}

.chat-send-btn:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(27,67,50,0.4); }

/* ===== MISCELLANEOUS ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  border: 2px dashed var(--card-border); border-radius: 16px; background: var(--panel);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; font-family: var(--font-body); }
.empty-state-text { font-size: 14px; max-width: 360px; margin: 0 auto; }

.review-item {
  padding: 16px 20px; background: var(--card); border-radius: 12px; border-left: 3px solid var(--primary);
  margin-bottom: 10px; transition: all 300ms ease;
}

.review-item:hover { transform: translateX(4px); background: var(--panel); }

.stars-row { display: flex; gap: 3px; margin-bottom: 6px; }
.star { color: var(--warm); font-size: 16px; }
.star.empty { color: var(--bg-alt); }

.otp-input-wrap { display: flex; gap: 8px; justify-content: center; }

.otp-input {
  width: 44px; height: 52px; text-align: center; font-size: 20px; font-weight: 700;
  border: 2px solid var(--card-border); border-radius: 12px; background: var(--card);
  color: var(--text); transition: all 200ms ease; outline: none;
}

.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-muted); transform: scale(1.05); }

.spinner {
  width: 20px; height: 20px; border: 3px solid var(--primary-muted);
  border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite;
}

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

.page { display: none; }
.page.active { display: block !important; animation: pageIn 300ms ease; }

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

@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--bg) 50%, var(--bg-alt) 75%);
  background-size: 800px 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 300px !important;
    column-gap: 28px !important;
    row-gap: 20px !important;
    padding: 48px 24px 40px 24px !important;
    align-items: start !important;
  }

  /* Force CTA row to always span both columns */
  .hero-cta-row {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  /* Trust card stays in right column, both rows */
  .hero-right {
    grid-column: 2 !important;
    grid-row: 1 / 2 !important;
  }

  .hero-right {
    align-self: center;
  }

  .trust-card-3d {
    width: 100%;
    transform: none;
  }

  .features-2col {
    grid-template-columns: 1fr;
  }

  .feature-block.full-width {
    grid-template-columns: 1fr;
  }

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

  .chat-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 100px);
  }

  .chat-sidebar {
    display: none;
  }

  .chat-layout.show-sidebar .chat-sidebar { display: flex; }
  .chat-layout:not(.show-sidebar) .chat-main { display: none; }
}

@media (max-width: 768px) {
  .header-inner { padding: 10px 16px; }

  .nav-links {
    position: fixed;
    top: 58px;
    left: 0; right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    margin-left: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 300ms ease;
    z-index: 899;
  }

  .nav-links.active { transform: translateX(0); }

  .nav-group {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--card-border);
    padding-top: 12px;
    margin-top: 8px;
  }

  .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .hamburger { display: flex; }

  .hero-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-form .phone-input-wrap { max-width: none; }

  .hero-proof { flex-wrap: wrap; gap: 12px; }

  .section-problem { padding: 64px 20px; }
  .section-steps { padding: 64px 20px; }
  .section-features { padding: 64px 20px; }
  .section-role-split { padding: 64px 20px; }
  .section-faq { padding: 64px 20px; }
  .section-cta { padding: 64px 20px; }

  .problems-grid { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }

  .cta-form { flex-direction: column; }
  .cta-form input[type="tel"], .cta-form .btn { width: 100%; }

  .site-footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .dash-welcome {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-new .footer-container {
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 12px;
    align-items: flex-start;
  }

  .footer-new .footer-nav-inline {
    justify-content: flex-start;
    gap: 16px;
  }
}

/* ===== MOBILE HERO & TRUST CARD — PROPER RESPONSIVE (no zoom hacks) ===== */

/* 768px and below: two-column top, full-width CTA row below */
@media (max-width: 768px) {
  .hero-new {
    padding-top: 0 !important;
    min-height: auto !important;
  }

  .hero-content {
    grid-template-columns: 1fr 176px !important;
    column-gap: 12px !important;
    row-gap: 16px !important;
    padding: 20px 16px 28px 16px !important;
    align-items: start !important;
  }

  /* CTA row spans both cols — phone input + button get full width */
  .hero-cta-row {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .hero-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .hero-title { font-size: 26px !important; line-height: 1.15 !important; }
  .hero-subtitle { font-size: 13px !important; }

  .hero-right {
    align-self: center !important;
  }

  /* The card itself — scaled through actual CSS, not zoom */
  .trust-card-3d {
    width: 100% !important;
    border-radius: 14px !important;
    transform: none !important;
    box-shadow: 0 4px 20px rgba(26,23,20,0.10) !important;
  }

  .trust-card-header { padding: 14px 14px 0 14px !important; }
  .trust-card-label { font-size: 8px !important; }
  .trust-card-name { font-size: 13px !important; margin-top: 2px !important; }

  .trust-ring-outer {
    padding: 10px 8px !important;
  }

  .trust-svg-ring {
    width: 100px !important;
    height: 100px !important;
  }

  .trust-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
  }

  .trust-score-number { font-size: 26px !important; line-height: 1 !important; }
  .trust-score-sub { font-size: 9px !important; margin-top: 1px !important; }

  .trust-card-breakdown { padding: 2px 12px 4px 12px !important; }
  .breakdown-row { padding: 5px 0 !important; }
  .breakdown-label { font-size: 9px !important; gap: 5px !important; }
  .breakdown-icon { width: 13px !important; height: 13px !important; font-size: 7px !important; border-radius: 3px !important; }
  .breakdown-value { font-size: 9px !important; }

  .trust-card-footer-section { padding: 2px 12px 12px 12px !important; }
  .trust-card-cta { padding: 8px !important; font-size: 10px !important; border-radius: 8px !important; }

  /* CTA row: hero-form spans full width now */
  .hero-cta-row {
    gap: 12px !important;
  }

  .hero-form {
    flex-direction: row !important;
    align-items: center !important;
  }

  .hero-form .phone-input-wrap {
    flex: 1 !important;
    max-width: none !important;
  }

  .hero-proof { flex-wrap: wrap; gap: 10px; }
}

/* 480px and below: card column shrinks, CTA still spans full width */
@media (max-width: 480px) {
  .hero-content {
    grid-template-columns: 1fr 152px !important;
    column-gap: 10px !important;
    row-gap: 12px !important;
    padding: 12px 12px 20px 12px !important;
  }

  /* Still span full width on tiny screens */
  .hero-cta-row {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .hero-title { font-size: 22px !important; line-height: 1.15 !important; }
  .hero-subtitle { font-size: 12px !important; line-height: 1.5 !important; }

  /* Tiny card */
  .trust-card-3d {
    width: 100% !important;
    border-radius: 12px !important;
  }

  .trust-card-header { padding: 10px 10px 0 10px !important; }
  .trust-card-label { font-size: 7px !important; }
  .trust-card-name { font-size: 11px !important; margin-top: 1px !important; }

  .trust-ring-outer { padding: 8px 6px !important; }
  .trust-svg-ring { width: 88px !important; height: 88px !important; }
  .trust-score-number { font-size: 22px !important; line-height: 1 !important; }
  .trust-score-sub { font-size: 8px !important; }

  .trust-card-breakdown { padding: 2px 10px 2px 10px !important; }
  .breakdown-row { padding: 4px 0 !important; }
  .breakdown-label { font-size: 8px !important; gap: 4px !important; }
  .breakdown-icon { width: 12px !important; height: 12px !important; font-size: 6px !important; }
  .breakdown-value { font-size: 8px !important; }

  .trust-card-footer-section { padding: 2px 10px 10px 10px !important; }
  .trust-card-cta { padding: 7px !important; font-size: 9px !important; border-radius: 7px !important; }

  /* CTA row: phone input and button stack vertically on tiny screens */
  .hero-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero-proof { display: none !important; }

  .role-card { padding: 24px; }
  .auth-card { padding: 24px; margin: 0 12px; }

  .footer-new .footer-container { padding: 16px 16px 8px; }
  .footer-new .footer-nav-inline { gap: 12px; }
}
