/* ==========================================================================
   Meu Benefício PREV — Auxílio-Acidente — Landing Page v1
   Mobile-first
   ========================================================================== */

:root {
  --color-primary: #0B3B60;
  --color-primary-dark: #082A47;
  --color-primary-light: #E9F3FF;
  --color-accent: #FF7A45;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5A;
  --color-text: #1B2733;
  --color-text-muted: #5B6B7A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F9FC;
  --color-border: #E2ECF3;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(11, 59, 96, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 59, 96, 0.12);

  --container-width: 1140px;
  --sticky-cta-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  padding-bottom: var(--sticky-cta-height);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn .icon {
  flex-shrink: 0;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #ef6a37;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 17px;
  width: 100%;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.center-cta {
  text-align: center;
  margin-top: 36px;
}
.center-cta .btn {
  width: auto;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                   */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  display: block;
  width: auto;
  height: 34px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-primary);
  line-height: 1.2;
}
.logo-text b {
  color: var(--color-accent);
  font-weight: 800;
}
.logo-text.light {
  color: #fff;
}
.logo-text.light b {
  color: #FFC98A;
}

.main-nav {
  display: none;
}

.header-cta span {
  display: none;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, #ffffff 65%);
  padding: 36px 0 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 28px;
}

.eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 30px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 22px;
}
.hero-sub strong {
  color: var(--color-primary);
}

.hero-microcopy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 12px 0 20px;
}
.hero-microcopy .icon {
  color: var(--color-whatsapp);
  flex-shrink: 0;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.hero-trust .icon {
  color: var(--color-whatsapp);
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Triagem rápida (widget do hero)                                         */
/* ---------------------------------------------------------------------- */

.triage {
  width: 100%;
  max-width: 380px;
  margin: 8px auto 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 20px;
}

.triage-head {
  margin-bottom: 16px;
}

.triage-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.triage-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.triage-progress-bar {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--color-accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.triage-question {
  font-size: 17px;
  margin-bottom: 14px;
}

.triage-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.triage-option {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.triage-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.triage-option:active {
  transform: scale(0.99);
}

.triage-back,
.triage-restart {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.triage-result-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.triage-result-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.triage-result-sub {
  font-size: 14px;
  margin-bottom: 18px;
}

.triage-restart {
  display: block;
  text-align: center;
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* Sections                                                                 */
/* ---------------------------------------------------------------------- */

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.card p {
  font-size: 14.5px;
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 56px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 16.5px;
  margin-bottom: 4px;
}

.step p {
  font-size: 14.5px;
  margin: 0;
}

/* Stats bar */
.stats-bar {
  background: var(--color-primary);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: #BFD9EF;
}

/* Features */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #FFF1EA;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  font-size: 16.5px;
  margin-bottom: 4px;
}

.feature p {
  font-size: 14.5px;
  margin: 0;
}

/* Accordion */
.accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  cursor: pointer;
}

.accordion-trigger .chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-text-muted);
}

.accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  transition: grid-template-rows 0.25s ease;
}

.accordion-panel > p {
  overflow: hidden;
}

.accordion-item.open .accordion-panel {
  grid-template-rows: minmax(0, 1fr);
}

.accordion-panel p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14.5px;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: 24px;
}

.final-cta p {
  color: #CFE3F4;
  max-width: 480px;
  margin: 0 auto 24px;
}

.final-cta .btn {
  max-width: 360px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--color-primary-dark);
  color: #BFD3E3;
  padding: 40px 0 28px;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.footer-brand p {
  color: #9FB6CB;
  margin-top: 8px;
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #BFD3E3;
}
.footer-links a:hover {
  color: #fff;
}

.footer-disclaimer {
  color: #7F97AC;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-copy {
  color: #7F97AC;
  font-size: 12px;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Floating WhatsApp button (desktop-oriented, hidden while mobile bar shows) */
/* ---------------------------------------------------------------------- */

.fab-whatsapp {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: transform 0.15s ease;
}
.fab-whatsapp:active {
  transform: scale(0.94);
}

/* Sticky bottom CTA (mobile-first primary conversion bar) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(11, 59, 96, 0.08);
}

/* ==========================================================================
   Tablet and up
   ========================================================================== */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }
  .hero-sub {
    font-size: 18px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .section-title {
    font-size: 30px;
  }
  .final-cta h2 {
    font-size: 30px;
  }
  .btn-lg,
  .final-cta .btn {
    width: auto;
  }
}

/* ==========================================================================
   Desktop and up
   ========================================================================== */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  .main-nav {
    display: flex;
    gap: 28px;
  }
  .main-nav a {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--color-text);
  }
  .main-nav a:hover {
    color: var(--color-primary);
  }

  .header-cta span {
    display: inline;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    padding: 40px 0 60px;
  }
  .hero-copy {
    flex: 1 1 50%;
  }
  .hero-visual {
    flex: 1 1 50%;
  }
  .triage {
    max-width: 380px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .sticky-cta {
    display: none;
  }

  .fab-whatsapp {
    display: flex;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
