:root {
  --primary: #1f5eff;
  --primary-dark: #1445c4;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5b6577;
  --border: #e3e8f0;
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }

nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--primary); }

.hero {
  background: linear-gradient(135deg, #e8efff, var(--bg));
  border-radius: 32px;
  padding: 64px 40px;
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }

.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #0b0f1a;
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 14px;
  min-width: 190px;
  line-height: 1.2;
}
.store-text { display: flex; flex-direction: column; }
.store-btn small { font-size: 0.72rem; opacity: 0.8; }
.store-btn strong { font-size: 1.15rem; }
.store-btn:hover { background: var(--primary-dark); }
.store-btn.soon { opacity: 0.6; cursor: default; }
.store-btn.soon:hover { background: #0b0f1a; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 48px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.trust { text-align: center; margin-bottom: 56px; }
.trust p { max-width: 640px; margin: 8px auto 0; color: var(--muted); }

main.legal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin-bottom: 48px; }
main.legal h1 { margin-top: 0; }
main.legal h2 { margin-top: 32px; }
.updated { color: var(--muted); font-size: 0.9rem; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* Home */
.hero-wrap { background: linear-gradient(160deg, #0b1226 0%, #14295a 60%, #1a3a6e 100%); color: #fff; border-radius: 0 0 48px 48px; overflow: hidden; margin-bottom: 56px; }
.home .hero-wrap .brand, .home .hero-wrap nav a { color: #fff; }
.home .hero-wrap nav a { opacity: 0.8; }
.home .hero-wrap nav a:hover { opacity: 1; color: #ffb48a; }
.home .hero { background: none; border-radius: 0; margin: 0; padding: 40px 0 0; text-align: left; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.home .hero p { color: #c9d4ee; margin: 0 0 28px; }
.accent { color: #ffb48a; }
.pill { display: inline-block; background: rgba(255, 180, 138, 0.15); color: #ffb48a; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; }
.home .stores { justify-content: flex-start; }
.home .store-btn { background: #fff; color: #0b1226; }
.home .store-btn:hover { background: #ffb48a; }
.home .store-btn.soon:hover { background: #fff; }
.hero-phones { position: relative; height: 520px; }
.phone { position: absolute; width: 56%; border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.phone.front { left: 22%; top: 0; z-index: 2; }
.phone.back { left: -2%; top: 50px; transform: rotate(-6deg); opacity: 0.85; }
.phone.back.right { left: auto; right: -2%; transform: rotate(6deg); }
.card .ico { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; background: #e8efff; border-radius: 14px; margin-bottom: 12px; }
.card { transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(31, 94, 255, 0.12); }
.flow { text-align: center; margin-bottom: 56px; }
.flow .lead { color: var(--muted); margin: 0 0 28px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.steps figure { margin: 0; }
.steps img { width: 100%; border-radius: 22px; box-shadow: 0 12px 32px rgba(11, 18, 38, 0.18); }
.steps figcaption { margin-top: 12px; font-weight: 600; }
.steps figcaption b { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 0.8rem; }

@media (max-width: 800px) {
  .home .hero { grid-template-columns: 1fr; text-align: center; }
  .home .stores { justify-content: center; }
  .hero-phones { height: 440px; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 20px; }
  main.legal { padding: 24px; }
  nav a { margin-left: 12px; }
}

/* Legal and support pages */
body.page { background: #fff; }
body.page header.site { border-bottom: 1px solid var(--border); margin-bottom: 40px; }
body.page .brand { color: #0b1226; }
body.page main.legal { max-width: 760px; margin: 0 auto 56px; padding: 0; border: 0; background: none; border-radius: 0; }
body.page main.legal h1 { font-size: 2rem; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 3px solid var(--primary); }
body.page main.legal h2 { font-size: 1.25rem; margin: 36px 0 8px; color: #0b1226; }
body.page main.legal h3 { font-size: 1.05rem; margin: 24px 0 4px; }
body.page main.legal p, body.page main.legal li { color: #2a3347; }
body.page main.legal ol, body.page main.legal ul { padding-left: 22px; }
body.page main.legal li { margin-bottom: 6px; }
body.page .shots { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
body.page .shots figure { margin: 0; flex: 1 1 200px; max-width: 240px; }
body.page .shots img { width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(11, 18, 38, 0.12); }
body.page .shots figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }

/* Larger brand */
.brand { font-size: 1.7rem; gap: 14px; }
.brand img { width: 56px; height: 56px; border-radius: 14px; }
@media (max-width: 600px) { .brand { font-size: 1.35rem; } .brand img { width: 44px; height: 44px; } }

/* Mobile */
img { max-width: 100%; height: auto; }
.hero-phones { width: 100%; }

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  header.site { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 0; }
  nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  nav a { margin-left: 0; }
  body.page header.site { margin-bottom: 28px; }
  .home .hero { padding-top: 24px; gap: 24px; }
  .hero h1 { font-size: 2rem; }
  .stores { flex-direction: column; align-items: stretch; }
  .store-btn { min-width: 0; width: 100%; justify-content: center; }
  .hero-phones { height: 400px; }
  .features { grid-template-columns: 1fr; margin-bottom: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .home .hero-wrap { border-radius: 0 0 32px 32px; margin-bottom: 40px; }
  body.page main.legal h1 { font-size: 1.6rem; }
  body.page .shots figure { flex: 1 1 140px; max-width: none; }
  footer.site { flex-direction: column; }
  footer.site a { display: inline-block; margin-bottom: 6px; }
}
