/* ── Fonts ──
   Inter is self-hosted so the site makes no third-party requests.
   Licensed under the SIL Open Font License 1.1 — see assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --violet: #7F5AF0;
  --violet-dark: #5B3BC4;
  --violet-light: #F0EBFE;
  --violet-mid: #C9B8FA;
  --text: #16161d;
  --text-2: #555;
  --text-3: #888;
  --bg: #fff;
  --bg-2: #f8f7fb;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.07);
  --shadow-phone: 0 24px 64px rgba(22,22,29,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-dark); }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
.accent { color: var(--violet); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 56px;
}

/* ── App Store badge ──
   Apple's official artwork, used unmodified and at a fixed aspect ratio.
   The margin keeps the clear space Apple's identity guidelines ask for
   (at least 1/10 of the badge height on every side). */
.badge-link {
  display: inline-block;
  margin: 6px;
  transition: transform 0.15s;
}

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

.badge-link img {
  display: block;
  height: 48px;
  width: auto;
}

.badge-link--large img { height: 56px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.nav__logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-text { letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}

.nav__links a { color: var(--text-2); }
.nav__links a:hover { color: var(--violet); }

/* ── Hero ── */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(160deg, var(--bg) 55%, var(--violet-light) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero__badge {
  display: inline-block;
  background: var(--violet-light);
  color: var(--violet-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero__cta { margin-bottom: 16px; }

.hero__note { font-size: 0.85rem; color: var(--text-3); }

.hero__phone { display: flex; justify-content: center; }

/* ── Phone frame ── */
.phone-frame {
  position: relative;
  width: 280px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  background: #f2f2f2;
  border: 6px solid #1e1e22;
}

.phone-screen,
.phone-frame img { width: 100%; display: block; }

/* ── Features ── */
.features {
  padding: 100px 0;
  background: var(--bg-2);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

.feature-card__icon { font-size: 2rem; margin-bottom: 16px; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots { padding: 100px 0; overflow: hidden; }

.screenshots__scroll {
  overflow-x: auto;
  padding: 16px 40px 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots__scroll::-webkit-scrollbar { display: none; }

.screenshots__track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.phone-frame--small {
  width: 220px;
  border-radius: 36px;
  border: 5px solid #1e1e22;
  flex-shrink: 0;
}

/* ── How it works ── */
.how { padding: 100px 0; background: var(--bg-2); }

.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 16px;
}

.how__step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 20px;
}

.how__step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.how__step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }

.how__step p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

.how__step-arrow {
  font-size: 1.5rem;
  color: var(--violet-mid);
  margin-top: 14px;
  flex-shrink: 0;
}

/* ── Privacy strip ── */
.privacy-strip { padding: 90px 0; }

.privacy-strip__inner {
  background: var(--violet-light);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
}

.privacy-strip__icon { font-size: 2.5rem; margin-bottom: 18px; }

.privacy-strip h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.privacy-strip p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.cta-section__icon { font-size: 3rem; margin-bottom: 20px; }

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 36px;
}

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

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer__links { display: flex; gap: 28px; font-size: 0.9rem; }
.footer__links a { color: rgba(255,255,255,.6); }
.footer__links a:hover { color: #fff; }

.footer__copy { font-size: 0.8rem; }

/* ── Inner pages ── */
.page-header {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--bg) 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-header p { color: var(--text-2); font-size: 1rem; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
}

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

.page-content p, .page-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
}

.page-content ul { padding-left: 20px; margin-top: 8px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--violet); }

.callout {
  background: var(--violet-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p { color: var(--text); }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.support-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid #eee;
}

.support-card__icon { font-size: 1.75rem; margin-bottom: 12px; }
.support-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.support-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
.support-card a { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__phone { order: -1; }
  .phone-frame { width: 230px; }
  .features__grid { grid-template-columns: 1fr; }
  .how__steps { flex-direction: column; align-items: center; gap: 16px; }
  .how__step-arrow { transform: rotate(90deg); margin: 0; }
  .nav__links { display: none; }
  .support-grid { grid-template-columns: 1fr; }
  .privacy-strip__inner { padding: 40px 24px; }
}

.footer__disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 620px;
  color: rgba(255,255,255,.45);
}
