/* ============================================================
   Mi Feria · Public Site
   Source styles for landing + legal pages.
   ============================================================ */

:root {
  --green: #1D9E75;
  --greenD: #0F6B4E;
  --greenL: #6BD5A8;
  --paper: #F5F1E8;
  --paper2: #EFE9DA;
  --ink: #0E0E0F;
  --ink2: #1A1A1C;
  --rule: rgba(14, 14, 15, 0.08);
  --warning-tint: rgba(229, 162, 58, 0.12);
  --warning-border: rgba(229, 162, 58, 0.6);
  --warning-text: #6f4900;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:hover { color: var(--greenD); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Top nav (shared)
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.4px;
  color: var(--ink); text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.nav .links {
  margin-left: auto;
  display: flex; gap: 22px; align-items: center;
}
.nav .links a {
  font-size: 13px; color: #555;
  text-decoration: none; font-weight: 500;
}
.nav .links a:hover { color: var(--green); }
.nav .cta {
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600;
}
.nav .cta:hover { background: var(--green); color: white; }

@media (max-width: 640px) {
  .nav { padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
  .nav .links { width: 100%; justify-content: flex-end; gap: 16px; }
  .nav .links a:not(.cta) { display: none; }
}

/* ============================================================
   Footer (shared)
   ============================================================ */

.footer {
  background: var(--ink); color: var(--paper);
  padding: 60px 28px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}
.footer .brand { color: var(--paper); }
.footer h4 {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--greenL); font-weight: 700;
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer a { color: rgba(245, 241, 232, 0.75); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--paper); }
.copy { font-size: 13px; color: rgba(245, 241, 232, 0.55); margin-top: 14px; }

@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   Landing — hero
   ============================================================ */

.hero {
  padding: 60px 28px 80px;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(29, 158, 117, 0.12); color: var(--greenD);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.hero h1 {
  font-size: 64px; font-weight: 600; letter-spacing: -2.5px;
  line-height: 1.02; margin: 18px 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead {
  font-size: 19px; color: #444; max-width: 560px;
  line-height: 1.5; margin: 0 0 32px;
}
@media (max-width: 640px) {
  .hero h1 { font-size: 44px; letter-spacing: -1.5px; }
}

.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.badge:hover { transform: translateY(-2px); background: var(--green); color: white; }
.badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.badge .t1 { font-size: 10px; opacity: 0.75; letter-spacing: 1px; text-transform: uppercase; line-height: 1; }
.badge .t2 { font-size: 16px; font-weight: 600; line-height: 1.1; margin-top: 2px; }
.badge.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.badge.outline:hover { background: var(--ink); color: var(--paper); }

/* Hero phone mockup */
.hero-visual {
  position: relative; width: 100%; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.hero-pennants {
  position: absolute; top: -10px; left: -20px; right: -20px; height: 80px;
  z-index: 0;
}
.phone-mock {
  width: 320px; aspect-ratio: 9 / 19;
  background: var(--ink); border-radius: 42px;
  border: 4px solid var(--ink2); padding: 12px;
  box-shadow: 0 30px 60px rgba(14, 14, 15, 0.25);
  position: relative; z-index: 1;
  transform: rotate(-3deg);
}
.phone-mock::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; background: var(--ink); border-radius: 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px;
  background: var(--paper); padding: 30px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.phone-screen .greet { font-size: 11px; color: #888; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
.phone-screen .title { font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.6px; }
.phone-screen .card-hero {
  background: linear-gradient(135deg, var(--green), var(--greenD));
  color: var(--paper);
  border-radius: 14px; padding: 14px;
}
.phone-screen .card-hero .lbl {
  font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 700; opacity: 0.85;
}
.phone-screen .card-hero .amt { font-size: 22px; font-weight: 700; margin-top: 4px; }
.phone-screen .card-hero .sub { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.phone-screen .progress {
  height: 4px; background: rgba(255, 255, 255, 0.25);
  border-radius: 2px; margin-top: 10px; overflow: hidden;
}
.phone-screen .progress > i {
  display: block; height: 100%; background: var(--paper);
}
.phone-screen .row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.phone-screen .row .ico {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(29, 158, 117, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.phone-screen .row .lbl { font-size: 11px; color: var(--ink); }
.phone-screen .row .amt { margin-left: auto; font-size: 12px; font-weight: 600; color: #C14A2B; }
.phone-screen .row .amt.in { color: var(--green); }

/* ============================================================
   Landing — section helpers
   ============================================================ */

.row {
  max-width: 1200px; margin: 0 auto;
  padding: 70px 28px;
}
.row-head { max-width: 720px; }
.kicker {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--greenD); font-weight: 700;
}
.row-head h2 {
  font-size: 40px; font-weight: 600; letter-spacing: -1.4px;
  line-height: 1.1; margin: 14px 0 16px; text-wrap: balance;
}
.row-head p {
  font-size: 17px; color: #444; max-width: 580px; line-height: 1.5;
}
@media (max-width: 640px) {
  .row { padding: 50px 22px; }
  .row-head h2 { font-size: 30px; letter-spacing: -1px; }
}

.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 36px;
}
.feat {
  background: white; border: 1px solid var(--rule);
  border-radius: 16px; padding: 28px 24px;
}
.feat .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(29, 158, 117, 0.12); color: var(--greenD);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.feat p { font-size: 14.5px; color: #555; margin: 0; line-height: 1.55; }
@media (max-width: 880px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* Screenshot strip */
.ss-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 18px; padding: 0 28px 60px; max-width: 1320px; margin: 0 auto;
}
.ss { display: flex; flex-direction: column; gap: 10px; }
.ss-inner {
  aspect-ratio: 9 / 19; border-radius: 24px;
  background: var(--paper2);
  padding: 16px 14px; box-shadow: 0 8px 24px rgba(14, 14, 15, 0.08);
  font-size: 11px; overflow: hidden;
}
.ss-label {
  text-align: center; font-size: 11px; color: #888;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
}
@media (max-width: 1080px) {
  .ss-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ss-row { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 22px 40px; }
}

/* Manifesto / postura */
.manifesto {
  background: var(--ink); color: var(--paper);
  padding: 80px 28px; position: relative; overflow: hidden;
}
.manifesto-pennants {
  position: absolute; top: -8px; left: 0; right: 0;
  width: 100%; height: 80px; pointer-events: none;
}
.manifesto-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.manifesto .kicker { color: var(--greenL); }
.manifesto h2 {
  font-size: 44px; font-weight: 600; letter-spacing: -1.4px;
  line-height: 1.1; margin: 16px 0 24px; text-wrap: balance;
}
.manifesto h2 em { font-style: normal; color: var(--greenL); }
.manifesto p {
  font-size: 17px; color: rgba(245, 241, 232, 0.78);
  max-width: 700px; line-height: 1.6;
}
.checks {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 28px; margin-top: 28px;
}
.check {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: rgba(245, 241, 232, 0.92);
}
.check svg {
  flex-shrink: 0; color: var(--greenL);
}
@media (max-width: 720px) {
  .manifesto h2 { font-size: 30px; letter-spacing: -1px; }
  .checks { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}
@media (max-width: 460px) {
  .checks { grid-template-columns: 1fr; }
}

.final-cta {
  padding: 80px 28px; text-align: center; max-width: 720px; margin: 0 auto;
}
.final-cta h2 {
  font-size: 40px; font-weight: 600; letter-spacing: -1.2px;
  line-height: 1.1; margin: 0 0 14px;
}
.final-cta p { font-size: 17px; color: #444; margin: 0 0 32px; }
.final-cta .badges { justify-content: center; }

/* ============================================================
   Legal pages
   ============================================================ */

.page-legal .nav {
  background: var(--ink); color: var(--paper);
  border-bottom: none;
}
.page-legal .nav a, .page-legal .brand { color: var(--paper); }
.page-legal .nav .links a { color: rgba(245, 241, 232, 0.75); }
.page-legal .nav .links a:hover { color: var(--paper); }
.page-legal .nav .cta { background: var(--green); color: white; }

.legal-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 60px 28px 100px;
}
.legal-wrap h1 {
  font-size: 42px; font-weight: 600; letter-spacing: -1.4px;
  line-height: 1.05; margin: 0 0 8px;
}
.legal-meta {
  font-size: 13px; color: #888;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
}
.legal-lede {
  font-size: 18px; color: #444;
  margin: 24px 0 36px; line-height: 1.55;
  padding: 18px 22px;
  background: rgba(29, 158, 117, 0.08);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
}
.legal-toc {
  background: white; border: 1px solid var(--rule); border-radius: 12px;
  padding: 18px 22px; margin: 24px 0 36px;
}
.legal-toc h4 {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #888; font-weight: 700; margin: 0 0 10px;
}
.legal-toc ol {
  margin: 0; padding-left: 20px; columns: 2; column-gap: 28px;
  font-size: 14px;
}
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

.legal-wrap h2 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.6px;
  margin: 44px 0 12px; line-height: 1.2;
}
.legal-wrap h3 {
  font-size: 16px; font-weight: 600; margin: 22px 0 6px;
  color: var(--greenD); letter-spacing: 0.2px;
}
.legal-wrap p, .legal-wrap li {
  font-size: 15.5px; color: #2a2a2a; line-height: 1.65;
}
.legal-wrap ul, .legal-wrap ol { padding-left: 20px; }
.legal-wrap li { margin: 6px 0; }
.legal-wrap code {
  background: rgba(29, 158, 117, 0.1); padding: 1px 6px;
  border-radius: 4px; font-size: 13.5px; color: var(--greenD);
  font-family: ui-monospace, monospace;
}
.legal-wrap .warn-block {
  background: var(--warning-tint);
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  padding: 16px 22px; margin: 18px 0;
  color: var(--warning-text);
  font-size: 15px;
}
.legal-footnote {
  margin-top: 56px; padding: 22px;
  background: var(--paper2); border-radius: 12px;
  font-size: 13.5px; color: #555; line-height: 1.6;
}
.legal-footnote strong { color: var(--ink); }

@media (max-width: 600px) {
  .legal-wrap h1 { font-size: 32px; letter-spacing: -1px; }
  .legal-wrap { padding: 40px 22px 80px; }
}

/* ============================================================
   404 page
   ============================================================ */

.notfound {
  max-width: 540px; margin: 0 auto;
  padding: 100px 28px;
  text-align: center;
}
.notfound .icon {
  width: 96px; height: 96px; margin: 0 auto 24px;
  border-radius: 24px;
  background: rgba(29, 158, 117, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.notfound h1 {
  font-size: 36px; font-weight: 600; letter-spacing: -1.2px;
  margin: 0 0 10px;
}
.notfound p { font-size: 17px; color: #555; margin: 0 0 28px; }
