:root {
  --text: #111827;
  --muted: #4b5563;
  --faint: #6b7280;
  --accent: #5b4bdb;
  --accent-dark: #4b3cc4;
  --accent-soft: #eeecfd;
  --line: #e5e7eb;
  --tint: #f9fafb;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
}
.nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
}
.nav a,
.signin {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover,
.signin:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.btn-main {
  background: var(--accent);
  color: #fff;
}
.btn-main:hover {
  background: var(--accent-dark);
}
.btn-quiet {
  background: #fff;
  color: var(--text);
  border-color: #d1d5db;
}
.btn-quiet:hover {
  border-color: #9ca3af;
}
.top .btn {
  padding: 8px 14px;
  font-size: 14px;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 0;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #f5f3ff 100%);
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto;
}
.hero .sub {
  max-width: 620px;
  margin: 20px auto 32px;
  font-size: 19px;
  color: var(--muted);
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
/* The phone apps: Google Play, and the App Store once the iPhone app is out. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 164px;
  padding: 8px 18px 8px 14px;
  border: 1px solid #111827;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.15s;
}
.store svg {
  flex-shrink: 0;
}
.store:hover {
  background: #1f2937;
}
.store-small,
.store-name {
  display: block;
}
.store-small {
  font-size: 11px;
  line-height: 1.3;
}
.store-name {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}
.hero .note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--faint);
}
.shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e0f0;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 24px 60px -20px rgba(55, 48, 163, 0.28);
}
.hero .shot {
  margin: 56px auto 0;
  max-width: 1100px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

/* ---------- sections ---------- */
.section {
  padding: 104px 0;
}
.tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}
.head h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.15;
  font-weight: 700;
}
.head p {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.feature + .feature {
  margin-top: 112px;
}
.feature.flip .text {
  order: 2;
}
.feature h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}
.feature p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.feature ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.feature li {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
  color: #374151;
}
.feature li::before,
.plan li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.4 2.4 5-5.2' fill='none' stroke='%235b4bdb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
.grid .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.grid h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 36px;
}
.more {
  margin: 48px 0 0;
  text-align: center;
  font-size: 16px;
}
.more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.more a::after {
  content: ' \2192';
}
.more a:hover {
  text-decoration: underline;
}

/* ---------- pricing ---------- */
.billing {
  display: inline-flex;
  margin-top: 28px;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.billing button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 14px/1 var(--font);
  padding: 9px 16px;
  border-radius: 7px;
  cursor: pointer;
}
.billing button[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--accent);
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan.pro {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 40px -24px rgba(91, 75, 219, 0.35);
}
.plan h3 {
  font-size: 20px;
  font-weight: 600;
}
.plan .for {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0 2px;
}
.price strong {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price span {
  color: var(--muted);
  font-size: 15px;
}
.plan .billed {
  font-size: 14px;
  color: var(--faint);
  min-height: 22px;
}
.plan .currency {
  margin-top: 6px;
  align-self: flex-start;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line, #ddd);
  border-radius: 6px;
  padding: 2px 6px;
}
.plan .trial {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 11px;
  flex: 1;
  align-content: start;
}
.plan li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: #374151;
}
.pricing-note {
  text-align: center;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- faq ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
details:first-child {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 17px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(180deg);
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- call to action ---------- */
.cta {
  padding: 0 0 104px;
}
.cta .box {
  background: var(--accent);
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
}
.cta h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 700;
}
.cta p {
  margin: 12px auto 28px;
  max-width: 520px;
  color: #e0dcff;
  font-size: 18px;
}
.cta .btn-light {
  background: #fff;
  color: var(--accent-dark);
}
.cta .btn-light:hover {
  background: #f1efff;
}
.cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.cta .btn-outline:hover {
  border-color: #fff;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14.5px;
  color: var(--muted);
}
.foot .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.foot h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
}
.foot .about {
  max-width: 300px;
  margin: 12px 0 0;
}
.foot .legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- text pages (privacy, terms, support) ---------- */
.doc {
  max-width: 720px;
  padding: 56px 0 104px;
}
.doc h1 {
  font-size: clamp(34px, 4.6vw, 46px);
  line-height: 1.1;
  font-weight: 700;
}
.doc .updated {
  margin: 12px 0 40px;
  color: var(--faint);
  font-size: 15px;
}
.doc h2 {
  font-size: 22px;
  font-weight: 650;
  margin: 40px 0 10px;
}
.doc p,
.doc li {
  color: #374151;
}
.doc ul {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}
.doc a {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .feature.flip .text {
    order: 0;
  }
  .feature + .feature {
    margin-top: 72px;
  }
  .grid,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 72px 0;
  }
  .foot .cols {
    grid-template-columns: 1fr 1fr;
  }
  .foot .cols > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .top .wrap {
    gap: 16px;
  }
  .brand {
    margin-right: auto;
  }
  .hero {
    padding-top: 44px;
  }
  .hero .sub {
    font-size: 17px;
  }
  .grid,
  .grid.four {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan {
    padding: 24px;
  }
  .cta .box {
    padding: 48px 20px;
  }
}

/* ---------- languages ---------- */
.foot .langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 40px;
  font-size: 13.5px;
}
.foot .langs a[aria-current] {
  color: var(--text);
  font-weight: 600;
}
.foot .langs + .legal {
  margin-top: 20px;
}
.lang-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 10px 48px 10px 16px;
  position: relative;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 14.5px;
}
.lang-banner p {
  margin: 0;
}
.lang-banner a {
  color: var(--accent);
  font-weight: 600;
}
.lang-banner button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--muted);
}
.doc .prevails {
  font-size: 14px;
  color: var(--faint);
}

/* Download buttons: site.js hides the one for the other computer. */
.dl[hidden] {
  display: none;
}

/* The header's language menu (the footer has the same links). */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary:hover,
.lang-menu[open] summary {
  background: rgba(91, 75, 219, 0.08);
}
.lang-menu .langs-top {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
  border: 1px solid #e6e8ee;
}
.lang-menu .langs-top a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #1f2937;
  text-decoration: none;
  font-size: 14px;
}
.lang-menu .langs-top a:hover {
  background: #f3f4f6;
}
.lang-menu .langs-top a[aria-current] {
  font-weight: 700;
  color: #5b4bdb;
}
@media (max-width: 720px) {
  .lang-menu span {
    display: none;
  }
}
