/* =========================================================================
   ObitusPT — Landing page
   Tokens, layout, componentes, responsivo (mobile-first).
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-soft: #f1f5f9;
  --fg: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-soft: rgba(13, 148, 136, 0.1);
  --dark: #0f172a;
  --dark-2: #1e293b;
  --on-primary: #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 64px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
::selection {
  background: var(--primary-soft);
  color: var(--fg);
}

/* Focus visível para acessibilidade */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--dark);
  color: #fff;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.text-primary { color: var(--primary); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}
.eyebrow--light { color: #5eead4; }

.section__title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 40px;
  color: var(--fg);
}
.section__title--light { color: #fff; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost {
  background: var(--bg-alt);
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-soft); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary);
  position: relative;
}
.brand__mark::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}
.brand__name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand__accent { color: var(--primary); }

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--primary);
}

.nav__cta { display: none; }

.nav__toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav__mobile a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child {
  border-bottom: 0;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .nav__links { display: inline-flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.55);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}
.hero__title {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 55ch;
  margin: 0 0 32px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__media {
  position: relative;
}
.hero__card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  max-width: 420px;
  margin-inline: auto;
}
.hero__card img {
  border-radius: 8px;
  display: block;
  width: 100%;
}
.hero__chip {
  position: absolute;
  left: -8px;
  bottom: -20px;
  background: var(--primary-hover);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: none;
}
.hero__chip-value { font-size: 1.5rem; font-weight: 800; }
.hero__chip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (min-width: 900px) {
  .hero { padding: 96px 0 120px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .hero__chip { display: block; }
}

/* ---------- Problem / Solução ---------- */
.problem { padding: 64px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.problem__card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}
.problem__card h4 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.problem__card--pain h4 { color: #b91c1c; }
.problem__card--fix h4 { color: var(--primary); }
.problem__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.problem__card li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.problem__card li:first-child { border-top: 0; }
.problem__card--pain li::before {
  content: '×';
  position: absolute;
  left: 4px;
  top: 8px;
  color: #b91c1c;
  font-weight: 700;
  font-size: 1.2rem;
}
.problem__card--fix li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 10px;
  color: var(--primary);
  font-weight: 700;
}
.problem__card--fix strong { color: var(--fg); }

@media (min-width: 800px) {
  .problem { padding: 96px 0; }
  .problem__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- Features ---------- */
.features {
  padding: 80px 0;
}
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feature {
  background: #fff;
  padding: 28px;
  transition: background-color 0.2s var(--ease);
}
.feature:hover { background: var(--bg-soft); }
.feature__num {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.feature p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (min-width: 700px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .features { padding: 112px 0; }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Módulos (em Funcionalidades) ---------- */
.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.module {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.module h4 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.module > p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.module ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.module li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
}
.module li:first-child { border-top: 0; }
.module li::before {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 12px;
  color: var(--primary);
  font-weight: 700;
}

@media (min-width: 800px) {
  .modules { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cartão de Cidadão ---------- */
.cc {
  padding: 64px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.cc__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0;
}
.cc .section__title { margin-bottom: 24px; }
.cc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.cc__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: var(--radius);
}
.cc__check {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}
.cc__list strong { display: block; margin-bottom: 4px; color: var(--fg); }
.cc__list p { margin: 0; font-size: 0.875rem; color: var(--muted); }

@media (min-width: 900px) {
  .cc { padding: 96px 0; }
  .cc__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- Para quem é ---------- */
.audience { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.audience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.audience__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.audience__card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--primary);
}
.audience__card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (min-width: 800px) {
  .audience { padding: 112px 0; }
  .audience__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Como funciona ---------- */
.howto {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.howto__head { text-align: center; max-width: 640px; margin: 0 auto; }
.howto__head .section__title { margin-bottom: 60px; }

.howto__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
}
.howto__step {
  text-align: center;
  padding: 0 8px;
}
.howto__bullet {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 4px var(--bg-alt);
  position: relative;
  z-index: 1;
}
.howto__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.howto__step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.howto__step p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 800px) {
  .howto { padding: 112px 0; }
  .howto__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .howto__steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--border);
    z-index: 0;
  }
}

/* ---------- Benefícios ---------- */
.benefits { padding: 80px 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
}
.metric__value {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.metric__label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.metric__label span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 4px;
}
.benefits__note {
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 800px) {
  .benefits { padding: 112px 0; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Trust ---------- */
.trust {
  padding: 80px 0;
  background: var(--dark);
  color: #e2e8f0;
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.trust__lead {
  color: #94a3b8;
  max-width: 50ch;
  margin: 0;
}
.trust__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.trust__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  border-radius: var(--radius);
}
.trust__check {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}
.trust__list strong { color: #fff; display: block; margin-bottom: 4px; }
.trust__list p { margin: 0; font-size: 0.875rem; color: #94a3b8; }

@media (min-width: 900px) {
  .trust { padding: 112px 0; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

/* ---------- CTA + Formulário ---------- */
.cta {
  padding: 80px 0;
  background: var(--bg-alt);
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.cta__title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.cta__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}
.cta__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.cta__list li {
  padding-left: 26px;
  position: relative;
  color: var(--fg);
}
.cta__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}
.form__row { display: grid; gap: 14px; }
.form__row--2 { grid-template-columns: 1fr; }
.form__field { display: grid; gap: 6px; }
.form__field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.form__field input,
.form__field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form__field textarea { resize: vertical; min-height: 100px; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form__field.has-error input,
.form__field.has-error textarea {
  border-color: #dc2626;
}
.form__error {
  display: block;
  color: #dc2626;
  font-size: 0.8rem;
  min-height: 1em;
}
.form__hint {
  display: block;
  margin: -6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.form__status {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--primary);
  min-height: 1.2em;
}
.form__status.is-error { color: #dc2626; }

@media (min-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .cta { padding: 112px 0; }
  .cta__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
  .form { padding: 32px; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: grid;
  gap: 16px;
  text-align: center;
}
.brand--footer { justify-content: center; }
.footer__contact a { color: var(--muted); }
.footer__contact a:hover { color: var(--primary); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer__links a:hover { color: var(--primary); }
.footer__copy {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
  }
  .brand--footer { justify-content: flex-start; }
  .footer__links { justify-content: flex-end; grid-column: 3; }
  .footer__contact { grid-column: 2; text-align: center; }
  .footer__copy { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
