:root {
  --canvas: #f7f7f7;
  --ink: #222222;
  --secondary: #717171;
  --panel: #ffffff;
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #ff385c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
}

a {
  color: inherit;
}

.page {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 28px;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0 0;
}

.top .brand {
  grid-column: 2;
}

.lang {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.lang button {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary);
  font: 600 13px var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.flag {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  overflow: hidden;
  flex: none;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 36px;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.lead {
  margin: 12px 0 0;
  max-width: 26rem;
  color: var(--secondary);
  font-size: 17px;
}

.store {
  display: block;
  margin-top: 22px;
  line-height: 0;
  border-radius: 8px;
}

.store img {
  display: block;
  height: 40px;
  width: auto;
}

.store:hover {
  opacity: 0.86;
}

.shot {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 32px;
  overflow: hidden;
  background: var(--panel);
  line-height: 0;
  box-shadow: 0 16px 40px rgba(34, 34, 34, 0.08);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-hero {
  width: min(100%, 280px);
  margin-top: 36px;
}

.features {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin-top: 48px;
}

.panel {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.panel p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.foot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 64px;
  color: rgba(34, 34, 34, 0.38);
  font-size: 12px;
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover {
  color: var(--secondary);
}

.store:focus-visible,
.foot a:focus-visible,
.brand:focus-visible,
.lang button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 680px) {
  .page {
    width: min(880px, calc(100% - 32px));
  }

  .top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .top .brand,
  .lang {
    grid-column: auto;
    justify-self: center;
  }

  h1 {
    font-size: 32px;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .shot-hero,
  .panel {
    width: min(100%, 260px);
  }
}
