/* ===============================
         APP THEME TOKENS (FROM IONIC)
      ============================== */
:root {
  --brand-black: #111827;
  --brand-black-top: #2a2a2a;
  --brand-black-bottom: #0d0d0d;
  --brand-white: #ffffff;

  --bg-soft: #f5f5f7;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --stroke: rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-1: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 🔑 FIX: full-height layout */
html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text",
    system-ui, sans-serif;
  background: var(--bg-soft);
  color: var(--brand-black);

  display: flex; /* 🔑 */
  flex-direction: column; /* 🔑 */
}

/* 🔑 page now grows */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px clamp(12px, 4vw, 20px) 64px;

  flex: 1; /* 🔑 pushes footer down when content is short */
  width: 100%;
}

/* ===============================
         NAV
      ============================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.nav-left img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-links {
  font-size: 14px;
  color: var(--muted);
}

/* ===============================
         HERO
      ============================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-text small {
  color: var(--muted);
  font-size: 14px;
}

.hero-text h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  margin: 12px 0;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-primary {
  background: var(--brand-black);
  color: var(--brand-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--brand-black);
  cursor: pointer;
}

/* ===============================
         HERO CARD
      ============================== */
.hero-card {
  background: linear-gradient(
    180deg,
    var(--brand-black-top),
    var(--brand-black-bottom)
  );
  color: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-strong);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-card-header img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.stat {
  text-align: center;
}

.stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.stat strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

/* ===============================
         TRUST STRIP (SAFE ADDITION)
      ============================== */
.trust {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.trust span {
  background: #ffffff;
  border: 1px solid var(--stroke);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1);
}

/* ===============================
         WHY
      ============================== */
.section {
  margin-top: 56px;
}

.section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.section p {
  font-size: 14px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--stroke);
}

/* ===============================
          FOOTER — ALIGNED WITH CONTENT
        =============================== */

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), transparent);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 20px); /* 🔑 matches .page side padding */

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
}

.card p {
  font-size: 13px;
  color: var(--muted);
}

.footer-links a {
  transition: opacity 0.2s;
  font-size: 14px;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* On small screens, stack them */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
