/* Allyvo product page — aligned with AppTheme glass + gradient */

:root {
  --allyvo-accent: #5978fa;
  --allyvo-violet: #8c5cf5;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  border-radius: 0.5rem;
  background: var(--allyvo-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5c6070;
  transition: color 0.2s var(--ease-out);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #14151a;
}
.nav-link:focus-visible {
  outline: 2px solid var(--allyvo-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #5c6070;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background: rgba(89, 120, 250, 0.08);
  color: #14151a;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--allyvo-accent), var(--allyvo-violet));
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 28px rgba(89, 120, 250, 0.28);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(89, 120, 250, 0.34);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--allyvo-accent);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(20, 21, 26, 0.1);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #14151a;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(89, 120, 250, 0.35);
  background: #fff;
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--allyvo-accent);
  outline-offset: 3px;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.animate-pulse-soft {
  animation: pulse-soft 2.4s ease-in-out infinite;
}

/* Hero stars */
.hero-stars {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(89, 120, 250, 0.35), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(140, 92, 245, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(249, 200, 98, 0.45), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(89, 120, 250, 0.25), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(140, 92, 245, 0.2), transparent);
  background-size: 100% 100%;
  opacity: 0.7;
}

/* Phone mockup */
.phone-frame {
  position: relative;
  border-radius: 2.5rem;
  padding: 0.65rem;
  background: linear-gradient(145deg, #2a2b33, #0f1014);
  box-shadow: 0 40px 80px rgba(20, 21, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.phone-frame--hero {
  max-width: 300px;
  margin-inline: auto;
}
.phone-frame--sm {
  border-radius: 2rem;
  padding: 0.5rem;
  max-width: 240px;
}
.phone-frame--sm .phone-notch {
  top: 0.7rem;
  height: 1.1rem;
  width: 30%;
}
.phone-notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  z-index: 2;
  width: 28%;
  height: 1.35rem;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: #0f1014;
}
.phone-screen {
  overflow: hidden;
  border-radius: 2rem;
  background: #f7f6f3;
  padding: 2.4rem 0.85rem 1rem;
  min-height: 420px;
}
.phone-screen--shot {
  padding: 0;
  min-height: 0;
  background: #111;
  line-height: 0;
}
.phone-frame--sm .phone-screen--shot {
  border-radius: 1.55rem;
}
.phone-screen--shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* Gallery */
.gallery-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem 2rem;
}
.gallery-phone {
  margin: 0;
  text-align: center;
  transition: transform 0.35s var(--ease-out);
}
.gallery-phone:hover {
  transform: translateY(-8px);
}
.gallery-phone--lift {
  transform: translateY(-12px);
}
.gallery-phone--lift:hover {
  transform: translateY(-18px);
}
.gallery-cap {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5c6070;
}
.shot-tile {
  margin: 0;
  width: 100%;
  max-width: 220px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 21, 26, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
}
.companion-panel--shot {
  background: transparent;
  border: none;
  padding: 0;
}
.companion-panel--shot .phone-frame {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.companion-bubble {
  position: absolute;
  right: -0.5rem;
  bottom: 3.5rem;
  z-index: 4;
  max-width: 200px;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(242, 209, 230, 0.8);
  box-shadow: 0 16px 40px rgba(140, 92, 245, 0.15);
  backdrop-filter: blur(12px);
  animation: float-y 4s ease-in-out infinite;
}
.companion-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ccbff5, #ffd5e3, #fce8d5);
  font-size: 0.7rem;
  font-weight: 700;
  color: #704e78;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Value cards */
.value-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(20, 21, 26, 0.04);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(20, 21, 26, 0.06);
}
.value-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Feature rows */
.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.75);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(20, 21, 26, 0.04);
}
@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 2.25rem;
  }
  .feature-row.reverse .feature-copy { order: 2; }
  .feature-row.reverse .feature-visual { order: 1; }
}
.feature-badge {
  display: inline-block;
  border-radius: 9999px;
  background: rgba(89, 120, 250, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--allyvo-accent);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #5c6070;
  line-height: 1.7;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--allyvo-accent), var(--allyvo-violet));
}
.feature-list.dark-list li { color: #5c6070; }

.feature-visual {
  min-height: 180px;
  border-radius: 1rem;
  background: linear-gradient(145deg, #f0effc, #faf8f5);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Companion section */
.companion-scenario {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  backdrop-filter: blur(8px);
}
.companion-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}
.companion-face {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.face-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #fff5f0, #f2d1e6, #e0d4ff);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  padding-top: 1.1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.face-eye {
  width: 0.45rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #704e78;
}
.face-smile {
  width: 1.25rem;
  height: 0.55rem;
  border-bottom: 2px solid #946678;
  border-radius: 0 0 9999px 9999px;
  margin-top: -0.15rem;
}
.companion-star-float {
  position: absolute;
  top: 0;
  right: calc(50% - 3.5rem);
  color: #f9c862;
  font-size: 1rem;
  animation: float-y 3s ease-in-out infinite;
}
.companion-chat { display: flex; flex-direction: column; gap: 0.65rem; }
.companion-msg {
  max-width: 92%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.companion-msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-right-radius: 0.25rem;
}
.companion-msg.ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(255, 245, 240, 0.95), rgba(242, 209, 230, 0.9));
  color: #3d3344;
  border-bottom-left-radius: 0.25rem;
}

/* Personality */
.personality-shell {
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(89, 120, 250, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(48, 176, 199, 0.08), transparent 50%),
    #f7f7fa;
  border: 1px solid rgba(60, 60, 67, 0.08);
  padding: 2rem;
}
@media (min-width: 640px) {
  .personality-shell { padding: 2.5rem; }
}
.pers-mod-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.pers-mod-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(60, 60, 67, 0.06);
}
.pers-mod-ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pers-mod-ico .sf {
  width: 1.1rem;
  height: 1.1rem;
}
.pers-mod-item.site .pers-mod-ico {
  color: #5978fa;
  background: rgba(89, 120, 250, 0.12);
}
.pers-mod-item.fp .pers-mod-ico {
  color: #30b0c7;
  background: rgba(48, 176, 199, 0.12);
}
.pers-mod-item.links .pers-mod-ico {
  color: #5856d6;
  background: rgba(88, 86, 214, 0.12);
}
.pers-mod-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  color: #1c1c1e;
  letter-spacing: -0.01em;
}
.pers-mod-item p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #636366;
}
.site-browser {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 48px rgba(20, 21, 26, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.site-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: #f0efec;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.site-bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.12);
}
.site-bar p {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: #9498a8;
  margin: 0;
}
.site-body { padding: 1.25rem; }
.site-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--allyvo-accent), var(--allyvo-violet));
  margin-bottom: 0.75rem;
}
.site-line {
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  margin-bottom: 0.45rem;
  width: 70%;
}
.site-line.title { width: 45%; height: 0.65rem; margin-bottom: 0.65rem; }
.site-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}
.site-block {
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(89, 120, 250, 0.1);
}
.site-block.wide { grid-column: span 2; }

/* Personality dual-phone showcase */
.pers-shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.pers-shots-main {
  position: relative;
  z-index: 2;
}
.pers-shots-side {
  position: relative;
  z-index: 1;
  margin-left: -3.25rem;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 18px 30px rgba(20, 21, 26, 0.16));
}
@media (max-width: 560px) {
  .pers-shots-side { display: none; }
  .pers-shots-main { margin-inline: auto; }
}

/* Trust */
.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #5c6070;
  line-height: 1.5;
}
.trust-item span { font-size: 1.25rem; line-height: 1; }

/* FAQ accordion */
.faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #14151a;
  background: transparent;
  border: none;
  cursor: pointer;
  min-height: 44px;
}
.faq-trigger:hover { background: rgba(89, 120, 250, 0.04); }
.faq-trigger:focus-visible {
  outline: 2px solid var(--allyvo-accent);
  outline-offset: -2px;
}
.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: rgba(89, 120, 250, 0.1);
  color: var(--allyvo-accent);
  font-size: 1rem;
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-panel {
  padding: 0 1.15rem 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #5c6070;
}

/* Download */
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #fff 0%, #f0effc 50%, #faf5f0 100%);
  padding: 2rem;
  box-shadow: 0 24px 56px rgba(89, 120, 250, 0.1);
}
@media (min-width: 640px) {
  .download-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem;
  }
}
.download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.qr-frame {
  display: block;
  padding: 0.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(89, 120, 250, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(89, 120, 250, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.qr-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(89, 120, 250, 0.14);
}
.qr-image {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 0.5rem;
}

.footer-link {
  color: #5c6070;
  transition: color 0.2s;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: #14151a;
}
.footer-link:focus-visible {
  outline: 2px solid var(--allyvo-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@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;
  }
}
