/* ALLO Landing — readable scale (WCAG 2.x / EN 301 549 aligned) */

:root {
  /* Colors */
  --color-primary: #7B5CF0;
  --color-primary-hover: #6A4CE0;
  --color-primary-light: #F3EFFF;
  --color-text: #1A1A2E;
  --color-text-muted: #4B5563;
  --color-bg: #F5F6FA;
  --color-white: #FFFFFF;
  --color-border: #ECECF2;
  --color-orange: #F97316;
  --color-orange-light: #FFF4ED;
  --color-blue: #3B82F6;
  --color-blue-light: #EFF6FF;
  --color-red: #EF4444;
  --color-red-light: #FEF2F2;

  /* Typography — min 16px body, 18px preferred (WCAG 1.4.4 / readability) */
  --text-xs: 0.875rem;   /* 14px — only secondary labels */
  --text-sm: 1rem;       /* 16px — minimum body */
  --text-base: 1.125rem; /* 18px — default body */
  --text-lg: 1.25rem;    /* 20px — lead text */
  --text-xl: 1.5rem;     /* 24px — card headings */
  --text-2xl: 1.75rem;   /* 28px — section headings */
  --text-hero: clamp(2.125rem, 4.5vw, 3.25rem); /* 34–52px */

  /* Spacing & layout */
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 2px 12px rgba(26, 26, 46, 0.05);
  --shadow-md: 0 8px 32px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.14);
  --container-max: 1280px;
  --header-height: 80px;
  --touch-min: 48px; /* WCAG 2.5.5 target size */
  --section-y: 96px;
  --card-padding: 36px;
  --logo-crop-scale: 2.05;
  --logo-offset-y: 3px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.25;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary-light);
}

.btn--sm {
  min-height: var(--touch-min);
  padding: 12px 24px;
  font-size: var(--text-sm);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: auto;
  width: auto;
  max-width: none;
}

/* Обрезка прозрачных полей PNG без редактирования файла */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark--header {
  width: 108px;
  height: 42px;
}

.logo-mark--header img {
  height: calc(40px * var(--logo-crop-scale));
  width: auto;
  transform: translateY(var(--logo-offset-y));
}

.logo-mark--footer {
  width: 96px;
  height: 38px;
}

.logo-mark--footer img {
  height: calc(36px * var(--logo-crop-scale));
  width: auto;
  transform: translateY(2px);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a:not(.btn) {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.header__nav a:not(.btn):hover {
  color: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 104px;
  background: linear-gradient(135deg, #FAFBFD 0%, #F0EBFF 35%, #FAFBFD 70%, #EEF2FF 100%);
  overflow: hidden;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__sparkle {
  position: absolute;
  color: rgba(123, 92, 240, 0.25);
  font-size: 32px;
  line-height: 1;
}

.hero__sparkle--1 {
  top: 12%;
  right: 8%;
  animation: sparklePulse 4s ease-in-out infinite;
}

.hero__sparkle--2 {
  top: 22%;
  right: 14%;
  font-size: 22px;
  animation: sparklePulse 4s ease-in-out infinite 1.5s;
}

@keyframes sparklePulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: #111827;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.hero__highlights li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 190px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.hero__icon svg {
  width: 26px;
  height: 26px;
}

/* Phone mockups */
.hero__phones {
  position: relative;
  height: 620px;
  min-width: 0;
}

.phone {
  position: absolute;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--color-white);
  background: var(--color-white);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone--middle {
  width: 265px;
  right: 26%;
  top: 2%;
  transform: rotate(-5deg);
  z-index: 2;
  animation-delay: -2s;
}

.phone--back {
  width: 250px;
  right: 0;
  top: 6%;
  transform: rotate(10deg);
  z-index: 1;
  animation-delay: -4s;
}

.phone--front {
  width: 300px;
  left: 0;
  top: 0;
  transform: rotate(-3deg);
  z-index: 3;
}

.phone img {
  width: 100%;
  display: block;
}

@keyframes phoneFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Section headings */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-head__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.15s;
}

.security__cards .reveal:nth-child(2) { transition-delay: 0.05s; }
.security__cards .reveal:nth-child(3) { transition-delay: 0.1s; }
.security__cards .reveal:nth-child(4) { transition-delay: 0.15s; }
.security__cards .reveal:nth-child(5) { transition-delay: 0.2s; }

.features .reveal:nth-child(2) { transition-delay: 0.05s; }
.features .reveal:nth-child(3) { transition-delay: 0.08s; }
.features .reveal:nth-child(4) { transition-delay: 0.11s; }
.features .reveal:nth-child(5) { transition-delay: 0.14s; }
.features .reveal:nth-child(6) { transition-delay: 0.17s; }
.features .reveal:nth-child(7) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .phone {
    animation: none;
  }

  .hero__sparkle {
    animation: none;
  }

  .btn:hover,
  .security-card:hover,
  .feature:hover,
  .settings-item:hover {
    transform: none;
  }
}

/* Security section */
.security {
  padding: var(--section-y) 0;
  background: var(--color-bg);
}

.security__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px 32px;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  min-height: 180px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.security-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.security-card__icon svg {
  width: 32px;
  height: 32px;
}

.security-card__icon--purple {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.security-card__icon--orange {
  background: var(--color-orange-light);
  color: var(--color-orange);
}

.security-card__icon--blue {
  background: var(--color-blue-light);
  color: var(--color-blue);
}

.security-card__icon--red {
  background: var(--color-red-light);
  color: var(--color-red);
}

.security-card__body {
  padding-right: 12px;
}

.security-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.security-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 580px;
}

.security-card__screen {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  align-self: center;
}

.security-card__screen img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.security-card:hover .security-card__screen img {
  transform: scale(1.02);
}

/* Settings grid */
.settings-grid {
  margin-top: 72px;
  text-align: center;
}

.settings-grid__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--color-text);
}

.settings-grid__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.settings-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 14px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.settings-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.settings-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
}

.settings-item__icon svg {
  width: 26px;
  height: 26px;
}

.settings-item__icon--purple {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.settings-item__icon--blue {
  background: var(--color-blue-light);
  color: var(--color-blue);
}

.settings-item__icon--red {
  background: var(--color-red-light);
  color: var(--color-red);
}

.settings-item__icon--orange {
  background: var(--color-orange-light);
  color: var(--color-orange);
}

/* Features */
.features {
  padding: var(--section-y) 0;
  background: var(--color-bg);
}

.features .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 420px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature--reverse .feature__content {
  order: 2;
}

.feature--reverse .feature__screen {
  order: 1;
}

.feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
}

.feature__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-white);
  flex-shrink: 0;
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature__title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
}

.feature__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature__list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.55;
}

.feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.5;
}

.feature__screen {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, #FAFBFD 0%, #F0F1F6 100%);
  padding: 32px 32px 0;
  overflow: hidden;
}

.feature__screen img {
  width: auto;
  max-width: 340px;
  max-height: 100%;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 24px rgba(26, 26, 46, 0.1);
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.feature:hover .feature__screen img {
  transform: translateY(-6px);
}

.feature--reverse .feature__screen {
  padding-left: 40px;
}

.feature:not(.feature--reverse) .feature__screen {
  padding-right: 40px;
}

/* Footer */
.footer {
  padding: 48px 0;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 32px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__company {
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.footer__inn {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}

.footer__contact {
  text-align: right;
}

.footer__contact-text {
  font-size: var(--text-base);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.footer__contact-text a {
  color: var(--color-primary-light);
  transition: color 0.2s;
}

.footer__contact-text a:hover {
  color: var(--color-white);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__links a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

/* Legal / support document pages */
.legal {
  padding: 56px 0 96px;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(123, 92, 240, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(59, 130, 246, 0.06), transparent 50%),
    var(--color-bg);
}

.legal__inner {
  max-width: 760px;
}

.legal__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.legal__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal__updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.legal__nav a:hover {
  color: var(--color-primary);
}

.legal__nav a[aria-current="page"] {
  color: var(--color-primary);
}

.legal__body h2 {
  font-size: var(--text-xl);
  font-weight: 650;
  line-height: 1.35;
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 24px 0 10px;
}

.legal__body p,
.legal__body li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal__body p + p {
  margin-top: 12px;
}

.legal__body ul,
.legal__body ol {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.legal__body ul {
  list-style: disc;
}

.legal__body ol {
  list-style: decimal;
}

.legal__body li + li {
  margin-top: 8px;
}

.legal__body a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__body a:not(.btn):hover {
  color: var(--color-primary-hover);
}

.legal__body .btn {
  text-decoration: none;
}

.legal__body strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal__callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.legal__callout p {
  margin: 0;
}

.legal__callout p + p {
  margin-top: 10px;
}

.legal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-y: 72px;
  }

  .container {
    padding: 0 24px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions,
  .hero__highlights {
    justify-content: center;
  }

  .hero__highlights li {
    align-items: center;
    text-align: center;
    max-width: 200px;
  }

  .hero__phones {
    height: 480px;
    max-width: 560px;
    margin: 0 auto;
  }

  .phone--back {
    width: 210px;
  }

  .phone--middle {
    width: 225px;
    right: 24%;
  }

  .phone--front {
    width: 255px;
  }

  .security-card {
    grid-template-columns: 72px 1fr;
    padding: var(--card-padding);
  }

  .security-card__screen {
    grid-column: 1 / -1;
    width: 220px;
    margin: 12px auto 0;
  }

  .settings-grid__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .feature--reverse .feature__content,
  .feature--reverse .feature__screen {
    order: unset;
  }

  .feature__content {
    padding: 40px 36px 28px;
  }

  .feature__screen {
    padding: 0 36px 0;
    min-height: 340px;
  }

  .feature__screen img {
    max-width: 300px;
  }
}

/* Mobile — never below 16px for readable body */
@media (max-width: 640px) {
  :root {
    --text-base: 1.0625rem; /* 17px on small screens */
    --text-lg: 1.125rem;
    --text-xl: 1.3125rem;
    --text-2xl: 1.5rem;
    --section-y: 56px;
  }

  .container {
    padding: 0 20px;
  }

  .header__nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__highlights {
    gap: 24px;
  }

  .hero__phones {
    height: 340px;
  }

  .phone {
    border-radius: 26px;
    border-width: 4px;
  }

  .phone--back {
    width: 140px;
    top: 10%;
  }

  .phone--middle {
    width: 155px;
    right: 20%;
    top: 5%;
  }

  .phone--front {
    width: 175px;
  }

  .security-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    text-align: center;
  }

  .security-card__icon {
    margin: 0 auto;
  }

  .security-card__body {
    padding-right: 0;
  }

  .security-card__screen {
    width: 190px;
  }

  .settings-grid__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .settings-item {
    padding: 22px 12px;
    font-size: var(--text-xs);
  }

  .feature__content {
    padding: 28px 24px 20px;
  }

  .feature__screen {
    min-height: 280px;
    padding: 0 24px;
  }

  .feature__screen img {
    max-width: 240px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    flex-direction: column;
    justify-content: center;
  }

  .footer__legal {
    align-items: center;
  }

  .footer__contact {
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .legal {
    padding: 40px 0 72px;
  }

  .legal__title {
    font-size: var(--text-xl);
  }
}
