/* ===================================================================
   SYNTRIB — landing pages, assistant widget, WhatsApp button
   Loaded after style.css; reuses its tokens (--primary, --radius-*, …).
   =================================================================== */

/* ---------- Landing hero (matches homepage .home-hero palette) ---------- */
.lp-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 45%, #2d1b69 100%);
  color: #fff;
  padding: 150px 0 88px;
  overflow: hidden;
}
.lp-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(139,92,246,0.35), transparent 70%);
  pointer-events: none;
}
.lp-hero .container { position: relative; z-index: 1; }
.lp-crumbs { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.lp-crumbs a { color: rgba(255,255,255,0.75); }
.lp-crumbs a:hover { color: #fff; }
.lp-crumbs span { margin: 0 8px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(139,92,246,0.18); border: 1px solid rgba(167,139,250,0.35);
  color: #c4b5fd; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
}
.lp-hero h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
.lp-hero h1 em { font-style: normal; background: linear-gradient(135deg, #c4b5fd, #8B5CF6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-hero .lp-sub { font-size: 1.12rem; color: rgba(255,255,255,0.78); max-width: 620px; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.lp-hero .btn-outline:hover { background: rgba(255,255,255,0.08); }
.lp-hero-points { list-style: none; margin-top: 28px; display: grid; gap: 10px; }
.lp-hero-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.lp-hero-points li::before { content: '✓'; color: #34d399; font-weight: 800; }

.lp-hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.lp-hero-card h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; color: #fff; }
.lp-hero-card ul { list-style: none; display: grid; gap: 12px; }
.lp-hero-card li { display: flex; gap: 12px; align-items: center; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
.lp-hero-card li i { color: #a78bfa; flex: 0 0 auto; }

/* ---------- Generic landing sections ---------- */
.lp-section { padding: 88px 0; }
.lp-section.alt { background: var(--bg-dark-2); }
.lp-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.lp-head h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; margin: 14px 0 12px; }
.lp-head p { color: var(--text-secondary); font-size: 1.04rem; }

.lp-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.lp-grid.two { grid-template-columns: repeat(2, 1fr); }
.lp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-accent); }
.lp-card h3 { font-size: 1.06rem; font-weight: 700; margin: 14px 0 8px; }
.lp-card p { color: var(--text-secondary); font-size: 0.94rem; }
.lp-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff;
}
.lp-icon.blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.lp-icon.green { background: linear-gradient(135deg, #10B981, #059669); }
.lp-icon.pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
.lp-icon.orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.lp-icon.cyan { background: linear-gradient(135deg, #06B6D4, #0891B2); }

/* Problem → answer rows */
.lp-pains { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.lp-pain { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-hover); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.lp-pain > div { padding: 20px 24px; }
.lp-pain .q { background: rgba(239,68,68,0.04); border-right: 1px solid var(--border-hover); }
.lp-pain .q strong { color: #b91c1c; font-size: 0.74rem; letter-spacing: 0.5px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.lp-pain .a strong { color: #047857; font-size: 0.74rem; letter-spacing: 0.5px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.lp-pain p { font-size: 0.95rem; color: var(--text-secondary); }

/* Module chips / related links */
.lp-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-full);
  border: 1px solid var(--border-hover); background: var(--bg-card);
  font-weight: 600; font-size: 0.92rem;
}
.lp-link:hover { border-color: var(--primary); color: var(--primary-dark); }

/* Proof / case study */
.lp-proof { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; max-width: 980px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: var(--radius-xl); padding: 32px; }
.lp-proof img { width: 100%; max-width: 200px; height: auto; border-radius: var(--radius-md); }
.lp-proof h3 { font-size: 1.25rem; font-weight: 750; margin-bottom: 8px; }
.lp-proof p { color: var(--text-secondary); }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp-tags span { font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-full); background: rgba(139,92,246,0.08); color: var(--primary-dark); border: 1px solid rgba(139,92,246,0.18); }

/* Steps */
.lp-steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-step { position: relative; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border-hover); background: var(--bg-card); }
.lp-step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: 'Space Grotesk', monospace; font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.lp-step h3 { font-size: 1rem; margin: 8px 0 6px; }
.lp-step p { font-size: 0.9rem; color: var(--text-secondary); }

/* FAQ */
.lp-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.lp-faq details { border: 1px solid var(--border-hover); border-radius: var(--radius-md); background: var(--bg-card); padding: 0 22px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--primary); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq details p { padding: 0 0 18px; color: var(--text-secondary); }

/* Hub cards */
.lp-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-hub a.lp-card { display: block; }
.lp-hub .lp-more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--primary-dark); font-weight: 650; font-size: 0.9rem; }

/* ---------- Lead form block ---------- */
.lp-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.lp-contact h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 750; line-height: 1.2; margin: 14px 0 12px; }
.lp-contact > div > p { color: var(--text-secondary); }
.lp-contact ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.lp-contact li { display: flex; gap: 10px; color: var(--text-secondary); }
.lp-contact li::before { content: '✓'; color: var(--success); font-weight: 800; }
.lp-form { background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-lg); }
.lp-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-form label { display: block; font-size: 0.82rem; font-weight: 600; margin: 12px 0 6px; color: var(--text-primary); }
.lp-form input, .lp-form select, .lp-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--border-hover); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-primary);
}
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus { outline: 2px solid rgba(139,92,246,0.35); border-color: var(--primary); }
.lp-form textarea { min-height: 96px; resize: vertical; }
.lp-form .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.lp-form button[type="submit"] { width: 100%; margin-top: 18px; }
.lead-status { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.lead-status.ok { color: #047857; }
.lead-status.err { color: #b91c1c; }

.lp-sales { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 16px;
  border-radius: var(--radius-md); background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.18);
  color: var(--text-secondary); font-size: 0.92rem; }
.lp-sales svg { color: var(--primary); flex: 0 0 auto; margin-top: 3px; }
.lp-sales a { color: var(--primary-dark); font-weight: 600; white-space: nowrap; }
.footer-contact { font-size: 0.85rem; line-height: 1.9; margin: 4px 0 12px; }
.footer-contact svg { vertical-align: -2px; margin-right: 4px; opacity: 0.7; }
.footer-contact a:hover { color: var(--primary); }

/* Honeypot: off-screen, not display:none (some bots skip display:none fields) */
.hp-field, .sa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Final CTA band */
.lp-band { background: linear-gradient(135deg, #1a0a2e, #2d1b69); color: #fff; border-radius: var(--radius-xl); padding: 48px; text-align: center; }
.lp-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; margin-bottom: 10px; }
.lp-band p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.lp-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.lp-band.split { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .lp-band.split { grid-template-columns: 1fr; } }

.lp-prose { max-width: 820px; margin: 0 auto; color: var(--text-secondary); font-size: 1.04rem; }
.lp-prose p + p { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lp-hero-grid, .lp-contact { grid-template-columns: 1fr; gap: 36px; }
  .lp-grid, .lp-hub { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .lp-hero { padding: 120px 0 64px; }
  .lp-section { padding: 64px 0; }
  .lp-grid, .lp-grid.two, .lp-hub, .lp-steps { grid-template-columns: 1fr; }
  .lp-pain { grid-template-columns: 1fr; }
  .lp-pain .q { border-right: 0; border-bottom: 1px solid var(--border-hover); }
  .lp-proof { grid-template-columns: 1fr; text-align: left; padding: 24px; }
  .lp-form .row { grid-template-columns: 1fr; gap: 0; }
  .lp-band { padding: 32px 20px; }
  .container { padding: 0 16px; }
}

/* ===================================================================
   WhatsApp button
   =================================================================== */
.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 990;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform var(--transition-smooth);
}
.wa-fab:hover { transform: scale(1.07); color: #fff; }

/* ===================================================================
   Assistant widget
   =================================================================== */
.sa-root { position: fixed; right: 20px; bottom: 20px; z-index: 995; font-family: 'Inter', sans-serif; }
.sa-fab {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(109,40,217,0.4);
  transition: transform var(--transition-smooth);
}
.sa-fab:hover { transform: scale(1.06); }
.sa-panel {
  position: absolute; right: 0; bottom: 70px;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: #fff; color: #0f172a;
  border: 1px solid rgba(15,23,42,0.1); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.22); overflow: hidden;
}
.sa-panel[hidden] { display: none; }
.sa-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, #1a0a2e, #2d1b69); color: #fff; }
.sa-head span { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.sa-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sa-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.sa-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; word-wrap: break-word; }
.sa-msg a { color: #6d28d9; text-decoration: underline; }
.sa-bot { background: #fff; border: 1px solid rgba(15,23,42,0.08); align-self: flex-start; border-bottom-left-radius: 4px; }
.sa-me { background: #8B5CF6; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.sa-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #a78bfa; animation: saDot 1s infinite ease-in-out; }
.sa-typing span:nth-child(2) { animation-delay: 0.15s; }
.sa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes saDot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #f8fafc; }
.sa-chips:empty { display: none; }
.sa-chips button { border: 1px solid rgba(139,92,246,0.35); background: #fff; color: #6d28d9; border-radius: 999px; padding: 6px 11px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.sa-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(15,23,42,0.08); background: #fff; position: relative; }
.sa-input input[name="q"] { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(15,23,42,0.15); font: inherit; font-size: 0.9rem; }
.sa-input button { border: 0; border-radius: 10px; padding: 0 14px; background: #8B5CF6; color: #fff; cursor: pointer; }
.sa-handoff form { display: grid; gap: 8px; margin-top: 10px; position: relative; }
.sa-handoff input { padding: 9px 11px; border-radius: 8px; border: 1px solid rgba(15,23,42,0.15); font: inherit; font-size: 0.86rem; }
.sa-send { border: 0; border-radius: 8px; padding: 10px; background: #8B5CF6; color: #fff; font-weight: 600; cursor: pointer; }
@media (max-width: 480px) { .sa-root { right: 12px; bottom: 12px; } .wa-fab { left: 12px; bottom: 12px; } }

/* Keep the existing scroll-to-top button clear of the assistant */
.has-assistant .scroll-top { bottom: 90px; }

/* Homepage module grid: 7 tiles — centre the last one so no row looks broken */
@media (min-width: 901px) { .modules-compact-grid > .mc-tile:last-child:nth-child(3n+1) { grid-column: 2; } }
@media (min-width: 561px) and (max-width: 900px) { .modules-compact-grid > .mc-tile:last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
/* Hubs with exactly 4 cards (industries) read better as 2 × 2 */
@media (min-width: 681px) { .lp-hub:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* intl-tel-input inside landing-page forms */
.lp-form .iti { width: 100%; display: block; }
.iti__country-container { z-index: 2; }

/* Inline form validation (homepage contact form + landing forms) */
.field-error, .form-input.field-error, .form-select.field-error, .form-textarea.field-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
.field-msg { color: #dc2626; font-size: .8rem; font-weight: 500; margin-top: 6px; }
.iti { width: 100%; }

/* Shared website lead form (site-src/build.py lead_form_html + js/lead.js) */
.lead-form .form-hint { font-size: .8rem; color: var(--text-muted); margin: -6px 0 12px; }
.lead-form .form-opt { color: var(--text-muted); font-weight: 400; }
.lead-form .form-submit { width: 100%; margin-top: 6px; }
.lead-form .lead-status { text-align: center; }
.lp-form .lead-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .lead-form .form-row { grid-template-columns: 1fr !important; gap: 0; } }

/* office addresses strip in the footer */
.footer-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 0; margin-bottom: 8px; border-top: 1px solid rgba(148,163,184,0.18); }
.footer-office { display: flex; gap: 10px; font-size: 0.84rem; line-height: 1.5; color: rgba(255,255,255,0.55); }
.footer-office svg { flex-shrink: 0; margin-top: 3px; opacity: 0.7; }
.footer-office strong { display: block; font-weight: 600; margin-bottom: 2px; color: rgba(255,255,255,0.85); }
@media (max-width: 768px) { .footer-offices { grid-template-columns: 1fr; gap: 14px; } }
.office-list { list-style: none; padding: 0; margin: 0; }
.office-list li { margin-bottom: 8px; line-height: 1.5; font-size: 0.85rem; color: var(--text-secondary); }
.office-list li strong { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
