/* RECEON — página de vendas. Mesmas cores do app (src/theme/tokens.ts). */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary: #087a55;
  --primary-vibrant: #18c982;
  --primary-dark: #063f31;
  --primary-soft: #e3f5ec;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-muted: #eef2f0;
  --border: #e1e7e4;
  --text: #15221e;
  --text-2: #687570;
  --text-3: #96a19c;
  --blue: #1f6fd1;
  --blue-soft: #eef5ff;
  --blue-border: #a9c9f2;
  --gold: #a56a12;
  --gold-icon: #c58a1b;
  --gold-soft: #fff4dc;
  --gold-border: #e8c77a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(21, 34, 30, 0.04), 0 8px 24px rgba(21, 34, 30, 0.07);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
summary:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--primary-vibrant);
  outline-offset: 2px;
}
.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-vibrant), var(--primary));
  box-shadow: 0 6px 20px rgba(8, 122, 85, 0.25);
}
.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.btn-ghost {
  color: var(--primary);
  background: transparent;
}
.btn-blue {
  color: #fff;
  background: var(--blue);
}
.btn-gold {
  color: #fff;
  background: var(--gold-icon);
}
.btn-light {
  color: var(--primary-dark);
  background: #fff;
}

/* Topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand img {
  height: 34px;
  width: auto;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: 16px;
}
.nav a {
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
}
.nav a:hover {
  color: var(--text);
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* Destaque */
.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(24, 201, 130, 0.14), transparent 60%), var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
}
h1 span {
  color: var(--primary);
}
.lead {
  font-size: 18px;
  color: var(--text-2);
  margin: 20px 0 28px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hint {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 14px;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  padding: 10px;
  border-radius: 40px;
  background: #0f1714;
  box-shadow: 0 30px 60px rgba(6, 63, 49, 0.25);
}
.phone img {
  border-radius: 30px;
}

/* Seções */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--text-2);
  font-size: 17px;
  margin: 12px 0 0;
}

/* Recursos */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature h3 {
  font-size: 18px;
  margin-top: 16px;
}
.feature p {
  color: var(--text-2);
  margin: 8px 0 0;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Passos */
.steps {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  text-align: center;
  padding: 8px 12px;
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.steps h3 {
  margin-top: 14px;
  font-size: 18px;
}
.steps p {
  color: var(--text-2);
  margin: 8px 0 0;
}

/* Planos */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.plan h3 {
  font-size: 18px;
}
.price {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.price small {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 500;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 8px;
}
.plan li {
  padding-left: 26px;
  position: relative;
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--primary);
}
.plan li.off {
  color: var(--text-3);
}
.plan li.off::before {
  content: '✕';
  color: var(--text-3);
}
.plan .btn {
  margin-top: auto;
}
.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-blue {
  background: linear-gradient(160deg, #f7faff, var(--blue-soft));
  border-color: var(--blue-border);
}
.plan-blue h3,
.plan-blue li::before {
  color: var(--blue);
}
.plan-blue .badge {
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--blue-border);
}
.plan-gold {
  background: linear-gradient(160deg, #fffbf2, var(--gold-soft));
  border-color: var(--gold-border);
}
.plan-gold h3 {
  color: var(--gold);
}
.plan-gold li::before {
  color: var(--gold-icon);
}
.plan-gold .badge {
  color: var(--gold);
  background: #ffffff;
  border: 1px solid var(--gold-border);
}

/* Dúvidas */
details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  margin-top: 12px;
}
details:first-of-type {
  margin-top: 36px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  float: right;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
}
details[open] summary::after {
  content: '−';
}
details p {
  margin: 0 0 18px;
  color: var(--text-2);
}

/* Chamada final */
.cta {
  background: linear-gradient(135deg, #0b6048, var(--primary-dark));
  color: #fff;
  padding: 64px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  max-width: 620px;
}

/* Rodapé */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a {
  color: #fff;
  text-decoration: none;
}
.footer p {
  margin: 0 0 0 auto;
}

/* Páginas de texto (privacidade, termos) */
.doc {
  padding: 56px 0 80px;
}
.doc h1 {
  font-size: 34px;
}
.doc h2 {
  font-size: 22px;
  margin-top: 32px;
}
.doc p,
.doc li {
  color: var(--text-2);
}
.draft {
  background: #fef3dc;
  border: 1px solid #f5c26b;
  color: #7a4a00;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 20px 0 8px;
}

/* Telas menores */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .features,
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 40px 0 56px;
  }
  .features,
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }
  .topbar-actions .btn-ghost {
    display: none;
  }
  .section {
    padding: 60px 0;
  }
  .footer p {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
