/* FLUXO NFE — site institucional */
:root {
  --ink: #062e2a;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --mint: #5eead4;
  --surface: #f3faf8;
  --card: #ffffff;
  --muted: #5b6b68;
  --line: rgba(15, 118, 110, 0.16);
  --shadow: 0 18px 50px rgba(6, 46, 42, 0.12);
  --radius: 18px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(13, 148, 136, 0.18), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(94, 234, 212, 0.22), transparent 55%),
    linear-gradient(180deg, #eef8f5 0%, #f8fbfa 40%, #ffffff 100%);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(243, 250, 248, 0.88);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { height: 36px; width: auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--teal);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  padding: 3.2rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--teal-deep); }
.hero__lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #0b3d38;
}
.hero__visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/11;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section__head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.section__head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}
.section__head p { margin: 0; color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: 0 8px 24px rgba(6, 46, 42, 0.04);
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.shot {
  background: #0b3d38;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.shot figcaption {
  padding: 0.75rem 1rem;
  background: var(--card);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.plan--featured {
  border-color: var(--teal);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.18);
  transform: translateY(-4px);
}
.plan__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan__price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan__price small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.plan li {
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(15, 118, 110, 0.08);
}
.plan li::before {
  content: "✓ ";
  color: var(--teal-deep);
  font-weight: 800;
}

/* Signup form */
.signup {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}
.signup__aside {
  background: linear-gradient(160deg, #0b3d38, #0f766e);
  color: #e8fffb;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
}
.signup__aside h2 { margin: 0 0 0.6rem; color: #fff; }
.signup__aside p { margin: 0 0 1rem; opacity: 0.9; }
.signup__aside ul { margin: 0; padding-left: 1.1rem; }
.signup__aside li { margin-bottom: 0.45rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.steps {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.step-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e7f5f2;
  color: var(--muted);
}
.step-pill.is-active {
  background: var(--teal);
  color: #fff;
}
.step-pill.is-done {
  background: #cbfbf1;
  color: var(--teal-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group--full { grid-column: 1 / -1; }
label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
input, select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}
input:focus, select:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  border-color: var(--teal);
}
.hint { font-size: 0.8rem; color: var(--muted); }
.feedback {
  display: none;
  margin: 0.75rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
}
.feedback.is-on { display: block; }
.feedback.error { background: #fef2f2; color: #991b1b; }
.feedback.ok { background: #ecfdf5; color: #065f46; }

.plan-pick {
  display: grid;
  gap: 0.55rem;
}
.plan-option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
}
.plan-option:has(input:checked) {
  border-color: var(--teal);
  background: #f0fdfa;
}
.plan-option strong { display: block; }
.plan-option span { color: var(--muted); font-size: 0.85rem; }

.check-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.85rem 0;
  font-size: 0.9rem;
}
.form-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.otp-code {
  letter-spacing: 0.35em;
  font-size: 1.35rem;
  text-align: center;
  font-weight: 700;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero, .signup, .showcase { grid-template-columns: 1fr; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .nav .hide-sm { display: none; }
}
