/* ==========================================================================
   Home page (index.html)
   Scoped to .home so the shared header and footer are untouched. The global
   h1-h3 rules in styles.css use !important, so the heading rules here do too.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

.home {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --soft: #f5f6fb;
  --accent: #4f46e5;
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-wide: linear-gradient(120deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
  --radius: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px -8px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 22px 44px -18px rgba(15, 23, 42, 0.22);
  --shadow-lg: 0 32px 64px -28px rgba(15, 23, 42, 0.3);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;

  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

/* product tones, used by tags, buttons and glows */
.home .t-prophet { --tone: #5b5bd6; --tone-soft: #eef0ff; }
.home .t-sun { --tone: #c2410c; --tone-soft: #fff4e8; }
.home .t-redink { --tone: #e5483a; --tone-soft: #fdecea; }
.home .t-scribe { --tone: #3b6cf6; --tone-soft: #e9efff; }
.home .t-village { --tone: #0e8fa3; --tone-soft: #e3f6f8; }
.home .t-soulmate { --tone: #db2777; --tone-soft: #fde8f1; }
.home .t-thoolika { --tone: #15803d; --tone-soft: #e7f6ec; }

/* ---------- resets against styles.css / Bootstrap ---------- */
.home h1,
.home h2,
.home h3 {
  text-wrap: balance;
  font-family: var(--font-head) !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-image: none !important;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.home h1::after,
.home h2::after,
.home h3::after {
  content: none !important;
  display: none !important;
}

.home h3:hover {
  color: var(--ink) !important;
}

.home h3 a {
  color: inherit;
  text-decoration: none;
}

.home h3 a:hover {
  color: var(--tone, var(--accent));
}

.home p {
  margin: 0;
}

.home ul,
.home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home figure {
  margin: 0;
}

.home img {
  max-width: 100%;
  height: auto;
}

.home a:focus-visible,
.home button:focus-visible,
.home input:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
}

/* ---------- shared bits ---------- */
.h-grad-text {
  background: var(--grad-wide);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.h-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.h-head {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.home .h-head h2 {
  margin: 0.75rem 0 0.9rem !important;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.h-head p {
  font-size: 1.08rem;
  color: var(--muted);
}

.h-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.h-section--soft {
  background: var(--soft);
}

/* ---------- buttons ---------- */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.h-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.h-btn .bi {
  transition: transform 0.2s ease;
}

.h-btn:hover .bi-arrow-right {
  transform: translateX(3px);
}

.h-btn--sm {
  padding: 0.62rem 1.1rem;
  font-size: 0.875rem;
}

.h-btn--primary,
.h-btn--primary:visited {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 26px -10px rgba(102, 126, 234, 0.75);
}

.h-btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(118, 75, 162, 0.85);
}

.h-btn--ghost,
.h-btn--ghost:visited {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.h-btn--ghost:hover {
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.3);
}

.h-btn--tone,
.h-btn--tone:visited {
  color: var(--tone);
  background: var(--tone-soft);
  border-color: transparent;
}

.h-btn--tone:hover {
  color: #fff;
  background: var(--tone);
  box-shadow: 0 12px 24px -12px var(--tone);
}

.h-btn--outline,
.h-btn--outline:visited {
  color: var(--ink);
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

.h-btn--outline:hover {
  color: var(--tone, var(--accent));
  border-color: var(--tone, var(--accent));
}

.h-btn--light,
.h-btn--light:visited {
  color: var(--ink);
  background: #fff;
}

.h-btn--light:hover {
  color: var(--ink);
  box-shadow: 0 12px 26px -12px rgba(255, 255, 255, 0.6);
}

.h-btn--glass,
.h-btn--glass:visited {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.h-btn--glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.h-link,
.h-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tone, var(--accent));
  text-decoration: none;
}

.h-link:hover {
  color: var(--tone, var(--accent));
  text-decoration: none;
}

.h-link .bi {
  transition: transform 0.2s ease;
}

.h-link:hover .bi {
  transform: translateX(4px);
}

/* store badges */
.h-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.h-stores a {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h-stores a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -12px rgba(15, 23, 42, 0.55);
}

.h-stores img {
  width: auto;
  max-width: none;
  height: 42px;
}

/* the Play badge PNG has no built-in margin, the Apple SVG does; even them out */
.h-stores img[src*="GetItOnPlayStore"] {
  height: 41px;
}

/* tags */
.h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.h-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.72rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tone, var(--accent));
  background: var(--tone-soft, #eef0ff);
  border-radius: 999px;
}

.h-tag--plain {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.h-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(6.5rem, 10vw, 8.5rem);
  background: #fbfbfe;
}

/* soft colour mesh */
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42rem 32rem at 88% 8%, rgba(102, 126, 234, 0.24), transparent 62%),
    radial-gradient(34rem 26rem at 6% 96%, rgba(245, 87, 108, 0.14), transparent 62%),
    radial-gradient(30rem 24rem at 52% 58%, rgba(118, 75, 162, 0.1), transparent 62%);
}

/* faint dot grid */
.h-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(15, 23, 42, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 25%, transparent 75%);
}

.h-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.h-hero-copy > * {
  animation: h-rise 0.8s var(--ease) both;
}

.h-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.h-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.h-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.h-hero-copy > :nth-child(5) { animation-delay: 0.24s; }

@keyframes h-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.h-eyebrow,
.h-eyebrow:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.9rem 0.32rem 0.35rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.h-eyebrow:hover {
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.3);
  text-decoration: none;
}

.h-eyebrow b {
  padding: 0.18rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
}

.home .h-hero h1 {
  margin: 1.4rem 0 1.2rem !important;
  font-size: clamp(2.3rem, 4.8vw, 3.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

.h-hero-lead {
  max-width: 34rem;
  margin-bottom: 2rem !important;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: var(--text);
}

.h-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.h-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.h-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--text);
}

.h-platforms .h-platforms-label {
  font-weight: 400;
  color: var(--muted);
}

.h-platforms .bi {
  font-size: 1.05rem;
  color: var(--ink);
}

/* device composition */
.h-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.88;
  animation: h-rise 1s var(--ease) 0.15s both;
}

.h-visual-glow {
  position: absolute;
  inset: 6% 4% 2% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.34) 0%, rgba(118, 75, 162, 0.14) 45%, transparent 70%);
}

.h-visual-ring {
  position: absolute;
  inset: 0 6% 4% 10%;
  border: 1px dashed rgba(79, 70, 229, 0.22);
  border-radius: 50%;
  animation: h-spin 80s linear infinite;
}

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

.h-monitor {
  position: absolute;
  top: 6%;
  right: 0;
  width: 86%;
  line-height: 0;
  filter: drop-shadow(0 30px 40px rgba(15, 23, 42, 0.2));
}

.h-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33%;
  line-height: 0;
  filter: drop-shadow(0 26px 30px rgba(15, 23, 42, 0.28));
  transition: transform 0.4s var(--ease);
}

.h-phone:hover {
  transform: translateY(-6px) rotate(-1.5deg);
}

.h-monitor img,
.h-phone img {
  width: 100%;
  height: auto;
}

.h-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem 0.6rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: h-bob 6s ease-in-out infinite;
}

.h-float strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.h-float-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  color: #fff;
  background: var(--grad);
  border-radius: 11px;
}

.h-float--ai {
  top: 0;
  left: 2%;
}

.h-float--dl {
  right: -2%;
  bottom: 12%;
  animation-delay: -3s;
}

.h-float--dl .h-float-ico {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.h-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 9px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  animation: h-bob 7s ease-in-out infinite;
  transition: box-shadow 0.2s ease;
}

.h-tile:hover {
  box-shadow: var(--shadow-lg);
}

.h-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.h-tile--scribe {
  top: 1%;
  right: 6%;
  animation-delay: -4.5s;
}

.h-tile--redink {
  top: 38%;
  right: -3%;
  animation-delay: -1.5s;
}

@keyframes h-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* stats bar overlapping the bottom of the hero */
.h-stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
}

.h-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.h-stat {
  position: relative;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.h-stat + .h-stat::before {
  content: "";
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: 0;
  width: 1px;
  background: var(--line);
}

.h-stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.h-stat-label {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ==========================================================================
   Product cards
   ========================================================================== */
.h-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.h-span-5 { grid-column: span 5; }
.h-span-6 { grid-column: span 6; }
.h-span-7 { grid-column: span 7; }
.h-span-12 { grid-column: span 12; }

.h-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.h-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.h-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem;
  overflow: hidden;
  text-decoration: none;
  background: var(--media, var(--soft));
}

.h-card-media:hover {
  text-decoration: none;
}

/* when a card is taller than its content (next to a longer card), grow the picture, not the gap */
.h-card--grow .h-card-media {
  flex: 1 1 auto;
}

.h-card--grow .h-card-body {
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .h-card--grow .h-card-media img {
    max-height: 540px;
  }
}

.h-card-media img {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 290px;
  transition: transform 0.6s var(--ease);
}

.h-card:hover .h-card-media img {
  transform: scale(1.04);
}

/* decorative circles behind media */
.h-card-media::before,
.h-card-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.h-card-media::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -90px;
}

.h-card-media::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  left: -50px;
}

.h-media--prophet { --media: linear-gradient(135deg, #e0e7ff 0%, #ede4ff 55%, #fce7f3 100%); }
.h-media--windows { --media: linear-gradient(135deg, #eef2ff 0%, #f1f5f9 100%); }
.h-media--web { --media: radial-gradient(circle at 50% 50%, #fff7e0 0%, #ffe8cc 55%, #fde2e4 100%); }
.h-media--village { --media: linear-gradient(135deg, #d9f3f6 0%, #e7f7ef 100%); }
.h-media--soulmate { --media: linear-gradient(135deg, #fdf2f8 0%, #fff7ed 100%); }

.h-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.85rem 2rem;
}

.home .h-card h3 {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.h-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

/* horizontal card (media left) */
.h-card--row {
  flex-direction: row;
}

.h-card--row .h-card-media {
  flex: 0 0 40%;
  min-height: 0;
}

.h-card--row .h-card-body {
  justify-content: center;
  padding: 2.25rem 2.5rem;
}

/* AI note inside the PROPHET card */
.h-ai-note {
  position: relative;
  padding: 1rem 1.15rem 1.05rem;
  background: linear-gradient(135deg, #f3f4ff 0%, #f6efff 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
}

.h-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
}

.h-ai-note p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
}

.h-ai-note strong {
  color: #4338ca;
  font-weight: 600;
}

/* feature chips */
.h-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.h-chips li {
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* feature list with icons */
.h-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
}

.h-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.45;
}

.h-features .bi {
  flex-shrink: 0;
  margin-top: 0.05rem;
  font-size: 1rem;
  color: var(--tone, var(--accent));
}

/* ---------- PROPHET for Windows: buying options ---------- */
.h-buy {
  margin-top: 0.25rem;
  padding: 1.1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.h-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.h-buy-row strong,
.h-price-region {
  display: block;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.h-buy-row span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.h-btn--ms,
.h-btn--ms:visited {
  color: #fff;
  background: #111827;
}

.h-btn--ms:hover {
  color: #fff;
  background: #000;
  box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.6);
}

.h-buy-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.95rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.h-buy-or::before,
.h-buy-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.h-buy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.h-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.h-price-region {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h-price--in .h-price-region { color: #15803d; }
.h-price--intl .h-price-region { color: #0070ba; }

.h-price-amount {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.h-price-amount small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.h-price-note {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

.h-price-note img {
  height: 0.875rem;
  width: auto;
  vertical-align: middle;
}

.h-btn--payu,
.h-btn--payu:visited {
  width: 100%;
  max-width: 190px;
  color: #fff;
  background: #1ca953;
}

.h-btn--payu:hover {
  color: #fff;
  background: #168a44;
  box-shadow: 0 12px 22px -12px rgba(28, 169, 83, 0.8);
}

.h-paypal {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
}

/* PayPal's hosted "Buy Now" button */
.h-paypal .pp-EWUEN9EF5GJXW {
  width: 100%;
  max-width: 190px;
  height: 2.6rem;
  padding: 0 1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25rem;
  color: #000;
  text-align: center;
  background-color: #ffd140;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h-paypal .pp-EWUEN9EF5GJXW:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -12px rgba(180, 140, 0, 0.8);
}

.h-paypal .h-cards {
  max-width: 100%;
  height: auto;
}

.h-buy-policy,
.h-buy-policy:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.h-buy-policy:hover {
  color: var(--accent);
}

/* ---------- 15 languages marquee ---------- */
.h-langs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.h-langs-label {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.h-langs-label .bi {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  color: #fff;
  background: var(--grad);
  border-radius: 12px;
}

.h-langs-label strong {
  font-weight: 700;
}

.h-marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  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);
}

.h-marquee-track {
  display: flex;
  width: max-content;
  animation: h-marquee 42s linear infinite;
}

.h-marquee:hover .h-marquee-track {
  animation-play-state: paused;
}

.h-marquee ul {
  display: flex;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.h-marquee li {
  padding: 0.4rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  color: #4338ca;
  background: #eef0ff;
  border-radius: 999px;
}

@keyframes h-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   AI section (dark)
   ========================================================================== */
.h-dark {
  overflow: hidden;
  isolation: isolate;
  color: #cbd5e1;
  background: #0b1020;
}

.h-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(36rem 28rem at 12% 18%, rgba(229, 72, 58, 0.22), transparent 60%),
    radial-gradient(38rem 30rem at 90% 28%, rgba(59, 108, 246, 0.28), transparent 60%),
    radial-gradient(40rem 26rem at 50% 110%, rgba(118, 75, 162, 0.35), transparent 60%);
}

.h-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 75%);
}

.home .h-dark h2,
.home .h-dark h3,
.home .h-dark h3:hover {
  color: #fff !important;
}

.h-dark .h-head p {
  color: #94a3b8;
}

.h-dark .h-kicker {
  color: #a5b4fc;
}

.h-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.h-ai-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 2rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.h-ai-card::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--tone);
  opacity: 0.22;
  filter: blur(70px);
  transition: opacity 0.35s ease;
}

.h-ai-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.22);
}

.h-ai-card:hover::before {
  opacity: 0.36;
}

.h-ai-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.h-ai-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  padding: 10px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 32px -14px var(--tone);
}

.h-ai-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home .h-ai-card h3 {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.home .h-ai-card h3 a:hover {
  color: #fff;
  opacity: 0.85;
}

.h-ai-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: #94a3b8;
}

.h-dark .h-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.h-dark .h-tag:first-child {
  background: var(--tone);
}

.h-ai-card > p {
  font-size: 1rem;
  color: #cbd5e1;
}

.h-checks {
  display: grid;
  gap: 0.6rem;
}

.h-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.h-checks .bi {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  font-size: 0.8rem;
  color: #fff;
  background: var(--tone);
  background: color-mix(in srgb, var(--tone) 70%, transparent);
  border-radius: 50%;
}

.h-ai-card .h-actions {
  padding-top: 0.5rem;
}

.h-ai-card .h-stores {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Community apps
   ========================================================================== */
.h-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.h-badge-new {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #dc3545;
  border-radius: 999px;
  box-shadow: 0 10px 20px -10px rgba(220, 53, 69, 0.8);
}

.h-new-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  background: var(--tone-soft);
  border-radius: 12px;
}

.h-new-line b {
  flex-shrink: 0;
  padding: 0.12rem 0.5rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #dc3545;
  border-radius: 6px;
}

/* MySoulmate wordmark */
.h-soulmate-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.h-soulmate-mark svg {
  overflow: visible;
  margin-bottom: 1rem;
}

.h-soulmate-name {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #db2777 0%, #dc2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.h-soulmate-tagline {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: #6b7280;
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.12);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(0.95);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.heart-animate {
  transform-origin: center;
  transform-box: fill-box;
  animation: heartPulse 2s ease-in-out infinite;
}

.sparkle-1 { animation: sparkle 1.5s ease-in-out infinite; }
.sparkle-2 { animation: sparkle 2.5s ease-in-out infinite; }
.sparkle-3 { animation: sparkle 2.5s ease-in-out infinite reverse; }

/* ==========================================================================
   Heritage / Indian language computing
   ========================================================================== */
.h-heritage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.home .h-heritage h2 {
  margin: 0.75rem 0 1rem !important;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.h-heritage-copy > p {
  font-size: 1.05rem;
  color: var(--text);
}

.h-timeline {
  position: relative;
  display: grid;
  gap: 1.35rem;
  margin: 2rem 0 2.25rem !important;
  padding-left: 0;
}

.h-timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 2.25rem;
  width: 2px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 60%, #f5576c 100%);
  opacity: 0.35;
}

.h-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.h-year {
  position: relative;
  z-index: 1;
  /* centred in its 4.5rem column, so the timeline line (at 2.25rem) runs through the middle */
  justify-self: center;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 0 0 5px #fff;
}

.h-timeline strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.h-timeline li > div {
  font-size: 0.94rem;
  color: var(--muted);
}

/* collage of the newspaper clipping and the ThoolikaUnicode logo */
.h-collage {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.18), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(21, 128, 61, 0.14), transparent 60%),
    var(--soft);
}

.h-clip {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 44%;
  padding: 10px 10px 34px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-5deg);
  transition: transform 0.4s var(--ease);
}

.h-clip:hover {
  transform: rotate(-2deg) scale(1.03);
}

.h-clip img {
  display: block;
  width: 100%;
  border-radius: 2px;
}

.h-clip figcaption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.h-logo-card {
  position: absolute;
  right: 8%;
  bottom: 9%;
  width: 37%;
  padding: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(4deg);
  transition: transform 0.4s var(--ease);
}

.h-logo-card:hover {
  transform: rotate(1deg) scale(1.03);
}

.h-logo-card img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.h-since {
  position: absolute;
  top: 7%;
  right: 7%;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  text-align: center;
  color: #fff;
  background: var(--grad);
  border-radius: 50%;
  box-shadow: 0 18px 36px -14px rgba(102, 126, 234, 0.9);
  animation: h-bob 7s ease-in-out infinite;
}

.h-since span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.h-since strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

/* language tools */
.h-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 4rem;
}

.h-mini {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.h-mini:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tone, #4f46e5) 35%, transparent);
  box-shadow: var(--shadow-md);
}

.h-mini-img {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  padding: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.h-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.home .h-mini h3 {
  margin-bottom: 0.35rem !important;
  font-size: 1.08rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.h-mini p {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* whole card is clickable through the title link */
.h-mini h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.h-mini .h-link {
  font-size: 0.85rem;
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */
.h-cta-section {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.h-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  background: linear-gradient(120deg, #5a67d8 0%, #764ba2 55%, #c2417a 100%);
  border-radius: 32px;
  box-shadow: 0 40px 80px -40px rgba(118, 75, 162, 0.8);
}

.h-cta::before,
.h-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.h-cta::before {
  width: 420px;
  height: 420px;
  top: -220px;
  right: -120px;
}

.h-cta::after {
  width: 260px;
  height: 260px;
  bottom: -150px;
  left: -60px;
}

.home .h-cta h2 {
  margin-bottom: 0.75rem !important;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #fff !important;
}

.h-cta p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
}

.h-cta .h-hero-cta {
  justify-content: center;
}

/* ==========================================================================
   Scroll reveal (only when JS is on and motion is allowed)
   ========================================================================== */
.h-reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s);
}

.h-reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .h-card--row .h-card-body {
    padding: 2rem;
  }
}

@media (max-width: 991.98px) {
  .h-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .h-hero-lead {
    margin-inline: auto;
  }

  .h-hero-cta,
  .h-platforms {
    justify-content: center;
  }

  .h-visual {
    max-width: 480px;
  }

  .h-bento > * {
    grid-column: 1 / -1;
  }

  .h-card--row {
    flex-direction: column;
  }

  .h-card--row .h-card-media {
    flex-basis: auto;
    min-height: 260px;
  }

  .h-ai-grid,
  .h-pair {
    grid-template-columns: 1fr;
  }

  .h-heritage {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .h-collage {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .h-mini-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 767.98px) {
  .h-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h-stat:nth-child(3)::before {
    display: none;
  }

  .h-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .h-langs {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .h-langs-label {
    justify-content: center;
  }

  .h-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .h-hero {
    padding-top: 2.25rem;
  }

  .h-eyebrow {
    font-size: 0.76rem;
  }

  .h-hero-cta .h-btn {
    flex: 1 1 100%;
  }

  .h-float {
    padding: 0.45rem 0.7rem 0.45rem 0.45rem;
    font-size: 0.68rem;
    border-radius: 13px;
  }

  .h-float strong {
    font-size: 0.74rem;
  }

  .h-float-ico {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 9px;
  }

  .h-float--ai {
    left: -2%;
  }

  .h-float--dl {
    right: -3%;
    bottom: 6%;
  }

  .h-tile {
    width: 46px;
    height: 46px;
    padding: 7px;
    border-radius: 14px;
  }

  .h-tile--redink {
    right: -2%;
  }

  .h-stat {
    padding: 1.15rem 0.75rem;
  }

  .h-stat-label {
    font-size: 0.78rem;
  }

  .h-card-media {
    min-height: 230px;
    padding: 1.5rem;
  }

  .h-card-media img {
    max-height: 240px;
  }

  .h-card-body,
  .h-card--row .h-card-body {
    padding: 1.5rem 1.35rem 1.75rem;
  }

  .home .h-card h3 {
    font-size: 1.3rem !important;
  }

  .h-buy {
    padding: 0.8rem;
  }

  .h-buy-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .h-buy-grid {
    grid-template-columns: 1fr;
  }

  .h-ai-card {
    padding: 1.5rem;
  }

  .h-ai-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .home .h-ai-card h3 {
    font-size: 1.35rem !important;
  }

  .h-collage {
    min-height: 340px;
  }

  .h-since {
    width: 88px;
    height: 88px;
  }

  .h-since strong {
    font-size: 1.3rem;
  }

  .h-mini {
    padding: 1.15rem;
  }

  .h-mini-img {
    width: 68px;
    height: 68px;
  }
}

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

  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
  }

  .h-marquee-track {
    flex-wrap: wrap;
    width: auto;
  }

  .h-marquee ul[aria-hidden="true"] {
    display: none;
  }

  .h-marquee ul {
    flex-wrap: wrap;
  }
}
