:root {
  --accent: #6C418F;
  --accent-dark: #532E72;
  --accent-soft: rgba(108, 65, 143, 0.11);
  --bg: #F6F5F9;
  --card: #FFFFFF;
  --text: #1B1924;
  --muted: #646075;
  --border: rgba(108, 65, 143, 0.15);
  --radius: 20px;
  --shadow: 0 12px 34px rgba(32, 18, 48, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

header.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 249, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7E4FA5, #532E72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(108, 65, 143, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.lang-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.lang-pill.active, .lang-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 65, 143, 0.32);
}
.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--border);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
}
.stat-val { font-weight: 800; font-size: 1.18rem; color: var(--accent); }
.stat-lbl { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.hero-phone {
  width: 31%;
  max-width: 190px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(24, 12, 40, 0.22);
  border: 4px solid #fff;
  background: #fff;
  transition: transform 0.3s;
}
.hero-phone.center {
  width: 36%;
  max-width: 220px;
  z-index: 2;
  transform: scale(1.05);
}
.hero-phone img { width: 100%; height: auto; display: block; }

section { padding: 54px 0; }
.sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.sec-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.sec-head p { color: var(--muted); font-size: 1.04rem; }

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.shot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.iphone-frame {
  width: 100%;
  max-width: 250px;
  border-radius: 28px;
  overflow: hidden;
  border: 5px solid #EBE7F3;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  margin-bottom: 18px;
  background: #000;
}
.iphone-frame img { width: 100%; height: auto; display: block; }
.shot-meta h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text); }
.shot-meta p { font-size: 0.91rem; color: var(--muted); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.feat-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 0.95rem; }

.loc-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.loc-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}
.loc-badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.donate-wrap {
  background: linear-gradient(135deg, #2B173D 0%, #4A286B 100%);
  color: #fff;
  border-radius: 28px;
  padding: 44px 34px;
  box-shadow: 0 22px 50px rgba(43, 23, 61, 0.3);
}
.donate-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.donate-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.donate-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 12px; }
.donate-head p { color: rgba(255, 255, 255, 0.84); font-size: 1rem; }
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.donate-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(10px);
}
.donate-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.donate-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.93rem; margin-bottom: 18px; }
.donate-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-boosty { background: #F15F2C; color: #fff; }
.btn-patreon { background: #FF424D; color: #fff; }
.wallet-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.wallet-lbl { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 4px; display: block; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wallet-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: #fff;
}
.copy-btn {
  background: #fff;
  color: #2B173D;
  border: none;
  border-radius: 8px;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}
.crypto-warn { font-size: 0.78rem; color: #FFD580; margin-top: 6px; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
details.faq-item summary { font-weight: 700; font-size: 1.03rem; cursor: pointer; list-style: none; }
details.faq-item p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}


/* SEO Pillars & Search Intent Blocks */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 24px;
}
.seo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.seo-card h3 {
  font-size: 1.2rem;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.seo-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.seo-tags-wrap {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.seo-tags-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-align: center;
}
.seo-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.seo-tag {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
@media (max-width: 900px) {
  .seo-grid { grid-template-columns: 1fr; }
}


/* === V2 Enhancements: QR Box, iPad Grid, Comparison Table, Sticky Bar === */
.hero-qr-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
}
.hero-qr-card img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: block;
}
.hero-qr-text {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
  text-align: left;
  max-width: 135px;
}
.hero-qr-text strong {
  display: block;
  color: var(--text);
  font-size: 0.84rem;
  margin-bottom: 2px;
}

/* Clickable 35 Language Badges */
.loc-badge {
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.loc-badge:hover, .loc-badge.active-shot-lang {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 65, 143, 0.25);
}
.shot-lang-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* iPad Frame in Gallery */
.ipad-card {
  display: none;
}
.ipad-frame {
  width: 100%;
  max-width: 340px;
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid #2B2838;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  margin-bottom: 16px;
  background: #000;
}
.ipad-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Comparison Table */
.comp-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}
table.comp-table th, table.comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table.comp-table th {
  background: rgba(108, 65, 143, 0.06);
  font-weight: 800;
  color: var(--text);
}
table.comp-table th.highlight-col, table.comp-table td.highlight-col {
  background: rgba(108, 65, 143, 0.09);
  font-weight: 700;
  color: var(--accent-dark);
}
table.comp-table tr:last-child td {
  border-bottom: none;
}

/* Crypto QR Modal/Toggle */
.qr-toggle-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  flex-shrink: 0;
}
.wallet-qr-pop {
  display: none;
  margin-top: 10px;
  text-align: center;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  width: fit-content;
}
.wallet-qr-pop.open {
  display: block;
}
.wallet-qr-pop img {
  width: 130px;
  height: 130px;
  display: block;
}

/* Mobile Sticky Bottom Bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 999;
  background: rgba(27, 25, 36, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-mobile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticky-mobile-title {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
}
.sticky-mobile-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}
.sticky-mobile-btn {
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .hero-qr-card { display: none; }
  .sticky-mobile-bar { display: flex; }
  body { padding-bottom: 84px; }
}


/* Changelog / Freshness Signal Box */
.changelog-box {
  background: linear-gradient(135deg, rgba(108, 65, 143, 0.08) 0%, rgba(108, 65, 143, 0.03) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 32px;
}
.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.changelog-head h3 {
  font-size: 1.22rem;
  color: var(--accent-dark);
}
.changelog-date {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.changelog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 24px;
  list-style: none;
}
.changelog-list li {
  font-size: 0.94rem;
  color: var(--text);
  position: relative;
  padding-left: 24px;
}
.changelog-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}


/* Real App Icon in Header & Sticky Bar */
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(108, 65, 143, 0.28);
}
.sticky-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}


/* === Redesigned Apple-Style Single-Row Header & Mobile Drawer === */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 245, 249, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(108, 65, 143, 0.12);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 64px;
  padding: 0;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  flex-shrink: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.nav-links a:hover {
  color: var(--accent-dark);
  background: rgba(108, 65, 143, 0.08);
}
.nav-links a.nav-donate-pill {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
}
.nav-links a.nav-donate-pill:hover {
  background: var(--accent);
  color: #fff;
}

/* Language Dropdown in Header */
.lang-dropdown {
  position: relative;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.18s;
}
.lang-trigger:hover {
  border-color: var(--accent);
}
.lang-trigger svg {
  width: 12px;
  height: 12px;
  opacity: 0.65;
  transition: transform 0.2s;
}
.lang-dropdown.open .lang-trigger svg {
  transform: rotate(180deg);
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  min-width: 165px;
  box-shadow: 0 16px 38px rgba(24, 12, 40, 0.16);
  z-index: 300;
  flex-direction: column;
  gap: 2px;
}
.lang-dropdown.open .lang-menu {
  display: flex;
}
.lang-menu .lang-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.lang-menu .lang-pill:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.lang-menu .lang-pill.active {
  background: var(--accent);
  color: #fff;
}

/* Mobile Burger Button & Drawer */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  padding: 0;
}
.mobile-drawer {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 20px;
  box-shadow: 0 18px 34px rgba(24, 12, 40, 0.12);
}
.mobile-drawer.open {
  display: block;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-list a {
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-list a:active, .mobile-nav-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.mobile-nav-list a.mobile-donate-highlight {
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-top: 6px;
}

/* Refined Compact Mobile Sticky Bar (appears on scroll) */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 990;
  background: rgba(27, 25, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.sticky-mobile-bar.visible {
  transform: translateY(0);
  opacity: 1;
}
.sticky-mobile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.sticky-mobile-text {
  min-width: 0;
}
.sticky-mobile-title {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-mobile-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-mobile-btn {
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 768px) {
  .hero { padding: 28px 0 32px; }
  .hero h1 { font-size: 1.88rem; line-height: 1.18; }
  .hero p.lead { font-size: 1rem; margin-bottom: 22px; }
  .badge { font-size: 0.78rem; padding: 6px 12px; margin-bottom: 14px; }
  .sticky-mobile-bar { display: flex; }
}


/* === UI Polish v3: Header Padding, iOS Segmented Filter, Pro Feature/Pillar Cards, Compact Mobile Spacing === */
header.topbar .container.topbar-inner {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
@media (min-width: 769px) {
  header.topbar .container.topbar-inner {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* Clean Screenshot Language Bar */
.shot-lang-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(32, 18, 48, 0.04);
}
.shot-lang-bar strong {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* iOS Segmented Control for Light / Dark / iPad */
.segmented-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.filter-bar {
  display: inline-flex;
  align-items: center;
  background: #EAE6F2;
  padding: 4px;
  border-radius: 13px;
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
}
.filter-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}
.filter-btn.active {
  background: #FFFFFF;
  color: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(24, 12, 40, 0.12);
}

/* Pro Feature Cards */
.feat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(32, 18, 48, 0.11);
}
.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 65, 143, 0.14), rgba(108, 65, 143, 0.06));
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}
.feat-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.feat-card h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  margin-bottom: 0;
  color: var(--text);
}
.feat-card p {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--muted);
}

/* Pro SEO Pillar Cards */
.seo-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3.5px solid var(--accent);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar-kicker {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 999px;
}
.seo-card h3 {
  font-size: 1.18rem;
  line-height: 1.32;
  color: var(--text);
  margin-bottom: 0;
}
.seo-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}
.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(108, 65, 143, 0.1);
}
.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.pillar-list li svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tighter Mobile Spacing Between Sections */
@media (max-width: 768px) {
  section {
    padding: 26px 0 !important;
  }
  .hero {
    padding: 20px 0 24px !important;
  }
  .sec-head {
    margin-bottom: 18px !important;
  }
  .sec-head h2 {
    font-size: 1.48rem;
    margin-bottom: 6px;
  }
  .sec-head p {
    font-size: 0.94rem;
  }
  .segmented-wrap {
    margin-bottom: 16px;
  }
  .filter-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .feat-grid, .seo-grid, .shots-grid {
    gap: 14px !important;
  }
  .feat-card, .seo-card, .shot-card {
    padding: 18px !important;
  }
  .changelog-box, .seo-tags-wrap, .loc-box {
    margin-top: 18px !important;
    padding: 20px 18px !important;
  }
  .donate-wrap {
    padding: 26px 18px !important;
    border-radius: 22px;
  }
  footer {
    margin-top: 14px !important;
    padding: 22px 0 32px !important;
  }
}


/* === Fix Horizontal Overflow & Responsive Grids Across All Widths === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
.container, main, section, header.topbar, footer {
  max-width: 100vw;
}
.shots-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important;
}
.feat-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
}
.seo-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
}
.donate-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}
.changelog-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}
.comp-wrap {
  width: 100%;
  max-width: calc(100vw - 40px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hero-phones {
  max-width: 100%;
  overflow: hidden;
  padding: 10px 4px;
}
@media (max-width: 900px) {
  .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .feat-grid, .seo-grid, .donate-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
@media (max-width: 540px) {
  .shots-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .topbar-inner {
    gap: 8px;
  }
  .brand span {
    font-size: 1rem;
  }
  .lang-trigger {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}


/* === Comfortable Apple-Style Side Margins on Desktop & Mobile === */
.container,
header.topbar .container.topbar-inner {
  max-width: 1060px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

@media (min-width: 768px) {
  .container,
  header.topbar .container.topbar-inner {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (min-width: 1120px) {
  .container,
  header.topbar .container.topbar-inner {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
}

.comp-wrap {
  max-width: 100% !important;
}


/* === Balanced Container Width (1140px) & 5-Column Stats + QR Row on Desktop === */
.container,
header.topbar .container.topbar-inner {
  max-width: 1140px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
@media (min-width: 768px) {
  .container,
  header.topbar .container.topbar-inner {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 32px !important;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.35fr !important;
  gap: 10px !important;
  align-items: stretch;
}
.stat-box {
  padding: 11px 10px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stat-val {
  font-size: 1.06rem !important;
  white-space: nowrap;
}
.stat-lbl {
  font-size: 0.73rem !important;
  line-height: 1.25;
}
.stat-qr-box {
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 9px;
  padding: 8px 11px !important;
  text-align: left !important;
  transition: border-color 0.2s, transform 0.15s;
}
.stat-qr-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.stat-qr-box img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
.stat-qr-text {
  min-width: 0;
}
.stat-qr-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stat-qr-box {
    display: none !important;
  }
}


/* === Full-Width 5-Card Stats + QR Strip Below Hero Grid === */
.hero-qr-card {
  display: none !important;
}
.hero .cta-row {
  margin-bottom: 0 !important;
}
.stats-row {
  margin-top: 34px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.35fr !important;
  gap: 14px !important;
  align-items: stretch !important;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px !important;
  padding: 16px 14px !important;
  box-shadow: 0 6px 20px rgba(32, 18, 48, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.stat-val {
  font-weight: 800;
  font-size: 1.22rem !important;
  color: var(--accent);
  line-height: 1.2;
  white-space: normal !important;
}
.stat-lbl {
  font-size: 0.8rem !important;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}
.stat-qr-box {
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  text-align: left !important;
}
.stat-qr-box img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 2px;
  background: #fff;
  flex-shrink: 0;
}
.stat-qr-title {
  font-weight: 800;
  font-size: 0.92rem !important;
  color: var(--accent-dark);
  margin-bottom: 2px;
}
@media (max-width: 900px) {
  .stats-row {
    margin-top: 24px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .stat-qr-box {
    display: none !important;
  }
}


/* === Smooth Hero Phones Feathering (No Clipped Shadows) & Larger Scannable 80px QR === */
.hero-phones {
  position: relative;
  overflow: visible !important;
  padding: 28px 18px !important;
  z-index: 1;
}
/* Мягкое фиолетово-лавандовое свечение позади трёх телефонов */
.hero-phones::before {
  content: "";
  position: absolute;
  inset: -10px -20px;
  background: radial-gradient(52% 52% at 50% 50%, rgba(108, 65, 143, 0.14) 0%, rgba(246, 245, 249, 0) 75%);
  z-index: -1;
  pointer-events: none;
}
.hero-phone {
  border: none !important;
  border-radius: 34px !important;
  background: transparent !important;
  overflow: hidden;
  /* Мягкая многослойная тень без резких границ + тонкое внутреннее кольцо в цвет фона */
  box-shadow:
    0 24px 54px -12px rgba(28, 14, 48, 0.18),
    0 8px 22px -6px rgba(28, 14, 48, 0.08),
    inset 0 0 0 2px var(--bg) !important;
  /* Плавное растворение самого края прямоугольного скриншота в фон */
  -webkit-mask-image: radial-gradient(102% 101% at 50% 50%, #000 89%, transparent 100%);
  mask-image: radial-gradient(102% 101% at 50% 50%, #000 89%, transparent 100%);
}
.hero-phone.center {
  border-radius: 38px !important;
  box-shadow:
    0 30px 68px -12px rgba(28, 14, 48, 0.24),
    0 12px 28px -6px rgba(28, 14, 48, 0.12),
    inset 0 0 0 2px var(--bg) !important;
}

/* Увеличенный и чёткий QR-код (80x80 px + зум при наведении) */
.stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.55fr !important;
}
.stat-qr-box {
  padding: 10px 16px !important;
  gap: 14px !important;
  overflow: visible !important;
}
.stat-qr-box img {
  width: 78px !important;
  height: 78px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(108, 65, 143, 0.18) !important;
  padding: 4px !important;
  background: #FFFFFF !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.stat-qr-box:hover img {
  transform: scale(1.28);
  box-shadow: 0 12px 28px rgba(28, 14, 48, 0.22);
  z-index: 20;
}


/* === Fix Hero Phones: Zero Screen Clipping + Unclipped Floating Shadows === */
.hero, .hero-grid, .hero-phones {
  overflow: visible !important;
}
.hero-phones {
  padding: 20px 12px !important;
}
.hero-phone {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  border-radius: 24px !important;
  border: 3px solid #FFFFFF !important;
  background: #FFFFFF !important;
  overflow: hidden !important;
  box-shadow:
    0 20px 45px -10px rgba(32, 18, 52, 0.16),
    0 6px 16px -4px rgba(32, 18, 52, 0.07) !important;
}
.hero-phone.center {
  border-radius: 26px !important;
  border: 3.5px solid #FFFFFF !important;
  box-shadow:
    0 28px 60px -12px rgba(32, 18, 52, 0.22),
    0 10px 24px -6px rgba(32, 18, 52, 0.10) !important;
}
.hero-phone img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 20px !important;
}


/* === Fix Mobile 2x2 Grid for 4 Stat Cards === */
@media (max-width: 900px) {
  .stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 22px !important;
  }
  .stat-box {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }
  .stat-val {
    font-size: 1.12rem !important;
  }
  .stat-lbl {
    font-size: 0.78rem !important;
  }
  .stat-qr-box {
    display: none !important;
  }
}
