:root {
  --bg: #f6f5fa;
  --surface: #ffffff;
  --fg: #1c1b22;
  --muted: #5d5a6b;
  --line: #e4e1ee;
  --accent: #6140c7;
  --deep: #3d299e;
  --bright: #8c33b3;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019;
    --surface: #1c1926;
    --fg: #eeeaf7;
    --muted: #aaa4bd;
    --line: #2d2939;
    --accent: #a38aff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 700px; }

/* Header / footer */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--fg); }
.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Home */
.intro { padding: 48px 0 24px; }
.intro h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.intro p { color: var(--muted); font-size: 19px; margin: 0; max-width: 560px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 24px 0; }
.app-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: inherit; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(40, 20, 100, 0.12); }
.app-card img { width: 76px; height: 76px; border-radius: 17px; flex: none; }
.app-card h2 { font-size: 20px; margin: 0 0 2px; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* App hero */
.hero {
  background: linear-gradient(135deg, var(--deep), var(--bright));
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero .tagline { font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.25; margin: 0 0 12px; }
.hero .lede { font-size: 18px; opacity: 0.85; margin: 0 0 28px; max-width: 460px; }
.button {
  display: inline-block; background: #fff; color: var(--deep);
  font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 999px;
}
.button.soon { opacity: 0.9; cursor: default; }
.hero-phones { display: flex; justify-content: center; gap: 0; }
.hero-phones img {
  width: 46%; border-radius: 26px; border: 6px solid #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero-phones img:first-child { transform: rotate(-6deg) translate(18px, 22px); }
.hero-phones img:last-child { transform: rotate(6deg) translate(-18px, 22px); z-index: 1; }

/* Sections */
section { padding: 56px 0 8px; }
section h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.01em; margin: 0 0 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .emoji { font-size: 28px; line-height: 1; }
.feature h3 { font-size: 18px; margin: 12px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; }
.gallery img { width: 220px; flex: none; border-radius: 22px; border: 1px solid var(--line); scroll-snap-align: start; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 18px; align-items: flex-start;
}
.callout .emoji { font-size: 30px; line-height: 1.2; }
.callout p { margin: 4px 0 0; color: var(--muted); }

/* Document pages (privacy, support) */
.doc { padding-top: 24px; padding-bottom: 8px; }
.doc .crumb { font-size: 15px; margin-bottom: 18px; }
.doc .crumb a { text-decoration: none; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 34px 0 6px; }
.doc p, .doc li { color: var(--fg); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 12px; }
.contact-box p { margin: 0 0 14px; }
.contact-box .button { background: var(--accent); color: #fff; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-phones img { width: 44%; border-radius: 20px; border-width: 5px; }
  .site-header nav { gap: 14px; }
}
