/* PawKit — landing styles
 * Минималистичный one-pager в стиле Apple: дарк-тема, розовый акцент
 * (matches systemPink app icon), Inter/system-font'ы, mobile-first.
 */

:root {
  /* Цвета — отражают app dark theme + pink CTA accent */
  --bg: #0a0a0c;
  --surface: #131316;
  --surface-2: #1c1c20;
  --border: #2a2a30;
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #ff375f; /* systemPink */
  --accent-soft: rgba(255, 55, 95, 0.12);
  --accent-glow: rgba(255, 55, 95, 0.35);
  --gradient: linear-gradient(135deg, #ff375f 0%, #ff6b9d 100%);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii / shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 80px var(--accent-glow);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

/* ─── Container ────────────────────────────────────────────────── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ─── Header ────────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  /* 22.37% — Apple's app icon corner ratio (HIG). Squircle CSS не
   * поддерживается нативно, ratio approximation достаточно близко. */
  border-radius: 22.37%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.lang-switcher a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.lang-switcher a:hover {
  color: var(--text);
}

.lang-switcher a.active {
  background: var(--text);
  color: var(--bg);
}

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero {
  padding: 140px 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* Radial pink glow за hero — добавляет глубины без тяжёлой графики */
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-md);
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
  max-width: 480px;
}

.cta-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

.app-store-badge svg {
  width: 22px;
  height: 22px;
}

.cta-meta {
  /* flex-basis: 100% — гарантирует что meta всегда на новой строке,
   * не зависимо от длины текста по локали. Раньше EN-короткий вмещался
   * рядом с CTA-кнопкой, RU/UA длиннее → wrapped на новую → layout
   * скакал между локалями. */
  flex-basis: 100%;
  font-size: 13px;
  color: var(--text-dim);
}

/* App Store rating badge — trust signal под hero CTA. */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.rating-badge:hover {
  border-color: var(--accent);
}

.rating-badge .stars {
  color: #ffb800;
  letter-spacing: 1px;
  font-size: 14px;
}

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

/* Hero image (marketing screenshot, already branded with bg + iPhone). */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--border);
}

/* Legacy CSS phone-frame (unused after marketing-screenshots migration,
 * keeping styles in case we revert). */
.phone-frame {
  width: 320px;
  height: 660px;
  background: linear-gradient(180deg, #1f1f24 0%, #131316 100%);
  border-radius: 50px;
  padding: 14px;
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--border);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ─── Sections ─────────────────────────────────────────────────── */

section {
  padding: var(--space-2xl) 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  max-width: 720px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

/* ─── Features grid ────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 24px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 15px;
}

/* ─── Screenshots row ──────────────────────────────────────────── */

.screenshots {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Screenshot card — для marketing-screenshots с brand-фонами. Wrapper
 * минимальный (rounded corners + hover lift), картинка содержит свой
 * branded фон и iPhone-frame внутри сама. */
.screenshot-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
}

.screenshot-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.screenshot-caption {
  padding: var(--space-md) var(--space-xs) 0;
}

.screenshot-caption h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.screenshot-caption p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Premium section ──────────────────────────────────────────── */

.premium-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.premium-card > * {
  position: relative;
  z-index: 1;
}

.premium-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient);
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.premium-price {
  font-size: 56px;
  font-weight: 700;
  margin: var(--space-md) 0;
  letter-spacing: -0.02em;
}

.premium-price small {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  max-width: 540px;
  margin: var(--space-lg) auto;
  text-align: left;
}

.premium-features li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.premium-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── FAQ ──────────────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item summary {
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Legal page (Privacy Policy / Terms) ─────────────────────── */

.legal-page {
  padding: 140px 0 var(--space-2xl);
}

.legal {
  max-width: 720px;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.legal h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal p {
  margin-bottom: var(--space-sm);
  font-size: 15px;
}

.legal ul {
  margin: 0 0 var(--space-sm) 0;
  padding-left: var(--space-md);
}

.legal li {
  margin-bottom: 6px;
  font-size: 15px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 55, 95, 0.4);
  text-underline-offset: 3px;
}

.legal a:hover {
  text-decoration-color: var(--accent);
}

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

.legal em {
  color: var(--text);
  font-style: normal;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.legal-meta {
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 14px;
}

.legal-back {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.legal-back a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-back a:hover {
  color: var(--text);
}

/* ─── Footer ───────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 13px;
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 880px) {
  :root {
    --space-2xl: 80px;
    --space-xl: 56px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .phone-frame {
    width: 280px;
    height: 580px;
  }

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

  .screenshots-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .premium-features {
    grid-template-columns: 1fr;
  }

  .premium-card {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
