/* Página de vendas e assinatura: mesmo sistema visual do painel, em escala de página */
:root {
  --ink: #1a2029; --ink-2: #454e5b; --muted: #626b78;
  --line: #e4e7ec; --line-soft: #eff1f4; --line-strong: #d3d8e0;
  --bg: #fff; --bg-2: #f6f7f9; --bg-3: #f4f5f7;
  --blue: #1f64d8; --blue-dark: #1a55b8; --blue-soft: #edf3fd; --out: #e7effc;
  --ok: #0f7a56; --ok-soft: #e6f4ee; --warn: #8a5a00; --note: #fdf7e3; --danger: #c0392b;
  --r: 6px; --r-lg: 8px;
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: var(--r); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--bg-3); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* Topo */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.top nav { display: flex; gap: 22px; margin-right: auto; font-size: 14.5px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top .btn { padding: 7px 14px; font-size: 14px; }
.top-actions { display: flex; gap: 8px; }

/* Abertura */
.hero { padding: 72px 0 0; background: linear-gradient(var(--bg) 62%, var(--bg-2) 62%); }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); max-width: 20ch; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--blue); display: block; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 620px; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 52px; }
.hero-cta small { color: var(--muted); font-size: 14px; margin-left: 6px; }
.hero .btn { padding: 13px 22px; font-size: 16px; }

/* Tela do produto */
.shot { border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 24px 60px rgba(26, 32, 41, .12); font-size: 13.5px; line-height: 1.45; }
.shot-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; min-height: 480px; }
.shot-col { min-width: 0; border-right: 1px solid var(--line); }
.shot-col:last-child { border-right: 0; }
.shot-head { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.shot-head small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.shot-head .tag { margin-left: auto; }
.conv { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.conv.on { background: var(--blue-soft); box-shadow: inset 2px 0 0 var(--blue); }
.conv b { font-weight: 600; display: block; }
.conv div span { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv div { min-width: 0; }
.ava { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #e8ebef; color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tag i { width: 8px; height: 8px; border-radius: 2px; }
.tag.ok { color: var(--ok); }
.thread { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.msg { max-width: 82%; padding: 7px 10px; border-radius: 8px; background: var(--bg-3); align-self: flex-start; }
.msg.out { align-self: flex-end; background: var(--out); }
.msg small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 1px; }
.act { align-self: center; font-size: 12px; color: var(--ok); font-weight: 500; margin: 5px 0; text-align: center; }
.shot .reveal { animation: rise .4s both; animation-delay: calc(var(--i) * 900ms + 300ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .shot .reveal { animation: none; } }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; }
.ledger b { font-weight: 600; }
.ledger span { color: var(--muted); font-size: 12.5px; }
.ledger .tag { justify-self: end; }
.shot-note { font-size: 13px; color: var(--muted); text-align: center; padding: 12px 0 28px; }

/* Faixas */
section { padding: 88px 0; }
.sec-title { font-size: clamp(30px, 4.2vw, 46px); max-width: 20ch; letter-spacing: -.028em; }

/* Planos */
.plans-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 26px; }
.plan.best { border: 2px solid var(--blue); padding: 25px; }
.plan h3 { font-size: 22px; }
.plan > p { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 44px; }
.price { margin: 18px 0; display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; }
.price b { font-size: 50px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price span { color: var(--muted); }
.plans-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Perguntas */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin-top: 8px; }

.foot { padding: 24px 0; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { text-decoration: none; margin-left: 18px; }
.foot a:hover { color: var(--ink); }

/* Assinar */
.sub-page { background: var(--bg-2); min-height: 100vh; }
.sub-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: start; padding: 40px 0 64px; }
.sub-grid h1 { font-size: 30px; margin-bottom: 20px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.box + .box { margin-top: 14px; }
.box h2 { font-size: 16px; letter-spacing: -.005em; margin-bottom: 12px; font-weight: 600; }
.pick { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; margin-bottom: 8px; }
.pick:last-child { margin-bottom: 0; }
.pick:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.pick:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.pick .grow { flex: 1; min-width: 0; }
.pick b { display: block; font-weight: 600; }
.pick small { color: var(--muted); font-size: 13px; display: block; line-height: 1.35; }
.pick strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field { display: block; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.field input { display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); background: #fff; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; font-size: 13px; }
.sum { position: sticky; top: 24px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; font-size: 17px; }
.sum p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.sum .btn { margin-top: 14px; }
.err { color: var(--danger); font-size: 14px; margin-top: 10px; }
.closed { background: var(--note); border: 1px solid #f1e6bd; color: var(--warn); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; }

@media (max-width: 1040px) {
  .shot-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .shot-grid .shot-list { display: none; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .top nav { display: none; }
  .top .wrap { justify-content: space-between; gap: 8px; }
  .hero { padding-top: 44px; }
  .shot-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .shot-ledger { border-top: 1px solid var(--line); }
  .shot-col { border-right: 0; }
  section { padding: 60px 0; }
  .plans, .faq, .sub-grid, .three .wrap { grid-template-columns: minmax(0, 1fr); }
  .plan > p { min-height: 0; }
  .faq { gap: 20px; }
  .sum { position: static; }
  .foot a { margin: 0 18px 0 0; }
}

/* Ajustes da página enxuta */
.hero { background: var(--bg); padding-top: 80px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); max-width: 21ch; }
.hero-lead { margin: 18px 0 24px; }
.hero-cta { margin-bottom: 56px; }
.shot { box-shadow: 0 12px 32px rgba(26, 32, 41, .07); }
.shot .reveal { animation-delay: calc(var(--i) * 500ms + 200ms); }
.shot-note { padding-bottom: 0; }
.three { padding: 72px 0; }
.three .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.three h2 { font-size: 22px; letter-spacing: -.015em; margin-bottom: 6px; }
.three p { color: var(--ink-2); }
.plan > p { min-height: 44px; }
.price { margin: 14px 0 18px; font-variant-numeric: normal; }
.foot { border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .hero { padding-top: 44px; }
  .hero-cta small { margin-left: 2px; }
  .three { padding: 48px 0; }
  .three .wrap { grid-template-columns: 1fr; gap: 20px; }
  .ledger li:nth-child(n+4) { display: none; }
}
