/* ========================================
   UnVanish Landing Page — Green Theme
   ======================================== */

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #25D366;
  color: #0a0a0a;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; }
:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 2px;
  border-radius: 4px;
}
.top-controls .lang-toggle-btn:focus-visible,
.top-controls .theme-toggle-btn:focus-visible {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-surface: #1a1a1a;
  --bg-surface-hover: #222;
  --bg-surface-raised: #242424;
  --bg-input: #111;
  --accent: #25D366;
  --accent-hover: #2ee67e;
  --accent-dark: #128C7E;
  --accent-muted: rgba(37, 211, 102, 0.15);
  --accent-gradient: linear-gradient(135deg, #25D366, #128C7E);
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-muted: #555;
  --border: #333;
  --border-hover: #555;
  --border-focus: #25D366;
  --error: #ff6b6b;
  --error-bg: rgba(255, 107, 107, 0.1);
  --success: #25D366;
  --success-bg: rgba(37, 211, 102, 0.1);
  --warning: #f0a030;
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.2s ease;
  --max-width: 1100px;
}

/* ---------- Light Theme Overrides ---------- */
[data-theme="light"] {
  --bg-primary: #f5f7f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f0f2f4;
  --bg-surface-raised: #f8fafc;
  --bg-input: #ffffff;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-dark: #047857;
  --accent-muted: rgba(22, 163, 74, 0.12);
  --accent-gradient: linear-gradient(135deg, #16a34a, #047857);
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #16a34a;
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.08);
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.08);
  --warning: #b45309;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Top Controls (lang + theme) ---------- */
.top-controls {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: ltr;
}

.lang-toggle-wrap { display: inline-flex; align-items: center; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
  gap: 2px;
}

.lang-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-family);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.lang-toggle-btn:hover { color: var(--text-primary); }

.lang-toggle-btn.active {
  background: var(--accent);
  color: #0a0a0a;
}

.theme-toggle-wrap { display: inline-flex; align-items: center; }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .site-header {
  background: rgba(245, 247, 249, 0.85);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

@media (max-width: 640px) {
  .header-nav { display: none; }
  .nav-login-btn span { font-size: 0.85rem; }
  .header-inner { padding: 0.6rem 1rem; }
  .logo-text { font-size: 1.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-full { width: 100%; }

.btn-whatsapp {
  background: #25D366;
  color: #0a0a0a;
}

.btn-whatsapp:hover {
  background: #2ee67e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.wa-icon { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 70vh;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    gap: 2rem;
  }
}

.hero-content { display: flex; flex-direction: column; gap: 1.25rem; }

@media (max-width: 900px) {
  .hero-content { align-items: center; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-muted);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
}

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

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

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
}

@media (max-width: 900px) {
  .hero-subtitle { max-width: 100%; }
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-cta { justify-content: center; }
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .hero-stats { gap: 1.5rem; justify-content: center; }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---------- Phone Mockup ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: var(--bg-surface);
  border-radius: 0 0 12px 12px;
  border: 2px solid var(--border);
  border-top: none;
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--accent-dark);
  color: #fff;
}

.phone-wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.phone-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phone-msg {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 85%;
}

[dir="rtl"] .phone-msg { align-self: flex-start; }
[dir="ltr"] .phone-msg { align-self: flex-end; }

.phone-msg-sender {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.phone-msg-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .section-title { font-size: 1.5rem; }
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-muted);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-inline-start: 0.25rem;
}

.pricing-features {
  list-style: none;
  text-align: start;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  position: relative;
  padding-inline-start: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700;
}

[dir="rtl"] .pricing-features li::before {
  content: '✓';
}

.pricing-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-q {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */
.cta-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.cta-content {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  color: #fff;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-content .btn-whatsapp {
  background: #fff;
  color: #128C7E;
}

.cta-content .btn-whatsapp:hover {
  background: #f0f0f0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Floating WhatsApp Button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 10000;
  transition: all var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- High-contrast a11y overrides ---------- */
html.a11y-high-contrast .site-header { background: #000 !important; }
html.a11y-high-contrast .phone-mockup::before { background: #000 !important; }
