/* ============================================================
   TAXOPD — Design System Stylesheet
   Premium CA / tax advisory site · Mumbai
   Plain CSS, no build step. Pairs with assets/js/main.js
   ============================================================
   INDEX
   01. Reset & tokens
   02. Base typography
   03. Layout primitives (.container, sections, .section-head)
   04. Buttons
   05. Header / navigation / dropdown / hamburger
   06. Hero (orbs, dot grid, entrance animation)
   07. Gold shimmer text, badges, chips
   08. Stat band & counters
   09. Card system (.card, .service-card, .tool-card, pricing)
   10. Dark sections
   11. Testimonial drag carousel
   12. FAQ accordion
   13. CTA banner
   14. Footer
   15. Floating buttons (WhatsApp, back-to-top)
   16. Calculator UI kit
   17. Tables (comparison, amortisation)
   18. Breadcrumb, notes, disclaimer
   19. Scroll-reveal states
   20. Utilities
   21. Responsive
   22. Reduced motion
   ============================================================ */

/* ------------------------------------------------------------
   01. RESET & TOKENS
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F4F2FE;
  --surface: #FFFFFF;
  --ink: #1E1B4B;
  --body-c: #454F5E;
  --muted: #64748B;
  --primary: #4F46E5;
  --primary-2: #6528F7;
  --violet: #7C3AED;
  --line: #E4E0F7;
  --navy: #141238;
  --gold-1: #B45309;
  --gold-2: #FCD34D;

  --grad: linear-gradient(135deg, #4F46E5, #7C3AED);
  --grad-soft: linear-gradient(135deg, rgba(79,70,229,.12), rgba(124,58,237,.12));
  --shadow-card: 0 10px 40px rgba(30, 27, 75, .08);
  --shadow-card-hover: 0 22px 60px rgba(30, 27, 75, .16);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --header-h: 76px;
}

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

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body-c);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--primary-2); }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
}

table { border-collapse: collapse; width: 100%; }

::selection {
  background: rgba(79, 70, 229, .22);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------
   02. BASE TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

p + p { margin-top: 1em; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
}

strong { color: var(--ink); font-weight: 700; }

small, .small { font-size: .85rem; }

/* ------------------------------------------------------------
   03. LAYOUT PRIMITIVES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight { padding: 64px 0; }

.section-alt { background: var(--surface); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin-inline: 0;
  text-align: left;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-head .display { margin-bottom: 14px; }

.section-sub {
  color: var(--muted);
  font-size: 1.06rem;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 26px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ------------------------------------------------------------
   04. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  border: 0;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, color .25s ease;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(79, 70, 229, .35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(79, 70, 229, .45);
}

/* sweep / shine on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-22deg);
  transition: left .6s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.btn-ghost:hover {
  background: rgba(79, 70, 229, .08);
  color: var(--primary-2);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(10, 8, 40, .25);
}

.btn-light:hover { transform: translateY(-2px); color: var(--primary-2); }

.btn-lg { padding: 17px 36px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }

.btn-block { width: 100%; }

/* ------------------------------------------------------------
   05. HEADER / NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(244, 242, 254, .6);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(30, 27, 75, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

/* Logo wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .35);
}

.logo-word {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.logo-word .grad {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  border-radius: 10px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary); }

.nav-link .caret {
  width: 12px;
  height: 12px;
  transition: transform .25s ease;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(30, 27, 75, .16);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
}

.dropdown::before {
  /* invisible bridge so hover doesn't drop between link and panel */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .nav-link .caret,
.has-dropdown.open .nav-link .caret { transform: rotate(180deg); }

.dropdown-label {
  grid-column: span 1;
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 4px;
  padding-left: 10px;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dropdown a:hover {
  background: rgba(79, 70, 229, .08);
  color: var(--primary);
  transform: translateX(3px);
}

.dropdown a .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.dot-it { background: var(--primary); }
.dot-gst { background: #D97706; }
.dot-fin { background: var(--violet); }

.dropdown .dropdown-all {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  border-radius: 0;
  color: var(--primary);
  font-weight: 700;
}

.header-cta { flex: none; }

/* Mobile-panel CTA: hidden on desktop, shown inside the slide-down nav (rule in the <=768px media query) */
.nav-list .nav-cta-mobile { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s ease;
}

.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   06. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 110px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

/* dot-grid backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79, 70, 229, .16) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  z-index: -2;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(79, 70, 229, .35), transparent 65%);
  animation: orbFloat1 11s ease-in-out infinite;
}

.orb-2 {
  width: 460px;
  height: 460px;
  top: 10%;
  right: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, .30), transparent 65%);
  animation: orbFloat2 14s ease-in-out infinite;
}

.orb-3 {
  width: 340px;
  height: 340px;
  bottom: -140px;
  left: 38%;
  background: radial-gradient(circle, rgba(252, 211, 77, .30), transparent 65%);
  animation: orbFloat3 17s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.1); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(.94); }
}

/* Hero entrance: elements marked data-hero rise in staggered */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero [data-hero] {
  opacity: 0;
  animation: heroRise .85s var(--ease) forwards;
}

.hero [data-hero="1"] { animation-delay: .05s; }
.hero [data-hero="2"] { animation-delay: .18s; }
.hero [data-hero="3"] { animation-delay: .31s; }
.hero [data-hero="4"] { animation-delay: .44s; }
.hero [data-hero="5"] { animation-delay: .57s; }
.hero [data-hero="6"] { animation-delay: .70s; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin: 18px 0 20px; }

.hero .lead { max-width: 560px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Badge chip (e.g. "Trusted CA Firm · Mumbai") */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(30, 27, 75, .07);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
}

.badge-chip .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  flex: none;
}

.badge-chip .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, .5);
  animation: pulseRing 1.8s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Hero visual panel (right column card) */
.hero-visual { position: relative; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(30, 27, 75, .14);
  padding: 30px;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(30, 27, 75, .14);
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  animation: chipBob 5s ease-in-out infinite;
}

.float-chip .icon-tile { width: 34px; height: 34px; border-radius: 9px; font-size: 1rem; }

.float-chip.tl { top: -22px; left: -26px; }
.float-chip.br { bottom: -22px; right: -18px; animation-delay: 2.4s; }

@keyframes chipBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ------------------------------------------------------------
   07. GOLD SHIMMER, CHIPS
   ------------------------------------------------------------ */
.gold-text {
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-1));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 3.2s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: -220% center; }
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* category chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.chip-it { background: rgba(79, 70, 229, .12); color: var(--primary); }
.chip-gst { background: rgba(217, 119, 6, .13); color: #B45309; }
.chip-fin { background: rgba(124, 58, 237, .12); color: var(--violet); }

/* ------------------------------------------------------------
   08. STAT BAND & COUNTERS
   ------------------------------------------------------------ */
.stat-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 52px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}

.stat-item .counter,
.stat-item .stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item .stat-label {
  display: block;
  margin-top: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}

.dark-section .stat-item .counter,
.dark-section .stat-item .stat-num {
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-1));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShimmer 3.2s linear infinite;
}

.dark-section .stat-item .stat-label { color: rgba(255, 255, 255, .72); }

/* ------------------------------------------------------------
   09. CARD SYSTEM
   ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover,
.card.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-static:hover { transform: none; box-shadow: var(--shadow-card); }

/* Icon tile shared by cards */
.icon-tile {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--grad-soft);
  color: var(--primary);
  flex: none;
  transition: transform .3s var(--ease), background .3s ease, color .3s ease;
}

.icon-tile svg { width: 26px; height: 26px; }

/* Service card */
.service-card { display: flex; flex-direction: column; gap: 14px; }

.service-card h3 { font-size: 1.18rem; }

.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }

.service-card .card-link {
  font-weight: 700;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card .card-link svg { width: 15px; height: 15px; transition: transform .25s ease; }

.service-card:hover .card-link svg { transform: translateX(4px); }

.service-card:hover .icon-tile {
  background: var(--grad);
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}

/* Tool card */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.tool-card .tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-card h3 { font-size: 1.12rem; }

.tool-card p { color: var(--muted); font-size: .93rem; flex: 1; }

.tool-card .card-link {
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-card .card-link svg { width: 15px; height: 15px; transition: transform .25s ease; }

.tool-card:hover .card-link svg { transform: translateX(4px); }

/* Pricing card */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 30px;
  overflow: hidden;
}

.price-card .plan-name {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card .plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--ink);
  line-height: 1;
}

.price-card .plan-price small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
}

.price-card ul { display: grid; gap: 10px; flex: 1; }

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
}

.price-card li::before {
  content: "✓";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
  margin-top: 3px;
}

.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 24px 64px rgba(79, 70, 229, .22);
}

.price-card .ribbon {
  position: absolute;
  top: 18px;
  right: -42px;
  transform: rotate(45deg);
  background: var(--grad);
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 6px 48px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}

/* Feature / why-us row */
.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-row .icon-tile { width: 46px; height: 46px; border-radius: 12px; font-size: 1.15rem; }

.feature-row h4 { margin-bottom: 4px; }

.feature-row p { font-size: .93rem; color: var(--muted); }

/* ------------------------------------------------------------
   10. DARK SECTIONS
   ------------------------------------------------------------ */
.dark-section {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 55% 60% at 18% 12%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(ellipse 50% 55% at 85% 85%, rgba(79, 70, 229, .3), transparent 60%);
  color: rgba(255, 255, 255, .82);
}

.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: #fff; }

.dark-section .kicker { color: var(--gold-2); }

.dark-section .kicker::before { background: linear-gradient(to right, var(--gold-1), var(--gold-2)); }

.dark-section .section-sub { color: rgba(255, 255, 255, .66); }

.dark-section .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
  color: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dark-section .card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

.dark-section .card p,
.dark-section .service-card p { color: rgba(255, 255, 255, .66); }

.dark-section .icon-tile {
  background: rgba(255, 255, 255, .1);
  color: var(--gold-2);
}

/* ------------------------------------------------------------
   11. TESTIMONIAL DRAG CAROUSEL
   ------------------------------------------------------------ */
.drag-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 6px 30px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.drag-carousel::-webkit-scrollbar { display: none; }

.drag-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.t-card {
  flex: 0 0 380px;
  max-width: 86vw;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.t-card .stars {
  color: #F59E0B;
  letter-spacing: 3px;
  font-size: .95rem;
}

.t-card blockquote {
  font-size: .97rem;
  line-height: 1.75;
  color: var(--body-c);
  flex: 1;
}

.t-card .t-person {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.t-card .t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  flex: none;
}

.t-card .t-name { font-weight: 700; color: var(--ink); font-size: .95rem; }

.t-card .t-role { font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------
   12. FAQ ACCORDION
   ------------------------------------------------------------ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.faq-item.open {
  border-color: rgba(79, 70, 229, .4);
  box-shadow: 0 14px 40px rgba(30, 27, 75, .1);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.faq-q .faq-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .3s var(--ease), background .3s ease, color .3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--grad);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}

.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: .95rem;
}

/* ------------------------------------------------------------
   13. CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--grad);
  background-image:
    radial-gradient(ellipse 60% 90% at 85% 10%, rgba(252, 211, 77, .25), transparent 60%),
    linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  padding: 64px 56px;
  text-align: center;
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  z-index: -1;
}

.cta-banner h2 { color: #fff; margin-bottom: 14px; }

.cta-banner p {
  color: rgba(255, 255, 255, .85);
  max-width: 620px;
  margin: 0 auto 30px;
}

.cta-banner .cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(ellipse 45% 50% at 5% 100%, rgba(79, 70, 229, .14), transparent 60%);
  color: rgba(255, 255, 255, .72);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.15fr 1.25fr;
  gap: 40px;
  padding: 72px 0 48px;
}

.footer-brand .logo-word { color: #fff; font-size: 1.6rem; }

.footer-brand p {
  margin-top: 16px;
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .62);
  max-width: 300px;
}

.footer-brand .metro-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold-2);
}

.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { display: grid; gap: 11px; }

.footer-col a {
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover { color: #fff; transform: translateX(3px); }

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  line-height: 1.6;
}

.footer-contact .f-ic {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--gold-2);
}

.footer-contact a { display: inline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}

.footer-bottom .foot-disclaimer {
  width: 100%;
  font-size: .76rem;
  color: rgba(255, 255, 255, .4);
  margin-top: 6px;
}

/* ------------------------------------------------------------
   15. FLOATING BUTTONS
   ------------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}

.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
  color: #fff;
  box-shadow: 0 18px 42px rgba(37, 211, 102, .55);
}

.wa-float svg { width: 30px; height: 30px; }

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, .55);
  animation: waPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 96px;
  z-index: 940;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(30, 27, 75, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-3px); }

.back-to-top svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   16. CALCULATOR UI KIT
   ------------------------------------------------------------ */
.calc-hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}

.calc-hero h1 { margin: 12px 0 12px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.calc-hero .lead { max-width: 700px; }

.calc-wrap {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 30px;
  align-items: start;
}

.calc-inputs,
.calc-results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.calc-results {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.calc-inputs h2,
.calc-results h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.calc-card-sub {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Field rows */
.field { margin-bottom: 26px; }

.field:last-child { margin-bottom: 0; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.field-head label {
  font-weight: 700;
  font-size: .93rem;
  color: var(--ink);
}

.field-head .hint {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

.field .num-input,
.field input[type="number"],
.field input[type="text"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #FBFAFF;
  font-weight: 600;
  font-size: .98rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234F46E5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.field-inline {
  display: flex;
  gap: 14px;
  align-items: center;
}

.field-inline .num-input { max-width: 150px; }

/* Input with ₹ / % prefix-suffix */
.input-affix {
  position: relative;
}

.input-affix .affix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--muted);
  font-size: .92rem;
  pointer-events: none;
}

.input-affix .affix.pre { left: 14px; }
.input-affix .affix.post { right: 14px; }

.input-affix input { padding-left: 34px; }
.input-affix.suffix input { padding-left: 16px; padding-right: 40px; }

/* Range slider — gradient track fill via background-size */
input[type="range"].range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background-color: var(--line);
  background-image: linear-gradient(90deg, var(--primary), var(--violet));
  background-repeat: no-repeat;
  background-size: 50% 100%;
  cursor: pointer;
  margin-top: 4px;
  transition: box-shadow .2s ease;
}

input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
  cursor: grab;
  transition: transform .2s ease, box-shadow .2s ease;
}

input[type="range"].range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .5);
}

input[type="range"].range::-webkit-slider-thumb:active { cursor: grabbing; }

input[type="range"].range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
  cursor: grab;
}

input[type="range"].range:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Segmented toggle */
.seg {
  display: inline-flex;
  gap: 4px;
  background: #ECE9FB;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.seg-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}

.seg-btn:hover { color: var(--primary); }

.seg-btn.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}

.seg-block { display: flex; width: 100%; }
.seg-block .seg-btn { flex: 1; text-align: center; }

/* Results */
.result-hero {
  text-align: center;
  padding: 24px 18px 26px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px dashed rgba(79, 70, 229, .35);
  margin-bottom: 24px;
}

.result-hero .result-label {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.result-hero .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-hero .result-note {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}

.result-rows { display: grid; }

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}

.result-row:last-child { border-bottom: 0; }

.result-row .r-label { color: var(--muted); font-weight: 600; }

.result-row .r-value { font-weight: 800; color: var(--ink); white-space: nowrap; }

.result-row.total {
  border-top: 2px solid var(--line);
  border-bottom: 0;
  margin-top: 4px;
  padding-top: 16px;
}

.result-row.total .r-label { color: var(--ink); font-weight: 800; }

.result-row.total .r-value { color: var(--primary); font-size: 1.05rem; }

.result-row .r-value.positive { color: #059669; }
.result-row .r-value.negative { color: #DC2626; }

/* Chart box (inline SVG donut / bars) */
.chart-box {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBFAFF;
}

.chart-box svg { width: 100%; height: auto; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.chart-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend .sw {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
}

/* ------------------------------------------------------------
   17. TABLES
   ------------------------------------------------------------ */
.tbl-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.tbl { min-width: 520px; font-size: .9rem; }

.tbl th, .tbl td {
  padding: 13px 18px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl th:first-child, .tbl td:first-child { text-align: left; }

.tbl thead th {
  background: #F0EDFC;
  color: var(--ink);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tbl tbody tr:last-child td { border-bottom: 0; }

.tbl tbody tr:hover td { background: rgba(79, 70, 229, .04); }

.tbl .highlight td {
  background: rgba(79, 70, 229, .07);
  font-weight: 700;
  color: var(--ink);
}

.tbl tfoot td {
  font-weight: 800;
  color: var(--ink);
  background: #F0EDFC;
  border-bottom: 0;
}

/* Amortisation table: capped height, sticky header */
.amort-box {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.amort-box .tbl thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--line);
}

/* ------------------------------------------------------------
   18. BREADCRUMB, NOTES, DISCLAIMER
   ------------------------------------------------------------ */
.breadcrumb {
  padding: 18px 0 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
  font-weight: 400;
}

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

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb .current { color: var(--ink); }

.badge-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(252, 211, 77, .14);
  border: 1px solid rgba(180, 83, 9, .25);
  color: #92400E;
  font-size: .88rem;
  font-weight: 600;
  margin: 18px 0;
}

.badge-note.info {
  background: rgba(79, 70, 229, .07);
  border-color: rgba(79, 70, 229, .25);
  color: var(--primary);
}

.disclaimer {
  margin-top: 26px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold-1);
  background: rgba(252, 211, 77, .1);
  border-radius: 0 12px 12px 0;
  font-size: .84rem;
  color: var(--muted);
  font-style: italic;
}

/* ------------------------------------------------------------
   19. SCROLL-REVEAL STATES
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}

[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.9); }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   20. UTILITIES
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.muted { color: var(--muted); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.hide { display: none !important; }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 40px 0;
}

/* ------------------------------------------------------------
   21. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lead { max-width: 640px; }
  .split { grid-template-columns: 1fr; gap: 40px; }

  .calc-wrap { grid-template-columns: 1fr; }
  .calc-results { position: static; }

  .nav-list { gap: 0; }
  .nav-link { padding: 10px 10px; font-size: .9rem; }
  .dropdown { width: 500px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .section-head { margin-bottom: 40px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .hero { padding: 72px 0 64px; }
  .hero-actions .btn { width: 100%; }
  .float-chip.tl { left: 0; }
  .float-chip.br { right: 0; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }

  .cta-banner { padding: 48px 26px; border-radius: 22px; }

  /* Mobile nav: hide desktop CTA, show hamburger, slide-down panel */
  .header-cta { display: none; }
  .hamburger { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(30, 27, 75, .18);
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height .4s var(--ease);
  }

  .nav-open .main-nav { max-height: calc(100vh - var(--header-h)); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 24px;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-link::after { display: none; }

  /* Dropdown becomes an inline expanding block on tap */
  .dropdown {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: hidden;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 14px;
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease), visibility .35s;
    display: block;
  }

  .has-dropdown:hover .dropdown { visibility: hidden; }

  .has-dropdown.open .dropdown {
    visibility: visible;
    max-height: 640px;
  }

  .dropdown::before { display: none; }
  .dropdown a { padding: 11px 10px; }
  .dropdown .dropdown-all { margin-top: 4px; }

  .nav-list .nav-cta-mobile {
    margin-top: 18px;
    display: block;
  }

  .nav-list .nav-cta-mobile .btn { width: 100%; }

  .calc-inputs, .calc-results { padding: 24px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 40px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  .t-card { flex-basis: 320px; }

  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .back-to-top { right: 19px; bottom: 84px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }

  .stat-grid { grid-template-columns: 1fr 1fr; }

  .grid-4 { grid-template-columns: 1fr; }

  .seg-btn { padding: 9px 14px; font-size: .82rem; }

  .field-inline { flex-direction: column; align-items: stretch; }
  .field-inline .num-input { max-width: none; }

  .price-card { padding: 30px 22px; }
  .cta-banner { padding: 42px 20px; }
  .t-card { flex-basis: 280px; padding: 24px; }

  .result-hero .num { font-size: 1.9rem; }

  .logo-word { font-size: 1.3rem; }
  .logo-mark { width: 36px; height: 36px; }
}

/* ------------------------------------------------------------
   22. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero [data-hero] {
    opacity: 1;
    animation: none;
  }
}

/* ------------------------------------------------------------
   23. HOMEPAGE POLISH PACK (additive layer)
   Hero word-rise, hero-card tilt, CTA banner drift, dark-section
   breathing glow, micro-interactions. Nothing above is modified
   or renamed — this layer only builds on existing hooks.
   ------------------------------------------------------------ */

/* Hero headline: per-word masked rise (spans injected by main.js) */
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.hw-in {
  display: inline-block;
  transform: translateY(115%);
  animation: hwRise .8s var(--ease) both;
}

@keyframes hwRise {
  to { transform: translateY(0); }
}

/* Once split into words, the h1's block animation hands over */
.hero h1.word-split {
  animation: none;
  opacity: 1;
}

/* Hero card: gentle 3D tilt (driven by main.js on fine pointers only) */
.hero-card {
  transition: transform .18s ease-out, box-shadow .3s ease;
  will-change: transform;
}

/* CTA banner: slow drifting glow layer behind the dot grid */
.cta-banner::after {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 32% 38% at 82% 18%, rgba(252, 211, 77, .30), transparent 65%),
    radial-gradient(ellipse 36% 42% at 12% 88%, rgba(255, 255, 255, .16), transparent 60%);
  animation: ctaDrift 11s ease-in-out infinite;
}

@keyframes ctaDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .8; }
  50% { transform: translate3d(-4%, 6%, 0) scale(1.12); opacity: 1; }
}

/* Dark section: breathing violet glow behind the tool grid */
.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 48% at 72% 24%, rgba(124, 58, 237, .26), transparent 65%),
    radial-gradient(ellipse 36% 40% at 22% 78%, rgba(79, 70, 229, .22), transparent 60%);
  animation: darkBreathe 12s ease-in-out infinite alternate;
}

.dark-section > .container {
  position: relative;
  z-index: 1;
}

@keyframes darkBreathe {
  from { opacity: .35; transform: translate3d(0, -10px, 0); }
  to { opacity: 1; transform: translate3d(0, 14px, 0); }
}

/* Light buttons get the same hover sweep as .btn-primary */
.btn-light::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(99, 102, 241, .20), transparent);
  transform: skewX(-22deg);
  transition: left .6s var(--ease);
  pointer-events: none;
}

.btn-light:hover::after { left: 130%; }

/* Tactile press on all button variants */
.btn-primary:active,
.btn-ghost:active,
.btn-light:active { transform: translateY(0) scale(.97); }

/* Tool cards: gradient accent bar sweeps in on hover */
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.tool-card:hover::before { transform: scaleX(1); }

.dark-section .tool-card::before {
  background: linear-gradient(to right, var(--gold-1), var(--gold-2));
}

.tool-card .chip { transition: transform .3s var(--ease); }
.tool-card:hover .chip { transform: translateY(-2px); }

/* Feature rows: icon tile lights up like service-card icons do */
.feature-row:hover .icon-tile {
  background: var(--grad);
  color: #fff;
  transform: scale(1.07) rotate(-4deg);
}

/* Card links: arrow nudges on direct hover too, not just card hover */
.card-link svg { transition: transform .25s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* FAQ: question warms on hover */
.faq-q { transition: color .2s ease; }
.faq-q:hover { color: var(--primary); }

/* Testimonial cards lift like the rest of the card system */
.t-card { transition: transform .25s ease, box-shadow .25s ease; }

.t-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

/* Stat items: tiny lift under the cursor */
.stat-item { transition: transform .3s var(--ease); }
.stat-item:hover { transform: translateY(-4px); }

/* Logo mark: playful tilt */
.logo .logo-mark { transition: transform .3s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

/* Reduced motion: the polish layer stands down completely */
@media (prefers-reduced-motion: reduce) {
  .hw-in { transform: none; animation: none; }

  .cta-banner::after,
  .dark-section::before { animation: none; }

  .hero-card { transform: none !important; transition: none; }
}

/* ==========================================================
   24. SERVICES NAV DROPDOWN + HERO LINE FIX (additive)
   ========================================================== */

/* Services dropdown: compact single-column panel */
.dropdown.dropdown-services { width: 270px; grid-template-columns: 1fr; }

.dot-gold { background: var(--gold-2); }

/* Anchored service sections clear the sticky header */
#business-setup, #tax-compliance, #tax-deadlines, #global-setup, #loans {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

/* Keep "handled to a" together so no orphan word wraps alone */
.hero h1 .hold-line { white-space: nowrap; }

@media (max-width: 768px) {
  .dropdown.dropdown-services { width: auto; }
}

/* ==========================================================
   25. FLAT SERVICE LINKS IN HEADER (additive)
   Nav carries 8 items now; tighten spacing on mid-size
   screens so nothing wraps or collides with the CTA.
   ========================================================== */
@media (min-width: 1121px) and (max-width: 1400px) {
  .nav-link { padding: 10px 9px; font-size: .88rem; }
  .header-cta .btn { padding: 11px 18px; font-size: .86rem; }
}

/* Tablet (769-1120px): 8 nav items no longer fit on one line,
   so reuse the slide-down hamburger panel from the mobile view. */
@media (min-width: 769px) and (max-width: 1120px) {
  .header-cta { display: none; }
  .hamburger { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(30, 27, 75, .18);
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height .4s var(--ease);
  }

  .nav-open .main-nav { max-height: calc(100vh - var(--header-h)); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 24px;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-link::after { display: none; }

  .dropdown {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: hidden;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 14px;
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease), visibility .35s;
    display: block;
  }

  .has-dropdown:hover .dropdown { visibility: hidden; }

  .has-dropdown.open .dropdown {
    visibility: visible;
    max-height: 640px;
  }

  .dropdown::before { display: none; }
  .dropdown a { padding: 11px 10px; }
  .dropdown .dropdown-all { margin-top: 4px; }

  .nav-list .nav-cta-mobile {
    margin-top: 18px;
    display: block;
  }

  .nav-list .nav-cta-mobile .btn { width: 100%; }
}

/* ==========================================================
   26. FINTRIX-STYLE CATEGORY NAV (additive)
   Uppercase compact top-level items, one per service
   category, each with its own hover dropdown.
   ========================================================== */
.nav-link {
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Slightly tighter on narrower desktops so 8 items + CTA fit */
@media (min-width: 1121px) and (max-width: 1400px) {
  .nav-link { font-size: .72rem; padding: 10px 6px; letter-spacing: .05em; }
}

/* In the slide-down panel (tablet/mobile) keep links readable */
@media (max-width: 1120px) {
  .nav-link { font-size: .88rem; letter-spacing: .07em; white-space: normal; }
}

/* Dropdown items stay sentence case */
.dropdown a { text-transform: none; letter-spacing: 0; }

/* Service cards are now anchor targets; clear the sticky header */
.svc-card[id], .advisory-panel[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ==========================================================
   27. MOBILE POLISH (additive)
   ========================================================== */

/* Kill sideways wiggle: decorative orbs and the pre-reveal
   slide-in offsets must never widen the page. `clip` keeps
   position:sticky working (unlike `hidden`). */
html, body { overflow-x: hidden; overflow-x: clip; }

/* Corner ribbon stays clipped inside the pricing card */
.price-card { overflow: hidden; }

/* Grid and flex items must be allowed to shrink below their
   intrinsic content width on small screens */
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.calc-wrap > *, .regime-grid > *, .split > *, .hero-grid > * { min-width: 0; }

/* Wide content adapts instead of stretching its column */
.calc-inputs svg, .calc-results svg, .chart-box svg { max-width: 100%; height: auto; }
.formula-box { overflow-x: auto; max-width: 100%; }
.badge-note, .result-note, .calc-card-sub { overflow-wrap: break-word; }
.seg { flex-wrap: wrap; }
.input-affix input, .num-input, .input-affix { min-width: 0; max-width: 100%; }

/* ==========================================================
   28. RUPEE TYPOGRAPHY (additive)
   Playfair Display has no rupee glyph, so any amount set in
   it rendered the currency sign in a mismatched fallback serif.
   All money figures now use Inter with tabular numerals.
   ========================================================== */
.result-hero .num,
.price-amount, .price-card .amount, .plan-price,
.saved-amount, .hero-card .num {
  font-family: var(--font-body, 'Inter'), 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Footer address labels were inheriting dark ink on the navy
   footer; render all footer bold text in gold */
.site-footer .footer-contact strong,
.site-footer .footer-brand strong { color: var(--gold-2); }

/* Catch-all: any bold label in the navy footer renders gold */
.site-footer strong { color: var(--gold-2); }
