:root {
  color-scheme: light dark;
  --background: #f3f5fb;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #161b33;
  --muted: #5d6480;
  --accent: #2f6fd0;
  --border: rgba(22, 27, 51, 0.11);
  --shadow: 0 24px 70px rgba(22, 27, 51, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1226;
    --surface: rgba(27, 37, 80, 0.72);
    --text: #eef1fb;
    --muted: #a9b0cc;
    --accent: #7cc8ff;
    --border: rgba(238, 241, 251, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(124, 200, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(255, 143, 196, 0.16), transparent 30rem),
    var(--background);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links,
.language-links {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a,
.language-links a {
  color: var(--muted);
  text-decoration: none;
}

header {
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.card,
article {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.card h2 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

article + article {
  margin-top: 28px;
}

h2 {
  margin: 1.8em 0 0.45em;
  font-size: 1.38rem;
  letter-spacing: -0.025em;
}

article h2:first-child {
  margin-top: 0;
}

p,
li {
  max-width: 68ch;
}

li + li {
  margin-top: 0.45em;
}

.meta,
footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  background: rgba(124, 200, 255, 0.12);
}

.buy {
  display: grid;
  gap: 12px;
  max-width: 68ch;
  margin: 14px 0 8px;
}

.buy .plan {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
}

.buy .plan strong {
  color: var(--text);
}

.buy .plan:has(input:checked) {
  border-color: var(--accent);
}

.buy .plan input {
  margin-top: 0.3em;
  accent-color: var(--accent);
}

.buy .email {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.buy input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.buy .button {
  justify-self: start;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #0e1226;
  font-weight: 700;
  text-decoration: none;
}

footer {
  margin-top: 36px;
  text-align: center;
}


/* The landing page's three steps: numbered, unboxed, so the cards below
   remain the only thing on the page asking to be clicked. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 46px;
}

.step h2 {
  margin: 0 0 0.35em;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 6px;
}

.feature h3 {
  margin: 0 0 0.35em;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

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

.store-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

section + section,
section + article {
  margin-top: 28px;
}


@media (max-width: 620px) {
  nav {
    align-items: flex-start;
    margin-bottom: 52px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

/* The icon next to the name on the landing page. */
.hero-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 0 22px -8px;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9em;
}

/* Screenshots on the landing page. */
.shots {
  margin-top: 46px;
}

.shots h2 {
  margin: 1.6em 0 0.2em;
}

.shots .meta {
  margin: 0 0 16px;
}

.shot {
  margin: 0 0 18px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

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

/* Windows windows are narrow and tall: keep them side by side and lined up at the top. */
.shot-row.windows {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: start;
}

.shot-row.windows img {
  border-radius: 10px;
}

.card h3 {
  margin-top: 0;
}

/* Download buttons in the header */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 6px;
}

.cta .button {
  margin-top: 0;
}

.button-soon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}

/* The typing demo and the time-saved estimate */
.demo {
  margin: 28px 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

article .demo {
  box-shadow: none;
}

.demo-field {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  font: 600 clamp(1.3rem, 5vw, 1.8rem) / 1 ui-monospace, "SF Mono", Consolas, monospace;
  overflow: hidden;
  white-space: pre;
}

.demo-field.still {
  padding: 14px 20px;
  white-space: pre-line;
  line-height: 1.5;
}

.demo-field.still .demo-caret {
  display: none;
}

.demo-text.fixed {
  color: var(--accent);
}

.demo-caret {
  width: 2px;
  height: 1.2em;
  margin-left: 2px;
  background: var(--text);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-caret { animation: none; }
}

.demo-note {
  min-height: 1.5em;
  margin: 10px 2px 18px;
}

.saved {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  color: var(--muted);
}

.saved input {
  width: 4.2em;
  margin: 0 4px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  text-align: center;
}

.saved-result {
  flex-basis: 100%;
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 600;
}

/* What it handles */
.can {
  margin-top: 46px;
}

.can-list {
  padding-left: 1.2em;
}

.can-list li {
  max-width: 72ch;
}

#teams {
  margin-top: 46px;
}

/* One language at a time (lang.js); without scripts, English. */
html:not(.l-ru) [data-only="ru"],
html.l-ru [data-only="en"] {
  display: none !important;
}

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

html:not(.l-en):not(.l-ru) .lang-switch {
  display: none;
}

.lang-switch button {
  padding: 2px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #0e1226;
}

.nav-links {
  align-items: center;
}

/* Wide screens: the pitch on the left, the demo on the right. */
@media (min-width: 980px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 36px;
  }

  .hero header {
    margin-bottom: 0;
  }

  .hero .demo {
    margin: 0;
  }

  h1 {
    font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  }

  .can-list {
    columns: 2 380px;
    column-gap: 48px;
  }

  .can-list li {
    break-inside: avoid;
  }

  .two {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .two section {
    margin-top: 46px;
  }

  .shots > .shot,
  .shots > .shot-row:not(.windows) {
    max-width: 960px;
  }
}

.shot-row.windows {
  max-width: 900px;
}

.rub-card {
  margin-top: 46px;
}

.rub-card h2 {
  margin-top: 0;
}

/* The download bar that stays at the bottom once the buttons up top are scrolled away (demo.js). */
.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 140%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dock.shown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dock .button {
  margin: 0;
  padding: 9px 16px;
  white-space: nowrap;
}

.dock-name {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
}

.dock-name .meta {
  font-weight: 400;
}

body {
  padding-bottom: 72px;
}

@media (max-width: 620px) {
  .dock-name,
  .dock .button-soon {
    display: none;
  }

  .dock {
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock { transition: none; }
}

/* Pages of text: a column for reading. */
.shell.narrow {
  width: min(860px, calc(100% - 32px));
}

@media (max-width: 620px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 40px;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
  }
}
