/* Appryvo public-site responsive recovery. Loaded after the legacy embedded CSS. */
:root {
  --page-gutter: clamp(16px, 4vw, 24px);
  --section-space: clamp(64px, 8vw, 96px);
}

html,
body {
  max-width: 100%;
}

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

html {
  color-scheme: dark;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 14px;
  color: #0f1115;
  background: var(--gold-accent);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

img,
svg {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-accent);
  outline-offset: 3px;
}

/* Content must remain available even when observers are late or unavailable. */
body.js-loaded [data-reveal]:not(.is-visible),
[data-reveal] {
  opacity: 1;
  transform: none;
}

.features-wrapper,
.how-section,
.world-map-section {
  padding-block: var(--section-space) !important;
  padding-inline: var(--page-gutter) !important;
}

.security-section,
.pricing-section {
  margin-block: var(--section-space) !important;
  padding-inline: var(--page-gutter) !important;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header h2,
.pricing-section .section-header h2 {
  font-size: clamp(30px, 4vw, 36px) !important;
  line-height: 1.15;
  text-wrap: balance;
}

.section-header p {
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.65;
  text-wrap: pretty;
}

.feature-card {
  min-width: 0;
}

.feature-card p {
  font-size: 14px;
}

/* The HTML product screens draw their own device surface. */
.phone-carousel-stage {
  height: 540px;
}

.phone-card {
  appearance: none;
  width: 226px;
  height: auto;
  aspect-ratio: 832 / 1889;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
}

.phone-card--left {
  left: 2%;
  transform: rotate(-8deg) scale(0.86) translateY(4px);
}

.phone-card--center {
  transform: scale(1.04);
  box-shadow: 0 28px 64px rgba(212, 175, 55, 0.28);
}

.phone-card--right {
  right: 2%;
  transform: rotate(8deg) scale(0.86) translateY(4px);
}

.phone-card--left:hover {
  transform: rotate(-6deg) scale(0.9) translateY(-4px);
}

.phone-card--center:hover {
  transform: scale(1.06) translateY(-4px);
}

.phone-card--right:hover {
  transform: rotate(6deg) scale(0.9) translateY(-4px);
}

.phone-notch {
  display: none;
}

.phone-screen,
.phone-screen picture,
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.phone-screen img {
  object-fit: contain;
  object-position: center;
}

.phone-dot {
  appearance: none;
  border: 0;
  padding: 0;
}

.security-grid {
  min-width: 0;
}

.world-map-container {
  width: min(100%, 1150px);
  padding-inline: 0 !important;
}

.world-map-container img {
  width: 100%;
  height: auto;
}

.store-badge {
  appearance: none;
  width: 156px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  font: inherit;
}

.store-badge img,
.footer .store-badge img,
.footer-store-area .store-badge img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 992px) {
  .nav-container {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-wrapper {
    min-height: auto;
    padding: 136px var(--page-gutter) 64px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-title {
    max-width: 760px;
    font-size: clamp(38px, 7vw, 52px);
    line-height: 1.12;
    text-wrap: balance;
  }

  .hero-description {
    max-width: 650px;
    font-size: 17px;
    text-wrap: pretty;
  }

  .hero-visual-area {
    max-width: 680px;
    margin-inline: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-grid {
    grid-template-columns: 1fr !important;
    max-width: 720px;
    margin-inline: auto;
  }

  .security-grid .feature-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --section-space: 68px;
  }

  .nav-container {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand-logo {
    height: 32px;
  }

  .nav-right-group {
    gap: 8px;
  }

  .lang-btn {
    min-width: 31px;
    min-height: 32px;
    padding: 4px 7px;
  }

  .btn-download {
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
  }

  .hero-wrapper {
    padding: 112px var(--page-gutter) 52px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-title {
    font-size: clamp(32px, 9.3vw, 40px);
    letter-spacing: -0.7px;
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.62;
    margin-bottom: 28px;
  }

  .hero-store-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 326px);
    gap: 10px;
  }

  .hero-store-downloads .store-badge {
    width: 100%;
    max-width: 158px;
    height: 48px;
  }

  .hero-store-downloads .store-badge img {
    width: 100%;
    height: 100%;
  }

  .hero-visual-area {
    width: 100%;
    margin-inline: 0;
  }

  .phone-carousel-root {
    width: 100%;
  }

  .phone-carousel-stage {
    width: min(100%, 430px);
    height: clamp(420px, 111vw, 478px);
  }

  .phone-card {
    width: clamp(176px, 47vw, 202px);
    border-radius: 22px;
  }

  .phone-card--left {
    left: 10px;
    transform: rotate(-5deg) scale(0.84) translateY(8px);
  }

  .phone-card--center {
    transform: scale(1);
  }

  .phone-card--right {
    right: 10px;
    transform: rotate(5deg) scale(0.84) translateY(8px);
  }

  .phone-card:hover,
  .phone-card--left:hover,
  .phone-card--center:hover,
  .phone-card--right:hover {
    transform: revert-layer;
  }

  .phone-carousel-dots {
    margin-top: 8px;
  }

  .hero-glow {
    filter: blur(70px);
    opacity: 0.13;
    animation: none;
  }

  .hero-glow-backdrop {
    filter: blur(16px);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .feature-icon-wrapper {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
  }

  .feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 15px;
    line-height: 1.6;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2,
  .pricing-section .section-header h2 {
    font-size: clamp(28px, 8vw, 34px) !important;
  }

  .section-header p {
    font-size: 15px;
  }

  .security-grid {
    gap: 14px !important;
    margin-top: 0 !important;
  }

  .world-map-section .section-header {
    margin-bottom: 30px;
    padding-inline: 8px;
  }

  .world-map-container img {
    border-radius: 18px !important;
  }

  .world-map-section {
    padding-inline: clamp(8px, 2.5vw, 12px) !important;
  }

  #duration-selector {
    width: 100%;
    gap: 2px !important;
    margin-top: 22px !important;
  }

  #duration-selector .duration-btn {
    min-height: 44px;
    font-size: 12px !important;
  }

  #pricing-plans-grid {
    width: 100%;
    gap: 18px !important;
    margin-top: 24px !important;
  }

  #pricing-plans-grid .feature-card {
    padding: 28px 22px !important;
  }

  footer {
    padding: 52px var(--page-gutter) 32px;
    overflow: hidden;
  }

  .footer-container {
    gap: 34px;
  }

  .footer-brand,
  .footer-nav-col,
  .footer-store-area {
    width: 100%;
  }

  .footer-store-downloads {
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .footer-store-downloads .store-badge {
    width: min(150px, calc(50% - 5px));
    height: 48px;
  }

  .footer-store-downloads .store-badge img {
    width: 100%;
    height: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    text-align: left;
  }

  .footer-legal-links {
    justify-content: flex-start;
    row-gap: 12px;
  }

  .store-toast {
    right: var(--page-gutter);
    bottom: 18px;
    left: var(--page-gutter);
    text-align: center;
  }
}

@media (max-width: 374px) {
  .nav-container {
    padding-inline: 12px;
  }

  .brand-logo {
    height: 29px;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    min-width: 28px;
    padding-inline: 5px;
    font-size: 11px;
  }

  .btn-download {
    max-width: 92px;
    padding-inline: 9px;
  }

  .hero-wrapper {
    padding-top: 106px;
  }

}

@media (max-width: 340px) {
  .hero-store-downloads {
    grid-template-columns: 1fr;
    width: min(100%, 180px);
  }

  .hero-store-downloads .store-badge {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-card,
  .feature-card,
  .hero-glow,
  .floating-spark {
    animation: none !important;
    transition: none !important;
  }
}
