/* ============================================================================
   HisaabCore — marketing site design system
   Brand: deep blue (#1F6FEB, the app icon) → indigo, with an amber spark.
   Type: Bricolage Grotesque (display) + Plus Jakarta Sans (body).
   Aesthetic: warm, confident Indian fintech — generous space, layered depth,
   subtle grain, bold headings with amber underlines. Light canvas, ink dark
   sections for contrast.
   ========================================================================= */

:root {
  --brand: #1f6feb;
  --brand-700: #1857c4;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --amber: #fbbf24;
  --amber-ink: #92560a;
  --green: #16a34a;

  --ink: #0b0b14;
  --ink-2: #14141f;
  --slate: #3a3a4d;
  --muted: #6b6b7e;
  --line: #e7e8f0;
  --canvas: #fafbff;
  --card: #ffffff;

  --maxw: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 20, .06), 0 2px 8px rgba(11, 11, 20, .04);
  --shadow-md: 0 10px 30px rgba(11, 11, 20, .10), 0 2px 8px rgba(11, 11, 20, .06);
  --shadow-lg: 0 30px 70px rgba(24, 33, 87, .18), 0 10px 24px rgba(11, 11, 20, .08);

  --font-display: 'Bricolage Grotesque', ui-serif, Georgia, serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; }

.muted { color: var(--muted); }

/* mark — amber underline accent on key words */
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .34em;
  background: linear-gradient(90deg, var(--amber), #fcd34d);
  border-radius: 4px; z-index: -1; opacity: .9;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(31, 111, 235, .28); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(31, 111, 235, .34); }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 20px rgba(251, 191, 36, .35); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(251, 191, 36, .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--canvas) 92%, transparent); }
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--indigo)); color: #fff;
  box-shadow: 0 6px 16px rgba(31, 111, 235, .35); flex: none;
}
.brand .logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { font-weight: 600; color: var(--slate); font-size: 15.5px; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-login { font-weight: 700; color: var(--ink); padding: 9px 8px; }
.nav-login:hover { color: var(--brand); }
.nav-toggle { display: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 50% at 18% 18%, rgba(31, 111, 235, .22), transparent 70%),
    radial-gradient(42% 46% at 82% 12%, rgba(79, 70, 229, .20), transparent 70%),
    radial-gradient(40% 50% at 65% 60%, rgba(6, 182, 212, .14), transparent 70%);
  filter: blur(8px);
}
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.hero .lede { font-size: 20px; color: var(--slate); max-width: 30ch; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

/* hero reveal animation */
.reveal-up { opacity: 0; transform: translateY(16px); animation: revealUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes revealUp { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }

/* ---- Hero phone / card stack -------------------------------------------- */
.hero-art { position: relative; height: 480px; }
.balance-card {
  position: absolute; top: 30px; left: 8%; width: 86%;
  background: linear-gradient(150deg, var(--ink), var(--ink-2));
  color: #fff; border-radius: 26px; padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
}
.balance-card .bc-top { display: flex; justify-content: space-between; align-items: center; color: #b9bce0; font-size: 13.5px; font-weight: 600; }
.balance-card .bc-amt { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.balance-card .bc-amt small { font-size: 22px; opacity: .7; }
.balance-card .bc-row { display: flex; gap: 10px; margin-top: 18px; }
.chiplet { font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #dfe2ff; }
.chiplet.pos { background: rgba(22,163,74,.22); color: #6ee7a8; }
.chiplet.neg { background: rgba(248,113,113,.18); color: #fda4a4; }

.float-card {
  position: absolute; background: var(--card); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 14.5px;
}
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.fc-1 { bottom: 64px; left: -4%; animation: floaty 5.5s ease-in-out infinite; }
.fc-2 { bottom: 6px; right: 0; animation: floaty 6.5s ease-in-out infinite .8s; }
.fc-3 { top: 0; right: -2%; animation: floaty 6s ease-in-out infinite .4s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ---- Section scaffolding ------------------------------------------------- */
section { position: relative; }
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 12px; }
.section-head p { color: var(--slate); font-size: 18px; margin: 0; }
.center { text-align: center; margin-inline: auto; }

/* reveal-on-scroll */
.io { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.io.in { opacity: 1; transform: none; }

/* ---- Trust strip --------------------------------------------------------- */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 22px; align-items: center; justify-content: center; }
.strip .pill { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--slate); font-size: 15px; }
.strip .pill svg { width: 18px; height: 18px; color: var(--brand); }

/* ---- Feature grid -------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8dbea; }
.feature .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--slate); margin: 0; font-size: 15.5px; }
.feature svg { width: 26px; height: 26px; }

/* color tokens for icon tiles */
.bg-brand { background: linear-gradient(135deg, var(--brand), var(--indigo)); }
.bg-cyan  { background: linear-gradient(135deg, var(--cyan), #0891b2); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, var(--amber)); }
.bg-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.bg-indigo{ background: linear-gradient(135deg, var(--indigo), #6366f1); }
.bg-rose  { background: linear-gradient(135deg, #e11d48, #fb7185); }

/* ---- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--brand); opacity: .22; display: block; margin-bottom: 6px;
}
.step h3 { font-size: 20px; }
.step p { color: var(--slate); margin: 0; font-size: 15.5px; }

/* ---- Dark band (calculators / cta) -------------------------------------- */
.band {
  background: radial-gradient(60% 120% at 80% 0%, rgba(79,70,229,.5), transparent 60%), linear-gradient(160deg, var(--ink), var(--ink-2));
  color: #fff; border-radius: 32px; padding: 60px; position: relative; overflow: hidden;
}
.band h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.band p { color: #c3c6ea; font-size: 18px; max-width: 52ch; }
.calc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.calc-tags span { font-weight: 700; font-size: 14.5px; padding: 9px 15px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e7e8ff; }

.cta-band { text-align: center; }
.cta-band .btn { margin: 6px; }

/* ---- Content pages (legal / about) -------------------------------------- */
.page-hero { padding: 56px 0 14px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.page-hero .updated { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 24px; margin-top: 38px; }
.prose p { color: var(--slate); }
.prose .lede { font-size: 20px; color: var(--ink); }
.note {
  margin: 18px 0 8px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #fff7e6; border: 1px solid #fde9b8; color: #7a5b12; font-size: 15px; font-weight: 600;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c7c9e0; padding: 64px 0 34px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .logo { box-shadow: none; }
.footer-about { color: #9a9cba; max-width: 34ch; margin-top: 14px; font-size: 15px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #7d7fa0; margin-bottom: 14px; }
.footer-col a { display: block; color: #c7c9e0; padding: 6px 0; font-size: 15px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8587a6; font-size: 14px; }
.footer-bottom .made { display: inline-flex; align-items: center; gap: 7px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 420px; max-width: 460px; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 40px 28px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 64px; }
  .hero-art { margin-inline: auto; }
  .band { padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .io, .float-card { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
