:root {
  --bg: #0f0c18;
  --surface: #1a1626;
  --text: #ffffff;
  --text-soft: #b3adc8;
  --text-faint: #7d7794;
  --line: rgba(255, 255, 255, .1);
  --brand: #ffc93c;
  --button: var(--brand);
  --button-text: #16122f;

  --accent: var(--brand);
  --accent-text: #ffffff;

  --wrap: 960px;
  --gutter: 20px;
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .8em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; background: #fff; color: #000; padding: 6px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.site-header { text-align: center; padding: 28px 0 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; }
.logo svg { width: 50px; height: 50px; }

.intro { text-align: center; padding: 8px 0 28px; }
.intro p { color: var(--text-soft); max-width: 46ch; margin: 0 auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile { text-align: center; padding: 24px 20px 28px; display: flex; flex-direction: column; align-items: center; }
.tile + .tile { border-left: 1px solid var(--line); }
@media (max-width: 599px) { .tile + .tile { border-left: 0; border-top: 1px solid var(--line); } }
.tile-media { display: flex; align-items: center; justify-content: center; height: 300px; margin: 16px 0; }
.tile-media img { max-height: 300px; width: auto; border-radius: 6px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8); }
.tile-media img.phone { border-radius: 14px; }
.tile-media img.app-icon { width: 220px; height: 220px; border-radius: 22%; }
.tile h2 { margin-bottom: .2em; }
.tile h2 a { text-decoration: none; }
.tile h2 a:hover { color: var(--brand); text-decoration: underline; }
.tile p { color: var(--text-soft); max-width: 34ch; margin-bottom: 16px; }
.tile .store-badge { margin-top: auto; }

.label {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: .85rem; padding: 4px 12px 4px 5px; border-radius: 6px;
}
.label svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 5px; background: rgba(0, 0, 0, .35); }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px;
  padding: 6px 16px 6px 12px; min-height: 48px;
}
.store-badge:hover { border-color: #fff; }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge small { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; opacity: .85; }
.store-badge strong { display: block; font-size: 1.1rem; line-height: 1.15; font-weight: 600; }

.newsletter { text-align: center; padding: 32px 0; }
.newsletter p { color: var(--text-soft); margin-bottom: 12px; }
.newsletter strong { color: var(--text); }
.subscribe { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.subscribe input[type="email"] {
  flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
.subscribe input::placeholder { color: var(--text-faint); }
.subscribe button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--button); color: var(--button-text); font: inherit; font-weight: 700;
}

.site-footer { text-align: center; border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--text-faint); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 14px; font-size: .95rem; }
.site-footer nav a { color: var(--text-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); text-decoration: underline; }
.site-footer p { margin: 0 0 4px; }

.back { display: inline-block; color: var(--text-soft); text-decoration: none; font-size: .95rem; margin: 8px 0 16px; }
.back:hover { color: var(--brand); }
.product { display: grid; gap: 28px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .product { grid-template-columns: 340px 1fr; gap: 40px; } }
.product-media { display: flex; justify-content: center; }
.product-media img { max-height: 480px; width: auto; border-radius: 8px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .85); }
.product-media img.phone { border-radius: 16px; max-height: 520px; }
.product-media img.app-icon { width: 280px; height: 280px; border-radius: 22%; }
.product .label { margin-bottom: 12px; }
.product h1 { margin-bottom: .2em; }
.product .hook { font-size: 1.15rem; font-weight: 600; margin-bottom: .6em; }
.product .desc { color: var(--text-soft); }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-soft); font-size: .95rem; }
.facts li::before { content: "•"; color: var(--accent); margin-right: 8px; }

.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.block h2 { margin-bottom: 14px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li { color: var(--text-soft); padding-left: 18px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.features strong { color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; align-items: start; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; transition: transform .15s ease; }
.gallery a:hover { transform: translateY(-3px); }
.gallery img { width: 100%; height: auto; }
@media (max-width: 719px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a { flex: none; width: 62%; scroll-snap-align: start; }
}

.note { color: var(--text-faint); font-size: .88rem; padding: 20px 0 0; }
.note a { color: var(--text-soft); }
.note a:hover { color: var(--brand); }

.prose { max-width: 680px; margin: 0 auto; padding-bottom: 32px; }
.prose h1 { margin-bottom: .25em; }
.prose h2 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--text-soft); line-height: 1.7; }
.prose p { margin-bottom: 1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .3em; }
.prose a { color: var(--text-soft); }
.prose a:hover { color: var(--brand); }
.prose .meta { color: var(--text-faint); font-size: .92rem; }
.notfound { text-align: center; padding: 40px 0 56px; }
.notfound p { color: var(--text-soft); }
.notfound a { color: var(--brand); }
.block:last-child { border-bottom: 0; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 6, 14, .88); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 12px; }
.lightbox button { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.mobile-break { display: none; }
@media (max-width: 599px) { .mobile-break { display: inline; } }
