/* =========================================================
   Your Bro — landing styles (v2)
   Premium dark · privacy-first · mobile-first
   No frameworks · no external CDNs · no trackers
   ========================================================= */

:root {
  /* ---- Surfaces / depth ---- */
  --bg: #0B0B0F;
  --bg-soft: #0F0F14;
  --bg-2: #111119;
  --surface: #16161E;
  --surface-2: #1C1C26;
  --surface-3: #232330;

  /* ---- Lines / text ---- */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --hairline: rgba(255, 255, 255, 0.05);
  --text: #F5F5F8;
  --text-muted: #A6A6B5;
  --text-dim: #71717F;

  /* ---- Accent palette ---- */
  --accent: #6366F1;
  --accent-2: #4F46E5;
  --accent-3: #8B5CF6;      /* violet for richer gradients */
  --accent-ink: #C7D2FE;    /* light indigo text */
  --safe: #34D399;          /* privacy/safe signal, used sparingly */
  --warn: #B8A0E8;          /* muted violet, used only for tiny warning icons */
  --accent-soft: rgba(99, 102, 241, 0.13);

  /* ---- Radius / effects ---- */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 8px 24px -16px rgba(0, 0, 0, 0.9);
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 24px 80px -28px rgba(99, 102, 241, 0.55);

  --maxw: 1200px;
  --gutter: 22px;
  --header-h: 70px;

  --font: "Segoe UI", Roboto, "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, "Noto Sans", sans-serif;

  --grad-accent: linear-gradient(135deg, #818CF8 0%, #6366F1 45%, #4F46E5 100%);
  --grad-text: linear-gradient(180deg, #FFFFFF 0%, #C5C9D8 100%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Layered ambient background — pure CSS, no images */
  background-image:
    radial-gradient(900px 600px at 82% -8%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(700px 520px at 8% 4%, rgba(139, 92, 246, 0.10), transparent 58%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }

/* Убираем стандартный синий outline при клике мышью,
   но сохраняем аккуратный кастомный focus для клавиатуры (a11y). */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }

.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--hairline); }

/* Sticky-header offset для перехода по якорям (header ≈ 70px + воздух) */
#features,
#audience,
#privacy,
#backup,
#showcase,
#faq,
#download { scroll-margin-top: calc(var(--header-h) + 26px); }

.section-head { max-width: 760px; margin: 0 0 clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-lead {
  color: var(--text-muted);
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head.center .eyebrow::before { display: none; }

h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.2rem; }

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-accent {
  background: linear-gradient(120deg, #A5B4FC, #818CF8 60%, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hide-mobile { display: inline; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px; top: 10px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
}
.skip-link:focus { left: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.28s ease, background 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}
.btn svg { width: 19px; height: 19px; }

.btn-primary {
  position: relative;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 16px 36px -16px rgba(99, 102, 241, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(99, 102, 241, 1), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); border-color: rgba(255,255,255,0.22); }

/* Secondary button — читаемый светлый/контрастный вариант (cookie "Подробнее") */
.btn-soft {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-ink);
}
.btn-soft:hover { background: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.5); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: 0.92rem; border-radius: 11px; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; border-radius: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 11, 15, 0.82);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand img { filter: drop-shadow(0 6px 14px rgba(99,102,241,0.4)); }
.brand-name { font-size: 1.24rem; letter-spacing: -0.03em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 9px 14px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 10px; color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 12px;
}
.menu-bar {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(20px);
}
.hero-orb-1 { top: -180px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(99,102,241,0.34), transparent 62%); }
.hero-orb-2 { bottom: -220px; left: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 62%); }

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--safe);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero-pill strong { color: var(--text); font-weight: 600; }

.hero h1 { font-size: clamp(1.95rem, 4.3vw, 3.3rem); line-height: 1.09; margin-bottom: 22px; }
.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
  max-width: 560px;
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 34px; padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text-muted);
}
.hero-trust svg { width: 17px; height: 17px; color: var(--safe); flex-shrink: 0; }

/* ---- Phone mockup ---- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-wrap { position: relative; }
.phone {
  position: relative;
  width: 312px;
  aspect-ratio: 312 / 638;
  background: linear-gradient(160deg, #2a2a36, #121218);
  border-radius: 46px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.phone::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 46px; padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #000;
  border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #15151D 0%, #0D0D12 100%);
  border-radius: 34px;
  padding: 42px 17px 20px;
  overflow: hidden;
}

.ui-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: var(--text-dim); margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.ui-dots { display: inline-flex; gap: 4px; }
.ui-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }

.ui-greeting { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
.ui-date { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 16px; }

.ui-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 9px;
  backdrop-filter: blur(4px);
}
.ui-card-accent {
  background: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(79,70,229,0.08));
  border-color: rgba(99,102,241,0.42);
}
.ui-row { display: flex; align-items: center; gap: 11px; }
.ui-check {
  width: 19px; height: 19px; border-radius: 7px;
  border: 2px solid var(--text-dim); flex-shrink: 0;
}
.ui-check.done { background: var(--accent); border-color: var(--accent); position: relative; }
.ui-check.done::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ui-line { flex: 1; font-size: 0.9rem; }
.ui-pill {
  font-size: 0.7rem; color: var(--text-muted);
  background: rgba(255,255,255,0.06); padding: 3px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.ui-pill-hi { color: var(--accent-ink); background: rgba(99,102,241,0.24); }
.ui-pill-prio { color: #FCA5A5; background: rgba(239,68,68,0.18); font-weight: 700; }
.ui-pill-safe { color: #6EE7B7; background: rgba(52,211,153,0.18); }

.ui-section { font-size: 1.02rem; font-weight: 700; margin: 18px 0 11px; }
.ui-habits { display: flex; gap: 8px; }
.ui-habit {
  flex: 1; background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  border-radius: 13px; padding: 13px 8px; text-align: center;
  font-size: 0.72rem; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.ui-streak { font-size: 1.22rem; font-weight: 700; color: var(--text); }
.ui-habit-break .ui-streak { color: #6EE7B7; }

/* Floating glass chips */
.float-chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 11px;
  background: rgba(22, 22, 30, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 12px 15px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.float-chip .fc-ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
}
.float-chip .fc-ic svg { width: 20px; height: 20px; }
.fc-indigo { background: rgba(99,102,241,0.18); color: var(--accent-ink); }
.float-chip strong { display: block; font-size: 0.86rem; line-height: 1.2; }
.float-chip small { color: var(--text-dim); font-size: 0.74rem; }
.float-chip-1 { top: 84px; left: -38px; animation: floaty 6.5s ease-in-out infinite; }
.float-chip-2 { bottom: 92px; right: -34px; animation: floaty 6.5s ease-in-out infinite 1.6s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Generic card ---------- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 22px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.7; pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.ic {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 14px;
  border: 1px solid rgba(99,102,241,0.22);
}
.ic svg { width: 23px; height: 23px; }

.card h3 { margin-bottom: 7px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FEATURES (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}
.feature--hero {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 28px;
}
.feature--hero .ic { width: 52px; height: 52px; }
.feature--hero h3 { font-size: 1.45rem; }
.feature--hero p { font-size: 1rem; max-width: 460px; }
.feat-preview {
  margin-top: auto;
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.feat-preview .ui-card { margin: 0; background: rgba(255,255,255,0.04); }

/* ---------- AUDIENCE ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud { display: flex; flex-direction: column; gap: 8px; }
.aud .ic { width: 44px; height: 44px; margin-bottom: 4px; }

/* ---------- PRIVACY ---------- */
.privacy-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.privacy-statement .section-head { margin-bottom: 28px; }
.privacy-claim {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.32;
  margin-bottom: 22px;
}
.privacy-claim .text-accent { white-space: nowrap; }
.privacy-disclaimer {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.sec-list { display: grid; gap: 12px; }
.sec-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.sec-item:hover { border-color: var(--border-strong); transform: translateX(4px); background: rgba(255,255,255,0.05); }
.sec-item .ic { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.sec-item h3 { font-size: 1.04rem; margin-bottom: 4px; }
.sec-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- BACKUP ---------- */
.backup-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 26px;
}
.flow-step {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 22px 24px;
  text-align: center;
}
.flow-step .ic { margin: 0 auto 14px; width: 52px; height: 52px; }
.flow-num {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  font-weight: 700; font-size: 0.82rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(99,102,241,0.8);
}
.flow-step h3 { margin-bottom: 7px; font-size: 1.08rem; }
.flow-step p { color: var(--text-muted); font-size: 0.9rem; }
.flow-arrow { display: grid; place-items: center; color: var(--accent); }
.flow-arrow svg { width: 26px; height: 26px; }

.backup-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.backup-note { position: relative; overflow: hidden; }
.backup-note h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.12rem; color: var(--text); }
/* Иконка-бейдж в заголовке: мягкая подложка в единой indigo-системе */
.backup-note h3 .note-badge {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
}
.backup-note h3 .note-badge svg { width: 19px; height: 19px; }
/* "Что важно понимать" — приглушённый indigo-бейдж */
.note-good .note-badge { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid rgba(99, 102, 241, 0.24); }
/* "Честно об ограничениях" — приглушённый violet-бейдж (мягкий warning) */
.note-warn .note-badge { background: rgba(139, 92, 246, 0.14); color: #C4B5FD; border: 1px solid rgba(139, 92, 246, 0.26); }
/* Обе карточки — часть одной premium-системы: нейтрально-фиолетовая кромка */
.note-good { border-color: rgba(99, 102, 241, 0.18); }
.note-warn { border-color: rgba(139, 92, 246, 0.18); }
.lined { display: grid; gap: 13px; }
.lined li { position: relative; padding-left: 32px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.lined li svg { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; padding: 2px; border-radius: 6px; }
.note-good .lined li svg { color: var(--accent-ink); background: var(--accent-soft); }
.note-warn .lined li svg { color: #C4B5FD; background: rgba(139, 92, 246, 0.12); }

/* ---------- SHOWCASE ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: end;
}
.shot { margin: 0; }
.shot-phone {
  position: relative;
  background: linear-gradient(160deg, #26262f, #111117);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 9px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.shot:nth-child(even) .shot-phone { transform: translateY(18px); }
.shot:hover .shot-phone { transform: translateY(0) scale(1.02); }
.shot-screen {
  background: linear-gradient(180deg, #15151D, #0C0C11);
  border-radius: 23px;
  padding: 18px 13px;
  height: 332px;
  overflow: hidden;
}
.shot figcaption { margin-top: 14px; text-align: center; font-size: 0.8rem; color: var(--text-dim); }
.shot-screen .ui-greeting { font-size: 1.16rem; }
.shot-screen .ui-card { padding: 9px 10px; }
.ui-habits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ui-mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 14px; }
.ui-mini-cal i { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,0.06); }
.ui-mini-cal i.on { background: var(--accent); }
.ui-mini-cal i.safe { background: var(--safe); }
.ui-note {
  background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 12px; margin-bottom: 9px;
  display: flex; flex-direction: column; gap: 3px;
}
.ui-note strong { font-size: 0.9rem; }
.ui-note small { color: var(--text-dim); font-size: 0.74rem; display: inline-flex; align-items: center; gap: 5px; }
.ui-note small svg { width: 13px; height: 13px; }
.shot-lock-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid rgba(99,102,241,0.22); margin: 6px auto 14px; }
.shot-lock-ic svg { width: 24px; height: 24px; }
.shot-screen.center { text-align: center; }
.shot-screen.center .ui-row { text-align: left; }

.showcase-note { text-align: center; margin-top: 26px; color: var(--text-dim); font-size: 0.86rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); background: rgba(255,255,255,0.05); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 600; font-size: 1.04rem;
  position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-body { padding: 0 22px 22px; }
.faq-body p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- DOWNLOAD CTA ---------- */
.download-card {
  position: relative;
  text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 84px) clamp(24px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% -30%, rgba(99,102,241,0.4), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.download-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: linear-gradient(180deg, rgba(165,180,252,0.5), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.download-card > * { position: relative; z-index: 1; }
.download-card h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 16px; }
.download-card .section-lead { margin-inline: auto; max-width: 520px; }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; }
.download-meta { color: var(--text-muted); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; }
.download-meta svg { width: 16px; height: 16px; color: var(--safe); }
.download-hint {
  margin-top: 4px; font-size: 0.86rem; color: var(--accent-ink);
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  padding: 8px 14px; border-radius: 10px;
}

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-slogan { color: var(--text-muted); margin-top: 16px; max-width: 320px; }
.footer-privacy { color: var(--text-dim); font-size: 0.86rem; margin-top: 14px; max-width: 340px; }
.footer-heading { font-size: 0.78rem; font-weight: 700; margin-bottom: 16px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.12em; }
.footer-nav ul { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-contact a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-nav a { display: inline-flex; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }

/* Contact block — premium e-mail chip */
.footer-contact .footer-email {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 9px 13px;
  max-width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text); font-weight: 500; font-size: 0.92rem;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-contact .footer-email:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.07); color: var(--text); }
.footer-contact .footer-email svg { width: 16px; height: 16px; color: var(--accent-ink); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom > p { margin: 0; }
.footer-bottom .footer-mini {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
}
.footer-bottom .footer-mini svg { width: 14px; height: 14px; color: var(--accent-ink); }
.footer-legal { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-legal a {
  color: var(--text-muted); transition: color 0.2s ease, background 0.2s ease;
  padding: 4px 10px; border-radius: 8px;
}
.footer-legal a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.footer-legal .sep { color: var(--border-strong); user-select: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 2.4vw, 22px);
  transform: translateX(-50%) translateY(16px);
  z-index: 200;
  width: min(1000px, calc(100% - 24px));
  /* Light glass по умолчанию — соответствует светлой теме лендинга */
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #131318;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
}
.cookie-copy { flex: 1; min-width: 0; }
.cookie-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 3px; color: #131318; }
.cookie-text { color: #44444F; font-size: 0.88rem; line-height: 1.45; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie-text { font-size: 0.86rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* Dark glass — когда система в тёмной теме */
@media (prefers-color-scheme: dark) {
  .cookie-banner {
    background: rgba(28, 28, 40, 0.82);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    color: var(--text);
  }
  .cookie-title { color: var(--text); }
  .cookie-text { color: #C7C7D4; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 8px 11px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.lang-toggle svg { width: 17px; height: 17px; }
.lang-caret { transition: transform 0.25s ease; opacity: 0.7; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-current { letter-spacing: 0.04em; }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(20, 20, 28, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px;
  display: none;
  z-index: 120;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu [role="option"] {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-menu [role="option"]:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lang-menu [role="option"].active { color: var(--text); background: var(--accent-soft); }
.lang-menu [role="option"]:focus-visible { outline: 2px solid rgba(99, 102, 241, 0.55); outline-offset: -2px; box-shadow: none; }
.lang-menu .lang-code {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-ink);
  min-width: 26px;
}
.lang-menu .lang-name { font-size: 0.94rem; }

@media (prefers-color-scheme: light) {
  .lang-menu { background: rgba(255, 255, 255, 0.98); }
}

/* ---------- Legal pages (privacy / cookies) ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.legal-head { max-width: 820px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.legal-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 16px; }
.legal-updated { color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; }
.legal-body { max-width: 820px; margin-inline: auto; }
.legal-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 44px);
}
.legal-card h2 { font-size: 1.4rem; margin: 36px 0 14px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal-card p { color: var(--text-muted); margin-bottom: 14px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover { color: var(--text); }
.legal-card code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--accent-ink);
}
.legal-card ul.legal-list { display: grid; gap: 10px; margin: 0 0 16px; padding-left: 0; }
.legal-card ul.legal-list li {
  position: relative; padding-left: 28px; color: var(--text-muted);
}
.legal-card ul.legal-list li::before {
  content: ""; position: absolute; left: 6px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.legal-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--accent-ink); font-weight: 600; }
.legal-back svg { width: 18px; height: 18px; }
.legal-back:hover { color: var(--text); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feature--hero { grid-column: 1 / -1; grid-row: auto; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-split { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(3, 1fr); }
  .shot:nth-child(even) .shot-phone { transform: none; }
}

@media (max-width: 880px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(13, 13, 18, 0.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px 26px;
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 12px; font-size: 1.06rem; }
  .nav-cta { display: none; }
  .lang-toggle { padding: 8px 9px; }
  .lang-menu { right: 0; min-width: 180px; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin-top: 12px; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-pill { margin-inline: auto; }
  .hero-trust { display: inline-flex; }

  .privacy-claim .text-accent { white-space: normal; }
  .hide-mobile { display: none; }
}

@media (max-width: 720px) {
  .backup-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .backup-notes { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento, .aud-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .shot-screen { height: auto; min-height: 300px; }
  .float-chip-1 { left: -6px; top: 56px; }
  .float-chip-2 { right: -6px; bottom: 64px; }
  .sec-item { padding: 16px; }
  /* Footer: один аккуратный столбец, e-mail в одну строку */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-contact .footer-email { font-size: 0.88rem; padding: 9px 12px; gap: 7px; }
}

@media (max-width: 400px) {
  .phone { width: 270px; }
  .float-chip { transform: scale(0.9); }
  .float-chip-1 { left: -12px; }
  .float-chip-2 { right: -12px; }
  /* Совсем узкие экраны: уменьшаем e-mail-чип, чтобы влез без переноса */
  .footer-contact .footer-email { font-size: 0.82rem; padding: 8px 11px; }
  .footer-contact .footer-email svg { width: 15px; height: 15px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Light theme (system preference) ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F5F8;
    --bg-soft: #EFEFF3;
    --bg-2: #ECECF1;
    --surface: #FFFFFF;
    --surface-2: #F6F6FA;
    --surface-3: #ECECF2;
    --border: rgba(15, 15, 20, 0.1);
    --border-strong: rgba(15, 15, 20, 0.18);
    --hairline: rgba(15, 15, 20, 0.07);
    --text: #131318;
    --text-muted: #51515E;
    --text-dim: #7B7B88;
    --accent-ink: #4F46E5;
    --accent-soft: rgba(99, 102, 241, 0.1);
    --shadow: 0 30px 70px -38px rgba(15, 15, 20, 0.4);
    --shadow-glow: 0 24px 80px -34px rgba(99, 102, 241, 0.45);
    /* Читаемый тёмный gradient для заголовков на светлом фоне */
    --grad-text: linear-gradient(180deg, #1B1B22 0%, #3C3C4C 100%);
  }
  body {
    background-image:
      radial-gradient(900px 600px at 82% -8%, rgba(99,102,241,0.1), transparent 60%),
      radial-gradient(700px 520px at 8% 4%, rgba(139,92,246,0.07), transparent 58%);
  }
  .site-header { background: rgba(245,245,248,0.7); }
  .site-header.scrolled { background: rgba(245,245,248,0.9); }
  .nav-links { background: rgba(245,245,248,0.98); }
  .phone, .shot-phone { background: linear-gradient(160deg, #FFFFFF, #E6E6EE); }
  .phone-screen, .shot-screen { background: linear-gradient(180deg, #FFFFFF, #F0F0F6); }
  .phone-notch { background: #11111A; }
  .float-chip { background: rgba(255,255,255,0.9); }
  .card, .sec-item, .flow-step, .faq-item {
    background: linear-gradient(180deg, rgba(15,15,20,0.025), rgba(15,15,20,0.008));
  }
}
