/* ======================================================
   LANDING PAGE — CRV PDV
   Visual exclusivo da landing
   Botões herdados de theme.css/main.css
====================================================== */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --landing-blue: #003887;
  --landing-gold: #D4A843;
  --landing-earth: #7C6354;
  --landing-green: #54CD16;

  --landing-radius-sm: 8px;
  --landing-radius-md: 14px;
  --landing-radius-lg: 20px;
  --landing-radius-pill: 999px;

  --landing-transition: .25s ease;
}

html[data-theme="dark"] {
  --landing-bg: #000;
  --landing-card: rgba(17,17,17,.86);
  --landing-elevated: rgba(26,26,26,.92);
  --landing-text: #fff;
  --landing-muted: rgba(255,255,255,.72);
  --landing-border: rgba(255,255,255,.10);
  --landing-accent: var(--landing-gold);
  --landing-bg-image: url("../assets/fundo2.png");
}

html[data-theme="light"] {
  --landing-bg: #FCFCFC;
  --landing-card: rgba(255,255,255,.86);
  --landing-elevated: rgba(240,242,245,.92);
  --landing-text: #000;
  --landing-muted: rgba(0,0,0,.70);
  --landing-border: rgba(0,0,0,.10);
  --landing-accent: var(--landing-blue);
  --landing-bg-image: url("../assets/fundo1.png");
}

/* ======================================================
   BASE
====================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--landing-text);
  background: var(--landing-bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image: var(--landing-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: background-image .3s ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(120deg, rgba(0,0,0,.52), rgba(0,0,0,.18)),
    radial-gradient(circle at 15% 10%, rgba(0,56,135,.20), transparent 32%),
    radial-gradient(circle at 88% 70%, rgba(212,168,67,.12), transparent 30%);

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);

  pointer-events: none;
}

html[data-theme="light"] body::after {
  background:
    linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,.20)),
    radial-gradient(circle at 15% 10%, rgba(0,56,135,.10), transparent 32%),
    radial-gradient(circle at 88% 70%, rgba(124,99,84,.08), transparent 30%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ======================================================
   HEADER
====================================================== */

.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;

  border-bottom: 1px solid var(--landing-border);

  background: rgba(0,0,0,.46);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .landing-header {
  background: rgba(255,255,255,.72);
}

.nav {
  height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo-crv {
  height: 75px;
  width: auto;
  object-fit: contain;
  opacity: .92;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  all: unset;

  width: 42px;
  height: 42px;

  border-radius: var(--landing-radius-md);
  border: 1px solid var(--landing-border);

  background: var(--landing-card);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: var(--landing-accent);

  transition: var(--landing-transition);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(212,168,67,.18);
}

/* ======================================================
   HERO
====================================================== */

.hero {
  padding: 88px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 42px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 13px;

  border-radius: var(--landing-radius-pill);
  border: 1px solid var(--landing-border);

  background: var(--landing-card);

  color: var(--landing-accent);

  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;

  margin-bottom: 18px;
}

.hero-title {
  max-width: 760px;

  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .92;
  letter-spacing: -.02em;

  margin-bottom: 18px;
}

.hero-title span {
  color: var(--landing-accent);
  text-shadow: 0 0 24px rgba(212,168,67,.18);
}

.hero-text {
  max-width: 660px;

  color: var(--landing-muted);

  font-size: 1rem;
  line-height: 1.75;

  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;

  margin-bottom: 24px;
}

/* ajuste leve sobre botões globais */
.hero-actions .btn-primary,
.cta-box .btn-primary {
  box-shadow: var(--glow-accent);
}

.hero-actions .btn-secondary:hover,
.nav-actions .btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;

  border-radius: var(--landing-radius-pill);
  border: 1px solid var(--landing-border);

  background: rgba(255,255,255,.04);

  color: var(--landing-muted);

  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ======================================================
   PAINEL HERO
====================================================== */

.system-panel {
  position: relative;

  padding: 22px;

  border-radius: 24px;
  border: 1px solid var(--landing-border);

  background: var(--landing-card);

  box-shadow: 0 22px 70px rgba(0,0,0,.35);

  overflow: hidden;
}

.system-panel::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(0,56,135,.14),
      transparent 45%,
      rgba(212,168,67,.10)
    );

  pointer-events: none;
}

.panel-top {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 18px;
}

.panel-logo {
  height: 150px;
  object-fit: contain;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 8px 12px;

  border-radius: var(--landing-radius-pill);
  border: 1px solid rgba(84,205,22,.28);

  background: rgba(84,205,22,.08);

  color: var(--landing-green);

  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-pill::before {
  content: "";

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--landing-green);
  box-shadow: 0 0 10px rgba(84,205,22,.85);
}

.panel-grid {
  position: relative;

  display: grid;
  gap: 12px;
}

.panel-row {
  min-height: 72px;

  padding: 14px;

  border-radius: var(--landing-radius-md);
  border: 1px solid var(--landing-border);

  background: rgba(255,255,255,.04);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  transition: var(--landing-transition);
}

html[data-theme="light"] .panel-row {
  background: rgba(255,255,255,.72);
}

.panel-row:hover {
  transform: translateX(4px);
  border-color: rgba(212,168,67,.38);
}

.panel-row strong {
  display: block;

  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .04em;

  margin-bottom: 2px;
}

.panel-row span {
  color: var(--landing-muted);
  font-size: .84rem;
}

.panel-icon {
  width: 42px;
  height: 42px;

  border-radius: var(--landing-radius-md);
  border: 1px solid rgba(212,168,67,.18);

  background: rgba(212,168,67,.10);

  color: var(--landing-accent);

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

/* ======================================================
   FEATURES
====================================================== */

.features {
  padding: 40px 0 76px;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head span {
  display: inline-block;

  margin-bottom: 8px;

  color: var(--landing-accent);

  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.section-head p {
  max-width: 640px;

  margin: 12px auto 0;

  color: var(--landing-muted);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;

  min-height: 210px;

  padding: 24px;

  border-radius: var(--landing-radius-lg);
  border: 1px solid var(--landing-border);

  background: var(--landing-card);

  overflow: hidden;

  transition: var(--landing-transition);
}

.feature-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(0,56,135,.10),
      transparent 60%,
      rgba(212,168,67,.08)
    );

  opacity: 0;

  transition: var(--landing-transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,168,67,.38);
  box-shadow: 0 0 28px rgba(212,168,67,.12);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;

  width: 48px;
  height: 48px;

  border-radius: var(--landing-radius-md);
  border: 1px solid rgba(212,168,67,.18);

  background: rgba(212,168,67,.10);

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--landing-accent);

  margin-bottom: 16px;
}

.feature-card h3 {
  position: relative;

  font-family: var(--font-display);
  font-size: 1.25rem;

  margin-bottom: 8px;
}

.feature-card p {
  position: relative;

  color: var(--landing-muted);
  line-height: 1.65;
  font-size: .92rem;
}

/* ======================================================
   ADAPTIVE
====================================================== */

.adaptive {
  padding: 0 0 78px;
}

.adaptive-box {
  padding: 34px;

  border-radius: 26px;
  border: 1px solid var(--landing-border);

  background:
    linear-gradient(
      135deg,
      rgba(0,56,135,.18),
      rgba(212,168,67,.08)
    );

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;

  overflow: hidden;
}

.adaptive-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;

  margin-bottom: 12px;
}

.adaptive-box p {
  max-width: 740px;

  color: var(--landing-muted);
  line-height: 1.7;
}

.business-types {
  max-width: 340px;

  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.business-types span {
  padding: 7px 11px;

  border-radius: var(--landing-radius-pill);
  border: 1px solid var(--landing-border);

  background: rgba(255,255,255,.05);

  color: var(--landing-text);

  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ======================================================
   CTA
====================================================== */

.cta {
  padding-bottom: 74px;
}

.cta-box {
  position: relative;

  text-align: center;

  padding: 48px 24px;

  border-radius: 28px;
  border: 1px solid var(--landing-border);

  background: var(--landing-card);

  overflow: hidden;
}

.cta-box::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 50% 0%, rgba(212,168,67,.18), transparent 38%),
    linear-gradient(135deg, rgba(0,56,135,.14), transparent);

  pointer-events: none;
}

.cta-box h2 {
  position: relative;

  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;

  margin-bottom: 10px;
}

.cta-box p {
  position: relative;

  color: var(--landing-muted);

  margin-bottom: 24px;
}

/* ======================================================
   FOOTER
====================================================== */

.footer {
  border-top: 1px solid var(--landing-border);

  padding: 24px 0;

  background: rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .footer {
  background: rgba(255,255,255,.52);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;

  color: var(--landing-muted);

  font-size: .86rem;
}

.footer-brand img {
  height: 42px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 40px;
  height: 40px;

  border-radius: var(--landing-radius-md);
  border: 1px solid var(--landing-border);

  background: var(--landing-card);

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--landing-accent);

  transition: var(--landing-transition);
}

.footer-icon:hover {
  transform: translateY(-2px);
  border-color: var(--landing-accent);
  box-shadow: 0 0 18px rgba(212,168,67,.16);
}

/* ======================================================
   ANIMAÇÕES
====================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-in {
  animation: floatIn .9s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.soft-float {
  animation: softFloat 4.5s ease-in-out infinite;
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ======================================================
   OVERRIDE DE FUNDO — LANDING
   Sobrepõe o background global do main.css apenas na landing
====================================================== */

html[data-theme="light"] body::before {
  background-image: url("../assets/fundo1.png") !important;
}

html[data-theme="dark"] body::before {
  background-image: url("../assets/fundo2.png") !important;
}

.prelogin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.prelogin-overlay.hidden {
  display: none;
}

.prelogin-card {
  width: min(420px, 100%);
  position: relative;
  padding: 30px 26px;
  border-radius: 24px;
  border: 1px solid var(--landing-border);
  background: var(--landing-card);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  text-align: center;
}

.prelogin-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  background: var(--landing-elevated);
  color: var(--landing-text);
  cursor: pointer;
}

.prelogin-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: rgba(212,168,67,.12);
  color: var(--landing-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.prelogin-card h2 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.prelogin-card p {
  color: var(--landing-muted);
  margin-bottom: 20px;
}

.prelogin-card label {
  display: block;
  text-align: left;
  margin: 12px 0 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--landing-muted);
}

.prelogin-card input {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--landing-border);
  background: var(--landing-elevated);
  color: var(--landing-text);
  padding: 0 14px;
  outline: none;
}

#preloginFeedback {
  min-height: 22px;
  margin: 12px 0;
  color: #ff7070;
  font-size: .88rem;
}

.prelogin-card form {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  box-sizing: border-box;
  overflow: hidden;
}

.prelogin-card .btn-primary,
.prelogin-card #btnValidarPrelogin {
  position: relative;
  isolation: isolate;

  width: min(100%, 280px) !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: 44px;
  min-height: 44px;

  margin: 14px auto 0 !important;
  padding: 0 16px !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  overflow: hidden;

  border-radius: var(--landing-radius-pill);

  line-height: 1;
  white-space: nowrap;
}

/* ======================================================
   MOBILE — LANDING PAGE
====================================================== */

@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 18px;
    margin-inline: auto;
  }

  .hero-grid,
  .adaptive-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .adaptive-box {
    gap: 22px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .system-panel,
  .hero-content,
  .feature-card,
  .adaptive-box,
  .cta-box,
  .nav,
  .nav-actions {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: clip;
  }

  .container {
    padding-inline: 16px;
  }

  .landing-header,
  .hero,
  .features,
  .adaptive,
  .cta,
  .footer {
    overflow-x: clip;
  }

  /* --- HEADER / NAV --- */

  .landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
  }

  .nav {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding-block: 8px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .brand-link {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand-logo-crv {
    height: 34px;
    width: auto;
    max-width: 92px;
  }

  .nav-actions {
    flex: 0 0 auto;
    min-width: 0;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-actions .btn {
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    font-size: .74rem;
    line-height: 1;
    border-radius: 999px;
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 5px;
  }

  .nav-actions .btn i,
  .nav-actions .btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  /* --- HERO --- */

  .hero {
    padding-block: 36px 44px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .kicker {
    font-size: .68rem;
    line-height: 1.35;
    white-space: normal;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.78rem, 8vw, 2.35rem);
    line-height: 1.06;
    max-width: 100%;
    margin-bottom: 14px;
    overflow-wrap: break-word;
  }

  .hero-text {
    font-size: .92rem;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 18px;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .cta-box .btn-primary {
    width: 100%;
    max-width: 260px;
    min-width: 260px;
    min-height: 42px;
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--landing-radius-pill);
    align-self: center;
  }

  .hero-actions .btn-primary i,
  .hero-actions .btn-secondary i,
  .cta-box .btn-primary i,
  .hero-actions .btn-primary svg,
  .hero-actions .btn-secondary svg,
  .cta-box .btn-primary svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .hero-tags {
    gap: 7px;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .tag {
    max-width: 100%;
    font-size: .67rem;
  }

  /* --- PAINEL HERO --- */

  .system-panel {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px;
    overflow: hidden;
    border-radius: var(--landing-radius-lg);
  }

  .panel-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }

  .panel-logo {
    width: auto;
    height: auto;
    max-width: 128px;
  }

  .live-pill {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
  }

  .panel-grid {
    gap: 10px;
  }

  .panel-row {
    min-width: 0;
    min-height: 58px;
    padding: 11px 12px;
    gap: 10px;
    align-items: center;
  }

  .panel-row strong {
    font-size: .86rem;
    margin-bottom: 2px;
  }

  .panel-row span {
    font-size: .77rem;
    word-break: break-word;
  }

  .panel-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  /* --- FEATURES --- */

  .features {
    padding-bottom: 46px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    min-height: auto;
    padding: 18px 16px;
    border-radius: var(--landing-radius-lg);
  }

  /* --- ADAPTIVE --- */

  .adaptive {
    padding-bottom: 46px;
  }

  .adaptive-box {
    padding: 22px 18px;
    border-radius: var(--landing-radius-lg);
    gap: 18px;
  }

  .adaptive-box h2 {
    font-size: clamp(1.45rem, 6.8vw, 1.95rem);
    margin-bottom: 10px;
  }

  .business-types {
    justify-content: flex-start;
    gap: 8px;
    max-width: 100%;
  }

  .business-types span {
    font-size: .74rem;
  }

  /* --- CTA --- */

  .cta {
    padding-bottom: 46px;
  }

  .cta-box {
    padding: 28px 18px;
    border-radius: var(--landing-radius-lg);
  }

  .cta-box h2 {
    font-size: clamp(1.42rem, 6.5vw, 1.85rem);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .cta-box p {
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  /* --- FOOTER --- */

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-brand img {
    height: 34px;
    max-width: 132px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-inline: 14px;
  }

  .nav {
    min-height: 54px;
    padding-block: 7px;
    gap: 8px;
  }

  .brand-logo-crv {
    height: 32px;
    max-width: 86px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: .72rem;
    gap: 5px;
  }

  .nav-actions .btn i,
  .nav-actions .btn svg {
    width: 12px;
    height: 12px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-title {
    font-size: clamp(1.62rem, 7.8vw, 2.02rem);
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .cta-box .btn-primary {
    max-width: 248px;
    min-width: 248px;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: .78rem;
    gap: 7px;
  }

  .hero-actions .btn-primary i,
  .hero-actions .btn-secondary i,
  .cta-box .btn-primary i,
  .hero-actions .btn-primary svg,
  .hero-actions .btn-secondary svg,
  .cta-box .btn-primary svg {
    width: 14px;
    height: 14px;
  }

  .system-panel,
  .feature-card,
  .adaptive-box,
  .cta-box {
    border-radius: 16px;
  }

  .panel-row {
    min-height: 54px;
    padding: 10px 11px;
  }

  .section-head h2 {
    font-size: clamp(1.4rem, 6.5vw, 1.82rem);
  }

  .footer-brand img {
    max-width: 112px;
  }
}

/* ======================================================
   LANDING COMERCIAL — ESTRUTURA 2026
====================================================== */

body.modal-open {
  overflow: hidden;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
}

.landing-nav-links a {
  position: relative;
  color: var(--landing-muted);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: var(--landing-transition);
}

.landing-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--landing-accent);
  transform: scaleX(0);
  transition: transform .22s ease;
}

.landing-nav-links a:hover {
  color: var(--landing-text);
}

.landing-nav-links a:hover::after {
  transform: scaleX(1);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--landing-accent);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.proof-strip {
  padding: 0 0 72px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-lg);
  background: var(--landing-card);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .16);
}

.proof-grid > div {
  min-width: 0;
  padding: 20px 18px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 11px;
  align-items: center;
  border-right: 1px solid var(--landing-border);
}

.proof-grid > div:last-child {
  border-right: 0;
}

.proof-grid svg {
  grid-row: 1 / 3;
  width: 22px;
  color: var(--landing-accent);
}

.proof-grid strong {
  font-family: var(--font-display);
  font-size: .98rem;
}

.proof-grid span {
  color: var(--landing-muted);
  font-size: .76rem;
}

.specialized-module {
  margin-top: 18px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-lg);
  background: var(--landing-card);
}

.specialized-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 168, 67, .24);
  border-radius: 18px;
  background: rgba(212, 168, 67, .1);
  color: var(--landing-accent);
}

.specialized-module .eyebrow {
  margin-bottom: 3px;
}

.specialized-module h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.specialized-module p {
  color: var(--landing-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.module-status {
  padding: 7px 11px;
  border: 1px solid rgba(84, 205, 22, .28);
  border-radius: 999px;
  background: rgba(84, 205, 22, .08);
  color: var(--landing-green);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.how-it-works {
  padding: 76px 0;
  border-block: 1px solid var(--landing-border);
  background: rgba(0, 0, 0, .1);
}

html[data-theme="light"] .how-it-works {
  background: rgba(255, 255, 255, .18);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  min-height: 210px;
  padding: 26px 24px;
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-lg);
  background: var(--landing-card);
  overflow: hidden;
}

.step-card > span {
  position: absolute;
  top: 10px;
  right: 18px;
  color: rgba(212, 168, 67, .13);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

html[data-theme="light"] .step-card > span {
  color: rgba(0, 56, 135, .08);
}

.step-card > svg {
  position: relative;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: var(--landing-accent);
}

.step-card h3 {
  position: relative;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.step-card p {
  position: relative;
  color: var(--landing-muted);
  font-size: .88rem;
  line-height: 1.6;
}

.pricing {
  padding: 86px 0;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 64px;
  align-items: center;
}

.pricing-copy h2,
.faq-intro h2 {
  max-width: 680px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .98;
}

.pricing-copy > p,
.faq-intro > p {
  color: var(--landing-muted);
  line-height: 1.7;
}

.pricing-note {
  margin-top: 22px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-md);
  background: var(--landing-card);
  color: var(--landing-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.pricing-note svg {
  width: 18px;
  flex: 0 0 18px;
  color: var(--landing-accent);
}

.price-card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(212, 168, 67, .32);
  border-radius: 28px;
  background: var(--landing-card);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .3), 0 0 34px rgba(212, 168, 67, .08);
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(212, 168, 67, .17), transparent 36%);
  pointer-events: none;
}

.price-badge {
  position: relative;
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(212, 168, 67, .12);
  color: var(--landing-accent);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 22px;
}

.price small {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.price strong {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.04em;
}

.price span {
  color: var(--landing-muted);
  font-size: .86rem;
}

.price-card ul {
  position: relative;
  margin: 0 0 26px;
  padding: 20px 0 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--landing-border);
  list-style: none;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--landing-muted);
  font-size: .9rem;
}

.price-card li svg {
  width: 18px;
  color: var(--landing-green);
}

.price-button {
  position: relative;

  width: min(100%, 240px);
  min-height: 48px;
  padding: 0 20px;
  margin: 20px auto 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.assisted-label {
  position: relative;
  display: block;
  margin-top: 12px;
  color: var(--landing-muted);
  text-align: center;
  font-size: .72rem;
}

.faq {
  padding: 0 0 86px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 112px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-md);
  background: var(--landing-card);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary svg {
  width: 18px;
  flex: 0 0 18px;
  color: var(--landing-accent);
  transition: transform .2s ease;
}

.faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 20px 19px;
  color: var(--landing-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--landing-muted);
  font-size: .75rem;
}

@media (max-width: 1040px) {
  .landing-nav-links {
    display: none;
  }

  .pricing-layout,
  .faq-layout {
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid > div:nth-child(2) {
    border-right: 0;
  }

  .proof-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--landing-border);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }

  .pricing-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .proof-strip {
    padding-bottom: 48px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid > div,
  .proof-grid > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--landing-border);
  }

  .proof-grid > div:last-child {
    border-bottom: 0;
  }

  .specialized-module {
    padding: 19px 17px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }

  .specialized-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .module-status {
    grid-column: 2;
    justify-self: start;
  }

  .how-it-works,
  .pricing {
    padding: 52px 0;
  }

  .step-card {
    padding: 22px 18px;
  }

  .price-card {
    padding: 25px 20px;
    border-radius: 22px;
  }

  .price strong {
    font-size: 3.4rem;
  }

  .faq {
    padding-bottom: 52px;
  }

  .faq-layout {
    gap: 24px;
  }

  .faq-list summary {
    padding: 16px;
    font-size: .92rem;
  }

  .faq-list details p {
    padding: 0 16px 16px;
  }

  .cta-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .cta-actions .btn,
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary {
    position: relative;
    width: min(100%, 220px) !important;
    max-width: 220px !important;
    min-width: 0 !important;
    height: 40px;
    min-height: 40px;
    margin: 0 auto !important;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    box-sizing: border-box;
    border-radius: var(--landing-radius-pill);
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
  }

  .cta-actions .btn i,
  .cta-actions .btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .footer-copy {
    max-width: 280px;
  }

  .price-button {
    width: min(100%, 220px);
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .float-in,
  .soft-float {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
