:root {
  --purple: #814be6;
  --purple-deep: #6a36d8;
  --sky: #86c8f7;
  --ink: #1d1b26;
  --muted: #5d5a6b;
  --bg: #ffffff;
  --surface: #f5f3fb;
  --line: #e6e2f1;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --purple: #a378fa;
    --ink: #f2f0f8;
    --muted: #aca8bc;
    --bg: #111016;
    --surface: #1b1a23;
    --line: #2c2a37;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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(--purple); text-underline-offset: 3px; }

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

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

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

@media (max-width: 420px) {
  .site-header nav a[href="#features"], .site-header nav a[href="./#features"] { display: none; }
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  margin-left: 22px;
}

.site-header nav a:hover { color: #fff; }

/* Hero: the app icon's gradient */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 128px 0 0;
  background:
    radial-gradient(60% 55% at 85% 45%, rgba(214, 140, 238, 0.85), transparent 70%),
    radial-gradient(55% 60% at 10% 60%, rgba(176, 186, 246, 0.9), transparent 70%),
    radial-gradient(60% 50% at 55% 100%, rgba(134, 200, 247, 0.95), transparent 70%),
    linear-gradient(160deg, #5c67ec 0%, #7a5fee 45%, #6a3fe3 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.hero .wrap > * { min-width: 0; }

.hero-copy { padding-bottom: 96px; }

.hero-logo {
  width: 230px;
  margin: 0 0 28px -8px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 30em;
  margin: 0 0 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

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

/* Phone mockup */

.phone {
  justify-self: center;
  width: min(330px, 80vw);
  margin-bottom: -64px;
  padding: 11px;
  border-radius: 54px;
  background: #0f0e14;
  box-shadow: 0 40px 80px -20px rgba(40, 20, 90, 0.55), inset 0 0 0 2px #2b2934;
}

.phone img { border-radius: 44px; }

/* Sections */

section { padding: 112px 0 72px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.section-head p { color: var(--muted); margin: 0; font-size: 19px; }

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

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  margin-bottom: 16px;
}

.feature .icon svg { width: 22px; height: 22px; }

.feature h3 { font-size: 19px; margin: 0 0 6px; }

.feature p { margin: 0; color: var(--muted); font-size: 16px; }

code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Email preview */

.example {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.example h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.015em; margin: 0 0 14px; }

.example p { color: var(--muted); }

.mail {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -30px rgba(60, 30, 120, 0.45);
  overflow: hidden;
}

.mail-head { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }

.mail-head .subject { font-weight: 700; font-size: 18px; margin-bottom: 6px; }

.mail-head .meta { color: var(--muted); }

.mail-body { padding: 18px 22px 22px; font-size: 16px; }

.mail-body p { margin: 0; color: var(--ink); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 14%, transparent);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 { margin: 0 0 6px; font-size: 19px; }

.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Support band */

.support {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support .wrap { max-width: 720px; }

.support h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.015em; margin: 0 0 14px; }

.support p { color: var(--muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

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

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

/* Document pages (privacy) */

.doc-hero { padding: 120px 0 56px; }

.doc-hero .wrap { display: block; }

.doc-hero h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 0 0 8px; letter-spacing: -0.02em; }

.doc-hero p { margin: 0; color: rgba(255, 255, 255, 0.85); }

.doc { max-width: 720px; padding: 56px 24px 80px; }

.doc h2 { font-size: 22px; margin: 40px 0 10px; }

.doc p, .doc li { color: var(--ink); }

.doc ul { padding-left: 22px; }

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

.doc .summary p { margin: 0; }

/* Small screens */

@media (max-width: 820px) {
  .hero { padding-top: 104px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .hero-copy { padding-bottom: 32px; }
  .hero-logo { margin: 0 auto 24px; width: 190px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .phone { width: min(280px, 76vw); margin-bottom: -48px; }
  .features, .steps, .example-grid { grid-template-columns: 1fr; }
  section { padding: 88px 0 56px; }
  .site-header nav a { margin-left: 16px; }
}
