/* ================================================================
   RECHNER SHOWCASE — SHARED STYLES
   Light Theme: White/Gray BG, Teal Primary, Navy Text
   Fonts: Bricolage Grotesque (UI), Instrument Serif (Headlines), JetBrains Mono (Numbers)
================================================================ */

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

:root {
  /* Teal Primary */
  --r-primary: #0F766E;
  --r-primary-light: #0D9488;
  --r-primary-dark: #115E59;
  --r-primary-50: rgba(15, 118, 110, 0.07);
  --r-primary-glow: rgba(15, 118, 110, 0.12);
  --r-primary-glow-strong: rgba(15, 118, 110, 0.2);

  /* Gold Accent */
  --r-gold: #B45309;
  --r-gold-light: #D97706;
  --r-gold-dark: #92400E;
  --r-gold-50: rgba(180, 83, 9, 0.07);

  /* Light backgrounds */
  --r-bg: #F8FAFB;
  --r-bg-secondary: #FFFFFF;
  --r-bg-tertiary: #F1F5F9;
  --r-bg-card: #FFFFFF;
  --r-bg-card-hover: #F8FAFB;

  /* Borders */
  --r-border: rgba(15, 23, 42, 0.08);
  --r-border-hover: rgba(15, 23, 42, 0.15);

  /* Text */
  --r-text: #0F172A;
  --r-text-secondary: rgba(15, 23, 42, 0.65);
  --r-text-muted: rgba(15, 23, 42, 0.4);

  /* Status */
  --r-success: #16A34A;
  --r-warning: #D97706;
  --r-danger: #DC2626;

  /* Typography */
  --r-font-ui: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  --r-font-hero: 'Instrument Serif', Georgia, serif;
  --r-font-mono: 'JetBrains Mono', 'SF Mono', monospace;

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

  /* Layout */
  --r-container: 1100px;
  --r-padding: 1.5rem;

  /* Radii */
  --r-radius-sm: 8px;
  --r-radius-md: 12px;
  --r-radius-lg: 16px;
  --r-radius-xl: 24px;
  --r-radius-pill: 9999px;

  /* Shadows */
  --r-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --r-shadow-glow: 0 0 40px var(--r-primary-glow);

  /* Glass */
  --r-glass-bg: rgba(255, 255, 255, 0.7);
  --r-glass-border: rgba(15, 23, 42, 0.06);

  /* Transition */
  --r-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--r-font-ui);
  background: var(--r-bg);
  color: var(--r-text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--r-primary); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.r-container {
  max-width: var(--r-container);
  margin: 0 auto;
  padding: 0 var(--r-padding);
}

h1, h2, h3, h4 {
  font-family: var(--r-font-ui);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ================================================================
   NAVIGATION (simplified for rechner pages)
================================================================ */
.r-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--r-padding);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--r-border);
}

.r-nav-inner {
  max-width: var(--r-container);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.r-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.r-nav-logo .logo-icon {
  width: 30px; height: 30px;
  background: var(--r-primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.r-nav-logo .logo-icon svg {
  width: 16px; height: 16px;
  color: #fff;
}

.r-nav-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--r-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.r-nav-back:hover { color: var(--r-text); }
.r-nav-back svg { width: 16px; height: 16px; }

/* ================================================================
   SHOWCASE HERO
================================================================ */
.showcase-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.showcase-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(15, 118, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-radius-pill);
  background: var(--r-primary-50);
  border: 1px solid rgba(13, 148, 136, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--r-primary-light);
  margin-bottom: var(--r-space-md);
}

.showcase-hero h1 {
  font-family: var(--r-font-hero);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--r-space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-hero h1 em {
  font-style: italic;
  color: var(--r-primary-light);
}

.showcase-hero .subline {
  font-size: 1.15rem;
  color: var(--r-text-secondary);
  max-width: 640px;
  margin: 0 auto var(--r-space-lg);
  line-height: 1.7;
}

/* Trust Pills */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--r-space-lg);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-radius-pill);
  background: var(--r-glass-bg);
  border: 1px solid var(--r-glass-border);
  font-size: 13px;
  color: var(--r-text-secondary);
  font-weight: 500;
}

.trust-pill svg {
  width: 14px; height: 14px;
  color: var(--r-primary-light);
  flex-shrink: 0;
}

/* ================================================================
   TOOL PREVIEW CARDS
================================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 0 var(--r-space-3xl);
}

.tool-card {
  background: var(--r-bg-card);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  padding: 32px 28px;
  transition: all 0.3s var(--r-ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--r-shadow);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--r-primary), var(--r-primary-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  border-color: var(--r-border-hover);
  background: var(--r-bg-card-hover);
  transform: translateY(-2px);
}

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

.tool-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--r-space-md);
}

.tool-card-icon.teal {
  background: var(--r-primary-50);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.tool-card-icon.gold {
  background: var(--r-gold-50);
  border: 1px solid rgba(212, 160, 23, 0.15);
}

.tool-card-icon.green {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.tool-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.95rem;
  color: var(--r-text-secondary);
  line-height: 1.6;
}

.tool-card .mockup-hint {
  margin-top: var(--r-space-md);
  padding: 16px;
  border-radius: var(--r-radius-sm);
  background: var(--r-bg-tertiary);
  border: 1px dashed var(--r-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--r-text-muted);
}

.tool-card .mockup-hint svg {
  width: 16px; height: 16px;
  opacity: 0.5;
}

/* Clickable tool cards (demo overview) */
.tool-card.clickable {
  cursor: pointer;
}

.tool-card.clickable:hover {
  border-color: var(--r-primary);
  box-shadow: 0 0 30px var(--r-primary-glow);
}

.tool-card .card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--r-space-md);
  padding: 10px 20px;
  border-radius: var(--r-radius-pill);
  background: var(--r-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--r-ease);
}

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

.tool-card.clickable:hover .card-btn {
  background: var(--r-primary-light);
  transform: translateX(4px);
}

/* ================================================================
   B2B GATE FORM
================================================================ */
.gate-section {
  padding: var(--r-space-3xl) 0;
  position: relative;
}

.gate-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--r-border), transparent);
}

.gate-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--r-bg-secondary);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.gate-box::after {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--r-primary), transparent);
}

.gate-box h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.gate-box .gate-sub {
  text-align: center;
  color: var(--r-text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--r-space-lg);
  line-height: 1.6;
}

.gate-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--r-text-secondary);
  letter-spacing: 0.02em;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--r-text-muted);
  font-size: 12px;
}

.form-input,
.form-select {
  padding: 12px 16px;
  border-radius: var(--r-radius-sm);
  border: 1.5px solid var(--r-border);
  background: #fff;
  color: var(--r-text);
  font-family: var(--r-font-ui);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

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

.form-input:focus,
.form-select:focus {
  border-color: var(--r-primary);
  box-shadow: 0 0 0 3px var(--r-primary-glow);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

/* Consent checkbox */
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

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

.consent-group label {
  font-size: 13px;
  color: var(--r-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.consent-group label a {
  color: var(--r-primary-light);
  text-decoration: underline;
}

/* Submit button */
.btn-gate {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--r-radius-sm);
  background: var(--r-primary);
  color: #fff;
  font-family: var(--r-font-ui);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--r-ease);
  margin-top: 8px;
}

.btn-gate:hover {
  background: var(--r-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--r-primary-glow-strong);
}

.btn-gate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gate-hint {
  text-align: center;
  font-size: 13px;
  color: var(--r-text-muted);
  margin-top: 12px;
}

/* ================================================================
   DEMO OVERVIEW
================================================================ */
.demo-header {
  padding: 120px 0 24px;
  text-align: center;
}

.demo-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-header h1 span { color: var(--r-primary-light); }

.demo-header p {
  color: var(--r-text-secondary);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: var(--r-space-xl) 0 var(--r-space-3xl);
}

/* ================================================================
   DEMO BANNER (sticky top)
================================================================ */
.demo-banner {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: rgba(15, 118, 110, 0.06);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px var(--r-padding);
  text-align: center;
  font-size: 13px;
  color: var(--r-text-secondary);
}

.demo-banner strong { color: var(--r-primary-light); font-weight: 600; }

/* ================================================================
   FUNNEL STEP SYSTEM
================================================================ */
.funnel-wrapper {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.funnel-step {
  position: absolute;
  top: 0; left: 0; right: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px var(--r-padding) 40px;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  visibility: hidden;
}

.funnel-step.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.funnel-step.exit {
  opacity: 0;
  transform: translateX(-30px);
}

/* Step 3 (results) may scroll */
.funnel-step.scrollable {
  min-height: auto;
  align-items: stretch;
  justify-content: flex-start;
}

/* ================================================================
   PROPERTY SHOWCASE CARD (Beispiel-Immobilie)
================================================================ */
.prop-card {
  background: var(--r-bg-secondary);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  padding: 32px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.prop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--r-primary), var(--r-primary-light));
}

.prop-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-radius-pill);
  background: var(--r-primary-50);
  border: 1px solid rgba(13, 148, 136, 0.15);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--r-primary-light);
  margin-bottom: 16px;
}

.prop-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.prop-card .prop-sub {
  font-size: 14px;
  color: var(--r-text-secondary);
  margin-bottom: 20px;
}

.prop-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.prop-stat {
  background: var(--r-bg);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-sm);
  padding: 14px 16px;
}

.prop-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--r-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.prop-stat-value {
  font-family: var(--r-font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--r-text);
}

/* Range slider with live value display */
.range-live {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-live-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.range-live-header label {
  font-size: 14px;
  font-weight: 600;
  color: var(--r-text-secondary);
}

.range-live-val {
  font-family: var(--r-font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--r-text);
}

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

/* Button group selector */
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group-item {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border-radius: var(--r-radius-sm);
  border: 1px solid var(--r-border);
  background: transparent;
  color: var(--r-text-secondary);
  font-family: var(--r-font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.btn-group-item:hover {
  border-color: var(--r-border-hover);
  color: var(--r-text);
  background: var(--r-bg-card);
}

.btn-group-item.active {
  border-color: var(--r-primary);
  background: var(--r-primary-50);
  color: var(--r-primary-light);
}

/* ================================================================
   CALCULATOR INPUT FORMS
================================================================ */
.calc-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.calc-form h2 {
  font-family: var(--r-font-hero);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.calc-form h2 em {
  font-style: italic;
  color: var(--r-primary-light);
}

.calc-form .calc-sub {
  text-align: center;
  color: var(--r-text-secondary);
  font-size: 1rem;
  margin-bottom: var(--r-space-xl);
  line-height: 1.6;
}

.calc-card {
  background: var(--r-bg-secondary);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  padding: 36px 32px;
}

.calc-card .form-group + .form-group { margin-top: 16px; }

.calc-card .input-with-unit {
  position: relative;
}

.calc-card .input-unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--r-font-mono);
  font-size: 14px;
  color: var(--r-text-muted);
  pointer-events: none;
}

.calc-card .form-input.has-unit {
  padding-right: 60px;
}

.btn-calc {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--r-radius-sm);
  background: var(--r-primary);
  color: #fff;
  font-family: var(--r-font-ui);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--r-ease);
  margin-top: var(--r-space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-calc:hover {
  background: var(--r-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--r-primary-glow-strong);
}

.btn-calc svg { width: 18px; height: 18px; }

/* Range slider */
.range-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-header label {
  font-size: 13px;
  font-weight: 600;
  color: var(--r-text-secondary);
}

.range-value {
  font-family: var(--r-font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--r-primary-light);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--r-primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--r-primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ================================================================
   LOADING SIMULATION
================================================================ */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.loading-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--r-border);
  border-top-color: var(--r-primary);
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 1.1rem;
  color: var(--r-text-secondary);
  font-weight: 500;
  min-height: 28px;
  transition: opacity 0.3s;
}

.loading-bar-wrap {
  width: 320px;
  max-width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  border: none;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--r-primary), var(--r-primary-light));
  transition: width 0.3s ease-out;
}

/* ================================================================
   KPI CARDS
================================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: var(--r-space-xl);
}

.kpi-card {
  background: var(--r-bg-secondary);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-md);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.kpi-card.teal::before { background: var(--r-primary); }
.kpi-card.gold::before { background: var(--r-gold); }
.kpi-card.green::before { background: var(--r-success); }
.kpi-card.blue::before { background: #4D71DD; }

.kpi-label {
  font-size: 13px;
  color: var(--r-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-family: var(--r-font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-value.teal { color: var(--r-primary); }
.kpi-value.gold { color: var(--r-gold); }
.kpi-value.green { color: var(--r-success); }

.kpi-sub {
  font-size: 13px;
  color: var(--r-text-secondary);
  line-height: 1.4;
}

/* ================================================================
   SCENARIO / COMPARISON CARDS
================================================================ */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: var(--r-space-xl);
}

.scenario-card {
  background: var(--r-bg-secondary);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s var(--r-ease);
}

.scenario-card.highlight {
  border-color: var(--r-primary);
  background: rgba(13, 148, 136, 0.05);
  box-shadow: 0 0 30px var(--r-primary-glow);
}

.scenario-card .scenario-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--r-radius-pill);
  background: var(--r-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.scenario-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.scenario-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.scenario-value {
  font-family: var(--r-font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.scenario-sub {
  font-size: 13px;
  color: var(--r-text-secondary);
}

.scenario-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--r-border);
  font-size: 13px;
  color: var(--r-text-muted);
}

/* ================================================================
   RESULTS SECTION
================================================================ */
.results-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px var(--r-padding) 40px;
}

.results-greeting {
  font-family: var(--r-font-hero);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.results-greeting em {
  font-style: italic;
  color: var(--r-primary-light);
}

.results-sub {
  color: var(--r-text-secondary);
  font-size: 1rem;
  margin-bottom: var(--r-space-xl);
  line-height: 1.6;
}

.results-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--r-border), transparent);
  margin: var(--r-space-xl) 0;
}

.results-block {
  margin-bottom: var(--r-space-xl);
}

.results-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--r-space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-block h3 .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Chart container */
.chart-container {
  background: var(--r-bg-secondary);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-md);
  padding: 24px;
  margin-bottom: var(--r-space-md);
  position: relative;
  overflow: hidden;
}

.chart-canvas {
  width: 100%;
  height: 280px;
}

/* Simple bar chart via CSS */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  height: 280px;
  padding: 40px 0 10px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 120px;
}

.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  transition: height 1s ease-out;
  position: relative;
}

.bar.teal { background: linear-gradient(to top, var(--r-primary-dark), var(--r-primary-light)); }
.bar.gold { background: linear-gradient(to top, var(--r-gold-dark), var(--r-gold-light)); }
.bar.gray { background: linear-gradient(to top, #374151, #6B7280); }
.bar.green { background: linear-gradient(to top, #166534, var(--r-success)); }
.bar.red { background: linear-gradient(to top, #991B1B, var(--r-danger)); }

.bar-label {
  font-size: 12px;
  color: var(--r-text-muted);
  text-align: center;
  font-weight: 500;
}

.bar-value {
  font-family: var(--r-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--r-text);
}

/* Info box */
.info-box {
  background: var(--r-primary-50);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--r-radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: var(--r-space-md);
}

.info-box .info-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box p {
  font-size: 14px;
  color: var(--r-text-secondary);
  line-height: 1.6;
}

.info-box p strong { color: var(--r-text); }

/* Demo hint */
.demo-hint {
  background: var(--r-bg-tertiary);
  border: 1px dashed var(--r-border);
  border-radius: var(--r-radius-md);
  padding: 20px 24px;
  text-align: center;
  margin: var(--r-space-xl) 0;
}

.demo-hint p {
  font-size: 14px;
  color: var(--r-text-muted);
  line-height: 1.6;
}

.demo-hint p strong { color: var(--r-text-secondary); }

/* ================================================================
   AGENCY CTA
================================================================ */
.agency-cta {
  background: linear-gradient(135deg, #FFFFFF, var(--r-bg-tertiary));
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: var(--r-space-xl) 0;
}

.agency-cta::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--r-gold), transparent);
}

.agency-cta h3 {
  font-family: var(--r-font-hero);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  margin-bottom: var(--r-space-md);
}

.agency-cta h3 em {
  font-style: italic;
  color: var(--r-gold-light);
}

.agency-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--r-space-lg);
}

.agency-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-radius-pill);
  background: var(--r-glass-bg);
  border: 1px solid var(--r-glass-border);
  font-size: 13px;
  color: var(--r-text-secondary);
  font-weight: 500;
}

.agency-feature svg {
  width: 14px; height: 14px;
  color: var(--r-gold-light);
}

.agency-cta .cta-note {
  font-size: 14px;
  color: var(--r-text-muted);
  margin-bottom: var(--r-space-lg);
  line-height: 1.6;
}

.agency-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-agency {
  padding: 14px 32px;
  border: none;
  border-radius: var(--r-radius-sm);
  font-family: var(--r-font-ui);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--r-ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-agency.primary {
  background: var(--r-gold);
  color: #000;
}

.btn-agency.primary:hover {
  background: var(--r-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 160, 23, 0.3);
}

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

.btn-agency.secondary:hover {
  border-color: var(--r-border-hover);
  color: var(--r-text);
  background: var(--r-bg-card);
}

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

/* ================================================================
   POWERED BY FOOTER
================================================================ */
.powered-footer {
  text-align: center;
  padding: var(--r-space-xl) 0;
  font-size: 13px;
  color: var(--r-text-muted);
  border-top: 1px solid var(--r-border);
}

.powered-footer a {
  color: var(--r-text-secondary);
  font-weight: 600;
}

.powered-footer a:hover { color: var(--r-primary-light); }

/* ================================================================
   CALENDAR / BOOKING CTA SECTION
================================================================ */
.booking-section {
  max-width: 900px;
  margin: 0 auto var(--r-space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--r-bg-secondary);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  overflow: hidden;
}

.booking-form-side {
  padding: 40px 36px;
  border-right: 1px solid var(--r-border);
}

.booking-form-side h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.booking-form-side .booking-sub {
  font-size: 14px;
  color: var(--r-text-secondary);
  margin-bottom: var(--r-space-lg);
  line-height: 1.6;
}

.booking-cal-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.booking-cal-side.blurred .cal-embed-wrapper {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.booking-cal-side .cal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 251, 0.6);
  z-index: 5;
  padding: 24px;
}

.booking-cal-side .cal-overlay p {
  text-align: center;
  color: var(--r-text-secondary);
  font-size: 15px;
  font-weight: 500;
  max-width: 240px;
}

.booking-cal-side .cal-overlay svg {
  display: block;
  margin: 0 auto 12px;
  width: 40px; height: 40px;
  color: var(--r-text-muted);
}

.cal-embed-wrapper {
  width: 100%;
  height: 100%;
  transition: filter 0.5s ease;
}

.booking-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.booking-success.show { display: flex; }

.booking-success .check-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--r-primary-50);
  border: 2px solid var(--r-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.booking-success .check-circle svg {
  width: 28px; height: 28px;
  color: var(--r-primary-light);
}

.booking-success h4 { font-size: 1.1rem; margin-bottom: 8px; }
.booking-success p { font-size: 14px; color: var(--r-text-secondary); }

/* ================================================================
   BOOKING CALENDAR (Cal.com custom UI)
================================================================ */
.bk-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bk-cal-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.bk-cal-nav {
  display: flex;
  gap: 6px;
}

.bk-cal-nav button {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--r-border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--r-text-secondary);
  transition: all 0.2s;
}

.bk-cal-nav button:hover {
  background: var(--r-bg-card-hover);
  border-color: var(--r-border-hover);
  color: var(--r-text);
}

.bk-cal-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bk-cal-nav button svg { width: 16px; height: 16px; }

.bk-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.bk-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--r-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.bk-day {
  width: 36px; height: 36px;
  margin: 0 auto;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--r-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--r-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
}

.bk-day:hover:not(.empty):not(.disabled):not(.selected) {
  background: var(--r-bg-card-hover);
}

.bk-day.empty { cursor: default; }

.bk-day.disabled {
  color: var(--r-text-muted);
  cursor: not-allowed;
  opacity: 0.4;
}

.bk-day.today:not(.selected) {
  font-weight: 700;
  color: var(--r-primary-light);
}

.bk-day.available::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--r-primary);
}

.bk-day.selected {
  background: var(--r-primary);
  color: #fff;
  font-weight: 700;
}

.bk-day.selected::after { display: none; }

/* Time slots */
.bk-slots {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--r-border);
}

.bk-slots-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--r-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.bk-slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.bk-slot {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--r-border);
  background: transparent;
  font-family: var(--r-font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--r-text);
  cursor: pointer;
  transition: all 0.15s;
}

.bk-slot:hover {
  border-color: var(--r-primary);
  background: var(--r-primary-50);
  color: var(--r-primary-light);
}

.bk-slot.selected {
  border-color: var(--r-primary);
  background: var(--r-primary);
  color: #fff;
}

/* Booking form side - form groups */
.booking-form-side .form-group { margin-bottom: 14px; }
.booking-form-side .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--r-text-secondary);
  margin-bottom: 5px;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
  .tool-grid,
  .demo-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gate-box {
    padding: 32px 24px;
  }

  .showcase-hero {
    padding: 120px 0 60px;
  }

  .agency-cta {
    padding: 36px 24px;
  }

  .booking-section {
    grid-template-columns: 1fr;
  }

  .booking-form-side {
    border-right: none;
    border-bottom: 1px solid var(--r-border);
  }

  .booking-cal-side {
    min-height: 350px;
  }

  .funnel-step {
    padding: 90px var(--r-padding) 30px;
  }

  .calc-card {
    padding: 28px 20px;
  }

  .results-section {
    padding: 90px var(--r-padding) 30px;
  }

  .bar-chart {
    gap: 12px;
  }
}

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

  .agency-cta-buttons {
    flex-direction: column;
  }

  .btn-agency {
    width: 100%;
    justify-content: center;
  }

  .trust-pills {
    gap: 6px;
  }

  .trust-pill {
    font-size: 12px;
    padding: 5px 10px;
  }
}
