/* PapoFlux — Identidade Visual ManyChat + Duolingo (Tátil 3D, Vibrante e Animada) */
:root{
  --ink:#17203d;
  --muted:#5b6785;
  --paper:#f3f5fc;
  --line:#dce2f2;
  --brand:#4357ef;
  --brand-hover:#3345c6;
  --brand-shadow:#2838b0;
  --violet:#8054e8;
  --brand-soft:#eef0ff;
  --mint:#22c55e;
  --mint-shadow:#15803d;
  --gold:#f59e0b;
  --gold-shadow:#b45309;
  --rose:#f43f5e;
}
body{background:var(--paper);color:var(--ink);font-family:Interface,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.brand{color:var(--ink);font-weight:800;letter-spacing:-.7px;gap:10px;white-space:nowrap}
.brand-mark{background:none;padding:0;border-radius:12px;flex:none;width:38px;height:38px;box-shadow:0 4px 10px rgba(67,87,239,.22);transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.brand:hover .brand-mark{transform:scale(1.07) rotate(-4deg)}
.brand-mark img{display:block;width:100%;height:100%}
.brand-pro-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.8px;padding:2px 6px;border-radius:6px;background:linear-gradient(135deg,#4357ef,#8054e8);color:#fff;vertical-align:middle;margin-left:4px}

/* Mascote Fluxi Animado */
.fluxi-mascot{display:inline-flex;align-items:center;justify-content:center;flex:none;position:relative;animation:fluxiFloat 4.2s ease-in-out infinite}
.fluxi-mascot img{display:block;height:auto;filter:drop-shadow(0 8px 16px rgba(23,32,61,.14))}
.fluxi-sm img{width:54px;height:54px}
.fluxi-md img{width:82px;height:82px}
.fluxi-lg img{width:112px;height:112px}
@keyframes fluxiFloat{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-6px) rotate(1.5deg)}
}

/* Botões Táteis 3D Estilo Duolingo */
.primary{
  background:linear-gradient(180deg,#5468ff 0%,#4357ef 100%);
  border:1px solid #3547d4;
  border-bottom:4px solid var(--brand-shadow);
  color:#fff;
  font-weight:700;
  border-radius:14px;
  box-shadow:0 6px 16px rgba(67,87,239,.22);
  transition:transform .12s ease,box-shadow .15s ease,filter .15s ease;
}
.primary:hover{
  background:linear-gradient(180deg,#485cf5 0%,#374ae0 100%);
  border-color:#2a3bc2;
  border-bottom-color:#2130a8;
  filter:brightness(1.03);
  box-shadow:0 8px 20px rgba(67,87,239,.3);
}
.primary:active{
  transform:translateY(2px);
  border-bottom-width:2px;
}
.secondary{
  color:#2b3654;
  border:1.5px solid #d5ddef;
  border-bottom:3.5px solid #c1cce6;
  background:#ffffff;
  font-weight:650;
  border-radius:13px;
  transition:transform .12s ease,background .15s ease,border-color .15s ease;
}
.secondary:hover{
  background:#f5f7ff;
  border-color:#98a6f5;
  border-bottom-color:#7889ec;
  color:#3445c9;
}
.secondary:active{
  transform:translateY(2px);
}
.muted,.account small,.topbar{color:var(--muted)}
.eyebrow{color:#506099;font-weight:800;letter-spacing:1.5px}
.text-button{color:#4357cc;font-weight:600}
.sidebar{border-color:var(--line);padding-top:26px}
.sidebar-sub{color:#78839c;letter-spacing:1.2px;font-weight:700}
.sidebar nav a{color:#586582;border-radius:12px;transition:all .15s ease}
.sidebar nav a.selected{color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1.5px #d4daff}
.sidebar nav a:hover{background:#f3f5ff;color:#273459}
.sidebar nav a.selected:hover{background:var(--brand-soft)}
.sidebar .account{border-color:var(--line)}
.avatar{background:#eef0fc;color:#4656be}
.pill:not(.green){background:#edf0f9;color:#4f5c78;font-weight:700}
.pill.green{background:#dcfce7;color:#15803d;border:1px solid #bbf7d0;font-weight:700}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:var(--line);color:var(--ink);border-radius:12px}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #4357ef;outline-offset:3px}
input[type=checkbox],input[type=radio]{accent-color:var(--brand)}

/* ==========================================================================
   PÁGINA INICIAL / LOGIN (CAPA DUOLINGO + MANYCHAT)
   ========================================================================== */
.entry{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,0.95fr);
  background:#ffffff;
  min-height:100svh;
}
.entry-art{
  background:radial-gradient(circle at 18% 18%,#263780 0%,#121a42 58%,#0d1333 100%);
  color:#ffffff;
  padding:4.5vh clamp(28px,4.2vw,68px);
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
}
.entry-art-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  pointer-events:none;
  opacity:.45;
}
.entry-art-glow-1{width:380px;height:380px;background:#4357ef;top:-90px;left:-80px}
.entry-art-glow-2{width:340px;height:340px;background:#22c55e;bottom:-90px;right:-60px;opacity:.28}
.entry-art-content{
  width:100%;
  max-width:650px;
  margin:0 auto;
  position:relative;
  z-index:2;
}
.entry-badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}
.entry-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 13px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.2px;
}
.entry-pill-green{background:rgba(34,197,94,.18);color:#86efac;border:1px solid rgba(74,222,128,.35)}
.entry-pill-gold{background:rgba(245,158,11,.18);color:#fde047;border:1px solid rgba(251,191,36,.35)}
.entry-pulse{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#4ade80;
  box-shadow:0 0 0 0 rgba(74,222,128,.7);
  animation:entryPulse 1.8s infinite;
}
@keyframes entryPulse{
  0%{box-shadow:0 0 0 0 rgba(74,222,128,.7)}
  70%{box-shadow:0 0 0 9px rgba(74,222,128,0)}
  100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}
}
.entry-art .eyebrow{
  color:#93c5fd;
  margin:0 0 10px;
  letter-spacing:1.6px;
  font-size:11px;
  font-weight:800;
}
.entry-art h1{
  font-family:Interface,Inter,Arial,sans-serif;
  font-weight:800;
  font-size:clamp(30px,3vw,46px);
  line-height:1.1;
  letter-spacing:-1.4px;
  margin:0;
}
.entry-highlight{
  background:linear-gradient(90deg,#4ade80,#38bdf8,#a78bfa);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.entry-art p.entry-lead{
  color:#cbd5e1;
  font-size:15px;
  line-height:1.6;
  margin:12px 0 20px;
}

/* Vitrine Animada da Capa */
.entry-showcase{
  display:flex;
  flex-direction:column;
  gap:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  padding:18px;
  backdrop-filter:blur(12px);
  box-shadow:0 20px 50px rgba(7,11,29,.35);
}
.entry-mascot-card{
  display:flex;
  align-items:center;
  gap:14px;
  background:rgba(15,23,42,.55);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px 16px;
}
.entry-mascot-card .fluxi-lg img{width:74px;height:74px}
.entry-mascot-speech{flex:1;min-width:0}
.speech-tag{
  font-size:10px;
  font-weight:800;
  letter-spacing:1.2px;
  color:#4ade80;
  margin-bottom:4px;
}
.entry-mascot-speech strong{
  display:block;
  font-size:13.5px;
  line-height:1.45;
  color:#f8fafc;
  font-weight:600;
}
.entry-mascot-speech em{
  font-style:normal;
  background:#4357ef;
  color:#fff;
  padding:1px 6px;
  border-radius:5px;
  font-weight:700;
}
.entry-flow-stage{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.entry-step-card{
  display:flex;
  align-items:center;
  gap:12px;
  background:rgba(255,255,255,.95);
  color:#1e293b;
  padding:11px 14px;
  border-radius:14px;
  border-bottom:3px solid #cbd5e1;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  transition:transform .2s ease;
}
.entry-step-card:hover{transform:translateX(4px)}
.entry-step-icon{
  width:36px;
  height:36px;
  border-radius:11px;
  background:#eef2ff;
  display:grid;
  place-items:center;
  font-size:18px;
  flex:none;
}
.entry-step-card div{flex:1;min-width:0}
.entry-step-card small{
  display:block;
  font-size:10px;
  font-weight:800;
  letter-spacing:.9px;
  color:#64748b;
}
.entry-step-card strong{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#0f172a;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.entry-step-badge{
  font-size:11px;
  font-weight:800;
  padding:4px 9px;
  border-radius:999px;
  background:#e0e7ff;
  color:#3730a3;
  white-space:nowrap;
}
.entry-step-badge.badge-mint{background:#dcfce7;color:#15803d}
.entry-step-badge.badge-gold{background:#fef3c7;color:#b45309}
.entry-step-connector{
  height:10px;
  display:flex;
  align-items:center;
  padding-left:31px;
}
.entry-step-connector span{
  width:2px;
  height:100%;
  background:rgba(255,255,255,.35);
}

/* Mini Gráfico na Capa */
.entry-mini-chart{
  background:rgba(15,23,42,.55);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:13px 16px;
}
.entry-chart-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.entry-chart-head small{
  display:block;
  font-size:10px;
  font-weight:800;
  letter-spacing:1px;
  color:#94a3b8;
}
.entry-chart-head strong{
  font-size:14px;
  color:#fff;
}
.entry-streak-pill{
  font-size:11px;
  font-weight:700;
  background:rgba(245,158,11,.2);
  color:#fde047;
  padding:4px 10px;
  border-radius:999px;
}
.entry-chart-bars{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  height:62px;
  align-items:end;
  padding-bottom:18px;
}
.entry-chart-bars span{
  display:block;
  width:100%;
  background:linear-gradient(180deg,#6366f1,#4357ef);
  border-radius:6px 6px 3px 3px;
  position:relative;
  min-height:10px;
  transition:height .3s ease;
}
.entry-chart-bars span.is-peak{
  background:linear-gradient(180deg,#4ade80,#16a34a);
  box-shadow:0 0 12px rgba(74,222,128,.45);
}
.entry-chart-bars span i{
  position:absolute;
  bottom:-17px;
  left:50%;
  transform:translateX(-50%);
  font-style:normal;
  font-size:10px;
  color:#94a3b8;
}
.brand-art-footer{
  display:flex;
  gap:14px;
  justify-content:space-between;
  border-top:1px solid rgba(255,255,255,.15);
  margin-top:18px;
  padding-top:14px;
  color:#cbd5e1;
  font-size:12px;
  font-weight:600;
  flex-wrap:wrap;
}

/* Formulário de Login / Cadastro Tátil */
.entry-form,.client-portal .entry-form{
  max-width:540px;
  width:100%;
  padding:38px clamp(28px,4.5vw,68px);
  margin:0 auto;
  align-self:center;
}
.entry-form .brand,.portal-register .entry-form .brand{font-size:24px;margin-bottom:22px}
.entry-form .brand-mark{width:38px;height:38px}
.entry-form .eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:8px;color:#4357ef}
.entry-form h2{font-size:28px;line-height:1.2;letter-spacing:-.8px;font-weight:800}
.client-portal .entry-form h2{margin-top:0}
.entry-form>p.muted{font-size:14px;line-height:1.55;margin-top:8px}
.entry-form form,.client-portal .entry-form form,.portal-register .entry-form form{margin-top:18px;gap:14px}
.entry-form label,.portal-register .entry-form label{font-size:13px;color:#334155;font-weight:700;margin-bottom:0}
.entry-form input:not([type=checkbox]):not([type=hidden]){
  min-height:46px;
  height:46px;
  padding:10px 14px;
  margin-top:6px;
  font-size:14px;
  border-radius:12px;
  background:#f8fafc;
  border:1.5px solid #dbe2f0;
  transition:border-color .15s,background .15s,box-shadow .15s;
}
.entry-form input:not([type=checkbox]):not([type=hidden]):focus{
  background:#fff;
  border-color:#4357ef;
  box-shadow:0 0 0 4px rgba(67,87,239,.12);
}
.entry-form .primary{
  min-height:48px;
  margin-top:8px;
  padding:12px 18px;
  font-size:14px;
  border-radius:13px;
  justify-content:center;
  gap:10px;
}
.entry-form .google-form{margin-top:18px}
.entry-form .google-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  background:#fff;
  color:#1c2546;
  border:1.5px solid #d5dae6;
  border-bottom:3.5px solid #bcc5d8;
  border-radius:13px;
  min-height:46px;
  padding:10px 16px;
  font-weight:700;
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
  transition:transform .12s,background .15s,border-color .15s;
}
.entry-form .google-button:hover{background:#f6f8ff;border-color:#4357ef;border-bottom-color:#3345c6}
.entry-form .google-button:active{transform:translateY(2px)}
.entry-divider{display:flex;align-items:center;gap:12px;margin:15px 0;color:#65718b;font-size:12px;font-weight:600}
.entry-divider:before,.entry-divider:after{content:'';height:1px;background:#dee3f1;flex:1}
.signup-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.client-entry-note a{color:#4357ef;font-weight:700}
.client-check{line-height:1.5;flex-wrap:wrap}
.entry-form .client-check{display:block}
.entry-form .client-check input{display:inline-block;min-height:0;height:16px;width:16px;padding:0;vertical-align:middle;margin:0 6px 0 0}
.entry-form .text-button{display:inline-block;padding:8px 0 0;font-size:13px}
.entry-form .client-entry-note,.portal-register .entry-form .client-entry-note{font-size:13px;line-height:1.55;margin-top:14px}
.entry-form footer{padding-top:18px;font-size:12px;line-height:1.55;color:#79839c}
.entry-form small{font-size:12px;line-height:1.5;color:#68758f}
.portal-register .entry-form form:not(.google-form){grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.portal-register .entry-form form>small,.portal-register .entry-form .client-check,.portal-register .entry-form form>.primary{grid-column:1/-1}
.entry-form .notice,.entry-form .error{margin-top:12px;font-size:13px;border-radius:12px}

/* Demais elementos compartilhados */
.legal{max-width:900px}.legal>.brand{margin-bottom:32px}.legal a:not(.brand){color:#4357cc}
.dashboard-intro{gap:22px}.dashboard-flow-art{width:230px;height:auto;flex:none;margin-left:auto}
.metrics article,.metrics .metric-link,.client-panel,.rule-card,.connect-card{border-color:var(--line);box-shadow:0 4px 16px rgba(28,37,70,.04)}
.metric-icon{color:#6575e6}.metrics p{color:#65718b}.metrics small{color:#77829b}
.notice{background:#eef0ff;border-color:#dce0fb}.notice p{color:#5a6782}
.empty{background:#fafbff;border-color:var(--line)}.empty-illustration{display:block;width:min(420px,100%);height:auto;margin:0 auto 14px}
.connect-guide{background:#eef0ff}.connect-guide li>span{color:#4357ef}.connect-guide li p,.connect-safety{color:#65718b}
.connect-flow-art{display:block;width:100%;height:auto;margin:-6px 0 20px}
.connect-progress li.current{color:#4357ef}.connect-progress li.current>span{background:#4357ef}
.graph-canvas{background-color:#f4f6fd;background-image:radial-gradient(#cbd5e1 1.2px,transparent 1.2px)}
.graph-node.selected{outline-color:#4357ef}.graph-add-floating{background:#4357ef!important;color:white!important;box-shadow:0 6px 20px #4357ef25}
label{color:#3c4766}.graph-toolbar input,.graph-node,.flow-node,.template-grid button,#graph-add-menu button,.personal-model>button:first-child{color:var(--ink)}
.graph-node .graph-card-title{color:#1e293b;font-weight:700}.graph-node .graph-card-text{color:#47516a;background:#f5f6fc}
.graph-node.type-trigger header{background:#dcfce7}.graph-node.type-condition header{background:#ccfbf1}.graph-node.type-public header{background:#fef3c7}.graph-node.type-delay header{background:#ede9fe}
.graph-port{border-color:#4357ef}.graph-port.connected{background:#4357ef}.graph-output .graph-target{color:#4357ef;font-weight:600}
.rule-symbol{background:#eef0ff;color:#4357ef}

@media(max-width:960px){
  .entry{grid-template-columns:1fr}
  .entry-art{padding:32px 24px}
  .entry-form,.client-portal .entry-form{max-width:520px;padding:32px 24px}
}
@media(max-width:740px){
  .entry{display:block}
  .entry-art{display:block;padding:28px 20px}
  .entry-art h1{font-size:28px}
  .entry-flow-stage,.entry-mini-chart{display:none}
  .entry-form,.client-portal .entry-form{max-width:500px;padding:28px 20px;min-height:auto}
  .portal-register .entry-form form:not(.google-form){grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .primary,.secondary,.fluxi-mascot,.entry-pulse{animation:none;transition:none}
}
