/* ============================================================================
   Paleta de cores (idêntica ao app Pede+ em app/globals.css)
   ============================================================================ */

:root {
  --background: #fff7f0;
  --foreground: #241511;
  --ground-sunk: #fceee1;
  --line: #eddccb;
  --ink-soft: #7a6459;
  --accent: #ff4b2e;
  --accent-strong: #e23a1f;
  --accent-2: #ffb238;
  --success: #2f8f6b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #180f0a;
    --foreground: #fbeee3;
    --ground-sunk: #130b07;
    --line: #3a2718;
    --ink-soft: #b99a89;
    --accent: #ff6a45;
    --accent-strong: #ff8563;
    --accent-2: #ffc24d;
    --success: #4cb58a;
  }
}

:root[data-theme="dark"] {
  --background: #180f0a;
  --foreground: #fbeee3;
  --ground-sunk: #130b07;
  --line: #3a2718;
  --ink-soft: #b99a89;
  --accent: #ff6a45;
  --accent-strong: #ff8563;
  --accent-2: #ffc24d;
  --success: #4cb58a;
}

:root[data-theme="light"] {
  --background: #fff7f0;
  --foreground: #241511;
  --ground-sunk: #fceee1;
  --line: #eddccb;
  --ink-soft: #7a6459;
  --accent: #ff4b2e;
  --accent-strong: #e23a1f;
  --accent-2: #ffb238;
  --success: #2f8f6b;
}

/* ============================================================================
   Reset e estilos globais
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
}

/* ============================================================================
   Componentes
   ============================================================================ */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-subtitle {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.accent-strong {
  color: var(--accent-strong);
}

.badge {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--ground-sunk);
  color: var(--foreground);
  border: 2px solid var(--line);
}

.btn-secondary:hover {
  background-color: var(--line);
  border-color: var(--line);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* ============================================================================
   Navegação
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  flex: 1;
}

.nav-links a {
  color: var(--foreground);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background-color: transparent;
  color: var(--foreground);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--ground-sunk);
  color: var(--accent);
}

/* Seletor de idioma PT | EN */
.lang-switcher {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink-soft);
}

.lang-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn[aria-pressed="true"] {
  color: var(--foreground);
  background-color: var(--ground-sunk);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.lang-sep {
  color: var(--line);
  user-select: none;
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 0.5rem;
  }
  .lang-btn {
    padding: 0.375rem 0.375rem;
  }
}

/* Responsivo: mostrar nav links em desktop */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--background) 0%, var(--ground-sunk) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.demo-widget {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: var(--background);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid var(--line);
}

.demo-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-tab {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--ink-soft);
  border: 2px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.demo-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.demo-tab.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Motivo de comanda/recibo */
.demo-mockup {
  background-color: var(--ground-sunk);
  border: 2px dashed var(--line);
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px dotted var(--line);
}

.mockup-monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.mockup-header h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.25rem;
}

.mockup-items {
  margin-bottom: 1.5rem;
}

.mockup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--line);
}

.mockup-item:last-child {
  border-bottom: none;
}

.item-name {
  font-weight: 500;
  color: var(--foreground);
}

.item-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-color);
}

.mockup-link {
  padding-top: 1rem;
  border-top: 2px dotted var(--line);
}

.mockup-link span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-color);
  word-break: break-all;
}

/* Responsivo */
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================================
   Como Funciona Section
   ============================================================================ */

.como-funciona {
  padding: 4rem 1.5rem;
  background-color: var(--ground-sunk);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step h3 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--ink-soft);
  max-width: 300px;
  margin: 0 auto;
}

.step-divider {
  display: none;
}

/* Responsivo */
@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .step-divider {
    display: block;
    border-left: 2px dotted var(--line);
    height: 1px;
    margin: auto 0;
    grid-column: span 1;
  }
}

/* ============================================================================
   Recursos Section
   ============================================================================ */

.recursos {
  padding: 4rem 1.5rem;
  background-color: var(--background);
}

.recursos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.recurso-card {
  background-color: var(--ground-sunk);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.recurso-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recurso-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.recurso-card h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.recurso-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Responsivo */
@media (min-width: 640px) {
  .recursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================================
   Segmentos Section
   ============================================================================ */

.segmentos {
  padding: 4rem 1.5rem;
  background-color: var(--ground-sunk);
}

.segmentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.segmento-card {
  background-color: var(--background);
  border: 2px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.segmento-card h3 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.segmento-card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Responsivo */
@media (min-width: 640px) {
  .segmentos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .segmentos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================================
   Planos Section
   ============================================================================ */

.planos {
  padding: 4rem 1.5rem;
  background-color: var(--background);
}

.planos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.plano-card {
  background-color: var(--ground-sunk);
  border: 2px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.plano-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.plano-highlight {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.plano-header {
  margin-bottom: 1.5rem;
}

.plano-header h3 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.plano-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.plano-price-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.plano-price-unit {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.plano-cta {
  margin-bottom: 1.5rem;
}

.plano-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.plano-features li {
  padding: 0.5rem 0;
  color: var(--foreground);
  border-bottom: 1px dotted var(--line);
  font-size: 0.95rem;
}

.plano-features li:last-child {
  border-bottom: none;
}

.plano-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.planos-note {
  background-color: var(--line);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  color: var(--foreground);
}

.planos-note p {
  margin-bottom: 0;
}

/* Responsivo */
@media (min-width: 768px) {
  .planos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================================
   CTA Final Section
   ============================================================================ */

.cta-final {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  text-align: center;
}

.cta-final h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-final .btn-primary {
  background-color: white;
  color: var(--accent-strong);
}

.cta-final .btn-primary:hover {
  background-color: var(--ground-sunk);
}

.cta-final .btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

.cta-final .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Responsivo */
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background-color: var(--ground-sunk);
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ============================================================================
   Animações e transições
   ============================================================================ */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  body {
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}
