/* The India-first section intentionally retains a light canvas in both themes. */
.india-compliance {
  --india-ink: #111b3e;
  --india-muted: #536381;
  --india-blue: #2563df;
  --india-border: #deebfb;
  --india-motion-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  background: #faf9fe;
  color: var(--india-ink);
  padding: clamp(34px, 3.2vw, 52px) 0 clamp(56px, 6vw, 96px);
  border-top: 2px solid #8294b8;
  box-shadow: 0 -10px 22px rgb(25 45 85 / 15%),
    0 -20px 42px rgb(60 95 160 / 9%),
    0 10px 28px rgb(15 23 42 / 5%);
}
.india-compliance::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: -3px;
  left: 50%;
  width: 100px;
  height: 8px;
  border-radius: 999px;
  background: #36558c;
  box-shadow: 0 3px 10px rgb(40 70 125 / 20%);
  transform: translateX(-50%);
  pointer-events: none;
}
.india-compliance.india-lift-ready {
  position: relative;
  z-index: 2;
  border-radius: clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px) 0 0;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.india-compliance-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.india-copy .kicker { color: var(--india-blue); }
.india-copy h2 { color: var(--india-ink); font-size: clamp(28px, 2.6vw, 42px); line-height: 1.14; letter-spacing: -.045em; margin: 16px 0 28px; }
.india-copy h2 span { color: var(--india-blue); }
.india-copy p { color: var(--india-muted); font-size: 15px; line-height: 1.75; max-width: 64ch; margin: 0 0 20px; }
.india-copy .india-config-note { font-size: 13px; margin: 28px 0 0; }
.india-diagram { position: relative; width: 100%; aspect-ratio: 1; }
.india-guides { position: absolute; width: 100%; height: 100%; inset: 0; stroke: #d3e7ff; stroke-width: 1; }
.india-connectors { stroke: #93c1f9; stroke-width: 1.4; }
.india-map { position: absolute; width: 48%; height: 66%; top: 11%; left: calc(26% + 16px); object-fit: contain; }
.india-cards { list-style: none; padding: 0; margin: 0; }
.india-card { position: absolute; display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; align-items: center; gap: 8px; width: 31%; min-height: 80px; padding: 10px; background: #fff; border: 1px solid #e1eaf6; border-radius: 14px; box-shadow: 0 2px 4px rgb(24 52 86 / 2%), 0 8px 20px rgb(24 52 86 / 4%); }
.india-card > div { min-width: 0; }
.india-card .india-icon { width: 28px; height: 28px; border-radius: 50%; }
.india-card .india-icon svg { width: 18px; height: 18px; }
.india-accent--blue { --india-accent: #2563df; --india-soft: #eaf3ff; }
.india-accent--green { --india-accent: #078654; --india-soft: #e7f7ef; }
.india-accent--orange { --india-accent: #c46208; --india-soft: #fff2e5; }
.india-accent--purple { --india-accent: #7440cc; --india-soft: #f1ebfd; }
.india-accent--pink { --india-accent: #d83882; --india-soft: #fdebf4; }
.india-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; color: var(--india-accent); background: var(--india-soft); }
.india-icon svg { width: 22px; height: 22px; }
.india-card h3 { font-size: 12px; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; color: var(--india-ink); margin: 0 0 4px; }
.india-card p { font-size: 11px; line-height: 1.45; color: var(--india-muted); margin: 0; }
.india-check { width: 14px; height: 14px; color: #0b9f69; justify-self: end; }
.india-card--pf, .india-card--esi, .india-card--pt { left: -4%; }
.india-card--lwf, .india-card--form16, .india-card--form24 { right: -4%; }
.india-card--pf, .india-card--lwf { top: 17%; --india-delay: 550ms; }
.india-card--esi, .india-card--form16 { top: 39%; --india-delay: 630ms; }
.india-card--pt, .india-card--form24 { top: 61%; --india-delay: 710ms; }
.india-card--gst { top: 83%; left: 28%; width: 44%; min-height: 72px; --india-delay: 790ms; }
.india-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; padding: 28px 12px; border: 1px solid var(--india-border); border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgb(24 52 86 / 3%); }
.india-stat { display: flex; gap: 18px; align-items: center; padding-inline: 24px; }
.india-stat + .india-stat { border-left: 1px solid var(--india-border); }
.india-stat .india-icon { flex-basis: 52px; width: 52px; height: 52px; border-radius: 16px; }
.india-stat .india-icon svg { width: 28px; height: 28px; }
.india-stat-value { display: block; color: var(--india-accent); font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.04em; }
.india-stat-label { display: block; margin-top: 5px; color: var(--india-muted); font-size: 13px; line-height: 1.5; max-width: 25ch; }
@media (max-width: 1199px) {
  .india-compliance-grid { grid-template-columns: 1fr; gap: 36px; }
  .india-copy { max-width: 760px; }
  .india-copy p { max-width: none; }
  .india-diagram { min-height: 0; max-width: 760px; margin-inline: auto; }
  .india-card h3 { font-size: 14px; }
  .india-card p { font-size: 12px; }
  .india-stat { padding-inline: 16px; gap: 12px; }
  .india-compliance::before { width: 80px; height: 6px; }
}
@media (max-width: 767px) {
  .india-compliance::before { width: 60px; height: 5px; }
  .india-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 16px; margin-top: 36px; }
  .india-stat { padding: 20px 12px; align-items: flex-start; }
  .india-stat:nth-child(3) { border-left: 0; }
  .india-stat:nth-child(n+3) { border-top: 1px solid var(--india-border); }
  .india-stat .india-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
  .india-stat .india-icon svg { width: 22px; height: 22px; }
  .india-stat-value { font-size: 32px; }
}
@media (max-width: 767px) {
  .india-diagram { aspect-ratio: auto; padding-top: 300px; }
  .india-map { width: 260px; height: 270px; top: -3px; left: calc(50% - 114px); }
  .india-guides { height: 300px; }
  .india-guides .india-connectors { display: none; }
  .india-cards { display: grid; gap: 12px; }
  .india-card { position: static; width: auto; height: auto; min-height: 76px; padding: 16px; gap: 14px; --india-delay: 0ms; }
  .india-card h3 { font-size: 14px; }
  .india-card p { font-size: 12px; }
  .india-stats { padding-inline: 8px; }
  .india-stat { gap: 8px; padding-inline: 8px; flex-direction: column; }
  .india-copy h2 { font-size: clamp(27px, 6.5vw, 36px); }
}

/* One-time explanatory entrance. Content is visible if JavaScript is unavailable. */
.india-diagram.is-ready .india-map,
.india-diagram.is-ready .india-rings,
.india-diagram.is-ready .india-connectors,
.india-card.is-ready { opacity: 0; }
.india-diagram.is-visible .india-map { animation: india-map-in 550ms var(--india-motion-ease) both; }
.india-diagram.is-visible .india-rings { animation: india-fade-in 400ms var(--india-motion-ease) 150ms both; }
.india-diagram.is-visible .india-connectors { animation: india-fade-in 500ms var(--india-motion-ease) 350ms both; }
.india-diagram.is-visible .india-connectors path { animation: india-line-in 500ms var(--india-motion-ease) 350ms both; }
.india-card.is-visible { animation: india-card-in 400ms var(--india-motion-ease) var(--india-delay) both; }
.india-card.is-visible .india-check { animation: india-check-in 200ms var(--india-motion-ease) calc(var(--india-delay) + 350ms) both; }
@keyframes india-map-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes india-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes india-line-in { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes india-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes india-check-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .india-compliance *, .india-compliance *::before, .india-compliance *::after {
    animation: none !important;
    transition: none !important;
  }
  .india-diagram.is-ready .india-map, .india-diagram.is-ready .india-rings,
  .india-diagram.is-ready .india-connectors, .india-card.is-ready { opacity: 1; }
}

/* People-page metrics: matching four-card treatment with the existing stat data. */
.india-stats--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 30px);
  margin-top: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.india-stats--cards .india-stat {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 340px;
  overflow: hidden;
  padding: 34px clamp(22px, 2.3vw, 42px);
  border: 1px solid color-mix(in srgb, var(--india-accent) 18%, white);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px -26px color-mix(in srgb, var(--india-accent) 35%, transparent);
  transition: opacity 340ms var(--india-motion-ease), transform 340ms var(--india-motion-ease),
    border-color 220ms ease, box-shadow 220ms ease;
}
.india-stats--cards.india-stats-motion > .india-stat {
  opacity: var(--stats-opacity, 1);
  transform: translate3d(0, var(--stats-y, 0px), 0) scale(var(--stats-scale, 1));
  transition: opacity 560ms ease-out, transform 560ms var(--india-motion-ease),
    border-color 220ms ease, box-shadow 220ms ease;
}
.india-stats--cards.india-stats-motion .india-stat.in .india-icon {
  animation: none;
}
.india-stats--cards .india-stat + .india-stat { border-left: 1px solid color-mix(in srgb, var(--india-accent) 18%, white); }
.india-stats--cards .india-stat::before,
.india-stats--cards .india-stat::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transition: transform 260ms var(--india-motion-ease);
}
.india-stats--cards .india-stat::before {
  right: -58px;
  bottom: -116px;
  width: 210px;
  height: 210px;
  border: 1px solid color-mix(in srgb, var(--india-accent) 8%, transparent);
  box-shadow: inset 0 0 0 20px color-mix(in srgb, var(--india-accent) 4%, transparent),
    inset 0 0 0 21px white;
}
.india-stats--cards .india-stat::after {
  right: -60px;
  bottom: -78px;
  width: 142px;
  height: 142px;
  background: color-mix(in srgb, var(--india-accent) 5%, transparent);
}
.india-stats--cards .india-icon {
  position: relative;
  z-index: 1;
  flex: none;
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
  border: 1px solid var(--india-soft);
  border-radius: 19px;
  transition: transform 220ms var(--india-motion-ease);
}
.india-stats--cards .india-icon svg { width: 46px; height: 46px; }
.india-stats--cards .india-stat.in .india-icon {
  animation: india-stat-icon-in 440ms var(--india-motion-ease) both;
  animation-delay: calc(80ms + var(--i, 0) * 55ms);
}
.india-stats--cards .india-stat > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}
.india-stats--cards .india-stat-value {
  margin-bottom: 7px;
  font-size: clamp(3.25rem, 4vw, 4.5rem);
  line-height: 1;
}
.india-stats--cards .india-stat-label {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  line-height: 1.42;
}
.india-stats--cards .india-stat > div::after {
  display: block;
  flex: none;
  width: 60px;
  height: 4px;
  margin-top: auto;
  padding-top: 22px;
  border-radius: 4px;
  background: linear-gradient(var(--india-accent), var(--india-accent)) left 22px / 72% 4px no-repeat;
  content: "";
  transition: background-size 220ms var(--india-motion-ease);
}
@keyframes india-stat-icon-in {
  from { opacity: 0; transform: translateY(8px) scale(.9) rotate(-5deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@media (hover: hover) and (pointer: fine) {
  .india-stats--cards .india-stat:hover {
    transform: translate3d(0, calc(var(--stats-y, 0px) - 5px), 0) scale(var(--stats-scale, 1));
    border-color: color-mix(in srgb, var(--india-accent) 34%, white);
    box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--india-accent) 40%, transparent);
  }
  .india-stats--cards .india-stat:hover .india-icon { transform: translateY(-2px) rotate(-3deg); }
  .india-stats--cards .india-stat:hover > div::after { background-size: 100% 4px; }
  .india-stats--cards .india-stat:hover::before { transform: translate(-5px, -4px); }
}
@media (max-width: 1000px) {
  .india-stats--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .india-stats--cards .india-stat { min-height: 310px; }
}
@media (max-width: 560px) {
  .india-stats--cards { grid-template-columns: 1fr; gap: 16px; }
  .india-stats--cards .india-stat { min-height: 280px; padding: 26px; }
  .india-stats--cards .india-icon { width: 68px; height: 68px; margin-bottom: 16px; border-radius: 16px; }
  .india-stats--cards .india-icon svg { width: 40px; height: 40px; }
}
