/* ========================================================================
   ROUTENFUCHS SUBPAGE – Standalone Styles
   Uses same design tokens as landing/style.css
   ======================================================================== */

:root {
  --bg-primary: #080a0f;
  --bg-secondary: #0e1117;
  --bg-card: rgba(22, 24, 34, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #e8eaed;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #4ade80;
  --accent-glow: rgba(74, 222, 128, 0.15);
  --accent-hover: #22c55e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --danger: #ef4444;
  --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #0a0f0a;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(74, 222, 128, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Glass Panel ---- */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }

/* ---- Text Gradient ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Glass Badge ---- */
.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================================================
   NAVBAR
   ======================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.glass-nav { background: rgba(8, 10, 15, 0.7); }

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.rf-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text { flex: 1; }

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  flex: 0 0 360px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---- Fade-in animations ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

/* ========================================================================
   PHONE MOCKUP (WhatsApp Chat)
   ======================================================================== */
.phone-mockup {
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.phone-header {
  background: rgba(0,0,0,0.3);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-info .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-info .status {
  font-size: 0.78rem;
  color: var(--accent);
}

.chat-container {
  padding: 20px;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  max-width: 85%;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

.message.sent {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.received {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.phone-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 8px 14px;
}

.input-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fake-input {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================================================
   FEATURES SECTION
   ======================================================================== */
.features-section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 16px;
  margin: 0 auto 18px;
  font-size: 1.4rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ========================================================================
   PRICING SECTION
   ======================================================================== */
.pricing-section {
  padding: 80px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 222, 128, 0.04) 0%, transparent 50%), var(--bg-primary);
}

.rf-pricing-single {
  max-width: 440px;
  margin: 0 auto;
}

.pricing-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  border-color: rgba(74, 222, 128, 0.25);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #0a0f0a;
  padding: 6px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  border-bottom-left-radius: 12px;
}

.card-header {
  text-align: center;
  margin-bottom: 24px;
}

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

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}

.currency { font-size: 1.2rem; font-weight: 700; }
.amount { font-size: 3rem; font-weight: 900; }
.cents { font-size: 1.2rem; font-weight: 700; }
.period { font-size: 0.9rem; color: var(--text-muted); margin-left: 4px; }

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-body { margin-bottom: 24px; }

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.features-list li i {
  color: var(--accent);
  font-size: 0.8rem;
}

/* ---- Extra Users Control ---- */
.rf-extra-users-control {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.rf-extra-users-control label {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.badge-value {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 700;
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.range-wrapper input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.range-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.small-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.card-footer { text-align: center; }

/* ========================================================================
   CTA SECTION
   ======================================================================== */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  padding: 48px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========================================================================
   CHECKOUT MODAL
   ======================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal-btn:hover { color: var(--text-primary); }

.modal-body {
  padding: 28px;
}

.order-summary {
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.summary-total {
  margin-top: 10px;
  font-size: 1rem;
}

/* ---- Form ---- */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-group input,
.input-group select {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

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

.bot-protection {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.bot-protection label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.bot-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  margin-top: 8px;
}

.success-view .success-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.success-view h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.success-view p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-visual { flex: none; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .phone-mockup { max-width: 300px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
}
