@font-face {
  font-family: "Averia Sans Libre";
  src: url("/assets/fonts/averia-sans-libre-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Averia Sans Libre";
  src: url("/assets/fonts/averia-sans-libre-latin-700-normal.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Rounded";
  src: url("/assets/fonts/SF-Pro-Rounded-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Rounded";
  src: url("/assets/fonts/SF-Pro-Rounded-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ease-premium-out: cubic-bezier(0.19, 1, 0.22, 1);
  --drawer-duration: 0.72s;
  color: #3c3a38;
  background: #f8f8f8;
  font-family: "SF Pro Rounded", ui-rounded, "Arial Rounded MT Bold", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1080px;
  background: #f8f8f8;
}

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

.brand,
.site-nav a,
.contact-button,
.cta-button,
.install-option {
  -webkit-tap-highlight-color: transparent;
}

.contact-button,
.cta-button,
.install-option {
  backface-visibility: hidden;
  contain: paint;
  transform: translateZ(0);
  will-change: background, box-shadow;
}

.brand:focus,
.brand:focus-visible,
.site-nav a:focus,
.site-nav a:focus-visible,
.contact-button:focus,
.contact-button:focus-visible,
.cta-button:focus,
.cta-button:focus-visible,
.install-option:focus,
.install-option:focus-visible {
  outline: none;
}

.shelf-hero {
  position: relative;
  width: 100%;
  min-height: 830px;
  overflow: hidden;
  background: #f8f8f8;
}

@keyframes shelf-appear-premium {
  0% {
    filter: blur(6px);
    translate: 0 5px;
  }
  100% {
    filter: blur(0);
    translate: 0 0;
  }
}

.site-header,
.dotted-ring,
.icon-composition,
h1,
.hero-subtitle,
.cta-button,
.pricing-pills {
  animation: shelf-appear-premium 1650ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--appear-delay, 0ms);
  will-change: filter, translate;
}

.dotted-ring {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 198px;
  width: 320px;
  height: 320px;
  margin-left: -160px;
  pointer-events: none;
  --appear-delay: 45ms;
}

.site-header {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 50%;
  display: flex;
  width: 688px;
  height: 64px;
  align-items: center;
  justify-content: center;
  gap: 132px;
  padding: 12px;
  border: 0;
  outline: 1px solid rgba(14, 14, 13, 0.04);
  outline-offset: -1px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 2px 1px 0 rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px 0 rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
  --appear-delay: 0ms;
}

.brand {
  display: flex;
  width: 85px;
  height: 32px;
  flex: 0 0 85px;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  overflow: hidden;
  border-radius: 8px;
  color: #3c3a38;
  font-family: "Averia Sans Libre", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.36px;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  width: 230px;
  height: 20px;
  flex: 0 0 230px;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  color: #3c3a38;
  font-family: "SF Pro Rounded", ui-rounded, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.32px;
  white-space: nowrap;
}

.site-nav a {
  display: flex;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.site-nav a:nth-child(1) {
  width: 69px;
}

.site-nav a:nth-child(2) {
  width: 34px;
}

.site-nav a:nth-child(3) {
  width: 79px;
}

.site-nav a {
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

.site-nav a:hover {
  opacity: 0.55;
}

.site-nav a:active {
  opacity: 0.4;
  transition-duration: 0.08s;
  transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}

.contact-slot {
  display: flex;
  width: 85px;
  height: 40px;
  flex: 0 0 85px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 10px;
  padding: 0 0 0 54px;
}

.contact-button {
  display: flex;
  width: 87px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #3c3a38;
  box-shadow:
    0 0 0 1px #3c3a38,
    0 3px 2px rgba(0, 0, 0, 0.12),
    inset 0 -4px 2px rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 2px rgba(255, 255, 255, 0.14);
  font-family: "SF Pro Rounded", ui-rounded, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.64px;
  white-space: nowrap;
  transition: background 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

.contact-button:hover {
  background: #2a2827;
}

.contact-button:active {
  background: #1a1918;
  box-shadow:
    0 0 0 1px #1a1918,
    0 1px 1px rgba(0, 0, 0, 0.14),
    inset 0 1px 3px rgba(0, 0, 0, 0.18);
  transition-duration: 0.06s;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 164px;
  left: 50%;
  display: flex;
  width: 740px;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  transform: translateX(-50%);
}

.icon-composition {
  position: relative;
  width: 560px;
  height: 132px;
  flex: 0 0 auto;
  --appear-delay: 70ms;
}

.hero-icon {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero-icon-chrome {
  left: 91.317px;
  top: 49.147px;
  width: 90px;
  height: 90px;
  rotate: -20deg;
}

.hero-icon-telegram {
  left: 245px;
  top: 2.333px;
  width: 70px;
  height: 70px;
}

.hero-icon-safari {
  left: 377.607px;
  top: 49.147px;
  width: 90px;
  height: 90px;
  rotate: 20deg;
}

.headline-group {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

h1 {
  margin: 0;
  flex: 0 0 auto;
  color: #3c3a38;
  text-align: center;
  font-family: "Averia Sans Libre", ui-sans-serif, system-ui, sans-serif;
  font-size: 72px;
  font-style: normal;
  font-weight: 700;
  line-height: 75.6px;
  letter-spacing: -4.32px;
  white-space: nowrap;
  word-wrap: break-word;
  --appear-delay: 125ms;
}

.hero-subtitle {
  width: 564px;
  margin: 0;
  flex: 0 0 auto;
  color: #3c3a38;
  text-align: center;
  font-family: "SF Pro Rounded", ui-rounded, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.6px;
  opacity: 0.7;
  --appear-delay: 165ms;
}

.cta-button {
  display: flex;
  width: 189px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  background: #3c3a38;
  box-shadow:
    0 0 0 2px #3c3a38,
    0 3px 2px rgba(0, 0, 0, 0.12),
    inset 0 -4px 2px rgba(255, 255, 255, 0.08);
  transition: background 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: filter, translate, background, box-shadow;
  --appear-delay: 215ms;
}

.cta-button:hover {
  background: #2a2827;
}

.cta-button:active {
  background: #1a1918;
  box-shadow:
    0 0 0 2px #1a1918,
    0 1px 1px rgba(0, 0, 0, 0.14),
    inset 0 1px 3px rgba(0, 0, 0, 0.18);
  transition-duration: 0.06s;
}

.cta-button-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 2px rgba(14, 14, 13, 0.19);
  font-family: "SF Pro Rounded", ui-rounded, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.8px;
  white-space: nowrap;
  word-wrap: break-word;
}

.pricing-pills {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  --appear-delay: 265ms;
}

.pricing-pills > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  overflow: hidden;
  border: 0;
  outline: 1px solid rgba(14, 14, 13, 0.04);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.pricing-pill-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #3c3a38;
  text-align: center;
  font-family: "SF Pro Rounded", ui-rounded, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.56px;
  opacity: 0.7;
  white-space: nowrap;
  word-wrap: break-word;
}

/* Install modal */

.install-modal {
  position: fixed;
  top: auto;
  bottom: 20px;
  left: 50%;
  width: 380px;
  height: 362px;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.14);
  opacity: 0;
  overflow: hidden;
  transform: translateX(-50%) translateY(100%);
  transition:
    opacity var(--drawer-duration) var(--ease-premium-out),
    transform var(--drawer-duration) var(--ease-premium-out),
    overlay var(--drawer-duration) var(--ease-premium-out) allow-discrete,
    display var(--drawer-duration) var(--ease-premium-out) allow-discrete;
  will-change: transform;
}

.install-modal[open]:not(.is-closing) {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@starting-style {
  .install-modal[open]:not(.is-closing) {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
}

.install-modal::backdrop {
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    background var(--drawer-duration) var(--ease-premium-out),
    -webkit-backdrop-filter var(--drawer-duration) var(--ease-premium-out),
    backdrop-filter var(--drawer-duration) var(--ease-premium-out),
    overlay var(--drawer-duration) var(--ease-premium-out) allow-discrete,
    display var(--drawer-duration) var(--ease-premium-out) allow-discrete;
}

.install-modal[open]:not(.is-closing)::backdrop {
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@starting-style {
  .install-modal[open]:not(.is-closing)::backdrop {
    background: rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

.install-modal-content {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  padding: 20px;
}

.install-drawer-body {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.install-modal-header {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #3c3a38;
  text-align: center;
}

.install-shelf-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  pointer-events: none;
}

.install-modal-title {
  width: 192px;
  margin: 20px 0 8px;
  color: #3c3a38;
  font-family: "Averia Sans Libre", ui-sans-serif, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 33.6px;
  letter-spacing: -1.92px;
  white-space: nowrap;
}

.install-modal-subtitle {
  margin: 0;
  color: #3c3a38;
  font-family: "SF Pro Rounded", ui-rounded, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.6px;
  opacity: 0.7;
  white-space: nowrap;
}

.install-modal-buttons {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
}

.install-option {
  position: relative;
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 20px;
  border: 0;
  border-radius: 12px;
  background: rgba(57, 57, 57, 0.02);
  box-shadow: none;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

.install-option:hover {
  background: rgba(57, 57, 57, 0.05);
}

.install-option:active {
  background: rgba(57, 57, 57, 0.08);
  transition-duration: 0.06s;
}

.install-option-text {
  color: #3c3a38;
  text-align: center;
  font-family: "SF Pro Rounded", ui-rounded, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.32px;
  white-space: nowrap;
}

.install-option-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.install-drawer-handle {
  width: 54px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ebebeb;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .dotted-ring,
  .icon-composition,
  h1,
  .hero-subtitle,
  .cta-button,
  .pricing-pills {
    animation: none;
    filter: none;
    translate: none;
  }

  .install-modal,
  .install-modal::backdrop {
    transition: none;
  }
}

@media (max-width: 767px) {
  body {
    min-width: 0;
  }

  .shelf-hero {
    min-height: 760px;
    overflow-x: auto;
  }
}
