/* ComandaCloud — landing page. CSS puro, sem build. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --soft: #f3f7fb; --card: #ffffff; --ink: #14212b; --muted: #55657a; --line: #dde6ef;
  --brand: #0a5bb8; --brand-2: #1fa2f0; --brand-soft: #e6f3fd; --brand-ink: #ffffff;
  --ok: #1f9d55; --warn: #d98a00;
  --shadow: 0 1px 2px rgba(20,33,43,.06), 0 12px 32px -12px rgba(10,91,184,.25);
  --radius: 18px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151c; --soft: #131c26; --card: #17212c; --ink: #eef3f8; --muted: #9aabbd; --line: #263342;
    --brand: #46c8f7; --brand-2: #1fa2f0; --brand-soft: #12304a; --brand-ink: #06202f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem;
  border-radius: 999px; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 20px -8px rgba(10,91,184,.6); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06202f; background: linear-gradient(135deg, #7fddff, #1fa2f0); } }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { min-height: 40px; padding: 0 1.05rem; font-size: .92rem; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topo .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.topo .logo img { height: 28px; width: auto; }
.nav { display: none; gap: 1.6rem; margin-left: auto; margin-right: .5rem; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.topo .acoes { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
@media (min-width: 880px) { .nav { display: flex; } .topo .acoes { margin-left: 0; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 44px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1;
  background: radial-gradient(60% 60% at 80% 10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
              radial-gradient(40% 50% at 10% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.selo { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .01em; margin-bottom: 1.1rem; }
.selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin-top: 1.2rem; font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero .pontos { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero .pontos li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .4rem; }
@media (min-width: 940px) { .hero { padding: 72px 0 88px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* Mock do produto (HTML/CSS puro) */
.palco { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 500px; }
.celular { width: min(290px, 78vw); border-radius: 36px; padding: 11px; background: #14212b; box-shadow: var(--shadow), 0 30px 60px -20px rgba(10,91,184,.45); transform: rotate(-2deg); }
.celular .tela { border-radius: 27px; background: #f6f9fc; color: #14212b; overflow: hidden; height: 100%; }
.celular .bar { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: linear-gradient(135deg, #1fa2f0, #0a5bb8); color: #fff; font-weight: 700; font-size: .88rem; }
.celular .bar small { opacity: .85; font-weight: 600; }
.celular .cats { display: flex; gap: .4rem; padding: .7rem .8rem .3rem; font-size: .72rem; font-weight: 700; }
.celular .cats span { padding: .3rem .65rem; border-radius: 999px; background: #e3edf6; color: #4a5d72; }
.celular .cats span:first-child { background: #0a5bb8; color: #fff; }
.item { display: flex; gap: .65rem; align-items: center; margin: .5rem .8rem; padding: .55rem; background: #fff; border: 1px solid #e3ebf3; border-radius: 14px; }
.item .foto { flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 1.5rem; background: #e6f3fd; }
.item b { display: block; font-size: .8rem; line-height: 1.2; }
.item span { font-size: .72rem; color: #5d6b7a; }
.item .add { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #0a5bb8; color: #fff; display: grid; place-items: center; font-weight: 800; }
.celular .total { margin: .7rem .8rem .9rem; padding: .75rem 1rem; border-radius: 14px; background: #14212b; color: #fff; display: flex; justify-content: space-between; font-weight: 700; font-size: .85rem; }

.ticket { position: absolute; right: -4px; bottom: 0; width: min(230px, 62vw); padding: .9rem 1rem; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(2.5deg); font-size: .8rem; }
.ticket header { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: .5rem; }
.ticket .tag { font-size: .66rem; padding: .15rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); font-weight: 800; }
.ticket ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.ticket li { padding: .15rem 0; }
.ticket .pronto { margin-top: .6rem; text-align: center; padding: .45rem; border-radius: 10px; background: var(--ok); color: #fff; font-weight: 800; }
.pix { position: absolute; left: -14px; top: 215px; display: flex; align-items: center; gap: .55rem; padding: .6rem .85rem; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .8rem; font-weight: 700; transform: rotate(-3deg); }
.pix i { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); display: grid; place-items: center; font-style: normal; font-weight: 800; }
@media (max-width: 480px) { .pix { display: none; } .ticket { right: 0; } }

/* Seções */
section { padding: 64px 0; }
.alt { background: var(--soft); }
.cab { max-width: 40rem; margin-bottom: 2.4rem; }
.cab.centro { margin-left: auto; margin-right: auto; text-align: center; }
.rotulo { color: var(--brand); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .7rem; }
.cab h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); font-weight: 800; }
.cab p { margin-top: .9rem; color: var(--muted); font-size: 1.05rem; }

/* Passos */
.passos { display: grid; gap: 16px; counter-reset: passo; }
.passo { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.passo::before { counter-increment: passo; content: counter(passo); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; margin-bottom: 1rem; }
@media (prefers-color-scheme: dark) { .passo::before { color: #06202f; } }
.passo h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.passo p { color: var(--muted); font-size: .97rem; }
@media (min-width: 800px) { .passos { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Recursos */
.recursos { display: grid; gap: 14px; }
.recurso { padding: 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.recurso:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.recurso .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
.recurso .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recurso h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.recurso p { color: var(--muted); font-size: .95rem; }
@media (min-width: 640px) { .recursos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .recursos { grid-template-columns: repeat(3, 1fr); } }

/* Papéis */
.papeis { display: grid; gap: 14px; }
.papel { display: flex; gap: 1rem; padding: 1.3rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.papel .emoji { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-soft); }
.papel h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.papel p { color: var(--muted); font-size: .94rem; }
@media (min-width: 760px) { .papeis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .papeis { grid-template-columns: repeat(3, 1fr); } }

/* Para quem */
.publico { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
.publico span { padding: .55rem 1.1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.1rem; color: var(--muted); }

/* CTA final */
.final { padding: 0 0 72px; }
.final .caixa { border-radius: 28px; padding: clamp(2rem, 6vw, 4rem) 1.5rem; text-align: center; color: #fff;
  background: radial-gradient(70% 120% at 85% 0%, #46c8f7 0%, transparent 60%), linear-gradient(135deg, #0a5bb8, #0b3f84); }
.final h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 800; }
.final p { margin: .9rem auto 0; max-width: 34rem; opacity: .92; font-size: 1.05rem; }
.final .cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.8rem; }
.final .btn-branco { background: #fff; color: #0a3f84; }
.final .btn-borda { border-color: rgba(255,255,255,.55); color: #fff; }
.final .btn-borda:hover { background: rgba(255,255,255,.12); }

/* Rodapé */
.rodape { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.rodape .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.rodape img { height: 24px; width: auto; }
.rodape nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
