/* ================================================================
   ZuluCash — styles.css
   Palette: White · Light Grey · Lime Green · Logo Green · Charcoal
   Inspired by: Cash App — open, spacious, bold
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@500;600;700;800;900&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand greens */
  --lime:        #39D353;
  --lime-light:  #5CDF73;
  --lime-dark:   #2BB844;
  --lime-pale:   #F0FDF4;
  --logo-green:  #3CB941;
  --logo-dark:   #2E8B34;

  /* Neutrals */
  --white:       #FFFFFF;
  --off-white:   #F9FAFB;
  --grey-50:     #F4F6F8;
  --grey-100:    #EAECF0;
  --grey-200:    #D0D5DD;
  --grey-400:    #98A2B3;
  --grey-600:    #475467;
  --grey-800:    #1D2939;
  --charcoal:    #111111;

  /* Functional */
  --green-bg:    #ECFDF3;
  --green-text:  #027A48;
  --red-bg:      #FEF3F2;
  --red-text:    #B42318;
  --amber-bg:    #FFFAEB;
  --amber-text:  #B54708;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 8px -2px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03);
  --shadow-xl: 0 20px 24px -4px rgba(0,0,0,.08), 0 8px 8px -4px rgba(0,0,0,.03);
  --shadow-lime: 0 8px 24px rgba(57,211,83,.28);

  /* Motion */
  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --dur:    0.2s;
  --dur-md: 0.32s;

  /* Type */
  --font:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Poppins', 'Inter', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--display); line-height: 1.15; font-weight: 700; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }

/* ── Typography scale ───────────────────────────────────────────── */
.t-hero   { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.t-h1     { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.t-h2     { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.t-h3     { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
.t-body   { font-size: 1rem; line-height: 1.7; color: var(--grey-600); }
.t-sm     { font-size: 0.875rem; }
.t-xs     { font-size: 0.75rem; }
.t-lime   { color: var(--lime-dark); }
.t-muted  { color: var(--grey-400); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-full);
  font-size: 0.95rem; font-weight: 600; font-family: var(--display);
  letter-spacing: .01em; white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
  cursor: pointer; border: none;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-lime {
  background: var(--lime);
  color: var(--charcoal);
  box-shadow: var(--shadow-lime);
}
.btn-lime:hover { background: var(--lime-light); box-shadow: 0 12px 32px rgba(57,211,83,.38); }

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-dark:hover { background: #222; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--grey-200);
  color: var(--grey-800);
}
.btn-outline:hover { border-color: var(--lime); color: var(--charcoal); background: var(--lime-pale); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.18);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.btn-sm  { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg  { padding: 18px 40px; font-size: 1.05rem; }
.btn-xl  { padding: 20px 48px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.nav--scrolled {
  border-color: var(--grey-100);
  box-shadow: 0 1px 0 var(--grey-100), var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800;
  font-size: 1.2rem; color: var(--charcoal); letter-spacing: -.02em;
}
.nav__logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav__logo-name span { color: var(--lime-dark); }
.nav__links {
  display: flex; align-items: center; gap: 36px;
}
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--grey-600);
  transition: color var(--dur);
}
.nav__links a:hover { color: var(--charcoal); }
.nav__links a.active { color: var(--lime-dark); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Burger */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r-sm); cursor: pointer;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: transform var(--dur), opacity var(--dur);
}

/* Mobile drawer — always hidden until .nav-drawer--open is added by shared.js */
.nav-drawer {
  display: none !important;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 199;
  background: var(--white);
  flex-direction: column;
  padding: 16px 24px 32px;
  gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--grey-100);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.nav-drawer--open {
  display: flex !important;
  animation: drawerIn var(--dur-md) var(--ease);
}
@keyframes drawerIn { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:none } }
.nav-drawer a, .nav-drawer button {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--grey-800);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--dur);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  width: 100%;
  text-align: left;
}
.nav-drawer a:hover, .nav-drawer button:hover { background: var(--grey-50); }
.nav-drawer .drawer-cta {
  margin-top: 8px;
  padding: 16px;
  background: var(--lime) !important;
  color: var(--charcoal) !important;
  border-radius: var(--r-full);
  font-weight: 700;
  justify-content: center;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--grey-600); letter-spacing: .04em; text-transform: uppercase;
}
.form-input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-md);
  font-size: 1rem; color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--grey-400); }
.form-input:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(57,211,83,.18);
}
.form-input.is-error  { border-color: #F04438; box-shadow: 0 0 0 3px rgba(240,68,56,.1); }
.form-input.is-ok     { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(57,211,83,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 0.78rem; color: var(--grey-400); margin-top: 2px; }
.form-error-msg { font-size: 0.78rem; color: #B42318; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

/* ── Alerts ─────────────────────────────────────────────────────── */
.zc-alert {
  padding: 14px 16px; border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
  animation: alertIn .2s var(--ease);
}
@keyframes alertIn { from { opacity:0; transform: translateY(-6px) } to { opacity:1; transform: none } }
.zc-alert--error   { background: var(--red-bg);   color: var(--red-text);   border: 1px solid #FECDCA; }
.zc-alert--success { background: var(--green-bg);  color: var(--green-text); border: 1px solid #A9EFC5; }
.zc-alert--info    { background: var(--lime-pale);  color: var(--logo-dark);  border: 1px solid #BBF7D0; }

/* ── Badge / Chip ───────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600; letter-spacing: .03em;
}
.chip-lime  { background: var(--lime-pale); color: var(--logo-dark); border: 1px solid #A7F3C0; }
.chip-grey  { background: var(--grey-50);  color: var(--grey-600);  border: 1px solid var(--grey-200); }
.chip-dark  { background: var(--charcoal); color: var(--white); }
.chip-white { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.25); }

/* ── Card ───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── Modal ──────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(17,17,17,.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn var(--dur) var(--ease);
}
.modal--hidden { display: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal__box {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalUp var(--dur-md) var(--spring);
}
@keyframes modalUp { from { opacity: 0; transform: translateY(20px) scale(.97) } to { opacity: 1; transform: none } }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0;
}
.modal__head h3 { font-size: 1.15rem; font-weight: 700; }
.modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grey-50); color: var(--grey-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: background var(--dur);
}
.modal__close:hover { background: var(--grey-100); color: var(--charcoal); }
.modal__body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 14px; }

/* ── Spinner ────────────────────────────────────────────────────── */
.zc-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(0,0,0,.12);
  border-top-color: var(--charcoal);
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
.zc-spinner--lime  { border-color: rgba(57,211,83,.2); border-top-color: var(--lime-dark); }
.zc-spinner--white { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ── Scroll fade-up ─────────────────────────────────────────────── */
[data-fade] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-fade].fade-visible { opacity: 1; transform: none; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: var(--grey-400);
  padding: 64px 0 36px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px; margin-bottom: 52px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer__brand-name {
  font-family: var(--display); font-size: 1.15rem;
  font-weight: 800; color: var(--white);
}
.footer__brand-name span { color: var(--lime); }
.footer__tagline { font-size: 0.875rem; line-height: 1.75; max-width: 300px; }
.footer__col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--grey-400); margin-bottom: 18px;
}
.footer__col ul li { margin-bottom: 12px; }
.footer__col ul li a {
  font-size: 0.9rem; color: var(--grey-400);
  transition: color var(--dur);
}
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: 0.8rem; }
.footer__compliance {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
}
.footer__compliance-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); animation: pulse 2s infinite;
}

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes pulse        { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes shimmer      { 0%{background-position:-600px 0} 100%{background-position:600px 0} }
@keyframes floatY       { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes scaleIn      { from{transform:scale(.96);opacity:0} to{transform:none;opacity:1} }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .btn-lg { padding: 16px 32px; }
}
@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .modal__box { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal { align-items: flex-end; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
