/* Site de apresentação do wescritorio (public/index.html). O sistema em si fica em app.html. */
:root {
  --ink: #1d1a2b;
  --ink-2: #4a4660;
  --muted: #6f6a86;
  --bg: #fbf7f0;
  --bg-2: #f3ecdf;
  --card: #ffffff;
  --line: #e6dccb;
  --accent: #6c5ce7;
  --accent-d: #5443d6;
  --yellow: #ffd23f;
  --green: #2fbf71;
  --coral: #ff7a59;
  --blue: #4f8cff;
  --radius: 22px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --pixel: 'Pixelify Sans', 'Inter', monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 900; }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 900; }
h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
section { padding: 90px max(16px, calc((100vw - 1180px) / 2)); }

/* ---------- botões, etiquetas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-d); }
.btn.primary:hover { box-shadow: 0 6px 0 var(--accent-d); }
.btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn.big { padding: 15px 26px; font-size: 17px; border-radius: 16px; }
.tag { display: inline-block; font-family: var(--pixel); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--accent-d); background: #ece8ff; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 30px; height: 30px; transform: rotate(-6deg); }
.logo-mark i { border-radius: 4px; }
.logo-mark i:nth-child(1) { background: var(--accent); }
.logo-mark i:nth-child(2) { background: var(--yellow); }
.logo-mark i:nth-child(3) { background: var(--green); }
.logo-mark i:nth-child(4) { background: var(--coral); }
.logo-word { font-family: var(--pixel); font-weight: 700; font-size: 24px; letter-spacing: .01em; }

/* ---------- topo ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - 1180px) / 2)); background: rgba(251,247,240,.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-links { display: flex; gap: 24px; margin-left: 18px; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 70px; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 4px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 22px 0 30px; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: 14px; }
.hero-shot { position: relative; }
.window { border-radius: 18px; overflow: hidden; background: #1b1c2b; box-shadow: 0 30px 70px rgba(40, 30, 80, .28), 0 0 0 1px rgba(0,0,0,.06); transform: rotate(1deg); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #272838; color: #a9abc6; font-size: 12.5px; font-weight: 600; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 8px; }
.float { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(40, 30, 80, .18); display: flex; align-items: center; gap: 8px; white-space: nowrap; animation: bob 4s ease-in-out infinite; }
.float b { color: var(--accent); }
.f1 { left: -28px; top: 18%; }
.f2 { right: -18px; bottom: 16%; animation-delay: -1.3s; }
.f3 { left: 12%; bottom: -18px; animation-delay: -2.6s; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c3b2; display: inline-block; }
.dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(47,191,113,.2); }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* ---------- contraste ---------- */
.contrast { text-align: center; background: var(--bg-2); }
.sub { font-size: 19px; color: var(--ink-2); max-width: 40em; margin: 16px auto 44px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: left; max-width: 920px; margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px 32px; border: 2px solid var(--line); }
.card h3 { font-size: 22px; margin-bottom: 14px; }
.card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16.5px; }
.card.bad { opacity: .85; }
.card.good { border-color: var(--accent); box-shadow: 0 8px 0 var(--accent); }

/* ---------- como funciona + demo ---------- */
.how { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.how p { font-size: 18px; color: var(--ink-2); }
.steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; font-size: 17px; }
.steps li::before { content: counter(s); font-family: var(--pixel); font-weight: 700; background: var(--yellow); border-radius: 10px; min-width: 32px; height: 32px; display: inline-grid; place-items: center; }
.demo { background: #fff; border-radius: var(--radius); border: 2px solid var(--line); padding: 18px; box-shadow: 0 20px 50px rgba(40,30,80,.12); }
.demo-floor { user-select: none; -webkit-user-select: none; position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; touch-action: none;
  background: #c8935a url(img/demo-chao.png) center / cover no-repeat; image-rendering: pixelated; }
.demo-person { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; user-select: none; }
.demo-person canvas { width: 44px; height: 56px; image-rendering: pixelated; position: relative; z-index: 2; filter: drop-shadow(0 3px 0 rgba(0,0,0,.18)); }
.demo-person .name { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(24,22,38,.78); padding: 2px 8px; border-radius: 999px; margin-bottom: 2px; position: relative; z-index: 3; white-space: nowrap; }
.demo-person .name i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.demo-person.me .name { background: rgba(76,70,180,.9); }
.demo-person .ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255,255,255,.7); background: rgba(255,255,255,.07); left: 50%; bottom: -2px; transform: translate(-50%, 50%) scaleY(.62); z-index: 1; transition: background .2s, border-color .2s; pointer-events: none; }
.demo-person.me { cursor: grab; }
.demo-person.me:active { cursor: grabbing; }
.demo-person.me .ring { border-color: rgba(139,124,255,.95); }
.demo.on .demo-person .ring { background: rgba(47,191,113,.2); border-color: rgba(61,220,132,.95); }
.demo-status { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 12px 16px; border-radius: 12px; background: var(--bg-2); transition: background .2s; }
.demo.on .demo-status { background: #dcf6e7; color: #12733f; }
.demo.on .demo-status .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(47,191,113,.25); }
.demo-meter { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.demo-meter div { flex: 1; height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.demo-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #8be3b0); transition: width .15s; }

/* ---------- recursos em destaque ---------- */
.features { display: flex; flex-direction: column; gap: 110px; }
.feat { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.feat.flip .feat-text { order: 2; }
.feat p { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; }
.feat-shot img, .map-sec img { border-radius: 18px; box-shadow: 0 24px 60px rgba(40,30,80,.18), 0 0 0 1px rgba(0,0,0,.05); }
.feat-shot { position: relative; }
.feat-shot::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; border-radius: 22px; background: var(--yellow); z-index: -1; }
.feat.flip .feat-shot::before { background: #cfc6ff; inset: 22px 22px -18px -18px; }
.mini-shots { margin-top: 22px; max-width: 380px; }
.lineup { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(40,30,80,.18), 0 0 0 1px rgba(0,0,0,.05); background: #c8935a; }
.lineup canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.lineup .btn { position: absolute; right: 14px; bottom: 14px; }
.mini-shots img { border-radius: 12px; box-shadow: 0 10px 30px rgba(40,30,80,.15); }

/* ---------- grade ---------- */
.grid-sec { background: var(--ink); color: #fff; text-align: center; }
.grid-sec h2 { max-width: 16em; margin: 0 auto 46px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.g { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 24px; transition: transform .15s, background .15s; }
.g:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.g span { font-size: 30px; display: block; margin-bottom: 10px; }
.g b { font-size: 18px; }
.g p { margin: 6px 0 0; color: #c9c5dd; font-size: 15px; }

/* ---------- mapa ---------- */
.map-sec { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.map-sec p { font-size: 18px; color: var(--ink-2); margin-top: 16px; }

/* ---------- perguntas ---------- */
.faq { max-width: 860px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
details { background: #fff; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 12px; padding: 0 22px; }
details[open] { border-color: var(--accent); }
summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--pixel); font-size: 22px; line-height: 1; color: var(--accent); }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 20px; color: var(--ink-2); font-size: 16px; }

/* ---------- chamada final ---------- */
.final-card { position: relative; overflow: hidden; text-align: center; background: var(--accent); color: #fff; border-radius: 30px; padding: 70px 24px; }
.final-card h2 { font-size: clamp(32px, 4.4vw, 54px); }
.final-card p { font-size: 19px; opacity: .9; margin: 14px auto 32px; max-width: 32em; }
.final-card .hero-cta { position: relative; }
.final-card .btn.primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 #c99a1e; }
.pixels { position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(#fff 2px, transparent 2px); background-size: 26px 26px; }

/* ---------- rodapé ---------- */
.foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 34px max(16px, calc((100vw - 1180px) / 2)) 46px; color: var(--ink-2); font-weight: 600; }
.foot .muted { margin-left: auto; color: var(--muted); font-weight: 500; }

/* ---------- aparece ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  .nav-links { display: none; }
  .nav .btn.ghost { display: none; }
  .nav .btn.primary { padding: 8px 12px; font-size: 13px; }
  .logo-word { font-size: 20px; }
  .hero, .how, .feat, .map-sec { grid-template-columns: 1fr; gap: 36px; }
  .feat.flip .feat-text { order: 0; }
  .compare, .grid { grid-template-columns: 1fr; }
  .f1 { left: 6px; } .f2 { right: 6px; } .f3 { display: none; }
  .float { font-size: 12.5px; white-space: normal; max-width: 70%; }
  .window { transform: none; }
  .demo-floor { height: 280px; }
  .demo-person .ring { width: 140px; height: 140px; }
  .features { gap: 72px; }
  .feat-shot::before { inset: 14px -8px -8px 14px; }
  .feat.flip .feat-shot::before { inset: 14px 14px -8px -8px; }
}
@media (prefers-reduced-motion: reduce) { .float { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
