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

:root {
  --bg:          #f0f9f7;
  --bg-alt:      #e3f0ee;
  --primary:     #1b6b5e;
  --primary-dk:  #124f44;
  --primary-lt:  #2d9a87;
  --accent:      #3db8a5;
  --text:        #1c3530;
  --muted:       #4e7b72;
  --surface:     #ffffff;
  --border:      #c8e6e0;
  --shadow-sm:   0 1px 4px rgba(27, 107, 94, .08);
  --shadow-md:   0 4px 20px rgba(27, 107, 94, .12);
  --shadow-lg:   0 8px 40px rgba(27, 107, 94, .18);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 249, 247, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-logo-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary);
}

.lang-switcher { display: flex; gap: 6px; }

.lang-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  font-family: var(--font);
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #e4f5f1 0%, #f0f9f7 55%, #ddf0eb 100%);
  padding: 60px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 184, 165, .10) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 107, 94, .07) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: .975rem;
  color: var(--muted);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.badge-link { display: inline-block; }

.badge-link img {
  height: 54px;
  width: auto;
  display: block;
  transition: transform .2s, filter .2s;
}

.badge-link:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 10px rgba(27, 107, 94, .25));
}

/* ══════════════════════════════════════════════════════
   SHARED SECTION LABELS
══════════════════════════════════════════════════════ */
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 60px;
}

/* ══════════════════════════════════════════════════════
   BANNER SHOWCASE
══════════════════════════════════════════════════════ */
.banner-showcase {
  background: linear-gradient(160deg, var(--primary-dk) 0%, var(--primary) 55%, #1e8872 100%);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-showcase::before {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(61, 184, 165, .14) 0%, transparent 65%);
  top: -260px;
  right: -120px;
}

.banner-showcase::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, .04) 0%, transparent 70%);
  bottom: -120px;
  left: -60px;
}

.banner-showcase-inner {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
}

.banner-label { color: var(--accent) !important; }

.banner-title {
  color: #fff !important;
  margin-bottom: 48px;
}

.banner-frame {
  display: inline-block;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10),
    0 32px 80px rgba(0, 0, 0, .40);
}

.banner-img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
}

/* ══════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════ */
.features {
  padding: 90px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.features-grid { display: grid; gap: 36px; }

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 230, 224, .5);
  transition: box-shadow .25s, transform .25s;
}

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

/* Alternate image side on even cards */
.feature-card:nth-child(even) { direction: rtl; }
.feature-card:nth-child(even) > * { direction: ltr; }

/* ── Phone mockup ── */
.feature-img-wrap {
  background: var(--bg-alt);
  height: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.feature-img-wrap::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 184, 165, .13) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.phone-mockup {
  position: relative;
  width: 170px;
  flex-shrink: 0;
  border-radius: 34px;
  background: linear-gradient(145deg, #2e2e2e, #1a1a1a);
  padding: 11px 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07),
    0 22px 54px rgba(0, 0, 0, .28);
  margin: 36px auto;
  z-index: 1;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease;
}

.phone-zoom-hint {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background: rgba(27, 107, 94, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0);
  font-size: 1.6rem;
  transition: background .25s, color .25s;
  pointer-events: none;
  z-index: 2;
}

.phone-mockup:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12),
    0 32px 70px rgba(0, 0, 0, .36);
}

.phone-mockup:hover .phone-zoom-hint {
  background: rgba(27, 107, 94, .32);
  color: rgba(255, 255, 255, .88);
}

.phone-screen {
  border-radius: 25px;
  overflow: hidden;
  background: #000;
  /* exact aspect ratio of the screenshots: 1284 × 2778 */
  aspect-ratio: 1284 / 2778;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-content { padding: 48px 44px; }

.feature-num {
  display: inline-block;
  background: var(--bg);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.feature-title {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 780px) {
  .feature-card,
  .feature-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-img-wrap { min-height: 320px; }
  .feature-content { padding: 32px 28px; }

  .phone-mockup {
    width: 140px;
    margin: 24px auto;
    border-radius: 28px;
    padding: 9px 8px;
  }

  .phone-zoom-hint { border-radius: 28px; }

  .phone-screen { border-radius: 20px; }
}

/* ══════════════════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════════════════ */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  padding: 90px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  pointer-events: none;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.cta-inner {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}

.cta p {
  font-size: 1.05rem;
  opacity: .82;
  margin-bottom: 40px;
}

/* ══════════════════════════════════════════════════════
   LEGAL CONTENT (shared by standalone pages)
══════════════════════════════════════════════════════ */
.legal {
  padding: 0 24px;
}

.legal-inner {
  max-width: 820px;
  margin: 0 auto;
}

.legal-updated {
  font-size: .78rem;
  color: var(--muted);
  margin: 16px 0 6px;
  font-style: italic;
}

.legal-intro {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-section { margin-top: 22px; }

.legal-section h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.legal-section p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.78;
  white-space: pre-line;
}

/* ══════════════════════════════════════════════════════
   STANDALONE LEGAL PAGES
══════════════════════════════════════════════════════ */
.legal-page-hero {
  background: linear-gradient(160deg, #e4f5f1 0%, #f0f9f7 55%, #ddf0eb 100%);
  padding: 64px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-page-hero::before {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61, 184, 165, .09) 0%, transparent 70%);
  top: -180px;
  right: -80px;
}

.legal-page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color .18s;
}

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

.legal-page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.legal-standalone {
  background: var(--bg);
  padding-top: 60px;
}

.legal-standalone .legal-section { margin-top: 28px; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  background: var(--primary-dk);
  color: rgba(255, 255, 255, .65);
  padding: 32px 24px;
  text-align: center;
  font-size: .82rem;
}

footer strong {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .82rem;
  transition: color .18s;
}

.footer-links a:hover { color: rgba(255, 255, 255, .92); }

.footer-links span {
  color: rgba(255, 255, 255, .25);
  font-size: .82rem;
  user-select: none;
}

/* ══════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
  animation: lb-fade .2s ease both;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 20, .88);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  animation: lb-rise .22s ease both;
}

@keyframes lb-rise {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox-phone {
  position: relative;
  background: linear-gradient(145deg, #2e2e2e, #1a1a1a);
  border-radius: 46px;
  padding: 14px 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 32px 90px rgba(0, 0, 0, .60);
}

.lightbox-phone img {
  display: block;
  height: 82vh;
  width: auto;
  border-radius: 34px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  transition: background .18s, transform .18s;
  z-index: 2;
}

.lightbox-close:hover {
  background: var(--primary-lt);
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-phone {
    border-radius: 36px;
    padding: 10px 9px;
  }

  .lightbox-phone img {
    height: 78vh;
    border-radius: 26px;
  }
}
