/* Pulso do Campo — web
   Tokens espelhados de apps/meu-talhao/theme/{foundation,semantic,typography}.ts
   Fonte, cores, raios e sombras são os mesmos do app iOS. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* semantic.dark — backgrounds */
  --bg: #05070a;
  --bg-forest: #080f0d;
  --bg-mid: #0a1014;
  --bg-deep: #060809;
  --surface: #0f1419;
  --surface-elevated: #161b22;
  --surface-subtle: rgba(255, 255, 255, 0.05);

  /* semantic.dark — texto */
  --text: #ffffff;
  --text-sub: #94a3b8;
  --text-muted: #717f94;

  /* semantic.dark — bordas */
  --border: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --divider: rgba(255, 255, 255, 0.06);

  /* colors.primary + shell */
  --primary-400: #4ade80;
  --primary-500: #10b981;
  --primary-600: #059669;
  --cta-primary: #047857; /* único tom da escala que passa AA com texto branco */
  --primary-soft: rgba(16, 185, 129, 0.1);
  --primary-border: rgba(16, 185, 129, 0.28);
  --primary-glow: rgba(16, 185, 129, 0.18);

  /* colors.warning — o dourado do app (mark do radar) */
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --cta-warning: #b45309;
  --warning-soft: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(217, 119, 6, 0.28);

  /* foundation.borderRadius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: Menlo, ui-monospace, monospace;

  /* foundation.layout.contentMaxWidth = 760 no app; web usa coluna maior */
  --content-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* semantic.screenBackgroundGradient.stops */
  background-color: var(--bg);
  background-image: linear-gradient(
    180deg,
    var(--bg-forest) 0%,
    #070b0b 30%,
    var(--bg-deep) 60%,
    var(--bg) 100%
  );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* semantic.screenBackgroundGradient.glow — discreto, como no app */
.bg-orb-1 {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb-2 {
  display: none; /* o app não tem glow dourado de fundo */
}

.shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header — shell.headerBg do app */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
}

.brand-logo {
  border-radius: var(--r-md);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary-500);
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* typography.overline — badge/pill do app */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-400);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* typography.display.hero, escalado para web */
h1 {
  font-family: var(--font);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.6px;
  max-width: 880px;
  margin-bottom: 20px;
}

h1 span {
  color: var(--primary-500);
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-sub);
  max-width: 620px;
  margin-bottom: 32px;
}

/* CTA */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* foundation.layout.touchTarget = 44 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97); /* foundation.animation.pressScale */
}

.btn-primary {
  background: var(--cta-primary);
  color: #ffffff;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--border-highlight);
}

.cta-note {
  margin-bottom: 44px;
  color: var(--text-muted);
  font-size: 13px;
}

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Stats */
.stats-strip {
  display: flex;
  gap: 48px;
  justify-content: center;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 20px 0;
  width: 100%;
  margin-bottom: 88px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-500);
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
}

/* Seções */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: var(--font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-sub);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; /* layout.cardGap */
  margin-bottom: 96px;
}

/* Card = surface + border do app, raio 20 (r-xl) */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  background: var(--surface-elevated);
  border-color: var(--border-highlight);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-400);
  margin-bottom: 18px;
}

/* Phosphor bold — mesma família de ícone do app (phosphor-react-native) */
.feature-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.55;
}

/* Planos */
.pricing-section {
  padding: 48px 0 96px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border: 1px solid var(--warning-border);
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface));
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning-500);
  color: #1c1917;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* typography.price — dígitos tabulares, como as cotações do app */
.price {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 18px 0 4px;
}

.price span {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  color: var(--text-sub);
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-500);
  font-weight: 700;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 40px;
  border-top: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  h1 { font-size: 34px; letter-spacing: -1px; }
  .section-title h2 { font-size: 26px; }
  .lede { font-size: 16px; }
  .hero { padding: 48px 0 32px; }
  .stats-strip { gap: 24px; }
  .site-header { padding: 16px 0; }
  .nav { gap: 16px; }
  .btn { width: 100%; }
  .cta-row { width: 100%; }
}

/* Páginas legais (privacidade, termos, excluir conta) */
.legal {
  max-width: 720px; /* ≈ layout.contentMaxWidth do app */
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 8px;
}

.legal .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.legal p {
  color: var(--text-sub);
  margin-bottom: 14px;
}

.legal ul {
  list-style: none;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal ul li {
  color: var(--text-sub);
  padding-left: 20px;
  position: relative;
}

.legal ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-500);
}

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

.legal a:hover {
  text-decoration: underline;
}

.legal strong {
  color: var(--text);
}

/* Princípios de privacidade — mesma linguagem de card do app */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
}

.principle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
}

.principle h3 {
  margin: 14px 0 6px;
}

.principle p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.principle-svg {
  width: 24px;
  height: 24px;
  color: var(--primary-400);
  display: block;
}
