/* ============================================
   Interserv Cloud - Landing Page (Ads) styles
   Cada página define --accent (purple/teal/red)
   ============================================ */

:root {
  --bg: #282829;
  --bg-elevated: #2f2f31;
  --bg-card: #34343a;
  --line: rgba(255,255,255,0.08);
  --text: #f4f4f6;
  --text-muted: #a8a8b3;
  --purple: #6468AE;
  --teal: #62C5BE;
  --red: #DB3346;
  --accent: var(--purple); /* override per page */
  --accent-soft: rgba(100, 104, 174, 0.15);
  --accent-border: rgba(100, 104, 174, 0.4);
  --accent-text: #b6b9ec;
  --radius: 14px;
  --container: 1200px;
}

[data-accent="purple"] {
  --accent: var(--purple);
  --accent-soft: rgba(100, 104, 174, 0.15);
  --accent-border: rgba(100, 104, 174, 0.4);
  --accent-text: #b6b9ec;
}
[data-accent="teal"] {
  --accent: var(--teal);
  --accent-soft: rgba(98, 197, 190, 0.15);
  --accent-border: rgba(98, 197, 190, 0.4);
  --accent-text: #8fdbd5;
}
[data-accent="red"] {
  --accent: var(--red);
  --accent-soft: rgba(219, 51, 70, 0.15);
  --accent-border: rgba(219, 51, 70, 0.4);
  --accent-text: #f1838f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER mínimo ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(40, 40, 41, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  /* vertical only - keep .container's horizontal padding so the logo isn't flush to the edge */
  padding-top: 10px; padding-bottom: 10px;
}
.lp-logo img { height: 56px; width: auto; }
.lp-back, .lp-blog {
  font-size: 14px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.lp-back:hover, .lp-blog:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.lp-nav-right { display: inline-flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch-link {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; color: var(--text-muted);
}
.lang-switch-link.is-active { background: var(--accent, #6468AE); color: #fff; }
.lang-switch-link:hover { color: var(--text); }

/* ---------- HERO ---------- */
.lp-hero {
  position: relative; padding: 60px 0 80px; overflow: hidden;
}
.lp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 45% at 15% 25%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%),
    radial-gradient(40% 40% at 85% 80%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.lp-hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 60px;
  align-items: start;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 13px; font-weight: 500;
  margin-bottom: 22px;
}
.lp-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lp-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lp-hero h1 .accent { color: var(--accent); }
.lp-lead {
  font-size: 18px; color: var(--text-muted); margin-bottom: 28px;
  max-width: 580px;
}
.lp-bullets { list-style: none; margin-bottom: 32px; }
.lp-bullets li {
  display: flex; gap: 12px; padding: 8px 0; font-size: 15px; align-items: flex-start;
}
.lp-bullets li::before {
  content: '✓'; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.lp-trust {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-muted);
}
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
}

/* ---------- FORM ---------- */
.lp-form-card {
  background: rgba(40, 40, 41, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  position: sticky; top: 90px;
}
.lp-form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.lp-form-card .form-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.lp-field { margin-bottom: 14px; }
.lp-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}
.lp-field input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.lp-field input:focus {
  outline: none; border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.lp-field input::placeholder { color: rgba(168, 168, 179, 0.5); }
.lp-submit {
  width: 100%; margin-top: 6px;
  padding: 14px; border: none; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform .15s, filter .15s;
  font-family: inherit;
}
.lp-submit:hover { transform: translateY(-2px); filter: brightness(1.1); }
.lp-form-foot {
  margin-top: 16px; font-size: 12px; color: var(--text-muted); text-align: center;
}

/* Success state */
.lp-form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.lp-form-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin-bottom: 18px;
}
.lp-form-success h4 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.lp-form-success p { font-size: 15px; color: var(--text-muted); }
.lp-form-card.is-success .lp-form-actual { display: none; }
.lp-form-card.is-success .lp-form-success { display: block; }
.lp-form-error {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(219, 51, 70, 0.12); border: 1px solid rgba(219, 51, 70, 0.4);
  color: #ffb3bd; font-size: 13px; text-align: center;
}
.lp-form-error[hidden] { display: none; }

/* ---------- SECTION COMMONS ---------- */
.lp-section { padding: 90px 0; }
.lp-section-alt { background: #232325; }
.lp-section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.lp-section-title {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px;
  max-width: 760px;
}
.lp-section-sub { font-size: 16px; color: var(--text-muted); max-width: 680px; margin-bottom: 48px; }

/* ---------- PARA QUEM ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.persona-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  border-top: 3px solid var(--accent);
}
.persona-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.persona-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- BENEFITS ---------- */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.benefit-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 18px; align-items: flex-start;
}
.benefit-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 22px;
}
.benefit-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.benefit-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- PROCESSO ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-step {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.process-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 14px; color: var(--text-muted); }
.process-step .duration { font-size: 12px; color: var(--accent-text); margin-top: 8px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 24px; font-weight: 400; color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 15px; color: var(--text-muted); margin-top: 12px; }

/* ---------- CTA FINAL ---------- */
.lp-cta-final {
  padding: 80px 0;
  background:
    radial-gradient(40% 40% at 50% 50%, var(--accent-soft), transparent 70%),
    var(--bg);
  text-align: center;
}
.lp-cta-final h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.lp-cta-final p { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.lp-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .15s;
}
.lp-cta-btn:hover { transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
.lp-footer {
  padding: 30px 0; border-top: 1px solid var(--line);
  background: #1d1d1f;
  font-size: 13px; color: var(--text-muted); text-align: center;
}
.lp-footer a { color: var(--accent-text); }
.lp-footer .container {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.lp-footer .lp-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  color: var(--text-muted); border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.lp-footer .lp-social:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-form-card { position: static; }
  .persona-grid, .benefits-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .lp-section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .persona-grid, .benefits-grid, .process-grid { grid-template-columns: 1fr; }
  .lp-form-card { padding: 24px; }
  .lp-logo img { height: 44px; }
}
