/* ===========================================================================
   Design System — Landing Pages 361 Digital
   ---------------------------------------------------------------------------
   Mesmos tokens do site institucional (361digital.com.br), estendidos com um
   tema claro. A alternância black/white é feita trocando as variáveis dentro
   de .sec-dark / .sec-light — os componentes (botão, card, tag, formulário)
   leem sempre as mesmas variáveis, então funcionam nos dois modos sem
   duplicação de CSS.
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Marca */
  --brand:        #F59B1F;
  --brand-soft:   #FDC26B;
  --brand-deep:   #C97B0F;
  --ink:          #0B0B0D;
  --ink-2:        #111114;
  --navy:         #09111F;

  /* Raio e sombra */
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow:       0 24px 60px rgba(0,0,0,0.45);
  --shadow-light: 0 18px 48px rgba(11,11,13,0.10);

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-text:    'Inter', sans-serif;

  /* Ritmo vertical */
  --sec-pad:      clamp(72px, 9vw, 120px);
}

/* ── TEMAS DE SEÇÃO ──────────────────────────────────────────────────────── */
.sec-dark {
  --bg:        #0B0B0D;
  --bg-2:      #111114;
  --card:      #16161A;
  --card-2:    #1B1B20;
  --text:      #FFFFFF;
  --muted:     #B5B5BD;
  --dim:       #6E6E7A;
  --border:    rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.14);
  --border-hi: rgba(255,255,255,0.24);
  --btn-solid-bg:   #FFFFFF;
  --btn-solid-text: #0B0B0D;
}
.sec-light {
  --bg:        #F7F6F3;
  --bg-2:      #FFFFFF;
  --card:      #FFFFFF;
  --card-2:    #FBFAF8;
  --text:      #0B0B0D;
  --muted:     #55555F;
  --dim:       #8A8A96;
  --border:    rgba(11,11,13,0.09);
  --border-md: rgba(11,11,13,0.14);
  --border-hi: rgba(11,11,13,0.24);
  --btn-solid-bg:   #0B0B0D;
  --btn-solid-text: #FFFFFF;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; letter-spacing: -0.03em; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2A2A32; border-radius: 3px; }
::selection { background: var(--brand); color: #0B0B0D; }

/* ── ESTRUTURA ───────────────────────────────────────────────────────────── */
.sec {
  background: var(--bg);
  color: var(--text);
  padding: var(--sec-pad) 0;
  position: relative;
}
.sec-tight { padding: clamp(48px, 6vw, 76px) 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.container-sm { max-width: 860px; }

.s-head { margin-bottom: clamp(40px, 5vw, 60px); max-width: 760px; }
.s-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.s-title { font-size: clamp(28px, 4vw, 46px); font-weight: 700; margin-bottom: 18px; }
.s-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); line-height: 1.7; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--border-md); border-radius: 50px;
  padding: 6px 15px; margin-bottom: 20px;
}
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.brand-text { color: var(--brand); }

/* ── BOTÕES ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 50px; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: #0B0B0D; box-shadow: 0 8px 26px rgba(245,155,31,.28); }
.btn-brand:hover { background: var(--brand-soft); box-shadow: 0 14px 34px rgba(245,155,31,.36); }
.btn-solid { background: var(--btn-solid-bg); color: var(--btn-solid-text); }
.btn-solid:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-md); }
.btn-outline:hover { border-color: var(--border-hi); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--border-md); transform: translateY(-3px); }
.card-title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card-text { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(245,155,31,.12); border: 1px solid rgba(245,155,31,.26);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; color: var(--brand); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── NÚMEROS ─────────────────────────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700; color: var(--brand); letter-spacing: -0.04em; line-height: 1;
}
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 9px; line-height: 1.5; }

/* ── LISTA DE CHECK / DOR ────────────────────────────────────────────────── */
.list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--muted); line-height: 1.65; }
.list li strong { color: var(--text); font-weight: 600; }
.list-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.list-mark svg { width: 12px; height: 12px; }
.mark-check { background: rgba(245,155,31,.14); border: 1px solid rgba(245,155,31,.3); color: var(--brand); }
.mark-x { background: rgba(212,69,58,.12); border: 1px solid rgba(212,69,58,.28); color: #E2695E; }

/* ── DEPOIMENTO ──────────────────────────────────────────────────────────── */
.quote-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.quote-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.quote-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,13,.55) 100%);
}
.quote-mark { font-family: var(--font-display); font-size: 72px; line-height: 1; color: var(--brand); opacity: .5; margin-bottom: -14px; }
.quote-text { font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 27px); font-weight: 500; line-height: 1.45; letter-spacing: -0.02em; }
.quote-text em { color: var(--brand); font-style: normal; }
.quote-author { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.quote-author-name { font-weight: 600; font-size: 15.5px; }
.quote-author-role { font-size: 13.5px; color: var(--muted); }

/* ── FORMULÁRIO ──────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font-family: var(--font-text); font-size: 15px;
  color: var(--text); background: var(--card-2);
  border: 1px solid var(--border-md); border-radius: var(--radius); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(245,155,31,.16);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.form-note { font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.form-success {
  display: none; text-align: center; padding: 40px 24px;
  border: 1px solid rgba(245,155,31,.3); border-radius: var(--radius-lg); background: rgba(245,155,31,.06);
}
.form-success.active { display: block; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: 15px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: clamp(16px, 1.8vw, 18.5px); font-weight: 600;
  color: var(--text); padding: 24px 44px 24px 0; position: relative; line-height: 1.4;
}
.faq-q::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease, border-color .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding-bottom: 24px; font-size: 15.5px; color: var(--muted); line-height: 1.75; }

/* ── HEADER / FOOTER ─────────────────────────────────────────────────────── */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 66px;
  display: flex; align-items: center; padding: 0 clamp(20px, 4vw, 40px);
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.lp-header.scrolled {
  background: rgba(11,11,13,0.86); border-color: rgba(255,255,255,.08);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.lp-header img { height: 34px; }
.lp-header .btn { margin-left: auto; }

.lp-footer { background: var(--ink-2); color: #B5B5BD; padding: 56px 0 32px; border-top: 1px solid rgba(255,255,255,.07); }
.lp-footer img { height: 30px; margin-bottom: 18px; }
.lp-footer p { font-size: 13.5px; line-height: 1.7; max-width: 380px; }
.lp-footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #6E6E7A;
}
.lp-footer a { color: #B5B5BD; text-decoration: none; }
.lp-footer a:hover { color: var(--brand); }

/* ── CTA FIXO (mobile) ───────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
  background: rgba(11,11,13,.94); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.1); padding: 12px 16px;
  display: none; transform: translateY(100%); transition: transform .3s ease;
}
.sticky-cta.show { transform: translateY(0); }
.wpp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 870;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.36); transition: transform .25s;
}
.wpp-float:hover { transform: scale(1.07); }
.wpp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── ANIMAÇÃO DE ENTRADA ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .07s } .d2 { transition-delay: .14s } .d3 { transition-delay: .21s } .d4 { transition-delay: .28s }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVO ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-photo img { aspect-ratio: 3/2; }
}
@media (max-width: 700px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .wpp-float { bottom: 84px; }
  .lp-header .btn { padding: 10px 18px; font-size: 13.5px; }
}
