﻿/* =======================================================================
   KIRI FINANCE v2 — style.css
   Green fintech theme matching design reference
   ======================================================================= */

:root {
  --kf-dark:    #1a4d35;
  --kf-mid:     #2d7a50;
  --kf-light:   #3fa06b;
  --kf-accent:  #4CAF50;
  --kf-red:     #ef4444;
  --kf-bg:      #f8fffe;
  --kf-white:   #ffffff;
  --kf-text:    #1a2e1e;
  --kf-muted:   #4a6055;
  --kf-radius:  14px;
  --kf-shadow:  0 4px 24px rgba(26,77,53,0.10);
  --kf-shadow-lg: 0 12px 48px rgba(26,77,53,0.16);
}

body { font-family: 'Poppins','Open Sans',sans-serif; color: var(--kf-text); background: var(--kf-white); overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
[data-aos] { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* ------- HEADER ------- */
.kf-header { background: var(--kf-white) !important; border-bottom: 1px solid rgba(26,77,53,0.10); box-shadow: 0 2px 14px rgba(26,77,53,0.07); padding: 0; height: 70px; z-index: 9999; }
.kf-header .container { height: 100%; }
.kf-header-inner { height: 100%; gap: 8px; }
.kf-logo-img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.kf-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.kf-logo-name { font-family: 'Raleway',sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--kf-dark); letter-spacing: -0.3px; }
.kf-logo-tagline { font-size: 0.5rem; font-weight: 600; color: var(--kf-muted); letter-spacing: 0.8px; text-transform: uppercase; }
.kf-nav { gap: 2px; flex-shrink: 0; }
.kf-nav-link { font-size: 0.84rem; font-weight: 500; color: var(--kf-muted); text-decoration: none; padding: 5px 10px; border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; }
.kf-nav-link:hover, .kf-nav-link.active { color: var(--kf-dark); background: rgba(26,77,53,0.07); }
.kf-btn-outline-sm { font-size: 0.82rem; font-weight: 600; color: var(--kf-dark); border: 1.5px solid var(--kf-dark); padding: 6px 14px; border-radius: 8px; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; display: inline-block; }
.kf-btn-outline-sm:hover { background: var(--kf-dark); color: #fff; }
.kf-btn-solid-sm { font-size: 0.82rem; font-weight: 600; color: #fff; background: var(--kf-dark); border: 1.5px solid var(--kf-dark); padding: 6px 14px; border-radius: 8px; text-decoration: none; transition: background .2s, transform .15s; white-space: nowrap; display: inline-block; }
.kf-btn-solid-sm:hover { background: var(--kf-mid); border-color: var(--kf-mid); color: #fff; transform: translateY(-1px); }
.kf-burger { background: none; border: none; color: var(--kf-dark); font-size: 1.7rem; cursor: pointer; }
.kf-mobile-nav { display: none; background: var(--kf-white); border-top: 1px solid rgba(26,77,53,0.1); padding: 0 1rem; }
.kf-mobile-nav.mobile-open { display: block; }
.kf-mobile-nav li { padding: 2px 0; }
.kf-mobile-nav .kf-nav-link { display: block; padding: 8px 0; }
.mobile-nav-toggle { background: none; border: none; font-size: 1.8rem; color: var(--kf-dark); cursor: pointer; padding: 4px 8px; line-height: 1; }

/* ------- HERO ------- */
.kf-hero { background: var(--kf-white); min-height: 100vh; padding-top: 100px; padding-bottom: 60px; position: relative; overflow: hidden; }
.kf-hero::before { content: ''; position: absolute; right: -8%; top: 8%; width: 55%; height: 84%; background: radial-gradient(ellipse at center, rgba(76,175,80,0.07) 0%, transparent 70%); pointer-events: none; }
.kf-hero-headline { font-family: 'Raleway',sans-serif; font-size: clamp(1.9rem,4vw,3.1rem); font-weight: 800; color: var(--kf-text); line-height: 1.2; margin-bottom: 1rem; }
.kf-green-word { color: var(--kf-accent); font-style: italic; }
.kf-hero-sub { font-size: 1rem; color: var(--kf-muted); line-height: 1.75; max-width: 520px; margin-bottom: 1.6rem; }
.kf-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--kf-bg); border: 1px solid rgba(26,77,53,0.14); border-radius: 50px; padding: 5px 13px; font-size: 0.8rem; color: var(--kf-text); }
.kf-pill-icon { font-size: 0.9rem; }
.kf-btn-cta-hero { display: inline-block; background: linear-gradient(135deg,var(--kf-accent),var(--kf-mid)); color: #fff; font-family: 'Poppins',sans-serif; font-size: 0.98rem; font-weight: 700; padding: 14px 30px; border-radius: 50px; text-decoration: none; box-shadow: 0 6px 24px rgba(76,175,80,0.35); transition: transform .2s, box-shadow .2s; }
.kf-btn-cta-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(76,175,80,0.45); color: #fff; }
.kf-nocredit { font-size: 0.8rem; color: var(--kf-muted); }

/* Hero visual */
.kf-hero-visual { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.kf-plant-deco { position: absolute; right: 0; bottom: 0; width: 100px; opacity: 0.65; pointer-events: none; z-index: 0; }
.kf-plant-deco svg { width: 100%; height: auto; }
.kf-bubble { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,var(--kf-accent),var(--kf-mid)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; font-weight: 700; box-shadow: var(--kf-shadow); animation: kf-float 4s ease-in-out infinite; z-index: 2; }
.kf-bubble-1 { top: 10%; right: 6%; animation-delay: 0s; }
.kf-bubble-2 { top: 42%; right: 2%; animation-delay: 1.3s; }
.kf-bubble-3 { bottom: 18%; right: 8%; animation-delay: 2.5s; }
@keyframes kf-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Phone frame */
.kf-phone-frame { position: relative; z-index: 3; width: 275px; min-height: 490px; background: #fff; border-radius: 36px; box-shadow: var(--kf-shadow-lg), 0 0 0 8px #e3f0e8, 0 0 0 10px rgba(26,77,53,0.11); overflow: hidden; display: flex; flex-direction: column; }
.kf-phone-status { background: var(--kf-dark); color: rgba(255,255,255,0.8); font-size: 0.58rem; padding: 6px 16px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.kf-status-icons { display: flex; gap: 5px; align-items: center; font-size: 0.55rem; }
.kf-phone-body { background: #f4faf6; flex: 1; padding: 11px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.kf-app-greeting { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 11px; padding: 9px 11px; box-shadow: 0 2px 8px rgba(26,77,53,0.06); }
.kf-greeting-sub { font-size: 0.6rem; color: var(--kf-muted); margin: 0 0 1px; }
.kf-greeting-name { font-size: 0.8rem; font-weight: 700; color: var(--kf-dark); margin: 0; }
.kf-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--kf-accent),var(--kf-mid)); color: #fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kf-balance-card { background: linear-gradient(135deg,var(--kf-dark),var(--kf-mid)); border-radius: 11px; padding: 13px; color: #fff; }
.kf-balance-label { font-size: 0.6rem; opacity: 0.75; margin: 0 0 2px; }
.kf-balance-amount { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.5px; }
.kf-balance-growth { font-size: 0.6rem; background: rgba(255,255,255,0.18); padding: 2px 8px; border-radius: 50px; display: inline-block; }
.kf-chart-card { background: #fff; border-radius: 11px; padding: 9px 11px; box-shadow: 0 2px 8px rgba(26,77,53,0.06); }
.kf-chart-title { font-size: 0.66rem; font-weight: 600; color: var(--kf-dark); margin: 0 0 7px; }
.kf-donut-wrap { position: relative; width: 62px; height: 62px; margin: 0 auto 7px; }
.kf-donut { width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(#1a4d35 0% 55%, #4CAF50 55% 77%, #3fa06b 77% 92%, #ef4444 92% 100%); }
.kf-donut::after { content: ''; position: absolute; inset: 14px; background: white; border-radius: 50%; }
.kf-donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: var(--kf-dark); z-index: 1; }
.kf-donut-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 5px; }
.kf-legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.52rem; color: var(--kf-muted); }
.kf-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.kf-dot-obligaciones { background: #1a4d35; }
.kf-dot-ahorro { background: #4CAF50; }
.kf-dot-gasto { background: #3fa06b; }
.kf-dot-deudas { background: #ef4444; }
.kf-garden-card { background: linear-gradient(135deg,#e8f5e9,#f0faf3); border: 1px solid rgba(76,175,80,0.2); border-radius: 11px; padding: 9px 11px; display: flex; gap: 9px; align-items: center; }
.kf-garden-icon { font-size: 1.7rem; flex-shrink: 0; }
.kf-garden-info { flex: 1; }
.kf-garden-title { font-size: 0.68rem; font-weight: 700; color: var(--kf-dark); margin: 0 0 1px; }
.kf-garden-level { font-size: 0.56rem; color: var(--kf-muted); margin: 0 0 5px; }
.kf-garden-bar { height: 5px; background: rgba(26,77,53,0.12); border-radius: 3px; overflow: hidden; }
.kf-garden-fill { height: 100%; background: linear-gradient(90deg,var(--kf-accent),var(--kf-mid)); border-radius: 3px; }

/* ------- PROBLEM / SOLUTION ------- */
.kf-problem-section { background: var(--kf-bg); }
.kf-prob-sol-card { background: var(--kf-white); border-radius: 24px; box-shadow: var(--kf-shadow-lg); position: relative; overflow: visible; }
.kf-problem-col { background: #fff5f5; border-radius: 24px 0 0 24px; }
.kf-solution-col { background: #f0faf3; border-radius: 0 24px 24px 0; }
.kf-problem-heading { font-family: 'Raleway',sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--kf-red); }
.kf-solution-heading { font-family: 'Raleway',sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--kf-dark); }
.kf-x-icon { color: var(--kf-red); }
.kf-check-icon { color: var(--kf-accent); }
.kf-check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.kf-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--kf-text); line-height: 1.5; }
.kf-bad-icon, .kf-good-icon { width: 21px; height: 21px; border-radius: 50%; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.kf-bad-icon { background: #fee2e2; color: var(--kf-red); }
.kf-good-icon { background: #dcfce7; color: var(--kf-accent); }
.kf-arrow-col { font-size: 1.5rem; color: var(--kf-mid); }
.kf-arrow-divider { background: var(--kf-white); width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--kf-shadow); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--kf-mid); }
.kf-arrow-mobile { font-size: 1.3rem; color: var(--kf-mid); font-weight: 700; }
.kf-ai-chat-bubble { position: absolute; bottom: -1.5rem; right: -1rem; width: 250px; background: var(--kf-white); border-radius: 18px; box-shadow: var(--kf-shadow-lg); padding: 13px; z-index: 10; border: 1px solid rgba(26,77,53,0.1); }
.kf-ai-chat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.kf-ai-avatar { width: 32px; height: 32px; background: linear-gradient(135deg,var(--kf-accent),var(--kf-mid)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.kf-ai-name { font-size: 0.8rem; font-weight: 700; color: var(--kf-dark); display: block; }
.kf-ai-subtitle { font-size: 0.63rem; color: var(--kf-muted); display: block; }
.kf-ai-online { margin-left: auto; width: 9px; height: 9px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
.kf-ai-message { font-size: 0.76rem; color: var(--kf-text); background: var(--kf-bg); border-radius: 11px; padding: 9px; line-height: 1.55; margin-bottom: 9px; border: 1px solid rgba(26,77,53,0.07); }
.kf-ai-actions { display: flex; gap: 6px; }
.kf-ai-btn { flex: 1; padding: 5px 7px; border-radius: 7px; border: none; font-size: 0.7rem; font-weight: 600; cursor: pointer; background: var(--kf-dark); color: #fff; transition: background .2s; }
.kf-ai-btn:hover { background: var(--kf-mid); }
.kf-ai-btn-outline { background: transparent; border: 1px solid var(--kf-dark); color: var(--kf-dark); }
.kf-ai-btn-outline:hover { background: var(--kf-bg); }

/* ------- HOW IT WORKS ------- */
.kf-how-section { background: var(--kf-white); }
.kf-eyebrow { display: inline-block; background: rgba(76,175,80,0.12); color: var(--kf-dark); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 14px; border-radius: 50px; margin-bottom: 10px; }
.kf-section-title { font-family: 'Raleway',sans-serif; font-size: clamp(1.4rem,3vw,2.1rem); font-weight: 800; color: var(--kf-text); margin-bottom: 8px; }
.kf-section-sub { font-size: 0.98rem; color: var(--kf-muted); max-width: 560px; margin: 0 auto; }
.kf-how-card { background: var(--kf-white); border: 1px solid rgba(26,77,53,0.10); border-radius: var(--kf-radius); padding: 26px 20px 18px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.kf-how-card:hover { box-shadow: var(--kf-shadow-lg); transform: translateY(-4px); }
.kf-how-icon { width: 50px; height: 50px; background: rgba(26,77,53,0.07); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; flex-shrink: 0; }
.kf-how-card-title { font-family: 'Raleway',sans-serif; font-size: 0.98rem; font-weight: 800; color: var(--kf-dark); margin: 0 0 2px; }
.kf-how-card-sub { font-size: 0.76rem; color: var(--kf-light); font-weight: 600; margin-bottom: 7px; }
.kf-how-card-desc { font-size: 0.83rem; color: var(--kf-muted); line-height: 1.6; margin-bottom: 0; flex: 1; }
.kf-mini-illustration { margin-top: 14px; border-radius: 10px; background: var(--kf-bg); padding: 11px; flex-shrink: 0; }
.kf-mini-dashboard { display: flex; align-items: flex-end; justify-content: space-between; gap: 7px; height: 86px; }
.kf-mini-bars { display: flex; align-items: flex-end; gap: 4px; flex: 1; }
.kf-mini-bar { flex: 1; background: linear-gradient(180deg,var(--kf-accent) 0%,var(--kf-mid) 100%); border-radius: 4px 4px 0 0; opacity: 0.8; }
.kf-mini-donut { width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--kf-dark) 0% 40%,var(--kf-accent) 40% 65%,var(--kf-light) 65% 80%,#e0e0e0 80% 100%); box-shadow: inset 0 0 0 13px var(--kf-bg); flex-shrink: 0; align-self: center; }
.kf-mini-line { padding: 7px; }
.kf-line-svg { width: 100%; height: auto; display: block; }
.kf-mini-list { display: flex; flex-direction: column; gap: 6px; }
.kf-mini-list-row { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; background: #fff; border-radius: 7px; padding: 5px 8px; }
.kf-mini-icon { font-size: 0.82rem; }
.kf-mini-label { flex: 1; color: var(--kf-text); font-weight: 500; }
.kf-mini-val { color: var(--kf-dark); font-weight: 700; }
.kf-mini-social-card { background: #fff; border-radius: 9px; padding: 9px; }
.kf-mini-social-title { font-size: 0.7rem; font-weight: 700; color: var(--kf-dark); margin: 0 0 5px; }
.kf-mini-progress-bar { height: 6px; background: rgba(26,77,53,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.kf-mini-progress-fill { height: 100%; background: linear-gradient(90deg,var(--kf-accent),var(--kf-mid)); border-radius: 3px; }
.kf-mini-social-nums { font-size: 0.62rem; color: var(--kf-muted); margin: 0 0 5px; }
.kf-mini-avatars { display: flex; }
.kf-mini-av { width: 21px; height: 21px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-size: 0.52rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-right: -6px; }

/* ------- CTA BANNER ------- */
.kf-cta-banner { background: linear-gradient(135deg,var(--kf-dark) 0%,var(--kf-mid) 100%); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.kf-cta-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 50%,rgba(255,255,255,0.04) 0%,transparent 60%); pointer-events: none; }
.kf-cta-plant { width: 80px; height: auto; opacity: 0.7; }
.kf-cta-headline { font-family: 'Raleway',sans-serif; font-size: clamp(1.3rem,2.5vw,1.9rem); font-weight: 800; margin-bottom: 5px; color: #fff; }
.kf-cta-sub { font-size: 0.92rem; opacity: 0.85; margin-bottom: 0; }
.kf-stars { font-size: 0.88rem; color: #fbbf24; }
.kf-avatar-stack { display: flex; }
.kf-av-circle { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); color: #fff; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-right: -8px; }
.kf-user-count { font-size: 0.8rem; opacity: 0.85; margin-left: 16px; }
.kf-cta-badge { font-size: 0.76rem; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24); border-radius: 50px; padding: 3px 11px; color: rgba(255,255,255,0.9); }
.kf-btn-cta-banner { display: inline-block; background: #fff; color: var(--kf-dark); font-family: 'Poppins',sans-serif; font-size: 0.96rem; font-weight: 700; padding: 15px 28px; border-radius: 50px; text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,0.2); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.kf-btn-cta-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.28); color: var(--kf-dark); }

/* ------- TRUST BAR ------- */
.kf-trust-bar { background: var(--kf-white); border-bottom: 1px solid rgba(26,77,53,0.08); }
.kf-trust-item { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px; border-radius: var(--kf-radius); transition: background .2s; }
.kf-trust-item:hover { background: var(--kf-bg); }
.kf-trust-icon { font-size: 1.9rem; line-height: 1; }
.kf-trust-item strong { font-size: 0.88rem; color: var(--kf-dark); display: block; margin-bottom: 2px; }
.kf-trust-item p { font-size: 0.78rem; color: var(--kf-muted); }

/* ------- PRICING ------- */
.kf-pricing-section { background: var(--kf-bg); }
.kiri-plan-box { background: var(--kf-white); border: 1.5px solid rgba(26,77,53,0.12); border-radius: var(--kf-radius); padding: 30px 26px; text-align: center; position: relative; transition: box-shadow .25s, transform .25s; height: 100%; display: flex; flex-direction: column; }
.kiri-plan-box:hover { box-shadow: var(--kf-shadow-lg); transform: translateY(-4px); }
.kiri-plan-box.featured { border-color: var(--kf-accent); box-shadow: 0 0 0 2px rgba(76,175,80,0.2),var(--kf-shadow-lg); }
.kiri-plan-box.featured::before { content: 'Mas popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--kf-accent); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 14px; border-radius: 50px; white-space: nowrap; }
.kiri-plan-box h3 { font-family: 'Raleway',sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--kf-dark); margin-bottom: 6px; }
.kiri-plan-box .plan-description { font-size: 0.8rem; color: var(--kf-muted); margin-bottom: 12px; }
.kiri-plan-box h4 { font-size: 1.9rem; font-weight: 800; color: var(--kf-dark); margin-bottom: 14px; }
.kiri-plan-box h4 sup { font-size: 1rem; top: -0.5em; }
.kiri-plan-box h4 span { font-size: 0.82rem; font-weight: 500; color: var(--kf-muted); }
.kiri-plan-box .features-subtitle { font-size: 0.76rem; font-weight: 600; color: var(--kf-muted); text-align: left; margin-bottom: 7px; }
.kiri-plan-box ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; flex: 1; }
.kiri-plan-box ul li { font-size: 0.83rem; color: var(--kf-text); padding: 4px 0 4px 20px; position: relative; }
.kiri-plan-box ul li::before { content: 'v'; position: absolute; left: 0; color: var(--kf-accent); font-weight: 700; font-family: monospace; }
.kiri-plan-box .btn-wrap { margin-top: auto; }
.kiri-btn-buy { display: block; background: var(--kf-dark); color: #fff; font-weight: 600; font-size: 0.86rem; padding: 10px 22px; border-radius: 8px; text-decoration: none; text-align: center; transition: background .2s, transform .15s; }
.kiri-btn-buy:hover { background: var(--kf-mid); color: #fff; transform: translateY(-2px); }
.kiri-plan-box.featured .kiri-btn-buy { background: var(--kf-accent); }
.kiri-plan-box.featured .kiri-btn-buy:hover { background: var(--kf-mid); }
.plan-image img { max-width: 100%; border-radius: 8px; margin-bottom: 12px; }
.btn-wrap { text-align: center; }

/* ------- CONTACT ------- */
.kf-contact-section { background: var(--kf-white); }
.kf-contact-card { background: var(--kf-white); border: 1px solid rgba(26,77,53,0.1); border-radius: 20px; padding: 38px 34px; box-shadow: var(--kf-shadow); }
.kf-input { border: 1.5px solid rgba(26,77,53,0.15) !important; border-radius: 8px !important; padding: 10px 13px !important; font-size: 0.87rem !important; color: var(--kf-text) !important; background: var(--kf-bg) !important; transition: border-color .2s, box-shadow .2s !important; }
.kf-input:focus { border-color: var(--kf-accent) !important; box-shadow: 0 0 0 3px rgba(76,175,80,0.12) !important; outline: none !important; background: #fff !important; }
.kf-btn-submit { background: linear-gradient(135deg,var(--kf-accent),var(--kf-mid)); color: #fff; border: none; font-family: 'Poppins',sans-serif; font-size: 0.93rem; font-weight: 700; padding: 12px 38px; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 18px rgba(76,175,80,0.3); transition: transform .2s, box-shadow .2s; }
.kf-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(76,175,80,0.4); }

/* ------- FOOTER ------- */
.kf-footer { background: var(--kf-dark); color: rgba(255, 255, 255, 0.7); }
.kf-footer-logo-img { width: 34px; height: 34px; object-fit: contain; }
.kf-footer-logo-name { font-family: 'Raleway',sans-serif; font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.kf-footer-copy { font-size: 0.8rem; color: rgba(54, 112, 35, 0.6); }
.kf-footer-copy strong { color: rgba(18, 30, 6, 0.85); }
.kf-footer-link { font-size: 0.8rem; color: rgba(126, 250, 65, 0.6); text-decoration: none; transition: color .2s; }
.kf-footer-link:hover { color: #fff; }

/* ------- BACK TO TOP ------- */
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--kf-dark); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: opacity .3s, transform .3s, background .2s; z-index: 9998; box-shadow: var(--kf-shadow); }
.back-to-top:hover { background: var(--kf-mid); transform: translateY(-3px); color: #fff; }

/* ------- RESPONSIVE ------- */
@media (max-width: 1199px) {
  .kf-ai-chat-bubble { position: static; width: 100%; border-radius: 0 0 var(--kf-radius) var(--kf-radius); box-shadow: none; border-top: 1px solid rgba(26,77,53,0.1); bottom: auto; right: auto; }
}

@media (max-width: 991px) {
  .kf-hero { padding-top: 88px; text-align: center; }
  .kf-hero-sub, .kf-nocredit { margin-left: auto; margin-right: auto; }
  .kf-pills { justify-content: center; }
  .kf-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .kf-phone-frame { width: 240px; min-height: 440px; }
  .kf-problem-col { border-radius: var(--kf-radius) var(--kf-radius) 0 0; }
  .kf-solution-col { border-radius: 0 0 var(--kf-radius) var(--kf-radius); }
  .kf-cta-center { text-align: center !important; }
}

@media (max-width: 767px) {
  .kf-header { height: auto; padding: 10px 0; }
  .kf-logo-tagline { display: none; }
  .kf-hero-headline { font-size: 1.65rem; }
  .kf-contact-card { padding: 22px 16px; }
  .kf-phone-frame { width: 215px; }
  .kf-cta-banner { padding: 40px 0; }
  .kf-footer { text-align: center; }
  .kf-footer-links { justify-content: center; }
}

@media (max-width: 576px) {
  .kf-btn-cta-hero { font-size: 0.86rem; padding: 12px 20px; }
  .kf-pill { font-size: 0.73rem; }
  .kf-hero-visual { min-height: 380px; }
  .kf-bubble-1, .kf-bubble-2, .kf-bubble-3 { width: 36px; height: 36px; font-size: 1rem; }
  .kf-btn-submit { width: 100%; }
  .section-eyebrow { font-size: 0.7rem; }
}

/* =====================================================================
   HERO OVERRIDE — defeat global style.css on #hero
   ===================================================================== */
#hero.kf-hero {
  background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 40%, #bbf7d0 100%) !important;
  background-image: none !important;
  height: auto !important;
  min-height: 100vh !important;
  width: 100% !important;
  padding-top: 90px !important;
  padding-bottom: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Kill the dark network pseudo-element from global */
#hero.kf-hero::before {
  content: none !important;
}

/* Ensure container is normal flow, not absolute */
#hero.kf-hero .container {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
}

/* Hero text must be dark since background is now light */
#hero.kf-hero .kf-hero-headline {
  color: #1a2e1e !important;
}

#hero.kf-hero .kf-green-word {
  color: #16a34a !important;
}

#hero.kf-hero .kf-hero-sub {
  color: #3d5a47 !important;
}

#hero.kf-hero .kf-nocredit {
  color: #4a6055 !important;
}

/* Pills on green background */
#hero.kf-hero .kf-pill {
  background: rgba(255,255,255,0.70) !important;
  border-color: rgba(26,77,53,0.18) !important;
  color: #1a2e1e !important;
  backdrop-filter: blur(6px);
}

/* Soft decorative orbs on green bg */
#hero.kf-hero::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134,239,172,0.35) 0%, transparent 70%);
  top: -120px;
  right: -120px;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 991px) {
  #hero.kf-hero {
    padding-top: 90px !important;
    padding-bottom: 50px !important;
    min-height: auto !important;
    text-align: center;
  }
  #hero.kf-hero .kf-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #hero.kf-hero .kf-hero-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #hero.kf-hero .kf-pills {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #hero.kf-hero {
    height: auto !important;
    min-height: auto !important;
  }
}

/* Extra specificity to override the global #hero .container { position: absolute } */
body #hero.kf-hero .container {
  position: relative !important;
  z-index: 2 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 1320px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Make the bubble decorations less dominant on the green bg */
body #hero.kf-hero .kf-bubble {
  box-shadow: 0 4px 16px rgba(26,77,53,0.20);
}

/* =====================================================================
   AI CHAT BUBBLE — static column layout (no absolute positioning)
   ===================================================================== */
.kf-ai-chat-bubble {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  width: 100% !important;
  box-shadow: none !important;
  border: 1px solid rgba(26,77,53,0.10) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  padding: 16px !important;
}

.kf-ai-col {
  background: #f6fdf8;
  border-radius: 0 24px 24px 0;
}

/* On mobile: full width, flat bottom */
@media (max-width: 991px) {
  .kf-ai-col {
    border-radius: 0 0 var(--kf-radius) var(--kf-radius);
    padding: 16px !important;
  }
  .kf-ai-chat-bubble {
    border-radius: var(--kf-radius) !important;
  }
}

/* Adjust prob/sol border-radius now that chat is a column */
.kf-solution-col {
  border-radius: 0 !important;
}

@media (max-width: 991px) {
  .kf-solution-col {
    border-radius: 0 !important;
  }
}

/* =====================================================================
   AI COLUMN — stat card above chat bubble
   ===================================================================== */
.kf-ai-stat-card {
  background: linear-gradient(135deg, var(--kf-dark), var(--kf-mid));
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,77,53,0.25);
  flex-shrink: 0;
}

.kf-ai-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.kf-ai-stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.kf-ai-stat-label {
  font-size: 0.62rem;
  opacity: 0.75;
  margin: 0 0 1px;
}

.kf-ai-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.3px;
}

.kf-ai-stat-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 3px 9px;
  white-space: nowrap;
  color: #86efac;
}

.kf-ai-mini-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.kf-ai-mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #86efac, #4ade80);
  border-radius: 3px;
}

.kf-ai-stat-hint {
  font-size: 0.6rem;
  opacity: 0.7;
  margin: 0;
}

/* =====================================================================
   PLANTS GROWTH ILLUSTRATION — AI column top section
   ===================================================================== */
.kf-plants-illustration {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 14px;
  padding: 14px 10px 8px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74,222,128,0.25);
}

.kf-plants-svg {
  width: 100%;
  height: auto;
  display: block;
}

.kf-plants-caption {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--kf-mid);
  margin: 4px 0 0;
  letter-spacing: 0.2px;
}

/* On mobile hide the illustration to save space */
@media (max-width: 991px) {
  .kf-plants-illustration {
    display: none;
  }
}

/* =====================================================================
   AI COLUMN — inner layout: plants fill top, chat anchored to bottom
   ===================================================================== */
.kf-ai-col {
  background: #f6fdf8;
  border-radius: 0 24px 24px 0;
  overflow: hidden;
}

.kf-ai-col-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  gap: 12px;
  box-sizing: border-box;
}

/* Plant illustration: grows to fill remaining space */
.kf-plants-illustration {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  padding: 14px 10px 8px;
  text-align: center;
  flex: 1;               /* fills whatever height is left above the chat */
  min-height: 0;         /* allows flex child to shrink */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74,222,128,0.22);
  overflow: hidden;
}

.kf-plants-svg {
  width: 100%;
  height: auto;
  max-height: 110px;
  display: block;
}

.kf-plants-caption {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--kf-mid);
  margin: 6px 0 0;
  letter-spacing: 0.2px;
}

/* Chat bubble: fixed size, no overflow */
.kf-ai-chat-bubble {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  width: 100% !important;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26,77,53,0.12) !important;
  border: 1px solid rgba(26,77,53,0.10) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  padding: 14px !important;
}

/* On mobile: stack vertically, hide plants */
@media (max-width: 991px) {
  .kf-ai-col {
    border-radius: 0 0 var(--kf-radius) var(--kf-radius);
  }
  .kf-ai-col-inner {
    padding: 14px;
  }
  .kf-plants-illustration {
    display: none;
  }
}

/* =====================================================================
   SMOOTH SCROLL & ACTIVE NAV
   ===================================================================== */
/* scroll-behavior handled by JS animation only — defeat Bootstrap's smooth scroll */
html,
:root {
  scroll-behavior: auto !important;
}

.kf-nav-link.active {
  color: var(--kf-dark) !important;
  background: rgba(26,77,53,0.09);
  font-weight: 700;
}

/* =====================================================================
   HEADER — logo left, nav centered, CTA right
   ===================================================================== */
.kf-header .container {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  position: relative !important;
}

.kf-header-inner {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  position: relative;
}

/* Logo stays left */
.kf-logo {
  flex-shrink: 0;
}

/* Nav floats to absolute center of the header */
.kf-nav {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  white-space: nowrap;
}

/* CTA button pushed to the far right */
.kf-nav + .kf-btn-solid-sm,
.kf-nav ~ .kf-btn-solid-sm {
  margin-left: auto !important;
}

/* Ensure the solid CTA button in the nav itself is also right */
.kf-nav .kf-btn-solid-sm {
  position: static !important;
}

/* =====================================================================
   HEADER LAYOUT — logo | centered nav | CTA right  (clean override)
   ===================================================================== */
.kf-header-inner {
  position: relative;
  width: 100%;
  display: flex !important;
  align-items: center !important;
}

/* Logo: left edge */
.kf-logo {
  flex-shrink: 0;
  z-index: 1;
}

/* Nav: absolute center */
.kf-nav {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  white-space: nowrap;
  z-index: 0;
}

/* CTA: right edge */
.kf-header-cta {
  margin-left: auto !important;
  flex-shrink: 0;
  z-index: 1;
}

/* =====================================================================
   HEADER LOGO — bigger, properly visible
   ===================================================================== */
.kf-logo-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.kf-logo-name {
  font-family: 'Raleway', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--kf-dark) !important;
  letter-spacing: -0.5px;
  display: block !important;
}

.kf-logo-tagline {
  font-size: 0.55rem !important;
  font-weight: 600 !important;
  color: var(--kf-muted) !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block !important;
}

.kf-logo a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}

.kf-logo-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.2 !important;
}

/* Taller header to give logo room */
.kf-header {
  height: 76px !important;
}

.kf-header .container,
.kf-header-inner {
  height: 76px !important;
}

/* =====================================================================
   HEADER LOGO — wide SVG needs width:auto, constrained by height
   ===================================================================== */
.kf-logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  flex-shrink: 0;
  display: block !important;
}

/* Hide the duplicate text next to the SVG — the SVG already has the name */
.kf-logo-text {
  display: none !important;
}

.kf-logo a {
  gap: 0 !important;
}

/*==================================================
=            KIRI FINANCE DIAGRAMA PREMIUM          =
==================================================*/

.kiri-diagram-section{

    padding:100px 0;

}

.diagram-wrapper{

    max-width:1000px;
    width:100%;

    margin:auto;

    display:grid;

    grid-template-columns:
    230px
    320px
    230px;

    grid-template-rows:
    auto
    auto;

    align-items:center;
    justify-content:center;

    column-gap:40px;
    row-gap:30px;

}

/*--------------------*/
/* TARJETAS */
/*--------------------*/

.diagram-card{

    background:#fff;

    border-radius:24px;

    padding:22px;

    box-shadow:
    0 15px 45px rgba(0,0,0,.07);

    transition:.35s;

    position:relative;

}

.diagram-card:hover{

    transform:
    translateY(-8px)
    scale(1.03);

}

.diagram-card:nth-child(2){

    grid-column:1;
    grid-row:1;

}

.diagram-card:nth-child(3){

    grid-column:1;
    grid-row:2;

}

.diagram-card:nth-child(4){

    grid-column:3;
    grid-row:1 / span 2;

}

.diagram-card h4{

    font-size:23px;
    color:#183C30;
    margin:14px 0 8px;

}

.diagram-card span{

    font-size:42px;
    font-weight:700;

    color:#183C30;

}

.diagram-card small{

    color:#8B8B8B;

    font-size:17px;

}

.icon{

    width:60px;
    height:60px;

    border-radius:18px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#F2F8F5;

    font-size:28px;

}

/*--------------------*/
/* CIRCULO */
/*--------------------*/

.diagram-center{

    grid-column:2;
    grid-row:1 / span 2;

    display:flex;
    justify-content:center;

}

.circle-chart{

    width:280px;
    height:280px;

    border-radius:50%;

    background:
    conic-gradient(

        #63B05A 0 45%,
        #4B82F3 45% 75%,
        #FF735B 75% 100%

    );

    display:flex;
    justify-content:center;
    align-items:center;

    animation:
    spinChart 25s linear infinite;

    box-shadow:
    0 25px 70px rgba(0,0,0,.08);

}

.inner-circle{

    width:170px;
    height:170px;

    border-radius:50%;

    background:white;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

}

.inner-circle .title{

    color:#888;

    font-size:15px;

}

.inner-circle h2{

    color:#183C30;

    margin-top:6px;

    font-size:30px;

}

/*--------------------*/
/* LINEAS */
/*--------------------*/

.diagram-card::after{

    content:"";

    position:absolute;

    width:70px;
    height:2px;

    background:
    repeating-linear-gradient(
        to right,
        #C8D3CE,
        #C8D3CE 8px,
        transparent 8px,
        transparent 16px
    );

}

.card-left-top::after{

    right:-70px;
    top:50%;

}

.card-left-bottom::after{

    right:-70px;
    top:50%;

}

.card-right::after{

    left:-70px;
    top:50%;

}

/*--------------------*/
/* ANIMACIONES */
/*--------------------*/

@keyframes spinChart{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* El centro no gira */

.inner-circle{

    animation:
    spinChartReverse 25s linear infinite;

}

@keyframes spinChartReverse{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(-360deg);

    }

}

/*--------------------*/
/* RESPONSIVE */
/*--------------------*/

@media(max-width:992px){

.diagram-wrapper{

grid-template-columns:1fr;

row-gap:40px;

}

.diagram-center{

grid-column:auto;
grid-row:auto;

}

.diagram-card{

grid-column:auto !important;
grid-row:auto !important;

}

.diagram-card::after{

display:none;

}

.circle-chart{

width:240px;
height:240px;

}

}


/* =====================================================================
   MOBILE RESPONSIVENESS AUDIT — comprehensive fix block
   Breakpoints: 991px (tablet), 767px (large mobile), 575px (small mobile)
   ===================================================================== */

/* -----------------------------------------------------------------------
   1. HEADER — fix absolutely-centred nav collapsing on mobile
   ----------------------------------------------------------------------- */

/* On tablet/mobile: remove absolute centering from desktop nav */
@media (max-width: 991px) {
  /* Header: auto-height, minimum 60px */
  .kf-header {
    height: auto !important;
    min-height: 60px !important;
    padding: 8px 0 !important;
  }

  .kf-header .container,
  .kf-header-inner {
    height: auto !important;
    min-height: 44px !important;
  }

  /* Undo absolute positioning of nav so it doesn't overlap logo/CTA */
  .kf-nav {
    position: static !important;
    left: auto !important;
    transform: none !important;
    /* Bootstrap d-none d-lg-flex already hides it — this is a safety net */
    display: none !important;
  }

  /* Header inner: logo left, burger right */
  .kf-header-inner {
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  /* Logo scaled for mobile */
  .kf-logo-img {
    height: 40px !important;
    width: auto !important;
    max-width: 140px !important;
  }

  /* Hide desktop CTA — it lives in the mobile nav dropdown */
  .kf-header-cta {
    display: none !important;
  }

  /* Hamburger visible */
  .mobile-nav-toggle,
  .kf-burger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mobile nav dropdown */
  .kf-mobile-nav {
    background: #fff !important;
    border-top: 3px solid var(--kf-accent) !important;
    width: 100% !important;
    padding: 0 1rem 0.5rem !important;
  }

  .kf-mobile-nav.mobile-open {
    display: block !important;
  }

  .kf-mobile-nav li {
    padding: 3px 0 !important;
  }

  .kf-mobile-nav .kf-nav-link {
    display: block !important;
    padding: 10px 4px !important;
    border-bottom: 1px solid rgba(26,77,53,0.06) !important;
  }

  .kf-mobile-nav li:last-child .kf-nav-link,
  .kf-mobile-nav li:last-child .kf-btn-solid-sm {
    border-bottom: none !important;
  }
}

/* -----------------------------------------------------------------------
   2. HERO SECTION
   ----------------------------------------------------------------------- */

@media (max-width: 991px) {
  #hero.kf-hero .kf-hero-headline,
  .kf-hero .kf-hero-headline {
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
    text-align: center !important;
  }

  .kf-hero .kf-pills,
  #hero.kf-hero .kf-pills {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .kf-btn-cta-hero {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .kf-nocredit {
    text-align: center !important;
  }
}

@media (max-width: 575px) {
  /* Hide phone mockup on very small screens to avoid overflow */
  .kf-hero-visual {
    display: none !important;
  }

  /* Also hide decorative elements */
  .kf-plant-deco,
  .kf-bubble-1,
  .kf-bubble-2,
  .kf-bubble-3 {
    display: none !important;
  }

  .kf-hero-headline {
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
  }

  .kf-btn-cta-hero {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.9rem !important;
    padding: 13px 18px !important;
  }
}

/* If hero visual is shown at medium mobile, cap phone size */
@media (min-width: 576px) and (max-width: 991px) {
  .kf-phone-frame {
    width: 220px !important;
    min-height: 400px !important;
  }

  .kf-hero-visual {
    min-height: 360px !important;
  }

  /* Hide bubbles and plant to avoid clutter */
  .kf-plant-deco,
  .kf-bubble-1,
  .kf-bubble-2,
  .kf-bubble-3 {
    display: none !important;
  }

  .kf-phone-frame {
    max-width: 260px !important;
  }
}

/* -----------------------------------------------------------------------
   3. PROBLEM / SOLUTION SECTION
   ----------------------------------------------------------------------- */

@media (max-width: 991px) {
  /* Remove overflow:hidden that clips rounded corners */
  .kf-prob-sol-card {
    overflow: visible !important;
  }

  /* Problem col: full width, round top corners only */
  .kf-problem-col {
    border-radius: var(--kf-radius) var(--kf-radius) 0 0 !important;
    width: 100% !important;
  }

  /* Arrow col: hide, mobile arrow text divider shows instead */
  .kf-arrow-col {
    display: none !important;
  }

  /* Solution col: full width, no radius */
  .kf-solution-col {
    border-radius: 0 !important;
    width: 100% !important;
  }

  /* AI col: full width, round bottom corners */
  .kf-ai-col {
    border-radius: 0 0 var(--kf-radius) var(--kf-radius) !important;
    width: 100% !important;
  }

  /* Hide plants illustration to save space */
  .kf-plants-illustration {
    display: none !important;
  }

  /* Chat bubble full-width, static */
  .kf-ai-chat-bubble {
    position: static !important;
    width: 100% !important;
    border-radius: var(--kf-radius) !important;
  }

  /* Show the mobile arrow divider */
  .kf-arrow-mobile {
    display: flex !important;
    justify-content: center !important;
    padding: 8px 0 !important;
    text-align: center !important;
    font-size: 1.5rem !important;
    color: var(--kf-mid) !important;
  }
}

/* -----------------------------------------------------------------------
   4. HOW IT WORKS — 1 column on mobile
   ----------------------------------------------------------------------- */

@media (max-width: 767px) {
  #features .col-lg-3,
  #features .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .kf-how-card {
    width: 100% !important;
    padding: 22px 18px 16px !important;
  }
}

/* -----------------------------------------------------------------------
   5. CTA BANNER — center everything, hide plant, full-width button
   ----------------------------------------------------------------------- */

@media (max-width: 991px) {
  .kf-cta-banner {
    padding: 40px 0 !important;
  }

  /* Hide decorative plant */
  .kf-cta-banner .col-lg-2 {
    display: none !important;
  }

  .kf-cta-center,
  .kf-cta-headline,
  .kf-cta-sub {
    text-align: center !important;
  }

  .kf-btn-cta-banner {
    display: block !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* Center avatar stack + stars */
  .kf-avatar-stack,
  .kf-stars,
  .kf-user-count {
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 575px) {
  .kf-btn-cta-banner {
    max-width: 100% !important;
  }
}

/* -----------------------------------------------------------------------
   6. TRUST BAR — 2 columns on mobile
   ----------------------------------------------------------------------- */

@media (max-width: 767px) {
  .kf-trust-bar .col-lg-3 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
}

@media (max-width: 400px) {
  .kf-trust-bar .col-lg-3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* -----------------------------------------------------------------------
   7. PRICING — 1 column on mobile
   ----------------------------------------------------------------------- */

@media (max-width: 767px) {
  #pricing-plans .col-lg-4,
  #pricing-plans .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .kiri-plan-box {
    margin-bottom: 1.5rem !important;
  }
}

/* -----------------------------------------------------------------------
   8. CONTACT FORM — full-width inputs on mobile
   ----------------------------------------------------------------------- */

@media (max-width: 767px) {
  .kiri-contact-form .col-md-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .kf-btn-submit {
    width: 100% !important;
    display: block !important;
  }

  .kf-contact-card {
    padding: 20px 14px !important;
  }
}

/* -----------------------------------------------------------------------
   9. FOOTER — stack vertically, center everything
   ----------------------------------------------------------------------- */

@media (max-width: 767px) {
  .kf-footer .container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .kf-footer-logo {
    justify-content: center !important;
    margin-bottom: 6px !important;
  }

  .kf-footer-copy {
    text-align: center !important;
    margin: 4px 0 !important;
  }

  .kf-footer-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }
}

/* -----------------------------------------------------------------------
   GENERAL — prevent horizontal scroll, fix container edge padding
   ----------------------------------------------------------------------- */

@media (max-width: 575px) {
  body {
    overflow-x: hidden !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .kf-prob-sol-card {
    border-radius: var(--kf-radius) !important;
    overflow: hidden !important;
  }

  /* Diagram section on very small screens */
  .kiri-diagram-section {
    padding: 40px 0 !important;
  }
}
/* === END MOBILE RESPONSIVENESS AUDIT === */


/* =====================================================================
   WHY KIRI — Problems vs Solutions Section
   ===================================================================== */

/* Section wrapper */
.kf-why-section {
  background: var(--kf-white);
  padding: 70px 0 80px !important;
}

/* Override global #about rules that interfere */
#about.kf-how-section {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

/* Global CSS sets #about h2 { font-size: 28px } — override it */
#about.kf-how-section h2.kf-section-title {
  font-family: 'Raleway', sans-serif !important;
  font-size: clamp(1.4rem, 3vw, 2.1rem) !important;
  font-weight: 800 !important;
  color: var(--kf-text) !important;
  margin-bottom: 8px !important;
  line-height: 1.2 !important;
}

#how.kf-why-section {
  padding-top: 70px !important;
}

#how.kf-why-section h2.kf-why-title {
  font-family: 'Raleway', sans-serif !important;
  font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: var(--kf-text) !important;
  margin-bottom: 10px !important;
}

/* Header */
.kf-why-header {
  margin-bottom: 40px;
}

.kf-why-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--kf-text);
  margin-bottom: 10px;
}

.kf-why-bar {
  width: 60px;
  height: 5px;
  background: var(--kf-accent);
  border-radius: 3px;
  margin: 0 auto 18px;
}

.kf-why-sub {
  font-size: 0.98rem;
  color: var(--kf-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Main card container */
.kf-why-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 4px 32px rgba(26, 77, 53, 0.10);
  border: 1px solid rgba(26, 77, 53, 0.07);
  position: relative;
  background: transparent;
}

/* Panels */
.kf-why-panel {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 40px 36px 44px !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 0 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
  cursor: default;
}

.kf-why-bad {
  background: #fff5f5 !important;
  border-radius: 20px 0 0 20px !important;
}

.kf-why-good {
  background: #f0faf3 !important;
  border-radius: 0 20px 20px 0 !important;
}

/* Hover effects */
.kf-why-bad:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 16px 48px rgba(239, 68, 68, 0.15) !important;
  background: #fff0f0 !important;
  filter: brightness(1.01);
  border-radius: 20px 0 0 20px !important;
  z-index: 2;
}

.kf-why-good:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 16px 48px rgba(26, 77, 53, 0.18) !important;
  background: #e8f7ee !important;
  filter: brightness(1.01);
  border-radius: 0 20px 20px 0 !important;
  z-index: 2;
}

/* Lift the tree image slightly on hover */
.kf-why-panel:hover .kf-tree-img {
  transform: translateY(-4px) scale(1.04) !important;
  transition: transform 0.35s ease !important;
}

.kf-tree-img {
  transition: transform 0.35s ease !important;
}

/* Tree illustrations */
.kf-why-tree-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 32px !important;
  height: 200px !important;
  min-height: unset !important;
}

.kf-tree-img {
  width: 200px !important;
  height: 200px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Remove old SVG tree rules */
.kf-dead-tree-svg,
.kf-good-tree-svg {
  display: none !important;
}

/* SVG badge icons in heading row */
.kf-why-badge-svg {
  flex-shrink: 0 !important;
  display: block !important;
}

/* SVG icons in list items */
.kf-why-item-icon {
  flex-shrink: 0 !important;
  display: block !important;
  margin-top: 2px !important;
}

/* Heading row with badge */
.kf-why-heading-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 0 !important;
  padding-bottom: 18px !important;
  border-bottom: 1.5px solid rgba(0,0,0,0.08) !important;
}

.kf-why-bad .kf-why-heading-row {
  border-bottom-color: rgba(239,68,68,0.2) !important;
}

.kf-why-good .kf-why-heading-row {
  border-bottom-color: rgba(34,197,94,0.2) !important;
}

.kf-why-x-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid #fca5a5;
}

.kf-why-check-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid #86efac;
}

.kf-why-panel-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.kf-bad-title {
  color: #ef4444;
  font-weight: 800;
}

.kf-good-title {
  color: #1a4d35;
  font-weight: 800;
}

/* List items */
.kf-why-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 22px 0 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}

.kf-why-list li {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  font-size: 0.95rem !important;
  color: var(--kf-text) !important;
  line-height: 1.45 !important;
  padding: 0 !important;
  /* initial state — hidden below */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease !important;
}

.kf-why-list li.kf-item-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.kf-why-list li::before {
  display: none !important;
  content: none !important;
}

.kf-why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.kf-icon-bad {
  background: #fee2e2;
  color: #ef4444;
  border: 1.5px solid #fca5a5;
}

.kf-icon-good {
  background: #dcfce7;
  color: #16a34a;
  border: 1.5px solid #86efac;
}

/* Arrow divider column */
.kf-why-arrow-col {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

.kf-why-arrow-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kf-white);
  box-shadow: 0 2px 12px rgba(26, 77, 53, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--kf-mid);
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(26, 77, 53, 0.12);
  z-index: 10;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 767px) {
  .kf-why-card {
    flex-direction: column !important;
  }

  .kf-why-bad {
    border-radius: 20px 20px 0 0 !important;
  }

  .kf-why-good {
    border-radius: 0 0 20px 20px !important;
  }

  .kf-why-panel {
    padding: 28px 22px 32px !important;
  }

  .kf-why-arrow-col {
    width: 100% !important;
    height: 0 !important;
    position: relative !important;
  }

  .kf-why-arrow-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .kf-tree-img {
    width: 160px !important;
    height: 160px !important;
  }

  .kf-why-tree-wrap {
    height: 160px !important;
  }
}
