/* ============================================
   GuardMark — Landing Page
   Mesma paleta/tipografia do sistema (webapp/static/style.css)
============================================ */

:root {
  --navy: #0e1930;       /* --azul-marinho do app */
  --navy-soft: #16223f;
  --blue: #2a97e8;        /* --marca-azul */
  --blue-dark: #1a4f8b;   /* --azul institucional */
  --magenta: #ec2f79;     /* --marca-rosa */
  --ink: #22303f;         /* --texto */
  --muted: #6b7a8c;       /* --texto-suave */
  --line: #d9dee6;        /* --cinza-borda */
  --ice: #f4f6f9;         /* --cinza-fundo */
  --white: #FFFFFF;
  --whatsapp: #25D366;

  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 48, 0.04), 0 6px 18px -10px rgba(20, 30, 48, 0.16);
  --shadow-md: 0 2px 4px rgba(20, 30, 48, 0.05), 0 10px 24px -10px rgba(20, 30, 48, 0.22);
  --shadow-lg: 0 24px 60px rgba(14, 25, 48, 0.22);

  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-titulo: 'Sora', var(--font);
  --font-dado: 'IBM Plex Mono', ui-monospace, monospace;
  --header-h: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-titulo); letter-spacing: -0.01em; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 15px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  min-height: 48px;
  line-height: 1;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--ice); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--sm { padding: 10px 20px; font-size: .9rem; min-height: 40px; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Cabeçalho ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(14, 25, 48, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { height: 40px; width: auto; }

.header__nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.header__nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .2s ease;
}
.header__nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  z-index: 99;
}
.mobile-nav.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn { border: none; margin-top: 12px; text-align: center; }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  background:
    radial-gradient(700px 420px at 82% 10%, rgba(42, 151, 232, .10), transparent 60%),
    radial-gradient(500px 400px at 100% 60%, rgba(236, 47, 121, .06), transparent 60%),
    var(--white);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(42, 151, 232, .10);
  border: 1px solid rgba(42, 151, 232, .25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--navy);
}
.hero__title .highlight { color: var(--blue); }

.hero__text {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 0 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.trust-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.trust-list .icon { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__blob {
  position: absolute;
  width: 420px; height: 420px;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  background: conic-gradient(from 210deg, var(--blue), var(--magenta), var(--blue));
  filter: blur(70px);
  opacity: .16;
  border-radius: 50%;
  z-index: 0;
}

/* Card de prévia do painel — mockup fiel ao dashboard real (badges de status) */
.panel-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-lg);
}
.panel-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-card__header span:first-child { font-family: var(--font-titulo); }
.panel-card__badge {
  font-family: var(--font-dado);
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(42, 151, 232, .10);
  padding: 4px 10px;
  border-radius: 999px;
}
.panel-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ice);
}
.panel-card__row:last-of-type { border-bottom: none; }
.panel-card__marca { display: flex; flex-direction: column; gap: 3px; }
.panel-card__marca strong { font-size: .92rem; color: var(--navy); font-weight: 700; }
.panel-card__marca span { font-family: var(--font-dado); font-size: .74rem; color: var(--muted); }
.panel-card__status {
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.panel-card__status--ok { background: rgba(42, 151, 232, .12); color: var(--blue-dark); }
.panel-card__status--alerta { background: rgba(236, 47, 121, .12); color: var(--magenta); }
.panel-card__status--prazo { background: rgba(230, 162, 20, .14); color: #92660f; }
.panel-card__footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
}
.panel-card__footer .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ===== Faixa de esclarecimento ===== */
.clarify-strip {
  background: var(--navy);
  padding: 18px 0;
}
.clarify-strip p {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
  line-height: 1.5;
}

/* ===== Seções genéricas ===== */
.section { padding: 96px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--form { background: var(--ice); }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--blue); }

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 18px;
  max-width: 24ch;
}
.section__title--light { color: var(--white); }

.section__lead {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 52px;
}
.section__lead--light { color: rgba(255,255,255,.72); }

/* ===== Cartões de diferenciais ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(42,151,232,.14), rgba(236,47,121,.08));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.card p {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== Como funciona (steps) ===== */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps__item {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.steps__num {
  display: block;
  font-family: var(--font-dado);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}
.steps__item h3 {
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
}
.steps__item p {
  font-size: .92rem;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
  margin: 0;
}

/* ===== Whitelabel ===== */
.whitelabel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.whitelabel__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.whitelabel__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.whitelabel__list .icon { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.whitelabel__list small { display: block; font-weight: 500; font-size: .84rem; color: var(--muted); margin-top: 2px; }

.domain-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.domain-card::before {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background: conic-gradient(from 120deg, var(--blue), var(--magenta), var(--blue));
  opacity: .16;
  filter: blur(50px);
  top: -70px; right: -70px;
  border-radius: 50%;
}
.domain-card__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-dado);
  font-size: .92rem;
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.domain-card__row:last-child { margin-bottom: 0; }
.domain-card__row .arrow { color: var(--blue); flex-shrink: 0; }
.domain-card__label {
  position: relative;
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== Formulário ===== */
.form {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}
.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__row label,
.form__fieldset legend {
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
}
.form__row input,
.form__row select,
.form__row textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  min-height: 50px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__row textarea { min-height: 96px; resize: vertical; font-family: var(--font); }
.form__row input:hover, .form__row select:hover, .form__row textarea:hover { border-color: #b9c8db; }
.form__row input:focus, .form__row select:focus, .form__row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(42,151,232,.14);
  outline: none;
}
.form__row select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8c' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }

.form__row.has-error input,
.form__row.has-error select,
.form__row.has-error textarea {
  border-color: var(--magenta);
}
.form__error {
  color: var(--magenta);
  font-size: .82rem;
  font-weight: 600;
  min-height: 1em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.form-actions .btn { flex: 1 1 220px; }

.form__consent {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* ===== FAQ ===== */
.accordion__item {
  border-bottom: 1px solid var(--line);
}
.accordion__item h3 { margin: 0; }
.accordion__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
  min-height: 48px;
}
.accordion__trigger::after {
  content: '';
  position: absolute;
  right: 4px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a97e8' stroke-width='2.4' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat center / contain;
  transition: transform .2s ease;
}
.accordion__trigger[aria-expanded="true"]::after { transform: translateY(-50%) rotate(180deg); }
.accordion__panel {
  padding: 0 44px 22px 0;
}
.accordion__panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .96rem;
}

/* ===== CTA final ===== */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, #1a3358 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-final__title {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 36px;
}
.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ===== Rodapé ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo { height: 32px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: .88rem; line-height: 1.6; max-width: 34ch; margin: 0; }
.footer__col h4 {
  color: var(--white);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer__col p { font-size: .9rem; margin: 0 0 10px; }
.footer__col a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer__col a:hover { color: var(--blue); text-decoration: underline; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 32px;
  font-size: .8rem;
}
.footer__bottom p { margin: 0; }

/* ===== Botão flutuante WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .38);
  z-index: 90;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.07); box-shadow: 0 10px 28px rgba(37, 211, 102, .5); }

/* ===============================
   RESPONSIVO
================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; margin: 0 auto 8px; }
  .hero__blob { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .whitelabel { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header__nav { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .header__actions .btn--sm { display: none; }
  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .section { padding: 64px 0; }
  .cta-final { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section__lead { margin-bottom: 36px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .trust-list { flex-direction: column; gap: 12px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .domain-card { padding: 28px 22px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
