/* ==========================================================================
   LoanCompare UAE — Slipery Moneys-inspired pop-art aesthetic (v3)
   Vibe: cream + bright orange + pastel accents, big display type,
   rounded-pill everything, generous whitespace, playful but clean.
   ========================================================================== */

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

:root {
  /* Brand — pop palette */
  --c-orange:   #FA5D29;
  --c-orange-d: #E04918;
  --c-orange-l: #FFB69E;
  --c-mint:     #AAEEC4;
  --c-mint-d:   #52C67E;
  --c-sky:      #74BCFF;
  --c-sky-d:    #49B3FC;
  --c-yellow:   #FFF083;
  --c-yellow-d: #FFD100;
  --c-purple:   #6749D1;
  --c-purple-d: #502BD8;
  --c-pink:     #FFB6D9;

  /* Neutrals */
  --c-cream:    #F7F5EE;
  --c-cream-2:  #EFEDE5;
  --c-paper:    #FFFFFF;
  --c-ink:      #161513;
  --c-ink-2:    #1F1D1A;
  --c-text:     #161513;
  --c-text-2:   #383838;
  --c-text-soft:#5C5A55;
  --c-text-mute:#8E8B83;
  --c-border:   #E5E2D8;
  --c-border-2: #D2CFC4;

  /* Status */
  --c-success-bg: #d1f7df;
  --c-success:    #137a3b;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(22, 21, 19, 0.04);
  --shadow-sm: 0 4px 14px -4px rgba(22, 21, 19, 0.08);
  --shadow-md: 0 12px 28px -10px rgba(22, 21, 19, 0.16);
  --shadow-lg: 0 24px 48px -16px rgba(22, 21, 19, 0.22);
  --shadow-pop: 6px 6px 0 0 var(--c-ink);
  --shadow-pop-lg: 10px 10px 0 0 var(--c-ink);

  --r-sm:  10px;
  --r:     16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  --maxw: 1280px;
  --t-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--c-cream);
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: var(--c-ink); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-orange); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--c-ink);
  line-height: 1;
  margin: 0 0 0.5em;
  letter-spacing: -0.035em;
  font-weight: 800;
  font-family: 'Inter Tight', sans-serif;
}
h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: -0.05em;
  font-weight: 800;
  line-height: 0.92;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
p { margin: 0 0 1em; color: var(--c-text-2); font-size: 1.05rem; line-height: 1.55; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Pop tag pills */
.tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(250, 93, 41, 0.18);
}
.tag.tag-mint   { background: var(--c-mint); }
.tag.tag-sky    { background: var(--c-sky); color: var(--c-ink); }
.tag.tag-yellow { background: var(--c-yellow); }
.tag.tag-orange { background: var(--c-orange); color: white; }
.tag.tag-purple { background: var(--c-purple); color: white; border-color: var(--c-purple); }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 9px 0;
  font-size: 0.82rem;
  text-align: center;
  font-weight: 600;
  border-bottom: 1.5px solid var(--c-ink);
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(247, 245, 238, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1.5px solid var(--c-ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { color: var(--c-ink); }
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--c-orange);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-ink);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--c-yellow);
  border-radius: 50%;
  border: 1.5px solid var(--c-ink);
  top: -3px; right: -3px;
}
.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: 12px;
}
.main-nav a {
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover {
  background: var(--c-paper);
  color: var(--c-ink);
}
.main-nav a.active {
  background: var(--c-ink);
  color: var(--c-cream);
  font-weight: 600;
}
.header-cta {
  background: var(--c-orange) !important;
  color: var(--c-ink) !important;
  padding: 10px 22px !important;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--c-ink);
  transition: transform var(--t-bounce), box-shadow var(--t-bounce);
}
.header-cta:hover {
  background: var(--c-orange) !important;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--c-ink);
}
.menu-toggle {
  display: none;
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 1.1rem;
  margin-left: auto;
  color: var(--c-ink);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--c-cream);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: var(--shadow-pop);
}
.hero-eyebrow .live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--c-mint-d);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(82, 198, 126, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(82, 198, 126, 0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(82, 198, 126, 0.0); }
}
.hero h1 {
  max-width: 1100px;
  margin-bottom: 28px;
  letter-spacing: -0.055em;
}
.hero h1 .pill {
  display: inline-block;
  background: var(--c-orange);
  color: var(--c-ink);
  padding: 0.04em 0.32em 0.10em;
  border-radius: 0.32em;
  border: 2px solid var(--c-ink);
  transform: rotate(-1.5deg);
  margin: 0 0.05em;
}
.hero h1 .pill.mint   { background: var(--c-mint); transform: rotate(1deg); }
.hero h1 .pill.yellow { background: var(--c-yellow); transform: rotate(-1deg); }
.hero h1 .ital {
  font-style: italic;
  font-weight: 500;
  color: var(--c-text-2);
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 620px;
  color: var(--c-text-2);
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* Floating decorative shapes */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--c-ink);
  pointer-events: none;
}
.hero-deco-1 { top: 12%; right: 8%; width: 96px; height: 96px; background: var(--c-yellow); transform: rotate(8deg); }
.hero-deco-2 { top: 38%; right: 16%; width: 56px; height: 56px; background: var(--c-mint); }
.hero-deco-3 { top: 60%; right: 6%; width: 132px; height: 132px; background: var(--c-sky); }
.hero-deco-4 { top: 20%; right: 24%; width: 30px; height: 30px; background: var(--c-orange); }

/* Hero stats — pop card grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.hero-stats .stat-card {
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  position: relative;
}
.hero-stats .stat-card:nth-child(1) { background: var(--c-mint); }
.hero-stats .stat-card:nth-child(2) { background: var(--c-yellow); }
.hero-stats .stat-card:nth-child(3) { background: var(--c-sky); }
.hero-stats .stat-card:nth-child(4) { background: var(--c-orange-l); }
.hero-stats strong {
  font-size: 2.2rem;
  display: block;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--c-ink);
}
.hero-stats span {
  color: var(--c-ink);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Marquee strip */
.marquee {
  background: var(--c-ink);
  color: var(--c-cream);
  border-top: 1.5px solid var(--c-ink);
  border-bottom: 1.5px solid var(--c-ink);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 32s linear infinite;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.marquee-track .star {
  color: var(--c-orange);
  font-size: 1.2rem;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--c-cream-2);
  padding: 56px 0 64px;
  border-bottom: 1.5px solid var(--c-ink);
  position: relative;
}
.page-hero .crumb {
  font-size: 0.85rem;
  color: var(--c-text-soft);
  margin-bottom: 14px;
  display: flex; gap: 8px; align-items: center;
  font-weight: 500;
}
.page-hero .crumb a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 4px; }
.page-hero h1 { max-width: 820px; margin-bottom: 16px; }
.page-hero p { max-width: 620px; margin-bottom: 0; font-size: 1.1rem; color: var(--c-text-2); }

/* ---------- Loan-type cards (homepage) ---------- */
.loan-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0;
  position: relative;
  z-index: 5;
}
.loan-type-card {
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--c-ink);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-bounce), box-shadow var(--t-bounce);
}
.loan-type-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 var(--c-ink);
  text-decoration: none;
  color: var(--c-ink);
}
.loan-type-card[data-cat="personal"] { background: var(--c-mint); }
.loan-type-card[data-cat="car"]      { background: var(--c-pink); }
.loan-type-card[data-cat="home"]     { background: var(--c-sky); }
.loan-type-card[data-cat="business"] { background: var(--c-yellow); }
.loan-type-card .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
}
.loan-type-card h3 {
  margin-bottom: 8px;
  color: var(--c-ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.loan-type-card p {
  color: var(--c-ink);
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.78;
  line-height: 1.5;
  flex: 1;
}
.loan-type-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1.5px solid var(--c-ink);
}
.loan-type-card .from-rate {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.loan-type-card .from-rate strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}
.loan-type-card .arrow {
  width: 36px; height: 36px;
  background: var(--c-ink);
  color: var(--c-cream);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--t-bounce);
}
.loan-type-card:hover .arrow { transform: rotate(-45deg); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-tag-wrap { text-align: center; margin-bottom: 14px; }
.section-sub {
  text-align: center;
  color: var(--c-text-soft);
  max-width: 660px;
  margin: 0 auto 56px;
  font-size: 1.1rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform var(--t-bounce), box-shadow var(--t-bounce);
}
.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--c-ink);
}
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  border: 1.5px solid var(--c-ink);
}
.feature-card:nth-child(1) .icon { background: var(--c-yellow); }
.feature-card:nth-child(2) .icon { background: var(--c-mint); }
.feature-card:nth-child(3) .icon { background: var(--c-sky); }
.feature-card:nth-child(4) .icon { background: var(--c-orange); color: white; }
.feature-card:nth-child(5) .icon { background: var(--c-pink); }
.feature-card:nth-child(6) .icon { background: var(--c-purple); color: white; }
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.feature-card p { font-size: 0.95rem; margin-bottom: 0; color: var(--c-text-soft); }

/* ---------- Listings layout ---------- */
.listings-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
.filters {
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.filters h3 {
  font-size: 1.1rem;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.filters-reset {
  font-size: 0.8rem;
  color: var(--c-orange);
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filters-reset:hover { color: var(--c-orange-d); }

.filter-group { margin-bottom: 24px; }
.filter-group > label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-text-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filter-group input[type="number"],
.filter-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--c-paper);
  color: var(--c-ink);
  transition: box-shadow var(--t-fast);
  font-weight: 500;
}
.filter-group input[type="number"]:focus,
.filter-group select:focus {
  outline: none;
  box-shadow: 4px 4px 0 0 var(--c-ink);
  transform: translate(-2px, -2px);
}
.checkbox-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 220px; overflow: auto; padding-right: 4px;
}
.checkbox-list label,
.toggle-row {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.checkbox-list label:hover,
.toggle-row:hover { background: var(--c-cream); }
.checkbox-list input,
.toggle-row input {
  margin: 0;
  accent-color: var(--c-orange);
  width: 16px; height: 16px;
}

/* Listings header */
.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.listings-count {
  font-weight: 600;
  color: var(--c-text-soft);
  font-size: 0.95rem;
}
.listings-count strong {
  color: var(--c-ink);
  font-weight: 800;
  font-size: 1.05rem;
}
.sort-row { display: flex; align-items: center; gap: 12px; }
.sort-row label { font-size: 0.85rem; color: var(--c-text-soft); font-weight: 500; }
.sort-row select {
  padding: 9px 16px;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--c-paper);
  font-weight: 600;
  cursor: pointer;
  color: var(--c-ink);
}
.sort-row select:hover { background: var(--c-cream); }

/* ---------- Loan card ---------- */
.loan-card {
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 72px 1fr 220px;
  gap: 24px;
  position: relative;
  transition: transform var(--t-bounce), box-shadow var(--t-bounce);
}
.loan-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--c-ink);
}
.loan-card.featured {
  background: var(--c-mint);
}
.loan-card.featured .loan-stats { background: rgba(255,255,255,0.6); }

.bank-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  padding: 4px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  border: 1.5px solid var(--c-ink);
  position: relative;
}
.bank-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.loan-info h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.loan-info .bank-name {
  color: var(--c-text-soft);
  font-size: 0.88rem;
  margin-bottom: 14px;
  font-weight: 500;
}

.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--c-ink);
}
.badge.featured { background: var(--c-orange); color: var(--c-ink); }
.badge.lowrate  { background: var(--c-mint); color: var(--c-ink); }
.badge.cashback { background: var(--c-pink); color: var(--c-ink); }
.badge.nofee    { background: var(--c-sky); color: var(--c-ink); }
.badge.shariah  { background: var(--c-purple); color: white; }

.loan-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 22px;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: var(--c-cream);
  border-radius: var(--r);
  border: 1.5px solid var(--c-border-2);
}
.loan-stats .stat { font-size: 0.85rem; }
.loan-stats .stat-label {
  color: var(--c-text-mute);
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  font-weight: 700;
}
.loan-stats .stat-val {
  color: var(--c-ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

.loan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.loan-features li {
  font-size: 0.85rem;
  color: var(--c-text-soft);
  position: relative;
  padding-left: 22px;
}
.loan-features li::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--c-mint);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 2px;
}
.loan-features li::after {
  content: "✓";
  color: var(--c-ink);
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: 800;
  font-size: 0.78rem;
}

.loan-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 200px;
  padding-left: 22px;
  border-left: 1.5px dashed var(--c-border-2);
}
.headline-rate {
  text-align: center;
  background: var(--c-cream);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r);
  padding: 12px 8px 10px;
  margin-bottom: 4px;
}
.loan-card.featured .headline-rate {
  background: var(--c-paper);
}
.headline-rate .num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  line-height: 1;
}
.headline-rate .label {
  font-size: 0.66rem;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  font-weight: 700;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  border: 1.5px solid var(--c-ink);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--t-bounce), box-shadow var(--t-bounce), background var(--t-fast);
  letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--c-orange);
  color: var(--c-ink);
}
.btn-primary:hover {
  background: var(--c-orange);
  color: var(--c-ink);
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 0 var(--c-ink);
}
.btn-outline {
  background: var(--c-paper);
  color: var(--c-ink);
}
.btn-outline:hover {
  background: var(--c-cream);
  color: var(--c-ink);
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 0 var(--c-ink);
}
.btn-dark {
  background: var(--c-ink);
  color: var(--c-cream);
}
.btn-dark:hover {
  background: var(--c-ink-2);
  color: var(--c-cream);
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 0 var(--c-orange);
}
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-ghost {
  background: transparent;
  color: var(--c-cream);
  border: 1.5px solid var(--c-cream);
}
.btn-ghost:hover {
  background: var(--c-cream);
  color: var(--c-ink);
}

.compare-toggle {
  font-size: 0.8rem;
  color: var(--c-text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  font-weight: 500;
}
.compare-toggle input { margin: 0; accent-color: var(--c-orange); }

/* ---------- Compare bar ---------- */
.compare-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 130%);
  background: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  padding: 10px 16px 10px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 90;
  box-shadow: var(--shadow-pop-lg);
  transition: transform var(--t-bounce);
  max-width: calc(100% - 40px);
  flex-wrap: nowrap;
}
.compare-bar.visible { transform: translate(-50%, 0); }
.compare-bar .pills {
  display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 50vw;
}
.compare-pill {
  background: rgba(255,255,255,0.1);
  color: var(--c-cream);
  padding: 6px 10px 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 500;
}
.compare-pill button {
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px;
  transition: color var(--t-fast);
}
.compare-pill button:hover { color: white; }
.compare-bar .count-text {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 500;
}
.compare-bar .btn-primary {
  background: var(--c-orange);
  color: var(--c-ink);
  padding: 9px 18px;
  border-color: var(--c-orange);
}
.compare-bar .btn-primary:hover {
  background: var(--c-orange);
  transform: none;
  box-shadow: none;
}
.compare-bar .btn-ghost {
  padding: 9px 14px;
  font-size: 0.85rem;
  border-color: rgba(255,255,255,0.2);
}

/* ---------- Empty state ---------- */
.empty-state {
  background: var(--c-paper);
  border: 1.5px dashed var(--c-border-2);
  border-radius: var(--r-lg);
  padding: 64px 32px;
  text-align: center;
}
.empty-state h3 { color: var(--c-ink); font-size: 1.4rem; }
.empty-state p { color: var(--c-text-soft); }

/* ---------- EMI Calculator ---------- */
.calc-card {
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}
.calc-inputs label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.calc-inputs .input-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 16px;
  align-items: center;
  margin-bottom: 6px;
}
.calc-inputs input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--c-cream-2);
  border-radius: var(--r-pill);
  outline: none;
  border: 1.5px solid var(--c-ink);
}
.calc-inputs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  background: var(--c-orange);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--t-bounce);
}
.calc-inputs input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}
.calc-inputs input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  background: var(--c-orange);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  cursor: pointer;
}
.calc-inputs input[type="number"] {
  padding: 12px 16px;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: right;
  font-weight: 700;
  color: var(--c-ink);
  background: var(--c-paper);
}
.calc-inputs input[type="number"]:focus {
  outline: none;
  box-shadow: 3px 3px 0 0 var(--c-ink);
  transform: translate(-1.5px, -1.5px);
}
.calc-field { margin-bottom: 28px; }
.calc-field-hint {
  font-size: 0.78rem;
  color: var(--c-text-mute);
  margin-top: 10px;
  font-weight: 500;
}
.calc-results {
  background: var(--c-ink);
  color: var(--c-cream);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--c-ink);
}
.calc-results::before {
  content: "";
  position: absolute;
  top: -40%; right: -25%;
  width: 220px; height: 220px;
  background: var(--c-orange);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}
.calc-results::after {
  content: "";
  position: absolute;
  top: -10%; right: 15%;
  width: 70px; height: 70px;
  background: var(--c-yellow);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  pointer-events: none;
}
.calc-results > * { position: relative; z-index: 1; }
.calc-results .result-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
}
.calc-results .result-big {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--c-cream);
  letter-spacing: -0.04em;
  margin: 4px 0 22px;
  line-height: 1;
}
.calc-results .result-row {
  display: flex; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  font-size: 0.92rem;
}
.calc-results .result-row:last-child { border-bottom: none; }
.calc-results .result-row span:first-child { color: rgba(255,255,255,0.6); }
.calc-results .result-row span:last-child {
  font-weight: 700; color: white;
}
.calc-results .calc-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  transition: transform var(--t-bounce), box-shadow var(--t-bounce);
}
.faq details:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 0 var(--c-ink); }
.faq details[open] { background: var(--c-yellow); }
.faq summary {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 30px; height: 30px;
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--t-bounce);
}
.faq details[open] summary::after {
  content: "−";
  background: var(--c-ink);
  color: var(--c-cream);
}
.faq details > div {
  padding: 0 24px 22px;
  color: var(--c-ink);
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq details > div p { color: var(--c-ink); }

/* ---------- Compare table ---------- */
.compare-table-wrap {
  overflow-x: auto;
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-lg);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare-table th, .compare-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1.5px solid var(--c-border);
  vertical-align: top;
  font-size: 0.92rem;
}
.compare-table tr:last-child td,
.compare-table tr:last-child th { border-bottom: none; }
.compare-table th {
  background: var(--c-cream);
  font-weight: 700;
  color: var(--c-text-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 200px;
}
.compare-table td.col-bank {
  background: var(--c-yellow);
  font-weight: 700;
  color: var(--c-ink);
  border-bottom: 1.5px solid var(--c-ink);
}
.compare-table .winner {
  background: var(--c-mint);
  color: var(--c-ink);
  font-weight: 800;
  position: relative;
}
.compare-table .winner::before {
  content: "★ ";
  color: var(--c-orange);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--c-orange);
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-xl);
  padding: 64px 52px;
  text-align: center;
  margin: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -30%; left: -10%;
  width: 320px; height: 320px;
  background: var(--c-yellow);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -25%; right: -8%;
  width: 240px; height: 240px;
  background: var(--c-mint);
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  color: var(--c-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.cta-band p {
  color: var(--c-ink);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  font-weight: 500;
}
.cta-band .btn-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta-band .btn-primary { background: var(--c-ink); color: var(--c-cream); }
.cta-band .btn-primary:hover { background: var(--c-ink); color: var(--c-cream); box-shadow: 4px 4px 0 0 var(--c-cream); }
.cta-band .btn-outline:hover { background: var(--c-paper); transform: translate(-3px, -3px); box-shadow: 4px 4px 0 0 var(--c-ink); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  padding: 28px 0 0;
  margin-top: 32px;
  border-top: 1.5px dashed var(--c-ink);
}
.trust-strip span {
  color: var(--c-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(247, 245, 238, 0.7);
  padding: 72px 0 32px;
  margin-top: 0;
  font-size: 0.95rem;
  border-top: 1.5px solid var(--c-ink);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
}
.site-footer h4 {
  color: var(--c-cream);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  font-weight: 700;
}
.site-footer a {
  color: rgba(247, 245, 238, 0.6);
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  transition: color var(--t-fast);
}
.site-footer a:hover { color: var(--c-orange); }
.site-footer .brand { color: var(--c-cream); font-size: 1.4rem; }
.site-footer .brand:hover { color: var(--c-cream); }
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 340px;
  color: rgba(247, 245, 238, 0.55);
}
.footer-bottom {
  border-top: 1px solid rgba(247, 245, 238, 0.12);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(247, 245, 238, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 14px 0 0;
    background: var(--c-paper);
    padding: 12px;
    gap: 6px;
    border-radius: var(--r-lg);
    border: 1.5px solid var(--c-ink);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 16px; }
  .header-cta { display: inline-block; margin: 8px; width: max-content; }

  .listings-layout { grid-template-columns: 1fr; }
  .filters { position: static; }

  .loan-types { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .calc-card { grid-template-columns: 1fr; padding: 28px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }

  .loan-card {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    padding: 22px;
  }
  .bank-logo { width: 60px; height: 60px; font-size: 0.9rem; }
  .loan-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 0;
    border-left: 0;
    border-top: 1.5px dashed var(--c-border-2);
    padding-top: 16px;
    margin-top: 4px;
    gap: 10px;
  }
  .headline-rate { flex: 1; min-width: 140px; padding: 10px 14px 8px; }
  .headline-rate .num { font-size: 1.5rem; }
  .loan-actions .btn { flex: 1; min-width: 120px; }
  .compare-toggle { flex: 0 0 100%; justify-content: flex-start; }
  .loan-stats { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 60px 0 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-deco { display: none; }

  .compare-bar { padding: 8px 14px 8px 16px; gap: 8px; }
  .compare-bar .pills { max-width: 32vw; }
  .compare-bar .count-text { display: none; }

  .marquee-track { font-size: 1.2rem; gap: 32px; }
  section { padding: 64px 0; }
  .cta-band { padding: 44px 28px; border-radius: var(--r-lg); }
}
@media (max-width: 560px) {
  .loan-types { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .calc-results .result-big { font-size: 2rem; }
  .filters { padding: 22px; }
}
