/* Money Vedas - Stylesheet */

/* SYNC NOTE (nav rebuild, 2 Nov 2026): this file is a verbatim copy of
   src/style.css, kept for the static pages (/instruments/, /brokers/)
   that cannot use the Vite-bundled stylesheet. After ANY edit to
   src/style.css, re-copy it here byte-for-byte (keeping this note) or
   the static pages will drift from the homepage. Do not hand-edit
   rules below this note. */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

/* No tap-highlight flash and no default blue focus box: taps show
   nothing, keyboard focus shows a brand-green ring instead. */
* {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--primary, #10b981);
  outline-offset: 2px;
}

/* Smooth cross-document page transitions (Chromium; harmless elsewhere).
   The header morphs between pages; content crossfades. */
@view-transition {
  navigation: auto;
}
.header-nav {
  view-transition-name: site-header;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

:root {
  /* Color Palette */
  --bg-base: #f0f7f4;
  --bg-mesh-1: rgba(198, 235, 218, 0.6);
  --bg-mesh-2: rgba(225, 243, 234, 0.7);
  --bg-mesh-3: rgba(162, 219, 191, 0.4);

  --primary: #10b981; /* Emerald green */
  --primary-dark: #065f46;
  --primary-light: #d1fae5;

  --text-primary: #0a0f0d; /* Crisp near-black text */
  --text-secondary: #2d3732; /* Charcoal */
  --text-muted: #6b7c74;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(10, 30, 20, 0.05);
  --glass-shadow-hover: 0 12px 40px 0 rgba(10, 30, 20, 0.1);

  --active-tab-bg: #0a0f0d; /* Black for active tabs/texts */
  --active-tab-text: #ffffff;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.2);
  border-radius: 5px;
  border: 2px solid var(--bg-base);
  transition: background var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Utilities */
.hidden {
  display: none !important;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Animated Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background-color: var(--bg-mesh-1);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background-color: var(--bg-mesh-2);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 45vw;
  height: 45vw;
  background-color: var(--bg-mesh-3);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(5%, 10%) scale(1.1) rotate(180deg);
  }
  100% {
    transform: translate(-5%, -5%) scale(0.9) rotate(360deg);
  }
}

/* Premium Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating Navigation Bar */

/* Floating Navigation Bar — composite shell: transparent, holding
   an opaque logo chip (left) and the translucent glass pill (centre).
   The glass lives on #nav-container, never on the shell, so the logo
   is never dimmed by backdrop-filter. */
.header-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  z-index: 1000;
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal);
}

/* Gradient hairline along the pill's top edge */
/* Gradient hairline along the pill's top edge */
#nav-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.55),
    transparent
  );
  pointer-events: none;
}




/* Anchor jumps land below the floating pill. */
.section {
  scroll-margin-top: 96px;
}


/* Hidden once the reader reaches the author section (toggled by JS). */
.header-nav.mv-header-hidden {
  transform: translateX(-50%) translateY(-140%);
  opacity: 0;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: transform var(--transition-fast) ease;
  /* Opaque chip: solid white, so the logo never sits behind glass. */
  background: #ffffff;
  border: 1px solid rgba(225, 224, 230, 0.72);
  border-radius: 32px;
  padding: 0 18px;
  height: 52px;
  box-shadow:
    0 12px 32px rgba(6, 95, 70, 0.14),
    inset 0 1px 0 white;
}


.logo span {
  color: var(--primary);
}

/* Header logo: fixed small height, and a max-width cap so it can
   never blow out the header or run off-screen, whatever else
   happens to the height. */
.header-nav .logo img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 200px;
}

.brand-money {
  font-weight: 800;
  color: #1f2937; /* Very dark gray, matching logo text */
  text-transform: lowercase;
  margin-right: 5px; /* Spacing between money and vedas */
}
.brand-vedas {
  font-weight: 600;
  color: #159a5c; /* Specific green from the logo */
  text-transform: lowercase;
}

/* The glass pill: translucent, blurred, centred in the shell. */
#nav-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.56));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(225, 224, 230, 0.72);
  border-radius: 32px;
  padding: 0 10px;
  box-shadow:
    0 12px 32px rgba(6, 95, 70, 0.14),
    inset 0 1px 0 white;
}

.nav-links-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links {
  position: relative;
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
  z-index: 2;
}

.nav-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition:
    color var(--transition-fast) ease,
    transform var(--transition-fast) ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item.active a {
  color: #ffffff !important;
}

/* Calm nav: the active link always carries its own green pill —
   no sliding indicator, no JS measurement. */
.nav-item.active a {
  background-color: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:not(.active) a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
  }
}

.nav-item a i,
.nav-item a svg {
  transition: transform var(--transition-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:not(.active) a:hover i,
  .nav-item:not(.active) a:hover svg {
    transform: scale(1.15);
  }
}

.nav-indicator {
  position: absolute;
  background-color: var(--primary) !important;
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
  transition:
    left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* White-fade scroll zone: a fixed strip under the header that whitens
   content scrolling beneath it (Bright Copter effect). It sits below
   the header (z-index) so the logo and pill stay crisp above it, and
   never intercepts taps. Toggled by JS past the scroll threshold. */
.mv-scroll-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 999;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mv-scroll-fade.is-on {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .mv-scroll-fade {
    transition: none;
  }
}

/* Sliding pill indicator for the tab groups (tax / broker / calculator),
   mirroring the navbar: one green pill glides between tabs on tap. */
.tax-tabs,
.broker-tabs {
  position: relative;
}
.mv-tab-indicator {
  position: absolute;
  background-color: var(--primary); /* navbar green pill, not the black active-tab colour */
  border-radius: 30px;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform-origin: 0 0;
  will-change: transform;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}
.mv-tab-indicator.no-anim {
  transition: none !important;
}
.tax-tabs.mv-tabs-js .mv-tab-indicator,
.broker-tabs.mv-tabs-js .mv-tab-indicator {
  opacity: 1;
}
.tax-tab-btn,
.broker-tab-btn {
  position: relative;
  z-index: 2;
}
/* Once JS owns the pill, the active button stays transparent and the
   pill carries the green — without JS the CSS active background below
   still applies, so the state is never invisible. */
.tax-tabs.mv-tabs-js .tax-tab-btn.active,
.broker-tabs.mv-tabs-js .broker-tab-btn.active {
  background-color: transparent;
  box-shadow: none;
  color: #ffffff;
}

/* Page Section Layout */
.section {
  scroll-margin-top: 140px;
  padding: 140px 0 80px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 20px;
  margin-bottom: 16px;
  transition:
    transform var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease,
    background-color var(--transition-fast) ease;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .section-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    background-color: rgba(16, 185, 129, 0.25);
  }
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Glass Card styling */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--glass-shadow);
  transition:
    transform var(--transition-normal),
    background-color var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  will-change: transform, box-shadow;
}

/* Ensure content inside card is above the glow */
.glass-card > *,
.checklist-card > * {
  position: relative;
  z-index: 1;
}

/* Interactive Flashlight Glow Effect */
.glass-card::before,
.checklist-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.4),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover::before,
.checklist-card:hover::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .glass-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
  }
}

/* Buttons with Ripple & Wave Animations */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary {
  background-color: var(--active-tab-bg);
  color: var(--active-tab-text);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background-color: var(--active-tab-bg);
    color: var(--active-tab-text);
    border-color: var(--active-tab-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}

/* Hero Section */
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Outfit", sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Vedic Rotating Illustration (Hero Right) */
.hero-graphics {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vedic-wheel-container {
  position: relative;
  width: 380px;
  height: 380px;
}

.vedic-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  animation: rotateWheel 40s linear infinite;
}

.vedic-circle-inner {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(10, 15, 13, 0.1);
  border-radius: 50%;
  animation: rotateWheelReverse 25s linear infinite;
}

.vedic-core {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--glass-shadow);
  z-index: 2;
}

.vedic-symbol {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.vedic-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tab-indicator {
  position: absolute;
  bottom: -4px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.orbiting-node {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 1px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .orbiting-node:hover {
    transform: scale(1.15);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
  }
}

.node-1 {
  top: -25px;
  left: calc(50% - 25px);
}
.node-2 {
  right: -25px;
  top: calc(50% - 25px);
}
.node-3 {
  bottom: -25px;
  left: calc(50% - 25px);
}
.node-4 {
  left: -25px;
  top: calc(50% - 25px);
}

@keyframes rotateWheel {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateWheelReverse {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Investment Instruments Grid */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.instrument-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 280px;
  justify-content: space-between;
}

.instrument-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.instrument-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.instrument-icon {
  width: 24px;
  height: 24px;
}

.instrument-risk-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-high {
  background: #fee2e2;
  color: #991b1b;
}
.risk-moderate {
  background: #fef3c7;
  color: #92400e;
}
.risk-low {
  background: #d1fae5;
  color: #065f46;
}

.instrument-body h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.instrument-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instrument-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.instrument-learn-more {
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .instrument-card:hover .instrument-learn-more {
    transform: translateX(4px);
  }
}

/* Modals for Instrument Details */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 13, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-radius: 28px;
  padding: 36px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--active-tab-bg);
  color: var(--active-tab-text);
}

.modal-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-icon-header h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-official-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.modal-official-link:hover {
  text-decoration: underline;
}

/* Pre-requisites Onboarding Checklist */
.checklist-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.checklist-progress-container {
  position: sticky;
  top: 120px;
}

.readiness-ring-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px auto;
}

.readiness-ring {
  transform: rotate(-90deg);
}

.readiness-ring-circle-bg {
  fill: none;
  stroke: rgba(16, 185, 129, 0.1);
  stroke-width: 12;
}

.readiness-ring-circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-dasharray: 565.48; /* 2 * PI * r (r=90) */
  stroke-dashoffset: 565.48;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.readiness-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.readiness-percentage h3 {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.readiness-percentage p {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-card {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition:
    transform var(--transition-normal),
    background-color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

@media (hover: hover) and (pointer: fine) {
  .checklist-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }
}

.checkbox-container {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: rgba(0, 0, 0, 0.05);
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
  cursor: pointer;
}

.checkbox-container:hover input ~ .checkbox-checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-checkmark::after {
  content: "";
  position: absolute;
  display: block;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
}

.checkbox-container input:checked ~ .checkbox-checkmark::after {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

.checklist-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.checklist-card.checked .checklist-text h3 {
  color: var(--text-muted);
  text-decoration: line-through;
}

.checklist-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Broker Selection & Opening Journey */
.broker-tab-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Broker Selection Slider/Tabs */
.broker-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px;
  border-radius: 40px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
}

.broker-tab-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.broker-tab-btn.active {
  background-color: var(--active-tab-bg);
  color: var(--active-tab-text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.broker-panel {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.broker-panel.active {
  display: block;
}

.broker-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.broker-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Uniform logo vessel: every broker gets the identical 132x56 tile —
   same shape, same height, same width. The uploaded PNG lockups are
   tight crops, so contain-fit fills each vessel the same way with no
   per-logo zoom; the per-broker tint survives only as the frame colour. */
.broker-logo-circle {
  width: 132px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Uploaded broker brand marks: contain-fit, never stretched, no
   per-logo scaling — all four render under identical rules. */
.broker-logo-circle img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Broker brand logo tiles: uniform light-green background (Groww shade) on all four vessels */
.logo-zerodha {
  background: #f0fdf4;
  color: #3b82f6;
  border: 1px solid #dcfce7;
}
.logo-groww {
  background: #f0fdf4;
  color: #00d09c;
  border: 1px solid #dcfce7;
}
.logo-upstox {
  background: #f0fdf4;
  color: #7c3aed;
  border: 1px solid #dcfce7;
}
.logo-paytmmoney {
  background: #f0fdf4;
  color: #00baf2;
  border: 1px solid #dcfce7;
}

.broker-meta h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.broker-meta p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Step-by-Step Flow Map */
.journey-timeline {
  position: relative;
  padding-left: 36px;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 15px;
  width: 2px;
  height: calc(100% - 24px);
  background-color: var(--primary-light);
}

.journey-step {
  position: relative;
  margin-bottom: 36px;
}

.journey-step:last-child {
  margin-bottom: 0;
}

.journey-step-number {
  position: absolute;
  left: -36px;
  top: 2px;
  width: 32px;
  height: 32px;
  background: var(--active-tab-bg);
  color: var(--active-tab-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 3px solid var(--bg-base);
}

.journey-step-content {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 20px;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.journey-step-content:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--primary);
}

.journey-step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.journey-step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-alert {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--primary);
  font-size: 0.85rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Risk Profiler Container */
.profiler-box {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-container {
  margin-bottom: 24px;
}

.quiz-question {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .quiz-option:hover {
    background-color: var(--glass-bg-hover);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  }
}

.quiz-option.selected {
  background-color: var(--active-tab-bg);
  color: var(--active-tab-text);
  border-color: var(--active-tab-bg);
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.profiler-results {
  display: none;
  text-align: center;
  animation: scaleUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.result-badge {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 20px;
  margin-bottom: 24px;
  transition:
    transform var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease,
    background-color var(--transition-fast) ease;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .result-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
    background-color: rgba(16, 185, 129, 0.25);
  }
}

.result-title {
  font-family: "Outfit", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.result-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 32px auto;
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    var(--glass-bg),
    rgba(255, 255, 255, 0.2)
  );
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}

.newsletter-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.newsletter-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.newsletter-form {
  width: 100%;
  max-width: 500px;
}

.newsletter-form .input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: all var(--transition-fast) ease;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .newsletter-form .input-group {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 12px;
  }
  .newsletter-form .input-icon {
    display: none;
  }
  .newsletter-form input {
    width: 100%;
    text-align: center;
    padding: 8px;
  }
  .newsletter-form button {
    width: 100%;
  }
}

.newsletter-form .input-group:focus-within {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.newsletter-form .input-icon {
  color: var(--text-muted);
  margin-left: 16px;
  width: 20px;
  height: 20px;
}

.newsletter-form input {
  flex-grow: 1;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  outline: none;
  color: var(--text-primary);
}

.newsletter-form button {
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 1rem;
  min-width: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-message {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.newsletter-message.success {
  color: var(--primary-dark);
}

.newsletter-message.error {
  color: #ef4444;
}

.newsletter-consent {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #6b7280);
}

.newsletter-consent a {
  color: var(--primary, #10b981);
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer styling */
.footer {
  background-color: #0a0f0d;
  color: #ffffff;
  padding: 56px 0 32px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.footer-info h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-info h3 span {
  color: var(--primary);
}

.footer-info p {
  color: #8c9c94;
  margin-bottom: 20px;
}

.footer-links h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #8c9c94;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  border-top: 1px solid #1a221f;
  padding-top: 30px;
  text-align: center;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.8;
}

/* Footer "Back to top" text button (bottom of the page). */
.footer-to-top {
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.footer-to-top:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-to-top svg {
  width: 16px;
  height: 16px;
}

/* Floating back-to-top button, appears once the reader has scrolled. */
.mv-to-top {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 999;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.35);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.mv-to-top svg {
  width: 20px;
  height: 20px;
}

.mv-to-top.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (hover: hover) and (pointer: fine) {
  .mv-to-top:hover {
    transform: translateY(-2px);
  }
}

/* Phones: link groups pair up instead of stacking five blocks tall. */
@media (max-width: 640px) {
  .footer {
    padding: 48px 0 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    margin-bottom: 32px;
  }
  .footer-info {
    grid-column: 1 / -1;
  }
  .footer-info p {
    margin-bottom: 8px;
  }
  .footer-links h4 {
    margin-bottom: 12px;
  }
  .footer-links ul {
    gap: 8px;
  }
  .footer-disclaimer {
    text-align: left;
    padding-top: 24px;
  }
}

.creator-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast) ease;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .creator-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

/* Keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  /* Two-row header: row 1 = logo OUTSIDE the glass, row 2 = the glass
     nav bar holding every button at once in a grid. No hamburger, no
     dropdown panel, no sideways swipe — all 7 buttons visible together. */
  .header-nav {
    max-width: calc(100% - 32px);
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 10px 8px;
    border-radius: 0;
    box-sizing: border-box;
    /* Logo separate from the glass: the header shell itself is fully
       transparent — no background, blur, border, or shadow. Only the
       nav bar below carries the glass. */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* No glass hairline on the mobile bar either. */
  #nav-container::before {
    display: none;
  }
  /* The JS-toggled .scrolled state must not re-add glass to the shell. */
  .header-nav.scrolled {
    background: transparent;
    box-shadow: none;
  }
  /* Logo floats directly on the page background, left-aligned:
     the desktop chip is reset, so the logo row stays bare. */
  .logo {
    align-self: flex-start;
    margin-left: 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    height: auto;
  }
  .header-nav .logo img {
    height: 22px;
    max-width: 56vw;
  }
  #nav-container,
  #nav-container.active {
    /* The glass lives HERE only: the nav bar itself. Visible with or
       without the JS-toggled .active class, so nothing depends on
       the toggle. */
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.56));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(225, 224, 230, 0.72);
    border-radius: 20px;
    box-shadow:
      0 12px 32px rgba(6, 95, 70, 0.14),
      inset 0 1px 0 white;
    padding: 6px;
    transition: none;
    z-index: auto;
    box-sizing: border-box;
  }
  /* 4 links in one flex row: every label visible, no horizontal
     scrolling. */
  /* The wrap and list must fill the full-width pill: without flex: 1
     they shrink-wrap to their content and the links bunch on the left
     instead of spreading via .nav-item { flex: 1 1 0 }. */
  .nav-links-wrap {
    flex: 1;
  }
  .nav-links {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
  }
  .nav-item {
    min-width: 0;
    flex: 1 1 0;
  }
  /* ID-qualified so this beats the later ≤640px `.nav-links a` padding
     rule without touching it. */
  #nav-container .nav-item a {
    justify-content: center;
    white-space: nowrap;
    font-size: 0.75rem; /* 12px */
    line-height: 1.3;
    padding: 8px 3px;
    gap: 3px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  #nav-container .nav-item a i,
  #nav-container .nav-item a svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
  }
  /* The sliding pill indicator is hidden on mobile, so the active item
     gets its own green pill — otherwise its white text would sit on
     bare glass and vanish. */
  .header-nav .nav-item.active a {
    background-color: var(--primary);
    color: #ffffff !important;
  }
  .nav-indicator {
    display: none !important; /* Hide pill indicator on mobile */
  }
  /* Clearance for the taller header (logo row + glass nav bar;
     header bottom ≈ 148px: 16px offset + logo + gaps + nav rows):
     sections must start below it, and anchor jumps must land below
     it too. */
  .section {
    scroll-margin-top: 156px;
    padding-top: 156px;
  }
  .mv-author {
    scroll-margin-top: 156px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-text p {
    margin: 0 auto 32px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-graphics {
    margin-top: 40px;
  }
  .checklist-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .checklist-progress-container {
    position: relative;
    top: 0;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    padding: 10px 10px 8px;
  }

/* Phones: labels are hidden at <=520px (see the .nav-label rule at
   the end of this file), so the nav-row icons stay visible; smaller
   type, breathing room on the active pill. */
@media (max-width: 480px) {
  #nav-container .nav-item a i,
  #nav-container .nav-item a svg {
    display: block;
    width: 18px;
    height: 18px;
  }
  #nav-container .nav-item a {
    font-size: 0.6875rem; /* 11px */
    letter-spacing: -0.2px;
    padding: 8px 4px;
  }
  #nav-container .nav-item.active a {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 360px) {
  #nav-container .nav-item a {
    font-size: 0.65625rem; /* 10.5px */
  }
}
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero-buttons .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .broker-tabs {
    border-radius: 20px;
    padding: 6px;
    gap: 6px;
  }
  .broker-tab-btn {
    padding: 10px 6px;
    font-size: 0.8rem;
  }
  /* 2x2 grid on phones: one-line labels, text vertically centred. */
  #brokers .broker-tabs {
    flex-wrap: wrap;
  }
  #brokers .broker-tab-btn {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: center;
  }
  #brokers .broker-tab-btn svg,
  #brokers .broker-tab-btn i {
    display: none;
  }
  .broker-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Grid collapsing */
  .instruments-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Scroll Reveal Animations - Futuristic Enhanced */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(8px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* Lenis Scroll Smoothness Resets */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* SIP Calculator layout styles */
.calculator-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.input-value {
  color: var(--primary-dark);
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

/* Custom Styled Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  outline: none;
  transition: background var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--active-tab-bg);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

/* Sticky-hover guard: on touch screens :hover sticks after a tap, so every
   transform-bearing :hover rule lives inside (hover: hover) + (pointer: fine).
   Mouse behaviour is unchanged. */
@media (hover: hover) and (pointer: fine) {
  input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary);
  }
}

.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calculator-outputs {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: 20px;
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.output-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.output-card p {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.output-total {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
  margin-bottom: 24px;
}

.output-total h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.output-total p {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--active-tab-bg);
  line-height: 1.1;
}

/* Stacked horizontal bar */
.progress-bar-stack {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.stack-segment {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.segment-invested {
  background-color: var(--text-muted);
}

.segment-returns {
  background-color: var(--primary);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Capital Gains Tax layout styles */
.tax-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tax-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px;
  border-radius: 40px;
  max-width: 850px;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
}

.tax-tab-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tax-tab-btn.active {
  background-color: var(--active-tab-bg);
  color: var(--active-tab-text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tax-panel {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tax-panel.active {
  display: block;
}

.tax-intro-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.tax-table-container {
  overflow-x: auto;
  margin-bottom: 24px;
}

.tax-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  text-align: left;
}

.tax-table th,
.tax-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tax-table th {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.02);
}

.tax-rate-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tax-rate-badge.high {
  background: #fee2e2;
  color: #991b1b;
}
.tax-rate-badge.moderate {
  background: #fef3c7;
  color: #92400e;
}
.tax-rate-badge.low {
  background: #d1fae5;
  color: #065f46;
}

/* Course Modal chapters tabs styling */
.modal-chapters {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 12px;
}

.chapter-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.chapter-tab-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.chapter-tab-btn.active {
  background: var(--active-tab-bg);
  color: var(--active-tab-text);
  border-color: var(--active-tab-bg);
}

.card-progress-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .tax-tabs {
    border-radius: 20px;
    padding: 6px;
    gap: 6px;
  }
  .tax-tab-btn {
    padding: 10px 6px;
    font-size: 0.8rem;
  }
  /* 2x2 grid on phones: room for one-line labels, text vertically
     centred and filling each compact button. */
  #tax-guide .tax-tabs {
    flex-wrap: wrap;
  }
  #tax-guide .tax-tab-btn {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: center;
  }
  #tax-guide .tax-tab-btn svg,
  #tax-guide .tax-tab-btn i {
    display: none;
  }
}

/* Market flash animations (status pill) */

/* Market Status Pill Styles */
.market-status-pill {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.floating-market-btn {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 13, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-open {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: status-blink 1.5s infinite alternate;
}

.dot-closed {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.dot-loading {
  background-color: #d97706;
  box-shadow: 0 0 8px #d97706;
  animation: status-blink 0.8s infinite alternate;
}

@keyframes status-blink {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Calculator Panels */
.calc-panel {
  display: none;
}

.calc-panel.active {
  display: grid;
  animation: fadeIn var(--transition-fast) forwards;
}

/* Market Countdown Badge */
.market-countdown-badge {
  position: absolute;
  top: 100%;
  left: 20px;
  background: rgba(10, 15, 13, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.market-countdown-badge.live {
  color: var(--success);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.1);
}

/* ==========================================================================
   GLOBAL UTILITIES: LAZY LOADER & TOASTS
   ========================================================================== */

/* Global Lazy Loader */
.global-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--bg-color, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.global-page-loader.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

/* Loader count-up ("mic test") + reduced-motion safety */
.global-page-loader {
  flex-direction: column;
  gap: 8px;
}

.loader-count {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #6b7280);
}

@media (prefers-reduced-motion: reduce) {
  .loader-path,
  .loader-area,
  .loader-dot,
  .loader-word,
  .loader-bar-fill {
    animation: none;
  }
  .loader-path {
    stroke-dashoffset: 0;
  }
  .loader-area,
  .loader-dot,
  .loader-word {
    opacity: 1;
  }
  .loader-count,
  .loader-skip {
    display: none;
  }
}

.loader-chart {
  width: min(240px, 70vw);
}

.loader-line {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.loader-path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: loaderDraw 2.2s ease-out 0.2s forwards;
}

.loader-area {
  opacity: 0;
  animation: loaderFade 1s ease 1.4s forwards;
}

.loader-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: loaderPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s forwards;
}

.loader-word {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-dark, #0f172a);
  opacity: 0;
  animation: loaderRise 0.7s ease 0.5s forwards;
}

.loader-word span {
  color: var(--primary, #10b981);
}

.loader-bar {
  width: min(200px, 60vw);
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.loader-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--primary, #10b981);
  animation: loaderBar 5s linear forwards;
}

.loader-skip {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #6b7280);
}

@keyframes loaderDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes loaderFade {
  to {
    opacity: 1;
  }
}

@keyframes loaderPop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loaderRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Global Toast Container */
.global-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.global-toast {
  pointer-events: auto;
  background: white;
  color: var(--text-dark, #0f172a);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 4px solid var(--primary, #10b981);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.global-toast.error {
  border-left-color: #ef4444;
}
.global-toast.error .toast-icon {
  color: #ef4444;
}

.toast-icon {
  color: var(--primary, #10b981);
  display: flex;
}

@keyframes toastSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.global-toast.fade-out {
  animation: toastFadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

/* --- MoneyVedas rework additions (31 Oct 2026) --- */

/* Profiler: explain the disabled Next button */
.quiz-hint { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }

/* Homepage research-library cards */
.mv-learn-card { display: block; color: inherit; text-decoration: none; }
.mv-learn-card h3 { font-family: "Outfit", sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.mv-learn-card p { color: var(--text-secondary); margin-bottom: 16px; }
.mv-learn-link { font-weight: 700; color: var(--primary-dark); display: inline-flex; align-items: center; gap: 6px; }
.mv-learn-more { text-align: center; font-weight: 700; margin-top: 28px; }
.mv-learn-more a { color: var(--primary-dark); }

/* Homepage author section */
.mv-author { padding: 80px 24px; scroll-margin-top: 140px; }
.mv-author-inner { display: flex; align-items: center; justify-content: center; gap: 32px; max-width: 860px; margin: 0 auto; text-align: left; }
.mv-author-photo { width: 112px; height: 112px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; border: 3px solid var(--primary-light); }
.mv-author-text .section-subtitle { margin: 0 0 16px; }
.mv-author-link a { font-weight: 700; color: var(--primary-dark); }
@media (max-width: 640px) {
  .mv-author-inner { flex-direction: column; text-align: center; }
}

/* --- Mobile-first + hero hooks (Phase 3, 31 Oct 2026) --- */

/* Backstop only: every real overflow cause is fixed at its source (ticker and
   blob 100vw widths, 380px hero wheel, node offsets). */
html { overflow-x: clip; }

/* Hero hooks: latest research, with the DYOR warning attached. */
.mv-hooks { margin-top: 36px; max-width: 560px; text-align: left; }
.mv-hooks p { margin-bottom: 0; }
.mv-hooks .mv-hooks-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 12px;
}
.mv-hook-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mv-hook-card a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-primary);
  text-decoration: none;
}
.mv-hook-card a:hover { border-color: var(--primary); }
.mv-hook-card .mv-hook-arrow { margin-left: auto; flex: 0 0 auto; color: var(--primary); }
.mv-hooks .mv-hooks-more { margin-top: 14px; font-size: 1rem; font-weight: 700; }
.mv-hooks-more a { color: var(--primary-dark); }
.mv-hooks .mv-dyor {
  margin-top: 16px;
  background: #fef3c7;
  border-left: 4px solid #d97706;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #451a03;
}
.mv-dyor strong { color: #92400e; }

@media (max-width: 640px) {
  /* Less chrome, no forced full-viewport sections on phones. */
  .section { padding: 156px 0 56px; min-height: auto; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.98rem; }
  .container { padding: 0 16px; }

  /* Hero wheel scales to the phone instead of overflowing it. */
  .vedic-wheel-container { width: min(300px, 84vw); height: auto; aspect-ratio: 1; }
  .vedic-symbol { font-size: 2.4rem; }
  .hero-graphics { margin-top: 32px; }
  .floating-market-btn { font-size: 0.68rem; padding: 5px 10px; gap: 6px; max-width: calc(100vw - 48px); }
  .market-countdown-badge { font-size: 0.68rem; }

  /* Tap targets: 44px minimum on touch widths. */
  .nav-links a { padding: 12px 14px; }
  .modal-close { width: 44px; height: 44px; }
  input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; }
  input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: none; }

  /* Cards, modal, and author section breathe on narrow screens. */
  .glass-card { padding: 24px 20px; }
  .modal-content { padding: 28px 20px; }
  .mv-author { padding: 56px 16px; }
  .broker-tab-btn { min-height: 44px; }
  .quiz-option { padding: 16px 18px; }
}

/* --- Compact range (1 Nov 2026): Instruments through Risk Profiler ---
   Shorter page: content-sized sections, tighter cards, smaller type. */
#instruments,
#sip-calculator,
#prerequisites,
#tax-guide,
#brokers,
#profiler {
  min-height: 0;
  padding: 96px 0 48px 0;
}
#instruments .section-header,
#sip-calculator .section-header,
#prerequisites .section-header,
#tax-guide .section-header,
#brokers .section-header,
#profiler .section-header {
  margin-bottom: 28px;
}
#instruments .section-title,
#sip-calculator .section-title,
#prerequisites .section-title,
#tax-guide .section-title,
#brokers .section-title,
#profiler .section-title {
  font-size: 1.75rem;
}
#instruments .section-subtitle,
#sip-calculator .section-subtitle,
#prerequisites .section-subtitle,
#tax-guide .section-subtitle,
#brokers .section-subtitle,
#profiler .section-subtitle {
  font-size: 0.95rem;
}
#instruments .glass-card,
#sip-calculator .glass-card,
#prerequisites .glass-card,
#tax-guide .glass-card,
#brokers .glass-card,
#profiler .glass-card,
#prerequisites .checklist-card {
  padding: 22px;
  border-radius: 18px;
}
#instruments .broker-tab-layout,
#tax-guide .tax-intro-text,
#brokers .broker-header-card {
  margin-bottom: 20px;
}
#tax-guide .tax-table th,
#tax-guide .tax-table td {
  padding: 10px 14px;
}
@media (max-width: 768px) {
  /* Keep anchor landings below the tall sticky header on phones. */
  #instruments,
  #sip-calculator,
  #prerequisites,
  #tax-guide,
  #brokers,
  #profiler {
    padding-top: 156px;
  }
  /* Tab icons hide on narrow phones, like the navbar (longest label fits). */
  .broker-tab-btn i,
  .broker-tab-btn svg {
    display: none;
  }
}

/* No backdrop-filter support: solid nav bar instead of glass. */
@supports not (backdrop-filter: blur(1px)) {
  #nav-container,
  #nav-container.active {
    background: #fff;
  }
}

/* Calm nav: the sliding .nav-indicator element is dead — hide it at
   all viewports. The active link carries its own green pill. */
#nav-indicator {
  display: none;
}

/* Calm nav: phones show icons only. Labels are wrapped in .nav-label
   spans by shared.js (wrapNavLabels) and visually hidden here. Without
   JS the labels simply show; the layout never breaks. */
@media (max-width: 520px) {
  #nav-container .nav-item .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
