:root {
  color: #202124;
  background: #f7f9fc;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: #f7f9fc;
}

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

.chrome-modal {
  width: min(100%, 880px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(32, 33, 36, 0.12);
}

.chrome-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 48px;
  color: #fff;
  background: #1a73e8;
}

.header-copy {
  max-width: 640px;
}

.title {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.title-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.extension-icon {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  opacity: 0.78;
  animation: download-pulse 3.4s ease-in-out infinite;
}

.extension-icon img {
  width: 100%;
  height: 100%;
}

@keyframes download-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: translateY(0);
  }

  50% {
    opacity: 0.88;
    transform: translateY(3px);
  }
}

.chrome-content {
  padding: 34px 48px 8px;
}

.chrome-content p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: #5f6368;
}

.chrome-content a {
  color: #1a73e8;
  text-underline-offset: 2px;
}

.chrome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 48px 42px;
}

.store-badge {
  flex: 0 1 213px;
  border-radius: 7px;
  transition: opacity 160ms ease;
}

.store-badge:hover {
  opacity: 0.86;
}

.chrome-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  color: #fff;
  background: #1a73e8;
  border: 1px solid #1a73e8;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.22);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.chrome-button::before {
  width: 31px;
  height: 30px;
  flex: 0 0 31px;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAeCAYAAADU8sWcAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEESURBVHgB7ZfrDYIwEIBP4wBsAE6gGzCCI+AGugGj6CaOQJwAN9ANzjsLtTSFtKWFP/2SQsrjvoP0CeAJIp6o3PgMS0PSFgVv8GQDnrBVBiHAgy2sSJIneZInOY9kJZUKLKFnM36eygHmQAEK/NNwYOWeRBM3yq0MfKGXjzhEJqDLDWImhzlQgNqUgHbNJK4hBCMJTNXDiCcSGCOs2CGBOGKLBPzEKBqMdcs0JGAtHng6cdsFuTgEqVAsIF0GoD5p9mX6QPKAiHB8xZWniWUVdlqdx/IS4sBzQqFe+C32Uew6/Gcgd160z9j3v/0My3Llg9zmcJejE/fzmH/gQ+VOX/3kyhf6INW5etA77QAAAABJRU5ErkJggg==') center / 31px 30px no-repeat;
  content: '';
}

.chrome-button:hover {
  background: #1765cc;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.28);
  transform: translateY(-1px);
}

.chrome-button:focus-visible,
.store-badge:focus-visible,
.chrome-content a:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.35);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  body {
    place-items: start center;
    padding: 20px 14px;
  }

  .chrome-modal {
    border-radius: 14px;
  }

  .chrome-modal-header {
    align-items: flex-start;
    gap: 22px;
    padding: 30px 26px;
  }

  .extension-icon {
    width: 88px;
    height: 88px;
  }

  .title {
    font-size: 26px;
  }

  .title-sub {
    font-size: 15px;
  }

  .chrome-content {
    padding: 26px 26px 8px;
  }

  .chrome-footer {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 24px 26px 30px;
  }

  .store-badge {
    align-self: center;
    flex-basis: auto;
    width: min(100%, 213px);
  }

  .chrome-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .chrome-modal-header {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chrome-button,
  .store-badge,
  .extension-icon {
    animation: none;
    transition: none;
  }
}
