:root {
  --bg: #fbf8ff;
  --bg-soft: #f3eeff;
  --surface: #ffffff;
  --text: #1d1838;
  --text-soft: #554e74;
  --line: #e4dcf7;
  --accent: #5b3df5;
  --accent-ink: #ffffff;
  --blue: #2f7bff;
  --violet: #8a3ffc;
  --pink: #e0408f;
  --orange: #ff8a1f;
  --radius: 28px;
  --radius-small: 16px;
  --shadow: 0 18px 50px -24px rgba(58, 31, 140, 0.35);
  --max: 1080px;
  --read: 720px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110d24;
    --bg-soft: #1a1534;
    --surface: #201a3f;
    --text: #f4f0ff;
    --text-soft: #b8b0d8;
    --line: #342c5c;
    --accent: #9b86ff;
    --accent-ink: #110d24;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}

/* Header and footer */

.site-header,
.site-footer,
main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: conic-gradient(from 200deg, var(--blue), var(--violet), var(--pink), var(--orange), var(--blue));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--text);
}

.site-footer {
  margin-top: 96px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.site-footer p {
  margin: 0;
}

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

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

/* Hero */

.hero {
  position: relative;
  text-align: center;
  padding: 56px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -20% auto;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(closest-side at 28% 40%, rgba(47, 123, 255, 0.22), transparent),
    radial-gradient(closest-side at 72% 35%, rgba(224, 64, 143, 0.2), transparent),
    radial-gradient(closest-side at 50% 70%, rgba(255, 138, 31, 0.16), transparent);
  filter: blur(8px);
}

.app-icon {
  display: block;
  margin: 0 auto;
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.eyebrow {
  display: inline-block;
  margin: 24px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  margin: 18px auto 16px;
  max-width: 14ch;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(100deg, var(--blue), var(--violet) 40%, var(--pink) 70%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--text-soft);
  max-width: 36em;
  margin: 0 auto;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.pill.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Sections and cards */

section {
  margin-top: 72px;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 12px;
}

.section-lede {
  text-align: center;
  color: var(--text-soft);
  max-width: 34em;
  margin: 0 auto 32px;
}

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

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

.card h3 {
  margin: 14px 0 8px;
  font-size: 21px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.badge {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.badge.blue {
  background: linear-gradient(135deg, #4f95ff, var(--blue));
}

.badge.violet {
  background: linear-gradient(135deg, #a874ff, var(--violet));
}

.badge.pink {
  background: linear-gradient(135deg, #ff6fae, var(--pink));
}

.badge.orange {
  background: linear-gradient(135deg, #ffb25c, var(--orange));
}

.loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.loop .card {
  position: relative;
}

.loop .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 44px;
  font-weight: 800;
  color: var(--bg-soft);
}

.privacy-band {
  border-radius: calc(var(--radius) + 8px);
  padding: 40px 28px;
  background: linear-gradient(135deg, #2a1f6e, #4b2aa8 55%, #8a2f8f);
  color: #fff;
  text-align: center;
}

.privacy-band h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.6vw, 38px);
}

.privacy-band p {
  margin: 0 auto;
  max-width: 38em;
  color: rgba(255, 255, 255, 0.86);
}

.privacy-band a {
  color: #fff;
  font-weight: 700;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.check-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 650;
  font-size: 15px;
}

.product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.product img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
}

.product h3 {
  margin: 0 0 6px;
  font-size: 30px;
}

.product p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

@media (max-width: 520px) {
  .product {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* Long-form pages */

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

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

.doc h2 {
  font-size: 24px;
  margin: 44px 0 10px;
}

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

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

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

.doc li + li {
  margin-top: 6px;
}

.meta {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.lang-switch {
  display: inline-block;
  margin-top: 14px;
  font-weight: 650;
  font-size: 15px;
}

.callout {
  background: var(--bg-soft);
  border-radius: var(--radius-small);
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 18px 22px;
  margin: 28px 0;
}

.toc ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--bg-soft);
  font-weight: 700;
}

.placeholder {
  background: #ffe36e;
  color: #1d1838;
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 700;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 14px 18px;
  margin: 10px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 10px 0 0;
}

.contact-card {
  text-align: center;
  margin: 28px 0;
}

.contact-card .pill {
  font-size: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .app-icon {
    transition: transform 0.4s ease;
  }

  .app-icon:hover {
    transform: rotate(3deg) scale(1.03);
  }
}

.flush-top {
  margin-top: 0;
}

.pill-row.start {
  justify-content: flex-start;
  margin-top: 0;
}

@media (max-width: 520px) {
  .pill-row.start {
    justify-content: center;
  }
}
