/* ============================================================
   KYAHOGA.CSS — KyaHoga product page (/kyahoga)
   Paradosso Production Website
   Builds on base / layout / components / sections / animations.
   Everything here is scoped with .kh- classes or .kh-page so the
   Paradosso home page is unaffected. Load last.
   ============================================================ */

/* ---------- KYAHOGA TOKENS ---------- */
.kh-page {
  --kh-plum:    #35066b;   /* app header */
  --kh-purple:  #8833a8;   /* app chat bubble */
  --kh-orchid:  #c084fc;
  --kh-gold:    #f59e0b;
  --kh-gold-lt: #fcd34d;
}

.kh-page [id] {
  scroll-margin-top: 84px;
}

/* Gold highlight text — the Jyotish accent */
.kh-gold-text {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kh-label {
  color: var(--kh-orchid);
}

.kh-alt {
  background: var(--surface);
}

.kh-narrow {
  max-width: 780px;
}

/* ---------- NAV: Paradosso × KyaHoga lockup ---------- */
.kh-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.kh-brand-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
}

.kh-brand-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.kh-brand-app img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.45);
}

.kh-page .nav-cta {
  background: linear-gradient(135deg, var(--accent2), var(--kh-purple)) !important;
}

/* ---------- HERO ---------- */
.kh-hero .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 25% -10%, rgba(139, 92, 246, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 78% 55%, rgba(136, 51, 168, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 30% 25% at 85% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}

/* Star field: layered dots, softly twinkling */
.kh-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 33%, rgba(253,230,138,0.8), transparent 60%),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 66% 84%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 83% 28%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 92% 64%, rgba(253,230,138,0.6), transparent 60%),
    radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 35% 92%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 74% 46%, rgba(255,255,255,0.35), transparent 60%);
  background-size: 520px 520px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 40%, transparent 100%);
  animation: khTwinkle 6s ease-in-out infinite alternate;
}

@keyframes khTwinkle {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

.kh-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.kh-hero-text h1 {
  margin-bottom: 1.4rem;
}

.kh-hero-text > p {
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 2.4rem;
}

.kh-badge {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--kh-gold-lt);
}

.kh-badge::before {
  background: var(--kh-gold);
  box-shadow: 0 0 8px var(--kh-gold);
  animation-name: khPulseGold;
}

@keyframes khPulseGold {
  0%, 100% { box-shadow: 0 0 8px #f59e0b; }
  50%      { box-shadow: 0 0 16px #f59e0b, 0 0 24px rgba(245, 158, 11, 0.4); }
}

.kh-actions {
  justify-content: flex-start;
}

.kh-hero-stats {
  justify-content: flex-start;
  gap: 2.5rem;
  margin-top: 3rem;
}

.kh-hero-stats .stat {
  text-align: left;
}

/* Visual: zodiac ring + phone */
.kh-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.kh-ring {
  position: absolute;
  width: min(560px, 120%);
  height: auto;
  animation: khSpin 120s linear infinite;
}

.kh-ring .kh-ring-line {
  fill: none;
  stroke: rgba(192, 132, 252, 0.22);
  stroke-width: 1;
}

.kh-ring .kh-ring-faint {
  stroke: rgba(192, 132, 252, 0.1);
  stroke-dasharray: 2 6;
}

.kh-ring .kh-ring-tick {
  stroke: rgba(253, 230, 138, 0.35);
  stroke-width: 1.2;
}

.kh-ring text {
  fill: rgba(253, 230, 138, 0.55);
  font-size: 22px;
  text-anchor: middle;
  dominant-baseline: central;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', system-ui, sans-serif;
}

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

.kh-phone {
  position: relative;
  width: 270px;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2340, #0f0c1d);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(136, 51, 168, 0.35);
  animation: float 6s ease-in-out infinite;
}

.kh-phone img {
  width: 100%;
  height: auto;
  border-radius: 29px;
}

/* ---------- MISSION / CARDS ---------- */
.kh-pillar:hover,
.kh-privacy-card:hover {
  border-color: rgba(192, 132, 252, 0.45);
}

.kh-card::before {
  background: linear-gradient(90deg, transparent, var(--kh-orchid), transparent);
}

.kh-card:hover {
  border-color: rgba(192, 132, 252, 0.35);
}

/* ---------- VISION ---------- */
.kh-vision {
  position: relative;
  overflow: hidden;
}

.kh-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 50%, rgba(136, 51, 168, 0.14), transparent 70%);
  pointer-events: none;
}

.kh-vision .section-header {
  position: relative;
  max-width: 720px;
  margin-bottom: 0;
}

/* ---------- HOW IT WORKS ---------- */
.kh-step-1 { background: rgba(99,  102, 241, 0.10); border-color: rgba(99,  102, 241, 0.35); }
.kh-step-2 { background: rgba(168,  85, 247, 0.10); border-color: rgba(168,  85, 247, 0.35); }
.kh-step-3 { background: rgba(245, 158,  11, 0.08); border-color: rgba(245, 158,  11, 0.35); }
.kh-step-4 { background: rgba(16,  185, 129, 0.10); border-color: rgba(16,  185, 129, 0.35); }

.kh-point-icon {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
}

/* ---------- STORY: question bubbles (echo the app's chat) ---------- */
.kh-questions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.kh-questions li {
  align-self: flex-start;
  max-width: 85%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1.2rem;
  border-radius: 20px 20px 20px 6px;
  font-size: 0.95rem;
}

.kh-questions li.kh-q-me {
  align-self: flex-end;
  background: var(--kh-purple);
  border-color: transparent;
  color: #fff;
  border-radius: 20px 20px 6px 20px;
}

.kh-page .vision-text p {
  margin-bottom: 1rem;
}

.kh-page .vision-text p:last-of-type {
  margin-bottom: 2rem;
}

/* ---------- HONEST BY DESIGN ---------- */
.kh-is {
  border-color: rgba(16, 185, 129, 0.35);
}

.kh-is .phase-num {
  color: #6ee7b7;
}

.kh-is .phase-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.kh-isnt {
  border-color: rgba(244, 114, 182, 0.3);
}

.kh-isnt .phase-num {
  color: #f9a8d4;
}

.kh-isnt .phase-dot {
  background: transparent;
  border: 1.5px solid #f472b6;
}

/* ---------- FAST FACTS ---------- */
.kh-facts {
  padding: 80px 0;
}

.kh-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.kh-fact {
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.kh-fact .stat-num {
  font-size: 2.4rem;
  line-height: 1.1;
}

/* ---------- PRIVACY ---------- */
.kh-privacy-card > p {
  margin-bottom: 0.5rem;
}

.kh-more {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.92rem;
}

.kh-more a,
.kh-faq a,
.kh-byline a {
  color: var(--kh-orchid);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 132, 252, 0.35);
}

.kh-more a:hover,
.kh-faq a:hover,
.kh-byline a:hover {
  border-bottom-color: var(--kh-orchid);
}

/* ---------- FAQ (native <details>, no JS) ---------- */
.kh-faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kh-faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-slow);
}

.kh-faq details[open] {
  border-color: rgba(192, 132, 252, 0.4);
}

.kh-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.kh-faq summary::-webkit-details-marker {
  display: none;
}

.kh-faq summary::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--kh-orchid);
  transition: transform var(--transition-normal);
}

.kh-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.kh-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.kh-faq details p {
  padding: 0 1.3rem 1.2rem;
  font-size: 0.93rem;
}

/* ---------- ABOUT (SEO) ---------- */
.kh-about {
  text-align: center;
}

.kh-about h2 {
  margin-bottom: 1rem;
}

.kh-about p {
  font-size: 1.02rem;
}

.kh-byline {
  margin-top: 1.4rem;
  font-size: 0.88rem;
}

/* ---------- DOWNLOAD CTA ---------- */
.kh-cta-glow {
  background: radial-gradient(ellipse, rgba(136, 51, 168, 0.3) 0%, transparent 70%);
}

.kh-cta-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.4), 0 0 40px rgba(136, 51, 168, 0.5);
}

.kh-stores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.kh-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 190px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  background: #fff;
  color: #0b0716;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.kh-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(136, 51, 168, 0.35);
}

.kh-store:focus-visible {
  outline: 2px solid var(--kh-orchid);
  outline-offset: 3px;
}

.kh-store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--kh-purple);
}

.kh-store span {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.kh-store small {
  font-size: 0.7rem;
  font-weight: 500;
  color: #5b5470;
}

.kh-anchor {
  position: absolute;
  top: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .kh-hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .kh-hero-text > p {
    margin-left: auto;
    margin-right: auto;
  }

  .kh-actions,
  .kh-hero-stats {
    justify-content: center;
  }

  .kh-hero-stats .stat {
    text-align: center;
  }

  .kh-hero-visual {
    min-height: 500px;
  }

  .kh-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .kh-hero {
    padding-top: 110px;
  }

  .kh-ring {
    display: none;
  }

  .kh-hero-visual {
    min-height: 0;
  }

  .kh-phone {
    width: 230px;
  }

  .kh-brand-sep,
  .kh-brand .logo {
    display: none;
  }

  .kh-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 2.4rem;
  }

  .kh-hero-stats .stat-num {
    font-size: 1.6rem;
  }

  .kh-hero-stats .stat-label {
    font-size: 0.75rem;
  }

  .kh-page .pillar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .kh-page .pillar-card {
    padding: 1.1rem;
  }
}

@media (max-width: 480px) {
  .kh-facts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .kh-fact .stat-num {
    font-size: 2rem;
  }

  .kh-questions li {
    max-width: 95%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-ring,
  .kh-stars,
  .kh-phone {
    animation: none !important;
  }
}
