:root {
  --bg: #f5f5f8;
  --surface: #ffffff;
  --text: #22212b;
  --text-2: #676572;
  --line: #e8e6ee;
  --accent: #6548c7;
  --accent-surface: #eeebf9;
  --brand: #4f39e8;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111216;
    --surface: #1c1d23;
    --text: #f3f1f8;
    --text-2: #a5a3b0;
    --line: #303039;
    --accent: #bda8ff;
    --accent-surface: #2b253e;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.site-header {
  padding-block: 20px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding-block: 56px 32px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgb(79 57 232 / 0.28);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.lede {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-2);
}

.cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .badge-soon {
    color: #21163a;
  }
}

.badge-soon svg {
  width: 20px;
  height: 20px;
}

.fine {
  font-size: 14px;
  color: var(--text-2);
}

/* Screens */
.screens {
  padding-block: 32px 72px;
  overflow: hidden;
}

.screens-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.phone {
  flex: 0 1 260px;
  margin: 0;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgb(34 33 43 / 0.14);
  background: var(--surface);
}

.phone:nth-child(2) {
  transform: translateY(-24px);
}

@media (max-width: 720px) {
  .screens-row {
    gap: 12px;
  }
  .phone {
    border-radius: 22px;
  }
  .phone:nth-child(2) {
    transform: none;
  }
  .phone:nth-child(n + 3) {
    display: none;
  }
}

/* Sections */
section h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section {
  padding-block: 56px;
}

.section-intro {
  color: var(--text-2);
  max-width: 640px;
  margin: 0 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card .glyph svg {
  width: 22px;
  height: 22px;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 32px;
}

.trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--accent);
}

.support-box {
  background: var(--accent-surface);
  border-radius: var(--radius);
  padding: 32px;
}

.support-box p {
  margin: 0 0 12px;
}

.support-box p:last-child {
  margin-bottom: 0;
}

/* Prose pages */
.prose {
  max-width: 720px;
  padding-block: 32px 72px;
}

.prose h1 {
  font-size: clamp(34px, 6vw, 48px);
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 22px;
  margin: 36px 0 8px;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose .updated {
  color: var(--text-2);
  margin-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  font-size: 14px;
  color: var(--text-2);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--text-2);
}
