/* MiAhorro Pocket landing page. Palette from the brand sheet. */
:root {
  --deep:   #0d1a14;
  --bg:     #080a09;
  --card:   #101512;
  --card-2: #141c17;
  --border: #1e2b23;
  --green:  #00e676;
  --green-d:#00b85a;
  --gold:   #f5c542;
  --muted:  #6f9a84;
  --text:   #eaf5ef;
  --text-2: #9cbcaa;
  --danger: #f04545;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #04130b; }
.btn-primary:hover { background: #2affa0; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 10, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* ── Shared ──────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
.accent { color: var(--green); }
.lead { font-size: 18px; color: var(--text-2); margin: 22px 0 32px; max-width: 540px; }
.pos { color: var(--green); }
.neg { color: var(--danger); }

.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(0, 230, 118, 0.10), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(245, 197, 66, 0.06), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--text-2); font-size: 14.5px; }
.hero-points li::before { content: '✓'; color: var(--green); margin-right: 8px; font-weight: 700; }

/* ── Phone mockup ────────────────────────────────────── */
.phone {
  justify-self: center;
  width: 300px; padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1d2a22, #0c120f);
  border: 1px solid #263a2e;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.phone-screen {
  border-radius: 34px; background: var(--bg);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 10px;
  min-height: 560px;
}
.m-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 0 4px 6px; }
.m-top img { width: 26px; height: 26px; }
.m-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.m-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.m-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.m-mid { font-size: 17px; font-weight: 700; }
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.m-chip { display: flex; flex-direction: column; font-size: 11.5px; font-weight: 600; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 5px 8px; }
.m-chip small { font-size: 10px; color: var(--muted); font-weight: 500; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 8px; }
.m-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--green), var(--green-d)); opacity: .85; }
.m-list { gap: 8px; }
.m-list div { display: flex; justify-content: space-between; font-size: 12.5px; }
.m-list span { color: var(--text-2); }

/* ── Features ────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: #2c4636; transform: translateY(-3px); }
.feature h3 { margin: 18px 0 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
.f-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 230, 118, 0.08); border: 1px solid rgba(0, 230, 118, 0.2);
}
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Spotlight splits ────────────────────────────────── */
.split { padding: 72px 0; }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy p { color: var(--text-2); font-size: 17px; margin: 18px 0 22px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0, 230, 118, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2300e676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.t-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.t-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-row div { display: flex; flex-direction: column; }
.t-row small { color: var(--muted); font-size: 12.5px; }
.t-row b { font-size: 22px; letter-spacing: -0.01em; }
.t-arrow { font-size: 26px; color: var(--gold); }
.t-rate { font-size: 13px; color: var(--text-2); background: var(--card-2); border-radius: 10px; padding: 8px 12px; align-self: flex-start; }

/* ── Steps ───────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.steps h3 { margin: 16px 0 6px; }
.steps p { color: var(--text-2); font-size: 15px; }
.step-n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #04130b; font-weight: 700;
}

/* ── FAQ ─────────────────────────────────────────────── */
details { border-bottom: 1px solid var(--border); padding: 20px 4px; }
summary {
  cursor: pointer; list-style: none; 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(--green); font-size: 22px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); margin-top: 10px; font-size: 15.5px; }

/* ── CTA band & footer ───────────────────────────────── */
.cta-band {
  padding: 96px 0;
  background: radial-gradient(700px 300px at 50% 0%, rgba(0, 230, 118, 0.12), transparent 70%), var(--deep);
  border-top: 1px solid var(--border);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-inner h2 { max-width: 620px; }
.footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 32px; width: auto; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner, .split-inner { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-copy { order: 0; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 64px; }
  .nav-logo img { height: 32px; }
  .nav-cta .btn-ghost { display: none; }   /* Sign in stays available in the hero */
  .hero { padding: 48px 0 56px; }
  .section { padding: 64px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 300px; }
    .t-row { flex-direction: column; align-items: flex-start; }
  .t-arrow { transform: rotate(90deg); }
  .btn-lg { flex: 1; }
}

/* ── Real app screenshots in a phone frame ───────────── */
.shot { position: relative; justify-self: center; margin: 0; }
.shot-phone {
  width: 300px; padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #1d2a22, #0c120f);
  border: 1px solid #263a2e;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.shot-phone img { width: 100%; height: auto; border-radius: 34px; }
.shot-badge {
  position: absolute; left: -190px; bottom: 48px; width: 340px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.shot-badge .t-row b { font-size: 19px; white-space: nowrap; }
.shot-badge .t-row small { white-space: nowrap; }
@media (max-width: 1200px) {
  .shot-badge { left: -70px; }
}
@media (max-width: 960px) {
  .shot-badge { position: static; width: 100%; max-width: 320px; margin: 20px auto 0; }
}
@media (max-width: 600px) {
  .shot-phone { width: 100%; max-width: 280px; }
}

/* ── Who it's for ─────────────────────────────────────── */
.section-lead { color: var(--text-2); font-size: 17px; margin-top: 16px; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.who-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  border-top: 3px solid var(--green);
}
.who-card h3 { margin-bottom: 8px; }
.who-card p { color: var(--text-2); font-size: 15px; }

/* Highlighted explanation inside a spotlight */
.callout {
  background: rgba(0, 230, 118, 0.06); border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 22px;
  color: var(--text-2); font-size: 15.5px; line-height: 1.6;
}
.callout b { color: var(--text); display: block; margin-bottom: 4px; }

@media (max-width: 960px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .who-grid { grid-template-columns: 1fr; } }
