/* Amiguito landing — tokens mirror the Figma design system (_Docs/figma.md). */
:root {
  /* Brand */
  --brand: #FFC93C;
  --brand-strong: #F0B400;
  --secondary: #2F7D52;

  /* Light theme (default) */
  --bg-screen: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1ECE4;
  --text-primary: #1F1B16;
  --text-secondary: #6B6259;
  --text-on-brand: #1F1B16;
  --border: #E7E0D6;

  --semantic-good: #2F7D52;
  --semantic-alert: #D9542B;
  --semantic-info: #2D6FB3;
  --semantic-warn: #C88A00;

  /* Layout tokens */
  --sp-xs: 4px;  --sp-sm: 8px;  --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px; --sp-2xl: 48px;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-full: 999px;

  --shadow-card: 0 8px 24px rgba(60, 44, 20, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-screen: #17130F;
    --bg-card: #221D17;
    --bg-subtle: #2B2419;
    --text-primary: #F5F0E8;
    --text-secondary: #B7AEA2;
    --text-on-brand: #1F1B16;
    --border: #37301F;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-screen);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

a { color: var(--secondary); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg-screen) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand .logo {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  display: grid; place-items: center;
  font-size: 20px;
}
.nav-links { display: flex; gap: var(--sp-lg); }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Hero */
.hero {
  padding: var(--sp-2xl) 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-2xl);
  align-items: center;
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
}
.eyebrow {
  display: inline-block;
  background: var(--brand);
  color: var(--text-on-brand);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: var(--sp-lg);
}
@media (max-width: 820px) { .hero p.lead { margin-inline: auto; } }

.badges { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
@media (max-width: 820px) { .badges { justify-content: center; } }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  min-height: 52px;
}
.badge svg { flex-shrink: 0; }
.badge .b-small { font-size: 10px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; }
.badge .b-large { font-size: 18px; font-weight: 600; line-height: 1.1; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 260px;
  aspect-ratio: 9 / 19;
  background: var(--bg-card);
  border: 8px solid #1F1B16;
  border-radius: 40px;
  box-shadow: var(--shadow-card);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  overflow: hidden;
}
.phone .greet { font-size: 20px; font-weight: 700; }
.phone .mini-card {
  background: var(--bg-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-md);
}
.phone .mini-card .big { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phone .mini-card .up { color: var(--semantic-alert); font-size: 13px; font-weight: 600; }
.phone .mini-card .down { color: var(--semantic-good); font-size: 13px; font-weight: 600; }
.phone .mini-card .label { font-size: 12px; color: var(--text-secondary); }
.phone .row { display: flex; gap: var(--sp-sm); }
.phone .row .mini-card { flex: 1; }

/* Sections */
section { padding: var(--sp-2xl) 0; }
.section-title {
  font-size: clamp(26px, 4vw, 34px);
  text-align: center;
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto var(--sp-xl);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-lg);
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-card);
}
.feature .icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: var(--sp-md);
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}
.feature h3 { font-size: 20px; margin-bottom: var(--sp-xs); }
.feature p { color: var(--text-secondary); font-size: 15px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-radius: var(--r-lg);
  padding: var(--sp-2xl);
  text-align: center;
  color: var(--text-on-brand);
}
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: var(--sp-sm); }
.cta p { margin-bottom: var(--sp-lg); font-size: 17px; }
.cta .badges { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-xl) 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; margin-left: var(--sp-lg); }
.site-footer a:hover { color: var(--text-primary); }
.footer-links { display: flex; }
@media (max-width: 560px) {
  .footer-links { flex-direction: column; }
  .footer-links a { margin-left: 0; }
}

/* Legal / content pages */
.legal { padding: var(--sp-2xl) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: 34px; margin-bottom: var(--sp-sm); }
.legal .updated { color: var(--text-secondary); margin-bottom: var(--sp-xl); font-size: 14px; }
.legal h2 { font-size: 22px; margin: var(--sp-xl) 0 var(--sp-sm); }
.legal p, .legal li { color: var(--text-primary); margin-bottom: var(--sp-sm); }
.legal ul { padding-left: var(--sp-lg); }
.back-link { display: inline-block; margin-bottom: var(--sp-lg); font-weight: 600; text-decoration: none; }
