/* Rivelo static site - design tokens from original */
:root {
  --bg: #f5f5f5;
  --text: #202020;
  --accent: #0165fe;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
  --font-size-base: 16px;
  --container-max: 1216px;
  --gap-section: 24px;
  --gap-block: 24px;
  --gap-logo: 16px;
  --padding-x: 112px;
  --padding-y: 48px;
  --padding-x-mobile: 24px;
  --padding-y-mobile: 40px;
  --hero-text-width: 640px;
  --hero-font-size: 40px;
  --hero-font-size-mobile: 32px;
  --screens-height: 480px;
  --screens-height-mobile: 480px;
  --logo-size: 64px;
  --logo-size-mobile: 48px;
}

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

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: clip;
}

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

/* Layout */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-section);
  padding: var(--padding-y) var(--padding-x);
  min-height: 100vh;
}

@media (max-width: 640px) {
  .page {
    padding: var(--padding-y-mobile) var(--padding-x-mobile);
  }
}

/* Header / Logo */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-logo);
}

.logo-img {
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: cover;
}

@media (max-width: 640px) {
  .logo-img {
    width: var(--logo-size-mobile);
    height: var(--logo-size-mobile);
  }
}

.logo-text {
  height: 24px;
  width: 87px;
}

.logo-text svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-block);
  width: 100%;
}

.hero-text {
  font-size: var(--hero-font-size);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  color: var(--text);
  max-width: var(--hero-text-width);
}

.hero-text .accent {
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero-text {
    font-size: var(--hero-font-size-mobile);
    max-width: 100%;
    padding: 0 var(--padding-x-mobile);
  }
}

/* Screens image - плавно уменьшается, min 800px, всегда по центру */
.screens-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: var(--screens-height);
}

.screens-wrap img {
  width: clamp(800px, 100vw, 1216px);
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 640px) {
  .screens-wrap {
    min-height: var(--screens-height-mobile);
    margin-left: calc(-1 * var(--padding-x-mobile));
    margin-right: calc(-1 * var(--padding-x-mobile));
    width: calc(100% + 2 * var(--padding-x-mobile));
  }
}

/* App Store button */
.app-store-link {
  display: inline-block;
  line-height: 0;
  position: relative;
}

.app-store-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.app-store-link img {
  height: 48px;
  width: auto;
  display: block;
  pointer-events: none;
}

/* Footer */
.footer {
  padding-top: var(--gap-section);
  text-align: center;
  font-size: 14px;
  color: var(--text);
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact {
  margin-top: 8px;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--padding-y) var(--padding-x);
  overflow-x: clip;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 32px;
}

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.legal-page a {
  color: var(--accent);
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-nav {
  margin-bottom: 32px;
}

.legal-nav a {
  color: var(--accent);
  margin-right: 16px;
}