:root {
  --ink: #0a1330;
  --body: #46536d;
  --muted: #6c7a93;
  --soft: #8d99b0;
  --line: #e4e9f2;
  --surface: #f5f7fc;
  --white: #ffffff;
  --brand: #1b4dff;
  --brand-deep: #1238c9;
  --navy: #071033;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;
  --panel: linear-gradient(160deg, #071033 0%, #0d2890 48%, #1b4dff 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

a,
button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8fb0ff;
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2 {
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

/* Russian words run longer, so the Russian headline is set smaller. */
html[lang="ru"] h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  letter-spacing: -0.036em;
  line-height: 1.08;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.soft {
  color: var(--soft);
}

.grad {
  background: linear-gradient(100deg, #1238c9 0%, #1b4dff 45%, #4f96ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap {
  width: 100%;
  max-width: 1264px;
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.icon-sprite {
  display: none;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-small {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  max-width: 38rem;
  margin-top: 20px;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Buttons */

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -10px rgba(27, 77, 255, 0.75);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 26px -10px rgba(27, 77, 255, 0.8);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: #162147;
}

.btn-ghost {
  border-color: #d8e0ee;
  background: var(--white);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #c3cee2;
  background: var(--surface);
}

.btn-light {
  background: var(--white);
  box-shadow: 0 14px 30px -14px rgba(3, 9, 36, 0.7);
  color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-in {
  position: relative;
  display: flex;
  height: 68px;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(10, 19, 48, 0.08), 0 6px 12px -6px rgba(27, 77, 255, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.site-nav .nav-lang {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.lang-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.lang-link:hover {
  color: var(--ink);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: -8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(6.6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: 68px 0 0;
  background: radial-gradient(58% 420px at 50% 0%, #e6edff 0%, rgba(230, 237, 255, 0) 100%);
}

.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid #d6e0f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(10, 19, 48, 0.05);
  color: #2b3a5c;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(27, 77, 255, 0.16);
}

.hero h1 {
  max-width: 62rem;
  margin-top: 26px;
}

.lede {
  max-width: 39rem;
  margin-top: 26px;
  color: var(--body);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* The stage: a row of app screens that the panel's bottom edge crops on purpose.
   --main is the middle phone's width; everything else scales from it. */

.stage {
  --main: clamp(190px, 23.4vw, 286px);
  position: relative;
  height: calc(var(--main) * 2.06);
  margin-top: 60px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--panel);
  isolation: isolate;
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(56% 62% at 50% 108%, rgba(150, 195, 255, 0.72) 0%, rgba(150, 195, 255, 0) 72%), radial-gradient(40% 46% at 8% 0%, rgba(86, 128, 255, 0.5) 0%, rgba(86, 128, 255, 0) 100%);
  content: "";
}

.stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
  content: "";
  -webkit-mask-image: radial-gradient(75% 85% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 85% at 50% 0%, #000 0%, transparent 100%);
}

.stage-phones {
  position: absolute;
  top: calc(var(--main) * 0.24);
  left: 50%;
  display: flex;
  align-items: flex-start;
  gap: calc(var(--main) * 0.13);
  transform: translateX(-50%);
}

.stage .device {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 50px 80px -24px rgba(2, 6, 28, 0.75);
}

.stage .device-center {
  --w: var(--main);
}

.stage .device-near {
  --w: calc(var(--main) * 0.91);
  margin-top: calc(var(--main) * 0.17);
}

.stage .device-far {
  --w: calc(var(--main) * 0.83);
  margin-top: calc(var(--main) * 0.36);
}

/* The outermost phones dissolve into the panel instead of being cut off mid-word. */
.stage .device-far:first-child {
  -webkit-mask-image: linear-gradient(90deg, transparent 44%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 44%, #000 100%);
}

.stage .device-far:last-child {
  -webkit-mask-image: linear-gradient(270deg, transparent 44%, #000 100%);
  mask-image: linear-gradient(270deg, transparent 44%, #000 100%);
}

/* Phone frame around an app screenshot; --w sets its width and everything scales from it. */

.device {
  --w: 260px;
  position: relative;
  width: var(--w);
  flex: 0 0 auto;
  padding: calc(var(--w) * 0.026);
  border-radius: calc(var(--w) * 0.158);
  background: linear-gradient(150deg, #39445b 0%, #101828 20%, #0b1220 72%, #273147 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.device::before {
  position: absolute;
  top: calc(var(--w) * 0.053);
  left: 50%;
  z-index: 2;
  width: calc(var(--w) * 0.25);
  height: calc(var(--w) * 0.07);
  border-radius: 999px;
  background: #0b1220;
  content: "";
  transform: translateX(-50%);
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.134);
  background: var(--white);
  aspect-ratio: 600 / 1298;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.device-screen::before {
  position: absolute;
  top: calc(var(--w) * 0.041);
  left: calc(var(--w) * 0.088);
  z-index: 1;
  color: #0b1220;
  font-size: calc(var(--w) * 0.04);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  content: "9:41";
}

.device-screen::after {
  position: absolute;
  top: calc(var(--w) * 0.04);
  right: calc(var(--w) * 0.078);
  z-index: 1;
  width: calc(var(--w) * 0.178);
  height: calc(var(--w) * 0.042);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 16' fill='%230b1220'%3E%3Crect y='9.5' width='3.2' height='4.5' rx='.9'/%3E%3Crect x='5' y='7' width='3.2' height='7' rx='.9'/%3E%3Crect x='10' y='4.5' width='3.2' height='9.5' rx='.9'/%3E%3Crect x='15' y='2' width='3.2' height='12' rx='.9'/%3E%3Cpath d='M24.2 6.9a10 10 0 0 1 13.6 0l-1.4 1.5a7.9 7.9 0 0 0-10.8 0zM26.9 9.8a6 6 0 0 1 8.2 0l-1.5 1.5a3.9 3.9 0 0 0-5.2 0zM31 11.7c.8 0 1.5.3 2 .8l-2 2.1-2-2.1c.5-.5 1.2-.8 2-.8z'/%3E%3Crect x='44.5' y='2.9' width='19.5' height='10.2' rx='3.1' fill='none' stroke='%230b1220' stroke-opacity='.4'/%3E%3Crect x='46.2' y='4.6' width='16.1' height='6.8' rx='1.7'/%3E%3Cpath d='M65.3 6.2c.9.3 1.5 1 1.5 1.8s-.6 1.5-1.5 1.8z' fill-opacity='.45'/%3E%3C/svg%3E") right center / contain no-repeat;
  content: "";
}

/* Sections */

.features,
.teams,
.how {
  padding: 128px 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 56px;
}

.section-head h2,
.teams-copy h2 {
  margin-top: 14px;
}

.section-head-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head-split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: end;
}

.section-head-split .lead {
  max-width: none;
  margin-top: 0;
  padding-bottom: 6px;
}

/* Features: a grid of cards, each showing a real screen cropped by the card's bottom edge. */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  height: 540px;
  flex-direction: column;
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid #e3e9f4;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fafe 0%, #f0f4fb 100%);
}

.card-copy {
  padding: 32px 32px 0;
}

.chip {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dfe6f3;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 2px 6px -2px rgba(10, 19, 48, 0.12);
  color: var(--brand);
}

.card h3 {
  margin-top: 22px;
}

.card p {
  max-width: 21rem;
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

.card-shot {
  display: flex;
  height: 268px;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: center;
  margin-top: auto;
}

.card .device {
  --w: 252px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 36px 60px -26px rgba(10, 19, 48, 0.5);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .device {
  transform: translateY(-10px);
}

.card-wide {
  flex-direction: row;
  grid-column: span 4;
}

.card-tint {
  border-color: #d9e3fb;
  background: linear-gradient(140deg, #e8efff 0%, #f5f8ff 52%, #e9f0ff 100%);
}

.card-wide .card-copy {
  flex: 1 1 0;
  min-width: 0;
  padding: 44px 0 0 44px;
}

.card-wide h3 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.card-wide p {
  font-size: 1.0625rem;
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ticks .icon {
  margin-top: 1px;
  color: var(--brand);
}

.card-wide .card-shot {
  height: auto;
  flex: 0 0 auto;
  gap: 22px;
  margin: 52px -58px 0 28px;
}

.card-wide .device {
  --w: 244px;
}

.card-wide .device + .device {
  margin-top: 60px;
}

.card-half {
  height: 400px;
  flex-direction: row;
  grid-column: span 3;
}

.card-half .card-copy {
  flex: 1 1 0;
  min-width: 0;
  padding: 40px 0 0 40px;
}

.card-half .card-shot {
  height: auto;
  flex: 0 0 auto;
  margin: 48px 44px 0 28px;
}

.card-half .device {
  --w: 236px;
}

.card-dark {
  border-color: transparent;
  background: var(--panel);
  color: var(--white);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.card-dark .chip {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--white);
}

.card-dark .device {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 36px 60px -22px rgba(2, 6, 28, 0.8);
}

/* For teams */

.teams {
  background: var(--surface);
}

.teams-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 80px;
  align-items: center;
}

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.role {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 30px -24px rgba(10, 19, 48, 0.3);
}

.role h3 {
  margin-top: 20px;
  font-size: 1.0625rem;
}

.role p {
  margin-top: 8px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.teams-photo {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 50px 80px -44px rgba(10, 19, 48, 0.55);
  aspect-ratio: 1 / 1.04;
}

.teams-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* How it works */

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

.step {
  padding: 34px;
  border: 1px solid #e3e9f4;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fafe 0%, #f0f4fb 100%);
}

.step-num {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 10px 18px -10px rgba(27, 77, 255, 0.9);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.step h3 {
  margin-top: 26px;
}

.step p {
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

/* CTA */

.cta {
  padding: 0 0 112px;
}

.cta-panel {
  position: relative;
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-radius: 40px;
  background: var(--panel);
  color: var(--white);
  isolation: isolate;
}

.cta-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(46% 70% at 82% 100%, rgba(150, 195, 255, 0.62) 0%, rgba(150, 195, 255, 0) 74%);
  content: "";
}

.cta-copy {
  padding: 72px 0 72px 72px;
}

.cta-copy p {
  max-width: 32rem;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.cta-copy .btn {
  margin-top: 34px;
}

.cta-noscript a {
  color: var(--white);
}

.cta-shot {
  display: flex;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
}

.cta-shot .device {
  --w: 264px;
  margin-bottom: -180px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 50px 80px -24px rgba(2, 6, 28, 0.8);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 44px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.footer-nav a {
  color: var(--body);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* Demo modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 16, 51, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 36px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 40px 90px -30px rgba(7, 16, 51, 0.6);
  transform: translateY(10px) scale(0.97);
  transition: transform 180ms ease;
}

.modal.is-open .modal-card {
  transform: none;
}

.modal-card h2 {
  margin-top: 12px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.modal-desc {
  margin-top: 14px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.onboarding-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.modal-contact,
.modal-legal {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.modal-contact a,
.modal-legal a {
  color: var(--ink);
  font-weight: 600;
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.modal-x .icon {
  width: 17px;
  height: 17px;
}

/* Scroll reveal: only hides content once the script has confirmed it can show it again. */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive layout */

@media (max-width: 1100px) {
  .card {
    grid-column: span 3;
  }

  .card-wide,
  .card-half {
    grid-column: span 6;
  }

  .card-half .card-copy {
    max-width: 26rem;
  }

  .teams-grid {
    gap: 48px;
  }

  .cta-copy {
    padding: 56px 0 56px 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 30px 40px -30px rgba(10, 19, 48, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    padding: 13px 4px;
    font-size: 1rem;
  }

  .site-nav .nav-lang {
    display: block;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: var(--muted);
  }

  .lang-link {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .header-actions {
    gap: 10px;
  }

  .features,
  .teams,
  .how {
    padding: 96px 0;
  }

  .section-head-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .teams-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .teams-photo {
    aspect-ratio: 1 / 0.8;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 20px;
    padding: 28px;
  }

  .step-num {
    grid-row: span 2;
  }

  .step h3 {
    margin-top: 8px;
  }

  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-copy {
    padding: 56px 40px 0;
  }

  .cta-shot {
    height: 300px;
    padding-top: 48px;
  }

  .cta-shot .device {
    margin-bottom: 0;
  }

  .footer-in {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .br-wide {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .lede {
    font-size: 1.0625rem;
  }

  .stage {
    margin-top: 52px;
    border-radius: 30px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .card,
  .card-wide,
  .card-half {
    height: auto;
    flex-direction: column;
    grid-column: span 6;
  }

  .card-copy,
  .card-wide .card-copy,
  .card-half .card-copy {
    flex: 0 0 auto;
    max-width: none;
    padding: 28px 28px 0;
  }

  .card-wide h3 {
    font-size: 1.5rem;
  }

  .card-shot,
  .card-wide .card-shot,
  .card-half .card-shot {
    height: 290px;
    gap: 16px;
    margin: 36px 0 0;
  }

  .card .device,
  .card-wide .device,
  .card-half .device {
    --w: min(244px, 64vw);
  }

  .card-wide .device {
    --w: min(206px, 40vw);
  }

  .card-wide .device + .device {
    margin-top: 44px;
  }

  .cta {
    padding-bottom: 80px;
  }

  .cta-panel {
    border-radius: 30px;
  }

  .cta-copy {
    padding: 44px 28px 0;
  }
}

@media (max-width: 560px) {
  .stage {
    --main: clamp(190px, 54vw, 240px);
  }

  /* Only slivers of the neighbouring phones fit here, so they fade out too. */
  .stage .device-near:nth-child(2) {
    -webkit-mask-image: linear-gradient(90deg, transparent 70%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 70%, #000 100%);
  }

  .stage .device-near:nth-child(4) {
    -webkit-mask-image: linear-gradient(270deg, transparent 70%, #000 100%);
    mask-image: linear-gradient(270deg, transparent 70%, #000 100%);
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 20px;
  }

  .features,
  .teams,
  .how {
    padding: 80px 0;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .roles {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .modal-card {
    padding: 30px 24px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .card:hover .device {
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
