/* Aposta Justa - design system */
:root {
  --ink: #10243a;
  --ink-soft: #3d5165;
  --muted: #64748b;
  --brand: #0b8a5c;
  --brand-dark: #086b47;
  --brand-tint: #e7f5ef;
  --gold: #e8a317;
  --gold-tint: #fdf3dd;
  --bg: #f7f9f8;
  --card: #ffffff;
  --line: #e3e9e6;
  --danger: #b4232a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 36, 58, 0.05), 0 8px 28px rgba(16, 36, 58, 0.09);
  --shadow-soft: 0 1px 3px rgba(16, 36, 58, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 249, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { height: 34px; width: auto; display: block; }
.beta-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold); border: 1px solid var(--gold);
  border-radius: 99px; padding: 1px 8px; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .nav .hide-m { display: none; }
  .site-header .wrap { gap: 8px; }
  .logo-link img { height: 28px; }
  .beta-tag { display: none; } /* free up room so the CTA can't overlap the badge */
  .nav { gap: 10px; }
  .nav .btn-small { padding: 8px 14px; font-size: 0.82rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  border-radius: 99px; padding: 13px 26px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 138, 92, 0.32); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-small { font-size: 0.88rem; padding: 9px 18px; }
.btn[disabled] { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 44px 0 36px; } }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.16rem; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-micro { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.hero-micro span { white-space: nowrap; }

/* ---------- inline icon system ---------- */
.ic {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: middle; flex-shrink: 0;
}
.ic-s { width: 15px; height: 15px; stroke-width: 2.4; color: var(--brand); margin-right: 2px; }
.card-problem .cp-ico { color: var(--brand); line-height: 1; }
.chat-send .ic, .chat-mic .ic { width: 21px; height: 21px; }

/* hero visual: photo + floating chat preview */
.hero-visual { position: relative; max-width: 420px; margin-left: auto; }
.hero-photo {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow); object-fit: cover;
}
.chat-preview {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; max-width: 330px;
  position: absolute; bottom: -26px; left: -46px;
}
@media (max-width: 1120px) { .chat-preview { left: -12px; } }
@media (max-width: 860px) {
  .hero-visual { margin: 8px auto 40px; }
  .chat-preview { position: absolute; bottom: -30px; left: 12px; right: 12px; max-width: none; }
}
.chat-preview .cp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cp-dot { width: 10px; height: 10px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 4px var(--brand-tint); }
.cp-head strong { font-size: 0.95rem; }
.cp-head small { color: var(--muted); display: block; font-size: 0.78rem; }
.bubble { border-radius: 14px; padding: 10px 14px; font-size: 0.92rem; margin: 8px 0; max-width: 88%; }
.bubble.ai { background: #f0f4f2; border-bottom-left-radius: 4px; }
.bubble.user { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }

/* ---------- trust strip ---------- */
.trust-strip {
  background: var(--ink); color: #d8e2ec; padding: 18px 0; font-size: 0.95rem;
}
.trust-strip .wrap { display: flex; gap: 12px; align-items: baseline; justify-content: center; flex-wrap: wrap; text-align: center; }
.trust-strip strong { color: #fff; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.2; }
.section-lead { color: var(--ink-soft); max-width: 40em; margin: 0 0 36px; }

/* problem cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }
.card-problem {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; cursor: pointer; text-align: left; font-family: var(--font);
  box-shadow: var(--shadow-soft); transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 8px;
}
.card-problem:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-problem .cp-ico { font-size: 1.4rem; line-height: 1; }
.card-problem strong { font-size: 0.98rem; line-height: 1.35; }
.card-problem span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.cards-cta { margin-top: 26px; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-dark); font-weight: 700;
  margin-bottom: 14px;
}
.step strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.steps-note {
  margin-top: 26px; background: var(--gold-tint); border: 1px solid #f3ddb0;
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.93rem; color: #6b4d0c;
}

/* mechanism list */
.mech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .mech { grid-template-columns: 1fr; } }
.mech-item { border-left: 3px solid var(--brand); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 18px; box-shadow: var(--shadow-soft); }
.mech-item strong { display: block; font-size: 0.97rem; margin-bottom: 4px; }
.mech-item p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.mech-disclaimer { margin-top: 18px; font-size: 0.84rem; color: var(--muted); max-width: 46em; }

/* evidence checklist */
.provas-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.provas-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .provas-grid { grid-template-columns: 1fr; gap: 26px; } }
.evidence { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.evidence li {
  background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; font-size: 0.9rem;
  border-radius: 99px; padding: 8px 16px;
}
.evidence-note { color: var(--ink-soft); font-size: 0.95rem; }

/* transparency two-col */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .twocol { grid-template-columns: 1fr; } }
.tbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tbox h3 { margin: 0 0 14px; font-size: 1.05rem; }
.tbox ul { margin: 0; padding: 0; list-style: none; }
.tbox li { padding: 7px 0 7px 30px; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.tbox.is li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }
.tbox.isnt li::before { content: "✕"; position: absolute; left: 4px; color: var(--danger); font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 20px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; }

/* lawyer teaser + CTA band */
.band {
  background: linear-gradient(135deg, var(--ink) 0%, #1b3a57 100%);
  color: #fff; border-radius: var(--radius); padding: 44px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { color: #c3d2df; margin: 0; max-width: 34em; }
.band .btn-primary { box-shadow: none; }

/* ---------- footer ---------- */
footer { padding: 44px 0 56px; color: var(--muted); font-size: 0.86rem; }
footer .foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.7; }

/* ---------- chat modal ---------- */
.chat-overlay {
  position: fixed; inset: 0; background: rgba(16, 36, 58, 0.5); z-index: 100;
  display: none; align-items: flex-end; justify-content: center;
}
.chat-overlay.open { display: flex; }
@media (min-width: 720px) { .chat-overlay.open { align-items: center; } }
.chat-panel {
  background: #fff; width: 100%; max-width: 560px; height: 92dvh; max-height: 780px;
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -6px 50px rgba(0, 0, 0, 0.25);
}
@media (min-width: 720px) { .chat-panel { border-radius: 18px; height: 86vh; } }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.chat-head img { height: 26px; }
.chat-head .ch-title { flex: 1; }
.chat-head strong { font-size: 0.95rem; display: block; }
.chat-head small { color: var(--muted); font-size: 0.76rem; }
.chat-close {
  background: none; border: none; font-size: 1.5rem; color: var(--muted);
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.chat-progress { height: 5px; background: #e0e7e3; }
.chat-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #14b174); width: 4%; transition: width 0.4s ease; box-shadow: 0 0 6px rgba(11, 138, 92, 0.4); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg); }
.chat-body .bubble { font-size: 0.95rem; }
.bubble.typing span {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #9fb0a9; margin-right: 3px; animation: blink 1.2s infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.chip {
  background: #fff; border: 1.5px solid var(--brand); color: var(--brand-dark);
  font-family: var(--font); font-size: 0.87rem; font-weight: 600;
  border-radius: 99px; padding: 8px 15px; cursor: pointer;
}
.chip:hover { background: var(--brand-tint); }
.chat-input-row {
  display: flex; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
}
.chat-input-row textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 1rem; padding: 11px 14px; max-height: 110px;
  outline: none;
}
.chat-input-row textarea:focus { border-color: var(--brand); }
.chat-send {
  background: var(--brand); color: #fff; border: none; border-radius: 12px;
  width: 48px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-send:disabled { opacity: 0.5; cursor: default; }
.chat-mic {
  background: #fff; color: var(--ink-soft); border: 1.5px solid var(--line);
  border-radius: 12px; width: 48px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chat-mic:hover { color: var(--brand-dark); border-color: var(--brand); }
.chat-mic[hidden] { display: none; }
.chat-mic.listening {
  background: var(--brand); color: #fff; border-color: var(--brand);
  animation: mic-pulse 1.4s ease-out infinite;
}
@keyframes mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 138, 92, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(11, 138, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 138, 92, 0); }
}
.chat-note { text-align: center; font-size: 0.72rem; color: var(--muted); padding: 0 14px 10px; background: #fff; }

/* chat: summary + contact form */
.sum-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 10px 0; font-size: 0.92rem; }
.sum-card h4 { margin: 0 0 10px; font-size: 0.98rem; }
.sum-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.sum-card dt { color: var(--muted); font-size: 0.82rem; }
.sum-card dd { margin: 0; }
.form-grid { display: grid; gap: 12px; margin: 10px 0; }
.form-grid label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 4px; }
.form-grid input, .form-grid select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 1rem; padding: 11px 13px; outline: none; background: #fff;
}
.form-grid input:focus, .form-grid select:focus { border-color: var(--brand); }
.form-row2 { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.83rem; color: var(--ink-soft); margin: 12px 0; }
.consent input { margin-top: 3px; width: auto; }
.form-error { color: var(--danger); font-size: 0.86rem; margin: 6px 0; min-height: 1.2em; }

/* done screen */
.done-box { text-align: center; padding: 28px 10px; }
.done-box .big { font-size: 2.6rem; }
.done-box .done-ic { color: var(--brand); }
.done-box .done-ic .ic { width: 58px; height: 58px; stroke-width: 1.6; }
.done-box code {
  background: var(--brand-tint); color: var(--brand-dark); font-weight: 700;
  padding: 4px 12px; border-radius: 8px; font-size: 1.05rem;
}
.done-box .status-link { display: block; margin: 16px 0; word-break: break-all; font-size: 0.9rem; }

/* ---------- generic page (termos, privacidade, caso, advogados) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
.page .updated { color: var(--muted); font-size: 0.85rem; }
.notice {
  background: var(--gold-tint); border: 1px solid #f3ddb0; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 0.92rem; color: #6b4d0c; margin: 18px 0;
}
.case-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 16px 0; box-shadow: var(--shadow-soft); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 99px; padding: 3px 12px; letter-spacing: 0.03em; }
.badge.recebido { background: #e8eef4; color: #33526e; }
.badge.com_interesse { background: var(--brand-tint); color: var(--brand-dark); }
.lawyer-int { border-top: 1px solid var(--line); padding: 14px 0 4px; margin-top: 14px; }
.lawyer-int strong { display: block; }
.lawyer-int small { color: var(--muted); }
