/* ============================================================
   CLIFO — Full-Page Bento Design System
   Palette: #D8DADB (page) · #F2F2F2 (card) · #1a1a1a (text) · #EA3F2F (accent)
   ============================================================ */

@font-face { font-family:'Druk Wide'; src:url('/fonts/DrukWideBold.ttf') format('truetype'); font-weight:800; font-display:swap; }
@font-face { font-family:'Evolventa';  src:url('/fonts/Evolventa-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Evolventa';  src:url('/fonts/Evolventa-Bold.ttf')    format('truetype'); font-weight:700; font-display:swap; }

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --page:    #F2F2F2;
  --card:    #ffffff;
  --dark:    #1a1a1a;
  --accent:  #EA3F2F;
  --accent2: #D13527;
  --alight:  rgba(234,63,47,.09);
  --border:  #F2F2F2;
  --muted:   #888;
  --dim:     #bbb;

  --r-sm: 14px; --r-md: 18px; --r-lg: 22px; --r-xl: 26px; --r-pill: 999px;
  --sh-sm: 0 1px 3px rgba(0,0,0,.04);
  --sh-md: 0 4px 18px rgba(0,0,0,.07);
  --sh-lg: 0 8px 36px rgba(0,0,0,.09);

  --f-display: 'Druk Wide','Evolventa','Arial Black',sans-serif;
  --f-head:    'Evolventa','Segoe UI',sans-serif;
  --f-body:    'Evolventa','Segoe UI',sans-serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ── Base ─────────────────────────────────────────────────── */
.landing-page {
  background: var(--page);
  color: var(--dark);
  font-family: var(--f-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.landing-page *, .landing-page *::before, .landing-page *::after { box-sizing: border-box; }

.landing-page .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px,3vw,40px);
}

/* ── Bento Card ───────────────────────────────────────────── */
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  position: relative;
  /* reveal animation start */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.bento-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.bento-card:hover {
  box-shadow: var(--sh-md);
  border-color: #C8CACC;
}

/* ── Buttons ──────────────────────────────────────────────── */
.landing-page .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; line-height: 1;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .25s var(--ease);
  /* white-space: nowrap removed — allows text to wrap in any language */
}
.btn-cta {
  background: var(--accent); color: #fff;
  padding: 13px 30px; border-radius: var(--r-pill);
  box-shadow: 0 4px 18px rgba(234,63,47,.28);
}
.btn-cta:hover { background: var(--accent2); box-shadow: 0 6px 26px rgba(234,63,47,.38); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--dark);
  padding: 13px 30px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(0,0,0,.03); border-color: var(--muted); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .875rem; border-radius: var(--r-pill); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { background: rgba(0,0,0,.03); border-color: var(--muted); }
.landing-page .btn-primary { background: var(--accent); color: #fff; }
.landing-page .btn-primary:hover { background: var(--accent2); }
.btn-cta-white {
  background: #fff; color: var(--accent);
  padding: 14px 36px; border-radius: var(--r-pill); font-size: 1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.btn-cta-white:hover { background: #f5f5f5; transform: translateY(-2px); box-shadow: 0 6px 26px rgba(0,0,0,.18); }
.btn-demo { padding: 10px 22px; font-size: .88rem; }

/* ── I18n: keep nowrap only on short-text controls ───────────── */
.toggle-btn,
.demo-copy-btn,
.navbar-auth .btn,
.pricing-badge { white-space: nowrap; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-landing {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  min-height: 68px; display: flex; align-items: center;
  transition: background .25s;
}
.navbar-landing.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--sh-sm); }
.navbar-landing .navbar-content {
  display: flex; align-items: center; gap: 32px;
  min-height: 68px; width: 100%;
  max-width: none; margin: 0 auto;
  padding: 0 clamp(20px,3vw,40px);
}
.navbar-brand, .footer-logo {
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 800;
  color: var(--dark); text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
}
.navbar-brand span, .footer-logo span { color: var(--accent); }
.navbar-menu { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.navbar-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: .88rem;
  transition: color .2s; position: relative;
}
.nav-link:hover { color: var(--dark); }
.nav-link::after {
  content:''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease); border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }
.navbar-auth { display: flex; gap: 10px; align-items: center; }
.landing-user-name {
  font-family: var(--f-head); font-weight: 700; font-size: .88rem;
  color: var(--dark); text-decoration: none; transition: color .2s;
}
.landing-user-name:hover { color: var(--accent); }
.landing-btn-logout {
  background: transparent; color: var(--muted); border: 1.5px solid var(--border);
  font-family: var(--f-head); font-weight: 700; font-size: .82rem;
  padding: 6px 16px; border-radius: var(--r-pill); cursor: pointer;
  transition: all .2s;
}
.landing-btn-logout:hover { color: var(--accent); border-color: var(--accent); }
/* Language selector + burger grouped together with 12px gap; pushed to far right */
.navbar-actions { display: flex; align-items: center; gap: 12px; }

/* ── Custom language dropdown (navbar + footer) ───────────── */
.lang-dropdown {
  position: relative;
  display: inline-flex;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
  transition: border-color .18s, box-shadow .18s;
  white-space: nowrap;
}

.lang-dropdown-btn:hover {
  border-color: #c8c3bb;
  box-shadow: var(--sh-sm);
}

.lang-dropdown.open .lang-dropdown-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234,63,47,.1);
}

.lang-dropdown-chevron {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s var(--ease);
}

.lang-dropdown.open .lang-dropdown-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 80px;
  padding: 4px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  z-index: 300;
  overflow: hidden;
}

.lang-dropdown-up .lang-dropdown-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.lang-dropdown.open .lang-dropdown-menu {
  display: flex;
}

.lang-dropdown-item {
  width: 100%;
  padding: 7px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: background .14s, color .14s;
}

.lang-dropdown-item:hover {
  background: var(--alight);
  color: var(--accent);
}

.lang-dropdown-item.active {
  font-weight: 700;
  color: var(--accent);
  background: var(--alight);
}

.navbar-toggle { display: none; flex-direction: column; background: none; border: none; cursor: pointer; gap: 5px; padding: 4px; }
.navbar-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .25s; }
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Section base ─────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-head {
  text-align: center; margin-bottom: 48px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.section-head.in-view { opacity: 1; transform: translateY(0); }
.section-head h2 {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(1.8rem,3vw,2.6rem); color: var(--dark); margin-bottom: 10px;
  word-break: normal; overflow-wrap: break-word;
}
.section-head p { font-size: 1rem; color: var(--muted); max-width: 520px; margin: 0 auto; word-break: break-word; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero { padding: 96px 0 48px; }

.hero-grid {
  display: grid;
  /* 1.3/0.7 gives the text card more room for longer translated titles */
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  align-items: stretch;
}

/* LEFT main card */
.hero-main {
  padding: clamp(32px,4vw,52px);
  display: flex; flex-direction: column;
  min-height: 480px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--alight); color: var(--accent);
  padding: 5px 14px; border-radius: var(--r-pill);
  font-family: var(--f-head); font-weight: 700; font-size: .75rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 22px; border: 1px solid rgba(234,63,47,.14);
  /* i18n: allow wrapping for long translations */
  max-width: 100%; white-space: normal; word-break: break-word;
}
.hero-badge::before {
  content:''; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-family: var(--f-display); font-weight: 800;
  /* Reduced max: Druk Wide is an extra-wide font — keep max ≤38px so longest
     translated words (e.g. "SEGUIMIENTO" 508px @49px) fit in the hero column */
  font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.08; color: var(--dark); margin-bottom: 16px;
  word-break: normal; overflow-wrap: break-word;
}
.hero-subtitle {
  font-size: clamp(.92rem,1.3vw,1.05rem); color: #666;
  line-height: 1.7; margin-bottom: 28px; max-width: 460px;
  word-break: break-word; overflow-wrap: break-word;
}

/* URL demo */
.hero-demo { margin-bottom: 28px; }
.hero-demo-input {
  display: flex; align-items: center; gap: 8px;
  background: var(--page); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 6px 6px 6px 16px;
}
.hero-demo-input svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.hero-demo-input input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--f-body); font-size: .9rem; color: var(--dark);
  min-width: 0;
}
.hero-demo-input input::placeholder { color: var(--dim); }
.hero-demo-result {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-top: 10px;
  background: var(--alight); border-radius: var(--r-md);
}
.demo-result-label { font-size: .8rem; color: var(--muted); }
.demo-result-url { font-family: var(--f-head); font-weight: 700; color: var(--accent); }
.demo-copy-btn {
  margin-left: auto; background: var(--accent); color: #fff;
  border: none; cursor: pointer; font-family: var(--f-head);
  font-weight: 700; font-size: .78rem; padding: 4px 14px; border-radius: var(--r-pill);
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; }

/* Dot pattern decoration */
.hero-dot-pattern {
  position: absolute; bottom: 20px; right: 20px;
  width: 120px; height: 70px;
  background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.5px);
  background-size: 10px 10px; opacity: .12; pointer-events: none;
}

/* RIGHT column */
.hero-right { display: flex; flex-direction: column; gap: 16px; }

/* Analytics card */
.hero-analytics {
  padding: 24px 28px;
  flex: 1; display: flex; flex-direction: column;
}
.analytics-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.analytics-title { font-family: var(--f-head); font-weight: 700; font-size: .9rem; }
.analytics-period { font-size: .78rem; color: var(--muted); }
.analytics-dots {
  width: 100%; height: 70px;
  background-image: radial-gradient(circle, var(--accent) 2px, transparent 2px);
  background-size: 11px 11px; opacity: .8; margin: 10px 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 100%);
}
.analytics-number { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.an-value { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem,3.5vw,3rem); color: var(--dark); letter-spacing: -.02em; }
.an-unit { font-size: .95rem; color: var(--muted); }
.an-label { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* Mini row */
.hero-mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hero-stat-white, .hero-stat-orange {
  padding: 22px 20px; display: flex; flex-direction: column; gap: 6px;
}
.hero-stat-orange { background: var(--accent); border-color: var(--accent); }
.hero-stat-orange:hover { border-color: var(--accent2); }

.stat-icon { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon-link { background: var(--alight); color: var(--accent); }
.stat-icon-white { background: rgba(255,255,255,.22); color: #fff; }

.hs-value { font-family: var(--f-display); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; margin-top: auto; }
.hero-stat-orange .hs-value { color: #fff; }
.hs-label { font-size: .8rem; color: var(--muted); white-space: normal; word-break: break-word; line-height: 1.3; }
.hero-stat-orange .hs-label { color: rgba(255,255,255,.75); }

/* ══════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════ */
.features-section { background: var(--page); }

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.f-card { padding: 28px 28px 24px; display: flex; flex-direction: column; transition-delay: .05s; }
.f-card:nth-child(2) { transition-delay: .1s; }
.f-card:nth-child(3) { transition-delay: .15s; }
.f-card:nth-child(4) { transition-delay: .1s; }
.f-card:nth-child(5) { transition-delay: .15s; }
.f-card:nth-child(6) { transition-delay: .2s; }
.f-card:hover { transform: translateY(-4px); }

/* Wide: span 2 cols */
.f-wide { grid-column: span 2; }
/* Tall: span 2 rows */
.f-tall { grid-row: span 2; }

/* Dark card */
.f-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.f-dark h3 { color: #fff; }
.f-dark p  { color: rgba(255,255,255,.6); }
.f-dark:hover { border-color: #333; }

.f-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--alight); display: flex; align-items: center;
  justify-content: center; color: var(--accent); margin-bottom: 16px; flex-shrink: 0;
}
.f-icon svg { width: 22px; height: 22px; }
.f-icon-dark { background: rgba(234,63,47,.18); color: var(--accent); }

.f-card h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; word-break: break-word; }
.f-card p  { font-size: .9rem; color: var(--muted); line-height: 1.6; word-break: break-word; }

/* Short URL demo */
.f-demo-url {
  display: flex; align-items: center; gap: 10px;
  background: var(--page); border-radius: var(--r-md);
  padding: 12px 16px; margin-top: auto; font-size: .88rem;
}
.f-short { font-family: var(--f-head); font-weight: 700; color: var(--accent); }
.f-arrow { color: var(--dim); }
.f-long  { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Analytics mini chart */
.f-chart {
  display: flex; gap: 5px; align-items: flex-end; height: 90px; margin-top: auto; padding-top: 16px;
}
.f-bar { flex: 1; background: #eee; border-radius: 3px 3px 0 0; min-height: 6px; }
.f-bar-accent { background: var(--accent); }
.f-chart-label { font-size: .75rem; color: var(--muted); margin-top: 6px; }

/* QR dot grid */
.f-qr-preview { margin-top: auto; padding-top: 16px; }
.qr-dot-grid {
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, var(--dark) 2px, transparent 2px);
  background-size: 9px 9px; opacity: .15;
}

/* Custom domain tag */
.f-domain-tag {
  display: inline-block; margin-top: auto; padding: 8px 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill); font-family: var(--f-head);
  font-weight: 700; font-size: .9rem; color: #fff; width: fit-content;
}

/* Team collaboration */
.f-team-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.f-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: #fff;
  border: 2px solid #fff;
}
.f-avatar-more { background: var(--page); color: var(--muted); border-color: var(--border); font-size: .78rem; }
.f-role-badge {
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--alight); color: var(--accent);
  font-family: var(--f-head); font-weight: 700; font-size: .75rem;
}
.f-role-editor { background: rgba(59,130,246,.1); color: #3B82F6; }
.f-role-viewer { background: rgba(16,185,129,.1); color: #10B981; }

/* UTM tags */
.f-utm-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.utm-tag {
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--page); border: 1px solid var(--border);
  font-size: .75rem; color: var(--muted);
  font-family: 'Courier New', monospace;
}

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════════ */
.how-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: center;
}
.how-card { padding: 32px 28px; text-align: center; }
.how-card h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; margin: 12px 0 8px; color: var(--dark); word-break: break-word; }
.how-card p  { font-size: .88rem; color: var(--muted); line-height: 1.6; word-break: break-word; }
.how-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--alight); border: 2px solid rgba(234,63,47,.2);
  font-family: var(--f-display); font-weight: 800; font-size: .9rem; line-height: 1; color: var(--accent);
  margin: 0 auto;
}
.how-connector {
  font-size: 1.5rem; color: var(--dim); padding: 0 8px; text-align: center;
  opacity: 0; transform: scale(.6);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.how-connector.in-view { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════════════════════════════
   USE CASES
══════════════════════════════════════════════════════════════ */
.cases-section { background: var(--page); }
.cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.case-card { padding: 36px 28px; transition-delay: .05s; }
.case-card:nth-child(2) { transition-delay: .12s; }
.case-card:nth-child(3) { transition-delay: .18s; }
.case-card:hover { transform: translateY(-4px); }

.case-dark { background: var(--dark); border-color: var(--dark); }
.case-dark h3 { color: #fff; }
.case-dark p  { color: rgba(255,255,255,.6); }
.case-dark:hover { border-color: #333; }

.case-num {
  font-family: var(--f-display); font-weight: 800; font-size: 2.2rem;
  color: var(--dim); margin-bottom: 16px; letter-spacing: -.02em;
}
.case-num-orange { color: var(--accent); }

.case-card h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; color: var(--dark); word-break: break-word; }
.case-card p  { font-size: .9rem; color: var(--muted); line-height: 1.65; word-break: break-word; }

/* ══════════════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════════════ */
.pricing-section { background: var(--page); }

.billing-toggle-group {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 40px; margin-top: -16px;
  background: var(--card); padding: 4px; width: fit-content;
  margin-left: auto; margin-right: auto;
  border-radius: var(--r-pill); border: 1px solid var(--border); box-shadow: var(--sh-sm);
}
.toggle-btn {
  padding: 9px 22px; background: transparent; border: none; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: .88rem; line-height: 1;
  color: var(--muted); transition: all .25s; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
}
.toggle-btn.active { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(234,63,47,.28); }
.save-badge {
  display: inline-block; background: rgba(34,197,94,.12); color: #16a34a;
  padding: 2px 7px; border-radius: var(--r-pill); font-size: .68rem; margin-left: 5px; font-weight: 700;
}

.pricing-cards-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; max-width: 1400px; margin: 0 auto 48px; align-items: stretch;
}
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px 28px;
  position: relative; display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: #C8CACC; }
.pricing-card.featured {
  border-top: 3px solid var(--accent);
  box-shadow: var(--sh-md);
}
.pricing-card.featured:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.pricing-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--alight); color: var(--accent);
  padding: 4px 14px; border-radius: var(--r-pill);
  font-family: var(--f-head); font-size: .72rem;
  font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px;
}
.pricing-name { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: var(--dark); margin-bottom: 4px; word-break: break-word; }
.pricing-tagline { font-size: .88rem; color: var(--muted); margin-bottom: 20px; word-break: break-word; }
.pricing-price { font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; color: var(--accent); }
.pricing-period { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.pricing-discount {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--alight); color: var(--accent); font-size: .76rem; font-weight: 700;
}
.pricing-features { list-style: none; padding: 0; margin-bottom: 24px; flex: 1; }
.pricing-features li {
  padding: 9px 0; color: #555; font-size: .88rem;
  border-bottom: 1px solid var(--border); display: flex; align-items: flex-start;
  word-break: break-word;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content:"\2713"; color: var(--accent); font-weight: 700; margin-right: 9px; }
.pricing-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 13px 22px; background: var(--accent); color: #fff;
  text-decoration: none; border-radius: var(--r-pill);
  font-family: var(--f-head); font-weight: 700; font-size: .92rem; line-height: 1;
  transition: all .25s var(--ease); border: none; cursor: pointer; margin-top: auto;
  box-shadow: 0 4px 14px rgba(234,63,47,.22);
}
.pricing-cta:hover { background: var(--accent2); box-shadow: 0 6px 22px rgba(234,63,47,.32); transform: translateY(-2px); }

/* Comparison */
.pricing-comparison { max-width: 1400px; margin: 0 auto 32px; }
.comparison-title { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: var(--dark); margin-bottom: 16px; text-align: center; }
.comparison-wrap { padding: 0; border-radius: var(--r-xl); overflow: hidden; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .86rem; white-space: nowrap; }
.comparison-table th { background: #E5E5E5; color: var(--dark); font-family: var(--f-head); font-weight: 700; text-align: center; }
.comparison-table th:first-child { text-align: left; }
.comparison-table td { text-align: center; color: #555; }
.comparison-table td:first-child { text-align: left; font-weight: 700; background: rgba(0,0,0,.01); }
.comparison-check { color: var(--accent); font-weight: 700; }
.comparison-cross { color: var(--dim); }

@media (max-width: 900px) {
  .pricing-comparison { max-width: 100%; }
  .comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-xl); }
  .comparison-table { min-width: 560px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: .82rem; }
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--card);
    box-shadow: 2px 0 6px rgba(0,0,0,.05);
    white-space: normal; min-width: 120px; max-width: 150px;
  }
  .comparison-table th:first-child { background: #E5E5E5; }
}

@media (max-width: 480px) {
  .comparison-wrap { overflow-x: visible; border-radius: var(--r-xl); }
  .comparison-table { min-width: 0; width: 100%; table-layout: fixed; }
  .comparison-table th, .comparison-table td {
    padding: 9px 5px; font-size: .73rem;
    white-space: normal; word-break: break-word;
  }
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    position: static; box-shadow: none;
    min-width: 0; max-width: none; width: 34%;
    font-size: .73rem;
  }
  .comparison-table th:not(:first-child),
  .comparison-table td:not(:first-child) {
    width: 22%; text-align: center;
    white-space: nowrap;
  }
}

/* FAQ */
.pricing-faq { max-width: 800px; margin: 0 auto; padding: 28px 32px; }
.faq-title { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: var(--dark); margin-bottom: 24px; text-align: center; }
.faq-item { margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.faq-item.active { border-color: var(--accent); }
.faq-question {
  padding: 14px 18px; background: var(--page); cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  font-family: var(--f-head); font-weight: 700; font-size: .92rem; color: #555;
  transition: color .2s; word-break: break-word;
}
.faq-question:hover { color: var(--dark); }
.faq-item.active .faq-question { background: var(--alight); color: var(--accent); }
.faq-toggle-icon { font-size: .75rem; color: var(--muted); transition: transform .25s; }
.faq-item.active .faq-toggle-icon { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 300px; padding: 14px 18px; }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════════ */
.dashboard-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.dashboard-mockup { max-width: 1400px; margin: 0 auto; padding: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }

.db-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: var(--page); border-bottom: 1px solid var(--border);
}
.db-dots { display: flex; gap: 7px; }
.db-dot { width: 11px; height: 11px; border-radius: 50%; }
.db-dot-r { background: #ff5f56; }
.db-dot-y { background: #ffbd2e; }
.db-dot-g { background: #27c93f; }
.db-url-bar {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 6px 16px; font-size: .8rem; color: var(--muted);
  margin-left: 8px;
}

.db-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.db-stat {
  background: var(--card); padding: 20px 16px; text-align: center;
}
.db-stat-accent { background: var(--accent); }
.db-stat-val { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.db-stat-accent .db-stat-val { color: #fff; }
.db-stat-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.db-stat-accent .db-stat-lbl { color: rgba(255,255,255,.7); }

.db-body { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); }
.db-chart-col { padding: 20px; border-right: 1px solid var(--border); }
.db-chart-title { font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: #555; margin-bottom: 12px; }
.db-bars { display: flex; gap: 6px; align-items: flex-end; height: 110px; }
.db-bar { flex: 1; background: #eee; border-radius: 3px 3px 0 0; min-height: 8px; }
.db-bar-hi { background: linear-gradient(180deg, var(--accent), rgba(234,63,47,.3)); }

.db-table-col { padding: 20px; }
.db-table { width: 100%; border-collapse: collapse; }
.db-table th { background: var(--page); padding: 8px 12px; font-family: var(--f-head); font-weight: 700; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; border-bottom: 1px solid var(--border); }
.db-table td { padding: 9px 12px; font-size: .82rem; color: #555; border-bottom: 1px solid var(--border); }
.db-table tr:last-child td { border-bottom: none; }
.db-link { color: var(--accent); font-weight: 700; font-family: var(--f-head); }
.db-clicks { font-family: var(--f-head); font-weight: 700; color: var(--dark); }

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section { background: var(--page); }

.cta-card {
  background: var(--dark);
  border-color: var(--dark);
  border-radius: var(--r-xl);
  max-width: 1400px; margin: 0 auto;
  padding: clamp(48px,6vw,80px) clamp(32px,5vw,64px);
  text-align: center; overflow: hidden;
}
.cta-card:hover { border-color: #333; }
.cta-dot-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(234,63,47,.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px; pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(1.7rem,3vw,2.4rem); color: #fff; margin-bottom: 14px;
  word-break: normal; overflow-wrap: break-word;
}
.cta-content p { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: 32px; word-break: break-word; }

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about-section { background: var(--page); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.about-card h2 { font-family: var(--f-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.about-card p { color: var(--muted); line-height: 1.7; margin-bottom: 14px; font-size: .95rem; }
.about-contact { margin-top: 20px !important; }
.about-contact a { color: var(--accent); text-decoration: none; font-weight: 600; }
.about-contact a:hover { text-decoration: underline; }
.about-stats-card { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.about-stat { display: flex; align-items: flex-start; gap: 12px; }
.about-stat-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.about-stat strong { display: block; font-size: .92rem; font-weight: 700; color: var(--dark); }
.about-stat span { font-size: .85rem; color: var(--muted); }
.footer-contact-email { margin-top: 10px; font-size: .86rem; }
.footer-contact-email a { color: var(--muted); text-decoration: none; }
.footer-contact-email a:hover { color: var(--accent); }
/* mobile email: hidden on desktop, shown below copyright on mobile */
.footer-contact-email--mobile { display: none; margin-top: 4px; }
.footer-contact-email--mobile a { color: var(--dim); font-size: .78rem; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer { background: var(--card); border-top: 1px solid var(--border); padding: 56px 0 28px; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-desc { font-size: .88rem; color: var(--muted); line-height: 1.65; margin-top: 12px; word-break: break-word; }
.footer-link-col h4 { font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: var(--dark); margin-bottom: 14px; word-break: break-word; }
.footer-link-col ul { list-style: none; padding: 0; }
.footer-link-col li { margin-bottom: 10px; }
.footer-link-col a { color: var(--muted); text-decoration: none; font-size: .86rem; transition: color .2s; word-break: break-word; }
.footer-link-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: .8rem; color: var(--dim); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* ── 1200px: tighten nav spacing so long words (ES/DE/RU) fit ── */
@media (max-width: 1200px) {
  .navbar-links { gap: 18px; }
  .navbar-menu { gap: 20px; }
  .navbar-auth .btn { padding: 8px 16px; font-size: .82rem; }
}

/* ── 960px: switch to hamburger ── */
@media (max-width: 960px) {
  .navbar-toggle { display: flex; }

  /* Remove backdrop-filter on mobile so it doesn't trap the fixed menu in a stacking context */
  .navbar-landing {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(242,241,237,.97);
  }

  .navbar-menu {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--page); /* solid — no backdrop-filter */
    flex-direction: column;
    padding: 24px clamp(20px,4vw,48px);
    gap: 0;
    z-index: 1999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .navbar-menu.active { transform: translateX(0); }

  .navbar-links { flex-direction: column; gap: 0; width: 100%; }
  .nav-link { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); white-space: normal; }
  .navbar-auth { width: 100%; flex-direction: column; padding-top: 16px; gap: 10px; }
  .navbar-auth .btn { width: 100%; padding: 13px; font-size: .95rem; white-space: normal; text-align: center; }

  /* Language selector stays in the top bar — compact on mobile */
  .lang-dropdown-btn { height: 32px; padding: 0 10px; font-size: .76rem; }
}

/* ── 900px: hero single column + pricing goes to 1 column ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-main { min-height: auto; }
  .hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-analytics { flex: none; }
  .hero-title { font-size: clamp(1.8rem,6vw,2.8rem); }
  .cases-grid { grid-template-columns: 1fr 1fr; }

  /* Pricing: single column on mobile/tablet */
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card {
    padding: 28px 24px;
  }
  .pricing-card.featured {
    grid-column: auto;
    max-width: none;
    border-top: 3px solid var(--accent);
  }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .pricing-price { font-size: 2rem; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; } /* back to 50/50 near tablet */
  .features-bento { grid-template-columns: repeat(2,1fr); }
  .f-wide { grid-column: span 2; }
  .f-tall { grid-row: auto; }
  .how-grid { grid-template-columns: 1fr; }
  .how-connector { display: none; }
  .cases-grid { grid-template-columns: 1fr 1fr 1fr; }
  /* pricing stays 3 columns at 1024px; no override needed here */
  .db-stats-row { grid-template-columns: repeat(2,1fr); }
  .db-body { grid-template-columns: 1fr; }
  .db-chart-col { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .landing-page .container { padding: 0 18px; }
  .section { padding: 56px 0; }

  /* Nav mobile — inherited from 960px block */
  .navbar-toggle { display: flex; }

  /* Hero */
  .hero { padding: 80px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-main { min-height: auto; padding: 28px 24px; }
  .hero-title { font-size: clamp(1.6rem,7vw,2.4rem); }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
  .hero-dot-pattern { display: none; }
  .hero-right { display: grid; grid-template-columns: 1fr; }
  .hero-mini-row { grid-template-columns: 1fr 1fr; }

  /* Features */
  .features-bento { grid-template-columns: 1fr; }
  .f-wide, .f-tall { grid-column: auto; grid-row: auto; }

  /* Cases */
  .cases-grid { grid-template-columns: 1fr; }

  /* Pricing — already single column from 900px breakpoint */

  /* Dashboard */
  .db-stats-row { grid-template-columns: 1fr 1fr; }
  .db-body { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 28px 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px 12px; margin-bottom: 16px; }
  .footer-brand-col {
    grid-column: 1 / -1;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px; margin-bottom: 4px;
  }
  .footer-desc { display: none; }
  .footer-contact-email--desktop { display: none; }
  .footer-contact-email--mobile { display: block; }
  .footer-bottom { justify-content: center; text-align: center; padding-top: 14px; flex-direction: column; align-items: center; gap: 2px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .section-head h2 { font-size: 1.6rem; }
  .an-value { font-size: 2rem; }
  .hero-mini-row { grid-template-columns: 1fr; }
  .db-stats-row { grid-template-columns: repeat(2,1fr); }
}
