/*
 * PEC — marketing.css v2
 * Landing page completa: hero, features, como funciona, planos, FAQ, contato, footer
 */

/* ─── Reset / base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:      #0f1117;
  --bg2:     #171a23;
  --bg3:     #1e2235;
  --border:  #2d3250;
  --accent:  #4f8ef7;
  --accent2: #6ee7b7;
  --warn:    #fbbf24;
  --danger:  #f87171;
  --text:    #e2e8f0;
  --text2:   #94a3b8;
  --radius:  10px;
  --font:    'Inter', system-ui, sans-serif;
  --max:     1120px;
}
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; font-size: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.pec-container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── Section layout ─────────────────────────────── */
.pec-section-header { text-align: center; margin-bottom: 48px; }
.pec-section-title { font-size: clamp(24px,4vw,36px); font-weight: 800; margin-bottom: 12px; }
.pec-section-sub   { color: var(--text2); font-size: 17px; max-width: 580px; margin: 0 auto; }

/* ─── Buttons ────────────────────────────────────── */
.pec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: var(--font); transition: all .18s; text-decoration: none;
}
.pec-btn--primary  { background: var(--accent); color: #fff; }
.pec-btn--primary:hover  { background: #3a7fe6; color: #fff; transform: translateY(-1px); }
.pec-btn--outline  { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.pec-btn--outline:hover  { border-color: var(--accent); color: var(--accent); }
.pec-btn--ghost    { background: transparent; color: var(--text2); }
.pec-btn--ghost:hover    { color: var(--text); }
.pec-btn--full     { width: 100%; }
.pec-btn--lg       { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.pec-btn:disabled  { opacity: .45; cursor: default; }

/* ─── Nav ────────────────────────────────────────── */
.pec-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,17,23,.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.pec-nav--scrolled { border-bottom-color: var(--border); background: rgba(15,17,23,.97); }
.pec-nav__inner {
  display: flex; align-items: center; height: 60px; gap: 24px;
}
.pec-nav__logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--accent); text-decoration: none; }
.pec-nav__links { display: flex; gap: 24px; flex: 1; justify-content: center; }
.pec-nav__links a { color: var(--text2); font-size: 14px; transition: color .15s; }
.pec-nav__links a:hover { color: var(--text); text-decoration: none; }
.pec-nav__cta { display: flex; gap: 8px; }
.pec-nav__burger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }
@media (max-width: 700px) {
  .pec-nav__links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg2); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .pec-nav__links--open { display: flex; }
  .pec-nav__cta .pec-btn--ghost { display: none; }
  .pec-nav__burger { display: block; }
}

/* ─── Hero ───────────────────────────────────────── */
.pec-hero { padding: 80px 0 60px; overflow: hidden; }
.pec-hero .pec-container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pec-hero__bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(79,142,247,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(79,142,247,.04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.pec-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(79,142,247,.12); border: 1px solid rgba(79,142,247,.3); border-radius: 999px; padding: 4px 14px; font-size: 13px; color: var(--accent); margin-bottom: 20px; }
.pec-badge-dot { width: 8px; height: 8px; background: var(--accent2); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
.pec-hero__title { font-size: clamp(32px,5vw,54px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.pec-hero__accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pec-hero__sub { font-size: 18px; color: var(--text2); margin-bottom: 28px; max-width: 480px; }
.pec-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pec-hero__trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text2); }
@media (max-width: 760px) {
  .pec-hero .pec-container { grid-template-columns: 1fr; }
  .pec-hero__demo { display: none; }
}

/* ─── Mockup ─────────────────────────────────────── */
.pec-mockup { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.pec-mockup__bar { height: 36px; background: var(--bg3); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.pec-mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.pec-mockup__body { display: flex; height: 280px; }
.pec-mockup__sidebar { width: 180px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--border); overflow: hidden; }
.pec-mockup__msg { padding: 7px 10px; border-radius: 8px; font-size: 11px; line-height: 1.4; }
.pec-mockup__msg--user { background: var(--accent); color: #fff; align-self: flex-end; max-width: 90%; }
.pec-mockup__msg--ai { background: var(--bg3); border: 1px solid var(--border); color: var(--text); }
.pec-mockup__actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pec-mockup__tag { font-size: 9px; background: rgba(110,231,183,.12); border: 1px solid rgba(110,231,183,.3); color: var(--accent2); padding: 2px 6px; border-radius: 4px; }
.pec-mockup__canvas { flex: 1; position: relative; background: #1a1f36; overflow: hidden; }
.pec-mockup__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(45,50,80,.6) 1px,transparent 1px),linear-gradient(90deg,rgba(45,50,80,.6) 1px,transparent 1px); background-size: 20px 20px; }
.pec-mockup__obj { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; border-radius: 3px; }
.pec-mockup__obj--pilar { width: 24px; height: 24px; background: rgba(79,142,247,.7); border: 1px solid #4f8ef7; color: #fff; }
.pec-mockup__obj--viga  { height: 8px; background: rgba(110,231,183,.5); border: 1px solid #6ee7b7; }
.pec-mockup__obj--laje  { background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3); }

/* ─── Stats ──────────────────────────────────────── */
.pec-stats { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.pec-stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.pec-stat { text-align: center; padding: 20px; border-right: 1px solid var(--border); }
.pec-stat:last-child { border-right: none; }
.pec-stat__val { display: block; font-size: 32px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.pec-stat__label { font-size: 13px; color: var(--text2); }
@media (max-width: 600px) { .pec-stats__grid { grid-template-columns: 1fr 1fr; } .pec-stat { border-bottom: 1px solid var(--border); } }

/* ─── Features ───────────────────────────────────── */
.pec-features { padding: 80px 0; }
.pec-features__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.pec-feature-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.pec-feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pec-feature-card__icon { font-size: 28px; margin-bottom: 12px; }
.pec-feature-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pec-feature-card__desc { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ─── How it works ───────────────────────────────── */
.pec-how { padding: 80px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pec-how__steps { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center; }
.pec-how__step { flex: 1; min-width: 180px; max-width: 220px; text-align: center; padding: 0 16px; }
.pec-how__num { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.pec-how__step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pec-how__step p { font-size: 14px; color: var(--text2); }
.pec-how__arrow { font-size: 24px; color: var(--border); padding-top: 14px; flex-shrink: 0; }
@media (max-width: 700px) { .pec-how__arrow { display: none; } }

/* ─── Plans ──────────────────────────────────────── */
.pec-plans { padding: 80px 0; }
.pec-plans__toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; font-size: 15px; color: var(--text2); }
.pec-plans__discount { background: rgba(110,231,183,.15); border: 1px solid rgba(110,231,183,.3); color: var(--accent2); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pec-toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.pec-toggle input { opacity: 0; width: 0; height: 0; }
.pec-toggle__track { position: absolute; inset: 0; background: var(--bg3); border: 1px solid var(--border); border-radius: 999px; transition: background .2s; }
.pec-toggle input:checked + .pec-toggle__track { background: var(--accent); }
.pec-toggle__track::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: left .2s; }
.pec-toggle input:checked + .pec-toggle__track::after { left: 23px; }
.pec-plans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.pec-plan { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; display: flex; flex-direction: column; gap: 20px; }
.pec-plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(79,142,247,.2); }
.pec-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.pec-plan__name { font-size: 22px; font-weight: 800; }
.pec-plan__price { display: flex; align-items: baseline; gap: 4px; }
.pec-plan__amount { font-size: 36px; font-weight: 900; color: var(--accent); }
.pec-plan__period { font-size: 14px; color: var(--text2); }
.pec-plan__desc { font-size: 13px; color: var(--text2); margin-top: -8px; }
.pec-plan__features { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1; }
.pec-plan__features li { color: var(--text2); }
.pec-plan__features li:first-child { color: var(--text); }
.pec-plans__note { text-align: center; margin-top: 32px; font-size: 13px; color: var(--text2); }

/* ─── FAQ ────────────────────────────────────────── */
.pec-faq { padding: 80px 0; background: var(--bg2); border-top: 1px solid var(--border); }
.pec-faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.pec-faq__item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pec-faq__q { width: 100%; background: none; border: none; color: var(--text); padding: 18px 20px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; font-family: var(--font); gap: 12px; }
.pec-faq__q:hover { background: var(--bg3); }
.pec-faq__icon { font-size: 20px; color: var(--accent); flex-shrink: 0; width: 24px; text-align: center; }
.pec-faq__a { padding: 0 20px 18px; font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ─── Contact ────────────────────────────────────── */
.pec-contact { padding: 80px 0; }
.pec-contact__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.pec-contact__info .pec-section-title { text-align: left; }
.pec-contact__info > p { color: var(--text2); margin-bottom: 28px; font-size: 15px; }
.pec-contact__items { display: flex; flex-direction: column; gap: 18px; }
.pec-contact__item { display: flex; gap: 14px; align-items: flex-start; }
.pec-contact__icon { font-size: 22px; flex-shrink: 0; }
.pec-contact__item strong { display: block; font-size: 13px; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.pec-contact__item a, .pec-contact__item span { color: var(--text); font-size: 15px; }
.pec-contact__form { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.pec-contact__feedback { padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.pec-contact__feedback--ok  { background: rgba(110,231,183,.12); border: 1px solid rgba(110,231,183,.3); color: var(--accent2); }
.pec-contact__feedback--err { background: rgba(248,113,113,.1);  border: 1px solid rgba(248,113,113,.3); color: var(--danger); }
@media (max-width: 760px) { .pec-contact__inner { grid-template-columns: 1fr; } }

/* ─── Fields (form) ──────────────────────────────── */
.pec-field { display: flex; flex-direction: column; gap: 6px; }
.pec-field label { font-size: 13px; color: var(--text2); font-weight: 500; }
.pec-field input, .pec-field select, .pec-field textarea {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color .15s; resize: vertical;
}
.pec-field input:focus, .pec-field select:focus, .pec-field textarea:focus { border-color: var(--accent); }
.pec-field input::placeholder, .pec-field textarea::placeholder { color: var(--text2); }

/* ─── CTA final ──────────────────────────────────── */
.pec-cta-final { padding: 80px 0; text-align: center; background: linear-gradient(135deg, #171a23 0%, #1a2040 100%); border-top: 1px solid var(--border); }
.pec-cta-final h2 { font-size: clamp(26px,4vw,40px); font-weight: 800; margin-bottom: 12px; }
.pec-cta-final p  { font-size: 17px; color: var(--text2); margin-bottom: 28px; }

/* ─── Auth modal ─────────────────────────────────── */
.pec-auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 9000; }
.pec-auth-overlay.pec-auth-overlay--open { display: flex; }
.pec-auth-modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 420px; max-width: 94vw; position: relative; }
.pec-auth-modal__close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text2); cursor: pointer; font-size: 18px; }
.pec-auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.pec-auth-tab { flex: 1; padding: 10px; background: none; border: none; color: var(--text2); cursor: pointer; font-size: 14px; font-weight: 600; font-family: var(--font); border-bottom: 2px solid transparent; transition: all .15s; }
.pec-auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.pec-auth-form { display: flex; flex-direction: column; gap: 16px; }
.pec-auth-form__title { font-size: 20px; font-weight: 700; }
.pec-auth-form__desc  { font-size: 14px; color: var(--text2); }
.pec-auth-form__error { color: var(--danger); font-size: 13px; min-height: 16px; }
.pec-auth-form__success { color: var(--accent2); font-size: 13px; }
.pec-auth-form__link  { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 13px; text-align: center; margin-top: -4px; font-family: var(--font); }
.pec-auth-form__link:hover { color: var(--accent); }
.pec-auth-form__terms { font-size: 12px; color: var(--text2); text-align: center; }
.pec-auth-form__terms a { color: var(--accent); }
