/* AASHA Self-Hosted Fonts — Zero External SRI Dependency */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-800.woff2') format('woff2');
}

/* AASHA Website Design System — White Theme with Logo Red & Teal Accents */

:root {
  --primary: #000000;
  --primary-dark: #000000;
  --primary-light: #000000;
  --logo-red: #EE353B;
  --logo-red-light: #FDE8E8;
  --accent: #EE353B;
  
  --bg: #FFFFFF; /* Pure White Background */
  --bg-subtle: #F8FAFC; /* Soft clean white subtle background */
  --surface: #FFFFFF;
  --surface-dark: #16231F;
  --text-main: #000000; /* Pure Solid Black Text */
  --text-muted: #000000; /* Pure Solid Black Text */
  --border: #E2E8F0;
  
  --tier-low: #2F8F5B;
  --tier-low-bg: #E8F5ED;
  --tier-mod: #C68A17;
  --tier-mod-bg: #FFF3E0;
  --tier-high: #EE5253;
  --tier-high-bg: #FDE8E8;
  --tier-inc: #64748B;
  --tier-inc-bg: #F1F5F9;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: #000000 !important;
  line-height: 1.6;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6, p, span, a, button, input, div {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: #000000 !important;
}

.text-gradient {
  background: linear-gradient(135deg, #EE5253 0%, #0B5E59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.blood-drop-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heartbeat 1.8s infinite ease-in-out;
  filter: drop-shadow(0 4px 10px rgba(238, 82, 83, 0.4));
}

.blood-drop-hero-animated {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heartbeat 1.8s infinite ease-in-out;
  filter: drop-shadow(0 12px 28px rgba(238, 82, 83, 0.5));
}

.blood-drop-icon svg, .blood-drop-hero-animated svg {
  width: 100%;
  height: 100%;
}

.blood-drop-path {
  fill: #EE565B;
  stroke: #1F2942;
  stroke-width: 4.5;
  stroke-linejoin: round;
}

.ekg-pulse-line {
  fill: none;
  stroke: #1F2942;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawLine 1.8s infinite linear;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.08); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
  60% { transform: scale(1); }
}

@keyframes drawLine {
  0% { stroke-dashoffset: 240; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -240; }
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: #000000;
  letter-spacing: -0.5px;
}

.brand-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--logo-red);
}

.nav-links {
  display: flex;
  gap: 18px; /* Balanced gap to ensure it fits perfectly on standard screen widths */
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 13.5px; /* Slightly adjusted font size to improve layout fit */
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: var(--logo-red);
}

.nav-cta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--logo-red);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(238, 82, 83, 0.3);
}

.btn-primary:hover {
  background: #d63031;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(238, 82, 83, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Hero */
.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 68px);
  min-height: 100dvh;
  padding: 80px 24px 70px;
  text-align: center;
  background: 
    linear-gradient(180deg, rgba(8, 16, 14, 0.70) 0%, rgba(12, 22, 20, 0.45) 40%, rgba(8, 16, 14, 0.82) 100%),
    url('hero-bg.png?v=4.0') center center / cover no-repeat;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.45);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.product-attribution-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border-radius: 24px;
  font-size: 13px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.badge-accent {
  font-weight: 700;
  color: #FF7E54 !important;
}

.badge-divider {
  color: rgba(255, 255, 255, 0.6);
}

.hero-logo-box {
  margin-bottom: 24px;
}

.hero-heart-container {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  animation: heartbeat 1.8s infinite ease-in-out;
}

.hero-heart-container svg {
  width: 100%;
  height: 100%;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #FF6B6B 0%, #FFA07A 50%, #4ECCA3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-section .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.feature-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.chip svg {
  width: 16px;
  height: 16px;
  color: #FF7E54;
  flex-shrink: 0;
}

/* Disclaimer Bar */
.disclaimer-bar {
  background: var(--logo-red-light);
  border-y: 1px solid rgba(238, 82, 83, 0.2);
  padding: 16px 24px;
}

.disclaimer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.disclaimer-icon {
  width: 22px;
  height: 22px;
  color: var(--logo-red);
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 14px;
  color: var(--text-main);
}

/* Creator Card */
.creator-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.creator-avatar {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.creator-title {
  font-size: 20px;
  color: var(--primary-dark);
}

.creator-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.creator-text {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Sections */
.section {
  padding: 80px 24px;
  background: var(--bg);
}

.section-white {
  background: var(--bg-subtle);
}

.section-dark {
  background: var(--surface-dark);
  color: #FFFFFF;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--logo-red);
  margin-bottom: 8px;
}

.tag-accent {
  color: var(--logo-red);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }
.text-muted { color: rgba(255, 255, 255, 0.7) !important; }

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid 2 Column */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-box {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
}

.box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.box-header svg {
  width: 24px;
  height: 24px;
}

.box-is .box-header svg { color: var(--tier-low); }
.box-is-not .box-header svg { color: var(--logo-red); }

.box-header h3 {
  font-size: 20px;
  color: var(--primary-dark);
}

.info-box ul {
  list-style: none;
}

.info-box li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-main);
}

.info-box li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--logo-red);
  font-weight: bold;
}

/* ── Accordion (active only on mobile via JS + media query) ──
   On desktop the button is unstyled / invisible as a button
   so the layout looks identical to the original box-header div. */

.accordion-header {
  /* Reset button defaults */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: default;
  text-align: left;
  font: inherit;
  color: inherit;
  /* Match original box-header layout */
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.accordion-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.accordion-header-inner svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.box-is .accordion-header-inner svg   { color: var(--tier-low); }
.box-is-not .accordion-header-inner svg { color: var(--logo-red); }

.accordion-header h3 {
  font-size: 20px;
  color: var(--primary-dark);
}

/* Chevron — hidden on desktop */
.accordion-chevron {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

/* Body transition wrapper */
.accordion-body {
  /* On desktop: always visible, no max-height constraint */
  overflow: visible;
}

/* ── Mobile accordion overrides ── */
@media (max-width: 767px) {
  .accordion-header {
    cursor: pointer;
    min-height: 44px;      /* comfortable tap target */
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
  }

  .accordion-header[aria-expanded="false"] {
    border-bottom-color: var(--border);
  }

  .accordion-chevron {
    display: block;
  }

  /* Rotate chevron when expanded */
  .accordion-header[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
  }

  /* Body transition */
  .accordion-body {
    overflow: hidden;
    max-height: 9999px;   /* Default open state (JS will override to 0 for collapsed) */
    transition: max-height 0.28s ease;
  }

  .accordion-body ul {
    padding-top: 12px;
  }
}


/* Cards Grid & 3D Flip Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.flip-card-container {
  perspective: 1200px;
  min-height: 440px;
  height: 100%;
  cursor: pointer;
  border-radius: 20px;
  outline: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  text-align: left;
  transition: transform 0.65s cubic-bezier(0.34, 1.35, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
}

.flip-card-container:hover .flip-card-inner,
.flip-card-container.scroll-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.flip-card-front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
}

.part-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.flip-card-container:hover .part-card {
  border-color: rgba(238, 53, 59, 0.4);
  box-shadow: 0 16px 32px rgba(11, 94, 89, 0.1);
}

.part-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--logo-red);
  background: var(--logo-red-light);
  padding: 4px 10px;
  border-radius: 12px;
}

.part-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--logo-red-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.part-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.part-card h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.part-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.instruction-box {
  font-size: 13px;
  font-style: italic;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--logo-red);
}

.flip-hint {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--logo-red);
}

.flip-hint svg {
  transition: transform 0.4s ease;
}

.flip-card-container:hover .flip-hint svg {
  transform: rotate(180deg);
}

/* 3D Flip Back Face */
.flip-card-back {
  transform: rotateY(180deg);
  background: #0D1412;
  border: 2px solid var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

.phone-screen-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
  display: block;
}

.flip-card-container:hover .flip-screen-img {
  transform: scale(1.03);
}

.flip-screen-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.screen-pill {
  background: #1B8E5F;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.screen-caption {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flip-back-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Fusion Table */
.fusion-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fusion-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.fusion-table th, .fusion-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.fusion-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary-dark);
}

/* Desktop table visible, mobile cards hidden by default */
.fusion-table-desktop { display: block; }
.fusion-cards-mobile  { display: none; }

.vote-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.vote-0 { background: var(--tier-low-bg); color: var(--tier-low); }
.vote-1 { background: var(--tier-mod-bg); color: var(--tier-mod); }
.vote-2 { background: var(--tier-high-bg); color: var(--tier-high); }
.vote-err { background: var(--tier-inc-bg); color: var(--tier-inc); }

.tier-low { color: var(--tier-low); }
.tier-mod { color: var(--tier-mod); }
.tier-high { color: var(--tier-high); }
.tier-inc { color: var(--tier-inc); }

/* History Feature Grid */
.history-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.history-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.history-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.h-item {
  display: flex;
  gap: 14px;
}

.h-item svg {
  width: 24px;
  height: 24px;
  color: var(--logo-red);
  flex-shrink: 0;
}

.h-item h4 {
  font-size: 16px;
  color: var(--primary-dark);
}

.h-item p {
  font-size: 13px;
  color: var(--text-muted);
}

.history-preview-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.h-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.h-count {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.h-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 10px;
  background: var(--bg-subtle);
  border-radius: 10px;
}

.h-date {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-low { background: var(--tier-low-bg); color: var(--tier-low); padding: 4px 8px; border-radius: 8px; font-weight: 700; font-size: 11px; }
.badge-mod { background: var(--tier-mod-bg); color: var(--tier-mod); padding: 4px 8px; border-radius: 8px; font-weight: 700; font-size: 11px; }
.badge-high { background: var(--tier-high-bg); color: var(--tier-high); padding: 4px 8px; border-radius: 8px; font-weight: 700; font-size: 11px; }

/* Simulator Card */
.simulator-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sim-patient-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.input-group {
  flex: 1;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 14px;
}

.slider-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.score-val {
  font-weight: 700;
  color: var(--logo-red);
}

.slider-box input[type="range"] {
  width: 100%;
  accent-color: var(--logo-red);
}

.thresh-indicator {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.sim-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-preset:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Simulator Result */
.sim-result-panel {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.res-patient-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 6px;
  font-weight: 600;
}

.res-headline {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.res-votes {
  font-size: 14px;
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.res-action {
  font-size: 13px;
  line-height: 1.5;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* CTA & Footer */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #FFFFFF;
  padding: 80px 24px;
  text-align: center;
}

.cta-container h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.cta-container p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.install-guide {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ================================================================
   Clean Voidwalkers Innovation Lab Footer
   ================================================================ */
.vw-footer {
  background: #030712;
  color: #9CA3AF;
  padding: 64px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-body), 'Inter', sans-serif;
}

.vw-footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.vw-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.1fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.vw-footer-col {
  display: flex;
  flex-direction: column;
}

.vw-brand-col {
  padding-right: 20px;
}

.vw-brand-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.vw-aasha-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(238, 53, 59, 0.4));
}

.vw-brand-text {
  font-family: var(--font-heading), 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  display: inline-block;
}

.vw-brand-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: #9CA3AF;
  margin-bottom: 24px;
  max-width: 320px;
}

.vw-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vw-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vw-social-btn:hover {
  transform: translateY(-2px) scale(1.08);
}

.vw-social-btn.vw-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.vw-social-btn.vw-email {
  background: #EA4335;
}

.vw-social-btn.vw-gh {
  background: #24292E;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vw-social-btn.vw-vw {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.vw-social-btn.vw-li {
  background: #0A66C2;
}

.vw-social-btn.vw-x {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.vw-social-btn.vw-yt {
  background: #FF0000;
}

.vw-social-btn.vw-rd {
  background: #FF4500;
}

.vw-footer-heading {
  font-family: var(--font-heading), 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.vw-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vw-footer-links li a {
  color: #9CA3AF;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.vw-footer-links li a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.vw-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.vw-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.vw-footer-copy {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6B7280;
}

.vw-footer-trust {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vw-dot {
  color: rgba(255, 255, 255, 0.2);
}

/* ================================================================
   From Uiverse.io by vinodjangid07 — 3D Isometric Hover Tooltip Button
   Upgraded with GPU transforms & zero-layout-shift stability
   ================================================================ */
.tooltip-container {
  position: relative;
  cursor: pointer;
  font-size: 17px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  contain: layout;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translate3d(-50%, 12px, 0) scale(0.96);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease, visibility 0.24s ease;
  border-radius: 15px;
  box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
    inset -5px -5px 15px rgba(255, 255, 255, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 999;
  width: 260px;
  text-decoration: none;
  color: inherit;
  display: block;
  will-change: transform, opacity;
}

/* Localized vertical hover bridge that never bleeds horizontally */
.tooltip::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 25%;
  right: 25%;
  height: 32px;
  background: transparent;
  pointer-events: auto;
}

.tooltip-container:hover .tooltip,
.tooltip-container.touch-active .tooltip {
  transform: translate3d(-50%, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tooltip .profile {
  background: #2a2b2f;
  border-radius: 10px 15px;
  padding: 12px;
  border: 1px solid #52382f;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tooltip:hover .profile {
  border-color: #e6683c;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 104, 60, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.icon {
  text-decoration: none;
  color: #fff;
  display: block;
  position: relative;
  user-select: none;
  width: 55px;
  height: 55px;
}

.layer {
  width: 55px;
  height: 55px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  will-change: transform;
}

.tooltip-container:hover .layer,
.tooltip-container.touch-active .layer {
  transform: rotate(-35deg) skew(20deg);
}

.layer span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border: 1px solid #fff;
  border-radius: 15px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.layer span,
.icon .text {
  color: #e6683c;
  border-color: #e6683c;
}

.tooltip-container:hover .layer span,
.tooltip-container.touch-active .layer span {
  box-shadow: -1px 1px 3px #e6683c;
}

.icon .text {
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  font-weight: 500;
  font-size: 13px;
  transform: translate3d(-50%, 0, 0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
  white-space: nowrap;
  pointer-events: none;
}

.tooltip-container:hover .icon .text,
.tooltip-container.touch-active .icon .text {
  transform: translate3d(-50%, 28px, 0);
  opacity: 1;
}

.tooltip-container:hover .layer span:nth-child(1),
.tooltip-container.touch-active .layer span:nth-child(1) {
  opacity: 0.2;
}

.tooltip-container:hover .layer span:nth-child(2),
.tooltip-container.touch-active .layer span:nth-child(2) {
  opacity: 0.4;
  transform: translate3d(5px, -5px, 0);
}

.tooltip-container:hover .layer span:nth-child(3),
.tooltip-container.touch-active .layer span:nth-child(3) {
  opacity: 0.6;
  transform: translate3d(10px, -10px, 0);
}

.tooltip-container:hover .layer span:nth-child(4),
.tooltip-container.touch-active .layer span:nth-child(4) {
  opacity: 0.8;
  transform: translate3d(15px, -15px, 0);
}

.tooltip-container:hover .layer span:nth-child(5),
.tooltip-container.touch-active .layer span:nth-child(5) {
  opacity: 1;
  transform: translate3d(20px, -20px, 0);
}

.instagramSVG {
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: -webkit-linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
}

.tooltip .user,
.user {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tooltip .img,
.img {
  width: 48px;
  height: 48px;
  font-size: 25px;
  font-weight: 700;
  border: 1.5px solid #e6683c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.tooltip .name,
.name {
  font-size: 16px;
  font-weight: 700;
  color: #e6683c;
  line-height: 1.2;
}

.tooltip .username,
.username {
  font-size: 12px;
  color: #f09433;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tooltip:hover .username {
  color: #ff7e54;
  text-decoration: underline;
}

.tooltip .details,
.details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
}

.tooltip .about,
.about {
  color: #ccc;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  line-height: 1.4;
}

/* ================================================================
   Email 3D Isometric Tooltip Button Styles
   ================================================================ */
.email-tooltip .layer span,
.email-tooltip .icon .text {
  color: #EA4335;
  border-color: #EA4335;
}

.email-tooltip:hover .layer span,
.email-tooltip.touch-active .layer span {
  box-shadow: -1px 1px 3px #EA4335;
}

.emailSVG {
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: -webkit-linear-gradient(45deg, #EA4335 0%, #FF5E7E 50%, #FBBC05 100%);
  background: linear-gradient(45deg, #EA4335 0%, #FF5E7E 50%, #FBBC05 100%);
}

.email-tooltip .tooltip {
  width: 290px;
}

.email-tooltip .tooltip .user {
  gap: 10px;
}

.email-tooltip .tooltip .details {
  flex: 1;
  min-width: 0;
}

.email-tooltip .tooltip .img {
  border-color: #EA4335;
}

.email-tooltip .tooltip .name {
  color: #EA4335;
}

.email-tooltip .tooltip .username {
  color: #FBBC05;
  font-size: 11px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  display: block;
}

.email-tooltip .tooltip:hover .username {
  color: #FF5E7E;
  text-decoration: underline;
}

.email-tooltip .tooltip:hover .profile {
  border-color: #EA4335;
  box-shadow: 0 10px 30px rgba(234, 67, 53, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.footer-icon {
  flex-shrink: 0;
}

/* Anaemia Stats & Women's Health Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(238, 53, 59, 0.4);
  box-shadow: 0 16px 28px -6px rgba(0, 0, 0, 0.09), 0 6px 12px -2px rgba(238, 53, 59, 0.08);
}

.stat-card.highlighted {
  border-color: var(--logo-red);
  background: linear-gradient(180deg, var(--surface) 0%, var(--logo-red-light) 100%);
  box-shadow: 0 8px 20px -4px rgba(238, 53, 59, 0.16);
}

.stat-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.stat-card.highlighted .stat-card-badge {
  background: #FFFFFF;
  color: var(--logo-red);
  border-color: rgba(238, 53, 59, 0.25);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  color: var(--logo-red);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.stat-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.menstruation-explainer {
  display: flex;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.explainer-icon {
  width: 64px;
  height: 64px;
  background: var(--logo-red-light);
  color: var(--logo-red);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explainer-icon svg {
  width: 32px;
  height: 32px;
}

.explainer-content h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.explainer-content p {
  font-size: 14.5px;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.6;
}

.explainer-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 13.5px;
  color: var(--text-main);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-toggle:hover {
  color: var(--primary);
}

/* Mobile Nav Panel Dropdown Drawer */
.mobile-nav-panel {
  display: none; /* Hidden by default */
  position: fixed;
  top: 72px; /* Sits right under the navbar header */
  left: 0;
  width: 100%;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  background: rgba(26, 39, 73, 0.98); /* Glass dark background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 999;
  flex-direction: column;
  padding: 12px 0;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav-panel.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, color 0.2s;
  touch-action: manipulation;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover, .mobile-link:active {
  background: rgba(238, 53, 59, 0.15);
  color: #EE353B;
}

.mobile-link-download {
  color: var(--primary-light);
  font-weight: 600;
  background: rgba(26, 138, 130, 0.05);
}

/* ================================================================
   RESPONSIVE — MOBILE FIRST
   Base styles apply at all widths.
   Tablet / Desktop overrides kick in at min-width: 768px.
   ================================================================ */

/* ── Fluid typography (clamp: mobile → desktop) ── */
.hero-title        { font-size: clamp(1.75rem, 6vw + 0.5rem, 3.25rem); letter-spacing: -0.5px; }
.section-title     { font-size: clamp(1.35rem, 4vw + 0.5rem, 2.25rem); }
.cta-container h2  { font-size: clamp(1.4rem, 4.5vw + 0.5rem, 2.375rem); }
.stat-number       { font-size: clamp(2rem, 8vw, 3.5rem); }

/* ── Hero ── */
.hero-section {
  min-height: calc(100vh - 68px);
  min-height: 100dvh;
  padding: 48px 16px 36px;
  max-width: 100%;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw + 0.25rem, 1.125rem);
  padding: 0 4px;
}

.product-attribution-badge {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.65rem, 2vw, 0.8125rem);
  padding: 6px 12px;
}

.hero-actions {
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 24px;
}

.btn { width: 100%; justify-content: center; text-align: center; }
.btn-lg { padding: 13px 20px; font-size: 0.9375rem; }

.feature-chips { gap: 10px; }
.chip { font-size: clamp(0.7rem, 2.5vw, 0.8125rem); padding: 6px 12px; }

/* ── Navbar ── */
.navbar { padding: 10px 0; }
.nav-container { padding: 0 16px; }
.brand-name { font-size: clamp(1rem, 4vw, 1.375rem); }
.nav-links { display: none; }
.nav-cta { display: none; }
.mobile-menu-toggle { display: flex; }

/* ── Sections spacing ── */
.section { padding: 40px 16px; }
.section-header { margin-bottom: 28px; }
.section-subtitle { font-size: clamp(0.85rem, 2.5vw, 1rem); }

/* ── Disclaimer ── */
.disclaimer-container { flex-direction: column; align-items: flex-start; gap: 8px; }
.disclaimer-text { font-size: 0.8125rem; }

/* ── Creator card ── */
.creator-card { padding: 20px 16px; border-radius: 16px; }
.creator-header { flex-wrap: wrap; gap: 12px; }
.creator-title { font-size: clamp(1rem, 3vw, 1.25rem); }
.creator-text { font-size: 0.875rem; }

/* ── Info boxes (What AASHA IS / IS NOT) ── */
.grid-2col { grid-template-columns: 1fr; gap: 16px; }
.info-box { padding: 20px 16px; }
.box-header h3 { font-size: clamp(1rem, 3.5vw, 1.25rem); }
.info-box li { font-size: 0.8125rem; }

/* ── Stats cards ── */
.stats-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
.stat-card { padding: 20px 16px; border-radius: 16px; }
.stat-label { font-size: 0.875rem; }
.stat-desc { font-size: 0.8125rem; }

/* ── Menstruation explainer ── */
.menstruation-explainer { flex-direction: column; gap: 14px; padding: 20px 16px; border-radius: 16px; }
.explainer-icon { width: 44px; height: 44px; border-radius: 12px; }
.explainer-icon svg { width: 22px; height: 22px; }
.explainer-content h3 { font-size: clamp(0.95rem, 3vw, 1.25rem); margin-bottom: 10px; }
.explainer-content p { font-size: 0.8125rem; }
.explainer-callout { font-size: 0.8125rem; padding: 12px 14px; }

/* ── Part cards (pipeline) ── */
.cards-grid { grid-template-columns: 1fr; gap: 18px; }
.flip-card-container, .flip-card-inner { min-height: 380px; }
.part-card { padding: 22px 18px; border-radius: 16px; }
.part-card h3 { font-size: clamp(1rem, 3.5vw, 1.25rem); }
.part-card p { font-size: 0.8125rem; }
.part-badge { font-size: 0.6875rem; top: 16px; right: 16px; }
.instruction-box { font-size: 0.75rem; }

/* ── Fusion table ── */
.fusion-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fusion-table th, .fusion-table td { padding: 10px 12px; font-size: 0.75rem; white-space: nowrap; }
.vote-tag { font-size: 0.6875rem; padding: 3px 7px; }

/* ── History section ── */
.history-feature-grid { grid-template-columns: 1fr; gap: 20px; }
.history-desc { font-size: 0.875rem; }
.h-item h4 { font-size: 0.9375rem; }
.h-item p { font-size: 0.75rem; }
.h-card-header { font-size: 0.8125rem; }
.h-row { font-size: 0.75rem; padding: 8px; }
.h-date { font-size: 0.625rem; }

/* ── Simulator ── */
.simulator-card { grid-template-columns: 1fr; padding: 18px 16px; gap: 20px; border-radius: 16px; }
.sim-patient-inputs { flex-direction: column; gap: 10px; }
.slider-box { padding: 12px; }
.sim-presets { flex-wrap: wrap; gap: 6px; }
.btn-preset { font-size: 0.6875rem; padding: 6px 10px; }
.sim-result-panel { padding: 18px 16px; }

/* ── CTA Section ── */
.cta-section { padding: 48px 16px; }
.cta-container p { font-size: 0.9rem; }
.cta-actions { flex-direction: column; align-items: center; }
.cta-actions .btn { max-width: 280px; }
.install-guide { font-size: 0.75rem; }

/* ── Footer Mobile ── */
.vw-footer { padding: 48px 16px 28px; }
.vw-footer-container { gap: 36px; }
.vw-footer-grid { grid-template-columns: 1fr; gap: 32px; }
.vw-footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
.vw-footer-trust { justify-content: center; }

/* ================================================================
   TABLET AND UP (768px+)
   ================================================================ */
@media (min-width: 768px) {
  /* Hero */
  .hero-section { padding: 90px 24px 80px; max-width: 100%; min-height: calc(100vh - 68px); min-height: 100dvh; }
  .hero-actions { flex-direction: row; width: auto; max-width: none; margin: 0 auto 40px; }
  .btn { width: auto; }

  /* Navbar */
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  .brand-name { font-size: 22px; }

  /* Sections */
  .section { padding: 80px 24px; }
  .section-header { margin-bottom: 48px; }

  /* Grids */
  .grid-2col { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 48px; }
  .history-feature-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .simulator-card { grid-template-columns: 1fr 1fr; padding: 32px; gap: 32px; }
  .sim-patient-inputs { flex-direction: row; }

  /* Cards */
  .info-box { padding: 32px; }
  .part-card { padding: 28px; }
  .stat-card { padding: 32px; }
  .creator-card { padding: 36px; }
  .menstruation-explainer { flex-direction: row; gap: 32px; padding: 40px; }
  .explainer-icon { width: 64px; height: 64px; }
  .explainer-icon svg { width: 32px; height: 32px; }

  /* Fusion table */
  .fusion-table th, .fusion-table td { padding: 16px 20px; font-size: 0.875rem; white-space: normal; }

  /* CTA */
  .cta-section { padding: 80px 24px; }
  .cta-actions { flex-direction: row; justify-content: center; }
  .cta-actions .btn { max-width: none; }

  /* Footer Tablet & Desktop */
  .vw-footer { padding: 64px 24px 36px; }
  .vw-footer-container { gap: 48px; }
  .vw-footer-grid { grid-template-columns: 2.2fr 1.1fr 1.1fr 1.1fr; gap: 40px; }
  .vw-footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .vw-footer-trust { justify-content: flex-end; }
}

@media (min-width: 768px) and (max-width: 1080px) {
  .vw-footer-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
  }
}

/* ================================================================
   MOBILE-FIRST POLISH (320px–430px) & SAFE AREAS
   ================================================================ */

/* Safe-Area Insets */
.navbar {
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.mobile-nav-panel {
  top: calc(58px + env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.vw-footer {
  padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 24px));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Touch Targets: minimum 44px x 44px for thumb accessibility */
.btn, .btn-lg, .btn-sm, .btn-primary, .btn-outline {
  min-height: 48px;
  touch-action: manipulation;
}

.mobile-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.mobile-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  font-size: 15px;
  touch-action: manipulation;
}

.vw-nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  touch-action: manipulation;
}

.vw-social-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

.accordion-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
}

.btn-flip-back {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* 320px–430px Viewport Optimizations */
@media (max-width: 430px) {
  .hero-section {
    padding: 36px 14px 28px;
  }
  .hero-container {
    padding: 0;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(1.4rem, 6.2vw, 1.95rem);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 20px;
    padding: 0;
  }
  .hero-actions {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 12px 14px;
  }
  .feature-chips {
    gap: 8px;
    justify-content: center;
  }
  .chip {
    font-size: 0.725rem;
    padding: 8px 12px;
  }
  .creator-card {
    padding: 16px 14px;
    margin: 24px 0 0;
  }
  .creator-avatar {
    width: 44px;
    height: 44px;
  }
  .creator-title {
    font-size: 1rem;
  }
  .creator-bio {
    font-size: 0.8125rem;
  }
  .info-box {
    padding: 18px 14px;
  }
  .part-card {
    padding: 20px 14px;
  }
  .flip-card-container, .flip-card-inner {
    min-height: 390px;
  }
  .vw-footer {
    padding: 36px 14px 28px;
  }
  .vw-footer-brand-title {
    font-size: 20px;
  }
  .vw-footer-desc {
    font-size: 0.8125rem;
  }
}

/* Extra Tight Viewports (320px–360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.35rem;
  }
  .hero-subtitle {
    font-size: 0.8125rem;
  }
  .brand-name {
    font-size: 18px;
  }
  .section {
    padding: 32px 12px;
  }
  .info-box {
    padding: 16px 12px;
  }
  .part-card {
    padding: 16px 12px;
  }
}

