/* Landing pública + páginas de autenticação (login/registro) do Terefas Chat.
   CSS vanilla (sem build), seguindo o modelo .code/landing page (Manrope, índigo #4f46e5). */

:root {
  --accent: #4f46e5;
  --accent-strong: #3525cd;
  --accent-soft: #eef2ff;
  --accent-6d: #6d63ec;
  --ink: #0b1c30;
  --muted: #555571;
  --muted-2: #8a88a0;
  --bg: #f8f9ff;
  --bg-soft: #eff4ff;
  --surface: #ffffff;
  --line: #e4e7f2;
  --shadow-card: 0 18px 40px -28px rgba(27, 23, 51, .34);
  --radius: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .55); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 16px 30px -12px rgba(79, 70, 229, .6); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd3e6; }
.btn-lg { font-size: 16px; padding: 15px 28px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lp-header .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lp-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.lp-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-6d)); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .32); flex-shrink: 0; }
.lp-brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.lp-nav { display: flex; align-items: center; gap: 32px; }
.lp-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.lp-nav a:hover { color: var(--ink); }
.lp-actions { display: flex; align-items: center; gap: 12px; }
.lp-actions .link-entrar { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 10px; }
.lp-actions .link-entrar:hover { background: var(--bg-soft); }
.lp-burger { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }

/* ============ HERO ============ */
.lp-hero { position: relative; max-width: var(--max); margin: 0 auto; padding: 84px 24px 72px; }
.lp-hero::before { content: ""; position: absolute; top: -40px; right: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 116, 240, .20), rgba(124, 116, 240, 0) 68%); z-index: 0; pointer-events: none; }
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr 1.12fr; gap: 56px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 24px; }
.lp-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulseDot 1.8s ease-in-out infinite; }
.lp-hero h1 { font-size: 54px; line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
.lp-hero h1 .hl { color: var(--accent); }
.lp-lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.lp-hero-trust { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; font-weight: 500; }
.lp-avatars { display: flex; }
.lp-avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; }
.lp-avatars span + span { margin-left: -10px; }
.lp-hero-img { animation: fadeUp .7s ease .12s both; }
.lp-hero-img img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 40px 80px -28px rgba(27, 23, 51, .34); display: block; }

/* ============ TRUST BAND ============ */
.lp-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.lp-trust-grid { max-width: 1100px; margin: 0 auto; padding: 34px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.lp-trust-grid .num { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.lp-trust-grid .lbl { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ============ SECTIONS / FEATURES ============ */
.lp-section { max-width: var(--max); margin: 0 auto; padding: 92px 24px; }
.lp-section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.lp-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.lp-section-head h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 0 0 16px; }
.lp-section-head p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(27, 23, 51, .3); }
.lp-card .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); }
.lp-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 9px; }
.lp-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.lp-card.feat-ai { background: linear-gradient(155deg, var(--accent), var(--accent-6d)); border-color: var(--accent); color: #fff; box-shadow: 0 22px 44px -24px rgba(79, 70, 229, .6); }
.lp-card.feat-ai .ico { background: rgba(255, 255, 255, .18); color: #fff; }
.lp-card.feat-ai p { color: rgba(255, 255, 255, .86); }

/* ============ AI HIGHLIGHT ============ */
.lp-ai { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-ai-grid { max-width: var(--max); margin: 0 auto; padding: 92px 24px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.lp-ai h2 { font-size: 38px; line-height: 1.14; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; }
.lp-ai .lp-lead { margin-bottom: 26px; }
.lp-cmds { display: flex; flex-direction: column; gap: 12px; }
.lp-cmd { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 15px; }
.lp-cmd .q { color: var(--accent); font-size: 18px; }
.lp-chat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 80px -34px rgba(27, 23, 51, .34); overflow: hidden; }
.lp-chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lp-chat-ava { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(140deg, var(--accent), var(--accent-6d)); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.lp-chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bubble { font-size: 14px; line-height: 1.55; }
.bubble.ai { background: var(--accent-soft); border-radius: 14px 14px 14px 4px; padding: 12px 14px; max-width: 90%; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; padding: 12px 14px; font-weight: 600; max-width: 82%; }
.bubble.res { background: #f6f6fb; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.bubble.res .acts { display: flex; gap: 8px; margin-top: 11px; }
.chip-acc { background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 9px; }
.chip-line { background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 12px; padding: 7px 14px; border-radius: 9px; }
.lp-chat-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.lp-chat-input .ph { font-size: 13px; color: var(--muted-2); flex: 1; }
.lp-chat-input .send { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; }

/* ============ SHOTS ============ */
.lp-shots { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.lp-shots .col { display: flex; flex-direction: column; gap: 22px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(27, 23, 51, .4); background: var(--surface); }
.shot-bar { height: 34px; background: #f6f6fb; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.shot-bar .t { margin-left: 10px; font-size: 11px; color: var(--muted); font-weight: 600; }
.shot img { display: block; width: 100%; height: auto; }

/* ============ TESTIMONIALS ============ */
.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.quote p { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--accent-6d)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.quote .nm { font-weight: 700; font-size: 14px; }
.quote .rl { font-size: 12.5px; color: var(--muted); }

/* ============ PRICING ============ */
.lp-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; }
.price.pop { border-color: var(--accent); box-shadow: 0 24px 50px -28px rgba(79, 70, 229, .5); position: relative; }
.price .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price .pn { font-weight: 800; font-size: 18px; }
.price .pv { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; }
.price .pv small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price .pd { font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); }
.price li svg { color: var(--accent); flex-shrink: 0; }
.price .btn { margin-top: auto; }

/* ============ FINAL CTA + FOOTER ============ */
.lp-final { background: linear-gradient(150deg, var(--accent), var(--accent-6d)); }
.lp-final .container { padding: 72px 24px; text-align: center; color: #fff; }
.lp-final h2 { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.lp-final p { font-size: 18px; color: rgba(255, 255, 255, .9); margin: 0 0 28px; }
.lp-final .btn-primary { background: #fff; color: var(--accent-strong); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .3); }
.lp-final .btn-primary:hover { background: #f1f0ff; }
.lp-footer { background: #0b1020; color: #c7c9da; }
.lp-footer .container { padding: 56px 24px 30px; }
.lp-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.lp-footer .lp-brand-name, .lp-footer .ft-h { color: #fff; }
.lp-footer p { font-size: 14px; color: #9a9db4; margin: 14px 0 0; max-width: 280px; }
.ft-col h4 { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.ft-col a { display: block; text-decoration: none; color: #9a9db4; font-size: 14px; margin-bottom: 10px; }
.ft-col a:hover { color: #fff; }
.lp-foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8a8da4; flex-wrap: wrap; }

/* ============ AUTH (login / registro) ============ */
.auth { min-height: 100vh; display: flex; }
.auth-split { flex: 1; display: flex; width: 100%; }
.auth-left { width: 46%; background: var(--bg-soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 44px; position: relative; overflow: hidden; }
.auth-left .lp-brand { z-index: 1; }
.auth-illus { z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.auth-illus img { width: 100%; max-width: 420px; margin-bottom: 30px; filter: drop-shadow(0 30px 50px rgba(79, 70, 229, .25)); }
.auth-illus h1 { font-size: 42px; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 0 0 18px; }
.auth-illus p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 420px; }
.auth-left-foot { z-index: 1; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.auth-left-foot a { text-decoration: none; }
.auth-left-foot a:hover { color: var(--accent); }
.auth-right { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 24px; background: var(--bg); }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-mobile-brand { display: none; align-items: center; gap: 11px; justify-content: center; margin-bottom: 32px; }
.auth-head { margin-bottom: 28px; }
.auth-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.auth-head p { font-size: 15px; color: var(--muted); margin: 0; }
.auth-errors { background: #ffe4e6; border: 1px solid #fecdd3; color: #9f1239; border-radius: 12px; padding: 11px 14px; margin-bottom: 18px; font-size: 13.5px; }
.auth-errors ul { margin: 0; padding-left: 18px; }
.auth-status { background: var(--accent-soft); border: 1px solid #d7d9ff; color: var(--accent-strong); border-radius: 12px; padding: 11px 14px; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; }
.fld { margin-bottom: 18px; }
.fld .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.fld label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink); margin-bottom: 7px; }
.fld .row label { margin-bottom: 0; }
.fld .link { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; }
.fld .link:hover { color: var(--accent-strong); }
.fld .input { position: relative; }
.fld .input .mi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 19px; pointer-events: none; }
.fld input { width: 100%; padding: 12px 14px 12px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.fld input::placeholder { color: var(--muted-2); }
.fld input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.fld.no-ico input { padding-left: 14px; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; cursor: pointer; margin-bottom: 18px; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.auth-divider i { height: 1px; background: var(--line); flex: 1; }
.auth-divider span { font-size: 12px; font-weight: 600; color: var(--muted); }
.btn-oauth { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 12px; font: inherit; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: not-allowed; opacity: .85; }
.btn-oauth .soon { font-size: 11px; font-weight: 600; color: var(--muted-2); }
.btn-oauth-on { cursor: pointer; opacity: 1; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.btn-oauth-on:hover { border-color: #cfd3e6; box-shadow: 0 4px 14px -8px rgba(27, 23, 51, .35); }
.auth-foot { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot a { font-weight: 700; color: var(--accent); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============ RESPONSIVO ============ */
@media (max-width: 980px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-hero h1 { font-size: 42px; }
  .lp-ai-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-features, .lp-quotes, .lp-prices { grid-template-columns: 1fr 1fr; }
  .lp-shots { grid-template-columns: 1fr; }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; }
  .auth-left { display: none; }
  .auth-mobile-brand { display: flex; }
}
@media (max-width: 720px) {
  .lp-nav { display: none; }
  .lp-burger { display: inline-flex; }
  .lp-actions .link-entrar { display: none; }
  .lp-trust-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .lp-features, .lp-quotes, .lp-prices { grid-template-columns: 1fr; }
  .lp-section { padding: 64px 22px; }
  .lp-section-head h2, .lp-ai h2, .lp-final h2 { font-size: 30px; }
  .lp-hero { padding: 56px 22px 48px; }
  .lp-hero h1 { font-size: 36px; }
  .lp-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .lp-foot-bottom { justify-content: center; text-align: center; }
}
