/* Shared app landing (HornsApp, TuMatch, …) — respects site light/dark theme */

@keyframes app-landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes app-landing-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.app-landing {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.app-landing .nav {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Match homepage toolbar height (16px + 40px toggle + 16px) */
  min-height: 72px;
  box-sizing: border-box;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  flex-shrink: 0;
}

.app-landing .nav-brand {
  color: var(--text);
}

.app-landing .nav-brand:hover {
  color: var(--strong);
}

.app-landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

.app-landing::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto;
  height: 55%;
  pointer-events: none;
  animation: app-landing-glow 5.5s ease-in-out infinite;
}

/* —— Dark (default) brand surfaces —— */
.app-landing-horns {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(220, 38, 38, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(127, 29, 29, 0.35), transparent 50%),
    linear-gradient(165deg, #0a0a0b 0%, #1a0a0c 45%, #0f172a 100%);
}

.app-landing-horns::before {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.22), transparent 70%);
}

.app-landing-tumatch {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(14, 165, 233, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(234, 179, 8, 0.18), transparent 50%),
    linear-gradient(165deg, #020617 0%, #0c1a2e 45%, #0f172a 100%);
}

.app-landing-tumatch::before {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
}

.app-landing-chalkbet {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(34, 197, 94, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(21, 128, 61, 0.3), transparent 50%),
    linear-gradient(165deg, #020617 0%, #052e16 45%, #0f172a 100%);
}

.app-landing-chalkbet::before {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.2), transparent 70%);
}

.app-landing-muvin {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(251, 146, 60, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(14, 165, 233, 0.2), transparent 50%),
    linear-gradient(165deg, #0a0a0b 0%, #1c1210 45%, #0f172a 100%);
}

.app-landing-muvin::before {
  background: radial-gradient(circle, rgba(251, 146, 60, 0.22), transparent 70%);
}

/* —— Light brand surfaces —— */
[data-theme="light"] .app-landing-horns {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(220, 38, 38, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(248, 113, 113, 0.1), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #fef2f2 50%, #f8fafc 100%);
}

[data-theme="light"] .app-landing-horns::before {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.16), transparent 70%);
}

[data-theme="light"] .app-landing-tumatch {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(14, 165, 233, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(234, 179, 8, 0.1), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #f0f9ff 50%, #f8fafc 100%);
}

[data-theme="light"] .app-landing-tumatch::before {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
}

[data-theme="light"] .app-landing-chalkbet {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(34, 197, 94, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(74, 222, 128, 0.1), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #f0fdf4 50%, #f8fafc 100%);
}

[data-theme="light"] .app-landing-chalkbet::before {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.14), transparent 70%);
}

[data-theme="light"] .app-landing-muvin {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(251, 146, 60, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #fff7ed 50%, #f8fafc 100%);
}

[data-theme="light"] .app-landing-muvin::before {
  background: radial-gradient(circle, rgba(251, 146, 60, 0.16), transparent 70%);
}

.app-stage {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  width: 100%;
  text-align: center;
  animation: app-landing-rise 0.75s ease both;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 1.25rem;
  display: block;
  animation: app-landing-rise 0.75s ease 0.08s both;
}

.app-landing-horns .app-icon {
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.35);
}

.app-landing-tumatch .app-icon {
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.35);
}

.app-landing-chalkbet .app-icon {
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.35);
}

.app-landing-muvin .app-icon {
  box-shadow: 0 12px 40px rgba(251, 146, 60, 0.35);
}

[data-theme="light"] .app-landing-horns .app-icon {
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.2);
}

[data-theme="light"] .app-landing-tumatch .app-icon {
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .app-landing-chalkbet .app-icon {
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .app-landing-muvin .app-icon {
  box-shadow: 0 12px 32px rgba(251, 146, 60, 0.2);
}

.app-brand {
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: var(--text);
  animation: app-landing-rise 0.75s ease 0.12s both;
}

.app-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  animation: app-landing-rise 0.75s ease 0.18s both;
}

.app-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  animation: app-landing-rise 0.75s ease 0.24s both;
}

.app-actions .btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
}

/* Play / CTA buttons are solid; keep App Store outline like the homepage */
.app-actions button.btn,
.app-actions .btn.play {
  border: none;
}

.app-actions .btn.appstore {
  border: 1px solid var(--appstore-border);
  background: var(--appstore-bg);
  color: var(--appstore-text);
}

.app-actions .btn.appstore:hover {
  background: var(--appstore-hover);
}

.app-stores {
  display: none;
  margin-top: 0.25rem;
}

.app-stores p {
  margin: 0 0 0.65rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.app-more {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  animation: app-landing-rise 0.75s ease 0.28s both;
}

.app-more a {
  color: var(--text-subtle);
  text-decoration: none;
}

.app-landing-horns .app-more a:hover {
  color: #f87171;
}

.app-landing-tumatch .app-more a:hover {
  color: #38bdf8;
}

.app-landing-chalkbet .app-more a:hover {
  color: #4ade80;
}

.app-landing-muvin .app-more a:hover {
  color: #fb923c;
}

[data-theme="light"] .app-landing-horns .app-more a:hover {
  color: #dc2626;
}

[data-theme="light"] .app-landing-tumatch .app-more a:hover {
  color: #0284c7;
}

[data-theme="light"] .app-landing-chalkbet .app-more a:hover {
  color: #16a34a;
}

[data-theme="light"] .app-landing-muvin .app-more a:hover {
  color: #ea580c;
}
