/* Shared landing styles for the Alpacca marketing pages (index.html + es/index.html).
   Single source of truth — edit here, not per page. */
:root {
  color-scheme: light dark;
  --brand: #5145e8;
  --brand-strong: #4133cf;
  --brand-tint: #eef0ff;
  --ink: #0e1116;
  --ink-2: #3a3f47;
  --muted: #6b7280;
  --line: #e7e7ec;
  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --card: #ffffff;
  --header-bg: rgba(255,255,255,.82);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16,18,22,.06), 0 1px 3px rgba(16,18,22,.04);
  --shadow-md: 0 10px 30px rgba(16,18,22,.08);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Inter", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7c72f2;
    --brand-strong: #6a5ff0;
    --brand-tint: rgba(124,114,242,.16);
    --ink: #f3f4f7;
    --ink-2: #c4c8d0;
    --muted: #969ba6;
    --line: #292b32;
    --bg: #0d0e12;
    --bg-alt: #15161b;
    --card: #191b21;
    --header-bg: rgba(13,14,18,.82);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 12px 32px rgba(0,0,0,.55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(81,69,232,.28); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { color: var(--ink); font-weight: 600; }
.btn-ghost:hover { color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f3f2ff; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--brand); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand-strong); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { font-weight: 600; font-size: 14px; color: var(--muted); }
.lang:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* Hero */
.hero { background: var(--bg-alt); padding: 40px 0; } /* hero owns its vertical padding (single source), overriding the generic section padding top AND bottom */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start;
  padding-top: 0; padding-bottom: 0; /* vertical padding lives on .hero (single source). align-items:start so the tall phone shot doesn't vertically center the text. keep .wrap's side padding — a `padding` shorthand here would zero it */
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-tint); color: var(--brand);
  font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 36ch; margin: 22px 0 32px; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111318; color: #fff; padding: 10px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.2; }
.store strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }

/* Phone mockup — real app screenshot inside a CSS device frame */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: 316px; background: #0e0f13; border-radius: 46px; padding: 10px;
  box-shadow: 0 30px 60px rgba(16,18,22,.22);
}
.screen { border-radius: 38px; overflow: hidden; display: block; background: #0e0f13; }
.screen img { width: 100%; height: auto; display: block; }

/* Section scaffolding */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.head-left { text-align: left; margin-left: 0; }

/* Cards grid */
.grid { display: grid; gap: 20px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.section-alt .card { border-color: transparent; background: var(--card); box-shadow: var(--shadow-sm); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step .badge {
  position: relative; width: 64px; height: 64px; margin: 0 auto 20px;
  background: var(--brand-tint); color: var(--brand); border-radius: 999px; display: grid; place-items: center;
}
.step .num { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; max-width: 32ch; margin: 0 auto; }

/* CTA band */
.cta-band {
  background: var(--brand); color: #fff; border-radius: 28px; text-align: center;
  padding: 72px 32px; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 46ch; margin: 16px auto 30px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 14px 0 0; }
.foot-col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--brand); font-size: 14px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--brand-strong); }
.copyright { color: var(--muted); font-size: 13px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-col { order: -1; }
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 64px 0; }
  .hero { padding: 32px 0; }
}
@media (max-width: 520px) {
  .grid-5, .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* Mobile menu */
.mobile-menu { display: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 24px; color: var(--brand); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin: 16px 24px; }
