/* Gafy — landing estática de gafy.app
   Los colores salen de lib/core/theme/gafy_colors.dart (tema claro), para que
   la web y la app se vean como el mismo producto. */

:root {
  --primary: #1E40AF;
  --primary-alt: #7C3AED;
  --primary-tint: #EEF2FB;
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #EFEFF2;
  --outline: #E8E8ED;
  --ink: #111114;
  --ink-2: #6E6E73;
  --ink-3: #8E8E93;
  --income: #059669;
  --expense: #DC2626;
  --radius: 20px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; border-radius: 10px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--outline);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid var(--outline); border-radius: 999px; padding: 5px 12px;
}
.lang:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 24px; border-radius: 14px; text-decoration: none;
  font-weight: 600; font-size: 16px; line-height: 1;
  box-shadow: 0 10px 24px -12px rgba(30, 64, 175, .8);
}
.btn:hover { background: #1B3A9E; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--outline); box-shadow: none; padding: 14px 22px;
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--primary); box-shadow: none; }
.btn-light:hover { background: #EDF1FF; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

.store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 20px 11px; border-radius: 14px;
}
.store:hover { background: #2A2A30; }
.store svg { width: 22px; height: 22px; flex: 0 0 auto; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.15; }
.store small { font-weight: 500; font-size: 11px; opacity: .78; letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; background:
  radial-gradient(900px 420px at 50% -180px, rgba(124, 58, 237, .16), transparent 70%),
  radial-gradient(700px 360px at 12% -60px, rgba(30, 64, 175, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px;
  font-size: 13.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-tint); border-radius: 999px; padding: 7px 15px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 58px); line-height: 1.05;
  letter-spacing: -.035em; font-weight: 800;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary), var(--primary-alt));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 0 28px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }
.fineprint { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---------- Maqueta del teléfono (CSS, sin imágenes: LCP inmediato) ---------- */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 300px; padding: 12px; border-radius: 44px; background: #111114;
  box-shadow: 0 50px 90px -34px rgba(17, 17, 20, .55);
}
.screen { background: var(--bg); border-radius: 33px; padding: 22px 16px 18px; }
.greet { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.balance {
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  border-radius: 18px; padding: 16px; color: #fff;
  box-shadow: 0 14px 28px -16px rgba(124, 58, 237, .9);
}
.balance .label { font-size: 11.5px; opacity: .85; }
.balance .amount { display: block; margin-top: 4px; font-size: 27px; letter-spacing: -.02em; }
.balance .amount small { font-size: 13px; opacity: .8; }
.balance .split { display: flex; gap: 14px; margin-top: 12px; font-size: 11px; }
.balance .split span { display: flex; flex-direction: column; opacity: .95; }
.balance .split b { font-size: 13px; }
.chips { display: flex; gap: 8px; margin-top: 14px; }
.chip {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 600;
  padding: 9px 0; border-radius: 12px; background: var(--surface);
}
.chip.red { color: var(--expense); background: #FCEBEB; }
.chip.green { color: var(--income); background: #E6F5EF; }
.chip.blue { color: var(--primary); background: var(--primary-tint); }
.sect { margin: 16px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc {
  background: var(--surface); border: 1px solid var(--outline); border-radius: 13px;
  padding: 10px; font-size: 11px; color: var(--ink-2);
}
.acc b { display: block; margin-top: 3px; font-size: 13px; color: var(--ink); }
.acc.add {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; border-color: #C6D2F2; color: var(--primary); font-weight: 600;
}

/* ---------- Bandas ---------- */
.band { padding: 76px 0; }
.band.alt { background: var(--bg); }
.band h2 {
  margin: 0 0 12px; font-size: clamp(27px, 3.6vw, 38px);
  letter-spacing: -.025em; font-weight: 800; text-align: center;
}
.sub { margin: 0 auto 44px; color: var(--ink-2); text-align: center; max-width: 44em; }
.sub.left { text-align: left; margin-left: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius); padding: 26px 24px;
}
.card .ico { font-size: 26px; line-height: 1; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px 24px; }
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  color: #fff; font-weight: 700;
}
.steps h3 { margin: 0 0 8px; font-size: 17.5px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col h2 { text-align: left; }
.ticks { margin: 0 0 26px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-2); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--income); font-weight: 700;
}

.report { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; }
.report .sect { margin-top: 0; }
.bar { display: grid; grid-template-columns: 108px 1fr 52px; align-items: center; gap: 12px; margin-bottom: 13px; font-size: 13px; }
.bar span { color: var(--ink-2); white-space: nowrap; }
.bar i { display: block; height: 9px; border-radius: 999px; background: var(--surface-2); position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 999px; }
.bar b { text-align: right; font-size: 13px; }
.delta { margin: 16px 0 0; font-size: 13px; color: var(--income); font-weight: 600; }

.price-card {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 24px; padding: 40px 32px;
}
.price-card h3 {
  margin: 0 0 12px; font-size: 26px; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--primary), var(--primary-alt));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-card p { color: var(--ink-2); }
.price-card .btn { margin-top: 14px; }

/* ---------- FAQ ---------- */
details {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 16px; padding: 4px 20px; margin-bottom: 10px;
}
summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }

/* ---------- Cierre ---------- */
.closer {
  padding: 84px 0; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
}
.closer h2 { margin: 0 0 12px; font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -.025em; font-weight: 800; }
.closer p { margin: 0 0 28px; opacity: .9; }

/* ---------- Pie ---------- */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--outline); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner .muted { margin: 12px 0 0; color: var(--ink-3); font-size: 14.5px; max-width: 32em; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--primary); }
.copy { margin: 36px 0 0; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 48px; }
  .nav { display: none; }
  .two-col h2, .sub.left { text-align: center; }
  .sub.left { margin-left: auto; }
  .ticks { max-width: 26em; margin-inline: auto; }
  .two-col .btn { display: block; text-align: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .band { padding: 56px 0; }
  .cta-row .store, .cta-row .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
