/* KesiAGV — programa de indicações
   Base visual: landing KesiAGV (Apple-like) + energia de renda extra */

:root {
  --blue: #0029bc;
  --blue-600: #0136d6;
  --blue-deep: #001b5e;
  --blue-ink: #041033;
  --orange: #ffa811;
  --ocre: #b8790c;
  --ocre-light: #ffb01f;
  --kesi-light: #7aa2ff;
  --green: #25d366;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; margin: 0; font-weight: 700; }

.wrap { width: min(1120px, 100% - 44px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 44px); }
.muted { color: #86868b; }
.muted-body { color: var(--ink-2); font-size: 18px; max-width: 48ch; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(8, 14, 38, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s var(--ease);
}
.nav-inner {
  width: min(1120px, 100% - 44px); margin-inline: auto;
  height: 52px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(145deg, #2b57ff, var(--blue));
  display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 14px rgba(0, 41, 188, 0.45);
}
.logo-text { font-size: 17px; letter-spacing: -0.02em; display: inline-flex; gap: 1px; }
.logo-text .l-kesi { color: var(--kesi-light); }
.logo-text .l-agv { color: var(--ocre-light); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, 0.82); font-size: 13.5px; letter-spacing: 0; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.btn-ghost { color: #fff; font-size: 13.5px; opacity: 0.85; }
.btn-ghost:hover { opacity: 1; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #241500;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  padding: 15px 30px; border-radius: 980px; border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  box-shadow: 0 10px 30px rgba(255, 168, 17, 0.28);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(255, 168, 17, 0.36); background: #ffb62f; }
.btn:active { transform: scale(0.985); }
.btn-small { font-size: 13.5px; padding: 9px 18px; box-shadow: none; }
.btn-full { width: 100%; margin-top: 6px; }
.btn.wa { background: var(--green); color: #04240f; box-shadow: none; }
.btn.wa:hover { background: #1ebe5d; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(0, 41, 188, 0.28); }
.btn.primary:hover { background: var(--blue-600); }
.btn-link { color: #fff; font-size: 17px; opacity: 0.9; }
.btn-link:hover { opacity: 1; }
.btn-link span { color: var(--orange); }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 45% -10%, #0a2ea8 0%, #001b5e 45%, #000d2e 100%);
  color: #fff;
  padding: 148px 0 0;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.glow-a { width: 640px; height: 640px; background: rgba(0, 74, 255, 0.5); top: -260px; left: 42%; transform: translateX(-60%); }
.glow-b { width: 460px; height: 460px; background: rgba(255, 168, 17, 0.2); top: 60px; right: -150px; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: 58px;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: #8fb0ff;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 26px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.eyebrow.dark { color: var(--blue); background: rgba(0, 41, 188, 0.07); border-color: rgba(0, 41, 188, 0.12); }
.eyebrow.dark::before { background: var(--orange); box-shadow: none; }

.hero h1 {
  font-size: clamp(42px, 6.4vw, 82px);
  font-weight: 700; letter-spacing: -0.05em; line-height: 1.01;
  max-width: 12ch;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #fff 30%, #b9c8ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #ffd27a 0%, var(--orange) 55%, #fff3d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  font-size: clamp(16px, 1.9vw, 20px); color: #bfcdf0; max-width: 540px;
  margin: 0 0 32px; line-height: 1.52; letter-spacing: -0.012em;
}
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-stats {
  list-style: none; display: flex; gap: clamp(18px, 4vw, 44px);
  margin: 44px 0 10px; padding: 0; flex-wrap: wrap;
}
.hero-stats li { min-width: 100px; }
.hero-stats strong { display: block; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.04em; line-height: 1; color: #fff; }
.hero-stats span { display: block; font-size: 12.5px; color: #93a6d4; margin-top: 7px; letter-spacing: 0; }
.hero-note { font-size: 12.5px; color: #8fa2cf; margin: 18px 0 0; letter-spacing: 0; }
.hero-note::before { content: "✓"; color: var(--green); margin-right: 7px; }

/* simulador */
.sim-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: 28px;
  padding: 26px 24px 24px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.sim-head { margin-bottom: 18px; }
.sim-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8a5a00; background: #fff3d8; border-radius: 99px; padding: 4px 10px; margin-bottom: 10px;
}
.sim-head h2 { font-size: 21px; letter-spacing: -0.03em; }
.sim-head p { margin: 5px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.sim-body { display: grid; gap: 8px; }
.sim-row {
  display: flex; align-items: center; gap: 11px;
  background: #f6f7fb; border: 1px solid #ebedf3; border-radius: 14px; padding: 10px 11px;
}
.sim-icon { font-size: 21px; flex: 0 0 auto; }
.sim-label { flex: 1; min-width: 0; }
.sim-label b { display: block; font-size: 14px; font-weight: 650; }
.sim-label small { font-size: 11.5px; color: var(--ink-2); }
.sim-label em { font-style: normal; font-weight: 700; color: var(--blue); }
.stepper { display: flex; align-items: center; gap: 2px; background: #fff; border: 1px solid #e2e4ec; border-radius: 10px; padding: 2px; }
.stepper button {
  width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1;
}
.stepper button:hover { background: #f0f2f8; color: var(--ink); }
.stepper input {
  width: 38px; border: 0; outline: none; text-align: center; font: inherit; font-size: 14px; font-weight: 650;
  background: transparent; -moz-appearance: textfield; appearance: textfield; color: var(--ink);
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-total {
  margin: 16px 0 14px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(145deg, #0029bc, #0a3bd6 70%, #1746de); color: #fff;
  text-align: center;
}
.sim-total span { display: block; font-size: 11.5px; color: #b9c9ff; letter-spacing: 0.02em; }
.sim-total b { display: block; font-size: 36px; letter-spacing: -0.045em; line-height: 1.1; margin: 3px 0 2px; font-variant-numeric: tabular-nums; }
.sim-total small { font-size: 11px; color: #a8bbea; }

.hero-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); }
.strip-inner {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  padding: 18px 0; font-size: 12.5px; color: #9fb2dd; letter-spacing: 0.02em;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 8px; }
.strip-inner span::before { content: "✓"; color: var(--green); font-size: 11px; }

/* ---------------- sections ---------------- */
.section { padding: clamp(68px, 8vw, 116px) 0; }
.tint { background: var(--bg-alt); }
.h2 { font-size: clamp(32px, 4.6vw, 56px); margin: 14px 0 40px; font-weight: 700; }

/* comissões */
.com-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.com-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px; text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.com-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08); }
.com-card.featured { background: linear-gradient(160deg, #fffaf0, #fff); border-color: rgba(255, 168, 17, 0.4); box-shadow: 0 18px 44px rgba(255, 168, 17, 0.12); }
.com-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #241500; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; border-radius: 99px; padding: 4px 11px; white-space: nowrap;
}
.com-emoji { font-size: 34px; margin-bottom: 14px; }
.com-card h3 { font-size: 18px; margin-bottom: 12px; letter-spacing: -0.02em; }
.com-value { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.com-card.featured .com-value { color: var(--ocre); }
.com-card p { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.com-note { margin: 26px auto 0; text-align: center; font-size: 13px; color: var(--ink-2); max-width: 56ch; }

/* passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step-n { font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: 0.08em; }
.steps h3 { font-size: 18px; margin: 12px 0 8px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* signup */
.signup-grid { display: grid; grid-template-columns: 1fr 460px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.benefits { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; }
.b-ic {
  width: 42px; height: 42px; border-radius: 13px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 19px; flex: 0 0 auto;
}
.benefits b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.benefits small { font-size: 13px; color: var(--ink-2); line-height: 1.4; display: block; margin-top: 2px; }
.quote-mini {
  margin-top: 34px; border-left: 3px solid var(--orange); padding: 4px 0 4px 18px;
}
.quote-mini p { margin: 0 0 8px; font-size: 15px; color: #3a3a3d; font-style: italic; line-height: 1.5; }
.quote-mini span { font-size: 12px; color: var(--ink-2); font-weight: 550; }

.form-card {
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 26px;
  padding: 28px 26px 26px;
  box-shadow: 0 24px 70px rgba(9, 30, 90, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03);
  position: sticky; top: 76px;
}
.form-head h3 { font-size: 24px; letter-spacing: -0.03em; }
.form-head p { margin: 5px 0 22px; font-size: 13.5px; color: var(--ink-2); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; letter-spacing: 0; }
.field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d8dbe4; border-radius: 12px;
  padding: 13px 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 41, 188, 0.1); }
.field input::placeholder { color: #a8adb9; }
.field.invalid input { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.1); }
.err { display: none; font-size: 12px; color: #d93036; font-style: normal; margin-top: 5px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 14px; line-height: 1.45; cursor: pointer; }
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--blue); flex: 0 0 auto; }
.micro { font-size: 12.5px; color: #8e8e93; text-align: center; margin: 14px 0 0; }
.micro a { color: var(--blue); font-weight: 550; }
.hidden { display: none !important; }

.success-card { text-align: center; }
.success-ic {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: rgba(37, 211, 102, 0.15); color: #0f8f43; font-size: 26px;
}
.success-card h3 { font-size: 25px; letter-spacing: -0.03em; }
.success-sub { margin: 7px 0 20px; font-size: 14px; color: var(--ink-2); }
.link-box { display: flex; gap: 8px; margin-bottom: 16px; }
.link-box input {
  flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 12px 13px;
  border: 1px dashed #b9c2da; border-radius: 12px; background: #f7f9ff; color: var(--blue); font-weight: 550;
}
.success-actions { display: grid; gap: 9px; }
.success-actions .btn { width: 100%; }
.success-tips { margin-top: 18px; padding: 14px 16px; background: #fffaf0; border: 1px solid #ffe6b3; border-radius: 14px; text-align: left; }
.success-tips b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.success-tips span { font-size: 12.5px; color: #6e5a2d; line-height: 1.45; }

/* faq */
.faq { border-bottom: 1px solid var(--line); padding: 20px 0; cursor: pointer; }
.faq summary { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }

/* cta final */
.cta-final {
  padding: clamp(68px, 8vw, 108px) 0; text-align: center; color: #fff;
  background: radial-gradient(90% 120% at 50% 0%, #0a2ea8 0%, #001b5e 55%, #000d2e 100%);
}
.cta-final h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.045em; line-height: 1.08; }
.cta-final h2 span { color: var(--orange); }
.cta-final .btn { margin-top: 26px; }
.cta-final p { margin: 14px 0 0; font-size: 12.5px; color: #93a6d4; }

/* footer */
.footer { background: #070d1f; color: #fff; padding: 56px 0 34px; }
.footer-inner { display: grid; gap: 26px; grid-template-columns: 1fr auto; align-items: start; }
.footer-logo { font-size: 19px; font-weight: 600; display: inline-flex; gap: 1px; }
.footer-logo .l-kesi { color: var(--kesi-light); }
.footer-logo .l-agv { color: var(--ocre-light); }
.footer-note { color: #7d8bb0; font-size: 12.5px; margin: 10px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #b9c4de; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; color: #63708f; font-size: 11.5px; margin: 22px 0 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: none; }
  .sim-card { max-width: 480px; }
  .signup-grid { grid-template-columns: 1fr; }
  .form-card { position: static; max-width: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .com-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow, .nav-inner { width: calc(100% - 36px); }
  .hero { padding-top: 108px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-cta { gap: 14px; }
  .hero-cta .btn { padding: 14px 24px; font-size: 16px; }
  .hero-stats { gap: 16px; margin-top: 34px; }
  .hero-stats li { min-width: 0; }
  .hero-stats strong { font-size: 23px; }
  .hero-stats span { font-size: 11px; }
  .sim-card { padding: 22px 18px 20px; border-radius: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 22px 20px; }
  .section { padding: 62px 0; }
  .form-card { padding: 24px 20px; border-radius: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
  .strip-inner { gap: 12px 20px; justify-content: flex-start; padding: 16px 0; }
  .strip-inner span { font-size: 11.5px; }
  .h2 { margin-bottom: 30px; }

  /* campos: 16px evita o zoom automático do iOS e evita corte de texto */
  .field input, .stepper input, .link-box input { font-size: 16px; }
  .field input, .link-box input { max-width: 100%; min-width: 0; }
  .field, .check, .sim-row, .form-card, .success-card, .link-box { min-width: 0; }
  .stepper input { width: 42px; }
  .stepper button { width: 34px; height: 34px; font-size: 18px; }
  .stepper { padding: 3px; }
  .link-box { flex-wrap: wrap; }
  .link-box input { flex: 1 1 100%; width: 100%; overflow-wrap: anywhere; }
  .link-box .btn { flex: 1 1 auto; }
  .sim-row { gap: 8px; }
  .sim-label { min-width: 0; }
  .sim-label small { display: block; white-space: normal; }
  .sim-total b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* nav sólida */
.nav.solid { background: rgba(255, 255, 255, 0.9); border-bottom-color: rgba(0, 0, 0, 0.07); }
.nav.solid .logo-text, .nav.solid .btn-ghost, .nav.solid .nav-links a { color: #1d1d1f; }
.nav.solid .logo-text .l-kesi { color: var(--blue); }
.nav.solid .logo-text .l-agv { color: var(--ocre); }
.nav.solid .nav-links a { color: #4a4a4f; }
.nav.solid .nav-links a:hover { color: #000; }

/* toast local */
.toast-local {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
  background: #1d1d1f; color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: all 0.28s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  max-width: calc(100% - 32px); text-align: center;
}
.toast-local.show { opacity: 1; transform: translate(-50%, 0); }
