/* =========================================================
   ZENNFY — Design System
   Paleta: branco, verde suave, cinza claro
   Estilo: clean, zen, leve, moderno
   ========================================================= */

:root {
  /* Cores */
  --white: #ffffff;
  --bg: #fafbf9;            /* branco quase imperceptível */
  --bg-alt: #f3f6f3;        /* cinza-esverdeado muito claro */
  --surface: #ffffff;
  --border: #e8ece8;
  --text: #1f2a24;          /* verde-escuro neutro */
  --text-muted: #6b7670;
  --green: #6cae8a;         /* verde principal — suave */
  --green-strong: #4f9c75;
  --green-soft: #e8f3ec;
  --shadow-sm: 0 2px 8px rgba(31, 42, 36, 0.04);
  --shadow-md: 0 12px 40px rgba(31, 42, 36, 0.06);
  --shadow-lg: 0 24px 60px rgba(31, 42, 36, 0.08);

  /* Tipografia */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Espaçamento e raios */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --container: 1140px;
}

/* ===== Reset básico ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section .container,
.cta .container,
.hero .container { min-width: 0; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.logo-dot {
  display: inline-block;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.logo-dot.big { width: 22px; height: 22px; box-shadow: 0 0 0 7px var(--green-soft); }
.login-head .logo-dot.big { display: block; }
.logo-text { font-size: 1.05rem; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a:not(.btn) {
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: white; box-shadow: 0 6px 20px rgba(108, 174, 138, 0.35); }
.btn-primary:hover { background: var(--green-strong); box-shadow: 0 10px 28px rgba(108, 174, 138, 0.45); }
.btn-outline { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green-strong); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--green-soft) 0%, transparent 70%),
    var(--bg);
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-soft);
  color: var(--green-strong);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1;
}
.hero-slogan {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text);
  font-weight: 400;
  font-style: italic;
  margin: 0 auto 20px;
  max-width: 720px;
}
.hero-text {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Cards flutuantes decorativos */
.hero-illustration {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.float-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  width: 200px;
  animation: float 6s ease-in-out infinite;
}
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.float-card .dot.green { background: var(--green); }
.float-card .dot.gray { background: #cdd5d0; }
.float-card .lines { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.float-card .lines span { display: block; height: 6px; border-radius: 3px; background: var(--bg-alt); }
.float-card .lines span:nth-child(2) { width: 60%; }
.card-1 { top: 14%; left: 6%; animation-delay: 0s; }
.card-2 { top: 28%; right: 6%; animation-delay: 1.5s; }
.card-3 { bottom: 12%; left: 12%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  margin: 16px 0 12px;
  font-weight: 600;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* ===== Grid ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Feature cards ===== */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ===== Plans ===== */
.plan-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-featured {
  border-color: var(--green);
  box-shadow: 0 20px 50px rgba(108, 174, 138, 0.18);
  transform: translateY(-8px);
}
.plan-featured:hover { transform: translateY(-12px); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: white;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em;
}
.plan-name { margin: 0 0 6px; font-size: 1.1rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.plan-price {
  font-size: 3rem; font-weight: 700; letter-spacing: -0.03em;
  margin: 6px 0 24px;
  display: flex; align-items: baseline; gap: 4px;
  line-height: 1;
}
.plan-price .currency { font-size: 1.1rem; font-weight: 500; color: var(--text-muted); }
.plan-price .period { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.plan-features {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.plan-features li {
  position: relative; padding-left: 26px;
  font-size: 0.95rem; color: var(--text);
}
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--green-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f9c75' stroke-width='3'><path d='M5 12l5 5L20 7'/></svg>");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 24px;
  background: var(--bg);
}
.cta-inner {
  max-width: 780px; margin: 0 auto;
  background: linear-gradient(135deg, var(--green-soft), white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 12px; font-weight: 600; letter-spacing: -0.02em; }
.cta-inner p { color: var(--text-muted); margin: 0 0 28px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.site-footer.slim { padding: 30px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-tag { color: var(--text-muted); font-style: italic; margin: 0 0 8px; max-width: 360px; }
.footer-domain { color: var(--green-strong); font-weight: 500; margin: 0; }
.footer-col h4 { margin: 0 0 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.footer-col a {
  display: block; padding: 6px 0;
  color: var(--text-muted); font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-strong); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer.slim .footer-bottom { border: 0; padding-top: 0; }

/* ===== Forms ===== */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.88rem; font-weight: 500; color: var(--text);
}
.form input[type="email"],
.form input[type="password"],
.form input[type="text"] {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.checkbox { flex-direction: row !important; align-items: center; gap: 8px !important; cursor: pointer; }
.checkbox input { accent-color: var(--green); }
.link-muted { color: var(--text-muted); font-size: 0.88rem; }
.link-muted:hover { color: var(--green-strong); }
.form-success {
  margin: 8px 0 0; padding: 12px 14px;
  background: var(--green-soft); color: var(--green-strong);
  border-radius: 12px; text-align: center; font-weight: 500;
}

/* ===== Login Page ===== */
.login-body { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); min-height: 100vh; display: flex; flex-direction: column; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.login-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.login-head { text-align: center; margin-bottom: 32px; }
.login-head .logo-dot { margin: 0 auto 16px; }
.login-head h1 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.login-head p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.login-foot { text-align: center; margin: 24px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.login-foot a { color: var(--green-strong); font-weight: 500; }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(31, 42, 36, 0.4);
  backdrop-filter: blur(4px);
  animation: fade 0.2s ease;
}
.modal-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.25s ease;
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 1.6rem; line-height: 1;
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }
.modal-card h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 600; }
.modal-sub { margin: 0 0 24px; color: var(--text-muted); font-size: 0.95rem; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-illustration { display: none; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 6px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 80px; }
  .login-card { padding: 36px 24px; }
  .cta-inner { padding: 40px 24px; }
}