/* LimeSoft — identidade compartilhada (direção B · Fresco e claro) */
:root {
  --bg: #fbfcf6;
  --surface: #ffffff;
  --border: #e6ecd9;
  --text: #1a2e05;
  --text-muted: #5b6b48;
  --text-body: #4d5c3b;
  --lime: #bef264;
  --lime-dot: #84cc16;
  --lime-soft: #ecfccb;
  --lime-ink: #3f6212;
  --danger: #b91c1c;
  --radius: 20px;
  --shadow: 0 2px 12px rgba(63, 98, 18, 0.06);
  --maxw: 1040px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--lime-ink); }
:focus-visible { outline: 3px solid var(--lime-ink); outline-offset: 2px; border-radius: 4px; }

/* ── Logotipo: "LimeSoft" com o pingo do i em limão ── */
.ls-logo {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.035em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.ls-logo-i { position: relative; display: inline-block; }
.ls-logo-i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.12em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--lime-dot);
  transform: translateX(-50%);
}

/* ── Nav ── */
.ls-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 246, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.ls-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ls-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.ls-nav-links a, .ls-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ls-nav-links a:hover, .ls-back:hover { color: var(--text); }
.ls-back::before { content: "← "; }

/* ── Hero ── */
.ls-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 1.5rem 56px;
  text-align: center;
}
.ls-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-ink);
  background: var(--lime-soft);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 22px;
}
.ls-hero h1 {
  font-size: clamp(2.125rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.ls-mark {
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ls-hero p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Grade de apps ── */
.ls-apps { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 88px; }
.ls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ls-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ls-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 98, 18, 0.1);
}
.ls-card-head { display: flex; align-items: center; gap: 14px; }
.ls-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(26, 46, 5, 0.15);
}
.ls-card-meta { min-width: 0; }
.ls-card-meta h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-platform { font-size: 0.75rem; color: var(--text-muted); }
.ls-card-desc { font-size: 0.875rem; line-height: 1.55; color: var(--text-body); flex: 1; }
.ls-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.ls-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--text);
  border-radius: 100px;
  padding: 7px 14px;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s;
}
.ls-store:hover { opacity: 0.9; transform: translateY(-1px); }
.ls-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lime-ink);
  text-decoration: none;
}
.ls-more .arrow { display: inline-block; transition: transform 0.2s; }
.ls-card:hover .ls-more .arrow { transform: translateX(3px); }

/* ── Rodapé ── */
.ls-footer {
  border-top: 1px solid var(--border);
  padding: 28px 1.5rem;
}
.ls-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.ls-footer a { color: var(--text-muted); text-decoration: none; }
.ls-footer a:hover { color: var(--text); }

/* ── Documento (privacidade / suporte) ── */
.ls-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 1.5rem 72px;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}
.ls-doc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.ls-doc-head .ls-icon { width: 52px; height: 52px; border-radius: 12px; }
.ls-doc-head-meta { min-width: 0; }
.ls-doc h1 {
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
.ls-doc-sub { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }
.ls-doc h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin: 2.25rem 0 0.6rem;
}
.ls-doc h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
}
.ls-doc p, .ls-doc ul, .ls-doc ol, .ls-doc table, .ls-doc blockquote { margin-bottom: 1rem; }
.ls-doc ul, .ls-doc ol { padding-left: 1.4rem; }
.ls-doc li { margin-bottom: 0.35rem; }
.ls-doc li::marker { color: var(--lime-ink); }
.ls-doc strong { color: var(--text); font-weight: 600; }
.ls-doc a, .ls-link {
  color: var(--lime-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.ls-doc a:hover, .ls-link:hover { text-decoration-color: var(--lime-dot); }
.ls-doc code {
  font-size: 0.875em;
  background: var(--lime-soft);
  color: var(--text);
  border-radius: 6px;
  padding: 1px 6px;
}
.ls-doc hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.ls-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}
.ls-doc th, .ls-doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ls-doc th { color: var(--text); font-weight: 600; background: var(--surface); }
.ls-doc blockquote, .ls-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  padding: 14px 18px;
}
.ls-doc .ls-lang { font-size: 0.875rem; margin: -0.75rem 0 1.5rem; }
.ls-doc section { padding-bottom: 0.25rem; }
.ls-doc section + section { border-top: 1px solid var(--border); margin-top: 1.75rem; padding-top: 0.25rem; }
.ls-doc section > h2:first-child { margin-top: 1.25rem; }
.ls-lang-sep {
  margin: 4rem 0 2rem;
  padding-top: 2.5rem;
  border-top: 4px solid var(--lime);
}
.ls-lang-sep p { color: var(--text-muted); font-size: 0.9375rem; margin: 4px 0 0; }
.ls-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lime-ink);
  background: var(--lime-soft);
  border-radius: 100px;
  padding: 2px 10px;
  margin: 2px 2px 2px 0;
}

/* ── Página simples (404 / fallback) ── */
.ls-center {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 1.5rem;
  text-align: center;
}
.ls-center .ls-big {
  font-size: clamp(4rem, 16vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}
.ls-center h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 8px; }
.ls-center p { color: var(--text-muted); margin-bottom: 28px; }
.ls-button {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--text);
  border-radius: 100px;
  padding: 11px 22px;
  text-decoration: none;
}
.ls-button:hover { opacity: 0.9; }
.ls-app-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding-top: 48px; padding-bottom: 48px; }
.ls-app-fallback .ls-icon { width: 112px; height: 112px; border-radius: 25px; }
.ls-app-fallback h1 { font-size: 1.75rem; margin-top: 24px; }
.ls-app-fallback .ls-button { display: block; width: 100%; max-width: 340px; padding: 15px 20px; }
.ls-site { display: inline-block; margin-top: 24px; font-size: 0.875rem; }

/* ── Modal de contato (nomes de classe mantidos: o script da home depende deles) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 46, 5, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(26, 46, 5, 0.18);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
}
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.modal-header h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.375rem;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-lead { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--lime-ink);
  box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.6);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.submit-btn {
  width: 100%;
  background: var(--text);
  border: none;
  border-radius: 100px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 12px;
  transition: opacity 0.2s, transform 0.15s;
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-status { display: none; font-size: 0.875rem; font-weight: 600; margin-top: 12px; text-align: center; }
.form-status.success { color: var(--lime-ink); display: block; }
.form-status.error { color: var(--danger); display: block; }

/* ── Celular ── */
@media (max-width: 600px) {
  .ls-nav { padding: 0 1rem; }
  .ls-hero { padding: 64px 1rem 44px; }
  .ls-apps { padding: 0 1rem 64px; }
  .ls-grid { grid-template-columns: 1fr; }
  .ls-doc { padding: 32px 1rem 56px; }
  .ls-footer { padding: 24px 1rem; }
  .ls-footer-inner { justify-content: center; text-align: center; }
  .modal { padding: 24px; }
}
