/* ============================================================
   JINDER FINANCE - Design System
   Trust-forward fintech aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --ink: #0a1628;
  --ink-soft: #3a4759;
  --muted: #6b7785;
  --line: #e4e9ef;
  --bg-soft: #f5f7fa;
  --brand: #0b5d3b;
  --brand-dk: #084a2f;
  --accent: #d4af37;
  --warn: #b94a00;
  --error: #c0392b;
  --success: #0b5d3b;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10,22,40,0.04), 0 1px 1px rgba(10,22,40,0.03);
  --shadow-md: 0 8px 24px rgba(10,22,40,0.07), 0 2px 6px rgba(10,22,40,0.04);
  --shadow-lg: 0 24px 60px rgba(10,22,40,0.12);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Top Strip ---------- */
.top-strip { background: var(--ink); color: #cdd6e0; font-size: 12.5px; padding: 8px 0; }
.top-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-strip .left { display: flex; gap: 18px; align-items: center; }
.top-strip .left span { display: flex; align-items: center; gap: 6px; }
.top-strip .right a { color: #ffd97a; font-weight: 500; }
@media (max-width: 640px) { .top-strip .left span:nth-child(2) { display: none; } }

/* ---------- Header ---------- */
header.main-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.main-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; background: var(--brand); border-radius: 9px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(11,93,59,0.25); }
.logo-text { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); }
.logo-text span { color: var(--brand); }
nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color 0.18s ease; }
nav.primary a:hover, nav.primary a.active { color: var(--brand); }
nav.primary a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease; }
nav.primary a:hover::after, nav.primary a.active::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 14.5px; transition: all 0.18s ease; white-space: nowrap; border: none; cursor: pointer; text-decoration: none; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(11,93,59,0.28); }
.btn-primary:hover { background: var(--brand-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11,93,59,0.34); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fff; color: var(--error); border: 1.5px solid var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }

/* hamburger */
.hamburger { display: none; }
.mobile-menu { display: none; position: fixed; inset: 0; background: #fff; z-index: 200; padding: 70px 24px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--ink); }
@media (max-width: 900px) {
  nav.primary, .header-cta .btn-ghost { display: none; }
  .hamburger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
  .hamburger:hover { background: var(--bg-soft); }
}

/* ---------- Common ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(11,93,59,0.08); color: var(--brand-dk); padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(11,93,59,0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(11,93,59,0.18);} 50% { box-shadow: 0 0 0 8px rgba(11,93,59,0.05);} }

section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-family: 'Fraunces', serif; font-size: clamp(28px, 3.8vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: 14px; }
.section-head h2 em { font-style: italic; color: var(--brand); font-weight: 500; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); margin-bottom: 7px; }
.form-label.required::after { content: ' *'; color: var(--error); }
.form-control, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,93,59,0.12); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-error { color: var(--error); font-size: 12.5px; margin-top: 5px; }
.form-help { color: var(--muted); font-size: 12px; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* radio / checkbox blocks */
.radio-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.radio-option { position: relative; }
.radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-option label { display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; text-align: center; font-size: 14px; font-weight: 500; transition: all 0.15s ease; }
.radio-option input:checked + label { border-color: var(--brand); background: rgba(11,93,59,0.04); color: var(--brand-dk); box-shadow: 0 0 0 3px rgba(11,93,59,0.08); }
.checkbox-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.checkbox-line input { margin-top: 3px; accent-color: var(--brand); }

/* ---------- Alerts ---------- */
.alert { padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border-left: 4px solid; }
.alert-success { background: #e8f5ee; color: #084a2f; border-left-color: var(--success); }
.alert-error { background: #fdecea; color: #88231a; border-left-color: var(--error); }
.alert-warn { background: #fff8e6; color: #7c5a09; border-left-color: var(--accent); }
.alert-info { background: #eaf2fc; color: #1c4587; border-left-color: #3a82f6; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.card-head { margin-bottom: 18px; }
.card-head h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; right: -5%; top: -50%; width: 500px; height: 500px; border: 80px solid rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none; }
.cta-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; }
.cta-strip h3 { font-family: 'Fraunces', serif; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; max-width: 600px; line-height: 1.15; }
.cta-strip h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.btn-on-dark { background: #fff; color: var(--brand-dk); }
.btn-on-dark:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }

/* ---------- Footer ---------- */
footer.main-footer { background: #0a1628; color: #a8b3c2; padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .logo-text { color: #fff; }
.foot-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.65; }
footer.main-footer h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 16px; }
footer.main-footer ul { list-style: none; }
footer.main-footer ul li { margin-bottom: 10px; }
footer.main-footer ul a { font-size: 14px; color: #a8b3c2; transition: color 0.15s ease; }
footer.main-footer ul a:hover { color: var(--accent); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 12px; color: #6b7785; line-height: 1.7; }
.foot-bottom .compliance-note { background: rgba(212,175,55,0.06); border: 1px solid rgba(212,175,55,0.18); padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; color: #c5b07a; }
.foot-bottom .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #f8faf9 0%, #fff 100%); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.page-hero h1 em { font-style: italic; color: var(--brand); font-weight: 500; }
.page-hero p { font-size: 16px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Static content page ---------- */
.content-page { padding: 50px 0 80px; }
.content-page .container { max-width: 820px; }
.content-page h2 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; margin-top: 32px; margin-bottom: 14px; color: var(--ink); }
.content-page h3 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; margin-top: 26px; margin-bottom: 10px; color: var(--ink); }
.content-page p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.content-page ul, .content-page ol { padding-left: 24px; margin-bottom: 14px; color: var(--ink-soft); }
.content-page li { margin-bottom: 6px; }
.content-page a { color: var(--brand); text-decoration: underline; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.hidden { display: none; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
