/* Borrow Mode — landing site styles */
:root {
  --green: #1b8a5a;
  --green-dark: #0e5c3a;
  --green-600: #178050;
  --green-light: #e6f4ec;
  --green-tint: #f0f8f3;
  --ink: #0f2018;
  --muted: #5b6b62;
  --line: #e2ebe5;
  --bg: #f4f8f5;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 18px 40px -20px rgba(14, 92, 58, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(14, 92, 58, 0.3);
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 7px 14px;
  border-radius: 999px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2.title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 14px auto 0; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(244, 248, 245, 0.8);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  object-fit: cover; display: block;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-cta { display: none; } /* only shown inside the mobile dropdown menu */

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; margin: 22px 0 6px; }
.hero h1 .accent { color: var(--green); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 500px; margin: 16px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* Phone mockup */
.phone {
  width: 300px; max-width: 100%;
  margin: 0 auto;
  background: #0d1512;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone-screen { background: var(--white); border-radius: 32px; padding: 22px 18px 20px; }
.phone-notch { width: 110px; height: 24px; background: #0d1512; border-radius: 0 0 16px 16px; margin: -22px auto 12px; }
.phone-lock {
  width: 54px; height: 54px; border-radius: 16px; margin: 4px auto 12px;
  overflow: hidden;
}
.phone-lock img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-title { text-align: center; font-weight: 800; font-size: 20px; }
.phone-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.app-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line);
  margin-bottom: 8px; font-weight: 600; font-size: 14px;
}
.app-row .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.app-row .radio { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9d6cf; }
.app-row.selected { border-color: var(--green); background: var(--green-tint); }
.app-row.selected .radio { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--white); }
.phone-btn {
  margin-top: 12px; text-align: center; background: var(--green); color: #fff;
  font-weight: 700; padding: 13px; border-radius: 14px; font-size: 15px;
}
.phone-foot { text-align: center; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- Problem strip ---------- */
.strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.strip-inner h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.strip-inner p { color: var(--muted); font-size: 18px; margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step .num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--green-light);
  color: var(--green-dark); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Examples ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card .ic-lg {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-light); font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--muted); margin-top: 8px; }

/* ---------- Safety grid ---------- */
.safe { background: linear-gradient(180deg, var(--green-tint), var(--white)); }
.safe-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.safe-item { text-align: center; }
.safe-item .ic {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--white);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow-sm);
}
.safe-item h4 { font-size: 15px; font-weight: 700; }
.safe-item p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.note-honest {
  margin: 40px auto 0; max-width: 720px; text-align: center; font-size: 14px; color: var(--muted);
  background: var(--white); border: 1px dashed var(--line); border-radius: 14px; padding: 16px 20px;
}

/* ---------- CTA ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.cta-box p { color: rgba(255, 255, 255, 0.85); font-size: 18px; margin: 12px auto 26px; max-width: 520px; }
.cta-box .btn-primary { background: #fff; color: var(--green-dark); }
.cta-box .btn-primary:hover { background: #f0f0f0; }
.badge-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 12px; }
.footer p.desc { color: var(--muted); max-width: 320px; font-size: 14px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--ink); font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ---------- Legal / privacy page ---------- */
.legal { background: var(--white); }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; }
.legal .updated { color: var(--muted); margin: 10px 0 32px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { color: #34443b; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin-bottom: 8px; }
.legal .callout {
  background: var(--green-tint); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 18px 20px; margin: 20px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .safe-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .nav-toggle { display: block; }
  /* The header CTA pill is too wide for the mobile bar — move it into the menu. */
  .nav-cta .btn { display: none; }
  .nav-links.open .menu-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green); color: #fff; font-weight: 600;
    padding: 12px 16px; border-radius: 12px;
  }
  .nav-links.open .menu-cta:hover { color: #fff; }
}
@media (max-width: 520px) {
  .steps, .safe-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
