:root {
  --ink: #131c26;
  --ink-soft: #46586c;
  --ink-mute: #6b7c90;
  --navy: #0e2237;
  --navy-deep: #081826;
  --teal: #0f766e;
  --teal-deep: #0b5d57;
  --gold: #e8b64c;
  --gold-soft: #f3d189;
  --paper: #f5f8fa;
  --card: #ffffff;
  --line: #dde6ed;
  --danger: #b3372f;
  --ok: #1e7f4f;
  --wa: #1faa53;
  --wa-deep: #157a3d;
}

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2 { margin: 0; letter-spacing: -0.035em; font-weight: 450; }
/* Textos vindos do painel podem não ter espaços: quebram em vez de vazar/recortar. */
h1, h2, p, li, .btn, .logo-text, .eyebrow, .strip-item, .visual-card, .footer-note { overflow-wrap: anywhere; }
.btn { max-width: 100%; }
.logo, .logo-text, .topbar-inner > *, .footer-inner > *, .cta-inner > * { min-width: 0; }
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 10px; }
.preview-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
.preview-switch { color: var(--teal-deep); font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.draft-banner { padding: 11px 24px; color: #422c0b; background: #f9eac4; text-align: center; font-size: .9rem; font-weight: 700; }
.draft-note { margin: 14px 0 0; color: #8a5a00; font-size: .82rem; font-weight: 700; }
.hero .draft-note, .cta-final .draft-note { color: var(--gold-soft); }
.minimal-variant .hero-inner { display: block; }
.minimal-variant .hero-copy { max-width: 880px; }
.wa-unavailable { opacity: .5; cursor: not-allowed; box-shadow: none; pointer-events: none; }
@media (max-width: 640px) { .topbar-inner { align-items: flex-start; } .preview-nav { flex-direction: column; align-items: flex-end; } .preview-switch { text-align: right; max-width: 160px; } }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #0e2237; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); font-size: .95rem; font-weight: 900; letter-spacing: -.02em; box-shadow: 0 6px 18px rgba(232,182,76,.35); }
.logo-text { font-size: 1.22rem; color: var(--navy); letter-spacing: -.02em; }
.logo-text strong { font-weight: 800; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 13px; border: 0; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-outline { color: var(--navy); background: transparent; border: 1.5px solid #c6d3dd; padding: 10px 18px; font-size: .92rem; }
.btn-outline:hover { border-color: var(--navy); background: #eef4f8; }
.btn-primary { color: #0d1b12; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); box-shadow: 0 10px 26px rgba(232,182,76,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232,182,76,.5); }
.btn-secondary { color: #fff; background: linear-gradient(135deg, var(--wa), var(--wa-deep)); box-shadow: 0 10px 26px rgba(31,170,83,.35); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,170,83,.45); }
.btn-lg { font-size: 1.02rem; padding: 17px 26px; border-radius: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #f2f7fa; background: radial-gradient(1100px 500px at 85% -10%, rgba(255,127,10,.18), transparent 60%), linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #123649 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 48px; align-items: center; padding: 88px 0 96px; }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .2em; }
.hero-copy h1 { max-width: 640px; margin: 22px 0 18px; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.02; }
.hero-copy h1 strong { color: var(--gold); font-weight: 750; }
.hero-copy p { max-width: 560px; margin: 0; color: #c8d8e2; font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions .wa-btn { max-width: 100%; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; color: #b9cdda; font-size: .92rem; }
.hero-highlights span { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 8px; border-radius: 50%; color: #0e2237; background: var(--gold); font-weight: 900; font-size: .75rem; }

/* hero visual cards */
.hero-visual { position: relative; min-height: 380px; }
.visual-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 16px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.07); backdrop-filter: blur(6px); font-weight: 700; font-size: 1.02rem; box-shadow: 0 18px 40px rgba(2,12,20,.35); animation: float 7s ease-in-out infinite; }
.visual-card-1 { top: 4%; left: 6%; animation-delay: 0s; }
.visual-card-2 { top: 26%; right: 2%; animation-delay: 1.2s; }
.visual-card-3 { top: 48%; left: 16%; animation-delay: 2.1s; }
.visual-card-4 { bottom: 14%; right: 12%; animation-delay: 3s; }
.visual-card-5 { bottom: -2%; left: 2%; animation-delay: 4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .visual-card { animation: none; } }

/* ---------- strip ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 26px 0; }
.strip-item strong { display: block; color: var(--navy); font-size: 1.02rem; }
.strip-item span { color: var(--ink-mute); font-size: .9rem; }

/* ---------- about ---------- */
.about { background: var(--paper); }
.about-inner { max-width: 780px; padding: 72px 0; }
.about-inner h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.about-inner p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.75; font-size: 1.03rem; }

/* ---------- cta final ---------- */
.cta-final { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #eefaf6; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 54px 0; }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: #9fb4c4; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 30px 0; font-size: .88rem; }
.footer .logo-text { color: #e8f0f5; }
.footer-note { }

/* ---------- auth ---------- */
.auth-page { background: var(--paper); }
.auth-shell { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(380px,.9fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vw, 110px); color: #f2f7fa; background: radial-gradient(900px 420px at 85% 0%, rgba(255,127,10,.18), transparent 60%), linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, #123649); }
.auth-brand .logo { margin-bottom: 60px; }
.auth-brand h1 { max-width: 520px; margin: 20px 0 16px; font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.04; }
.auth-brand h1 strong { color: var(--gold); font-weight: 750; }
.auth-brand p { max-width: 460px; margin: 0; color: #c8d8e2; line-height: 1.65; }
.trust { margin-top: 44px; color: #b9cdda; font-size: .9rem; }
.trust span { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 9px; border-radius: 50%; color: #0e2237; background: var(--gold); font-weight: 900; font-size: .72rem; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 96px); background: var(--card); }
.mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 16px; color: #0e2237; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); font-size: 1.05rem; font-weight: 900; box-shadow: 0 12px 32px rgba(232,182,76,.35); }
.auth-card h2 { color: var(--navy); font-size: 2rem; }
.subtitle { margin: 8px 0 28px; color: var(--ink-mute); }
#login-form { max-width: 440px; }
label { display: block; margin: 18px 0 8px; color: #31465a; font-size: .82rem; font-weight: 750; }
input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fbfdfe; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 82px; }
.password-field button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; color: var(--teal); background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; }
.submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 55px; margin-top: 26px; padding: 0 21px; border: 0; border-radius: 13px; color: #0d1b12; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .2s; box-shadow: 0 10px 26px rgba(232,182,76,.35); }
.submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(232,182,76,.45); }
.submit:disabled { opacity: .65; cursor: wait; transform: none; }
.submit span { font-size: 1.3rem; }
.status { min-height: 24px; margin: 15px 0 0; color: var(--danger); font-size: .88rem; line-height: 1.4; }
.status.success { color: var(--ok); }
.status a { font-weight: 700; }
.back-link { display: inline-block; margin-top: 30px; color: var(--ink-mute); font-size: .88rem; text-decoration: none; }
.back-link:hover { color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 70px; }
  .hero-visual { display: none; }
  .strip-inner { grid-template-columns: 1fr; gap: 12px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 38vh; padding: 40px 28px; }
  .auth-brand .logo { margin-bottom: 34px; }
  .auth-card { padding: 44px 28px 60px; }
  #login-form { max-width: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Identidade e acabamento aprovados: marca real, azul/abobora e grade compacta. */
.brand-logo { display: block; height: 76px; width: auto; max-width: 120px; object-fit: contain; padding: 4px; background: #fff; border-radius: 14px; }
.btn, .btn-lg, .submit { border-radius: 22px; }
.btn-primary, .submit { color: var(--navy-deep); box-shadow: 0 10px 26px rgba(255,127,10,.2); }
.btn-secondary { box-shadow: 0 10px 26px rgba(184,77,5,.2); }
.btn-secondary:hover { box-shadow: 0 14px 30px rgba(184,77,5,.3); }
.hero { background: radial-gradient(1100px 500px at 85% -10%, rgba(255,127,10,.18), transparent 60%), linear-gradient(150deg, var(--navy-deep), var(--navy) 65%, #12385a); }
.auth-brand { background: linear-gradient(150deg, var(--navy-deep), var(--navy)); }
.visual-card { border-radius: 24px; }
.insurers { background: #fff; border-top: 1px solid var(--line); }
.insurers-inner { padding-block: 42px; }
.insurers h2 { max-width: 820px; margin: 0 auto 26px; color: var(--navy); text-align: center; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.insurer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.insurer-card { display: flex; align-items: center; justify-content: center; min-width: 0; height: 94px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.insurer-card img { display: block; width: 100%; height: 58px; object-fit: contain; }
@media (max-width: 900px) {
  .insurer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-inner { gap: 28px; padding-block: 46px; }
  .hero-visual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; gap: 10px; }
  .hero-visual .visual-card { position: static; justify-content: center; min-width: 0; padding: 13px 8px; animation: none; font-size: .86rem; text-align: center; }
}
@media (max-width: 540px) {
  .brand-logo { height: 66px; }
  .insurer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .insurer-card { height: 78px; padding: 12px; border-radius: 16px; }
  .insurer-card img { height: 48px; }
  .insurers-inner { padding-block: 32px; }
}
