:root {
  color-scheme: dark;
  --bg: #07090e;
  --surface: rgba(14, 18, 27, 0.92);
  --surface-2: rgba(23, 30, 46, 0.9);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(244, 63, 94, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #e11d48;
  --accent-bright: #f43f5e;
  --emerald: #10b981;
  --amber: #f59e0b;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -6%, rgba(225, 29, 72, 0.22), transparent 60%),
    radial-gradient(820px 500px at 90% 10%, rgba(16, 185, 129, 0.12), transparent 58%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: #fda4af; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
}

.wrap { width: min(1200px, 92vw); margin: 0 auto; }
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px;
}

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 14, 0.86);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; }
.brand-badge {
  font-size: 0.72rem; letter-spacing: 0.06em; padding: 3px 9px;
  border-radius: 999px; background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.36); color: #fda4af;
}
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.92rem; font-weight: 600; transition: color .15s; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .nav-partner {
  padding: 8px 13px; border-radius: 10px;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.34); color: #6ee7b7;
}
.nav .nav-cta {
  padding: 9px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700;
}
.nav .nav-cta:hover { background: var(--accent-bright); }
.mobile-menu-btn {
  display: none; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border);
  color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer;
}

[hidden] { display: none !important; }

/* Typography & Buttons */
.eyebrow {
  margin: 0 0 10px; font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-bright);
}
.eyebrow.emerald { color: var(--emerald); }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.1vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.35rem); }
.lead { margin: 0 0 22px; color: var(--muted); font-size: 1.07rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #fff; box-shadow: 0 10px 26px rgba(225, 29, 72, 0.34); }
.btn-emerald { background: linear-gradient(135deg, #059669, var(--emerald)); color: #041b13; box-shadow: 0 10px 26px rgba(16, 185, 129, 0.25); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; border-radius: 9px; }

/* Sections */
section { padding: 66px 0; }
.hero { padding: 54px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: center; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  background: rgba(16, 185, 129, 0.13); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7;
}
.pill.ruby { background: rgba(225, 29, 72, 0.14); border-color: rgba(244, 63, 94, 0.35); color: #fda4af; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.modes-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0;
}
.mode-tag {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 10px; font-size: 0.8rem; font-weight: 700; color: #e2e8f0; text-align: center;
}
.legal-banner {
  padding: 13px 16px; border-radius: 12px; font-size: 0.88rem; color: #cbd5e1;
  background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.25);
}

.video-card { padding: 14px; overflow: hidden; }
.video-card video {
  width: 100%; border-radius: 12px; display: block; background: #05070c;
  aspect-ratio: 16 / 9; object-fit: cover;
}
.brand-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.brand-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px; border-radius: 8px; background: #f8fafc; min-height: 30px;
}
.brand-pill.dark { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border); }

/* Shield Banner */
.shield-band {
  padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(225, 29, 72, 0.05);
}
.shield-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.shield-copy h2 { font-size: 1.25rem; margin-bottom: 4px; }
.shield-copy p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* 13 Legitimate Uses */
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { margin: 0; color: var(--muted); }
.uses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px;
}
.use-card { padding: 18px; }
.use-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; font-size: 1.2rem; margin-bottom: 10px;
  background: rgba(225, 29, 72, 0.14); border: 1px solid rgba(244, 63, 94, 0.28);
}
.use-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.use-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Feature Splits */
.split-section { border-top: 1px solid var(--border); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split-grid.reverse .video-card { order: -1; }
.check-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px; color: #e2e8f0; font-size: 0.96rem;
}
.check-list li::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  background: rgba(16, 185, 129, 0.18); color: var(--emerald); margin-top: 2px;
}

/* Platforms Grid */
.plat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plat-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.plat-card:hover { border-color: var(--border-strong); text-decoration: none; transform: translateY(-2px); }
.plat-logo {
  height: 44px; display: inline-flex; align-items: center; justify-content: flex-start;
  padding: 5px 10px; border-radius: 10px; background: #fff; width: fit-content; margin-bottom: 6px;
}
.plat-logo.dark { background: rgba(255, 255, 255, 0.08); }
.plat-card span { color: var(--muted); font-size: 0.86rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card { padding: 22px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; font-weight: 800;
  background: var(--accent); color: #fff; margin-bottom: 12px;
}
.msx-bar {
  margin-top: 20px; padding: 18px 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* #renovar Checkout Card */
section[id], #renovar { scroll-margin-top: 96px; }
.renovar-section {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.06), rgba(16, 185, 129, 0.04));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.renovar-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 26px; align-items: start; }
.renovar-card { padding: 26px; }
.lookup-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.input {
  flex: 1 1 220px; background: #070a11; border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; border-radius: 11px; padding: 12px 14px; font-size: 1rem; font-family: ui-monospace, monospace;
}
.input:focus { outline: none; border-color: var(--accent-bright); }
select.input option { background: #0e121b; color: #f8fafc; }
.status-box {
  margin-top: 14px; padding: 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.status-badge {
  display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
}
.status-badge.trial { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.status-badge.active { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.status-badge.expired { background: rgba(225, 29, 72, 0.2); color: #fda4af; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.plan-box {
  padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.plan-box.featured { border-color: rgba(16, 185, 129, 0.45); }
.plan-price { font-size: 1.75rem; font-weight: 800; color: #fff; }
.plan-box small { color: var(--muted); }

.alert {
  padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; margin: 10px 0;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35); color: #a7f3d0;
}
.alert.error { background: rgba(225, 29, 72, 0.16); border-color: rgba(244, 63, 94, 0.4); color: #fecdd3; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 0.94rem; }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(3, 5, 10, 0.84);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: min(540px, 100%); max-height: 92vh; overflow-y: auto;
  padding: 26px; background: #0e121b; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}
.modal-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.modal-warn {
  padding: 14px; border-radius: 12px; margin: 12px 0; font-size: 0.93rem;
  background: rgba(225, 29, 72, 0.1); border: 1px solid rgba(244, 63, 94, 0.35); color: #ffe4e6;
}
.pix-qr-wrap { text-align: center; background: #fff; padding: 12px; border-radius: 14px; width: fit-content; margin: 14px auto; }
.pix-qr-wrap img { width: 210px; height: 210px; display: block; }
.pix-code-box {
  width: 100%; background: #07090e; border: 1px solid var(--border); color: #cbd5e1;
  padding: 10px; border-radius: 10px; font-family: ui-monospace, monospace; font-size: 0.78rem; resize: none;
}

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

@media (max-width: 960px) {
  section[id], #renovar { scroll-margin-top: 132px; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { max-width: 120px; height: auto; }
  .brand-badge { font-size: 0.68rem; padding: 2px 7px; }
  .hero-grid, .split-grid, .renovar-grid { grid-template-columns: 1fr; }
  .split-grid.reverse .video-card { order: 0; }
  .plat-grid, .modes-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid, .plan-cards { grid-template-columns: 1fr; }
  .mobile-menu-btn { display: inline-flex; flex-shrink: 0; margin-left: auto; }
  .nav { display: none; width: 100%; padding-top: 10px; border-top: 1px solid var(--border); }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  section[id], #renovar { scroll-margin-top: 84px; }
  .topbar-inner { padding: 10px 0; gap: 8px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 6px; overflow: hidden; }
  .brand img { width: 96px; max-width: 96px; height: auto; flex-shrink: 0; }
  .brand-badge {
    font-size: 0.62rem; letter-spacing: 0.04em; padding: 2px 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-menu-btn { padding: 7px 10px; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; }
}

/* CSP-safe utility classes (replacing inline styles) */
.m-0 { margin: 0; }
.mt-xs { margin-top: 8px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 6px; }
.mb-md { margin-bottom: 10px; }
.mb-lg { margin-bottom: 18px; }
.w-full { width: 100%; }
.flex-1 { flex: 1; }
.page-main { padding: 44px 0 70px; }
.totem-card-title { font-size: 1.25rem; margin: 0 0 12px; }
.totem-main { padding: 36px 0 64px; }
.totem-setup-sec { padding: 0 0 28px; }
.totem-workspace-sec { padding: 0; }
.totem-workspace-card { padding: 24px; margin-bottom: 18px; }
.totem-board-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.totem-board-name { margin: 4px 0 0; }
.totem-call-card { padding: 28px; text-align: center; border-color: rgba(244, 63, 94, 0.4); }
.totem-current-num { font-size: clamp(3.6rem, 8vw, 6.2rem); font-weight: 900; line-height: 1; color: #fff; font-family: ui-monospace, monospace; }
.totem-current-queue { margin-top: 10px; color: #fda4af; font-weight: 700; font-size: 1.25rem; }
.totem-current-counter { margin-top: 8px; display: inline-flex; padding: 8px 18px; border-radius: 12px; background: rgba(16, 185, 129, 0.18); color: #6ee7b7; font-weight: 800; font-size: 1.3rem; }
.totem-side-col { display: flex; flex-direction: column; gap: 14px; }
.totem-op-card { padding: 20px; }
.totem-op-label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 5px; }
.totem-op-input { width: 100%; margin-bottom: 12px; }
.totem-hist-card { padding: 18px; }
.totem-hist-title { font-size: 1rem; margin-bottom: 10px; }
.totem-hist-list { display: grid; gap: 8px; color: var(--muted); }
.totem-hist-row { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.field-label { display: block; margin: 12px 0 5px; font-weight: 700; }
.field-label-first { display: block; margin: 10px 0 6px; font-weight: 700; }
.input-tall { width: 100%; min-height: 110px; }
.sup-contacts-card { padding: 22px; display: grid; gap: 12px; }
.copy-feedback { margin: 0; width: 100%; color: var(--emerald); font-size: 0.88rem; }
.muted-note { color: var(--muted); margin: 0 0 8px; }
.muted-sub { margin: 14px 0 0; font-size: 0.86rem; color: var(--muted); }
.status-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mac-mono { font-family: ui-monospace, monospace; font-size: 1.1rem; }
.status-detail-copy { margin: 10px 0 12px; color: #cbd5e1; font-size: 0.94rem; }
.modal-copy { color: #cbd5e1; font-size: 0.93rem; }
.modal-sub { color: var(--muted); font-size: 0.86rem; }
.modal-actions-end { margin: 18px 0 0; justify-content: flex-end; }
.pix-head-row { display: flex; justify-content: space-between; align-items: center; }
.pix-copy-label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 6px; }
.pix-poll-status { font-size: 0.88rem; color: var(--emerald); }
.tut-body { padding: 14px 6px 6px; }
.tut-title { font-size: 1.25rem; }
.tut-desc { color: var(--muted); font-size: 0.92rem; }
.tut-cta-box { margin-top: 34px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
.faq-item {
  contain: layout style;
}
#usos,
#recursos,
#cameras,
#totem-preview,
#plataformas,
#como-funciona,
#renovar,
#faq,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
@media (hover: hover) and (pointer: fine) {
  .topbar {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .modal-backdrop {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
@media (hover: none), (max-width: 820px) {
  .topbar,
  .modal-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .surface,
  .modal-card,
  .btn-primary,
  .btn-emerald {
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
