/* SCPVendas — estilos mobile-first */

:root {
  --color-primary: #0d6e8a;
  --color-primary-dark: #094d61;
  --color-accent: #2ecc71;
  --color-bg: #f8fafb;
  --color-surface: #ffffff;
  --color-text: #1a2b3c;
  --color-muted: #5a6b7c;
  --color-border: #e2e8ef;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --header-h: 64px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle:hover {
  background: var(--color-bg);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: none;
  list-style: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.nav-menu.open {
  display: block;
}

.nav-menu li {
  border-bottom: 1px solid var(--color-border);
}

.nav-menu li:last-child {
  border-bottom: none;
}

.nav-menu a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--color-bg);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-submenu {
  list-style: none;
  background: #f0f4f7;
}

.nav-submenu a {
  padding-left: 2rem;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #148f7a 100%);
  color: white;
  padding: 3rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: white;
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background: #27ae60;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-muted);
  max-width: 520px;
  margin-inline: auto;
}

/* Feature cards */
.features-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), #1a9bb5);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* CTA band */
.cta-band {
  background: var(--color-primary-dark);
  color: white;
  text-align: center;
  padding: 2.5rem 0;
}

.section-highlights {
  padding-top: 2.5rem;
}

.cta-band h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

/* Page header (subpages) */
.page-header {
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.35rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 0.98rem;
}

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: white;
}

/* Screenshot gallery */
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
}

.gallery-media {
  position: relative;
  background: #1e1e1e;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  background: #1e1e1e;
  display: block;
}

.gallery-item.is-missing img {
  display: none;
}

.gallery-item:not(.is-missing) .gallery-placeholder {
  display: none;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

.gallery-placeholder {
  aspect-ratio: 9 / 16;
  background: linear-gradient(145deg, #dde4ea, #c5d0da);
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Contact form */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 520px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Manual index */
.manual-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.manual-list a {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.manual-list a:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.manual-list .coming-soon {
  opacity: 0.55;
  pointer-events: none;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fef3cd;
  color: #856404;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* Download cards */
.download-grid {
  display: grid;
  gap: 1rem;
}

.download-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.download-card h3 {
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.download-card .btn-outline {
  background: var(--color-bg);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-border);
}

.download-card .btn-outline:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.download-main {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.download-qr-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.download-qr-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.download-qr-box > p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.download-qr-img {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.25rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.download-qr-caption {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.download-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.download-req {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .download-main {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: white;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.15rem;
    align-items: center;
  }

  .nav-menu li {
    border: none;
    position: relative;
  }

  .nav-menu > li > a {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li > a.active {
    background: var(--color-bg);
  }

  .nav-item-has-submenu > a::after {
    content: " ▾";
    font-size: 0.7rem;
  }

  .nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 0.35rem 0;
    background: var(--color-surface);
  }

  .nav-item-has-submenu:hover .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.55rem 1rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Página Testar — simulador Appetize (link externo; embed requer plano pago) */
.demo-launcher {
  max-width: 520px;
  margin: 0 auto 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.demo-launcher-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.demo-launcher h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
}

.demo-launcher > p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.demo-steps {
  list-style: none;
  text-align: left;
  margin: 0 auto 1.5rem;
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.demo-steps li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.demo-steps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.demo-launcher-btn {
  width: 100%;
  max-width: 320px;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
}

.demo-launcher-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.demo-actions .btn-outline {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-border);
}

.demo-actions .btn-outline:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
