:root {
  /* Light mode tokens (toggled when html does NOT have .dark) */
  --bg: #f8fbff;
  --bg-overlay: rgba(248, 251, 255, 0.82);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-tint: rgba(241, 245, 249, 0.72);
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.12);
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --border: rgba(15, 23, 42, 0.1);
  --header-bg: rgba(248, 251, 255, 0.78);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 64px -16px rgba(15, 23, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html.dark {
  /* Dark mode default — matching moodmeter.cend.in slate-900 aesthetic */
  --bg: #0f172a;
  --bg-overlay: rgba(15, 23, 42, 0.76);
  --surface: rgba(30, 41, 59, 0.62);
  --surface-solid: #1e293b;
  --surface-tint: rgba(15, 23, 42, 0.62);
  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --ink-subtle: #94a3b8;
  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-soft: rgba(99, 102, 241, 0.18);
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.15);
  --border: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(15, 23, 42, 0.76);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px -8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px -14px rgba(0, 0, 0, 0.65);
}

@property --shine-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('assets/bg.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Floating Orbs (from moodmeter.cend.in) */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: orb-float 18s ease-in-out infinite alternate;
}

html:not(.dark) .ambient .orb {
  opacity: 0.14;
}

.ambient .orb-a {
  background: #4f46e5;
  width: 46vw;
  height: 46vw;
  top: -12%;
  left: -8%;
}

.ambient .orb-b {
  background: #0d9488;
  width: 38vw;
  height: 38vw;
  bottom: -10%;
  right: -6%;
  animation-delay: -6s;
}

.ambient .orb-c {
  background: #38bdf8;
  width: 28vw;
  height: 28vw;
  top: 42%;
  left: 55%;
  opacity: 0.12;
  animation-delay: -11s;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3%, -4%) scale(1.06);
  }

  100% {
    transform: translate(-2%, 3%) scale(0.96);
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.7s cubic-bezier(0, 0, 0.2, 1), opacity 0.7s cubic-bezier(0, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 160ms;
}

.reveal-delay-3 {
  transition-delay: 240ms;
}

h1,
h2,
h3,
h4 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1152px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-mark {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.desktop-nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.desktop-nav a {
  transition: color 0.15s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  display: none;
}

html.dark .theme-toggle .icon-sun,
html:not(.dark) .theme-toggle .icon-moon {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 8px 20px -4px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 12px 24px -4px rgba(79, 70, 229, 0.6);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  padding: 0.85rem 1.25rem;
  text-align: center;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--surface-solid);
  padding: 1rem 4%;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.pill-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.25);
  }
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(120deg, #818cf8 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html:not(.dark) .text-gradient {
  background: linear-gradient(120deg, #4f46e5 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 58ch;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.justify-center {
  justify-content: center;
}

/* Store Badges (official Apple/Google artwork) */
.store-badge {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-badge img {
  display: block;
  width: 162px;
  height: 54px;
  border-radius: 10px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--ink-subtle);
  margin-bottom: 2rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

@media (min-width: 540px) {
  .trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

/* Interactive Phone Mockup */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Shared hardware: screenshots retain their native 660 × 1434 proportions. */
.phone-frame,
.screen-card-frame {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(336px, 100%);
  padding: 8px;
  border: 1px solid #8b8e96;
  border-radius: 50px;
  background: linear-gradient(115deg, #a0a2a9, #36383f 18%, #17181d 48%, #666970 82%, #a6a8af);
  box-shadow: inset 0 0 0 2px #34363d, inset 0 0 0 4px #08090c,
    0 24px 48px -20px rgba(15, 23, 42, 0.38), 0 6px 14px -8px rgba(15, 23, 42, 0.3);
}

/* Physical volume controls and power button sit outside the chassis. */
.phone-frame::before,
.screen-card-frame::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 19%;
  width: 2px;
  height: 4%;
  border-radius: 2px 0 0 2px;
  background: #656870;
  box-shadow: 0 36px #656870, 0 72px #656870;
}

.phone-frame::after,
.screen-card-frame::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 30%;
  width: 2px;
  height: 10%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(#92959b, #43464d);
}

.phone-screen,
.screen-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 660 / 1434;
  overflow: hidden;
  border-radius: 13cqi;
  background: #08090c;
  box-shadow: 0 0 0 3px #08090c;
}

/* The screenshots already contain their own time and status icons. */
.phone-screen::before,
.screen-card-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1.7%;
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 3.6%;
  border-radius: 999px;
  background: radial-gradient(circle at 85% 50%, #172437 0 3%, #07080b 5% 8%, transparent 9%), #050506;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.phone-screen::after,
.screen-card-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: 0.9%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 0.65%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.app-view {
  flex: 1;
  padding: 10px 14px;
  overflow-y: auto;
}

.app-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.app-screen-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
}

.app-badge {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.app-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.app-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.82rem;
  color: #f8fafc;
  outline: none;
}

.app-search-box input::placeholder {
  color: #94a3b8;
}

.app-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-topic-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
}

.topic-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-tag {
  font-size: 0.65rem;
  background: rgba(45, 212, 191, 0.2);
  color: #5eead4;
  padding: 1px 6px;
  border-radius: 999px;
}

.topic-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 2px 0 8px;
}

.topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-btn {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.chip-btn:hover {
  border-color: #818cf8;
  color: #a5b4fc;
}

.chip-accent {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: transparent;
}

.chip-accent:hover {
  color: #ffffff;
  opacity: 0.92;
}

.app-tab-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 6px 4px 10px;
  gap: 2px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 10px;
}

.tab-item.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%) padding-box,
    conic-gradient(from var(--shine-angle, 0deg), #4f46e5 0deg, #818cf8 90deg, #2dd4bf 180deg, #0d9488 270deg, #4f46e5 360deg) border-box;
  border: 1px solid transparent;
  animation: 2.8s linear infinite shine-spin, 0.7s ease-out pill-select-glow;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 8px 20px -4px rgba(79, 70, 229, 0.45);
}

@keyframes shine-spin {
  to {
    --shine-angle: 360deg;
  }
}

@keyframes pill-select-glow {
  0% {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 0 0 6px rgba(129, 140, 248, 0.45), 0 8px 20px -4px rgba(79, 70, 229, 0.45);
  }

  100% {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 8px 20px -4px rgba(79, 70, 229, 0.45);
  }
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.screen-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.screen-tab:hover {
  color: var(--ink);
  border-color: var(--primary);
}

.screen-tab[aria-selected="true"] {
  color: #ffffff;
  background:
    linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%) padding-box,
    conic-gradient(from var(--shine-angle, 0deg), #4f46e5 0deg, #818cf8 90deg, #2dd4bf 180deg, #0d9488 270deg, #4f46e5 360deg) border-box;
  border: 1px solid transparent;
  animation: 2.8s linear infinite shine-spin, 0.7s ease-out pill-select-glow;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 8px 20px -4px rgba(79, 70, 229, 0.45);
}

/* App Screens Ticker Gallery (scrolls opposite to the cancer-types ticker) */
.screens-ticker {
  padding: 0.5rem 0 1rem;
}

.screens-set {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem 0.5rem 0;
}

.screen-card {
  flex: 0 0 auto;
  width: 220px;
  margin: 0;
  transition: transform 0.25s ease;
}

.screen-card:hover {
  transform: translateY(-4px);
}

.screen-card-frame {
  width: min(260px, 100%);
  margin-inline: auto;
  padding: 7px;
  border-radius: 40px;
  transition: box-shadow 0.25s ease;
}

.screen-card:hover .screen-card-frame {
  box-shadow: inset 0 0 0 2px #34363d, inset 0 0 0 4px #08090c,
    0 28px 48px -20px rgba(15, 23, 42, 0.45);
}

.screen-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.screen-card-caption {
  padding: 0.65rem 0.35rem 0.25rem;
  text-align: center;
}

.screen-card-caption strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.screen-card-caption span {
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

/* Mockup internal widgets */
.tip-deck-card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 14px;
}

.tip-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5eead4;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tip-deck-card h3 {
  font-size: 0.98rem;
  color: #f8fafc;
  margin-bottom: 6px;
}

.tip-deck-card p {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  font-size: 0.8rem;
  cursor: pointer;
}

.quiz-option.correct {
  background: rgba(22, 163, 74, 0.25);
  border-color: #22c55e;
  color: #dcfce7;
}

.quiz-option.wrong {
  background: rgba(220, 38, 38, 0.25);
  border-color: #ef4444;
  color: #fee2e2;
}

.quiz-explanation {
  font-size: 0.76rem;
  background: rgba(15, 23, 42, 0.8);
  border-left: 3px solid #818cf8;
  padding: 8px;
  border-radius: 6px;
  margin-top: 8px;
  color: #cbd5e1;
}

/* Marquee Ticker (from moodmeter.cend.in) */
.ticker-section {
  padding: 1.5rem 0 2.5rem;
  overflow: hidden;
}

.ticker-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-set {
  display: flex;
  gap: 0.85rem;
  padding: 0 0.85rem 0 0;
  margin: 0;
  list-style: none;
}

.ticker-tile {
  flex: 0 0 auto;
  width: 8.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.5rem 0.9rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px -14px rgba(15, 23, 42, 0.18);
}

html.dark .ticker-tile {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 20px -14px rgba(2, 6, 23, 0.6);
}

.ticker-tile .ticker-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.65rem;
  color: var(--ticker-color, var(--primary));
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ticker-tile:nth-child(8n+1) { --ticker-color: #2dd4bf; }
.ticker-tile:nth-child(8n+2) { --ticker-color: #818cf8; }
.ticker-tile:nth-child(8n+3) { --ticker-color: #f472b6; }
.ticker-tile:nth-child(8n+4) { --ticker-color: #38bdf8; }
.ticker-tile:nth-child(8n+5) { --ticker-color: #fbbf24; }
.ticker-tile:nth-child(8n+6) { --ticker-color: #a78bfa; }
.ticker-tile:nth-child(8n+7) { --ticker-color: #34d399; }
.ticker-tile:nth-child(8n+8) { --ticker-color: #fb7185; }

html:not(.dark) .ticker-tile:nth-child(8n+1) { --ticker-color: #0d9488; }
html:not(.dark) .ticker-tile:nth-child(8n+2) { --ticker-color: #4f46e5; }
html:not(.dark) .ticker-tile:nth-child(8n+3) { --ticker-color: #db2777; }
html:not(.dark) .ticker-tile:nth-child(8n+4) { --ticker-color: #0284c7; }
html:not(.dark) .ticker-tile:nth-child(8n+5) { --ticker-color: #d97706; }
html:not(.dark) .ticker-tile:nth-child(8n+6) { --ticker-color: #7c3aed; }
html:not(.dark) .ticker-tile:nth-child(8n+7) { --ticker-color: #059669; }
html:not(.dark) .ticker-tile:nth-child(8n+8) { --ticker-color: #e11d48; }

.ticker-tile:hover .ticker-icon {
  transform: scale(1.14) rotate(-4deg);
}

.ticker-tile span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.ticker-wrap[data-static] .ticker-track {
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tint {
  background: var(--surface-tint);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Glassmorphic Cards */
.bento-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 760px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
  }
}

.bento-card,
.step-card,
.audience-card,
.faq-item,
.privacy-card-box,
.legal-card {
  background: var(--surface);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, 0.08);
}

html.dark .bento-card,
html.dark .step-card,
html.dark .audience-card,
html.dark .faq-item,
html.dark .privacy-card-box,
html.dark .legal-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.07) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 28px rgba(255, 255, 255, 0.025),
    0 24px 48px -22px rgba(2, 6, 23, 0.75);
}

@media (hover: none) and (pointer: coarse) {

  html.dark .bento-card,
  html.dark .step-card,
  html.dark .audience-card,
  html.dark .faq-item,
  html.dark .privacy-card-box,
  html.dark .legal-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0.10) 100%);
  }
}

/* Pause infinite decorative animations while off-screen */
[role="tablist"][data-offscreen] .screen-tab[aria-selected="true"],
.store-badge-wrap[data-offscreen] .badge-ring::before,
.store-badge-wrap[data-offscreen] .badge-glow::before {
  animation-play-state: paused;
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(129, 140, 248, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 9px;
}

.card-icon img,
.icon-svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.tab-icon-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.section-illustration {
  display: block;
  width: min(220px, 60%);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.icon-teal {
  background: rgba(20, 184, 166, 0.16);
}

.icon-blue {
  background: rgba(59, 130, 246, 0.16);
}

.icon-purple {
  background: rgba(167, 139, 250, 0.16);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.16);
}

.icon-rose {
  background: rgba(244, 63, 94, 0.16);
}

.icon-slate {
  background: rgba(148, 163, 184, 0.18);
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.bento-card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.feature-bullets {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mini-pills span {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.mt-sm {
  margin-top: 0.85rem;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 780px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.step-num {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Audience Grid */
.audience-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audience-card {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.35);
}

.audience-role {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.audience-card p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* Privacy Section */
.privacy-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .privacy-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.privacy-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin-bottom: 1rem;
}

.privacy-copy p {
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--ink-muted);
}

.privacy-list strong {
  color: var(--ink);
}

.privacy-card-box {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span {
  color: var(--ink-subtle);
}

.spec-row strong {
  color: var(--ink);
  text-align: right;
}

/* FAQ */
.faq-container {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.faq-item summary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.8rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 680px;
}

.cta-inner h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* Legal & Support Subpages */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 640px;
  margin-inline: auto;
}

.legal-shell {
  padding: 1rem 0 4.5rem;
}

.summary-grid-3 {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 760px) {
  .summary-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.35rem;
}

.legal-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.legal-card h3 {
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.legal-card p+p {
  margin-top: 0.75rem;
}

.legal-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer (exact structure from moodmeter.cend.in) */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
  }
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--ink);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-subtle);
  margin-left: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.footer-nav a {
  transition: color 0.15s ease;
}

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

.footer-meta {
  margin-top: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-meta {
    text-align: left;
  }
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.footer-credit a {
  text-decoration: underline;
  transition: color 0.15s ease;
}

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

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--ink-subtle);
  opacity: 0.88;
}

/* Airy artwork with its own transparent lighting; no heavy drop shadow. */
.section-illustration-organised {
  width: min(320px, 80%);
  filter: none;
  margin-bottom: 1.75rem;
}

/* The search capture is shorter and includes Android chrome. Keep its content
   at native proportions, with the same iOS chrome as the other app previews. */
.screen-card-media-search {
  background: linear-gradient(90deg, #0e1b69, #0d206f 50%, #11236f);
}

.screen-card-media-search>img {
  position: absolute;
  top: 3%;
  left: 0;
  width: 100%;
  height: auto;
  clip-path: inset(4% 0 11.3%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 88.7%);
}

.search-ios-status,
.search-ios-navigation {
  position: absolute;
  left: 0;
  width: 100%;
  background-image: url("assets/screens/01-cancer-types.jpg");
  background-size: 100% auto;
  background-repeat: no-repeat;
  pointer-events: none;
}

.search-ios-status {
  top: 0;
  height: 6.5%;
  background-position: center top;
}

.search-ios-navigation {
  bottom: 0;
  height: 9.6%;
  background-position: center bottom;
}